~ubuntu-dev/ubuntu/lucid/mutt/lucid-201002101906

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2009-06-17 17:17:28 UTC
  • mfrom: (1.1.11 upstream) (16.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090617171728-lj10l5x2m2vg6cag
Tags: 1.5.20-1ubuntu1
* Merge from debian unstable (LP: #388515)
* Build-depend on elinks-lite
  + elinks-lite doesn't provide links anymore.
  + elinks-lite is now in main, and pulls less dependencies than the
    full-fledged elinks.
* debian/control: Recommend default-mta instead of exim4. (LP: #386308)

Show diffs side-by-side

added added

removed removed

Lines of Context:
343
343
 
344
344
AC_CHECK_FUNCS(fgetpos memmove setegid srand48 strerror)
345
345
 
346
 
AC_REPLACE_FUNCS([setenv strcasecmp strdup strsep strtok_r])
 
346
AC_REPLACE_FUNCS([setenv strcasecmp strdup strsep strtok_r wcscasecmp])
 
347
AC_REPLACE_FUNCS([strcasestr mkdtemp])
347
348
 
348
349
AC_CHECK_FUNC(getopt)
349
350
if test $ac_cv_func_getopt = yes; then
648
649
 
649
650
dnl -- end imap dependencies --
650
651
 
651
 
AC_ARG_WITH(ssl, AC_HELP_STRING([--with-ssl@<:@=PFX@:>@], [Compile in SSL support for POP/IMAP/SMTP using OpenSSL]),
 
652
AC_ARG_WITH(ssl, AC_HELP_STRING([--with-ssl@<:@=PFX@:>@], [Enable TLS support using OpenSSL]),
652
653
[       if test "$with_ssl" != "no"
653
654
        then
654
655
          if test "$need_socket" != "yes"; then
681
682
        fi
682
683
])
683
684
 
684
 
AC_ARG_WITH([gnutls], AC_HELP_STRING([--with-gnutls@<:@=PFX@:>@], [Compile in SSL support for POP/IMAP/SMTP using gnutls]),
 
685
AC_ARG_WITH([gnutls], AC_HELP_STRING([--with-gnutls@<:@=PFX@:>@], [enable TLS support using gnutls]),
685
686
    [gnutls_prefix="$withval"], [gnutls_prefix="no"])
686
687
if test "$gnutls_prefix" != "no" && test x"$need_ssl" != xyes
687
688
then
689
690
  then
690
691
    AC_MSG_WARN([SSL support is only useful with POP, IMAP or SMTP support])
691
692
  else
692
 
    MUTT_AM_PATH_GNUTLS([$gnutls_prefix],
 
693
    if test "$gnutls_prefix" != "yes"
 
694
    then
 
695
      LDFLAGS="$LDFLAGS -L$gnutls_prefix/lib"
 
696
      CPPFLAGS="$CPPFLAGS -I$gnutls_prefix/include"
 
697
    fi
 
698
    saved_LIBS="$LIBS"
 
699
 
 
700
    AC_CHECK_LIB(gnutls, gnutls_check_version,
693
701
      [dnl GNUTLS found
694
 
      CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS"
695
 
      MUTTLIBS="$MUTTLIBS $LIBGNUTLS_LIBS"
696
 
 
697
 
      AC_DEFINE(USE_SSL,1,[ Define if you want support for SSL. ])
698
 
      AC_DEFINE(USE_SSL_GNUTLS,1,[ Define if you want support for SSL via GNUTLS. ])
 
702
      AC_CHECK_DECLS([GNUTLS_VERIFY_DISABLE_TIME_CHECKS], [], [],
 
703
                    [[#include <gnutls/x509.h>]])
 
704
 
 
705
      LIBS="$saved_LIBS"
 
706
      MUTTLIBS="$MUTTLIBS -lgnutls"
 
707
 
 
708
      AC_DEFINE(USE_SSL, 1, [ Define if you want support for SSL. ])
 
709
      AC_DEFINE(USE_SSL_GNUTLS, 1, [ Define if you want support for SSL via GNUTLS. ])
699
710
 
700
711
      MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
701
712
      need_ssl=yes],
702
 
      [dnl GNUTLS not found
703
 
        AC_MSG_ERROR([could not find libgnutls])
704
 
      ])
 
713
      [AC_MSG_ERROR([could not find libgnutls])])
705
714
  fi
706
715
fi
 
716
 
707
717
AM_CONDITIONAL(USE_SSL, test x$need_ssl = xyes)
708
718
 
709
719
AC_ARG_WITH(sasl, AC_HELP_STRING([--with-sasl@<:@=PFX@:>@], [Use Cyrus SASL 2 network security library]),