diff options
author | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2010-09-26 17:18:47 +0200 |
---|---|---|
committer | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2010-09-26 17:18:47 +0200 |
commit | 036dc38d03def09dd470ffe3335f4b0bf37f4b5d (patch) | |
tree | 9556a8a64ac6858199969b5e7027c5da8f382090 /configure.in | |
parent | d6dcbe70e2d715ce484f7061e8fa5b86785cbec0 (diff) | |
download | emacs-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.in | 9 |
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. |