blob: c848b35027a91acf5c73f93c5c478fadcaf6cb16 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001Fix libxml2 for cross-compiling
2
3Use proper XML2_INCLUDE path when cross-compiling
4
5Upstream-Status: Pending
6
7Signed-of-by: Aws Ismail <aws.ismail@windriver.com>
8
Brad Bishop316dfdd2018-06-25 12:45:53 -04009Index: openhpi-3.6.1/configure.ac
10===================================================================
11--- openhpi-3.6.1.orig/configure.ac
12+++ openhpi-3.6.1/configure.ac
13@@ -177,7 +177,7 @@ AC_CHECK_HEADERS([openssl/md2.h openssl/
Brad Bishop6e60e8b2018-02-01 10:27:11 -050014
15 dnl xml is used for XML-based communication in ilo2_ribcl and oa_soap
16 AC_CHECK_LIB([xml2],[xmlParseMemory],[XML2_LIB=-lxml2],[XML2_LIB=])
17-AC_CHECK_HEADERS([libxml2/libxml/xmlexports.h],[XML2_INCLUDE="-I/usr/include/libxml2"],[XML2_INCLUDE])
18+AC_CHECK_HEADERS([libxml2/libxml/xmlexports.h],[XML2_INCLUDE="$XML2_INCLUDE"],[XML2_INCLUDE])
19 AC_SUBST(XML2_LIB)
20 AC_SUBST(XML2_INCLUDE)
21