Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 405 lines (338 sloc) 14.632 kB
16a7b48 * configure.ac: small improvements
djcb authored
1 ## Copyright (C) 2008-2012 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
2b0aca1 @djcb * initial import of mu - the next generation
authored
2 ##
3 ## This program is free software; you can redistribute it and/or modify
4 ## it under the terms of the GNU General Public License as published by
5 ## the Free Software Foundation; either version 3 of the License, or
6 ## (at your option) any later version.
b669feb @djcb * configure.ac: check for readline
authored
7 ##
2b0aca1 @djcb * initial import of mu - the next generation
authored
8 ## This program is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 ## GNU General Public License for more details.
b669feb @djcb * configure.ac: check for readline
authored
12 ##
2b0aca1 @djcb * initial import of mu - the next generation
authored
13 ## You should have received a copy of the GNU General Public License
14 ## along with this program; if not, write to the Free Software Foundation,
b669feb @djcb * configure.ac: check for readline
authored
15 ## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2b0aca1 @djcb * initial import of mu - the next generation
authored
16
615cf47 @djcb * configure.ac: bump version to 0.9.9-dev7
authored
17 AC_INIT([mu],[0.9.9-dev7],[http://code.google.com/p/mu0/issues/list],[mu])
2b0aca1 @djcb * initial import of mu - the next generation
authored
18 AC_CONFIG_HEADERS([config.h])
46f10cf @djcb * refactoring: split src/ into mu/ and lib/
authored
19 AC_CONFIG_SRCDIR([mu/mu.cc])
6d2cc60 @djcb * Makefile.am/configure.ac: some changes to make Solaris a bit happier
authored
20 # libtoolize wants to put some stuff in here; if you have an old
21 # autotools/libtool setup. you can try to comment this out
a53f549 @djcb * configure.ac/Makfile.am: add m4 as a macro dir, require stdc
authored
22 AC_CONFIG_MACRO_DIR([m4])
d6a53eb @djcb * update configure.ac: bump version to 0.8.2; don't use AM_INIT_AUTOM…
authored
23 AM_INIT_AUTOMAKE
2c24a43 @djcb * cosmetics
authored
24
5fb788d @djcb * configure.ac: make silent-rules stuff optional
authored
25 # silent build if we have a new enough automake
26 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
f537016 @djcb * configure.ac: use AM_SILENT_RULES to make the build less noisy
authored
27
43bb99a * minor
djcb authored
28 AS_IF([test x$prefix = xNONE],[prefix=/usr/local])
2b0aca1 @djcb * initial import of mu - the next generation
authored
29 AC_SUBST(prefix)
30
98ebd7c @djcb * configure.ac: tighten checks for f17; bump version to 0.9.9-dev4
authored
31 # AC_PROG_CXX *before* AC_PROG_CC, otherwise configure won't error out
32 # when a c++ compiler is not found. Weird, huh?
33 AC_PROG_CXX
2b0aca1 @djcb * initial import of mu - the next generation
authored
34 AC_PROG_CC
a53f549 @djcb * configure.ac/Makfile.am: add m4 as a macro dir, require stdc
authored
35 AC_PROG_CC_STDC
2c24a43 @djcb * cosmetics
authored
36 AC_PROG_INSTALL
2b0aca1 @djcb * initial import of mu - the next generation
authored
37 AC_HEADER_STDC
38
98ebd7c @djcb * configure.ac: tighten checks for f17; bump version to 0.9.9-dev4
authored
39 # for now, use AM_PROG_LIBTOOL, as we don't want to require
40 # a too new setup for autotools/libtool
41 AM_PROG_LIBTOOL
42 #LT_INIT([disable-shared])
43
1c2a87a @djcb * help: generate help texts from text file / awk
authored
44 AC_PROG_AWK
45
267d7ad @djcb * configure.ac: minor
authored
46 AC_CHECK_HEADERS([locale.h langinfo.h wordexp.h])
2c81d65 @djcb * configure.ac: check for langinfo.h, locale.h
authored
47
2c24a43 @djcb * cosmetics
authored
48 # use the 64-bit versions
49 AC_SYS_LARGEFILE
50
9d6ef76 @djcb * crypto: improve signature checking code
authored
51
159d26e @djcb * configure.ac: add warning if makeinfo is missing
authored
52 # check for makeinfo
53 AC_CHECK_PROG(have_makeinfo,makeinfo,yes,no)
54 AM_CONDITIONAL(HAVE_MAKEINFO,test "x$have_makeinfo" = "xyes")
55
edda59b @djcb * mu4e: restructure code a bit and enable byte-compilation
authored
56 # we need emacs for byte-compiling mu4e
74ce489 @djcb * configure.ac/Makefile.am: require specific emacs version (23+)
authored
57
58 build_mu4e=no
59 AC_ARG_ENABLE([mu4e],
60 AS_HELP_STRING([--disable-mu4e],[Disable building mu4e]))
61 AS_IF([test "x$enable_mu4e" != "xno"], [
62 AM_PATH_LISPDIR
63 AS_IF([test "x$lispdir" != "xno"], [emacs_version="`$EMACS --version | head -1`"])
64 AS_CASE([$emacs_version],[*23*|*24*|*25*],[build_mu4e=yes],
65 [AC_WARN([emacs is too old to build mu4e (need emacs >= 23.x)])])
93c46dd @djcb * prepare for guile/tests
authored
66 ])
74ce489 @djcb * configure.ac/Makefile.am: require specific emacs version (23+)
authored
67 AM_CONDITIONAL(BUILD_MU4E, test "x$build_mu4e" = "xyes")
2c24a43 @djcb * cosmetics
authored
68
d14727c @djcb * dont't require direntry->d_type; this should help the Solaris build.
authored
69 # we need some special tricks for filesystems that don't have d_type;
70 # e.g. Solaris. See mu-maildir.c. Explicitly disabling it is for
71 # testing purposes only
72 AC_ARG_ENABLE([dirent-d-type],
73 AC_HELP_STRING([--disable-dirent-d-type],
74 [Don't use dirent->d_type, even if you have it]),
75 [], [AC_STRUCT_DIRENT_D_TYPE]
76 )
77 AS_IF([test "x$ac_cv_member_struct_dirent_d_type" != "xyes"],
78 [use_dirent_d_type="no"], [use_dirent_d_type="yes"])
6f48dbe @djcb * configure.ac, mu-maildir.c: some compatibility updates
authored
79
d14727c @djcb * dont't require direntry->d_type; this should help the Solaris build.
authored
80
81 # support for d_ino (inode) in struct dirent is optional; if it's
82 # available we can sort direntries by inode and access them in that
83 # order; this is much faster on some file systems (such as extfs3).
84 # Explicity disabling it is for testing purposes only.
85 AC_ARG_ENABLE([dirent-d-ino],
86 AC_HELP_STRING([--disable-dirent-d-ino],
87 [Don't use dirent->d_ino, even if you have it]),
88 [], [AC_STRUCT_DIRENT_D_INO]
89 )
90 AS_IF([test "x$ac_cv_member_struct_dirent_d_ino" != "xyes"],
91 [use_dirent_d_ino="no"], [use_dirent_d_ino="yes"])
2b0aca1 @djcb * initial import of mu - the next generation
authored
92
148db5a @djcb * configure.ac: cleanups
authored
93
d14727c @djcb * dont't require direntry->d_type; this should help the Solaris build.
authored
94 # we need these
3ae4fb9 @djcb * configure.ac: check for getpass
authored
95 AC_CHECK_FUNCS([memset memcpy realpath setlocale strerror getpass])
d14727c @djcb * dont't require direntry->d_type; this should help the Solaris build.
authored
96
148db5a @djcb * configure.ac: cleanups
authored
97 # require pkg-config
98 AC_PATH_PROG([PKG_CONFIG], [pkg-config], [no])
99 AS_IF([test "x$PKG_CONFIG" = "xno"],[
100 AC_MSG_ERROR([
101 *** The pkg-config script could not be found. Make sure it is
102 *** in your path, or set the PKG_CONFIG environment variable
103 *** to the full path to pkg-config.])
104 ])
105
2b0aca1 @djcb * initial import of mu - the next generation
authored
106 # glib2?
f14f8f4 @djcb * set dependency to glib >= 2.14, as we are using GRegex now
authored
107 # we need 2.14 at least, because we use GRegex
38a2ee7 @djcb * bump glib version to 2.24, make gtest stuff non-optional
authored
108 PKG_CHECK_MODULES(GLIB,glib-2.0 >= 2.24 gobject-2.0)
2b0aca1 @djcb * initial import of mu - the next generation
authored
109 AC_SUBST(GLIB_CFLAGS)
110 AC_SUBST(GLIB_LIBS)
16a7b48 * configure.ac: small improvements
djcb authored
111 glib_version="`$PKG_CONFIG --modversion glib-2.0`"
b669feb @djcb * configure.ac: check for readline
authored
112
28c6f2d @djcb * mu-msg-part: g_mime_data_wrapper_write_to_stream returns ssize_t, not
authored
113 # gmime 2.4 or 2.6?
9e776cd @djcb * configure.ac: prefer gmime-2.6 if both 2.4, 2.6 are present
authored
114 PKG_CHECK_MODULES(GMIME,gmime-2.6,[have_gmime_26=yes],[have_gmime_26=no])
115 AS_IF([test "x$have_gmime_26" = "xno"],[
116 PKG_CHECK_MODULES(GMIME,gmime-2.4,[have_gmime_24=yes],[have_gmime_24=no])
b669feb @djcb * configure.ac: check for readline
authored
117 AS_IF([test "x$have_gmime_24" = "xno"],[
0f9bd7c @djcb * update configure.ac for gmime-2.6 support
authored
118 AC_MSG_ERROR([
9e776cd @djcb * configure.ac: prefer gmime-2.6 if both 2.4, 2.6 are present
authored
119 *** neither gmime-2.4 nor gmime-2.6 could be found; please install it
0f9bd7c @djcb * update configure.ac for gmime-2.6 support
authored
120 *** e.g., in debian/ubuntu the package would be 'libgmime-2.4-dev'
121 *** If you compiled it yourself, you should ensure that the pkgconfig
122 *** installation dir (e.g., /usr/local/lib/pkgconfig) is in your
123 *** PKG_CONFIG_PATH.
6d2cc60 @djcb * Makefile.am/configure.ac: some changes to make Solaris a bit happier
authored
124 ])],[
16a7b48 * configure.ac: small improvements
djcb authored
125 gmime_version="`$PKG_CONFIG --modversion gmime-2.4`"
6d2cc60 @djcb * Makefile.am/configure.ac: some changes to make Solaris a bit happier
authored
126 ])],[
16a7b48 * configure.ac: small improvements
djcb authored
127 gmime_version="`$PKG_CONFIG --modversion gmime-2.6`"
6d2cc60 @djcb * Makefile.am/configure.ac: some changes to make Solaris a bit happier
authored
128 ])
2b0aca1 @djcb * initial import of mu - the next generation
authored
129 AC_SUBST(GMIME_CFLAGS)
130 AC_SUBST(GMIME_LIBS)
b669feb @djcb * configure.ac: check for readline
authored
131
3ae4fb9 @djcb * configure.ac: check for getpass
authored
132 # we need gmime 2.6 for the crypto stuff
2be6b04 @djcb * mu: build crypto support maybe (depends on gmime 2.6)
authored
133 AM_CONDITIONAL(BUILD_CRYPTO,[test "x$have_gmime_26" = "xyes"])
134 AS_IF([test "x$have_gmime_26" = "xyes"],
135 AC_DEFINE_UNQUOTED([BUILD_CRYPTO],1,[Whether to build crypto; reqs gmime 2.6]))
148db5a @djcb * configure.ac: cleanups
authored
136
5f9aed0 @djcb * configure.ac: add specific version 1.2.x check for xapian
authored
137 # xapian checking - we need 1.2.x at least
138 AC_CHECK_PROG(XAPIAN_CONFIG,xapian-config,xapian-config,no)
139 AM_CONDITIONAL(HAVE_XAPIAN,test "x$XAPIAN_CONFIG" != "xno")
140 AS_IF([test "x$XAPIAN_CONFIG" = "xno"],[
148db5a @djcb * configure.ac: cleanups
authored
141 AC_MSG_ERROR([
142 *** xapian could not be found; please install it
143 *** e.g., in debian/ubuntu the package would be 'libxapian-dev'
144 *** If you compiled it yourself, you should ensure that xapian-config
5f9aed0 @djcb * configure.ac: add specific version 1.2.x check for xapian
authored
145 *** is in your PATH.])],
146 [xapian_version=$($XAPIAN_CONFIG --version | sed -e 's/.* //')])
147 AS_CASE([$xapian_version],
1dc4422 @djcb * configure.ac: fix the xapian version-check regexp for macos
authored
148 [1.[[2-9]].[[0-9]]*], [],
ea67fcf @djcb * configure.ac: bump version to 0.9.9-dev3
authored
149 [AC_MSG_ERROR([*** xapian version >= 1.2 needed,
150 but version $xapian_version found.])])
5f9aed0 @djcb * configure.ac: add specific version 1.2.x check for xapian
authored
151
152 XAPIAN_CXXFLAGS="`$XAPIAN_CONFIG --cxxflags`"
153 XAPIAN_LIBS="`$XAPIAN_CONFIG --libs`"
154 have_xapian="yes"
155
148db5a @djcb * configure.ac: cleanups
authored
156 AC_SUBST(XAPIAN_CXXFLAGS)
157 AC_SUBST(XAPIAN_LIBS)
158
0446ec3 @djcb * add some documentation infrastructure
authored
159 ###############################################################################
b375199 @djcb * configure.ac: bump database version to 0.9.8
authored
160 # we set the set the version of the MuStore (Xapian database) layout
161 # here; it will become part of the db name, so we can automatically
162 # recreate the database when we incompatible have changes.
a53f549 @djcb * configure.ac/Makfile.am: add m4 as a macro dir, require stdc
authored
163 #
b375199 @djcb * configure.ac: bump database version to 0.9.8
authored
164 # note that MU_STORE_SCHEMA_VERSION does not necessarily follow MU
a53f549 @djcb * configure.ac/Makfile.am: add m4 as a macro dir, require stdc
authored
165 # versioning, as we hopefully don't have updates for each version;
166 # also, this has nothing to do with Xapian's software version
b375199 @djcb * configure.ac: bump database version to 0.9.8
authored
167 AC_DEFINE(MU_STORE_SCHEMA_VERSION,["9.8"], ['Schema' version of the database])
0446ec3 @djcb * add some documentation infrastructure
authored
168 ###############################################################################
148db5a @djcb * configure.ac: cleanups
authored
169
543a440 @djcb * configure.ac: don't error-out when there's not gtk+ and --with-gui=…
authored
170
0446ec3 @djcb * add some documentation infrastructure
authored
171 ###############################################################################
543a440 @djcb * configure.ac: don't error-out when there's not gtk+ and --with-gui=…
authored
172 # we need gtk (2 or 3) for some of the graphical tools
173 #
f6944f4 @djcb * configure.ac: make gui configurable, --with-gui=(gtk2|gtk3|none|auto),
authored
174 AC_ARG_WITH([gui],
175 [AS_HELP_STRING([--with-gui=gtk2|gtk3|none])],
176 [gui=$withval],[gui=auto])
177
79eb1af @djcb * make muile work for mu 1.8 (and before?) to some extent...
authored
178 AS_IF([test "x$gui" != "xgtk2" -a "x$gui" != "xgtk3" -a "x$gui" != "xnone" \
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
179 -a "x$gui" != "xauto"],
79eb1af @djcb * make muile work for mu 1.8 (and before?) to some extent...
authored
180 AC_MSG_ERROR([the argument for --with-gui= must be either \
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
181 gtk2|gtk3|auto|no ($gui)]))
182 AS_IF([test "x$gui" != "xnone"],[
183 # check for gtk3
184 AS_IF([test "x$gui" = "xgtk3"],[
185 PKG_CHECK_MODULES(GTK,gtk+-3.0,[have_gtk3=yes],[have_gtk3=no])
186 AC_SUBST(GTK_CFLAGS)
187 AC_SUBST(GTK_LIBS)
188 gtk_version="`$PKG_CONFIG --modversion gtk+-3.0`"
189 ])
190 AS_IF([test "x$gui"="gtk3" -a "x$have_gtk3" = "xno"],
191 AC_MSG_ERROR([GTK+ 3.x not found]))
192
193 # check for gtk2 if we did not find gtk3 already
194 # (gtk3 is only sought if asked for it explicitly)
195 AS_IF([test "x$gui" != "xno" -a "x$have_gtk3" != "xyes"],[
196 PKG_CHECK_MODULES(GTK,gtk+-2.0,[have_gtk2=yes],[have_gtk2=no])
197 AC_SUBST(GTK_CFLAGS)
198 AC_SUBST(GTK_LIBS)
199 gtk_version="`$PKG_CONFIG --modversion gtk+-2.0`"
200 ])
201 # only an error if we explicitly asked for it
202 AS_IF([test "x$have_gtk2" = "xno" -a "x$gui" != "xauto"],
203 AC_MSG_ERROR([GTK+ 2.x not found]))
70648b8 @djcb * merge start of simple gtk+ ui for mu: 'mug'
authored
204 ])
f2f5678 @djcb * try gtk+3 first, then gtk+2; mug works with both
authored
205
40c7094 @djcb * configure.ac: improve --with-gui= handling
authored
206 AM_CONDITIONAL(HAVE_GTK,[test "x$have_gtk2" = "xyes" -o "x$have_gtk3" = "xyes" ])
79eb1af @djcb * make muile work for mu 1.8 (and before?) to some extent...
authored
207 AS_IF([test "x$have_gtk2" = "xyes" -o "x$have_gtk3" = "xyes"],[buildgui=yes],
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
208 [buildgui=no])
3fb7e5d @djcb * WIP: fixes for gtk3.2 (prevent warnings for deprecated widgets)
authored
209 AS_IF([test "x$have_gtk3" = "xyes"],
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
210 [AC_DEFINE_UNQUOTED([HAVE_GTK3],1,[Whether we have GTK+ 3.x])])
3fb7e5d @djcb * WIP: fixes for gtk3.2 (prevent warnings for deprecated widgets)
authored
211
40c7094 @djcb * configure.ac: improve --with-gui= handling
authored
212 # webkit? needed for the fancy web widget
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
213 # use --disable-webkit to disable it, even if you have it
bd7a5d6 @djcb * add little msg2pdf toy, to convert messages to pdfs, uses webkit (WIP)
authored
214 # note; gtk2 and gtk3 imply different webkit versions
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
215 build_webkit=no
216 AC_ARG_ENABLE([webkit],
217 AS_HELP_STRING([--disable-webkit],[Disable webkit]))
218 AS_IF([test "x$enable_webkit" != "xno"], [
219 AS_IF([test "x$have_gtk2" = "xyes"],[
220 PKG_CHECK_MODULES(WEBKIT,webkit-1.0 >= 1.0.3,[build_webkit=yes],[build_webkit=no])
221 AS_IF([test "x$build_webkit" = "xyes"],[
16a7b48 * configure.ac: small improvements
djcb authored
222 webkit_version="`$PKG_CONFIG --modversion webkit-1.0`"])
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
223 AC_SUBST(WEBKIT_CFLAGS)
224 AC_SUBST(WEBKIT_LIBS)])
bd7a5d6 @djcb * add little msg2pdf toy, to convert messages to pdfs, uses webkit (WIP)
authored
225
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
226 AS_IF([test "x$have_gtk3" = "xyes"],[
227 PKG_CHECK_MODULES(WEBKIT,webkitgtk-3.0 >= 1.8.0, [build_webkit=yes],[build_webkit=no])
228 AS_IF([test "x$build_webkit" = "xyes"],[
bd7a5d6 @djcb * add little msg2pdf toy, to convert messages to pdfs, uses webkit (WIP)
authored
229 webkit_version="`$PKG_CONFIG --modversion webkitgtk-3.0`"])
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
230 AC_SUBST(WEBKIT_CFLAGS)
231 AC_SUBST(WEBKIT_LIBS)])
bd7a5d6 @djcb * add little msg2pdf toy, to convert messages to pdfs, uses webkit (WIP)
authored
232 ])
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
233 AM_CONDITIONAL(BUILD_WEBKIT, [test "x$build_webkit" = "xyes"])
234
623ec34 @djcb * improvements in attachment / mime-part handling:
authored
235
40c7094 @djcb * configure.ac: improve --with-gui= handling
authored
236 # gio is needed for some widget/ things
fa23a29 @djcb * configure.ac: warn user that mug2 won't work with gtk3
authored
237 AS_IF([test "x$buildgui"="xyes"],[
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
238 PKG_CHECK_MODULES(GIO,gio-2.0,[have_gio=yes],[have_gio=no])
239 AS_IF([test "x$have_gio" = "xyes"],[
16a7b48 * configure.ac: small improvements
djcb authored
240 gio_version="`$PKG_CONFIG --modversion gio-2.0`"])
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
241 AC_SUBST(GIO_CFLAGS)
242 AC_SUBST(GIO_LIBS)
40c7094 @djcb * configure.ac: improve --with-gui= handling
authored
243 ])
244 AM_CONDITIONAL(HAVE_GIO, [test "x$have_gio" = "xyes"])
245
2fcdcaf @djcb * move widgets/ -> toys/mug2; remove toys/mug; rename toys/mug2 -> to…
authored
246 # should we build the gui toys?
247 AM_CONDITIONAL(BUILD_GUI, [test "x$build_webkit" = "xyes" -a "x$have_gio" = "xyes"])
0446ec3 @djcb * add some documentation infrastructure
authored
248 ###############################################################################
249
250
251
79eb1af @djcb * make muile work for mu 1.8 (and before?) to some extent...
authored
252 ###############################################################################
9d6d33b * fix 'make distcheck' for guile/, require guile version 2.0
djcb authored
253 # check for guile 2.0 & guile-snarf
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
254 build_guile=no
255 AC_ARG_ENABLE([guile],
256 AS_HELP_STRING([--disable-guile],[Disable guile]))
257
258 AS_IF([test "x$enable_guile" != "xno"], [
259 PKG_CHECK_MODULES(GUILE,guile-2.0,[build_guile=yes],[build_guile=no])
260 AC_SUBST(GUILE_CFLAGS)
261 AC_SUBST(GUILE_LIBS)
262
9bddf2f @djcb * guile: beginnings of some unit tests
authored
263 GUILE_EXECDIR="`${PKG_CONFIG} guile-2.0 --variable=exec_prefix`/bin"
264
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
265 AS_IF([test "x$build_guile" = "xyes"],[
9bddf2f @djcb * guile: beginnings of some unit tests
authored
266 AC_PATH_PROG(GUILE_BINARY, [guile], [], [$GUILE_EXECDIR])
267 AS_IF([test "x$GUILE_BINARY" != "x"],
268 [AC_DEFINE_UNQUOTED([GUILE_BINARY],["$GUILE_BINARY"],[Path to the guile binary])],
269 [AC_MSG_WARN([cannot find guile-snarf])])])
270
271 AS_IF([test "x$build_guile" = "xyes"],[
272 AC_PATH_PROG(GUILE_SNARF, [guile-snarf], [], [$GUILE_EXECDIR])
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
273 AS_IF([test "x$GUILE_SNARF" != "x"],
9bddf2f @djcb * guile: beginnings of some unit tests
authored
274 [AC_DEFINE_UNQUOTED([GUILE_SNARF],["$GUILE_SNARF"],[Path to guile-snarf])
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
275 GUILE_SITEDIR="`${PKG_CONFIG} guile-2.0 --variable=sitedir`"],
276 [AC_MSG_WARN([cannot find guile-snarf])])])
277 AC_SUBST(GUILE_SITEDIR)])
278
279 AS_IF([test "x$build_guile" = "xyes" -a "x$GUILE_SNARF" != "x"],
280 [guile_version="`${PKG_CONFIG} --modversion guile-2.0`"
2be6b04 @djcb * mu: build crypto support maybe (depends on gmime 2.6)
authored
281 AC_DEFINE_UNQUOTED([BUILD_GUILE],1,[Whether we build with guile 2.0 support])])
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
282 AM_CONDITIONAL(BUILD_GUILE, [test "x$build_guile" = "xyes"])
9d6d33b * fix 'make distcheck' for guile/, require guile version 2.0
djcb authored
283 ###############################################################################
0446ec3 @djcb * add some documentation infrastructure
authored
284
285
286
287 ###############################################################################
288 # check for makeinfo
9d6d33b * fix 'make distcheck' for guile/, require guile version 2.0
djcb authored
289 AC_CHECK_PROG(have_makeinfo,makeinfo,yes,no)
290 AM_CONDITIONAL(HAVE_MAKEINFO, [test "x$have_makeinfo" = "xyes"])
79eb1af @djcb * make muile work for mu 1.8 (and before?) to some extent...
authored
291 ###############################################################################
3b7f2ab @djcb * small updates for guile 1.x compatibility (WIP)
authored
292
43bb99a * minor
djcb authored
293
79eb1af @djcb * make muile work for mu 1.8 (and before?) to some extent...
authored
294
0446ec3 @djcb * add some documentation infrastructure
authored
295 ###############################################################################
8b70e6b @djcb * configure.ac: unbreak McCabe tool checking
authored
296 # check for pmccabe
297 AC_PATH_PROG([PMCCABE],[pmccabe],[pmccabe],[no])
298 AS_IF([test "x$PMCCABE" = "xno"],[
b669feb @djcb * configure.ac: check for readline
authored
299 have_pmccabe="no"
148db5a @djcb * configure.ac: cleanups
authored
300 AC_MSG_WARN([
815d5ad @djcb * don't try to use guile if it's pre-2.x; but add some beginning compat
authored
301 *** Developers: you do not seem to have the pmccabe tool installed.
148db5a @djcb * configure.ac: cleanups
authored
302 *** Please install it if you want to run the automated code checks])
815d5ad @djcb * don't try to use guile if it's pre-2.x; but add some beginning compat
authored
303 ],[have_pmccabe="yes"])
0446ec3 @djcb * add some documentation infrastructure
authored
304 ###############################################################################
8c372f9 @djcb * configure.ac: use gtk+ 2.x unless there is an explicit --with-gtk3.…
authored
305
628d154 @djcb * minor / cosmetic changes
authored
306
696f086 @djcb * update configure.ac (using autoupdate)
authored
307 AC_CONFIG_FILES([
2b0aca1 @djcb * initial import of mu - the next generation
authored
308 Makefile
46f10cf @djcb * refactoring: split src/ into mu/ and lib/
authored
309 mu/Makefile
310 mu/tests/Makefile
311 lib/Makefile
312 lib/tests/Makefile
dc62bd6 @djcb * rename emacs/ => mu4e/
authored
313 mu4e/Makefile
314 mu4e/mu4e-meta.el
315 mu4e/version.texi
8b39c69 @djcb * some code re-arrangement: src/guile-> guile, toys/mm -> emacs
authored
316 guile/Makefile
317 guile/mu/Makefile
0446ec3 @djcb * add some documentation infrastructure
authored
318 guile/examples/Makefile
93c46dd @djcb * prepare for guile/tests
authored
319 guile/tests/Makefile
45c95b0 @djcb * move mug/ to toys/mug
authored
320 toys/Makefile
321 toys/mug/Makefile
bd7a5d6 @djcb * add little msg2pdf toy, to convert messages to pdfs, uses webkit (WIP)
authored
322 toys/msg2pdf/Makefile
90c9b61 @djcb * update configuration files
authored
323 man/Makefile
cbeb229 @djcb * configure.ac: add missing m4/Makefile
authored
324 m4/Makefile
37b0ea3 @djcb * small updates
authored
325 contrib/Makefile
2b0aca1 @djcb * initial import of mu - the next generation
authored
326 ])
696f086 @djcb * update configure.ac (using autoupdate)
authored
327 AC_OUTPUT
2b0aca1 @djcb * initial import of mu - the next generation
authored
328
b669feb @djcb * configure.ac: check for readline
authored
329 echo
826aeb6 @djcb * Makefile.am, configure.ac: clear up the pmccabe stuff a bit
authored
330 echo "mu configuration is complete."
aa8c86a @djcb * configure.ac: report on whether we are building mug2
authored
331 echo "------------------------------------------------"
826aeb6 @djcb * Makefile.am, configure.ac: clear up the pmccabe stuff a bit
authored
332
148db5a @djcb * configure.ac: cleanups
authored
333 if test -e ~/.mu/xapian-0.6; then
334 echo "Note: since version 0.7, the Xapian database is no longer stored as "
335 echo "~/.mu/xapian-0.6 but instead simply as ~/.mu/xapian. You can "
336 echo "remove the old <muhome>/xapian-0.6 directory to save some disk space"
337 fi
338
daa4e01 @djcb * bump version to 0.9.9-dev1
authored
339 echo "mu version : $VERSION"
340 echo
148db5a @djcb * configure.ac: cleanups
authored
341 echo "Xapian version : $xapian_version"
b669feb @djcb * configure.ac: check for readline
authored
342 echo "GLib version : $glib_version"
6d2cc60 @djcb * Makefile.am/configure.ac: some changes to make Solaris a bit happier
authored
343 echo "GMime version : $gmime_version"
3115443 @djcb * configure.ac: check for webkit
authored
344
fa23a29 @djcb * configure.ac: warn user that mug2 won't work with gtk3
authored
345 if test "x$buildgui" = "xyes"; then
6d2cc60 @djcb * Makefile.am/configure.ac: some changes to make Solaris a bit happier
authored
346 echo "GTK+ version : $gtk_version"
347 fi
348
623ec34 @djcb * improvements in attachment / mime-part handling:
authored
349 if test "x$have_gio" = "xyes"; then
350 echo "GIO version : $gio_version"
351 fi
352
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
353 if test "x$build_webkit" = "xyes"; then
3115443 @djcb * configure.ac: check for webkit
authored
354 echo "Webkit version : $webkit_version"
355 fi
356
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disabl…
authored
357 if test "x$build_guile" = "xyes"; then
9d6d33b * fix 'make distcheck' for guile/, require guile version 2.0
djcb authored
358 echo "Guile version : $guile_version"
0b7693d @djcb * guilify mu; first steps, and a new toy called 'muile'
authored
359 fi
360
74ce489 @djcb * configure.ac/Makefile.am: require specific emacs version (23+)
authored
361 if test "x$build_mu4e" = "xyes"; then
362 echo "Emacs version : $emacs_version"
363 fi
364
6d2cc60 @djcb * Makefile.am/configure.ac: some changes to make Solaris a bit happier
authored
365 echo
74ce489 @djcb * configure.ac/Makefile.am: require specific emacs version (23+)
authored
366 echo "Build mu4e emacs frontend : $build_mu4e"
2be6b04 @djcb * mu: build crypto support maybe (depends on gmime 2.6)
authored
367 echo "Build crypto support (gmime >= 2.6) : $have_gmime_26"
2fcdcaf @djcb * move widgets/ -> toys/mug2; remove toys/mug; rename toys/mug2 -> to…
authored
368 echo "Build 'mug' toy-ui (gtk+/webkit) : $buildgui"
8b70e6b @djcb * configure.ac: unbreak McCabe tool checking
authored
369 echo "McCabe's Cyclomatic Complexity tool : $have_pmccabe"
d14727c @djcb * dont't require direntry->d_type; this should help the Solaris build.
authored
370 echo
371
b669feb @djcb * configure.ac: check for readline
authored
372 echo "Have direntry->d_ino : $use_dirent_d_ino"
373 echo "Have direntry->d_type : $use_dirent_d_type"
aa8c86a @djcb * configure.ac: report on whether we are building mug2
authored
374 echo "------------------------------------------------"
fa23a29 @djcb * configure.ac: warn user that mug2 won't work with gtk3
authored
375 echo
376
159d26e @djcb * configure.ac: add warning if makeinfo is missing
authored
377 if test "x$have_makeinfo" != "xyes"; then
378 echo "You do not seem to have the makeinfo program; if you are building from git"
379 echo "you need that to create documentation for guile and emacs. It is in the"
380 echo "texinfo package in debian/ubuntu (ie., apt-get install texinfo)"
381 fi
382
383
fa23a29 @djcb * configure.ac: warn user that mug2 won't work with gtk3
authored
384 if test "x$buildgui" = "xyes"; then
159d26e @djcb * configure.ac: add warning if makeinfo is missing
authored
385 echo "The demo UIs are in toys/mug and toys/mug2"
fa23a29 @djcb * configure.ac: warn user that mug2 won't work with gtk3
authored
386 if test "x$gui" = "xgtk3"; then
387 echo "Note that mug2 will *not* work with gtk+3, because it depends"
388 echo "on libraries that use gtk+2, and the two can't be in one process"
389 fi
390 fi
391
79eb1af @djcb * make muile work for mu 1.8 (and before?) to some extent...
authored
392 if test "x$GUILE_MAJOR_VERSION" = "x1"; then
393 echo
394 echo "NOTE: If you have troubles with linking the guile-related stuff, it"
395 echo "might help to move .la-files out of the way"
396 echo
397 echo "See e.g: http://blog.flameeyes.eu/2008/04/14/what-about-those-la-files"
398 fi
6f48dbe @djcb * configure.ac, mu-maildir.c: some compatibility updates
authored
399
525b99f @djcb * configure.ac: configuration fixes; set database layout version
authored
400 echo
74ce489 @djcb * configure.ac/Makefile.am: require specific emacs version (23+)
authored
401 echo "Now, type 'make' to build mu."
402 echo
403 echo "If unit tests are built (see above), you can run 'make check'"
404 echo "for some basic testing of mu functionality."
Something went wrong with that request. Please try again.