[mpich2-commits] r6728 - mpich2/trunk/confdb
goodell at mcs.anl.gov
goodell at mcs.anl.gov
Mon May 24 15:54:42 CDT 2010
Author: goodell
Date: 2010-05-24 15:54:42 -0500 (Mon, 24 May 2010)
New Revision: 6728
Modified:
mpich2/trunk/confdb/aclocal_cc.m4
Log:
add support for --enable-strict=c99
Some optional software (like hwloc) only builds when we have
C99 available. In order to test these cases and retain strict
errors and warnings, this commit adds a "c99" strict flavor.
Reviewed by balaji at .
Modified: mpich2/trunk/confdb/aclocal_cc.m4
===================================================================
--- mpich2/trunk/confdb/aclocal_cc.m4 2010-05-24 19:52:25 UTC (rev 6727)
+++ mpich2/trunk/confdb/aclocal_cc.m4 2010-05-24 20:54:42 UTC (rev 6728)
@@ -525,7 +525,6 @@
-Winvalid-pch
-Wno-pointer-sign
-Wvariadic-macros
- -std=c89
-Wno-format-zero-length
-Wno-type-limits
"
@@ -534,18 +533,28 @@
yes|all|posix)
enable_strict_done="yes"
pac_cc_strict_flags="-O2 $pac_common_strict_flags -D_POSIX_C_SOURCE=199506L"
+ PAC_APPEND_FLAG([-std=c89],[pac_cc_strict_flags])
;;
+ # sometimes we want to assume c99 but still want strict warnings/errors
+ c99)
+ enable_strict_done="yes"
+ pac_cc_strict_flags="-O2 $pac_common_strict_flags -D_POSIX_C_SOURCE=199506L"
+ PAC_APPEND_FLAG([-std=c99],[pac_cc_strict_flags])
+ ;;
+
noposix)
enable_strict_done="yes"
pac_cc_strict_flags="-O2 $pac_common_strict_flags"
+ PAC_APPEND_FLAG([-std=c89],[pac_cc_strict_flags])
;;
noopt)
enable_strict_done="yes"
pac_cc_strict_flags="$pac_common_strict_flags -D_POSIX_C_SOURCE=199506L"
+ PAC_APPEND_FLAG([-std=c89],[pac_cc_strict_flags])
;;
-
+
no)
# Accept and ignore this value
:
More information about the mpich2-commits
mailing list