tags 529818 + patch
thanks

Please find attached a rudimentary dpatch to detect gnutls. Please
just drop it into the patches directory, add it to 00list and you
should be good to go!

HTH.

Kumar
#! /bin/sh /usr/share/dpatch/dpatch-run
## detect_gnutls.patch.dpatch by  <aku...@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad centerim-4.22.7~/configure.ac centerim-4.22.7/configure.ac
--- centerim-4.22.7~/configure.ac       2009-02-22 09:41:47.000000000 -0600
+++ centerim-4.22.7/configure.ac        2009-08-17 23:31:26.000000000 -0500
@@ -187,8 +187,8 @@
         fi
 
         if test "x$with_ssl" = "xno" -a -z "$with_nss_compat"; then
-                AM_PATH_LIBGNUTLS_EXTRA(0.0.1, [
-                        AC_CHECK_LIB(lzo, lzo1x_1_compress, LZO_LIBS=-llzo)
+       AC_CHECK_LIB(gnutls-extra, gnutls_global_init_extra,
+                       AC_CHECK_LIB(lzo, lzo1x_1_compress, LZO_LIBS=-llzo)
 
                         if test -z "$LZO_LIBS"; then
                                  AC_CHECK_LIB(lzo2, lzo1x_1_compress, 
LZO_LIBS=-llzo2, [
@@ -203,8 +203,9 @@
                         LIBS="$LIBS $LIBGNUTLS_LIBS -lgnutls-extra"
                         AC_DEFINE(HAVE_GNUTLS, 1, [use gnutls])
                         with_ssl="yes"
-                ])
-        fi
+        fi,AC_MSG_ERROR(
+Could not find gnutls-extra. Stopping.
+      ))
 
         if test "x$with_ssl" = "xno"; then
                 PKG_PROG_PKG_CONFIG

Reply via email to