From debd3bd151bc2ddf14e46938fd2c3234fe253fee Mon Sep 17 00:00:00 2001 From: Roman Bogorodskiy Date: Fri, 1 Jun 2007 13:32:06 +0000 Subject: [PATCH] Use pkg-config to detect libxml2 and curl. git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@871 7f574dfc-610e-0410-a909-a81674777703 --- configure.ac.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac.in b/configure.ac.in index 792cda3c..4af1df18 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -184,14 +184,15 @@ dnl RSS dnl AC_ARG_ENABLE([rss], - AC_HELP_STRING([--enable-rss], [enable if you want rss support (requires libmrss) @<:@default=no@:>@]), + AC_HELP_STRING([--enable-rss], [enable if you want rss support @<:@default=no@:>@]), [want_rss="$enableval"], [want_rss=no]) # AM_CONDITIONAL(BUILD_RSS, test x$want_rss = xyes) if test x$want_rss = xyes; then WANT_GLIB=yes - CFLAGS="$CFLAGS `xml2-config --cflags` `curl-config --cflags`" - LIBS="$LIBS `xml2-config --libs` `curl-config --libs`" + PKG_CHECK_MODULES(RSS, libxml-2.0 libcurl,,exit) + CFLAGS="$CFLAGS $RSS_CFLAGS" + LIBS="$LIBS $RSS_LIBS" AC_DEFINE(RSS, 1, [Define if you want rss support]) fi