add global setting stuff for spelling checker; 'nother 20% done
[claws.git] / configure.in
index dd21f82c8049cab93d8ef1db17a9da6b5d1ba7d6..576b101bcc30fbed8b79c5b3ba008e1ea288c880 100644 (file)
@@ -4,11 +4,11 @@ PACKAGE=sylpheed
 
 dnl version number
 MAJOR_VERSION=0
-MINOR_VERSION=4
-MICRO_VERSION=99
-INTERFACE_AGE=99
-BINARY_AGE=99
-EXTRA_VERSION=claws5
+MINOR_VERSION=5
+MICRO_VERSION=1
+INTERFACE_AGE=0
+BINARY_AGE=0
+EXTRA_VERSION=claws3
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
@@ -24,6 +24,9 @@ if test "$GNOME_CONFIG" != no; then
 fi
 AM_CONDITIONAL(SYLPHEED_GNOME, test -d "$gnomedir")
 
+dnl Claws version
+AC_DEFINE(CLAWS, 1)
+
 dnl libtool versioning
 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
@@ -50,6 +53,8 @@ AC_PROG_LN_S
 AC_PROG_MAKE_SET
 AC_PROG_CPP
 dnl AC_PROG_RANLIB
+AM_PROG_LEX
+AC_PROG_YACC
 
 SYLPHEED_ACLOCAL_INCLUDE(ac)
 
@@ -98,6 +103,29 @@ if test $ac_cv_enable_gpgme = yes; then
        AM_PATH_GPGME(0.2.1, AC_DEFINE(USE_GPGME), [use_gpgme=no])
 fi
 
+dnl Use OpenSSL for SSL connections 
+AC_MSG_CHECKING([whether to use ssl])
+AC_ARG_ENABLE(ssl,
+       [  --enable-ssl            Enable SSL support using OpenSSL [default=no]],
+       [ac_cv_enable_ssl=$enableval], [ac_cv_enable_ssl=no])
+if test $ac_cv_enable_ssl = yes; then
+       AC_MSG_RESULT(yes)
+else
+       AC_MSG_RESULT(no)
+fi
+
+if test $ac_cv_enable_ssl = yes; then
+       AC_MSG_CHECKING([whether to openssl is available])
+       LIBS="$LIBS -lssl"
+       AC_TRY_LINK([
+#include <openssl/opensslv.h>
+],     [ return(OPENSSL_VERSION_NUMBER); ],
+       [ AC_MSG_RESULT(yes)
+         AC_DEFINE(USE_SSL) ],
+       [ AC_MSG_RESULT(no) 
+         LIBS="$ac_save_LIBS" ])
+fi
+
 dnl Check for X-Face support
 AC_ARG_ENABLE(compface,
        [  --disable-compface      Do not use compface (X-Face)],
@@ -106,6 +134,69 @@ if test "$ac_cv_disable_compface" = no; then
        AC_CHECK_LIB(compface, uncompface)
 fi
 
+dnl for JPilot support in addressbook
+dnl no check for libraries: these are dynamically loaded
+AC_ARG_ENABLE(jpilot,
+       [  --enable-jpilot         Enable JPilot support [default=no]],
+       [ac_cv_enable_jpilot=$enableval], [ac_cv_enable_jpilot=no])
+
+AC_MSG_CHECKING([whether to use jpilot])
+if test "$ac_cv_enable_jpilot" = yes; then
+       AC_MSG_RESULT(yes)
+       if test "$ac_cv_enable_jpilot" = yes; then
+               AC_CHECK_HEADERS(pi-args.h pi-appinfo.h pi-address.h, , [ac_cv_enable_jpilot=no])
+               if test "$ac_cv_enable_jpilot" = yes; then              
+                       LIBS="$LIBS -lpisock"
+                       AC_DEFINE(USE_JPILOT)
+               fi
+       fi
+       AC_MSG_CHECKING(whether jpilot is available)
+       if test "$ac_cv_enable_jpilot" = yes; then
+               AC_MSG_RESULT(yes)
+       else
+               AC_MSG_RESULT(no)
+       fi
+else
+       AC_MSG_RESULT(no)
+fi
+
+dnl for LDAP support in addressbook
+dnl no check for libraries; dynamically loaded
+AC_ARG_ENABLE(ldap,
+       [  --enable-ldap         Enable LDAP support [default=no]],
+       [ac_cv_enable_ldap=$enableval], [ac_cv_enable_ldap=no])
+
+AC_MSG_CHECKING([whether to use ldap])
+if test "$ac_cv_enable_ldap" = yes; then
+       AC_MSG_RESULT(yes)
+       if test "$ac_cv_enable_ldap" = yes; then
+               AC_CHECK_HEADERS(ldap.h lber.h pthread.h, , [ac_cv_enable_ldap=no])
+               if test "$ac_cv_enable_ldap" = yes; then
+                       LIBS="$LIBS -lldap -llber -lpthread -lresolv"
+                       AC_DEFINE(USE_LDAP)
+               fi      
+       fi
+       AC_MSG_CHECKING(whether ldap is available)
+       if test "$ac_cv_enable_ldap" = yes; then
+               AC_MSG_RESULT(yes)
+       else
+               AC_MSG_RESULT(no)
+       fi
+else
+       AC_MSG_RESULT(no)
+fi
+
+dnl get ispell path
+dnl
+AC_PATH_PROG(ispell_path, ispell, x)
+if test "$ispell_path" != x; then
+       AC_DEFINE_UNQUOTED(ISPELL_PATH, "$ispell_path")
+       AC_SUBST(ISPELL_PATH)
+else
+       AC_DEFINE_UNQUOTED(ISPELL_PATH, "$ispell_path")
+       AC_SUBST(ISPELL_PATH)
+fi
+
 dnl Check for libjconv
 AC_ARG_ENABLE(jconv,
        [  --disable-jconv         Do not use libjconv],
@@ -118,9 +209,9 @@ AC_CHECK_LIB(xpg4, setlocale)
 dnl AC_CHECK_LIB(kcc, KCC_filter)
 
 dnl for GThread support
-AC_ARG_ENABLE(threads,
-       [  --enable-threads        Enable multithread support [default=no]],
-       [use_threads=$enableval], [use_threads=no])
+dnl AC_ARG_ENABLE(threads,
+dnl    [  --enable-threads        Enable multithread support [default=no]],
+dnl    [use_threads=$enableval], [use_threads=no])
 
 AC_MSG_CHECKING([whether to use threads])
 if test x"$use_threads" = xyes ; then
@@ -185,7 +276,6 @@ AC_CHECK_HEADERS(fcntl.h sys/file.h unistd.h paths.h \
                 sys/param.h sys/utsname.h \
                 wchar.h wctype.h)
 
-
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 AC_TYPE_OFF_T
@@ -226,4 +316,5 @@ libkcc/Makefile
 src/Makefile
 manual/Makefile
 manual/ja/Makefile
+manual/en/Makefile
 ])