mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 15:00:06 +00:00
dde2f4a0b8
* config.h.in (HAVE_MIG_RETCODE): New #undef. * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE. * sysdeps/mach/hurd/configure: Regenerated.
61 lines
1.8 KiB
Plaintext
Executable File
61 lines
1.8 KiB
Plaintext
Executable File
|
|
# GNU libc on the Hurd is always reentrant.
|
|
DEFINES="$DEFINES -D_LIBC_REENTRANT"
|
|
|
|
# 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
|
|
|
|
if test "x$prefix" != x; then
|
|
echo "configure: warning: --prefix= (empty) is required for GNU/Hurd to work normally" 1>&2
|
|
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
|
|
fi
|
|
rm -f conftest*
|
|
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
|
|
|
|
fi
|