]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/mach/hurd/configure.ac
82d085af33701aa27f0177a88b5a8209c1d260f9
[thirdparty/glibc.git] / sysdeps / mach / hurd / configure.ac
1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2
3 dnl We need this setting because of the need for PLT calls in ld.so.
4 dnl See Roland's comment in
5 dnl https://sourceware.org/bugzilla/show_bug.cgi?id=15605
6 AC_DEFINE([NO_RTLD_HIDDEN])
7
8 if test -n "$sysheaders"; then
9 OLD_CPPFLAGS=$CPPFLAGS
10 CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
11 fi
12
13 AC_CACHE_CHECK(Hurd header version, libc_cv_hurd_version, [dnl
14 AC_PREPROC_IFELSE([AC_LANG_PROGRAM(dnl
15 [[#include <hurd/version.h>]], [[
16 #define NEED_VERSION 20020609
17 #if HURD_INTERFACE_VERSION < NEED_VERSION
18 # error Hurd version too old: HURD_INTERFACE_VERSION < NEED_VERSION
19 #endif]])],
20 [libc_cv_hurd_version=ok],
21 [libc_cv_hurd_version=bad])])
22 if test "x$libc_cv_hurd_version" != xok; then
23 AC_MSG_ERROR(Hurd headers not installed or too old)
24 fi
25
26 if test -n "$sysheaders"; then
27 CPPFLAGS=$OLD_CPPFLAGS
28 fi
29
30 # Hurd has libpthread as a separate library.
31 pthread_in_libc=no