Prefer curl-config from --with-libcurl

If "--with-libcurl" is passed, prefer using "curl-config" from directory instead of system provided
This commit is contained in:
Jia Yuan Lo 2020-05-02 16:12:03 +08:00 committed by GitHub
parent 3d779a55ed
commit 6a0a141ce3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
if test -d "$_libcurl_with" ; then
CPPFLAGS="${CPPFLAGS} -I$withval/include"
LDFLAGS="${LDFLAGS} -L$withval/lib"
PATH="$withval/bin:${PATH}"
fi
AC_PATH_PROG([_libcurl_config],[curl-config])