xmltooling configure error with curl and openssl 1.0.2

csross cross at hccs.com
Sun Jul 19 15:08:23 EDT 2015


http://shibboleth.net/pipermail/commits/2011-November/001040.html  

This is the patch I was talking about. 

Author: scantor
Date: Wed Nov 16 21:34:30 2011
New Revision: 922

URL: http://svn.shibboleth.net/view/cpp-xmltooling?rev=922&view=rev
Log:
Fix curl link and type tests.

Modified:
    branches/REL_1/configure.ac

Modified: branches/REL_1/configure.ac
URL:
http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/configure.ac?rev=922&r1=921&r2=922&view=diff
==============================================================================
--- branches/REL_1/configure.ac (original)
+++ branches/REL_1/configure.ac Wed Nov 16 21:34:30 2011
@@ -371,12 +371,15 @@
     LIBS="$XMLSEC_LIBS $LIBS"
 	
     AC_CHECK_HEADER([curl/curl.h],,AC_MSG_ERROR([unable to find libcurl
header files]))
-    AC_CHECK_LIB([curl],[curl_global_init],[],AC_MSG_ERROR([unable to link
with libcurl]))
+    AC_LINK_IFELSE(
+        [AC_LANG_PROGRAM([[#include <curl/curl.h>]],
+            [[curl_global_init(CURL_GLOBAL_ALL)]])],,
+        [AC_MSG_ERROR([unable to link with libcurl])])
     AC_MSG_CHECKING([for CURLOPT_SSL_CTX_FUNCTION in curl.h])
     AC_EGREP_HEADER([CURLOPT_SSL_CTX_FUNCTION], [curl/curl.h],
         [AC_MSG_RESULT(yes)],
         [AC_MSG_ERROR([need libcurl that supports
CURLOPT_SSL_CTX_FUNCTION])])
-    AC_CHECK_TYPE([curl_off_t],[AC_DEFINE([HAVE_CURL_OFF_T],[1],[Define to
1 if you have the 'curl_off_t' type.])])
+    AC_CHECK_TYPE([curl_off_t],[AC_DEFINE([HAVE_CURL_OFF_T],[1],[Define to
1 if you have the 'curl_off_t' type.])],,[[#include <curl/curl.h>]])
     
     # restore master libs
     LIBS="$save_LIBS"




--
View this message in context: http://shibboleth.1660669.n2.nabble.com/xmltooling-configure-error-with-curl-and-openssl-1-0-2-tp7617386p7617387.html
Sent from the Shibboleth - Users mailing list archive at Nabble.com.


More information about the users mailing list