From ccdc039c9d1f7b2efe23a156b2c72a50e64453e4 Mon Sep 17 00:00:00 2001 From: Manolis Ragkousis Date: Wed, 26 Aug 2015 23:48:33 +0200 Subject: 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. --- sysdeps/mach/hurd/configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sysdeps/mach/hurd/configure.ac') diff --git a/sysdeps/mach/hurd/configure.ac b/sysdeps/mach/hurd/configure.ac index b1f16a569e..af9a9ea052 100644 --- a/sysdeps/mach/hurd/configure.ac +++ b/sysdeps/mach/hurd/configure.ac @@ -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 ], [ @@ -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 -- cgit 1.4.1