From 750b9c5121c40a55d5b39aad963fc1ae57e3bfeb Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Fri, 22 Sep 2006 19:38:17 +0000 Subject: [PATCH] Build with iksemel 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index d0884c6..0be9d2f 100644 --- a/configure.ac +++ b/configure.ac @@ -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") -- 2.20.1