1*7c568831SAndroid Build Coastguard Worker# =========================================================================== 2*7c568831SAndroid Build Coastguard Worker# https://www.gnu.org/software/autoconf-archive/ax_require_defined.html 3*7c568831SAndroid Build Coastguard Worker# =========================================================================== 4*7c568831SAndroid Build Coastguard Worker# 5*7c568831SAndroid Build Coastguard Worker# SYNOPSIS 6*7c568831SAndroid Build Coastguard Worker# 7*7c568831SAndroid Build Coastguard Worker# AX_REQUIRE_DEFINED(MACRO) 8*7c568831SAndroid Build Coastguard Worker# 9*7c568831SAndroid Build Coastguard Worker# DESCRIPTION 10*7c568831SAndroid Build Coastguard Worker# 11*7c568831SAndroid Build Coastguard Worker# AX_REQUIRE_DEFINED is a simple helper for making sure other macros have 12*7c568831SAndroid Build Coastguard Worker# been defined and thus are available for use. This avoids random issues 13*7c568831SAndroid Build Coastguard Worker# where a macro isn't expanded. Instead the configure script emits a 14*7c568831SAndroid Build Coastguard Worker# non-fatal: 15*7c568831SAndroid Build Coastguard Worker# 16*7c568831SAndroid Build Coastguard Worker# ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found 17*7c568831SAndroid Build Coastguard Worker# 18*7c568831SAndroid Build Coastguard Worker# It's like AC_REQUIRE except it doesn't expand the required macro. 19*7c568831SAndroid Build Coastguard Worker# 20*7c568831SAndroid Build Coastguard Worker# Here's an example: 21*7c568831SAndroid Build Coastguard Worker# 22*7c568831SAndroid Build Coastguard Worker# AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) 23*7c568831SAndroid Build Coastguard Worker# 24*7c568831SAndroid Build Coastguard Worker# LICENSE 25*7c568831SAndroid Build Coastguard Worker# 26*7c568831SAndroid Build Coastguard Worker# Copyright (c) 2014 Mike Frysinger <[email protected]> 27*7c568831SAndroid Build Coastguard Worker# 28*7c568831SAndroid Build Coastguard Worker# Copying and distribution of this file, with or without modification, are 29*7c568831SAndroid Build Coastguard Worker# permitted in any medium without royalty provided the copyright notice 30*7c568831SAndroid Build Coastguard Worker# and this notice are preserved. This file is offered as-is, without any 31*7c568831SAndroid Build Coastguard Worker# warranty. 32*7c568831SAndroid Build Coastguard Worker 33*7c568831SAndroid Build Coastguard Worker#serial 2 34*7c568831SAndroid Build Coastguard Worker 35*7c568831SAndroid Build Coastguard WorkerAC_DEFUN([AX_REQUIRE_DEFINED], [dnl 36*7c568831SAndroid Build Coastguard Worker m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])]) 37*7c568831SAndroid Build Coastguard Worker])dnl AX_REQUIRE_DEFINED 38