mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 17:53:37 +08:00
Check sysheaders when looking for Mach and Hurd headers
* sysdeps/mach/configure.ac: Add sysheaders check. * sysdeps/mach/configure: Regenerate. * sysdeps/mach/hurd/configure.ac: Add sysheaders check. * sysdeps/mach/hurd/configure: Regenerate.
This commit is contained in:
parent
bd9e69abb8
commit
ccdc039c9d
@ -1,3 +1,12 @@
|
||||
2015-09-06 Manolis Ragkousis <manolis837@gmail.com>
|
||||
|
||||
Check sysheaders when looking for Mach and Hurd headers
|
||||
|
||||
* sysdeps/mach/configure.ac: Add sysheaders check.
|
||||
* sysdeps/mach/configure: Regenerate.
|
||||
* sysdeps/mach/hurd/configure.ac: Add sysheaders check.
|
||||
* sysdeps/mach/hurd/configure: Regenerate.
|
||||
|
||||
2015-09-04 Roland McGrath <roland@hack.frob.com>
|
||||
|
||||
[BZ #18921]
|
||||
|
9
sysdeps/mach/configure
vendored
9
sysdeps/mach/configure
vendored
@ -165,6 +165,11 @@ fi
|
||||
config_vars="$config_vars
|
||||
MIG = $MIG"
|
||||
|
||||
if test -n "$sysheaders"; then
|
||||
OLD_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
|
||||
fi
|
||||
|
||||
### Sanity checks for Mach header installation
|
||||
|
||||
|
||||
@ -553,3 +558,7 @@ if test $hurd_cv_mig_retcode = yes; then
|
||||
$as_echo "#define HAVE_MIG_RETCODE 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
if test -n "$sysheaders"; then
|
||||
CPPFLAGS=$OLD_CPPFLAGS
|
||||
fi
|
||||
|
@ -6,6 +6,11 @@ if test "x$MIG" = xMISSING; then
|
||||
fi
|
||||
LIBC_CONFIG_VAR([MIG], [$MIG])
|
||||
|
||||
if test -n "$sysheaders"; then
|
||||
OLD_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
|
||||
fi
|
||||
|
||||
### Sanity checks for Mach header installation
|
||||
AC_CHECK_HEADER(mach/mach_types.h,,
|
||||
[AC_MSG_ERROR([cannot find Mach headers])], -)
|
||||
@ -124,3 +129,7 @@ if test $hurd_cv_mig_retcode = yes; then
|
||||
fi])
|
||||
|
||||
hurd_MIG_RETCODE
|
||||
|
||||
if test -n "$sysheaders"; then
|
||||
CPPFLAGS=$OLD_CPPFLAGS
|
||||
fi
|
||||
|
9
sysdeps/mach/hurd/configure
vendored
9
sysdeps/mach/hurd/configure
vendored
@ -3,6 +3,11 @@
|
||||
$as_echo "#define NO_HIDDEN 1" >>confdefs.h
|
||||
|
||||
|
||||
if test -n "$sysheaders"; then
|
||||
OLD_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
|
||||
fi
|
||||
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Hurd header version" >&5
|
||||
$as_echo_n "checking Hurd header version... " >&6; }
|
||||
@ -36,3 +41,7 @@ $as_echo "$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
|
||||
|
||||
if test -n "$sysheaders"; then
|
||||
CPPFLAGS=$OLD_CPPFLAGS
|
||||
fi
|
||||
|
@ -3,6 +3,11 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
|
||||
dnl We need this setting because of the need for PLT calls in ld.so.
|
||||
AC_DEFINE([NO_HIDDEN])
|
||||
|
||||
if test -n "$sysheaders"; then
|
||||
OLD_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK(Hurd header version, libc_cv_hurd_version, [dnl
|
||||
AC_TRY_COMPILE(dnl
|
||||
[#include <hurd/version.h>], [
|
||||
@ -15,3 +20,7 @@ AC_TRY_COMPILE(dnl
|
||||
if test "x$libc_cv_hurd_version" != xok; then
|
||||
AC_MSG_ERROR(Hurd headers not installed or too old)
|
||||
fi
|
||||
|
||||
if test -n "$sysheaders"; then
|
||||
CPPFLAGS=$OLD_CPPFLAGS
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user