On Tue, Aug 18, 2009 at 09:19:46AM +0200, Boris Petersen wrote: > I tested this on my debian squeeze system and it doesn't work. > > checking for OpenSSL... found in /usr > checking for main in -lcrypto... yes > checking for main in -lssl... yes > checking for SSLeay_add_all_algorithms in -lcrypto... no > configure: error: Could not find gnutls-extra. Stopping. > > any idea?
That is interesting. On an up-to-date unstable pbuilder, it seemed to
work...
Could you please tell me which version of libgnutls-dev you have
installed? For me, with libgnutls-dev 2.8.3, I have the attached log.
In any case, you can check what I am trying to do in the patch. All I
am trying to do is to detect the gnutls-extra library by checking for
the gnutls_global_init_extra function, and fail else. This is the
easiest solution, though we should debug it to make sure it is robust,
I guess.
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
Thanks, and do let me know your comments so that I can improve the patch.
Kumar
--
Kumar Appaiah
signature.asc
Description: Digital signature

