summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-09-25 14:27:21 +0000
committerDaniel Jacobowitz <drow@false.org>2003-09-25 14:27:21 +0000
commit284d80c385e7e328fe877b1c86d0bb34c2a4fe5f (patch)
tree0dcabf3e4f97aadb9657b949523ba25dc60acd1a /config
parentd20c4a577d027f6ba5c8497b610317c68fb661ce (diff)
downloadcygnal-284d80c385e7e328fe877b1c86d0bb34c2a4fe5f.tar.gz
cygnal-284d80c385e7e328fe877b1c86d0bb34c2a4fe5f.tar.bz2
cygnal-284d80c385e7e328fe877b1c86d0bb34c2a4fe5f.zip
* acx.m4 (AC_PROG_CPP_WERROR): New.
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog4
-rw-r--r--config/acx.m415
2 files changed, 19 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index 7a7605bc4..2ea4e1574 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2003-09-24 Daniel Jacobowitz <drow@mvista.com>
+
+ * acx.m4 (AC_PROG_CPP_WERROR): New.
+
2003-07-07 Zack Weinberg <zack@codesourcery.com>
* gettext.m4: Delete all former contents.
diff --git a/config/acx.m4 b/config/acx.m4
index ea5cb07dc..96b7c8a5c 100644
--- a/config/acx.m4
+++ b/config/acx.m4
@@ -140,3 +140,18 @@ else
$1="$ac_cv_prog_$1"
fi
]) []dnl # NCN_STRICT_CHECK_TARGET_TOOL
+
+###
+# AC_PROG_CPP_WERROR
+# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
+# triggers warnings from the preprocessor. Will be in autoconf 2.58.
+# For now, using this also overrides header checks to use only the
+# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
+# bit harder from here).
+# Eventually autoconf will default to checking headers with the compiler
+# instead, and we'll have to do this differently.
+
+AC_DEFUN([AC_PROG_CPP_WERROR],
+[AC_REQUIRE([AC_PROG_CPP])dnl
+m4_define([AC_CHECK_HEADER],m4_defn([_AC_CHECK_HEADER_OLD]))
+ac_c_preproc_warn_flag=yes])# AC_PROG_CPP_WERROR