Build with iksemel
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Fri, 22 Sep 2006 19:38:17 +0000 (19:38 +0000)
committerThadeu Lima de Souza Cascardo <cascardo@minaslivre.org>
Fri, 22 Sep 2006 19:38:17 +0000 (19:38 +0000)
iksemel will be used as XML parser and we will have to link to
it. Thence, we check for its presence, using pkg-config with autoconf.

configure.ac

index d0884c6..0be9d2f 100644 (file)
@@ -3,8 +3,9 @@ AM_INIT_AUTOMAKE(AC_PACKAGE_NAME,AC_PACKAGE_VERSION)
 AC_PROG_CC
 AC_PROG_INSTALL
 AM_PATH_GNET_2_0(,,AC_MSG_ERROR(GNet not found))
-LIBS="$GNET_LIBS $LIBS"
-CFLAGS="$GNET_CFLAGS $CFLAGS"
+PKG_CHECK_MODULES(IKSEMEL, iksemel, , AC_MSG_ERROR(Could not find iksemel))
+LIBS="$GNET_LIBS $IKSEMEL_LIBS $LIBS"
+CFLAGS="$GNET_CFLAGS $IKSEMEL_CFLAGS $CFLAGS"
 if test "${sysconfdir}x" = '${prefix}/etcx'; then
        if test "${prefix}x" = 'NONEx'; then
                AC_DEFINE_UNQUOTED(SYSCONFDIR, "${ac_default_prefix}/etc")