Author: jberry
Date: Tue Oct 20 15:26:11 2009
New Revision: 827688

URL: http://svn.apache.org/viewvc?rev=827688&view=rev
Log:
For builds with curl, use curl-config to get appropriate compiler and linker 
flags. Should complete fix for #XERCESC-1892

Modified:
    xerces/c/trunk/m4/xerces_netaccessor_selection.m4

Modified: xerces/c/trunk/m4/xerces_netaccessor_selection.m4
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/m4/xerces_netaccessor_selection.m4?rev=827688&r1=827687&r2=827688&view=diff
==============================================================================
--- xerces/c/trunk/m4/xerces_netaccessor_selection.m4 (original)
+++ xerces/c/trunk/m4/xerces_netaccessor_selection.m4 Tue Oct 20 15:26:11 2009
@@ -69,7 +69,7 @@
                [AC_MSG_RESULT(no)]
        )
 
-       # Check for OS-specific transcoders
+       # Check for OS-specific netaccessors
        case $host_os in
        darwin*)
                list_add=
@@ -152,7 +152,10 @@
                *-curl-*)
                        netaccessor=curl
                        AC_DEFINE([XERCES_USE_NETACCESSOR_CURL], 1, [Define to 
use the CURL NetAccessor])
-                       LIBS="${LIBS} -L${xerces_cv_curl_prefix}/lib -lcurl"
+                       CURL_LIBS=`${xerces_cv_curl_prefix}/bin/curl-config 
--libs`
+                       CURL_CFLAGS=`${xerces_cv_curl_prefix}/bin/curl-config 
--cflags`
+                       LIBS="${LIBS} $CURL_LIBS"
+                       CXXFLAGS="${CXXFLAGS} ${CURL_CFLAGS}"
                        break
                        ;;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to