diff options
-rw-r--r-- | kipi-plugins/configure.in.in | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/kipi-plugins/configure.in.in b/kipi-plugins/configure.in.in index 82d0057..7963aee 100644 --- a/kipi-plugins/configure.in.in +++ b/kipi-plugins/configure.in.in @@ -334,14 +334,21 @@ fi have_xslt=no if test "x$build_xslt" != "xno"; then - AC_PATH_PROG(XSLT_CONFIG,xslt-config) - if test -n "${XSLT_CONFIG}"; then - LIBXSLT_CFLAGS="`$XSLT_CONFIG --cflags`" - AC_SUBST(LIBXSLT_CFLAGS) - LIBXSLT_LIBS="`$XSLT_CONFIG --libs`" - AC_SUBST(LIBXSLT_LIBS) - have_xslt=yes - else + KDE_PKG_CHECK_MODULES(LIBXSLT, libxslt, + have_xslt=yes, have_xslt=no) + + if test "x$have_xslt" != "xyes"; then + AC_PATH_PROG(XSLT_CONFIG,xslt-config) + if test -n "${XSLT_CONFIG}"; then + LIBXSLT_CFLAGS="`$XSLT_CONFIG --cflags`" + AC_SUBST(LIBXSLT_CFLAGS) + LIBXSLT_LIBS="`$XSLT_CONFIG --libs`" + AC_SUBST(LIBXSLT_LIBS) + have_xslt=yes + fi + fi + + if test "x$have_xslt" != "xyes"; then AC_MSG_WARN([libxslt library not found, some plugins will not be compiled]) fi fi |