summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-21 11:06:11 +0000
committerChristian Grothoff <christian@grothoff.org>2015-06-21 11:06:11 +0000
commit511156f37bbd1f0a8ae9deb98d2b3eea7586dfa1 (patch)
treef63412717bad83d51332ebcb241ba532cce847a2 /m4
parent5d82ad8f9164461be16f62436542e098934340d4 (diff)
support gnurl's curl.h being in include/gnurl/ OR include/curl/
Diffstat (limited to 'm4')
-rw-r--r--m4/libgnurl.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/m4/libgnurl.m4 b/m4/libgnurl.m4
index 69aa16605..da72e5e87 100644
--- a/m4/libgnurl.m4
+++ b/m4/libgnurl.m4
@@ -159,6 +159,22 @@ x=CURLOPT_STDERR;
x=CURLOPT_VERBOSE;
])],libgnurl_cv_lib_gnurl_usable=yes,libgnurl_cv_lib_gnurl_usable=no)
+# BEGIN Changes from original libcurl.m4:
+# Give it a 2nd shot using 'gnurl/curl.h'
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <gnurl/curl.h>],[
+/* Try and use a few common options to force a failure if we are
+ missing symbols or can't link. */
+int x;
+curl_easy_setopt(NULL,CURLOPT_URL,NULL);
+x=CURL_ERROR_SIZE;
+x=CURLOPT_WRITEFUNCTION;
+x=CURLOPT_FILE;
+x=CURLOPT_ERRORBUFFER;
+x=CURLOPT_STDERR;
+x=CURLOPT_VERBOSE;
+])],libgnurl_cv_lib_gnurl_usable=yes)
+# END Changes from original libcurl.m4:
+
CPPFLAGS=$_libgnurl_save_cppflags
LIBS=$_libgnurl_save_libs
unset _libgnurl_save_cppflags