aboutsummaryrefslogtreecommitdiff
path: root/config/acx.m4
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@mvista.com>2003-09-25 14:27:52 +0000
committerDaniel Jacobowitz <drow@gcc.gnu.org>2003-09-25 14:27:52 +0000
commit029e256e270438578036af00bae2fe084b5cd412 (patch)
treea58060851e2ef59de865d6488c30bdca79ee567b /config/acx.m4
parentb033df907256b5de45f131094aa6a16b5ee85728 (diff)
downloadgcc-029e256e270438578036af00bae2fe084b5cd412.zip
gcc-029e256e270438578036af00bae2fe084b5cd412.tar.gz
gcc-029e256e270438578036af00bae2fe084b5cd412.tar.bz2
* acx.m4 (AC_PROG_CPP_WERROR): New.
From-SVN: r71776
Diffstat (limited to 'config/acx.m4')
-rw-r--r--config/acx.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/config/acx.m4 b/config/acx.m4
index ea5cb07..96b7c8a 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