1 sinclude(./aclocal.m4)dnl Autoconf lossage.
2 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
4 # GNU libc on the Hurd is always reentrant.
5 DEFINES="$DEFINES -D_LIBC_REENTRANT"
7 dnl We need this setting because of the need for PLT calls in ld.so.
10 # Don't bother trying to generate any glue code to be compatible with the
11 # existing system library, because we are the only system library.
14 if test "x$prefix" != x; then
15 AC_MSG_WARN([--prefix= (empty) is required for GNU/Hurd to work normally])
20 # The default oldest ABI is 2.2.6.
21 # We only need a "yes" here if the oldest ABI supported will be < 2.2.6.
22 if test "$oldest_abi" != default && test "$oldest_abi" \< "2.2.6"; then
23 libc_cv_gcc_unwind_find_fde=yes
28 AC_CACHE_CHECK(Hurd header version, libc_cv_hurd_version, [dnl
30 [#include <hurd/version.h>], [
31 #define NEED_VERSION 20020609
32 #if HURD_INTERFACE_VERSION < NEED_VERSION
33 # error Hurd version too old: HURD_INTERFACE_VERSION < NEED_VERSION
35 libc_cv_hurd_version=ok,
36 libc_cv_hurd_version=bad)])
37 if test "x$libc_cv_hurd_version" != xok; then
38 AC_MSG_ERROR(Hurd headers not installed or too old)
41 dnl Swiped from hurd/aclocal.m4
42 AC_DEFUN([hurd_MIG_RETCODE], [dnl
43 # See if mig groks `retcode'.
44 AC_CACHE_CHECK(whether $MIG supports the retcode keyword, hurd_cv_mig_retcode,
45 [cat > conftest.defs <<\EOF
46 #include <mach/std_types.defs>
47 #include <mach/mach_types.defs>
48 subsystem foobar 1000;
49 type reply_port_t = polymorphic | MACH_MSG_TYPE_PORT_SEND_ONCE
51 simpleroutine foobar_reply (
52 reply_port: reply_port_t;
53 err: kern_return_t, RetCode);
55 if AC_TRY_COMMAND([CC="${CC}" ${MIG-false} -n conftest.defs 1>&AC_FD_CC]); then
56 hurd_cv_mig_retcode=yes
58 hurd_cv_mig_retcode=no
61 if test $hurd_cv_mig_retcode = yes; then
62 AC_DEFINE(HAVE_MIG_RETCODE)