a5bd9f6
From cb6d50b03d383cae32b0fbe308acc76c9d041fc6 Mon Sep 17 00:00:00 2001
a5bd9f6
From: =?UTF-8?q?Gr=C3=A9goire=20Sutre?= <gregoire.sutre@gmail.com>
a5bd9f6
Date: Sun, 5 Aug 2012 16:49:03 +0200
a5bd9f6
Subject: [PATCH 020/364] Strengthen the configure test for working -nostdinc
a5bd9f6
 -isystem.
a5bd9f6
a5bd9f6
---
a5bd9f6
 ChangeLog    | 4 ++++
a5bd9f6
 configure.ac | 1 +
a5bd9f6
 2 files changed, 5 insertions(+)
a5bd9f6
a5bd9f6
diff --git a/ChangeLog b/ChangeLog
a5bd9f6
index dd1fda8..a0a81b1 100644
a5bd9f6
--- a/ChangeLog
a5bd9f6
+++ b/ChangeLog
a5bd9f6
@@ -1,3 +1,7 @@
a5bd9f6
+2012-08-05  Grégoire Sutre  <gregoire.sutre@gmail.com>
a5bd9f6
+
a5bd9f6
+	* configure.ac: Strengthen the test for working -nostdinc -isystem.
a5bd9f6
+
a5bd9f6
 2012-07-31  Grégoire Sutre  <gregoire.sutre@gmail.com>
a5bd9f6
 
a5bd9f6
 	* po/POTFILES.in: Regenerated.
a5bd9f6
diff --git a/configure.ac b/configure.ac
a5bd9f6
index 91b36d0..190665d 100644
a5bd9f6
--- a/configure.ac
a5bd9f6
+++ b/configure.ac
a5bd9f6
@@ -717,6 +717,7 @@ AC_CACHE_CHECK([whether -nostdinc -isystem works], [grub_cv_cc_isystem], [
a5bd9f6
   SAVED_CPPFLAGS="$CPPFLAGS"
a5bd9f6
   CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
a5bd9f6
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>
a5bd9f6
+#include <stddef.h>
a5bd9f6
 int va_arg_func (int fixed, va_list args);]], [[]])],
a5bd9f6
       [grub_cv_cc_isystem=yes],
a5bd9f6
       [grub_cv_cc_isystem=no])
a5bd9f6
-- 
a5bd9f6
1.8.1.4
a5bd9f6