diff options
Diffstat (limited to 'testing/csync2/02-csync2-1.34-gnutls_pkgconfig.patch')
-rw-r--r-- | testing/csync2/02-csync2-1.34-gnutls_pkgconfig.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/csync2/02-csync2-1.34-gnutls_pkgconfig.patch b/testing/csync2/02-csync2-1.34-gnutls_pkgconfig.patch new file mode 100644 index 0000000000..b9e1d2726e --- /dev/null +++ b/testing/csync2/02-csync2-1.34-gnutls_pkgconfig.patch @@ -0,0 +1,24 @@ +--- old/configure.ac ++++ new/configure.ac +@@ -59,16 +59,11 @@ + if test "$enable_gnutls" != no + then + +- # Check for gnuTLS. +- AM_PATH_LIBGNUTLS(1.0.0, , [ AC_MSG_ERROR([[gnutls not found; install gnutls, gnutls-openssl and libtasn1 packages for your system or run configure with --disable-gnutls]]) ]) +- +- # This is a bloody hack for fedora core +- CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS" +- LIBS="$LIBS $LIBGNUTLS_LIBS -ltasn1" +- +- # Check gnuTLS SSL compatibility lib. +- AC_CHECK_LIB([gnutls-openssl], [SSL_new], , [AC_MSG_ERROR([[gnutls-openssl not found; install gnutls, gnutls-openssl and libtasn1 packages for your system or run configure with --disable-gnutls]])]) +- ++ PKG_CHECK_MODULES(LIBGNUTLS, gnutls, [ ++ CFLAGS="$CFLAGS `$PKG_CONFIG --cflags gnutls libssl`" ++ LIBS="$LIBS `$PKG_CONFIG --libs gnutls libssl` -DHAVE_LIBGNUTLS_OPENSSL" ++ ]) ++ + fi + + AC_CONFIG_FILES([Makefile]) |