2005-07-04 [colin] 1.9.12cvs14
[claws.git] / configure.ac
index 0fecb3c443fade85abc8a2e6f585c0e91e3829f5..1926171ddcda77f7240835a74adb8c0d4bad59fe 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=12
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=5
+EXTRA_VERSION=14
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
@@ -613,6 +613,33 @@ fi
 AC_SUBST(CLAMAV_LIBS)
 AM_CONDITIONAL(BUILD_CLAMAV_PLUGIN, test x"$ac_cv_enable_clamav_plugin" = xyes)
 
+dnl Libetpan
+libetpan=no
+AC_PATH_PROG(libetpanconfig, [libetpan-config])
+if test "x$libetpanconfig" != "x"; then
+  CPPFLAGS="$CPPFLAGS `$libetpanconfig --cflags 2>/dev/null`"
+  AC_CHECK_HEADER(libetpan/libetpan.h, [libetpan=yes])
+  if test "x$libetpan" = "xyes"; then
+    AC_MSG_CHECKING([whether libetpan-config hints compiles and links fine])
+    LDFLAGS="$LDFLAGS `$libetpanconfig --libs 2>/dev/null`"
+    AC_TRY_LINK([], [db_mailstorage_init();], [libetpan=yes], [libetpan=no])
+    AC_MSG_RESULT([$libetpan])
+  fi
+fi
+if test "x$libetpan" = "xyes"; then
+   LIBETPAN_CPPFLAGS="`$libetpanconfig --cflags`"
+   LIBETPAN_LIBS="`$libetpanconfig --libs`"
+   LIBETPAN_VERSION=`$libetpanconfig --version | sed "s/\.//g" | sed "s/-.*$//"`
+   if test "$LIBETPAN_VERSION" -lt "037"; then
+       AC_MSG_ERROR([Sylpheed requires libetpan 0.37 or newer. See http://www.etpan.org/])
+   fi
+else
+   AC_MSG_ERROR([Sylpheed requires libetpan 0.37 or newer. See http://www.etpan.org/ ])
+fi
+
+AC_SUBST(LIBETPAN_FLAGS)
+AC_SUBST(LIBETPAN_LIBS)
+
 dnl ****************************
 dnl ** Final configure output **
 dnl ****************************
@@ -627,6 +654,7 @@ src/Makefile
 src/common/Makefile
 src/common/passcrypt.h
 src/gtk/Makefile
+src/etpan/Makefile
 src/plugins/Makefile
 src/plugins/demo/Makefile
 src/plugins/spamassassin/Makefile