diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-01-14 01:54:54 -0500 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2014-01-15 17:43:42 +0100 |
commit | 1156e1362b82616ec34ab037fd334f4bf1c7f7c4 (patch) | |
tree | 5b63c85920e69a1f041392180868aadce304ae0d /m4/ax_cflags_force_c89.m4 | |
parent | bd4346fac3bb29dec51255da53ba4b478b634b47 (diff) | |
download | autoconf-archive-1156e1362b82616ec34ab037fd334f4bf1c7f7c4.tar.gz |
AX_REQUIRE_DEFINED: new helper for requiring macros exist
In cases where we want to require that a macro exists, but not call it,
introduce a new AX_REQUIRE_DEFINED helper. The existing AC_REQUIRE macro
will call its argument and does not allow for passing of additional args
to the macro.
Once we have this in place, cut a few callers over to it to fix bugs where
they'd accidentally call other helpers w/out any flags.
Diffstat (limited to 'm4/ax_cflags_force_c89.m4')
-rw-r--r-- | m4/ax_cflags_force_c89.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_cflags_force_c89.m4 b/m4/ax_cflags_force_c89.m4 index 19ada7f..1597b25 100644 --- a/m4/ax_cflags_force_c89.m4 +++ b/m4/ax_cflags_force_c89.m4 @@ -55,7 +55,7 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 8 +#serial 9 AC_DEFUN([AX_CFLAGS_FORCE_C89],[dnl AS_VAR_PUSHDEF([FLAGS],[CFLAGS])dnl @@ -83,7 +83,7 @@ done AC_LANG_RESTORE ]) AS_VAR_POPDEF([FLAGS])dnl -AC_REQUIRE([AX_APPEND_FLAG]) +AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) case ".$VAR" in .ok|.ok,*) m4_ifvaln($3,$3) ;; .|.no|.no,*) m4_default($4,[m4_ifval($2,[AX_APPEND_FLAG([$2], [$1])])]) ;; |