Mercurial > hg > octave-nkf > gnulib-hg
changeset 10792:0d9e838c523c
warnings: Add AC_SUBST.
2008-11-11 Paolo Bonzini <bonzini@gnu.org>
* m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
(gl_WARN_ADD): Substitute $2 if literal.
author | Paolo Bonzini <bonzini@gnu.org> |
---|---|
date | Tue, 11 Nov 2008 13:42:48 +0100 |
parents | a4eb9ce2e778 |
children | 59bb86777cb9 |
files | ChangeLog m4/warnings.m4 |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-11 Paolo Bonzini <bonzini@gnu.org> + + * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS. + (gl_WARN_ADD): Substitute $2 if literal. + 2008-11-11 Paolo Bonzini <bonzini@gnu.org> * m4/warning.m4: Remove.
--- a/m4/warnings.m4 +++ b/m4/warnings.m4 @@ -9,8 +9,8 @@ # gl_WARN_INIT # Initializes WARN_CFLAGS variable. AC_DEFUN([gl_WARN_INIT], -[ - AC_ARG_VAR(WARN_CFLAGS, [C compiler warning flags]) +[AC_SUBST([WARN_CFLAGS])dnl +AC_ARG_VAR([WARN_CFLAGS], [C compiler warning flags]) ]) # gl_AS_VAR_IF(VAR, VALUE, [IF-MATCH], [IF-NOT-MATCH]) @@ -47,4 +47,5 @@ gl_AS_VAR_IF([gl_Warn], [yes], [gl_AS_VAR_APPEND([gl_Flags], [" $1"])]) AS_VAR_POPDEF([gl_Flags])dnl AS_VAR_POPDEF([gl_Warn])dnl +AS_LITERAL_IF([$2], [AC_SUBST([$2])], [])dnl ])