diff options
author | Corey Farrell <git@cfware.com> | 2017-12-02 16:55:31 -0500 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2017-12-02 15:59:55 -0600 |
commit | f5cfd87c4a1d7359877504217ed7dd32c6d129fc (patch) | |
tree | 446e73d80b05d5991171ec957dfb6ea5b08c1143 /autoconf/ast_ext_lib.m4 | |
parent | 0cdd31ee1044344b3dccf826f5dd72f46bc804ee (diff) |
autoconf: Remove use of m4_ifblank.
The m4_ifblank macro is not available on CentOS 6, reverse conditionals
to allow use of m4_ifval instead. ./bootstrap.sh was run but this patch
does not result in any difference to the generated configure script.
Change-Id: I280785deb872ed8d3339d99cce63a2b54d5f1438
Diffstat (limited to 'autoconf/ast_ext_lib.m4')
-rw-r--r-- | autoconf/ast_ext_lib.m4 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/autoconf/ast_ext_lib.m4 b/autoconf/ast_ext_lib.m4 index e8ce2013d..080b8c34d 100644 --- a/autoconf/ast_ext_lib.m4 +++ b/autoconf/ast_ext_lib.m4 @@ -117,14 +117,14 @@ if test "x${PBX_$1}" != "x1" -a "${USE_$1}" != "no"; then pbxlibdir="-L${$1_DIR}" fi fi - m4_ifblank([$3], [ - # empty lib, assume only headers - AST_$1_FOUND=yes - ], [ + m4_ifval([$3], [ ast_ext_lib_check_save_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} $6" AC_CHECK_LIB([$2], [$3], [AST_$1_FOUND=yes], [AST_$1_FOUND=no], [${pbxlibdir} $5]) CFLAGS="${ast_ext_lib_check_save_CFLAGS}" + ], [ + # empty lib, assume only headers + AST_$1_FOUND=yes ]) # now check for the header. @@ -135,21 +135,21 @@ if test "x${PBX_$1}" != "x1" -a "${USE_$1}" != "no"; then $1_INCLUDE="-I${$1_DIR}/include" fi $1_INCLUDE="${$1_INCLUDE} $6" - m4_ifblank([$4], [ - # no header, assume found - $1_HEADER_FOUND="1" - ], [ + m4_ifval([$4], [ # check for the header ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${$1_INCLUDE}" AC_CHECK_HEADER([$4], [$1_HEADER_FOUND=1], [$1_HEADER_FOUND=0]) CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}" + ], [ + # no header, assume found + $1_HEADER_FOUND="1" ]) if test "x${$1_HEADER_FOUND}" = "x0" ; then $1_LIB="" $1_INCLUDE="" else - m4_ifblank([$3], [ + m4_ifval([$3], [], [ # only checking headers -> no library $1_LIB="" ]) |