summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2017-12-02 16:55:31 -0500
committerCorey Farrell <git@cfware.com>2017-12-02 15:59:55 -0600
commitf5cfd87c4a1d7359877504217ed7dd32c6d129fc (patch)
tree446e73d80b05d5991171ec957dfb6ea5b08c1143 /autoconf
parent0cdd31ee1044344b3dccf826f5dd72f46bc804ee (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')
-rw-r--r--autoconf/ast_check_pwlib.m42
-rw-r--r--autoconf/ast_ext_lib.m418
-rw-r--r--autoconf/ast_gcc_attribute.m46
3 files changed, 13 insertions, 13 deletions
diff --git a/autoconf/ast_check_pwlib.m4 b/autoconf/ast_check_pwlib.m4
index 4588fa3b1..8ec2d58a0 100644
--- a/autoconf/ast_check_pwlib.m4
+++ b/autoconf/ast_check_pwlib.m4
@@ -200,7 +200,7 @@ AC_DEFUN([AST_CHECK_PWLIB_VERSION], [
$2_BUILD_NUMBER=`echo ${$2_VERSION} | cut -f3 -d.`
$2_VER=$((${$2_MAJOR_VERSION}*10000+${$2_MINOR_VERSION}*100+${$2_BUILD_NUMBER}))
$2_REQ=$(($4*10000+$5*100+$6))
- $2_MAX=m4_ifblank([$10], [9999999], [$(($8*10000+$9*100+$10))])
+ $2_MAX=m4_ifval([$10], [$(($8*10000+$9*100+$10))], [9999999])
AC_MSG_CHECKING(if $1 version ${$2_VERSION} is compatible with chan_h323)
if test ${$2_VER} -lt ${$2_REQ}; then
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=""
])
diff --git a/autoconf/ast_gcc_attribute.m4 b/autoconf/ast_gcc_attribute.m4
index 9d5a32045..0286853fc 100644
--- a/autoconf/ast_gcc_attribute.m4
+++ b/autoconf/ast_gcc_attribute.m4
@@ -11,9 +11,9 @@ ax_cv_have_func_attribute_$1=0
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
- m4_ifblank([$2],
- [$3 void __attribute__(($1)) *test(void *muffin, ...) {return (void *) 0;}],
- [$3 void __attribute__(($2)) *test(void *muffin, ...) ;]))],
+ m4_ifval([$2],
+ [$3 void __attribute__(($2)) *test(void *muffin, ...) ;],
+ [$3 void __attribute__(($1)) *test(void *muffin, ...) {return (void *) 0;}]))],
AC_MSG_RESULT(yes)
m4_ifval([$4],$4=1)
ax_cv_have_func_attribute_$1=1