From: Thadeu Lima de Souza Cascardo Date: Fri, 22 Sep 2006 19:38:17 +0000 (+0000) Subject: Build with iksemel X-Git-Tag: v0.1.3~127 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;ds=sidebyside;h=750b9c5121c40a55d5b39aad963fc1ae57e3bfeb;p=cascardo%2Frnetproxy.git 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. --- 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")