blob: 160eeede69d54a5847646cca0fa16f2a21ea77e3 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From afe545e77f9d841b7777d859e7e8108492fece96 Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Wed, 26 Apr 2017 16:22:00 +0800
4Subject: [PATCH] Fix libxml2 for cross-compiling
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005
6Use proper XML2_INCLUDE path when cross-compiling
7
8Upstream-Status: Pending
9
10Signed-of-by: Aws Ismail <aws.ismail@windriver.com>
11
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080012---
13 configure.ac | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/configure.ac b/configure.ac
17index 6242cbf..4fb6b69 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -179,7 +179,7 @@ AC_CHECK_HEADERS([openssl/md2.h openssl/md5.h openssl/bio.h openssl/ssl.h openss
Brad Bishop6e60e8b2018-02-01 10:27:11 -050021
22 dnl xml is used for XML-based communication in ilo2_ribcl and oa_soap
23 AC_CHECK_LIB([xml2],[xmlParseMemory],[XML2_LIB=-lxml2],[XML2_LIB=])
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080024-AC_CHECK_HEADERS([libxml2/libxml/xmlexports.h],[XML2_INCLUDE="-I/usr/include/libxml2"],[XML2_INCLUDE=])
25+AC_CHECK_HEADERS([libxml2/libxml/xmlexports.h],[XML2_INCLUDE="$XML2_INCLUDE"],[XML2_INCLUDE=])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026 AC_SUBST(XML2_LIB)
27 AC_SUBST(XML2_INCLUDE)
28