Menu

#14 configure.in needs to look for libxml-2.0

v1.2
open
Compiling (3)
5
2008-09-17
2008-09-17
Matt Domsch
No

build fails on Fedora 9 and higher due to configure.in not looking for libxml-2.0.pc via pkgconfig, therefore CPPFLAGS does not include -I/usr/include/libxml2. Simply add libxml-2.0 to the list of pkg_modules, and run autoreconf to fix up configure and the makefiles.

diff -urNp --exclude-from=/home/mdomsch/excludes --minimal gstm-1.2.orig/configure.in gstm-1.2/configure.in
--- gstm-1.2.orig/configure.in 2008-09-16 21:59:13.000000000 -0500
+++ gstm-1.2/configure.in 2008-09-16 21:59:40.000000000 -0500
@@ -10,7 +10,7 @@ AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC

-pkg_modules="libgnomeui-2.0"
+pkg_modules="libgnomeui-2.0 libxml-2.0"
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)

Discussion


Log in to post a comment.