diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2006-07-15 21:39:26 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2006-07-15 21:39:26 +0000 |
commit | d99e7d4f8edd8afb9833fbf7c688f118cfc33ba9 (patch) | |
tree | 05bd9b6d6ee6257d0f444f539cee521b62cfe616 /configure.ac | |
parent | a077853b172cd64eb79f17d2f4732a9a009264ef (diff) |
Move curl version test to autoconf script
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 853bdb25f..10dd52275 100644 --- a/configure.ac +++ b/configure.ac @@ -879,9 +879,19 @@ PBX_CURL=0 AC_PATH_TOOL([CURL], [curl-config], No) if test ! x"${CURL}" = xNo; then # check for version - CURLLIB=$(${CURL} --libs) - PBX_CURL=1 - AC_DEFINE([HAVE_CURL], 1, [Define if your system has the curl libraries.]) + if test $PBX_OSTYPE = "SunOS"; then + if [[ 0x`curl-config --vernum` -ge 0x70907 ]]; then + CURLLIB=$(${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 + CURLLIB=$(${CURL} --libs) + PBX_CURL=1 + AC_DEFINE([HAVE_CURL], 1, [Define if your system has the curl libraries.]) + fi + fi fi AC_SUBST(PBX_CURL) AC_SUBST(CURLLIB) |