2007-10-09 11:55:25 +02:00
|
|
|
|
2010-10-02 21:20:57 +02:00
|
|
|
AC_PREREQ(2.59)
|
2002-03-22 10:15:31 +01:00
|
|
|
AC_INIT(src/main.c)
|
2002-10-08 20:26:11 +02:00
|
|
|
AC_CONFIG_AUX_DIR(config)
|
2009-04-03 11:13:09 +02:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2002-09-18 15:42:52 +02:00
|
|
|
|
2006-11-07 11:24:03 +01:00
|
|
|
PACKAGE=claws-mail
|
2002-03-22 10:15:31 +01:00
|
|
|
|
|
|
|
dnl version number
|
2007-09-03 07:45:17 +02:00
|
|
|
MAJOR_VERSION=3
|
2012-11-14 17:18:26 +01:00
|
|
|
MINOR_VERSION=9
|
|
|
|
MICRO_VERSION=0
|
2002-03-22 10:15:31 +01:00
|
|
|
INTERFACE_AGE=0
|
|
|
|
BINARY_AGE=0
|
2013-02-20 09:45:59 +01:00
|
|
|
EXTRA_VERSION=83
|
2004-06-25 10:05:09 +02:00
|
|
|
EXTRA_RELEASE=
|
2007-01-12 12:25:19 +01:00
|
|
|
EXTRA_GTK2_VERSION=
|
2004-06-25 10:05:09 +02:00
|
|
|
|
|
|
|
if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
|
2004-07-12 12:39:50 +02:00
|
|
|
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
|
2003-08-02 14:46:56 +02:00
|
|
|
else
|
2004-07-12 12:39:50 +02:00
|
|
|
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}cvs${EXTRA_VERSION}${EXTRA_GTK2_VERSION}
|
2003-08-02 14:46:56 +02:00
|
|
|
fi
|
2002-03-22 10:15:31 +01:00
|
|
|
|
|
|
|
dnl set $target
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
|
|
|
|
dnl
|
|
|
|
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
|
|
|
|
dnl AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
|
|
|
|
dnl AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
|
|
|
|
AC_SUBST(PACKAGE)
|
|
|
|
AC_SUBST(VERSION)
|
2003-07-18 21:08:45 +02:00
|
|
|
AC_SUBST(MAJOR_VERSION)
|
|
|
|
AC_SUBST(MINOR_VERSION)
|
|
|
|
AC_SUBST(MICRO_VERSION)
|
|
|
|
AC_SUBST(EXTRA_VERSION)
|
2002-03-22 10:15:31 +01:00
|
|
|
|
|
|
|
dnl GNOME installed?
|
|
|
|
AC_PATH_PROG(GNOME_CONFIG, gnome-config, no)
|
|
|
|
if test "$GNOME_CONFIG" != no; then
|
2003-02-24 21:11:50 +01:00
|
|
|
gnomedatadir="`gnome-config --datadir`"
|
|
|
|
gnomeprefix="`gnome-config --prefix`"
|
2003-03-05 14:51:04 +01:00
|
|
|
if test "${prefix}" = "NONE"; then
|
|
|
|
gnomedatadir="${ac_default_prefix}/${gnomedatadir#${gnomeprefix}}"
|
|
|
|
else
|
|
|
|
gnomedatadir="${prefix}/${gnomedatadir#${gnomeprefix}}"
|
|
|
|
fi
|
2003-02-24 21:11:50 +01:00
|
|
|
AC_SUBST(gnomedatadir)
|
2002-03-22 10:15:31 +01:00
|
|
|
fi
|
2006-11-27 09:07:23 +01:00
|
|
|
AM_CONDITIONAL(CLAWS_GNOME, test -n "$gnomedatadir")
|
2002-03-22 10:15:31 +01:00
|
|
|
|
2007-07-25 18:37:48 +02:00
|
|
|
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
|
|
|
if test x$PKG_CONFIG = xno ; then
|
|
|
|
AC_MSG_ERROR([*** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/])
|
|
|
|
fi
|
|
|
|
|
2005-04-01 09:21:22 +02:00
|
|
|
dnl GNOME 2.x installed?
|
|
|
|
PKG_CHECK_MODULES(GNOME2, libgnome-2.0 >= 2.0, ac_enable_gnome2=yes, ac_enable_gnome2=no)
|
2006-11-27 09:07:23 +01:00
|
|
|
AM_CONDITIONAL(CLAWS_GNOME2, test x"$ac_enable_gnome2" = x"yes")
|
2005-04-01 09:21:22 +02:00
|
|
|
|
2002-03-22 10:15:31 +01:00
|
|
|
dnl libtool versioning
|
|
|
|
LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
|
|
|
|
LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
|
|
|
|
LT_REVISION=$INTERFACE_AGE
|
|
|
|
LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
|
|
|
|
AC_SUBST(LT_RELEASE)
|
|
|
|
AC_SUBST(LT_CURRENT)
|
|
|
|
AC_SUBST(LT_REVISION)
|
|
|
|
AC_SUBST(LT_AGE)
|
|
|
|
|
|
|
|
dnl Specify a header configuration file
|
2004-01-12 22:28:31 +01:00
|
|
|
AC_CONFIG_HEADERS(config.h)
|
2012-07-07 09:09:39 +02:00
|
|
|
AC_CONFIG_HEADERS(claws-features.h)
|
2002-03-22 10:15:31 +01:00
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
dnl Checks for programs.
|
2002-12-03 11:28:02 +01:00
|
|
|
dnl AC_ARG_PROGRAM
|
2002-03-22 10:15:31 +01:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_ISC_POSIX
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_CPP
|
|
|
|
dnl AC_PROG_RANLIB
|
|
|
|
AM_PROG_LEX
|
|
|
|
AC_PROG_YACC
|
2005-12-20 18:43:40 +01:00
|
|
|
AC_LIB_PREFIX
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
2011-06-18 20:18:21 +02:00
|
|
|
LT_INIT
|
2009-03-23 19:14:52 +01:00
|
|
|
LT_AC_PROG_RC
|
2005-12-20 18:43:40 +01:00
|
|
|
AC_LIBTOOL_RC
|
2004-01-12 22:28:31 +01:00
|
|
|
AC_PROG_LIBTOOL
|
2002-03-22 10:15:31 +01:00
|
|
|
|
2009-06-18 20:01:23 +02:00
|
|
|
AC_SYS_LARGEFILE
|
|
|
|
|
2003-10-05 12:10:30 +02:00
|
|
|
dnl ******************************
|
|
|
|
dnl Checks for host
|
2005-12-20 18:43:40 +01:00
|
|
|
dnl Not needed anymore because we
|
|
|
|
dnl do AC_CANONICAL_SYSTEM above
|
2003-10-05 12:10:30 +02:00
|
|
|
dnl ******************************
|
2005-12-20 18:43:40 +01:00
|
|
|
dnl AC_CANONICAL_HOST
|
2003-10-05 12:10:30 +02:00
|
|
|
|
|
|
|
dnl Copied from the official gtk+-2 configure.in
|
|
|
|
AC_MSG_CHECKING([for some Win32 platform])
|
|
|
|
case "$host" in
|
|
|
|
*-*-mingw*|*-*-cygwin*)
|
|
|
|
platform_win32=yes
|
|
|
|
LDFLAGS="$LDFLAGS -mwindows"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
platform_win32=no
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_MSG_RESULT([$platform_win32])
|
|
|
|
AM_CONDITIONAL(PLATFORM_WIN32, test x"$platform_win32" = x"yes")
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for native Win32])
|
|
|
|
case "$host" in
|
|
|
|
*-*-mingw*)
|
|
|
|
os_win32=yes
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
os_win32=no
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_MSG_RESULT([$os_win32])
|
|
|
|
AM_CONDITIONAL(OS_WIN32, test x"$os_win32" = x"yes")
|
2002-03-22 10:15:31 +01:00
|
|
|
|
2006-03-05 11:04:40 +01:00
|
|
|
AC_MSG_CHECKING([for Cygwin])
|
|
|
|
case "$host" in
|
|
|
|
*-*-cygwin*)
|
|
|
|
env_cygwin=yes
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
env_cygwin=no
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_MSG_RESULT([$env_cygwin])
|
|
|
|
AM_CONDITIONAL(CYGWIN, test x"$env_cygwin" = x"yes")
|
|
|
|
|
2007-10-05 11:26:58 +02:00
|
|
|
if test "$GCC" = "yes"
|
|
|
|
then
|
2011-04-10 17:20:49 +02:00
|
|
|
CFLAGS="$CFLAGS -Wno-unused-function"
|
2012-04-01 20:45:27 +02:00
|
|
|
#CFLAGS="-g -Wall -Wno-unused-function"
|
2007-10-05 11:26:58 +02:00
|
|
|
fi
|
|
|
|
|
2008-12-03 11:25:56 +01:00
|
|
|
AC_MSG_CHECKING([if gcc supports -Wno-pointer-sign])
|
|
|
|
_gcc_cflags_save=$CFLAGS
|
|
|
|
CFLAGS="-Wno-pointer-sign"
|
2011-06-18 20:18:21 +02:00
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],_gcc_psign=yes,_gcc_psign=no)
|
2008-12-03 11:25:56 +01:00
|
|
|
AC_MSG_RESULT($_gcc_psign)
|
|
|
|
CFLAGS=$_gcc_cflags_save;
|
|
|
|
if test x"$_gcc_psign" = xyes ; then
|
|
|
|
CFLAGS="$CFLAGS -Wno-pointer-sign"
|
|
|
|
fi
|
|
|
|
|
2011-04-23 16:09:08 +02:00
|
|
|
CFLAGS="$CFLAGS -Wall"
|
2008-08-05 08:37:13 +02:00
|
|
|
|
2013-01-23 17:17:00 +01:00
|
|
|
if test $USE_MAINTAINER_MODE = yes; then
|
|
|
|
CFLAGS="-g -Wall -Wno-pointer-sign"
|
|
|
|
fi
|
2008-08-05 08:37:13 +02:00
|
|
|
|
2005-12-20 18:43:40 +01:00
|
|
|
pthread_name=
|
2002-03-22 10:15:31 +01:00
|
|
|
case "$target" in
|
|
|
|
*-darwin*)
|
2005-04-06 10:46:10 +02:00
|
|
|
CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
|
2002-03-22 10:15:31 +01:00
|
|
|
;;
|
2005-08-19 12:09:38 +02:00
|
|
|
*-*-mingw*)
|
2005-12-20 18:43:40 +01:00
|
|
|
# Note that we need to link to pthreadGC2 in all cases. This
|
|
|
|
# is because some locking is used even when pthread support is
|
|
|
|
# disabled.
|
|
|
|
pthread_name=pthreadGC2
|
2005-08-19 12:09:38 +02:00
|
|
|
CFLAGS="$CFLAGS -mms-bitfields"
|
2005-12-20 18:43:40 +01:00
|
|
|
LIBS="$LIBS -l${pthread_name} -lws2_32 -lregex"
|
2005-08-19 12:09:38 +02:00
|
|
|
;;
|
2007-10-07 19:39:49 +02:00
|
|
|
*-*-solaris*)
|
2007-05-25 08:50:30 +02:00
|
|
|
CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
|
2010-05-22 13:20:04 +02:00
|
|
|
CFLAGS="$CFLAGS -std=gnu99 -DSOLARIS"
|
2007-05-25 08:50:30 +02:00
|
|
|
;;
|
2002-03-22 10:15:31 +01:00
|
|
|
esac
|
2003-10-05 12:10:30 +02:00
|
|
|
|
|
|
|
dnl Checks for iconv
|
2003-06-21 17:40:50 +02:00
|
|
|
AM_ICONV
|
|
|
|
|
2011-11-11 20:34:21 +01:00
|
|
|
dnl floor and ceil are in -lm
|
|
|
|
LIBS="$LIBS -lm"
|
|
|
|
|
2005-02-10 13:06:07 +01:00
|
|
|
dnl
|
|
|
|
dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
|
|
|
|
dnl
|
|
|
|
syl_save_LIBS=$LIBS
|
|
|
|
LIBS="$LIBS $GTK_LIBS"
|
|
|
|
AC_CHECK_FUNCS(bind_textdomain_codeset)
|
|
|
|
LIBS=$syl_save_LIBS
|
|
|
|
|
2002-03-22 10:15:31 +01:00
|
|
|
dnl for gettext
|
2012-06-27 10:29:38 +02:00
|
|
|
ALL_LINGUAS="bg ca cs de en_GB es fi fr hu id_ID it ja lt nl pl pt_BR pt_PT ru sk sv uk zh_CN zh_TW"
|
2006-11-07 11:24:03 +01:00
|
|
|
GETTEXT_PACKAGE=claws-mail
|
2005-02-10 13:06:07 +01:00
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define text domain.])
|
|
|
|
|
2006-08-28 09:07:05 +02:00
|
|
|
AM_GNU_GETTEXT_VERSION([0.15])
|
2005-12-20 18:43:40 +01:00
|
|
|
AM_GNU_GETTEXT([external])
|
|
|
|
|
2006-12-20 15:35:27 +01:00
|
|
|
manualdir='${docdir}/manual'
|
2006-01-20 19:48:40 +01:00
|
|
|
AC_ARG_WITH(manualdir,
|
|
|
|
[ --with-manualdir=DIR Manual directory],
|
|
|
|
[manualdir="$withval"])
|
|
|
|
AC_SUBST(manualdir)
|
2002-03-22 10:15:31 +01:00
|
|
|
|
2006-01-26 19:20:22 +01:00
|
|
|
AC_ARG_ENABLE(manual,
|
2007-07-26 10:42:29 +02:00
|
|
|
[ --disable-manual do not build manual],
|
2006-01-26 19:20:22 +01:00
|
|
|
[ac_cv_enable_manual=$enableval], [ac_cv_enable_manual=yes])
|
|
|
|
|
2010-10-02 21:20:57 +02:00
|
|
|
dnl ******************************
|
|
|
|
dnl ** Check for required tools **
|
|
|
|
dnl ** to build manuals **
|
|
|
|
dnl ******************************
|
|
|
|
|
2010-12-03 14:08:23 +01:00
|
|
|
AC_PATH_PROG(DOCBOOK2HTML, docbook2html)
|
|
|
|
AC_PATH_PROG(DOCBOOK2TXT, docbook2txt)
|
|
|
|
AC_PATH_PROG(DOCBOOK2PS, docbook2ps)
|
|
|
|
AC_PATH_PROG(DOCBOOK2PDF, docbook2pdf)
|
2010-10-02 21:20:57 +02:00
|
|
|
|
|
|
|
AM_CONDITIONAL(MANUAL_HTML, test -n "$DOCBOOK2HTML")
|
2010-12-03 14:08:23 +01:00
|
|
|
AM_CONDITIONAL(MANUAL_TXT, test -n "$DOCBOOK2TXT")
|
|
|
|
AM_CONDITIONAL(MANUAL_PDF, test -n "$DOCBOOK2PDF")
|
2010-10-02 21:20:57 +02:00
|
|
|
AM_CONDITIONAL(MANUAL_PS, test -n "$DOCBOOK2PS")
|
|
|
|
|
2010-12-03 01:03:23 +01:00
|
|
|
if test x"$ac_cv_enable_manual" = x"yes"; then
|
|
|
|
if test -n "$DOCBOOK2TXT" -o -n "$DOCBOOK2HTML" \
|
2010-12-03 14:08:23 +01:00
|
|
|
-o -n "$DOCBOOK2PS" -o -n "$DOCBOOK2PDF"; then
|
2010-12-03 01:03:23 +01:00
|
|
|
ac_cv_enable_manual=yes
|
|
|
|
else
|
|
|
|
ac_cv_enable_manual=no
|
|
|
|
fi
|
2010-10-02 21:20:57 +02:00
|
|
|
fi
|
|
|
|
|
2006-01-26 19:20:22 +01:00
|
|
|
AM_CONDITIONAL(BUILD_MANUAL, test x"$ac_cv_enable_manual" = xyes)
|
|
|
|
|
2002-03-22 10:15:31 +01:00
|
|
|
dnl Set PACKAGE_DATA_DIR in config.h.
|
2006-08-28 09:07:05 +02:00
|
|
|
if test "x${datarootdir}" = 'x${prefix}/share'; then
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}",[PACKAGE_DATA_DIR])
|
|
|
|
else
|
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}",[PACKAGE_DATA_DIR])
|
|
|
|
fi
|
2002-03-22 10:15:31 +01:00
|
|
|
else
|
2006-08-28 09:07:05 +02:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datarootdir}/${PACKAGE}",[PACKAGE_DATA_DIR])
|
2002-03-22 10:15:31 +01:00
|
|
|
fi
|
|
|
|
|
2002-12-26 16:36:46 +01:00
|
|
|
AC_CHECK_LIB(xpg4, setlocale)
|
|
|
|
|
2006-09-27 22:32:39 +02:00
|
|
|
SM_LIBS=""
|
|
|
|
dnl Check for LibSM
|
|
|
|
AC_ARG_ENABLE(libsm,
|
2007-07-26 10:42:29 +02:00
|
|
|
[ --disable-libsm disable libSM support for session management.],
|
2006-09-27 22:32:39 +02:00
|
|
|
[ac_cv_enable_libsm=$enableval], [ac_cv_enable_libsm=yes])
|
|
|
|
AC_MSG_CHECKING([whether to use LibSM])
|
|
|
|
if test x"$ac_cv_enable_libsm" = xyes; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_CHECK_LIB(SM, SmcSaveYourselfDone,
|
|
|
|
[SM_LIBS="$X_LIBS -lSM -lICE"],ac_cv_enable_libsm=no,
|
|
|
|
$X_LIBS -lICE)
|
2006-09-28 07:35:51 +02:00
|
|
|
AC_CHECK_HEADERS(X11/SM/SMlib.h,,ac_cv_enable_libsm=no)
|
2006-09-27 22:32:39 +02:00
|
|
|
if test x"$ac_cv_enable_libsm" = xyes; then
|
|
|
|
AC_DEFINE(HAVE_LIBSM, 1, [Define to 1 if you have libSM installed])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(not found)
|
|
|
|
AC_MSG_WARN([*** LibSM will not be supported ***])
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AC_SUBST(SM_LIBS)
|
|
|
|
|
2004-01-12 22:28:31 +01:00
|
|
|
dnl Check for d_type member in struct dirent
|
|
|
|
AC_MSG_CHECKING([whether struct dirent has d_type member])
|
|
|
|
AC_CACHE_VAL(ac_cv_dirent_d_type,[
|
|
|
|
AC_TRY_COMPILE([#include <dirent.h>],
|
|
|
|
[struct dirent d; d.d_type = DT_REG;],
|
|
|
|
ac_cv_dirent_d_type=yes, ac_cv_dirent_d_type=no)
|
|
|
|
])
|
|
|
|
AC_MSG_RESULT($ac_cv_dirent_d_type)
|
|
|
|
if test $ac_cv_dirent_d_type = yes; then
|
|
|
|
AC_DEFINE(HAVE_DIRENT_D_TYPE, 1,
|
|
|
|
Define if `struct dirent' has `d_type' member.)
|
|
|
|
fi
|
|
|
|
|
2005-12-20 18:43:40 +01:00
|
|
|
# Check whether mkdir does not take the permission argument.
|
|
|
|
GNUPG_FUNC_MKDIR_TAKES_ONE_ARG
|
|
|
|
|
2002-12-26 16:36:46 +01:00
|
|
|
dnl Checks for header files.
|
|
|
|
AC_HEADER_DIRENT
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_HEADER_SYS_WAIT
|
|
|
|
AC_CHECK_HEADERS(fcntl.h sys/file.h unistd.h paths.h \
|
|
|
|
sys/param.h sys/utsname.h sys/select.h \
|
2005-08-19 12:09:38 +02:00
|
|
|
wchar.h wctype.h locale.h netdb.h)
|
2009-02-23 10:23:38 +01:00
|
|
|
AC_CHECK_HEADER([execinfo.h], [AC_DEFINE(HAVE_BACKTRACE,1,[Has backtrace*() needed for retrieving stack traces])])
|
|
|
|
AC_SEARCH_LIBS(backtrace_symbols, [execinfo])
|
2002-12-26 16:36:46 +01:00
|
|
|
|
2003-06-07 03:01:50 +02:00
|
|
|
dnl alf - Check for apache installation f*ck up. apache may also install an
|
|
|
|
dnl fnmatch, which includes their own regex stuff if USE_HSREGEX is defined
|
|
|
|
AC_TRY_COMPILE([#include <stdlib.h>
|
|
|
|
#include <fnmatch.h>],
|
|
|
|
[int x = USE_HSREGEX;],
|
|
|
|
ac_cv_have_apache_fnmatch=yes, ac_cv_have_apache_fnmatch=no)
|
|
|
|
if test $ac_cv_have_apache_fnmatch = yes; then
|
|
|
|
AC_DEFINE(HAVE_APACHE_FNMATCH, 1, Define if you need to work around apache regex/fnmatch !KLUDGE!)
|
|
|
|
fi
|
|
|
|
AC_MSG_CHECKING([whether to use Apache regex header kludge])
|
|
|
|
AC_MSG_RESULT($ac_cv_have_apache_fnmatch)
|
|
|
|
|
2002-12-26 16:36:46 +01:00
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
|
|
|
AC_TYPE_OFF_T
|
|
|
|
AC_TYPE_PID_T
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_STRUCT_TM
|
|
|
|
|
|
|
|
dnl AC_CHECK_TYPE(wint_t, unsigned int) does not work because wint_t
|
|
|
|
dnl may be defined only in wchar.h (this happens with gcc-2.96).
|
|
|
|
dnl So we need to use this extended macro.
|
2006-11-27 09:07:23 +01:00
|
|
|
CLAWS_CHECK_TYPE(wint_t, unsigned int,
|
2002-12-26 16:36:46 +01:00
|
|
|
[
|
|
|
|
#if HAVE_WCHAR_H
|
|
|
|
#include <wchar.h>
|
|
|
|
#endif
|
|
|
|
], Define to `unsigned int' if <stddef.h> or <wchar.h> doesn't define.)
|
|
|
|
|
|
|
|
GNUPG_CHECK_TYPEDEF(u32, HAVE_U32_TYPEDEF, Used to test for a u32 typedef)
|
|
|
|
AC_CHECK_SIZEOF(unsigned short, 2)
|
|
|
|
AC_CHECK_SIZEOF(unsigned int, 4)
|
|
|
|
AC_CHECK_SIZEOF(unsigned long, 4)
|
|
|
|
|
|
|
|
dnl Checks for library functions.
|
|
|
|
AC_FUNC_ALLOCA
|
|
|
|
AC_CHECK_FUNCS(gethostname mkdir mktime socket strstr strchr \
|
|
|
|
uname flock lockf inet_aton inet_addr \
|
2005-08-19 12:09:38 +02:00
|
|
|
fchmod mkstemp truncate getuid regcomp)
|
2002-12-26 16:36:46 +01:00
|
|
|
|
2006-10-09 08:22:58 +02:00
|
|
|
AC_CHECK_FUNCS(fgets_unlocked fwrite_unlocked)
|
|
|
|
|
2002-12-26 16:36:46 +01:00
|
|
|
dnl *****************
|
|
|
|
dnl ** common code **
|
|
|
|
dnl *****************
|
|
|
|
|
|
|
|
dnl check for glib
|
2007-06-18 08:49:27 +02:00
|
|
|
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6)
|
|
|
|
|
|
|
|
GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
|
|
|
|
AC_SUBST(GLIB_GENMARSHAL)
|
|
|
|
|
|
|
|
AC_SUBST(GLIB_CFLAGS)
|
|
|
|
AC_SUBST(GLIB_LIBS)
|
2003-10-05 12:10:30 +02:00
|
|
|
|
|
|
|
dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
|
|
|
|
syl_save_LIBS=$LIBS
|
|
|
|
LIBS="$LIBS $GTK_LIBS"
|
|
|
|
AC_CHECK_FUNCS(bind_textdomain_codeset)
|
|
|
|
LIBS=$syl_save_LIBS
|
2002-12-26 16:36:46 +01:00
|
|
|
|
|
|
|
dnl check for IPv6 option
|
|
|
|
AC_ARG_ENABLE(ipv6,
|
2007-07-26 10:42:29 +02:00
|
|
|
[ --disable-ipv6 disable build IPv6 support],
|
2004-01-12 22:28:31 +01:00
|
|
|
[ac_cv_enable_ipv6=$enableval], [ac_cv_enable_ipv6=yes])
|
2002-12-26 16:36:46 +01:00
|
|
|
|
|
|
|
dnl automated checks for IPv6 support.
|
|
|
|
AC_MSG_CHECKING([whether to use IPv6])
|
|
|
|
if test x"$ac_cv_enable_ipv6" = xyes; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_MSG_CHECKING([for IPv6 support])
|
|
|
|
AC_CACHE_VAL(ac_cv_ipv6,[
|
|
|
|
AC_TRY_COMPILE([#define INET6
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <netinet/in.h>],
|
|
|
|
[int x = IPPROTO_IPV6; struct in6_addr a;],
|
|
|
|
ac_cv_ipv6=yes, ac_cv_ipv6=no)
|
|
|
|
])
|
|
|
|
AC_MSG_RESULT($ac_cv_ipv6)
|
|
|
|
if test $ac_cv_ipv6 = yes; then
|
|
|
|
AC_DEFINE(INET6, 1, Define if you want IPv6 support.)
|
|
|
|
else
|
|
|
|
AC_MSG_WARN(*** IPv6 will not be supported ***)
|
|
|
|
ac_cv_enable_ipv6=no
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
2007-10-30 14:55:59 +01:00
|
|
|
dnl GNUTLS
|
2008-12-03 11:25:56 +01:00
|
|
|
AC_MSG_CHECKING([whether to use GnuTLS])
|
2010-01-22 21:50:03 +01:00
|
|
|
AC_ARG_ENABLE(gnutls, [ --enable-gnutls enable GnuTLS support],
|
2008-10-09 19:26:52 +02:00
|
|
|
[ac_cv_enable_gnutls=$enableval], [ac_cv_enable_gnutls=yes])
|
2007-10-30 14:55:59 +01:00
|
|
|
|
2008-12-03 11:25:56 +01:00
|
|
|
AC_MSG_RESULT($ac_cv_enable_gnutls)
|
2007-10-30 14:55:59 +01:00
|
|
|
if test "x$ac_cv_enable_gnutls" != "xno"; then
|
2011-09-02 10:13:03 +02:00
|
|
|
PKG_CHECK_MODULES(GNUTLS, gnutls >= 2.2,
|
|
|
|
[
|
|
|
|
AC_DEFINE(USE_GNUTLS, 1, gnutls)
|
|
|
|
echo "Building with GnuTLS"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
echo "Building without gnutls"
|
|
|
|
])
|
|
|
|
PKG_CHECK_MODULES(GNUTLS, gnutls >= 2.11,
|
|
|
|
[
|
|
|
|
dnl No linking against libgcrypt needed
|
|
|
|
],
|
|
|
|
[
|
|
|
|
dnl linking against libgcrypt *is* needed
|
|
|
|
GNUTLS_LIBS="$GNUTLS_LIBS -lgcrypt"
|
|
|
|
])
|
|
|
|
AC_SUBST(GNUTLS_LIBS)
|
|
|
|
AC_SUBST(GNUTLS_CFLAGS)
|
2007-10-18 09:13:06 +02:00
|
|
|
fi
|
|
|
|
|
2004-06-25 10:05:09 +02:00
|
|
|
dnl password encryption
|
|
|
|
OLDLIBS=$LIBS
|
|
|
|
LIBS=
|
2006-04-17 20:32:54 +02:00
|
|
|
case $host_os in
|
|
|
|
*dragonfly*)
|
|
|
|
AC_SEARCH_LIBS(encrypt, cipher, [], AC_MSG_ERROR(['encrypt'-function not found.]))
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_SEARCH_LIBS(encrypt, crypt, [], AC_MSG_ERROR(['encrypt'-function not found.]))
|
|
|
|
;;
|
|
|
|
esac
|
2004-06-25 10:05:09 +02:00
|
|
|
CRYPT_LIBS=$LIBS
|
|
|
|
AC_SUBST(CRYPT_LIBS)
|
|
|
|
LIBS=$OLDLIBS
|
|
|
|
|
2003-03-02 17:29:07 +01:00
|
|
|
AC_ARG_WITH(passcrypt-key, [ --with-passcrypt-key=KEY Key used to encode passwords (8 byte string)],
|
|
|
|
with_passcrypt_key="$withval", with_passcrypt_key="passkey0")
|
|
|
|
AC_SUBST(PASSCRYPT_KEY, $with_passcrypt_key)
|
|
|
|
|
2003-07-09 23:41:44 +02:00
|
|
|
dnl RC dir (will be default at a certain point in time)
|
2006-11-07 11:24:03 +01:00
|
|
|
AC_ARG_WITH(config-dir, [ --with-config-dir=RCDIR Local configuration dir (default: .claws-mail)],
|
|
|
|
ac_cv_with_config_dir="$withval", ac_cv_with_config_dir=".claws-mail")
|
2003-07-09 23:41:44 +02:00
|
|
|
if test x"$ac_cv_with_config_dir" = x""; then
|
2006-11-07 11:24:03 +01:00
|
|
|
ac_cv_with_config_dir=".claws-mail"
|
2003-07-09 23:41:44 +02:00
|
|
|
fi
|
|
|
|
AC_DEFINE_UNQUOTED(CFG_RC_DIR, "$ac_cv_with_config_dir", Configuration directory)
|
|
|
|
|
2002-12-26 16:36:46 +01:00
|
|
|
dnl ************************
|
|
|
|
dnl ** GTK user interface **
|
|
|
|
dnl ************************
|
|
|
|
|
|
|
|
dnl Checks for GTK
|
2011-10-07 11:40:16 +02:00
|
|
|
AC_ARG_ENABLE(gtk3,
|
|
|
|
AS_HELP_STRING([--enable-gtk3],
|
2011-10-07 13:56:40 +02:00
|
|
|
[Determines whether to use Gtk+ 3.0.]),
|
2011-10-07 11:40:16 +02:00
|
|
|
[ac_cv_enable_gtk3=$enableval],[ac_cv_enable_gtk3=no])
|
2011-10-07 12:06:26 +02:00
|
|
|
AM_CONDITIONAL(GTK3, false)
|
|
|
|
AM_CONDITIONAL(GTK2, true)
|
2011-10-07 11:40:16 +02:00
|
|
|
if test x"$ac_cv_enable_gtk3" = x"yes"; then
|
|
|
|
PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 3.0 cairo)
|
2011-10-07 12:06:26 +02:00
|
|
|
AM_CONDITIONAL(GTK3, true)
|
|
|
|
AM_CONDITIONAL(GTK2, false)
|
2011-10-07 11:40:16 +02:00
|
|
|
else
|
2012-06-27 11:02:21 +02:00
|
|
|
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.16)
|
2002-03-22 10:15:31 +01:00
|
|
|
|
2011-10-07 12:06:26 +02:00
|
|
|
dnl --disable-deprecated switch for GTK2 purification
|
|
|
|
AC_ARG_ENABLE(deprecated, [ --disable-deprecated disable deprecated GTK functions. ],
|
2005-02-10 13:06:07 +01:00
|
|
|
[GTK_CFLAGS="$GTK_CFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"], [])
|
2011-10-07 11:40:16 +02:00
|
|
|
fi
|
2005-02-10 13:06:07 +01:00
|
|
|
AC_SUBST(GTK_CFLAGS)
|
|
|
|
AC_SUBST(GTK_LIBS)
|
|
|
|
|
2008-09-12 18:11:51 +02:00
|
|
|
dnl enchant is used for spell checking
|
2008-12-03 11:25:56 +01:00
|
|
|
AC_MSG_CHECKING([whether to use enchant])
|
2008-09-12 18:11:51 +02:00
|
|
|
AC_ARG_ENABLE(enchant,
|
|
|
|
[ --disable-enchant disable enchant support],
|
|
|
|
[ac_cv_enable_enchant=$enableval], [ac_cv_enable_enchant=yes])
|
2008-12-03 11:25:56 +01:00
|
|
|
AC_MSG_RESULT($ac_cv_enable_enchant)
|
2008-09-12 18:11:51 +02:00
|
|
|
if test $ac_cv_enable_enchant = yes; then
|
|
|
|
PKG_CHECK_MODULES(ENCHANT, enchant >= 1.0.0,
|
|
|
|
[
|
|
|
|
AC_DEFINE(USE_ENCHANT, 1, enchant)
|
|
|
|
echo "Building with enchant"
|
|
|
|
ac_cv_enable_enchant=yes
|
2009-04-26 12:31:28 +02:00
|
|
|
CFLAGS="$CFLAGS `$PKG_CONFIG --cflags enchant`"
|
2008-09-12 18:11:51 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
echo "Building without enchant-notification"
|
|
|
|
ac_cv_enable_enchant=no
|
|
|
|
])
|
|
|
|
AC_SUBST(ENCHANT_CFLAGS)
|
|
|
|
AC_SUBST(ENCHANT_LIBS)
|
2002-03-22 10:15:31 +01:00
|
|
|
fi
|
|
|
|
|
2002-12-26 16:36:46 +01:00
|
|
|
dnl want crash dialog
|
|
|
|
AC_ARG_ENABLE(crash-dialog,
|
|
|
|
[ --enable-crash-dialog Enable crash dialog [default=no]],
|
|
|
|
[ac_cv_enable_crash_dialog=$enableval], [ac_cv_enable_crash_dialog=no])
|
|
|
|
if test $ac_cv_enable_crash_dialog = yes; then
|
|
|
|
dnl check if GDB is somewhere
|
|
|
|
AC_CHECK_PROG(ac_cv_enable_crash_dialog, gdb, yes, no)
|
|
|
|
AC_MSG_CHECKING([whether to use crash dialog])
|
|
|
|
if test $ac_cv_enable_crash_dialog = yes; then
|
|
|
|
AC_DEFINE(CRASH_DIALOG, 1, Pop up crash dialog)
|
2002-03-22 10:15:31 +01:00
|
|
|
fi
|
2002-12-26 16:36:46 +01:00
|
|
|
AC_MSG_RESULT($ac_cv_enable_crash_dialog)
|
|
|
|
fi
|
2002-03-22 10:15:31 +01:00
|
|
|
|
2008-05-07 13:17:57 +02:00
|
|
|
dnl generic umpc
|
|
|
|
AC_ARG_ENABLE(generic-umpc,
|
|
|
|
[ --enable-generic-umpc Enable generic UMPC code [default=no]],
|
|
|
|
[ac_cv_enable_generic_umpc=$enableval], [ac_cv_enable_generic_umpc=no])
|
|
|
|
if test $ac_cv_enable_generic_umpc = yes; then
|
|
|
|
AC_DEFINE(GENERIC_UMPC, 1, Generic UMPC code)
|
|
|
|
AC_MSG_RESULT($ac_cv_enable_generic_umpc)
|
|
|
|
fi
|
|
|
|
|
2007-03-21 18:44:45 +01:00
|
|
|
dnl Maemo platform
|
|
|
|
AC_ARG_ENABLE(maemo,
|
2007-07-26 10:42:29 +02:00
|
|
|
[ --enable-maemo build for the Maemo platform [default=no]],
|
2007-03-21 18:44:45 +01:00
|
|
|
[ac_cv_enable_maemo=$enableval], [ac_cv_enable_maemo=no])
|
|
|
|
if test $ac_cv_enable_maemo = yes; then
|
2007-07-19 18:36:11 +02:00
|
|
|
PKG_CHECK_MODULES(MAEMO, libosso hildon-libs hildon-fm gnome-vfs-2.0, ac_cv_enable_maemo=yes,
|
2007-03-21 21:55:43 +01:00
|
|
|
ac_cv_enable_maemo=no)
|
|
|
|
AC_SUBST(MAEMO_CFLAGS)
|
|
|
|
AC_SUBST(MAEMO_LIBS)
|
|
|
|
if test $ac_cv_enable_maemo = no; then
|
2007-11-10 13:42:23 +01:00
|
|
|
#test for chinook
|
2007-11-10 14:24:29 +01:00
|
|
|
PKG_CHECK_MODULES(MAEMO, libosso hildon-1 hildon-fm-2 gnome-vfs-2.0 hal, ac_cv_enable_maemo=yes,
|
2007-11-10 13:42:23 +01:00
|
|
|
ac_cv_enable_maemo=no)
|
|
|
|
AC_SUBST(MAEMO_CFLAGS)
|
|
|
|
AC_SUBST(MAEMO_LIBS)
|
|
|
|
if test $ac_cv_enable_maemo = no; then
|
|
|
|
AC_MSG_ERROR(one of libosso hildon-libs hildon-fm hildon-1 hildon-fm-2 not found)
|
|
|
|
else
|
|
|
|
AC_DEFINE(MAEMO, 1, Build for maemo)
|
|
|
|
AC_DEFINE(CHINOOK, 1, Maemo chinook)
|
2008-05-07 13:17:57 +02:00
|
|
|
AC_DEFINE(GENERIC_UMPC, 1, Generic UMPC code)
|
2008-05-07 10:18:24 +02:00
|
|
|
ac_cv_enable_generic_umpc=yes
|
2007-11-10 13:42:23 +01:00
|
|
|
fi
|
2007-03-21 22:03:18 +01:00
|
|
|
else
|
|
|
|
AC_DEFINE(MAEMO, 1, Build for maemo)
|
2008-05-07 13:17:57 +02:00
|
|
|
AC_DEFINE(GENERIC_UMPC, 1, Generic UMPC code)
|
2008-05-07 10:18:24 +02:00
|
|
|
ac_cv_enable_generic_umpc=yes
|
2007-03-21 18:44:45 +01:00
|
|
|
fi
|
|
|
|
fi
|
2008-05-07 10:18:24 +02:00
|
|
|
|
2007-07-18 19:04:03 +02:00
|
|
|
PKG_CHECK_MODULES(CONIC, conic, ac_cv_enable_conic=yes,
|
|
|
|
ac_cv_enable_conic=no)
|
|
|
|
AC_SUBST(CONIC_CFLAGS)
|
|
|
|
AC_SUBST(CONIC_LIBS)
|
|
|
|
if test $ac_cv_enable_conic = yes; then
|
|
|
|
AC_DEFINE(CONIC, 1, Have conic lib)
|
|
|
|
fi
|
2007-03-21 18:44:45 +01:00
|
|
|
|
2002-12-26 16:36:46 +01:00
|
|
|
dnl Check for X-Face support
|
|
|
|
AC_ARG_ENABLE(compface,
|
2007-07-26 10:42:29 +02:00
|
|
|
[ --disable-compface disable compface (X-Face) support],
|
2002-12-26 16:36:46 +01:00
|
|
|
[ac_cv_enable_compface=$enableval], [ac_cv_enable_compface=yes])
|
2004-01-12 22:28:31 +01:00
|
|
|
AC_MSG_CHECKING([whether to use compface])
|
|
|
|
if test x"$ac_cv_enable_compface" = xyes; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_CHECK_LIB(compface, uncompface,
|
|
|
|
[AC_DEFINE(HAVE_LIBCOMPFACE, 1, Define if you want compface support.)],
|
|
|
|
[ac_cv_enable_compface=no])
|
|
|
|
if test x"$ac_cv_enable_compface" = xyes; then
|
|
|
|
COMPFACE_LIBS="-lcompface"
|
|
|
|
else
|
|
|
|
COMPFACE_LIBS=""
|
|
|
|
fi
|
|
|
|
AC_SUBST(COMPFACE_LIBS)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2002-03-22 10:15:31 +01:00
|
|
|
fi
|
|
|
|
|
2004-08-09 18:49:47 +02:00
|
|
|
dnl check for pthread support
|
|
|
|
AC_ARG_ENABLE(pthread,
|
2007-07-26 10:42:29 +02:00
|
|
|
[ --disable-pthread disable pthread support],
|
2004-08-09 18:49:47 +02:00
|
|
|
[ac_cv_enable_pthread=$enableval], [ac_cv_enable_pthread=yes])
|
|
|
|
AC_MSG_CHECKING([whether to use pthread])
|
|
|
|
if test x$ac_cv_enable_pthread = xno; then
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
|
2005-12-20 18:43:40 +01:00
|
|
|
# For W32 we need to use a special ptrhead lib. In this case we can't
|
|
|
|
# use AC_CHECK_LIB because it has no means of checking for a
|
|
|
|
# library installed under a different name. Checking for the
|
|
|
|
# header is okay.
|
|
|
|
if test -n "${pthread_name}" ; then
|
|
|
|
ac_cv_enable_pthread=yes
|
|
|
|
else
|
2004-08-09 18:49:47 +02:00
|
|
|
AC_CHECK_LIB(pthread, pthread_create, :, ac_cv_enable_pthread=no)
|
2005-12-20 18:43:40 +01:00
|
|
|
fi
|
2004-08-09 18:49:47 +02:00
|
|
|
AC_CHECK_HEADERS(pthread.h, :, ac_cv_enable_pthread=no)
|
|
|
|
|
|
|
|
if test x$ac_cv_enable_pthread = xyes; then
|
|
|
|
AC_DEFINE(USE_PTHREAD, 1, Define if you have pthread)
|
2005-12-20 18:43:40 +01:00
|
|
|
if test -z "${pthread_name}" ; then
|
2004-08-09 18:49:47 +02:00
|
|
|
PTHREAD_LIBS="-lpthread"
|
|
|
|
fi
|
2005-12-20 18:43:40 +01:00
|
|
|
fi
|
2004-08-09 18:49:47 +02:00
|
|
|
|
|
|
|
fi
|
|
|
|
AC_SUBST(PTHREAD_LIBS)
|
|
|
|
|
2005-12-20 18:43:40 +01:00
|
|
|
dnl
|
|
|
|
dnl Check whether we need to pass -lresolv
|
|
|
|
dnl We know that we don't need it for W32.
|
|
|
|
dnl
|
|
|
|
if test x$os_win32 = xno; then
|
|
|
|
t_oldLibs="$LIBS"
|
|
|
|
LIBS="$LIBS"
|
|
|
|
ac_cv_var__res_options=no
|
|
|
|
AC_TRY_LINK([#include <sys/types.h>
|
2005-07-21 12:03:48 +02:00
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <arpa/nameser.h>
|
|
|
|
#include <resolv.h>],
|
|
|
|
[_res.options = RES_INIT;],
|
|
|
|
ac_cv_var__res_options=yes);
|
2005-12-20 18:43:40 +01:00
|
|
|
if test "$ac_cv_var__res_options" != "yes"; then
|
2005-07-21 12:03:48 +02:00
|
|
|
LIBRESOLV="-lresolv"
|
2005-12-20 18:43:40 +01:00
|
|
|
fi
|
|
|
|
LIBS="$t_oldLibs"
|
2005-07-21 12:03:48 +02:00
|
|
|
|
2005-12-20 18:43:40 +01:00
|
|
|
if test "x$LIBRESOLV" = "x"; then
|
2005-07-21 12:03:48 +02:00
|
|
|
AC_CHECK_LIB(resolv, res_query, [LIBRESOLV=-lresolv])
|
|
|
|
LIBS="$t_oldLibs"
|
2005-12-20 18:43:40 +01:00
|
|
|
fi
|
2005-07-21 12:03:48 +02:00
|
|
|
fi
|
|
|
|
AC_SUBST(LIBRESOLV)
|
|
|
|
|
|
|
|
LIBS="$LIBS $LIBRESOLV"
|
2002-03-22 10:15:31 +01:00
|
|
|
|
2004-08-12 15:32:51 +02:00
|
|
|
dnl #######################################################################
|
|
|
|
dnl # Check for startup notification
|
|
|
|
dnl #######################################################################
|
2007-07-26 10:42:29 +02:00
|
|
|
AC_ARG_ENABLE(startup-notification, [ --disable-startup-notification disable startup notification support],,enable_startup_notification=yes)
|
2004-08-12 15:32:51 +02:00
|
|
|
|
|
|
|
if test "x$enable_startup_notification" = "xyes"; then
|
|
|
|
PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= 0.5,
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.])
|
|
|
|
echo "Building with libstartup-notification"
|
|
|
|
enable_startup_notification=yes
|
|
|
|
],
|
|
|
|
[
|
|
|
|
echo "Building without libstartup-notification"
|
|
|
|
enable_startup_notification=no
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_SUBST(STARTUP_NOTIFICATION_CFLAGS)
|
|
|
|
AC_SUBST(STARTUP_NOTIFICATION_LIBS)
|
|
|
|
fi
|
|
|
|
|
2008-01-14 10:14:07 +01:00
|
|
|
dnl #######################################################################
|
|
|
|
dnl # Check for D-Bus support
|
|
|
|
dnl #######################################################################
|
2008-09-23 18:13:10 +02:00
|
|
|
AC_ARG_ENABLE(dbus, [ --disable-dbus disable dbus support],,enable_dbus=yes)
|
|
|
|
|
|
|
|
if test "x$enable_dbus" = "xyes"; then
|
|
|
|
PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60, dbus-glib-1 >= 0.60],
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_DBUS_GLIB, 1, [Define if glib bindings of D-Bus are available])
|
|
|
|
enable_dbus_glib=yes
|
|
|
|
],
|
|
|
|
[
|
|
|
|
echo "D-Bus requirements not met. D-Bus support not activated."
|
|
|
|
enable_dbus_glib=no
|
|
|
|
])
|
|
|
|
AC_SUBST(DBUS_CFLAGS)
|
|
|
|
AC_SUBST(DBUS_LIBS)
|
|
|
|
fi
|
2008-01-14 10:14:07 +01:00
|
|
|
|
2012-04-01 20:45:27 +02:00
|
|
|
dnl #######################################################################
|
|
|
|
dnl # Configure address book support
|
|
|
|
dnl #######################################################################
|
|
|
|
|
|
|
|
dnl #######################################################################
|
|
|
|
dnl # Check for new address book support
|
|
|
|
dnl #######################################################################
|
|
|
|
AC_MSG_CHECKING([whether DBUS support for new address book is present])
|
|
|
|
if test x"$enable_dbus_glib" = xyes; then
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
AC_MSG_CHECKING([whether to enable new address book])
|
|
|
|
AC_ARG_ENABLE(new-addrbook, [ --enable-new-addrbook enable new address book],,enable_new_addrbook=no)
|
|
|
|
if test x"$enable_new_addrbook" = xyes; then
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
PKG_CHECK_MODULES(CONTACTS, [claws-contacts],
|
|
|
|
[
|
|
|
|
AC_DEFINE(USE_NEW_ADDRBOOK, 1, [Define if new address book is to be activated.])
|
|
|
|
enable_new_addrbook=yes
|
|
|
|
AC_SUBST(CONTACTS_CFLAGS)
|
|
|
|
AC_SUBST(CONTACTS_LIBS)
|
|
|
|
],
|
|
|
|
[
|
|
|
|
enable_new_addrbook=no
|
|
|
|
])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
enable_new_addrbook=no
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
enable_new_addrbook=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl #######################################################################
|
|
|
|
dnl # Check for old address book support
|
|
|
|
dnl #######################################################################
|
|
|
|
if test x"$enable_new_addrbook" = xno; then
|
|
|
|
dnl for LDAP support in addressbook
|
|
|
|
dnl no check for libraries; dynamically loaded
|
|
|
|
AC_ARG_ENABLE(ldap,
|
|
|
|
[ --disable-ldap disable LDAP support],
|
|
|
|
[ac_cv_enable_ldap=$enableval], [ac_cv_enable_ldap=yes])
|
|
|
|
AC_MSG_CHECKING([whether to use LDAP])
|
|
|
|
if test x"$ac_cv_enable_ldap" = xno; then
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
elif test x"$ac_cv_enable_ldap" = xyes -a x"$ac_cv_enable_pthread" = xno; then
|
|
|
|
AC_MSG_RESULT(no - LDAP support needs pthread support)
|
|
|
|
|
|
|
|
ac_cv_enable_ldap=no
|
|
|
|
elif test x"$platform_win32" = xyes; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_DEFINE(USE_LDAP, 1, Define if you want LDAP support in addressbook.)
|
|
|
|
LDAP_LIBS="-lwldap32"
|
|
|
|
AC_SUBST(LDAP_LIBS)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
|
|
|
|
dnl check for available libraries, and pull them in
|
|
|
|
AC_CHECK_LIB(resolv, res_query, LDAP_LIBS="$LDAP_LIBS -lresolv")
|
|
|
|
AC_CHECK_LIB(socket, bind, LDAP_LIBS="$LDAP_LIBS -lsocket")
|
|
|
|
AC_CHECK_LIB(nsl, gethostbyaddr, LDAP_LIBS="$LDAP_LIBS -lnsl")
|
|
|
|
AC_CHECK_LIB(lber, ber_get_tag, LDAP_LIBS="$LDAP_LIBS -llber",,
|
|
|
|
$LDAP_LIBS)
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS(ldap.h lber.h,
|
|
|
|
[ ac_cv_enable_ldap=yes ],
|
|
|
|
[ ac_cv_enable_ldap=no ])
|
|
|
|
|
|
|
|
if test "$ac_cv_enable_ldap" = yes; then
|
|
|
|
AC_CHECK_LIB(ldap, ldap_open,
|
|
|
|
[ ac_cv_enable_ldap=yes ],
|
|
|
|
[ ac_cv_enable_ldap=no ],
|
|
|
|
$LDAP_LIBS)
|
|
|
|
|
|
|
|
AC_CHECK_LIB(ldap, ldap_start_tls_s,
|
|
|
|
[ ac_cv_have_tls=yes ],
|
|
|
|
[ ac_cv_have_tls=no ])
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether ldap library is available])
|
|
|
|
AC_MSG_RESULT($ac_cv_enable_ldap)
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether TLS library is available])
|
|
|
|
AC_MSG_RESULT($ac_cv_have_tls)
|
|
|
|
|
|
|
|
if test "$ac_cv_enable_ldap" = yes; then
|
|
|
|
AC_DEFINE(USE_LDAP, 1, Define if you want LDAP support in addressbook.)
|
|
|
|
LDAP_LIBS="$LDAP_LIBS -lldap"
|
|
|
|
AC_SUBST(LDAP_LIBS)
|
|
|
|
if test "$ac_cv_have_tls" = yes; then
|
|
|
|
AC_DEFINE(USE_LDAP_TLS, 1, Define if you want LDAP TLS support in addressbook.)
|
|
|
|
fi
|
|
|
|
dnl As of OpenLDAP API version 3000 a number of functions has
|
|
|
|
dnl been deprecated. As Claws-mail compiles and runs on many
|
|
|
|
dnl platforms and many versions of OpenLDAP we need to be able
|
|
|
|
dnl to switch between the old and new API because new API has
|
|
|
|
dnl added new functions replacing old ones and at the same time
|
|
|
|
dnl old functions has been changed.
|
|
|
|
dnl If cross-compiling defaults to enable deprecated features
|
|
|
|
dnl for maximum portability
|
|
|
|
AC_MSG_CHECKING([The API version of OpenLDAP])
|
|
|
|
AC_RUN_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[#include <ldap.h>],
|
|
|
|
[if (LDAP_API_VERSION >= 3000)
|
|
|
|
return 1
|
|
|
|
])],
|
|
|
|
[AC_MSG_RESULT([version < 3000])
|
|
|
|
AC_DEFINE(OPEN_LDAP_API_AT_LEAST_3000, 0, Define if OpenLDAP API is at least version 3000.)],
|
|
|
|
[AC_MSG_RESULT([version >= 3000])
|
|
|
|
AC_DEFINE(OPEN_LDAP_API_AT_LEAST_3000, 1, Define if OpenLDAP API is at least version 3000.)],
|
|
|
|
[AC_MSG_RESULT([Enabling deprecated features in OpenLDAP])
|
|
|
|
AC_DEFINE(OPEN_LDAP_API_AT_LEAST_3000, 0, Define if OpenLDAP API is at least version 3000.)
|
|
|
|
AC_DEFINE(LDAP_DEPRECATED, 1, Define to activate deprecated features in OpenLDAP)]
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl for JPilot support in addressbook
|
|
|
|
dnl no check for libraries; these are dynamically loaded
|
|
|
|
AC_ARG_ENABLE(jpilot,
|
|
|
|
[ --disable-jpilot disable JPilot support],
|
|
|
|
[ac_cv_enable_jpilot=$enableval], [ac_cv_enable_jpilot=yes])
|
|
|
|
AC_MSG_CHECKING([whether to use JPilot])
|
|
|
|
if test "$ac_cv_enable_jpilot" = yes; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_CHECK_HEADERS(pi-args.h pi-appinfo.h pi-address.h pi-version.h,
|
|
|
|
[ AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.) ],
|
|
|
|
[ ac_cv_enable_jpilot=no ])
|
|
|
|
if test "$ac_cv_enable_jpilot" = no; then
|
|
|
|
AC_CHECK_HEADERS(libpisock/pi-args.h libpisock/pi-appinfo.h libpisock/pi-address.h libpisock/pi-version.h,
|
|
|
|
[ ac_cv_enable_jpilot=yes
|
|
|
|
AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.) ])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CHECK_LIB(pisock, unpack_Address, [JPILOT_LIBS="-lpisock"], [JPILOT_LIBS="" ac_cv_enable_jpilot="no"])
|
|
|
|
if test x"$ac_cv_enable_jpilot" = xyes; then
|
|
|
|
AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.)
|
|
|
|
else
|
|
|
|
AC_MSG_NOTICE([JPilot support not available])
|
|
|
|
fi
|
|
|
|
AC_SUBST(JPILOT_LIBS)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_NEWADDRBOOK, test x"$enable_new_addrbook" = x"yes")
|
|
|
|
|
2008-01-14 10:14:07 +01:00
|
|
|
dnl #######################################################################
|
|
|
|
dnl # Check for NetworkManager support
|
|
|
|
dnl #######################################################################
|
|
|
|
if test x"$enable_dbus_glib" = xyes; then
|
|
|
|
AC_ARG_ENABLE(networkmanager-support, [ --disable-networkmanager-support disable NetworkManager support],,enable_networkmanager_support=yes)
|
|
|
|
if test x"$enable_networkmanager_support" = xyes; then
|
|
|
|
PKG_CHECK_MODULES(NETWORKMANAGER_SUPPORT, NetworkManager >= 0.6.2,
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_NETWORKMANAGER_SUPPORT, 1, [Define if NetworkManager support is to be included.])
|
|
|
|
echo "Building with NetworkManager support"
|
|
|
|
enable_networkmanager_support=yes
|
|
|
|
],
|
|
|
|
[
|
|
|
|
echo "NetworkManager not found."
|
|
|
|
enable_networkmanager_support=no
|
|
|
|
])
|
|
|
|
AC_SUBST(NETWORKMANAGER_SUPPORT_CFLAGS)
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "NetworkManager support deactivated as D-Bus requirements were not met."
|
|
|
|
enable_networkmanager_support=no
|
|
|
|
fi
|
|
|
|
|
2002-12-26 16:36:46 +01:00
|
|
|
dnl *************************
|
|
|
|
dnl ** section for plugins **
|
|
|
|
dnl *************************
|
2002-03-22 10:15:31 +01:00
|
|
|
|
2002-12-26 16:36:46 +01:00
|
|
|
PLUGINS=""
|
2002-03-22 10:15:31 +01:00
|
|
|
|
2013-02-16 14:01:11 +01:00
|
|
|
dnl Find curl-config, used by fancy, vcalendar
|
2013-02-20 09:45:59 +01:00
|
|
|
PKG_CHECK_MODULES(CURL, libcurl, [have_curl=yes], [have_curl=no])
|
2013-02-16 14:01:11 +01:00
|
|
|
AC_SUBST(CURL_LIBS)
|
|
|
|
AC_SUBST(CURL_CFLAGS)
|
2002-03-22 10:15:31 +01:00
|
|
|
|
2013-02-16 14:01:11 +01:00
|
|
|
dnl --- acpi_notifier ---
|
|
|
|
AC_ARG_ENABLE(acpi_notifier-plugin,
|
2013-02-19 14:27:20 +01:00
|
|
|
[ --disable-acpi_notifier-plugin do not build acpi_notifier plugin],
|
2013-02-16 14:01:11 +01:00
|
|
|
[ac_cv_enable_acpi_notifier_plugin=$enableval], [ac_cv_enable_acpi_notifier_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_acpi_notifier_plugin" = xyes; then
|
|
|
|
PLUGINS="acpi_notifier $PLUGINS"
|
2013-02-17 22:22:03 +01:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2002-12-30 21:53:59 +01:00
|
|
|
fi
|
2013-02-16 14:01:11 +01:00
|
|
|
AM_CONDITIONAL(BUILD_ACPI_NOTIFIER_PLUGIN, test x"$ac_cv_enable_acpi_notifier_plugin" = xyes)
|
|
|
|
|
|
|
|
dnl --- address_keeper ---
|
|
|
|
AC_ARG_ENABLE(address_keeper-plugin,
|
2013-02-19 14:27:20 +01:00
|
|
|
[ --disable-address_keeper-plugin do not build address_keeper plugin],
|
2013-02-16 14:01:11 +01:00
|
|
|
[ac_cv_enable_address_keeper_plugin=$enableval], [ac_cv_enable_address_keeper_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_address_keeper_plugin" = xyes; then
|
|
|
|
PLUGINS="address_keeper $PLUGINS"
|
2013-02-17 22:22:03 +01:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2013-02-16 14:01:11 +01:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_ADDRESS_KEEPER_PLUGIN, test x"$ac_cv_enable_address_keeper_plugin" = xyes)
|
|
|
|
|
2013-02-16 14:48:16 +01:00
|
|
|
dnl --- archive ---
|
|
|
|
AC_ARG_ENABLE(archive-plugin,
|
2013-02-19 14:27:20 +01:00
|
|
|
[ --disable-archive-plugin do not build archive plugin],
|
2013-02-16 14:48:16 +01:00
|
|
|
[ac_cv_enable_archive_plugin=$enableval], [ac_cv_enable_archive_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_archive_plugin" = xyes; then
|
|
|
|
AC_SEARCH_LIBS([archive_read_new], [archive],
|
|
|
|
ARCHIVE_LIBS=-larchive
|
|
|
|
AC_SUBST(ARCHIVE_LIBS),
|
|
|
|
echo "You need to install libarchive"
|
|
|
|
exit 1
|
|
|
|
)
|
|
|
|
PLUGINS="archive $PLUGINS"
|
2013-02-17 22:22:03 +01:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2013-02-16 14:48:16 +01:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_ARCHIVE_PLUGIN, test x"$ac_cv_enable_archive_plugin" = xyes)
|
|
|
|
|
|
|
|
dnl --- att_remover ---
|
|
|
|
AC_ARG_ENABLE(att_remover-plugin,
|
2013-02-19 14:27:20 +01:00
|
|
|
[ --disable-att_remover-plugin do not build att_remover plugin],
|
2013-02-16 14:48:16 +01:00
|
|
|
[ac_cv_enable_att_remover_plugin=$enableval], [ac_cv_enable_att_remover_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_att_remover_plugin" = xyes; then
|
|
|
|
PLUGINS="att_remover $PLUGINS"
|
2013-02-17 22:22:03 +01:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2013-02-16 14:48:16 +01:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_ATT_REMOVER_PLUGIN, test x"$ac_cv_enable_att_remover_plugin" = xyes)
|
|
|
|
|
2013-02-16 14:01:11 +01:00
|
|
|
dnl --- attachwarner ---
|
|
|
|
AC_ARG_ENABLE(attachwarner-plugin,
|
2013-02-19 14:27:20 +01:00
|
|
|
[ --disable-attachwarner-plugin do not build attachwarner plugin],
|
2013-02-16 14:01:11 +01:00
|
|
|
[ac_cv_enable_attachwarner_plugin=$enableval], [ac_cv_enable_attachwarner_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_attachwarner_plugin" = xyes; then
|
|
|
|
PLUGINS="attachwarner $PLUGINS"
|
2013-02-17 22:22:03 +01:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2013-02-16 14:01:11 +01:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_ATTACHWARNER_PLUGIN, test x"$ac_cv_enable_attachwarner_plugin" = xyes)
|
2002-12-30 21:53:59 +01:00
|
|
|
|
2006-08-27 11:44:59 +02:00
|
|
|
dnl --- Bogofilter ---
|
|
|
|
AC_MSG_CHECKING([whether to build Bogofilter plugin])
|
|
|
|
AC_ARG_ENABLE(bogofilter-plugin,
|
2007-07-26 10:42:29 +02:00
|
|
|
[ --disable-bogofilter-plugin do not build bogofilter plugin],
|
2006-08-27 11:44:59 +02:00
|
|
|
[ac_cv_enable_bogofilter_plugin=$enableval], [ac_cv_enable_bogofilter_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_bogofilter_plugin" = xyes; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
PLUGINS="bogofilter $PLUGINS"
|
2007-04-29 23:29:10 +02:00
|
|
|
AC_DEFINE(USE_BOGOFILTER_PLUGIN, 1, Define if bogofilter plugin is being built.)
|
2006-08-27 11:44:59 +02:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_BOGOFILTER_PLUGIN, test x"$ac_cv_enable_bogofilter_plugin" = xyes)
|
|
|
|
|
2013-02-16 14:48:16 +01:00
|
|
|
dnl --- bsfilter ---
|
|
|
|
AC_MSG_CHECKING([whether to build bsfilter plugin])
|
|
|
|
AC_ARG_ENABLE(bsfilter-plugin,
|
|
|
|
[ --disable-bsfilter-plugin do not build bsfilter plugin],
|
|
|
|
[ac_cv_enable_bsfilter_plugin=$enableval], [ac_cv_enable_bsfilter_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_bsfilter_plugin" = xyes; then
|
|
|
|
PLUGINS="bsfilter $PLUGINS"
|
2013-02-17 22:22:03 +01:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2013-02-16 14:48:16 +01:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_BSFILTER_PLUGIN, test x"$ac_cv_enable_bsfilter_plugin" = xyes)
|
|
|
|
|
2013-02-17 22:22:03 +01:00
|
|
|
dnl --- clamd ---
|
|
|
|
AC_MSG_CHECKING([whether to build clamd plugin])
|
|
|
|
AC_ARG_ENABLE(clamd-plugin,
|
|
|
|
[ --disable-clamd-plugin do not build clamd plugin],
|
|
|
|
[ac_cv_enable_clamd_plugin=$enableval], [ac_cv_enable_clamd_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_clamd_plugin" = xyes; then
|
|
|
|
PLUGINS="clamd $PLUGINS"
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_CLAMD_PLUGIN, test x"$ac_cv_enable_clamd_plugin" = xyes)
|
|
|
|
|
2013-02-16 14:01:11 +01:00
|
|
|
dnl --- Demo ---
|
|
|
|
AC_ARG_ENABLE(demo-plugin,
|
|
|
|
[ --enable-demo-plugin build demo plugin],
|
|
|
|
[ac_cv_enable_demo_plugin=$enableval], [ac_cv_enable_demo_plugin=no])
|
|
|
|
if test x"$ac_cv_enable_demo_plugin" = xyes; then
|
|
|
|
PLUGINS="demo $PLUGINS"
|
2013-02-17 22:22:03 +01:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2013-02-16 14:01:11 +01:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_DEMO_PLUGIN, test x"$ac_cv_enable_demo_plugin" = xyes)
|
|
|
|
|
|
|
|
dnl --- Dillo Viewer ---
|
|
|
|
AC_MSG_CHECKING([whether to build Dillo plugin])
|
|
|
|
AC_ARG_ENABLE(dillo-viewer-plugin,
|
|
|
|
[ --disable-dillo-viewer-plugin do not build Dillo plugin for html mail rendering],
|
|
|
|
[ac_cv_enable_dillo_viewer_plugin=$enableval], [ac_cv_enable_dillo_viewer_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_dillo_viewer_plugin" = xyes; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
PLUGINS="dillo-viewer $PLUGINS"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_DILLO_VIEWER_PLUGIN, test x"$ac_cv_enable_dillo_viewer_plugin" = xyes)
|
|
|
|
|
|
|
|
dnl --- Fancy ---
|
|
|
|
AC_MSG_CHECKING([whether to build Fancy plugin])
|
|
|
|
AC_ARG_ENABLE(fancy-plugin,
|
|
|
|
[ --disable-fancy-plugin do not build Fancy plugin for html mail rendering],
|
|
|
|
[ac_cv_enable_fancy_plugin=$enableval], [ac_cv_enable_fancy_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_fancy_plugin" = xyes; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
dnl Check for WebKit
|
|
|
|
PKG_CHECK_MODULES(WEBKIT, webkit-1.0,
|
|
|
|
[
|
|
|
|
PLUGINS="fancy $PLUGINS"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
echo "webkit-1.0 not found."
|
|
|
|
ac_cv_enable_fancy_plugin=no
|
|
|
|
])
|
|
|
|
AC_SUBST(WEBKIT_LIBS)
|
|
|
|
AC_SUBST(WEBKIT_CFLAGS)
|
|
|
|
fi
|
|
|
|
if test x"$ac_cv_enable_fancy_plugin" = xyes; then
|
|
|
|
dnl Check for libsoup-gnome
|
|
|
|
PKG_CHECK_MODULES(LIBSOUP_GNOME, libsoup-gnome-2.4 >= 2.26, ac_cv_enable_soup_gnome=yes, ac_cv_enable_soup_gnome=no)
|
|
|
|
if test x$ac_cv_enable_soup_gnome = xyes; then
|
|
|
|
AC_DEFINE(HAVE_LIBSOUP_GNOME, 1, Define if you want soup gnome proxy support)
|
|
|
|
fi
|
|
|
|
AC_SUBST(LIBSOUP_GNOME_CFLAGS)
|
|
|
|
AC_SUBST(LIBSOUP_GNOME_LIBS)
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(GTKPRINTUNIX, gtk+-unix-print-2.0, ac_cv_enable_gtkprint=yes, ac_cv_enable_gtkprint=no)
|
|
|
|
if test x$ac_cv_enable_gtkprint = xyes; then
|
|
|
|
AC_DEFINE(USE_PRINTUNIX, 1, Define if you want gtk+-unix-print support)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(not found)
|
|
|
|
fi
|
|
|
|
AC_SUBST(GTKPRINTUNIX_CFLAGS)
|
|
|
|
AC_SUBST(GTKPRINTUNIX_LIBS)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_FANCY_PLUGIN, test x"$ac_cv_enable_fancy_plugin" = xyes)
|
|
|
|
|
2013-02-17 22:22:03 +01:00
|
|
|
dnl --- fetchinfo ---
|
|
|
|
AC_MSG_CHECKING([whether to build fetchinfo plugin])
|
|
|
|
AC_ARG_ENABLE(fetchinfo-plugin,
|
|
|
|
[ --disable-fetchinfo-plugin do not build fetchinfo plugin],
|
|
|
|
[ac_cv_enable_fetchinfo_plugin=$enableval], [ac_cv_enable_fetchinfo_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_fetchinfo_plugin" = xyes; then
|
|
|
|
PLUGINS="fetchinfo $PLUGINS"
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_FETCHINFO_PLUGIN, test x"$ac_cv_enable_fetchinfo_plugin" = xyes)
|
|
|
|
|
|
|
|
dnl --- gdata ---
|
|
|
|
AC_MSG_CHECKING([whether to build gdata plugin])
|
|
|
|
AC_ARG_ENABLE(gdata-plugin,
|
|
|
|
[ --disable-gdata-plugin do not build gdata plugin],
|
|
|
|
[ac_cv_enable_gdata_plugin=$enableval], [ac_cv_enable_gdata_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_gdata_plugin" = xyes; then
|
|
|
|
PKG_CHECK_MODULES(GDATA, libgdata >= 0.9.1, [ac_cv_enable_gdata_plugin=yes], [ac_cv_enable_gdata_plugin=no])
|
|
|
|
if test x"$ac_cv_enable_gdata_plugin" = xyes; then
|
|
|
|
AC_DEFINE(HAVE_GDATA_VERSION_0_9_1, 1, [at least version 0.9.1 of libgdata is available])
|
|
|
|
AC_DEFINE(HAVE_GDATA_VERSION_0_9, 1, [at least version 0.9.0 of libgdata is available])
|
|
|
|
else
|
|
|
|
PKG_CHECK_MODULES(GDATA, libgdata >= 0.6.4, [ac_cv_enable_gdata_plugin=yes], [ac_cv_enable_gdata_plugin=no])
|
|
|
|
fi
|
|
|
|
if test x"$ac_cv_enable_gdata_plugin" = xyes; then
|
|
|
|
AC_SUBST(GDATA_CFLAGS)
|
|
|
|
AC_SUBST(GDATA_LIBS)
|
|
|
|
AC_DEFINE(CM_GDATA_CLIENT_ID, ["Claws Mail GData plugin"], [client id])
|
|
|
|
|
|
|
|
PLUGINS="gdata $PLUGINS"
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR(libgdata is not available)
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_GDATA_PLUGIN, test x"$ac_cv_enable_gdata_plugin" = xyes)
|
|
|
|
|
|
|
|
dnl --- mailmbox ---
|
|
|
|
AC_MSG_CHECKING([whether to build mailmbox plugin])
|
|
|
|
AC_ARG_ENABLE(mailmbox-plugin,
|
|
|
|
[ --disable-mailmbox-plugin do not build mailmbox plugin],
|
|
|
|
[ac_cv_enable_mailmbox_plugin=$enableval], [ac_cv_enable_mailmbox_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_mailmbox_plugin" = xyes; then
|
|
|
|
PLUGINS="mailmbox $PLUGINS"
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_MAILMBOX_PLUGIN, test x"$ac_cv_enable_mailmbox_plugin" = xyes)
|
|
|
|
|
|
|
|
dnl --- newmail ---
|
|
|
|
AC_MSG_CHECKING([whether to build newmail plugin])
|
|
|
|
AC_ARG_ENABLE(newmail-plugin,
|
|
|
|
[ --disable-newmail-plugin do not build newmail plugin],
|
|
|
|
[ac_cv_enable_newmail_plugin=$enableval], [ac_cv_enable_newmail_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_newmail_plugin" = xyes; then
|
|
|
|
PLUGINS="newmail $PLUGINS"
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_NEWMAIL_PLUGIN, test x"$ac_cv_enable_newmail_plugin" = xyes)
|
|
|
|
|
|
|
|
dnl --- notification - disabled - too many autofoo annoyances for today ---
|
|
|
|
AC_MSG_CHECKING([whether to build notification plugin])
|
|
|
|
AC_ARG_ENABLE(notification-plugin,
|
|
|
|
[ --disable-notification-plugin do not build notification plugin],
|
2013-02-17 22:56:48 +01:00
|
|
|
[ac_cv_enable_notification_plugin=$enableval], [ac_cv_enable_notification_plugin=yes])
|
2013-02-17 22:22:03 +01:00
|
|
|
if test x"$ac_cv_enable_notification_plugin" = xyes; then
|
2013-02-17 22:56:48 +01:00
|
|
|
LIBNOTIFY_REQUIRED=0.4.3
|
|
|
|
PKG_CHECK_MODULES(libnotify, libnotify >= $LIBNOTIFY_REQUIRED,
|
|
|
|
[AC_DEFINE(HAVE_LIBNOTIFY, 1, [Define if libnotify support is enabled])],
|
|
|
|
[AC_MSG_ERROR([libnotify not found])])
|
|
|
|
AC_SUBST(libnotify_CFLAGS)
|
|
|
|
AC_SUBST(libnotify_LIBS)
|
|
|
|
|
|
|
|
AC_DEFINE(NOTIFICATION_POPUP, 1, Activate notification popup)
|
|
|
|
AC_DEFINE(NOTIFICATION_BANNER, 1, Activate notification banner)
|
|
|
|
AC_DEFINE(NOTIFICATION_COMMAND, 1, Activate notification shell command)
|
|
|
|
AC_DEFINE(NOTIFICATION_TRAYICON, 1, Activate notification trayicon)
|
|
|
|
AC_DEFINE(NOTIFICATION_LCDPROC, 1, Activate lcdproc support)
|
|
|
|
#AC_DEFINE(NOTIFICATION_INDICATOR, 1, [Activate support for indicators])
|
|
|
|
|
2013-02-17 22:22:03 +01:00
|
|
|
PLUGINS="notification $PLUGINS"
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_NOTIFICATION_PLUGIN, test x"$ac_cv_enable_notification_plugin" = xyes)
|
|
|
|
|
|
|
|
dnl --- pdf_viewer ---
|
|
|
|
AC_MSG_CHECKING([whether to build pdf_viewer plugin])
|
|
|
|
AC_ARG_ENABLE(pdf_viewer-plugin,
|
|
|
|
[ --disable-pdf_viewer-plugin do not build pdf_viewer plugin],
|
|
|
|
[ac_cv_enable_pdf_viewer_plugin=$enableval], [ac_cv_enable_pdf_viewer_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_pdf_viewer_plugin" = xyes; then
|
|
|
|
PKG_CHECK_MODULES(POPPLER, poppler-glib >= 0.4.2, ,
|
|
|
|
AC_MSG_ERROR([Can't find Poppler >= 0.4.2 Glib wrapper]))
|
|
|
|
AC_SUBST(POPPLER_LIBS)
|
|
|
|
AC_SUBST(POPPLER_CFLAGS)
|
|
|
|
|
|
|
|
OLD_CFLAGS=$CFLAGS
|
|
|
|
CFLAGS="$POPPLER_CFLAGS $GTK_CFLAGS $GLIB_CFLAGS"
|
|
|
|
AC_CHECK_DECL(POPPLER_DEST_NAMED,
|
|
|
|
[AC_DEFINE([HAVE_POPPLER_DEST_NAMED], [], [Description])],
|
|
|
|
,[#include <poppler-action.h>])
|
|
|
|
AC_CHECK_DECL(POPPLER_DEST_XYZ,
|
|
|
|
[AC_DEFINE([HAVE_POPPLER_DEST_XYZ], [], [Description])],
|
|
|
|
,[#include <poppler-action.h>])
|
|
|
|
CFLAGS=$OLD_CFLAGS
|
|
|
|
PLUGINS="pdf_viewer $PLUGINS"
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_PDF_VIEWER_PLUGIN, test x"$ac_cv_enable_pdf_viewer_plugin" = xyes)
|
|
|
|
|
|
|
|
dnl --- perl ---
|
|
|
|
AC_MSG_CHECKING([whether to build perl plugin])
|
|
|
|
AC_ARG_ENABLE(perl-plugin,
|
|
|
|
[ --disable-perl-plugin do not build perl plugin],
|
|
|
|
[ac_cv_enable_perl_plugin=$enableval], [ac_cv_enable_perl_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_perl_plugin" = xyes; then
|
|
|
|
AC_PATH_PROG(sedpath, sed, no)
|
|
|
|
if test x$sedpath = xno ; then
|
|
|
|
AC_MSG_ERROR(Test for sed failed.)
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Perl
|
|
|
|
AC_PATH_PROG(PERL_PATH, perl, no)
|
|
|
|
if test x$PERL_PATH = xno ; then
|
|
|
|
AC_MSG_ERROR(Test for Perl failed)
|
|
|
|
fi
|
|
|
|
AC_MSG_CHECKING(for perl >= 5.8.0)
|
|
|
|
PERL_VER=`$PERL_PATH -e 'print $] > 5.0079999?"yes":"no"'`
|
|
|
|
if test "$PERL_VER" = "yes"; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
AC_MSG_ERROR(Your Perl version is too old.)
|
|
|
|
fi
|
|
|
|
AC_MSG_CHECKING(for Perl compile flags)
|
|
|
|
PERL_CFLAGS=`$PERL_PATH -MExtUtils::Embed -e ccopts`
|
|
|
|
PERL_CFLAGS=`echo $PERL_CFLAGS | $sedpath 's/-D_FILE_OFFSET_BITS=[[0-9]]*//'`
|
|
|
|
PERL_LDFLAGS=`$PERL_PATH -MExtUtils::Embed -e ldopts |$sedpath 's/-lgdbm//'`
|
|
|
|
PERL_LDFLAGS=`echo $PERL_LDFLAGS |$sedpath 's/-ldb//'`
|
|
|
|
PERL_LDFLAGS=`echo $PERL_LDFLAGS |$sedpath 's/-lndbm//'`
|
|
|
|
PERL_LDFLAGS=`echo $PERL_LDFLAGS |$sedpath 's/-lc//'`
|
|
|
|
AC_MSG_RESULT(ok)
|
|
|
|
AC_SUBST(PERL_CFLAGS)
|
|
|
|
AC_SUBST(PERL_LDFLAGS)
|
|
|
|
PLUGINS="perl $PLUGINS"
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_PERL_PLUGIN, test x"$ac_cv_enable_perl_plugin" = xyes)
|
|
|
|
|
|
|
|
dnl --- python ---
|
|
|
|
AC_MSG_CHECKING([whether to build python plugin])
|
|
|
|
AC_ARG_ENABLE(python-plugin,
|
|
|
|
[ --disable-python-plugin do not build python plugin],
|
|
|
|
[ac_cv_enable_python_plugin=$enableval], [ac_cv_enable_python_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_python_plugin" = xyes; then
|
|
|
|
AM_PATH_PYTHON([2.5], [
|
|
|
|
AC_PATH_PROG(PYTHON_CONFIG, python$PYTHON_VERSION-config)
|
|
|
|
if test x"$PYTHON_CONFIG" = x"" ; then
|
|
|
|
AC_PATH_PROG(PYTHON_CONFIG, python-config)
|
|
|
|
fi
|
|
|
|
if test x"$PYTHON_CONFIG" != x""; then
|
|
|
|
PYTHON_CFLAGS=`$PYTHON_CONFIG --includes`
|
|
|
|
PYTHON_LIBS=`$PYTHON_CONFIG --libs`
|
|
|
|
PYTHON_PREFIX=`$PYTHON_CONFIG --prefix`
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR(python-config not found. Maybe you need to install development packages for Python.)
|
|
|
|
fi
|
|
|
|
|
|
|
|
# libpython.so
|
|
|
|
PYTHON_SO_FILE="libpython${PYTHON_VERSION}.so"
|
|
|
|
found_libpython_so="no"
|
|
|
|
if test -f "$PYTHON_PREFIX/lib/$PYTHON_SO_FILE"; then
|
|
|
|
found_libpython_so="yes"
|
|
|
|
PYTHON_SHARED_LIB=`python -c "import os,sys; print os.path.basename(os.path.realpath(\"$PYTHON_PREFIX/lib/$PYTHON_SO_FILE\"))"`
|
|
|
|
fi
|
|
|
|
if test -f "$PYTHON_PREFIX/lib64/$PYTHON_SO_FILE"; then
|
|
|
|
found_libpython_so="yes"
|
|
|
|
PYTHON_SHARED_LIB=`python -c "import os,sys; print os.path.basename(os.path.realpath(\"$PYTHON_PREFIX/lib64/$PYTHON_SO_FILE\"))"`
|
|
|
|
fi
|
|
|
|
if test x"$found_libpython_so" != x"yes"; then
|
|
|
|
AC_MSG_ERROR(Could not find Python shared libary: $PYTHON_SO_FILE does not exist. Maybe you need to install development packages for Python.)
|
|
|
|
fi
|
|
|
|
|
|
|
|
# PyGTK
|
|
|
|
PKG_CHECK_MODULES(PYGTK,
|
|
|
|
[pygtk-2.0 >= 2.10.3],
|
|
|
|
[
|
|
|
|
AC_DEFINE(ENABLE_PYTHON, [1], [Enable Python support])
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_SUBST(PYTHON_SHARED_LIB)
|
|
|
|
AC_SUBST(PYTHON_CFLAGS)
|
|
|
|
AC_SUBST(PYTHON_LIBS)
|
|
|
|
AC_SUBST(PYGTK_CFLAGS)
|
|
|
|
AC_SUBST(PYGTK_LIBS)
|
|
|
|
|
|
|
|
PLUGINS="python $PLUGINS"
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_PYTHON_PLUGIN, test x"$ac_cv_enable_python_plugin" = xyes)
|
|
|
|
|
2005-07-14 13:29:21 +02:00
|
|
|
dnl --- PGP/CORE ---
|
2005-07-19 10:48:56 +02:00
|
|
|
AC_MSG_CHECKING([whether to build PGP/CORE plugin])
|
2005-07-14 13:29:21 +02:00
|
|
|
AC_ARG_ENABLE(pgpcore-plugin,
|
2007-07-26 10:42:29 +02:00
|
|
|
[ --disable-pgpcore-plugin do not build PGP/Core plugin],
|
2005-07-14 13:29:21 +02:00
|
|
|
[ac_cv_enable_pgpcore_plugin=$enableval], [ac_cv_enable_pgpcore_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_pgpcore_plugin" = xyes; then
|
2005-07-19 10:48:56 +02:00
|
|
|
AC_MSG_RESULT(yes)
|
2005-12-20 18:43:40 +01:00
|
|
|
AM_PATH_GPGME(1.0.0, AC_DEFINE(USE_GPGME, 1, Define if you use GPGME to support OpenPGP.),
|
2005-07-14 13:29:21 +02:00
|
|
|
[ac_cv_enable_pgpcore_plugin=no])
|
|
|
|
if test x"$ac_cv_enable_pgpcore_plugin" = xyes; then
|
|
|
|
PLUGINS="pgpcore $PLUGINS"
|
2006-01-03 19:25:02 +01:00
|
|
|
AM_PATH_GPGME(1.1.1,
|
|
|
|
AC_DEFINE(HAVE_GPGME_PKA_TRUST, 1,
|
|
|
|
[Define if GPGME supports PKA.]))
|
2006-01-03 19:41:16 +01:00
|
|
|
#needed to get GPGME_LIBS and al correctly
|
|
|
|
AM_PATH_GPGME(1.0.0, AC_DEFINE(USE_GPGME, 1, Define if you use GPGME to support OpenPGP.),
|
|
|
|
[ac_cv_enable_pgpcore_plugin=no])
|
2005-07-19 10:48:56 +02:00
|
|
|
else
|
|
|
|
AC_MSG_WARN([*** PGP/CORE plugin will not be built ***])
|
2005-07-14 13:29:21 +02:00
|
|
|
fi
|
2005-07-19 10:48:56 +02:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2005-07-14 13:29:21 +02:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_PGPCORE_PLUGIN, test x"$ac_cv_enable_pgpcore_plugin" = xyes)
|
|
|
|
|
2005-07-19 10:48:56 +02:00
|
|
|
AC_MSG_CHECKING([whether to build PGP/MIME plugin])
|
2004-08-09 10:13:26 +02:00
|
|
|
AC_ARG_ENABLE(pgpmime-plugin,
|
2007-07-26 10:42:29 +02:00
|
|
|
[ --disable-pgpmime-plugin do not build PGP/MIME plugin],
|
2004-08-09 10:13:26 +02:00
|
|
|
[ac_cv_enable_pgpmime_plugin=$enableval], [ac_cv_enable_pgpmime_plugin=yes])
|
2004-10-04 09:21:34 +02:00
|
|
|
if test x"$ac_cv_enable_pgpmime_plugin" = xyes; then
|
2005-07-19 10:48:56 +02:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
if test x"$ac_cv_enable_pgpcore_plugin" = xyes; then
|
2004-10-04 09:21:34 +02:00
|
|
|
PLUGINS="pgpmime $PLUGINS"
|
2005-07-19 10:48:56 +02:00
|
|
|
else
|
|
|
|
AC_MSG_WARN([*** PGP/MIME plugin cannot be built ***])
|
|
|
|
AC_MSG_WARN([*** without the PGP/CORE plugin ***])
|
2004-10-04 09:21:34 +02:00
|
|
|
fi
|
2005-07-19 10:48:56 +02:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2004-08-09 10:13:26 +02:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_PGPMIME_PLUGIN, test x"$ac_cv_enable_pgpmime_plugin" = xyes)
|
|
|
|
|
2005-07-19 18:10:13 +02:00
|
|
|
AC_MSG_CHECKING([whether to build PGP/Inline plugin])
|
|
|
|
AC_ARG_ENABLE(pgpinline-plugin,
|
2007-07-26 10:42:29 +02:00
|
|
|
[ --disable-pgpinline-plugin do not build PGP/Inline plugin],
|
2005-07-19 18:10:13 +02:00
|
|
|
[ac_cv_enable_pgpinline_plugin=$enableval], [ac_cv_enable_pgpinline_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_pgpinline_plugin" = xyes; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
if test x"$ac_cv_enable_pgpcore_plugin" = xyes; then
|
|
|
|
PLUGINS="pgpinline $PLUGINS"
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([*** PGP/Inline plugin cannot be built ***])
|
|
|
|
AC_MSG_WARN([*** without the PGP/CORE plugin ***])
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_PGPINLINE_PLUGIN, test x"$ac_cv_enable_pgpinline_plugin" = xyes)
|
|
|
|
|
2013-02-16 14:01:11 +01:00
|
|
|
dnl --- RSSyl ---
|
|
|
|
AC_MSG_CHECKING([whether to build RSSyl plugin])
|
|
|
|
AC_ARG_ENABLE(rssyl-plugin,
|
|
|
|
[ --disable-rssyl-plugin do not build rssyl plugin for RSS and Atom feeds],
|
|
|
|
[ac_cv_enable_rssyl_plugin=$enableval], [ac_cv_enable_rssyl_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_rssyl_plugin" = xyes; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
PKG_CHECK_MODULES(LIBXML, "libxml-2.0",,
|
|
|
|
[AC_MSG_ERROR(libxml library is missing)])
|
|
|
|
PLUGINS="rssyl $PLUGINS"
|
|
|
|
AC_SUBST(LIBXML_CFLAGS)
|
|
|
|
AC_SUBST(LIBXML_LIBS)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_RSSYL_PLUGIN, test x"$ac_cv_enable_rssyl_plugin" = xyes)
|
|
|
|
|
2008-09-20 10:52:12 +02:00
|
|
|
AC_MSG_CHECKING([whether to build S/Mime plugin])
|
|
|
|
AC_ARG_ENABLE(smime-plugin,
|
|
|
|
[ --disable-smime-plugin do not build S/Mime plugin],
|
|
|
|
[ac_cv_enable_smime_plugin=$enableval], [ac_cv_enable_smime_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_smime_plugin" = xyes; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
if test x"$ac_cv_enable_pgpcore_plugin" = xyes; then
|
|
|
|
PLUGINS="smime $PLUGINS"
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([*** S/Mime plugin cannot be built ***])
|
|
|
|
AC_MSG_WARN([*** without the PGP/CORE plugin ***])
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_SMIME_PLUGIN, test x"$ac_cv_enable_smime_plugin" = xyes)
|
2013-02-20 09:45:59 +01:00
|
|
|
|
2013-02-16 14:01:11 +01:00
|
|
|
dnl --- SpamAssassin ---
|
|
|
|
AC_MSG_CHECKING([whether to build SpamAssassin plugin])
|
|
|
|
AC_ARG_ENABLE(spamassassin-plugin,
|
|
|
|
[ --disable-spamassassin-plugin do not build SpamAssassin plugin],
|
|
|
|
[ac_cv_enable_spamassassin_plugin=$enableval], [ac_cv_enable_spamassassin_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_spamassassin_plugin" = xyes; then
|
2005-07-19 10:48:56 +02:00
|
|
|
AC_MSG_RESULT(yes)
|
2013-02-16 14:01:11 +01:00
|
|
|
AC_SPAMASSASSIN
|
|
|
|
PLUGINS="spamassassin $PLUGINS"
|
|
|
|
AC_DEFINE(USE_SPAMASSASSIN_PLUGIN, 1, Define if spamassassin plugin is being built.)
|
2005-07-19 10:48:56 +02:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2003-04-30 13:54:52 +02:00
|
|
|
fi
|
2013-02-16 14:01:11 +01:00
|
|
|
AM_CONDITIONAL(BUILD_SPAMASSASSIN_PLUGIN, test x"$ac_cv_enable_spamassassin_plugin" = xyes)
|
2013-02-13 17:23:36 +01:00
|
|
|
|
2013-02-20 09:45:59 +01:00
|
|
|
dnl --- spam_report ---
|
|
|
|
AC_MSG_CHECKING([whether to build spam_report plugin])
|
|
|
|
AC_ARG_ENABLE(spam_report-plugin,
|
|
|
|
[ --disable-spam_report-plugin do not build spam_report plugin],
|
|
|
|
[ac_cv_enable_spam_report_plugin=$enableval], [ac_cv_enable_spam_report_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_spam_report_plugin" = xyes; then
|
|
|
|
if test x"$have_curl" = xyes; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
PLUGINS="spam_report $PLUGINS"
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR(spam_report needs libcurl)
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_SPAM_REPORT_PLUGIN, test x"$ac_cv_enable_spam_report_plugin" = xyes)
|
|
|
|
|
|
|
|
dnl --- tnef_parse ---
|
|
|
|
AC_MSG_CHECKING([whether to build tnef_parse plugin])
|
|
|
|
AC_ARG_ENABLE(tnef_parse-plugin,
|
|
|
|
[ --disable-tnef_parse-plugin do not build tnef_parse plugin],
|
|
|
|
[ac_cv_enable_tnef_parse_plugin=$enableval], [ac_cv_enable_tnef_parse_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_tnef_parse_plugin" = xyes; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
PLUGINS="tnef_parse $PLUGINS"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_TNEF_PARSE_PLUGIN, test x"$ac_cv_enable_tnef_parse_plugin" = xyes)
|
|
|
|
|
2013-02-16 14:01:11 +01:00
|
|
|
dnl --- Trayicon ---
|
|
|
|
AC_MSG_CHECKING([whether to build Trayicon plugin])
|
|
|
|
AC_ARG_ENABLE(trayicon-plugin,
|
|
|
|
[ --disable-trayicon-plugin do not build System Tray Icon plugin],
|
|
|
|
[ac_cv_enable_trayicon_plugin=$enableval], [ac_cv_enable_trayicon_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_trayicon_plugin" = xyes; then
|
2013-02-13 17:23:36 +01:00
|
|
|
AC_MSG_RESULT(yes)
|
2013-02-16 14:01:11 +01:00
|
|
|
PLUGINS="trayicon $PLUGINS"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2013-02-13 17:23:36 +01:00
|
|
|
fi
|
2013-02-16 14:01:11 +01:00
|
|
|
AM_CONDITIONAL(BUILD_TRAYICON_PLUGIN, test x"$ac_cv_enable_trayicon_plugin" = xyes)
|
2013-02-13 17:23:36 +01:00
|
|
|
|
2013-02-16 11:35:15 +01:00
|
|
|
dnl --- vCalendar ---
|
2013-02-13 21:50:31 +01:00
|
|
|
AC_MSG_CHECKING([whether to build vCalendar plugin])
|
|
|
|
AC_ARG_ENABLE(vcalendar-plugin,
|
|
|
|
[ --disable-vcalendar-plugin do not build vcalendar plugin for ical rendering],
|
|
|
|
[ac_cv_enable_vcalendar_plugin=$enableval], [ac_cv_enable_vcalendar_plugin=yes])
|
|
|
|
if test x"$ac_cv_enable_vcalendar_plugin" = xyes; then
|
2013-02-14 10:59:35 +01:00
|
|
|
AC_CHECK_PROGS(PERL, perl5 perl)
|
|
|
|
if test x"$PERL" != x; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
PLUGINS="vcalendar $PLUGINS"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
ac_cv_enable_vcalendar_plugin=no
|
|
|
|
fi
|
2013-02-13 21:50:31 +01:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_VCALENDAR_PLUGIN, test x"$ac_cv_enable_vcalendar_plugin" = xyes)
|
|
|
|
|
2013-02-16 11:35:15 +01:00
|
|
|
|
2005-07-03 17:09:13 +02:00
|
|
|
dnl Libetpan
|
2005-07-19 10:48:56 +02:00
|
|
|
AC_MSG_CHECKING([whether to use libetpan])
|
2005-07-06 20:22:55 +02:00
|
|
|
AC_ARG_ENABLE(libetpan,
|
2007-10-18 11:29:06 +02:00
|
|
|
[ --disable-libetpan disable IMAP4/NNTP (libetpan) support],
|
2005-07-06 20:22:55 +02:00
|
|
|
[ac_cv_enable_libetpan=$enableval], [ac_cv_enable_libetpan=yes])
|
|
|
|
if test x"$ac_cv_enable_libetpan" = xyes; then
|
2005-07-19 10:48:56 +02:00
|
|
|
AC_MSG_RESULT(yes)
|
2005-07-06 20:22:55 +02:00
|
|
|
libetpan_result=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_result=yes])
|
|
|
|
if test "x$libetpan_result" = "xyes"; then
|
|
|
|
AC_MSG_CHECKING([whether libetpan-config hints compiles and links fine])
|
2006-03-02 17:07:43 +01:00
|
|
|
LIBS="$LIBS `$libetpanconfig --libs 2>/dev/null`"
|
2005-09-16 19:14:56 +02:00
|
|
|
AC_TRY_LINK([#include <libetpan/dbstorage.h>], [db_mailstorage_init(NULL, NULL);], [libetpan_result=yes], [libetpan_result=no])
|
2005-07-06 20:22:55 +02:00
|
|
|
AC_MSG_RESULT([$libetpan_result])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "x$libetpan_result" = "xyes"; then
|
|
|
|
LIBETPAN_CPPFLAGS="`$libetpanconfig --cflags`"
|
|
|
|
LIBETPAN_LIBS="`$libetpanconfig --libs`"
|
2010-04-12 16:19:12 +02:00
|
|
|
LIBETPAN_STABLE=`$libetpanconfig --version | grep -v ^0`
|
2005-07-06 20:22:55 +02:00
|
|
|
LIBETPAN_VERSION=`$libetpanconfig --version | sed "s/\.//g" | sed "s/-.*$//"`
|
2010-04-12 16:19:12 +02:00
|
|
|
if test x"$LIBETPAN_STABLE" != "x"; then
|
|
|
|
LIBETPAN_VERSION="100"
|
|
|
|
fi
|
2008-10-09 08:22:15 +02:00
|
|
|
if test "$LIBETPAN_VERSION" -lt "057"; then
|
|
|
|
AC_MSG_RESULT([*** Claws Mail requires libetpan 0.57 or newer. See http://www.etpan.org/])
|
2007-10-18 11:29:06 +02:00
|
|
|
AC_MSG_RESULT([*** You can use --disable-libetpan if you don't need IMAP4 and/or NNTP support.])
|
2008-10-09 08:22:15 +02:00
|
|
|
AC_MSG_ERROR([libetpan 0.57 not found])
|
2005-07-06 20:22:55 +02:00
|
|
|
fi
|
|
|
|
AC_SUBST(LIBETPAN_FLAGS)
|
|
|
|
AC_SUBST(LIBETPAN_LIBS)
|
2007-10-18 11:29:06 +02:00
|
|
|
AC_DEFINE(HAVE_LIBETPAN, 1, Define if you want IMAP and/or NNTP support.)
|
2005-07-06 20:22:55 +02:00
|
|
|
else
|
2008-10-09 08:22:15 +02:00
|
|
|
AC_MSG_RESULT([*** Claws Mail requires libetpan 0.57 or newer. See http://www.etpan.org/ ])
|
2007-10-18 11:29:06 +02:00
|
|
|
AC_MSG_RESULT([*** You can use --disable-libetpan if you don't need IMAP4 and/or NNTP support.])
|
2008-10-09 08:22:15 +02:00
|
|
|
AC_MSG_ERROR([libetpan 0.57 not found])
|
2005-07-06 20:22:55 +02:00
|
|
|
fi
|
2005-07-19 10:48:56 +02:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2005-07-03 17:09:13 +02:00
|
|
|
fi
|
2006-11-27 09:07:23 +01:00
|
|
|
AM_CONDITIONAL(CLAWS_LIBETPAN, test "x$libetpan_result" = "xyes")
|
2005-12-20 18:43:40 +01:00
|
|
|
|
2007-03-03 11:51:26 +01:00
|
|
|
AC_MSG_CHECKING([whether to use valgrind])
|
|
|
|
AC_ARG_ENABLE(valgrind,
|
2007-07-26 10:42:29 +02:00
|
|
|
[ --disable-valgrind disable valgrind support for debugging],
|
2007-03-03 11:51:26 +01:00
|
|
|
[ac_cv_enable_valgrind=$enableval], [ac_cv_enable_valgrind=yes])
|
|
|
|
if test x$ac_cv_enable_valgrind = xyes; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
|
|
|
|
ac_cv_enable_valgrind=yes, ac_cv_enable_valgrind=no)
|
|
|
|
if test x"$ac_cv_enable_valgrind" = xyes; then
|
|
|
|
AC_DEFINE(HAVE_VALGRIND, 1, Define if you want valgrind support)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(not found)
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(CLAWS_VALGRIND, test x"$ac_cv_enable_valgrind" = x"yes")
|
|
|
|
|
2002-12-26 16:36:46 +01:00
|
|
|
dnl ****************************
|
|
|
|
dnl ** Final configure output **
|
|
|
|
dnl ****************************
|
2002-03-22 10:15:31 +01:00
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
2004-05-05 10:51:12 +02:00
|
|
|
m4/Makefile
|
2002-06-28 12:12:40 +02:00
|
|
|
po/Makefile.in
|
2002-12-08 14:37:37 +01:00
|
|
|
src/common/version.h
|
2002-03-22 10:15:31 +01:00
|
|
|
src/Makefile
|
2002-11-30 18:26:51 +01:00
|
|
|
src/common/Makefile
|
2003-03-02 17:29:07 +01:00
|
|
|
src/common/passcrypt.h
|
2002-11-30 18:26:51 +01:00
|
|
|
src/gtk/Makefile
|
2005-07-03 17:09:13 +02:00
|
|
|
src/etpan/Makefile
|
2002-12-26 16:36:46 +01:00
|
|
|
src/plugins/Makefile
|
2013-02-16 14:01:11 +01:00
|
|
|
src/plugins/acpi_notifier/Makefile
|
|
|
|
src/plugins/address_keeper/Makefile
|
2013-02-16 14:48:16 +01:00
|
|
|
src/plugins/archive/Makefile
|
|
|
|
src/plugins/att_remover/Makefile
|
2013-02-16 14:01:11 +01:00
|
|
|
src/plugins/attachwarner/Makefile
|
2006-08-27 11:44:59 +02:00
|
|
|
src/plugins/bogofilter/Makefile
|
2013-02-16 14:48:16 +01:00
|
|
|
src/plugins/bsfilter/Makefile
|
2013-02-17 22:22:03 +01:00
|
|
|
src/plugins/clamd/Makefile
|
|
|
|
src/plugins/clamd/libclamd/Makefile
|
2013-02-16 14:01:11 +01:00
|
|
|
src/plugins/demo/Makefile
|
2003-03-15 21:17:25 +01:00
|
|
|
src/plugins/dillo_viewer/Makefile
|
2013-02-13 17:23:36 +01:00
|
|
|
src/plugins/fancy/Makefile
|
2013-02-17 22:22:03 +01:00
|
|
|
src/plugins/fetchinfo/Makefile
|
|
|
|
src/plugins/gdata/Makefile
|
|
|
|
src/plugins/mailmbox/Makefile
|
|
|
|
src/plugins/newmail/Makefile
|
2013-02-17 22:56:48 +01:00
|
|
|
src/plugins/notification/Makefile
|
2013-02-17 22:22:03 +01:00
|
|
|
src/plugins/pdf_viewer/Makefile
|
|
|
|
src/plugins/perl/Makefile
|
|
|
|
src/plugins/python/Makefile
|
2005-07-14 13:29:21 +02:00
|
|
|
src/plugins/pgpcore/Makefile
|
2004-08-09 10:13:26 +02:00
|
|
|
src/plugins/pgpmime/Makefile
|
2005-07-19 18:10:13 +02:00
|
|
|
src/plugins/pgpinline/Makefile
|
2013-02-16 11:35:15 +01:00
|
|
|
src/plugins/rssyl/Makefile
|
2008-09-20 10:52:12 +02:00
|
|
|
src/plugins/smime/Makefile
|
2013-02-16 14:01:11 +01:00
|
|
|
src/plugins/spamassassin/Makefile
|
2013-02-20 09:45:59 +01:00
|
|
|
src/plugins/spam_report/Makefile
|
|
|
|
src/plugins/tnef_parse/Makefile
|
2013-02-16 14:01:11 +01:00
|
|
|
src/plugins/trayicon/Makefile
|
2013-02-13 21:50:31 +01:00
|
|
|
src/plugins/vcalendar/Makefile
|
|
|
|
src/plugins/vcalendar/libical/Makefile
|
|
|
|
src/plugins/vcalendar/libical/libical/icalversion.h
|
|
|
|
src/plugins/vcalendar/libical/libical/Makefile
|
|
|
|
src/plugins/vcalendar/libical/design-data/Makefile
|
|
|
|
src/plugins/vcalendar/libical/scripts/Makefile
|
2004-01-08 21:54:47 +01:00
|
|
|
doc/Makefile
|
|
|
|
doc/man/Makefile
|
2002-03-22 10:15:31 +01:00
|
|
|
tools/Makefile
|
2002-10-08 20:26:11 +02:00
|
|
|
config/Makefile
|
2006-01-20 19:48:40 +01:00
|
|
|
manual/Makefile
|
|
|
|
manual/dtd/Makefile
|
|
|
|
manual/dist/Makefile
|
|
|
|
manual/dist/pdf/Makefile
|
|
|
|
manual/dist/ps/Makefile
|
|
|
|
manual/dist/html/Makefile
|
|
|
|
manual/dist/txt/Makefile
|
2006-04-08 17:47:06 +02:00
|
|
|
manual/fr/Makefile
|
|
|
|
manual/fr/dist/Makefile
|
|
|
|
manual/fr/dist/pdf/Makefile
|
|
|
|
manual/fr/dist/ps/Makefile
|
|
|
|
manual/fr/dist/html/Makefile
|
|
|
|
manual/fr/dist/txt/Makefile
|
2006-05-05 19:53:32 +02:00
|
|
|
manual/pl/Makefile
|
|
|
|
manual/pl/dist/Makefile
|
|
|
|
manual/pl/dist/pdf/Makefile
|
|
|
|
manual/pl/dist/ps/Makefile
|
|
|
|
manual/pl/dist/html/Makefile
|
|
|
|
manual/pl/dist/txt/Makefile
|
2006-08-17 14:00:50 +02:00
|
|
|
manual/es/Makefile
|
|
|
|
manual/es/dist/Makefile
|
|
|
|
manual/es/dist/pdf/Makefile
|
|
|
|
manual/es/dist/ps/Makefile
|
|
|
|
manual/es/dist/html/Makefile
|
|
|
|
manual/es/dist/txt/Makefile
|
2010-02-27 10:03:33 +01:00
|
|
|
manual/de/Makefile
|
|
|
|
manual/de/dist/Makefile
|
|
|
|
manual/de/dist/pdf/Makefile
|
|
|
|
manual/de/dist/ps/Makefile
|
|
|
|
manual/de/dist/html/Makefile
|
|
|
|
manual/de/dist/txt/Makefile
|
2006-11-07 11:24:03 +01:00
|
|
|
claws-mail.pc
|
2002-03-22 10:15:31 +01:00
|
|
|
])
|
|
|
|
|
|
|
|
dnl Output the configuration summary
|
|
|
|
echo ""
|
|
|
|
echo "$PACKAGE $VERSION"
|
|
|
|
echo ""
|
2012-04-01 20:45:27 +02:00
|
|
|
if test x"$enable_new_addrbook" = xyes; then
|
|
|
|
echo "Using Address Book : New experimental interface"
|
|
|
|
else
|
|
|
|
echo "Using Address Book : Old stable interface"
|
|
|
|
echo "JPilot : $ac_cv_enable_jpilot"
|
|
|
|
echo "LDAP : $ac_cv_enable_ldap"
|
|
|
|
fi
|
|
|
|
echo "gnuTLS : $ac_cv_enable_gnutls"
|
|
|
|
echo "iconv : $am_cv_func_iconv"
|
|
|
|
echo "compface : $ac_cv_enable_compface"
|
|
|
|
echo "IPv6 : $ac_cv_enable_ipv6"
|
|
|
|
echo "enchant : $ac_cv_enable_enchant"
|
|
|
|
echo "IMAP4 : $ac_cv_enable_libetpan"
|
|
|
|
echo "NNTP : $ac_cv_enable_libetpan"
|
|
|
|
echo "Crash dialog : $ac_cv_enable_crash_dialog"
|
|
|
|
echo "LibSM : $ac_cv_enable_libsm"
|
|
|
|
echo "DBUS : $enable_dbus"
|
|
|
|
echo "NetworkManager : $enable_networkmanager_support"
|
|
|
|
echo "Manual : $ac_cv_enable_manual"
|
|
|
|
echo "Plugins : $PLUGINS"
|
|
|
|
echo "Generic UMPC code : $ac_cv_enable_generic_umpc"
|
|
|
|
echo "Maemo build : $ac_cv_enable_maemo"
|
|
|
|
echo "Config dir : $ac_cv_with_config_dir"
|
2002-03-22 10:15:31 +01:00
|
|
|
echo ""
|
|
|
|
echo "The binary will be installed in $prefix/bin"
|
|
|
|
echo ""
|
|
|
|
echo "Configure finished, type 'make' to build."
|