about summary refs log tree commit diff
path: root/configure.in
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2008-02-01 00:20:11 +0000
committerRoland McGrath <roland@gnu.org>2008-02-01 00:20:11 +0000
commit67fbfa5ca15f75774dcb3794aceb06aa42544c94 (patch)
treeae838cac91829ccc16353dd496d1e411fd6623bc /configure.in
parent363a641b1c856bf497840c6f7ed975366b48eb0e (diff)
downloadglibc-67fbfa5ca15f75774dcb3794aceb06aa42544c94.tar.gz
glibc-67fbfa5ca15f75774dcb3794aceb06aa42544c94.tar.xz
glibc-67fbfa5ca15f75774dcb3794aceb06aa42544c94.zip
	* configure.in: Use -print-file-name if it yields a directory,
	for each of include and include-fixed.
	* configure: Regenerated.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 6ea1b26ff3..3098ebfd3d 100644
--- a/configure.in
+++ b/configure.in
@@ -914,8 +914,12 @@ test -n "$aux_missing" && AC_MSG_WARN([
 # header directory and add that to the list.  NOTE: Only does the right
 # thing on a system that doesn't need fixincludes.  (Not presently a problem.)
 if test -n "$sysheaders"; then
-  ccheaders=`$CC -print-file-name=include`
-  SYSINCLUDES="-nostdinc -isystem $ccheaders \
+  SYSINCLUDES=-nostdinc
+  for d in include include-fixed; do
+    i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
+    SYSINCLUDES="$SYSINCLUDES -isystem $i"
+  done
+  SYSINCLUDES="$SYSINCLUDES \
 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
   if test -n "$CXX"; then
     cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` &&