Date: Fri, 19 May 2000 19:03:38 -0400 (EDT)
   From: Roland McGrath <[EMAIL PROTECTED]>

   Yeah, on later thought I liked your idea fine.  

Here's a patch.  OK to check this in?


2000-05-20  Mark Kettenis  <[EMAIL PROTECTED]>

        * configure.in: Add check for libio.  Only enable versioning if we
        found libio.


Index: configure.in
===================================================================
RCS file: /home/cvs/hurd/configure.in,v
retrieving revision 1.18
diff -u -p -r1.18 configure.in
--- configure.in        2000/03/27 18:20:47     1.18
+++ configure.in        2000/05/20 14:23:12
@@ -93,7 +93,23 @@ else
   hurd_cv_ld_version_script_option=no
 fi
 rm -f conftest*])
-VERSIONING=$hurd_cv_ld_version_script_option
+
+# See if libc was built with --enable-libio.
+AC_CACHE_CHECK([for libio],
+  hurd_cv_libio,
+  AC_TRY_COMPILE([#include <stdio.h>
+#ifndef _STDIO_USES_IOSTREAM
+# error No libio found.
+#endif],,
+    hurd_cv_libio=yes,
+    hurd_cv_libio=no))
+
+# Only turn on versioning if we found libio and versioning is supported.
+if test $hurd_cv_libio = yes; then
+  VERSIONING=$hurd_cv_ld_version_script_option
+else
+  VERSIONING=no
+fi
 AC_SUBST(VERSIONING)
 
 

Reply via email to