diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-02-05 19:23:47 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-02-05 19:24:07 +0100 |
commit | c814fecf3e1cc98856fd909b3e52bf4e38a72bc8 (patch) | |
tree | 20252adaa87ed31ca583f8561f0aaba3d78c4838 | |
parent | 5679e4a86d7de77e516a238494481993f0859fb6 (diff) | |
download | kipi-plugins-c814fecf3e1cc98856fd909b3e52bf4e38a72bc8.tar.gz kipi-plugins-c814fecf3e1cc98856fd909b3e52bf4e38a72bc8.zip |
Add libxslt detection using pkg-config.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 59f924fd3822e5887777a7d3b3f5c5d315ef49ce)
-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 ec887b7..49f350a 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 |