mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
This was silly. Nowhere else do we use [ or [[
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
15
configure
vendored
15
configure
vendored
@@ -29669,8 +29669,7 @@ fi
|
|||||||
|
|
||||||
if test ! x"${CURL}" = xNo; then
|
if test ! x"${CURL}" = xNo; then
|
||||||
# check for version
|
# check for version
|
||||||
if test "${host_os}" = "SunOS"; then
|
if test 0x`curl-config --vernum` -ge 0x70907 ; then
|
||||||
if [ 0x`curl-config --vernum` -ge 0x70907 ]; then
|
|
||||||
CURL_INCLUDE=$(${CURL} --cflags)
|
CURL_INCLUDE=$(${CURL} --cflags)
|
||||||
CURL_LIB=$(${CURL} --libs)
|
CURL_LIB=$(${CURL} --libs)
|
||||||
PBX_CURL=1
|
PBX_CURL=1
|
||||||
@@ -29680,18 +29679,6 @@ cat >>confdefs.h <<\_ACEOF
|
|||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
if [[ 0x`curl-config --vernum` -ge 0x70907 ]]; then
|
|
||||||
CURL_INCLUDE=$(${CURL} --cflags)
|
|
||||||
CURL_LIB=$(${CURL} --libs)
|
|
||||||
PBX_CURL=1
|
|
||||||
|
|
||||||
cat >>confdefs.h <<\_ACEOF
|
|
||||||
#define HAVE_CURL 1
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
11
configure.ac
11
configure.ac
@@ -960,21 +960,12 @@ PBX_CURL=0
|
|||||||
AC_PATH_TOOL([CURL], [curl-config], No)
|
AC_PATH_TOOL([CURL], [curl-config], No)
|
||||||
if test ! x"${CURL}" = xNo; then
|
if test ! x"${CURL}" = xNo; then
|
||||||
# check for version
|
# check for version
|
||||||
if test "${host_os}" = "SunOS"; then
|
if test 0x`curl-config --vernum` -ge 0x70907 ; then
|
||||||
if [[ 0x`curl-config --vernum` -ge 0x70907 ]]; then
|
|
||||||
CURL_INCLUDE=$(${CURL} --cflags)
|
CURL_INCLUDE=$(${CURL} --cflags)
|
||||||
CURL_LIB=$(${CURL} --libs)
|
CURL_LIB=$(${CURL} --libs)
|
||||||
PBX_CURL=1
|
PBX_CURL=1
|
||||||
AC_DEFINE([HAVE_CURL], 1, [Define if your system has the curl libraries.])
|
AC_DEFINE([HAVE_CURL], 1, [Define if your system has the curl libraries.])
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
if [[[ 0x`curl-config --vernum` -ge 0x70907 ]]]; then
|
|
||||||
CURL_INCLUDE=$(${CURL} --cflags)
|
|
||||||
CURL_LIB=$(${CURL} --libs)
|
|
||||||
PBX_CURL=1
|
|
||||||
AC_DEFINE([HAVE_CURL], 1, [Define if your system has the curl libraries.])
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
AC_SUBST(PBX_CURL)
|
AC_SUBST(PBX_CURL)
|
||||||
AC_SUBST(CURL_INCLUDE)
|
AC_SUBST(CURL_INCLUDE)
|
||||||
|
Reference in New Issue
Block a user