14
14
## along with this program; if not, write to the Free Software Foundation,
15
15
## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
AC_INIT([mu],[0.6],[http://www.djcbsoftware.nl/code/mu])
17
AC_INIT([mu],[0.7],[http://www.djcbsoftware.nl/code/mu])
18
18
AC_CONFIG_HEADERS([config.h])
19
AC_CONFIG_SRCDIR([src/mu.c])
19
AC_CONFIG_SRCDIR([src/mu.cc])
20
20
AM_INIT_AUTOMAKE([dist-bzip2])
23
AM_SILENT_RULES([yes])
22
25
# we set the set the version of the Xapian database layout here; it
23
# will become part of the db name, so we can automtically recreate the
26
# will become part of the db name, so we can automatically recreate the
24
27
# database when we incompatible have changes.
26
29
# note that MU_XAPIAN_DB_VERSION does not necessarily follow MU
27
30
# versioning, as we hopefully don't have updates for each version;
28
31
# also, this has nothing to do with the version of the Xapian library
30
AC_DEFINE(MU_XAPIAN_DB_VERSION,["0.6"], [Schema version of the database])
33
AC_DEFINE(MU_XAPIAN_DB_VERSION,["7.0"], [Schema version of the database])
35
LT_INIT # don't use AC_PROG_LIBTOOL anymore
34
37
AS_IF([test x$prefix = xNONE],[
35
38
prefix=/usr/local])
47
49
*** The pkg-config script could not be found. Make sure it is
48
50
*** in your path, or set the PKG_CONFIG environment variable
49
51
*** to the full path to pkg-config.])
56
AC_PATH_PROG([PMCCABE], [pmccabe], [no])
57
AS_IF([test "x$PMCCABE" = "xno"],[
59
*** Developers: you don't seem to have the 'pmccabe' tool installed.
60
*** Please install it if you want to run the automated code checks])
53
66
# currently, we don' support systems without d_type in their struct
59
72
AC_STRUCT_DIRENT_D_TYPE
60
73
AS_IF([test "x$ac_cv_member_struct_dirent_d_type" != "xyes"],[
62
*** We need the d_type-member in struct dirent, but unfortunately
63
*** your system does not seem to have it])
75
*** We need the d_type member in struct dirent, but it seems
76
*** your system does not have it])
65
78
# support for d_ino in struct dirent is optional
66
79
AC_STRUCT_DIRENT_D_INO
70
PKG_CHECK_MODULES(GLIB,glib-2.0)
83
PKG_CHECK_MODULES(GLIB, glib-2.0 gio-2.0)
71
84
AC_SUBST(GLIB_CFLAGS)
72
85
AC_SUBST(GLIB_LIBS)
87
# g_test was introduced in glib 2.16
88
PKG_CHECK_MODULES(g_test,glib-2.0 >= 2.16,
89
[have_gtest=yes],[have_gtest=no])
90
AM_CONDITIONAL(HAVE_GTEST, test "x$have_gtest" = "xyes")
91
if test "x$have_gtest" = "xno"; then
92
AC_MSG_WARN([You need GLIB version >= 2.16 to build the tests])
75
97
PKG_CHECK_MODULES(GMIME,gmime-2.4)
76
98
AC_SUBST(GMIME_CFLAGS)
77
99
AC_SUBST(GMIME_LIBS)
80
103
AC_CHECK_PROG(XAPIAN,xapian-config,xapian-config,no)
81
104
AM_CONDITIONAL(HAVE_XAPIAN,test "x$XAPIAN" != "xno")
93
116
AC_SUBST(XAPIAN_CXXFLAGS)
94
117
AC_SUBST(XAPIAN_LIBS)
105
129
echo "mu configuration is complete."
106
echo "type 'make' to build it"
130
echo "-----------------------------"
133
echo "Note: the Xapian database is no longer stored as <muhome>/xapian-0.6"
134
echo "but instead simply as <muhome>/xapian. You can remove the older"
135
echo "<muhome>xapian-0.6 directory to save some disk space"
138
echo "type 'make' to build mu, or 'make check' to run the unit tests."