mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
35d1c83e2d
- Replace patch-* with REINPLACE_CMD PR: 139871 Submitted by: Marc Lagrange <markocpc@gmail.com> (maintainer)
20 lines
651 B
Plaintext
20 lines
651 B
Plaintext
--- ./configure.ac.orig 2009-07-23 11:16:36.000000000 +0000
|
|
+++ ./configure.ac 2009-10-21 11:57:12.768114881 +0000
|
|
@@ -45,7 +45,15 @@
|
|
AC_CHECK_FUNCS(getopt_long)
|
|
AC_CHECK_FUNCS(getaddrinfo)
|
|
|
|
-AM_PATH_LIBGNUTLS(,AC_DEFINE(HAVE_GNUTLS,,"Use libgnutls"))
|
|
+dnl Check GNU TLS
|
|
+PKG_CHECK_MODULES(GNUTLS, gnutls >= 2.0.0, have_gnutls=yes, have_gnutls=no)
|
|
+if test "x$have_gnutls" = "xyes"; then
|
|
+ LIBGNUTLS_CFLAGS="$GNUTLS_CFLAGS"
|
|
+ LIBGNUTLS_LIBS="$GNUTLS_LIBS"
|
|
+ AC_SUBST(LIBGNUTLS_CFLAGS)
|
|
+ AC_SUBST(LIBGNUTLS_LIBS)
|
|
+ AC_DEFINE(HAVE_GNUTLS, 1, [whether to use GnuTSL support.])
|
|
+fi
|
|
|
|
dnl Check -Wall flag of GCC
|
|
if test "x$GCC" = "xyes"; then
|