summaryrefslogtreecommitdiff
path: root/m4/ax_cflags_strict_prototypes.m4
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-01-14 01:54:54 -0500
committerPeter Simons <simons@cryp.to>2014-01-15 17:43:42 +0100
commit1156e1362b82616ec34ab037fd334f4bf1c7f7c4 (patch)
tree5b63c85920e69a1f041392180868aadce304ae0d /m4/ax_cflags_strict_prototypes.m4
parentbd4346fac3bb29dec51255da53ba4b478b634b47 (diff)
downloadautoconf-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_strict_prototypes.m4')
-rw-r--r--m4/ax_cflags_strict_prototypes.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_cflags_strict_prototypes.m4 b/m4/ax_cflags_strict_prototypes.m4
index 2ac34be..3ad4bf0 100644
--- a/m4/ax_cflags_strict_prototypes.m4
+++ b/m4/ax_cflags_strict_prototypes.m4
@@ -58,7 +58,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 12
+#serial 13
AC_DEFUN([AX_FLAGS_STRICT_PROTOTYPES],[dnl
AS_VAR_PUSHDEF([FLAGS],[_AC_LANG_PREFIX[]FLAGS])dnl
@@ -96,7 +96,7 @@ esac
FLAGS="$ac_save_[]FLAGS"
])
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])])]) ;;