~ubuntu-branches/ubuntu/precise/mutt/precise

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg, Adeodato Simó, Christoph Berg
  • Date: 2007-11-03 23:00:04 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071103230004-43e36pnhub87junc
Tags: 1.5.17-1
[ Adeodato Simó ]
* Move the packaging back to Bazaar, adjust X-VCS-* accordingly.

[ Christoph Berg ]
* Mention libsasl2-modules-gssapi-mit in README.Debian. (Closes: #433425)
* Call autoreconf at build time, drop the autotools-update patch.
* Update menu file, add lintian override file.
* Refresh patches.

* New upstream version:
  + fix segfaults with single byte 8-bit characters in index_format.
    (Closes: #420598, Mutt: #2882)
  + properly render subject headers with encoded linefeeds.
    (Closes: #264014, Mutt: #1810)
  + only calls gnutls_error_is_fatal when gnutls_record_recv returns a
    negative value. (Closes: #439775, Mutt: #2954)
  + Large file support for mutt_pretty_size().
    (Closes: #352478, #416555, Mutt: #2191)
  + Do not consider empty pipes for filtering in format strings.
    (Closes: #447340)

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
AC_C_INLINE
41
41
AC_C_CONST
 
42
AC_C_BIGENDIAN
42
43
 
43
44
AC_SYS_LARGEFILE
44
45
AC_FUNC_FSEEKO
647
648
            fi
648
649
            saved_LIBS="$LIBS"
649
650
 
650
 
            AC_CHECK_LIB(crypto, X509_new,, AC_MSG_ERROR([Unable to find SSL library]))
651
 
            AC_CHECK_LIB(ssl, SSL_new,, AC_MSG_ERROR([Unable to find SSL library]), -lcrypto)
 
651
            crypto_libs=""
 
652
            AC_CHECK_LIB(z, deflate, [crypto_libs=-lz])
 
653
            AC_CHECK_LIB(crypto, X509_new,
 
654
              [crypto_libs="-lcrypto $crypto_libs"],, [$crypto_libs])
 
655
            AC_CHECK_LIB(ssl, SSL_new,,
 
656
              AC_MSG_ERROR([Unable to find SSL library]), [$crypto_libs])
652
657
 
 
658
            LIBS="$LIBS $crypto_libs"
653
659
            AC_CHECK_FUNCS(RAND_status RAND_egd)
654
660
 
655
661
            AC_DEFINE(USE_SSL,1,[ Define if you want support for SSL. ])
656
662
            AC_DEFINE(USE_SSL_OPENSSL,1,[ Define if you want support for SSL via OpenSSL. ])
657
663
            LIBS="$saved_LIBS"
658
 
            MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
 
664
            MUTTLIBS="$MUTTLIBS -lssl $crypto_libs"
659
665
            MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
660
666
            need_ssl=yes
661
667
          fi
803
809
        fi])
804
810
 
805
811
dnl -- start cache --
806
 
AC_ARG_ENABLE(hcache, AC_HELP_STRING([--enable-hcache], [Enable header caching]),
807
 
[if test x$enableval = xyes; then
 
812
use_qdbm=no
 
813
AC_ARG_ENABLE(hcache, AC_HELP_STRING([--enable-hcache],
 
814
  [Enable header caching]))
 
815
AC_ARG_WITH(qdbm, AC_HELP_STRING([--without-qdbm],
 
816
  [Don't use qdbm even if it is available]))
 
817
AC_ARG_WITH(gdbm, AC_HELP_STRING([--without-gdbm],
 
818
  [Don't use gdbm even if it is available]))
 
819
AC_ARG_WITH(bdb, AC_HELP_STRING([--with-bdb[=DIR]],
 
820
  [Use BerkeleyDB4 if gdbm is not available]))
 
821
 
 
822
if test x$enable_hcache = xyes
 
823
then
808
824
    AC_DEFINE(USE_HCACHE, 1, [Enable header caching])
809
825
    MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS hcache.o"
810
826
 
811
827
    OLDCPPFLAGS="$CPPFLAGS"
 
828
    OLDLDFLAGS="$LDFLAGS"
812
829
    OLDLIBS="$LIBS"
813
830
 
814
831
    need_md5="yes"
816
833
    dnl hcachever.sh tool for calculating struct digest
817
834
    AC_CHECK_PROGS([MD5], [md5 md5sum openssl], [none])
818
835
 
819
 
    use_qdbm=no
820
 
    AC_ARG_WITH(qdbm, AC_HELP_STRING([--without-qdbm], [Don't use qdbm even if it is available]))
 
836
    dnl -- QDBM --
821
837
    if test "$with_qdbm" != "no"
822
838
    then
823
839
      if test -n "$with_qdbm" && test "$with_qdbm" != "yes"
836
852
 
837
853
      saved_LIBS="$LIBS"
838
854
      AC_CHECK_HEADERS(villa.h)
839
 
      AC_CHECK_LIB(qdbm, vlopen, [MUTTLIBS="$MUTTLIBS -lqdbm"; use_qdbm=yes])
 
855
      AC_CHECK_LIB(qdbm, vlopen,
 
856
        [MUTTLIBS="$MUTTLIBS -lqdbm"
 
857
         AC_DEFINE(HAVE_QDBM, 1, [QDBM Support])
 
858
         use_qdbm=yes],
 
859
        [CPPFLAGS="$OLDCPPFLAGS"
 
860
         LDFLAGS="$OLDLDFLAGS"])
840
861
      LIBS="$saved_LIBS"
841
862
      if test -n "$with_qdbm" && test "$use_qdbm" != yes
842
863
      then
844
865
      fi
845
866
    fi
846
867
 
847
 
    AC_ARG_WITH(gdbm, AC_HELP_STRING([--without-gdbm], [Don't use gdbm even if it is available]))
848
 
    if test x$with_gdbm != xno && test $use_qdbm != yes; then
 
868
    dnl -- GDBM --
 
869
    if test x$with_gdbm != xno && test $use_qdbm != yes
 
870
    then
849
871
        if test "$with_gdbm" != "yes"
850
872
        then
851
873
          CPPFLAGS="$CPPFLAGS -I$with_gdbm/include"
852
874
          LDFLAGS="$LDFLAGS -L$with_gdbm/lib"
853
875
        fi
854
 
        CPPFLAGS="$OLDCPPFLAGS"
855
 
        LIBS="$OLDLIBS -lgdbm";
 
876
        saved_LIBS="$LIBS"
 
877
        LIBS="$LIBS -lgdbm"
856
878
        AC_CACHE_CHECK(for gdbm_open, ac_cv_gdbmopen,[
857
879
            ac_cv_gdbmopen=no
858
880
            AC_TRY_LINK([#include <gdbm.h>],[gdbm_open(0,0,0,0,0);],[ac_cv_gdbmopen=yes])
859
881
        ])
 
882
        LIBS="$saved_LIBS"
 
883
        if test "$ac_cv_gdbmopen" = yes
 
884
        then
 
885
          AC_DEFINE(HAVE_GDBM, 1, [GDBM Support])
 
886
          MUTTLIBS="$MUTTLIBS -lgdbm"
 
887
        elif test -n "$with_gdbm"
 
888
        then
 
889
          AC_MSG_ERROR([GDBM could not be used. Check config.log for details.])
 
890
        fi
860
891
    fi
861
892
 
862
 
    ac_bdb_prefix=yes
863
 
    AC_ARG_WITH(bdb, AC_HELP_STRING([--with-bdb[=DIR]], [Use BerkeleyDB4 if gdbm is not available]),
864
 
        ac_bdb_prefix=$withval)
865
 
    if test x$ac_bdb_prefix != xno && test x$ac_cv_gdbmopen != xyes && test $use_qdbm != yes; then
866
 
        test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
 
893
    dnl -- BDB --
 
894
    ac_bdb_prefix="$with_bdb"
 
895
    if test x$ac_bdb_prefix != xno && test x$ac_cv_gdbmopen != xyes && test $use_qdbm != yes
 
896
    then
 
897
        if test x$ac_bdb_prefix = xyes || test x$ac_bdb_prefix = x
 
898
        then
 
899
          ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
 
900
        fi
867
901
        for d in $ac_bdb_prefix; do
868
902
            bdbpfx="$bdbpfx $d"
869
903
            for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
902
936
            done
903
937
            test x$BDB_LIB != x && break
904
938
        done
905
 
        if test x$ac_cv_dbcreate = xyes; then
 
939
        if test x$ac_cv_dbcreate = xyes
 
940
        then
906
941
            AC_MSG_RESULT(yes)
 
942
            CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR"
 
943
            LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
 
944
            AC_DEFINE(HAVE_DB4, 1, [Berkeley DB4 Support])
907
945
        else
908
946
            AC_MSG_RESULT(no)
909
947
        fi
910
948
    fi
911
949
 
912
 
    if test "$use_qdbm" = yes; then
913
 
        AC_DEFINE(HAVE_QDBM, 1, [QDBM Support])
914
 
    elif test x$ac_cv_gdbmopen = xyes; then
915
 
        CPPFLAGS="$OLDCPPFLAGS"
916
 
        LIBS="$OLDLIBS -lgdbm";
917
 
        AC_DEFINE(HAVE_GDBM, 1, [GDBM Support])
918
 
    elif test x$ac_cv_dbcreate = xyes; then
919
 
        CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR"
920
 
        LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
921
 
        AC_DEFINE(HAVE_DB4, 1, [Berkeley DB4 Support])
922
 
    else
 
950
    if test x$use_qdbm != xyes && test x$ac_cv_gdbmopen != xyes && test x$ac_cv_dbcreate != xyes
 
951
    then
923
952
        AC_MSG_ERROR([You need QDBM, GDBM or Berkeley DB4 for hcache])
924
953
    fi
925
 
fi])
 
954
fi
926
955
dnl -- end cache --
927
956
 
928
957
if test "$need_md5" = "yes"
929
958
then
930
 
        MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5c.o"
 
959
  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5.o"
931
960
fi
932
961
 
933
962
AC_SUBST(MUTTLIBS)