1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-12-04 14:46:45 -05:00

Update to the latest (unreleased) version of ax_cflags_warn_all.m4

This commit is contained in:
John Zaitseff 2018-08-06 20:29:09 +10:00
parent 9d9a3befca
commit 83878efce2

View File

@ -79,7 +79,7 @@
# modified version of the Autoconf Macro, you may extend this special # modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well. # exception to the GPL to apply to your modified version as well.
#serial 17 #serial 18
AC_DEFUN([AX_FLAGS_WARN_ALL], [ AC_DEFUN([AX_FLAGS_WARN_ALL], [
AX_REQUIRE_DEFINED([AX_PREPEND_FLAG])dnl AX_REQUIRE_DEFINED([AX_PREPEND_FLAG])dnl
@ -90,31 +90,32 @@ AC_DEFUN([AX_FLAGS_WARN_ALL], [
AS_VAR_PUSHDEF([FOUND], [ac_save_[]_AC_LANG_ABBREV[]flags_warn_all_found])dnl AS_VAR_PUSHDEF([FOUND], [ac_save_[]_AC_LANG_ABBREV[]flags_warn_all_found])dnl
AC_CACHE_CHECK([FLAGS for most reasonable warnings], VAR, [ AC_CACHE_CHECK([FLAGS for most reasonable warnings], VAR, [
VAR=""
FOUND="yes" FOUND="yes"
dnl Cases are listed in the order found in ax_compiler_vendor.m4 dnl Cases are listed in the order found in ax_compiler_vendor.m4
AS_CASE("$ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor", AS_CASE("$ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor",
[intel], [VAR="-w2"], [intel], [VAR="-w2"],
[ibm], [VAR="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"], [ibm], [VAR="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"],
[pathscale], [VAR=""], [pathscale], [],
[clang], [VAR="-Wall"], [clang], [VAR="-Wall"],
[cray], [VAR="-h msglevel 2"], [cray], [VAR="-h msglevel 2"],
[fujitsu], [VAR=""], [fujitsu], [],
[sdcc], [VAR=""], [sdcc], [],
[sx], [VAR="-pvctl[,]fullmsg"], [sx], [VAR="-pvctl[,]fullmsg"],
[portland], [VAR=""], [portland], [],
[gnu], [VAR="-Wall"], [gnu], [VAR="-Wall"],
[sun], [VAR="-v"], [sun], [VAR="-v"],
[hp], [VAR="+w1"], [hp], [VAR="+w1"],
[dec], [VAR="-verbose -w0 -warnprotos"], [dec], [VAR="-verbose -w0 -warnprotos"],
[borland], [VAR=""], [borland], [],
[comeau], [VAR=""], [comeau], [],
[kai], [VAR=""], [kai], [],
[lcc], [VAR=""], [lcc], [],
[sgi], [VAR="-fullwarn"], [sgi], [VAR="-fullwarn"],
[microsoft], [VAR=""], [microsoft], [],
[metrowerks], [VAR=""], [metrowerks], [],
[watcom], [VAR=""], [watcom], [],
[tcc], [VAR=""], [tcc], [],
[unknown], [ [unknown], [
VAR="$2" VAR="$2"
FOUND="no" FOUND="no"
@ -127,7 +128,7 @@ AC_DEFUN([AX_FLAGS_WARN_ALL], [
) )
AS_IF([test "x$FOUND" = "xyes"], [dnl AS_IF([test "x$FOUND" = "xyes"], [dnl
m4_default($3, [AX_PREPEND_FLAG([$VAR], [FLAGS])]) m4_default($3, [AS_IF([test "x$VAR" != "x"], [AX_PREPEND_FLAG([$VAR], [FLAGS])])])
], [dnl ], [dnl
m4_default($4, [m4_ifval($2, [AX_PREPEND_FLAG([$VAR], [FLAGS])], [true])]) m4_default($4, [m4_ifval($2, [AX_PREPEND_FLAG([$VAR], [FLAGS])], [true])])
])dnl ])dnl