autoconf -W error does not work.

* acgeneral.m4 (_AC_DIAGNOSE): use _AC_WARNING_IFELSE,
_AC_WARNING_ENABLE is dead.
This commit is contained in:
Akim Demaille 2000-07-19 09:20:19 +00:00
parent 6d6355c8ac
commit fcd8cd1260
3 changed files with 15 additions and 10 deletions

View File

@ -1,3 +1,10 @@
2000-07-19 Akim Demaille <akim@epita.fr>
autoconf -W error does not work.
* acgeneral.m4 (_AC_DIAGNOSE): use _AC_WARNING_IFELSE,
_AC_WARNING_ENABLE is dead.
2000-07-19 Akim Demaille <akim@epita.fr>
Martin Wilck found a Fortran 77 compiler which always exits with

View File

@ -2507,8 +2507,7 @@ s,@$1@,,;t t])])
# AC_WARNING_IFELSE(CATEGORY, IF-TRUE, IF-FALSE)
# ----------------------------------------------
# If the CATEGORY of warnings is enabled, expand IF_TRUE otherwise
# IF-FALSE. CATEGORY is enabled iff `AC_WARNING_ENABLE(CATEGORY)' or
# `AC_WARNING_ENABLE(all)' is defined.
# IF-FALSE.
#
# The variable `_AC_WARNINGS' contains a comma separated list of
# warnings which order is the converse from the one specified by
@ -2539,9 +2538,9 @@ define([_AC_WARNING_IFELSE],
# Report MESSAGE as a warning, unless the user requested -W error,
# in which case report a fatal error.
define([_AC_DIAGNOSE],
[ifdef([AC_WARNING_ENABLE(error)],
[m4_fatal([$1])],
[m4_warn([$1])])])
[AC_WARNING_IFELSE([error],
[m4_fatal([$1])],
[m4_warn([$1])])])
# AC_DIAGNOSE(CATEGORY, MESSAGE)

View File

@ -2507,8 +2507,7 @@ s,@$1@,,;t t])])
# AC_WARNING_IFELSE(CATEGORY, IF-TRUE, IF-FALSE)
# ----------------------------------------------
# If the CATEGORY of warnings is enabled, expand IF_TRUE otherwise
# IF-FALSE. CATEGORY is enabled iff `AC_WARNING_ENABLE(CATEGORY)' or
# `AC_WARNING_ENABLE(all)' is defined.
# IF-FALSE.
#
# The variable `_AC_WARNINGS' contains a comma separated list of
# warnings which order is the converse from the one specified by
@ -2539,9 +2538,9 @@ define([_AC_WARNING_IFELSE],
# Report MESSAGE as a warning, unless the user requested -W error,
# in which case report a fatal error.
define([_AC_DIAGNOSE],
[ifdef([AC_WARNING_ENABLE(error)],
[m4_fatal([$1])],
[m4_warn([$1])])])
[AC_WARNING_IFELSE([error],
[m4_fatal([$1])],
[m4_warn([$1])])])
# AC_DIAGNOSE(CATEGORY, MESSAGE)