Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Koshura <[email protected]>
  • Loading branch information
AenBleidd committed Feb 7, 2025
1 parent 17198a1 commit dfe24e2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions m4/libcurl.m4
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
LIBCURL=`echo $LIBCURL -latomic`
;;
esac
# there is a bug with libcurl built with openssl using vcpkg
# that fails on this test binary only
# remove -pthread from LIBS to avoid the issue
LIBCURL=`echo $LIBCURL | sed -e 's|-pthread||g'`
fi
# All curl-config scripts support --feature
Expand Down Expand Up @@ -253,15 +258,15 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
AC_CACHE_CHECK([whether libcurl is usable],
[libcurl_cv_lib_curl_usable],
[
echo "CPPFLAGS: [${CPPFLAGS}] LIBS: [${LIBS}] LIBCURL:[${LIBCURL}]"
echo "CPPFLAGS: [${CPPFLAGS}] LIBCURL_CPPFLAGS: [$LIBCURL_CPPFLAGS] LIBS: [${LIBS}] LIBCURL:[${LIBCURL}]"
_libcurl_save_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
_libcurl_save_libs=$LIBS
# there is a bug with libcurl built with openssl using vcpkg
# that fails on this test binary only
# remove -pthread from LIBS to avoid the issue
LIBS="$LIBS $LIBCURL"
LIBS="`echo $LIBS | sed -e 's/-pthread//g'`"
# LIBS="`echo $LIBS | sed -e 's/-pthread//g'`"
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <curl/curl.h>],[
/* Try and use a few common options to force a failure if we are
Expand Down Expand Up @@ -294,7 +299,7 @@ x=CURLOPT_VERBOSE;
# that fails on this test binary only
# remove -pthread from LIBS to avoid the issue
LIBS="$LIBS $LIBCURL"
LIBS="`echo $LIBS | sed -e 's/-pthread//g'`"
# LIBS="`echo $LIBS | sed -e 's/-pthread//g'`"
AC_CHECK_FUNC(curl_free,,
AC_DEFINE(curl_free,free,
Expand Down

0 comments on commit dfe24e2

Please sign in to comment.