summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-08-06 10:31:54 +0200
committerWerner Koch <wk@gnupg.org>2014-03-07 09:54:43 +0100
commit5ca482d5f949444ffd453de158ee186ab07fc9b6 (patch)
treed6b5f9fa18784602e476ab06910e882611bf6c84 /m4
parentgpg: Remove legacy keyserver examples from the template conf file. (diff)
downloadgnupg2-5ca482d5f949444ffd453de158ee186ab07fc9b6.tar.xz
gnupg2-5ca482d5f949444ffd453de158ee186ab07fc9b6.zip
Improve libcurl detection.
* m4/libcurl.m4: Do not use AC_PATH_PROG if --with-libcurl as been given. Suggested by John Marshall. -- GnuPG-bug-id: 1510 (cherry picked from commit 110b52fffa77b339e6d59eba939408f7e87e7138)
Diffstat (limited to 'm4')
-rw-r--r--m4/libcurl.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/m4/libcurl.m4 b/m4/libcurl.m4
index 7d1dbd302..f6a631bc2 100644
--- a/m4/libcurl.m4
+++ b/m4/libcurl.m4
@@ -71,7 +71,11 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
if test -d "$_libcurl_with" ; then
LIBCURL_CPPFLAGS="-I$withval/include"
_libcurl_ldflags="-L$withval/lib"
- AC_PATH_PROG([_libcurl_config],["$withval/bin/curl-config"])
+ if test -x "$withval/bin/curl-config" ; then
+ _libcurl_config="$withval/bin/curl-config"
+ else
+ _libcurl_config=
+ fi
else
AC_PATH_PROG([_libcurl_config],[curl-config])
fi