summaryrefslogtreecommitdiffstats
path: root/extra/loudmouth/loudmouth-gnutls28.patch
blob: b069d4d8e3713d9acd48b21f1ef70ad67d479d3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- configure.ac.gnutls	2009-05-30 17:59:03.000000000 +0200
+++ configure.ac	2009-05-30 18:02:24.000000000 +0200
@@ -146,8 +146,9 @@
 enable_ssl=no
 if test "x$ac_ssl" = "xgnutls"; then
   dnl Look for GnuTLS
-  AM_PATH_LM_LIBGNUTLS($GNUTLS_REQUIRED, have_libgnutls=yes, have_libgnutls=no)
+  PKG_CHECK_EXISTS([gnutls >= $GNUTLS_REQUIRED], have_libgnutls=yes, have_libgnutls=no)
   if test "x$have_libgnutls" = "xyes"; then
+    PKG_CHECK_MODULES(LIBGNUTLS, [gnutls >= $GNUTLS_REQUIRED])
     CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
     LIBS="$LIBS $LIBGNUTLS_LIBS"
     AC_DEFINE(HAVE_GNUTLS, 1, [whether to use GnuTSL support.])