- fix bug #9282 (bad configure check for libcurl version)
[m6w6/ext-http] / config9.m4
index 8ad36a39f6eac84ab79f3e5b30b7d43fb49a880a..8bedac7fec173d1f098ce9e709ed4acf7871160b 100644 (file)
@@ -170,7 +170,7 @@ dnl ----
                AC_MSG_CHECKING([for curl version >= 7.12.3])
                CURL_VERSION=`$CURL_CONFIG --version | $SED -e 's/[[^0-9\.]]//g'`
                AC_MSG_RESULT([$CURL_VERSION])
-               if test `echo $CURL_VERSION | $AWK '{print $1*10000 + $2*100 + $3}'` -lt 71203; then
+               if test `echo $CURL_VERSION | $SED -e 's/[[^0-9]]/ /g' | $AWK '{print $1*10000 + $2*100 + $3}'` -lt 71203; then
                        AC_MSG_ERROR([libcurl version greater or equal to 7.12.3 required])
                fi