mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
autoconf: Use m4 conditionals where possible.
Change-Id: I530c0a72f965437acef6a9a4fbfe5c487f078b65
This commit is contained in:
@@ -4,11 +4,7 @@
|
||||
AC_DEFUN([AST_C_COMPILE_CHECK],
|
||||
[
|
||||
if test "x${PBX_$1}" != "x1" -a "${USE_$1}" != "no"; then
|
||||
if test "x$5" != "x"; then
|
||||
AC_MSG_CHECKING([for $5])
|
||||
else
|
||||
AC_MSG_CHECKING([if "$2" compiles using $3])
|
||||
fi
|
||||
AC_MSG_CHECKING(m4_ifval([$5],[for $5],[if "$2" compiles using $3]))
|
||||
saved_cppflags="${CPPFLAGS}"
|
||||
if test "x${$1_DIR}" != "x"; then
|
||||
$1_INCLUDE="-I${$1_DIR}/include"
|
||||
|
Reference in New Issue
Block a user