From: Jason Parker Date: Tue, 5 Dec 2006 20:42:52 +0000 (+0000) Subject: Fix curl version number testing to be much more friendly to non-bash shells. X-Git-Tag: 1.4.0-beta4~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7bad11f0b6f4e6d455067bab83eb2639ffd5e4e9;p=thirdparty%2Fasterisk.git Fix curl version number testing to be much more friendly to non-bash shells. Issue 8508, patch by me. This *SHOULD* be POSIX compliant now.. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48279 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/configure.ac b/configure.ac index e8ce5cc4c8..409e376d76 100644 --- a/configure.ac +++ b/configure.ac @@ -1033,22 +1033,13 @@ if test "${USE_CURL}" != "no"; then AC_PATH_TOOL([CURL], [curl-config], No) if test ! x"${CURL}" = xNo; then # check for version - if test "${host_os}" = "SunOS"; then - 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 - 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 + if test $(printf "%d" 0x$(curl-config --vernum)) -ge $(printf "%d" 0x070907); 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 AC_CONFIG_FILES([build_tools/menuselect-deps makeopts channels/h323/Makefile])