7017ea4adcd31e3fdea261cc801c5019499bb374
[platform/upstream/glibc.git] / sysdeps / mach / hurd / configure
1  
2 # GNU libc on the Hurd is always reentrant.
3 DEFINES="$DEFINES -D_LIBC_REENTRANT"
4
5 # Don't bother trying to generate any glue code to be compatible with the
6 # existing system library, because we are the only system library.
7 inhibit_glue=yes
8
9 if test "x$prefix" != x; then
10   echo "configure: warning: --prefix= (empty) is required for GNU/Hurd to work normally" 1>&2
11 fi
12
13 case "$machine" in
14   i386*)
15     # The default oldest ABI is 2.2.6.
16     # We only need a "yes" here if the oldest ABI supported will be < 2.2.6.
17     if test "$oldest_abi" != default && test "$oldest_abi" \< "2.2.6"; then
18       libc_cv_gcc_unwind_find_fde=yes
19     fi
20     ;;
21 esac
22
23
24
25 # See if mig groks `retcode'.
26 echo $ac_n "checking whether $MIG supports the retcode keyword""... $ac_c" 1>&6
27 echo "configure:28: checking whether $MIG supports the retcode keyword" >&5
28 if eval "test \"`echo '$''{'hurd_cv_mig_retcode'+set}'`\" = set"; then
29   echo $ac_n "(cached) $ac_c" 1>&6
30 else
31   cat > conftest.defs <<\EOF
32 #include <mach/std_types.defs>
33 #include <mach/mach_types.defs>
34 subsystem foobar 1000;
35 type reply_port_t = polymorphic | MACH_MSG_TYPE_PORT_SEND_ONCE
36         ctype: mach_port_t;
37 simpleroutine foobar_reply (
38         reply_port: reply_port_t;
39         err: kern_return_t, RetCode);
40 EOF
41 if { ac_try='CC="${CC}" ${MIG-false} -n conftest.defs 1>&5'; { (eval echo configure:42: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
42   hurd_cv_mig_retcode=yes
43 else
44   hurd_cv_mig_retcode=no
45 fi
46 rm -f conftest*
47 fi
48
49 echo "$ac_t""$hurd_cv_mig_retcode" 1>&6
50 if test $hurd_cv_mig_retcode = yes; then
51   cat >> confdefs.h <<\EOF
52 #define HAVE_MIG_RETCODE 1
53 EOF
54
55 fi