]> sourceware.org Git - glibc.git/blobdiff - sysdeps/mach/hurd/configure
configure: Use autoconf 2.71
[glibc.git] / sysdeps / mach / hurd / configure
old mode 100755 (executable)
new mode 100644 (file)
index 9265ea2..33d3e1f
@@ -1,60 +1,54 @@
-# GNU libc on the Hurd is always reentrant.
-DEFINES="$DEFINES -D_LIBC_REENTRANT"
+# This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
 
-# Don't bother trying to generate any glue code to be compatible with the
-# existing system library, because we are the only system library.
-inhibit_glue=yes
+printf "%s\n" "#define NO_RTLD_HIDDEN 1" >>confdefs.h
 
-if test "x$prefix" != x; then
-  echo "configure: warning: --prefix= (empty) is required for GNU/Hurd to work normally" 1>&2
+
+if test -n "$sysheaders"; then
+  OLD_CPPFLAGS=$CPPFLAGS
+  CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
 fi
 
-case "$machine" in
-  i386*)
-    # With --enable-libio, the default oldest ABI is 2.5.5;
-    # without --enable-libio, the default oldest ABI is 2.0.
-    # We only need a "yes" here if the oldest ABI supported will be < 2.2.5.
-    if if test "$stdio" = libio; then
-         test "$oldest_abi" != default && test "$oldest_abi" \< "2.2.5"
-       else
-         test "$oldest_abi" = default || test "$oldest_abi" \< "2.2.5"
-       fi; then
-      libc_cv_gcc_unwind_find_fde=yes
-    fi
-    ;;
-esac
-
-
-
-# See if mig groks `retcode'.
-echo $ac_n "checking whether $MIG supports the retcode keyword""... $ac_c" 1>&6
-echo "configure:33: checking whether $MIG supports the retcode keyword" >&5
-if eval "test \"`echo '$''{'hurd_cv_mig_retcode'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.defs <<\EOF
-#include <mach/std_types.defs>
-#include <mach/mach_types.defs>
-subsystem foobar 1000;
-type reply_port_t = polymorphic | MACH_MSG_TYPE_PORT_SEND_ONCE
-       ctype: mach_port_t;
-simpleroutine foobar_reply (
-       reply_port: reply_port_t;
-       err: kern_return_t, RetCode);
-EOF
-if { ac_try='CC="${CC}" ${MIG-false} -n conftest.defs 1>&5'; { (eval echo configure:47: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
-  hurd_cv_mig_retcode=yes
-else
-  hurd_cv_mig_retcode=no
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Hurd header version" >&5
+printf %s "checking Hurd header version... " >&6; }
+if test ${libc_cv_hurd_version+y}
+then :
+  printf %s "(cached) " >&6
+else $as_nop
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <hurd/version.h>
+int
+main (void)
+{
+
+#define NEED_VERSION 20020609
+#if HURD_INTERFACE_VERSION < NEED_VERSION
+# error Hurd version too old: HURD_INTERFACE_VERSION < NEED_VERSION
+#endif
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"
+then :
+  libc_cv_hurd_version=ok
+else $as_nop
+  libc_cv_hurd_version=bad
 fi
-rm -f conftest*
+rm -f conftest.err conftest.i conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_version" >&5
+printf "%s\n" "$libc_cv_hurd_version" >&6; }
+if test "x$libc_cv_hurd_version" != xok; then
+  as_fn_error $? "Hurd headers not installed or too old" "$LINENO" 5
 fi
 
-echo "$ac_t""$hurd_cv_mig_retcode" 1>&6
-if test $hurd_cv_mig_retcode = yes; then
-  cat >> confdefs.h <<\EOF
-#define HAVE_MIG_RETCODE 1
-EOF
-
+if test -n "$sysheaders"; then
+  CPPFLAGS=$OLD_CPPFLAGS
 fi
+
+# Hurd has libpthread as a separate library.
+pthread_in_libc=no
+
This page took 0.02878 seconds and 5 git commands to generate.