xmltooling configure error with curl and openssl 1.0.2
csross
cross at hccs.com
Mon Jul 20 10:20:09 EDT 2015
Thanks for replying.
I looked at the config.log and it shows it failing at "checking for
curl_global_init in -lcurl" although it finds the curl headers and such.
I saw the patch dealt with just that section of code and wondered if it
could help although I didn't need it before.
Thanks
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-tp7617386p7617409.html
Sent from the Shibboleth - Users mailing list archive at Nabble.com.
More information about the users
mailing list