summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2010-09-26 17:18:47 +0200
committerLars Magne Ingebrigtsen <larsi@gnus.org>2010-09-26 17:18:47 +0200
commit036dc38d03def09dd470ffe3335f4b0bf37f4b5d (patch)
tree9556a8a64ac6858199969b5e7027c5da8f382090 /configure.in
parentd6dcbe70e2d715ce484f7061e8fa5b86785cbec0 (diff)
downloademacs-036dc38d03def09dd470ffe3335f4b0bf37f4b5d.tar.gz
Don't break the build if we don't have the gnutls libraries.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 2282a7865ec..82d8eced97e 100644
--- a/configure.in
+++ b/configure.in
@@ -2002,10 +2002,13 @@ AC_SUBST(LIBSELINUX_LIBS)
HAVE_GNUTLS=no
if test "${with_gnutls}" = "yes" ; then
- PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 2.2.4])
- AC_DEFINE(HAVE_GNUTLS)
- HAVE_GNUTLS=yes
+ PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 2.2.4], HAVE_GNUTLS=yes, HAVE_GNUTLS=no)
+ if test "${HAVE_GNUTLS}" = "yes"; then
+ AC_DEFINE(HAVE_GNUTLS)
+ fi
fi
+AC_SUBST(LIBGNUTLS_LIBS)
+AC_SUBST(LIBGNUTLS_CFLAGS)
dnl Do not put whitespace before the #include statements below.
dnl Older compilers (eg sunos4 cc) choke on it.