summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-27 18:20:47 +0000
committerRoland McGrath <roland@gnu.org>2000-03-27 18:20:47 +0000
commit1c5ac2829d68a029ca9b52d63922e51bd3d3db7f (patch)
treea34d2500885a92c0b936c28b130fa982cb6bb248 /configure.in
parent5101d9d4d17c8be708d1934b78436f742d4f678f (diff)
2000-03-27 Roland McGrath <roland@baalperazim.frob.com>
* configure.in (VERSIONING): New check for ld --version-script. * config.make.in (VERSIONING): New variable, set by configure.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in31
1 files changed, 30 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 9d65bb88..ed80813a 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-AC_REVISION([$Id: configure.in,v 1.17 1999/09/19 18:53:26 roland Exp $])
+AC_REVISION([$Id: configure.in,v 1.18 2000/03/27 18:20:47 roland Exp $])
AC_PREREQ(2.12) dnl Minimum Autoconf version required.
AC_INIT(hurd/hurd_types.h) dnl A distinctive file to look for in srcdir.
@@ -68,6 +68,35 @@ AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS)
AC_CHECK_LIB(crypt, crypt, LIBCRYPT=-lcrypt)
AC_SUBST(LIBCRYPT)
+# See if --version-script is available.
+AC_CACHE_CHECK(for ld --version-script, hurd_cv_ld_version_script_option, [dnl
+cat > conftest.c <<\EOF
+void foobar() {}
+EOF
+cat > conftest.map <<\EOF
+VERS_1 {
+ global: sym;
+};
+
+VERS_2 {
+ global: sym;
+} VERS_1;
+EOF
+
+if AC_TRY_COMMAND([eval $ac_compile 1>&AC_FD_CC]) &&
+ AC_TRY_COMMAND([${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
+ -nostartfiles -nostdlib
+ -Wl,--version-script,conftest.map
+ 1>&AC_FD_CC]); then
+ hurd_cv_ld_version_script_option=yes
+else
+ hurd_cv_ld_version_script_option=no
+fi
+rm -f conftest*])
+VERSIONING=$hurd_cv_ld_version_script_option
+AC_SUBST(VERSIONING)
+
+
if test -f ./$ac_unique_file; then
# Configuring in source directory; don't create any Makefiles.
makefiles=