if curl-config --static-libs returns nothing, use the regular --libs option

This commit is contained in:
Timothy Stack 2015-12-04 20:07:33 -08:00
parent 47230920a1
commit 6e0026dabc
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
if test x"$LIBCURL" = "x" ; then
if $5; then
LIBCURL=`$_libcurl_config --static-libs`
if test x"$LIBCURL" = "x"; then
LIBCURL=`$_libcurl_config --libs`
fi
else
LIBCURL=`$_libcurl_config --libs`
fi