fix configure errors. (gettext, pkgconfig, autotools)
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-support / libxmlccwrap / files / use-pkgconfig.patch
diff --git a/meta-openvuplus/recipes-support/libxmlccwrap/files/use-pkgconfig.patch b/meta-openvuplus/recipes-support/libxmlccwrap/files/use-pkgconfig.patch
new file mode 100644 (file)
index 0000000..cb01fad
--- /dev/null
@@ -0,0 +1,25 @@
+Index: libxmlccwrap-0.0.12/configure.ac
+===================================================================
+--- libxmlccwrap-0.0.12.orig/configure.ac
++++ libxmlccwrap-0.0.12/configure.ac
+@@ -14,7 +14,7 @@ AC_DISABLE_STATIC
+ AC_PROG_LIBTOOL
+ AM_PROG_LIBTOOL
+-AC_CHECK_LIB(xml2,main)
++PKG_CHECK_MODULES(XML2, [libxml-2.0])
+ #AC_CHECK_LIB(xslt,main)
+ AC_OUTPUT([Makefile \
+Index: libxmlccwrap-0.0.12/xmlccwrap/Makefile.am
+===================================================================
+--- libxmlccwrap-0.0.12.orig/xmlccwrap/Makefile.am
++++ libxmlccwrap-0.0.12/xmlccwrap/Makefile.am
+@@ -1,6 +1,6 @@
+ lib_LTLIBRARIES = libxmlccwrap.la
+-INCLUDES = -I$(top_srcdir) `xml2-config --cflags` `xslt-config --cflags`
++AM_CPPFLAGS = -I$(top_srcdir) $(XML2_CFLAGS)
+   
+ libxmlccwrap_la_LDFLAGS = -release $(VERSION)
+ libxmlccwrap_la_SOURCES=xmlccwrap.cc libxmlexport.cc