Blame patches/libxslt-1.1.35_pre.local.patch

9d3617
diff -ru libxslt-1.1.34.orig/configure.ac libxslt-1.1.34/configure.ac
9d3617
--- libxslt-1.1.34.orig/configure.ac	2019-10-28 09:11:11.000000000 +0100
9d3617
+++ libxslt-1.1.34/configure.ac	2020-09-26 17:08:16.822422567 +0200
9d3617
@@ -329,17 +329,16 @@
9d3617
     CRYPTO_TESTDIR=crypto
9d3617
     ;;
9d3617
   *)
9d3617
-    AC_PATH_TOOL(LIBGCRYPT_CONFIG, libgcrypt-config, no)
9d3617
-    if test "$LIBGCRYPT_CONFIG" != "no" ; then
9d3617
-      LIBGCRYPT_VERSION=`$LIBGCRYPT_CONFIG --version`
9d3617
+    if test "$PKG_CONFIG" != "no" ; then
9d3617
+      LIBGCRYPT_VERSION=`$PKG_CONFIG --modver libgcrypt`
9d3617
       if test VERSION_TO_NUMBER(echo $LIBGCRYPT_VERSION) -lt VERSION_TO_NUMBER(echo "1.1.42")
9d3617
       then
9d3617
         LIBGCRYPT_CFLAGS=""
9d3617
         LIBGCRYPT_LIBS=""
9d3617
         echo 'gcrypt library version < 1.1.42 - Crypto extensions will not be available.'
9d3617
       else
9d3617
-        LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --cflags`
9d3617
-        LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --libs`
9d3617
+        LIBGCRYPT_CFLAGS=`$PKG_CONFIG --cflags libgcrypt`
9d3617
+        LIBGCRYPT_LIBS=`$PKG_CONFIG --libs libgcrypt`
9d3617
         AC_DEFINE(HAVE_GCRYPT, 1, [Define if gcrypt library is available.])
9d3617
         echo 'Crypto extensions will be available.'
9d3617
         WITH_CRYPTO=1