[xerces-c] 01/02: XERCESC-2242 - Non-default curl location breaks autoconf link detection

[email protected]
Newsgroups gmane.text.xml.xerces-c.devel
Message-ID <[email protected]>
This is an automated email from the ASF dual-hosted git repository.

scantor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/xerces-c.git

commit 2a64a944d59f3273e09e018bbe7f526b00910311
Author: Scott Cantor <[email protected]>
AuthorDate: Wed Oct 5 12:44:56 2022 -0400

    XERCESC-2242 - Non-default curl location breaks autoconf link detection
    
    https://issues.apache.org/jira/browse/XERCESC-2242
---
 m4/xerces_curl_prefix.m4 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/m4/xerces_curl_prefix.m4 b/m4/xerces_curl_prefix.m4
index fec4418a7..d1d015ca8 100644
--- a/m4/xerces_curl_prefix.m4
+++ b/m4/xerces_curl_prefix.m4
@@ -66,6 +66,7 @@ AC_DEFUN([XERCES_CURL_PREFIX],
 
 			orig_libs=$LIBS
 			LIBS="$curl_libs $LIBS"
+                        CPPFLAGS="$curl_flags $CPPFLAGS"
 
 			AC_LINK_IFELSE(
 				[AC_LANG_SOURCE([
@@ -82,6 +83,7 @@ AC_DEFUN([XERCES_CURL_PREFIX],
 				[], [xerces_cv_curl_present=no])
 
 			LIBS=$orig_libs
+                        CPPFLAGS=$orig_cppflags
 
 			if test x"$xerces_cv_curl_present" != x"no"; then
 				AC_MSG_RESULT([yes])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.