Updated the README file with some contributor tips.
[basket4.git] / configure.in.in
blobf882560492bf5a715e72a6c73b50800505308d1f
1 #MIN_CONFIG(3.0.0)
3 AM_INIT_AUTOMAKE(basket, '1.0.2')
4 AC_C_BIGENDIAN
5 AC_CHECK_KDEMAXPATHLEN
7 KDE_CHECK_LARGEFILE
9 dnl -----------------------------------------------------------------
10 dnl AC_LIB_GPGME([ACTION-IF-TRUE], [ACTION-IF-FALSE])
11 dnl -----------------------------------------------------------------
13 OPTION="  --with-encryption=yes/no   compile with encryption support (gpgme)"
15 AC_DEFUN([AC_ENCRYPTION], [
16   AH_TEMPLATE([HAVE_LIBGPGME], [Define if libgpgme is available])
18   AC_ARG_WITH(encryption, [$OPTION], [
19     if test "$withval" = "no"; then
20       ac_gpg=
21       $2
22     elif test "$withval" = "yes"; then
23       ac_gpg=yes
24     else
25       ac_gpg=yes
26     fi
27   ],[ac_gpg=yes])
29   if test "$ac_gpg" != ""; then
30     AM_PATH_GPGME(1.0.0, ac_libgpgme=yes, ac_libgpgme=no)
31     AM_PATH_GPG_ERROR(1.0, ac_libgpgerror=yes, ac_libgpgerror=no)
33     if test "$ac_libgpgme" != "no" -a "$ac_libgpgerror" != "no"; then
34       AC_DEFINE([HAVE_LIBGPGME])
35       ac_have_gpgme="yes"
36       $1
37     else
38       :
39       $2
40     fi
41   fi
42   AM_CONDITIONAL(HAVE_LIBGPGME, test "$ac_have_gpgme" = "yes")
45 AC_ENCRYPTION([], [basket_warning_gpgme=yes])
47 KDE_CHECK_HEADER(kontact/core.h, [KONTACT_SUBDIR="yes"], [KONTACT_SUBDIR="no"])
49 if test "$KONTACT_SUBDIR" = "no"; then
50         basket_warning_kontact=yes
51         DO_NOT_COMPILE="$DO_NOT_COMPILE kontact_plugin"