Merge branch '4524_cleanup'
[midnight-commander.git] / m4.include / ax_require_defined.m4
blob17c3eab7dafde6c1358c7c189bbe44a6e14995a7
1 # ===========================================================================
2 #    https://www.gnu.org/software/autoconf-archive/ax_require_defined.html
3 # ===========================================================================
5 # SYNOPSIS
7 #   AX_REQUIRE_DEFINED(MACRO)
9 # DESCRIPTION
11 #   AX_REQUIRE_DEFINED is a simple helper for making sure other macros have
12 #   been defined and thus are available for use.  This avoids random issues
13 #   where a macro isn't expanded.  Instead the configure script emits a
14 #   non-fatal:
16 #     ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found
18 #   It's like AC_REQUIRE except it doesn't expand the required macro.
20 #   Here's an example:
22 #     AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG])
24 # LICENSE
26 #   Copyright (c) 2014 Mike Frysinger <vapier@gentoo.org>
28 #   Copying and distribution of this file, with or without modification, are
29 #   permitted in any medium without royalty provided the copyright notice
30 #   and this notice are preserved. This file is offered as-is, without any
31 #   warranty.
33 #serial 2
35 AC_DEFUN([AX_REQUIRE_DEFINED], [dnl
36   m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])])
37 ])dnl AX_REQUIRE_DEFINED