aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Locks <dwlocks@cs.uchicago.edu>2010-10-07 18:05:36 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-10-07 18:05:36 +0200
commitcda02fb78b859dafe679624206aac39878db19fd (patch)
tree59472b15de11c58f998f209820d4ad9343ee1a07
parenta5f96b49d1ffff557469f6ef83ce8450d38de84e (diff)
libcurl.m4: AC_PATH_PROG fixes
The invocation of autoconf's AC_PATH_PROG( ) is not quite right for finding curl-config. This fix corrects the negative case (where curl-config is not found).
-rw-r--r--docs/libcurl/libcurl.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/libcurl/libcurl.m4 b/docs/libcurl/libcurl.m4
index c83658d35..952b79f4e 100644
--- a/docs/libcurl/libcurl.m4
+++ b/docs/libcurl/libcurl.m4
@@ -75,10 +75,10 @@ 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],[curl-config],["$withval/bin"],
+ AC_PATH_PROG([_libcurl_config],[curl-config],[],
["$withval/bin"])
else
- AC_PATH_PROG([_libcurl_config],[curl-config])
+ AC_PATH_PROG([_libcurl_config],[curl-config],[],[$PATH])
fi
if test x$_libcurl_config != "x" ; then