Statistics
| Revision:

root / configure.in @ 2072

History | View | Annotate | Download (12.6 kB)

1 1 hiro
dnl Process this file with autoconf to produce a configure script.
2 1 hiro
AC_PREREQ(2.50)
3 1 hiro
AC_INIT(src/main.c)
4 1 hiro
PACKAGE=sylpheed
5 1 hiro
6 1 hiro
dnl version number
7 324 hiro
MAJOR_VERSION=2
8 2038 hiro
MINOR_VERSION=6
9 1960 hiro
MICRO_VERSION=0
10 1 hiro
INTERFACE_AGE=0
11 1 hiro
BINARY_AGE=0
12 2066 hiro
EXTRA_VERSION=beta2
13 1116 hiro
BUILD_REVISION=0
14 1 hiro
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
15 1 hiro
16 1 hiro
dnl set $target
17 1 hiro
AC_CANONICAL_SYSTEM
18 1 hiro
19 1 hiro
dnl
20 1 hiro
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
21 1 hiro
dnl AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
22 1 hiro
dnl AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
23 1 hiro
AC_SUBST(PACKAGE)
24 1 hiro
AC_SUBST(VERSION)
25 1116 hiro
AC_SUBST(MAJOR_VERSION)
26 1116 hiro
AC_SUBST(MINOR_VERSION)
27 1116 hiro
AC_SUBST(MICRO_VERSION)
28 1116 hiro
AC_SUBST(BUILD_REVISION)
29 1 hiro
30 1 hiro
dnl libtool versioning
31 1 hiro
LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
32 1 hiro
LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
33 1 hiro
LT_REVISION=$INTERFACE_AGE
34 1 hiro
LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
35 1 hiro
AC_SUBST(LT_RELEASE)
36 1 hiro
AC_SUBST(LT_CURRENT)
37 1 hiro
AC_SUBST(LT_REVISION)
38 1 hiro
AC_SUBST(LT_AGE)
39 1 hiro
40 1 hiro
dnl Specify a header configuration file
41 1 hiro
AM_CONFIG_HEADER(config.h)
42 1 hiro
43 1 hiro
AM_MAINTAINER_MODE
44 1 hiro
45 1 hiro
dnl Checks for programs.
46 1 hiro
dnl AC_ARG_PROGRAM
47 1 hiro
AC_PROG_CC
48 1 hiro
AC_ISC_POSIX
49 1 hiro
AM_PROG_CC_STDC
50 1 hiro
AC_PROG_INSTALL
51 1 hiro
AC_PROG_LN_S
52 1 hiro
AC_PROG_MAKE_SET
53 1 hiro
AC_PROG_CPP
54 1 hiro
dnl AC_PROG_RANLIB
55 1 hiro
AM_PROG_LEX
56 1 hiro
AC_PROG_YACC
57 1 hiro
AM_PROG_LIBTOOL
58 1 hiro
59 1 hiro
SYLPHEED_ACLOCAL_INCLUDE(ac)
60 1 hiro
61 621 hiro
native_win32=no
62 621 hiro
63 1 hiro
case "$target" in
64 1 hiro
*-darwin*)
65 200 hiro
	CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
66 1 hiro
	;;
67 466 hiro
*-*-mingw*)
68 621 hiro
	native_win32=yes
69 631 hiro
	CFLAGS="$CFLAGS -mms-bitfields -mwindows"
70 472 hiro
	LIBS="$LIBS -lws2_32"
71 1946 hiro
	AC_CHECK_PROG(WINDRES, windres, windres)
72 466 hiro
	;;
73 1 hiro
esac
74 1 hiro
75 1946 hiro
AM_CONDITIONAL(NATIVE_WIN32, test "$native_win32" = "yes")
76 1946 hiro
77 137 hiro
dnl Checks for libraries.
78 137 hiro
AM_PATH_GLIB_2_0(2.4.0,, AC_MSG_ERROR(Test for GLib failed. See the 'INSTALL' for help.))
79 137 hiro
80 137 hiro
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
81 137 hiro
82 137 hiro
AM_PATH_GTK_2_0(2.4.0,, AC_MSG_ERROR(Test for Gtk failed. See the 'INSTALL' for help.))
83 137 hiro
84 137 hiro
dnl --disable-deprecated switch for GTK2 purification
85 149 hiro
AC_ARG_ENABLE(deprecated, [  --disable-deprecated    Disable deprecated GTK functions. ],
86 137 hiro
			  [GTK_CFLAGS="$GTK_CFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"], [])
87 137 hiro
88 137 hiro
AC_SUBST(GTK_CFLAGS)
89 137 hiro
AC_SUBST(GTK_LIBS)
90 137 hiro
91 1 hiro
dnl checks for iconv
92 1 hiro
AM_ICONV
93 1 hiro
94 1 hiro
AC_CHECK_FUNCS(bind_textdomain_codeset)
95 1 hiro
96 1 hiro
dnl for gettext
97 1570 hiro
ALL_LINGUAS="be bg cs da de el es et fr gl hr hu it ja ko lt nl pl pt_BR ro ru sk sl sr sv tr uk vi zh_CN zh_TW"
98 1 hiro
GETTEXT_PACKAGE=sylpheed
99 1 hiro
AC_SUBST(GETTEXT_PACKAGE)
100 1 hiro
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define text domain.])
101 93 hiro
102 93 hiro
AM_GLIB_GNU_GETTEXT
103 93 hiro
dnl AM_GNU_GETTEXT
104 1 hiro
dnl AC_CHECK_FUNC(gettext, AC_CHECK_LIB(intl, gettext))
105 585 hiro
106 585 hiro
if test "x$DATADIRNAME" != "x"; then
107 585 hiro
	localedir='${prefix}/${DATADIRNAME}/locale'
108 585 hiro
else
109 585 hiro
	localedir='${datadir}/locale'
110 585 hiro
fi
111 490 hiro
AC_ARG_WITH(localedir,
112 490 hiro
	[  --with-localedir=DIR    Locale directory],
113 490 hiro
	[localedir="$withval"])
114 1 hiro
AC_SUBST(localedir)
115 1 hiro
116 558 hiro
manualdir='${datadir}/${PACKAGE}/manual'
117 490 hiro
AC_ARG_WITH(manualdir,
118 490 hiro
	[  --with-manualdir=DIR    Manual directory],
119 490 hiro
	[manualdir="$withval"])
120 1 hiro
AC_SUBST(manualdir)
121 490 hiro
122 558 hiro
faqdir='${datadir}/${PACKAGE}/faq'
123 490 hiro
AC_ARG_WITH(faqdir,
124 490 hiro
	[  --with-faqdir=DIR       FAQ directory],
125 490 hiro
	[faqdir="$withval"])
126 1 hiro
AC_SUBST(faqdir)
127 1 hiro
128 1 hiro
dnl GPGME is used to support OpenPGP
129 1 hiro
AC_ARG_ENABLE(gpgme,
130 355 hiro
	[  --disable-gpgme         Disable GnuPG support using GPGME],
131 355 hiro
	[ac_cv_enable_gpgme=$enableval], [ac_cv_enable_gpgme=yes])
132 1 hiro
AC_MSG_CHECKING([whether to use GPGME])
133 1 hiro
if test $ac_cv_enable_gpgme = yes; then
134 1 hiro
	AC_MSG_RESULT(yes)
135 2006 hiro
	AM_PATH_GPGME(1.0.0, AC_DEFINE(USE_GPGME, 1, Define if you use GPGME to support OpenPGP.),
136 1 hiro
		      [use_gpgme=no
137 1 hiro
		       ac_cv_enable_gpgme=no])
138 1 hiro
else
139 1 hiro
	AC_MSG_RESULT(no)
140 1 hiro
fi
141 1 hiro
142 1 hiro
dnl for JPilot support in addressbook
143 1 hiro
dnl no check for libraries; these are dynamically loaded
144 1 hiro
AC_ARG_ENABLE(jpilot,
145 355 hiro
	[  --enable-jpilot         Enable JPilot support [[default=no]]],
146 1 hiro
	[ac_cv_enable_jpilot=$enableval], [ac_cv_enable_jpilot=no])
147 1 hiro
AC_MSG_CHECKING([whether to use JPilot])
148 1 hiro
if test "$ac_cv_enable_jpilot" = yes; then
149 1 hiro
	AC_MSG_RESULT(yes)
150 1 hiro
	AC_CHECK_HEADERS(pi-args.h pi-appinfo.h pi-address.h,
151 1 hiro
			 [ AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.) ],
152 1 hiro
			 [ ac_cv_enable_jpilot=no ])
153 1 hiro
	if test "$ac_cv_enable_jpilot" = no; then
154 1 hiro
		AC_CHECK_HEADERS(libpisock/pi-args.h libpisock/pi-appinfo.h libpisock/pi-address.h,
155 1 hiro
				 [ ac_cv_enable_jpilot=yes
156 1 hiro
				   AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.) ])
157 1 hiro
	fi
158 1 hiro
	AC_MSG_CHECKING([whether jpilot is available])
159 1 hiro
	AC_MSG_RESULT($ac_cv_enable_jpilot)
160 1 hiro
161 1 hiro
	if test "$ac_cv_enable_jpilot" = yes; then
162 1 hiro
		LIBS="$LIBS -lpisock"
163 1 hiro
	fi
164 1 hiro
else
165 1 hiro
	AC_MSG_RESULT(no)
166 1 hiro
fi
167 1 hiro
168 1 hiro
dnl for LDAP support in addressbook
169 1 hiro
dnl no check for libraries; dynamically loaded
170 1 hiro
AC_ARG_ENABLE(ldap,
171 355 hiro
	[  --enable-ldap           Enable LDAP support [[default=no]]],
172 1 hiro
	[ac_cv_enable_ldap=$enableval], [ac_cv_enable_ldap=no])
173 1 hiro
AC_MSG_CHECKING([whether to use LDAP])
174 1 hiro
if test "$ac_cv_enable_ldap" = yes; then
175 1 hiro
	AC_MSG_RESULT(yes)
176 1 hiro
177 1 hiro
	dnl check for available libraries, and pull them in
178 1 hiro
	AC_CHECK_LIB(resolv, res_query, LDAP_LIBS="$LDAP_LIBS -lresolv")
179 1 hiro
	AC_CHECK_LIB(socket, bind, LDAP_LIBS="$LDAP_LIBS -lsocket")
180 1 hiro
	AC_CHECK_LIB(nsl, gethostbyaddr, LDAP_LIBS="$LDAP_LIBS -lnsl")
181 1 hiro
	AC_CHECK_LIB(lber, ber_get_tag, LDAP_LIBS="$LDAP_LIBS -llber",,
182 1 hiro
		     $LDAP_LIBS)
183 1 hiro
184 1 hiro
	dnl we need libpthread for sylpheed ldap,  until we find
185 1 hiro
	dnl a better way to handle ldap requests asynchronously...
186 1 hiro
	AC_CHECK_LIB(pthread, pthread_create, LDAP_LIBS="$LDAP_LIBS -lpthread")
187 1 hiro
188 1 hiro
	AC_CHECK_HEADERS(ldap.h lber.h pthread.h,
189 1 hiro
			 [ ac_cv_enable_ldap=yes ],
190 1 hiro
			 [ ac_cv_enable_ldap=no ])
191 1 hiro
192 1 hiro
	if test "$ac_cv_enable_ldap" = yes; then
193 1 hiro
		AC_CHECK_LIB(ldap, ldap_open,
194 1 hiro
			     [ ac_cv_enable_ldap=yes ],
195 1 hiro
			     [ ac_cv_enable_ldap=no ],
196 1 hiro
			     $LDAP_LIBS)
197 1 hiro
	fi
198 1 hiro
199 1 hiro
	AC_MSG_CHECKING([whether ldap library is available])
200 1 hiro
	AC_MSG_RESULT($ac_cv_enable_ldap)
201 1 hiro
202 1 hiro
	if test "$ac_cv_enable_ldap" = yes; then
203 138 hiro
		CFLAGS="$CFLAGS `$PKG_CONFIG --cflags gthread-2.0`"
204 138 hiro
		LDAP_LIBS="$LDAP_LIBS -lldap `$PKG_CONFIG --libs gthread-2.0`"
205 1 hiro
		AC_DEFINE(USE_LDAP, 1, Define if you want LDAP support in addressbook.)
206 1 hiro
		AC_SUBST(LDAP_LIBS)
207 1 hiro
	fi
208 1 hiro
else
209 1 hiro
	AC_MSG_RESULT(no)
210 1 hiro
fi
211 1 hiro
212 1 hiro
dnl Check for OpenSSL
213 1 hiro
AC_ARG_ENABLE(ssl,
214 355 hiro
	[  --disable-ssl           Disable SSL support using OpenSSL],
215 355 hiro
	[ac_cv_enable_ssl=$enableval], [ac_cv_enable_ssl=yes])
216 1 hiro
AC_MSG_CHECKING([whether to use OpenSSL])
217 1 hiro
if test $ac_cv_enable_ssl = yes; then
218 1 hiro
	AC_MSG_RESULT(yes)
219 355 hiro
	dnl First check with pkg-config
220 355 hiro
	PKG_CHECK_MODULES(OPENSSL, openssl, [:], [:])
221 355 hiro
	if test "x$OPENSSL_LIBS" != "x"; then
222 355 hiro
		CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
223 355 hiro
		LIBS="$LIBS $OPENSSL_LIBS"
224 355 hiro
		AC_MSG_CHECKING([if openssl is available])
225 355 hiro
		AC_MSG_RESULT(yes)
226 355 hiro
		AC_DEFINE(USE_SSL, 1, Define if you use OpenSSL to support SSL.)
227 355 hiro
	else
228 355 hiro
		dnl If pkg-config fails, run compile/link test.
229 355 hiro
		AC_MSG_CHECKING([if openssl is available])
230 1114 hiro
		ac_save_LIBS="$LIBS"
231 621 hiro
		if test "$native_win32" = yes; then
232 621 hiro
			LIBS="$LIBS -lssl32 -leay32"
233 621 hiro
		else
234 621 hiro
			LIBS="$LIBS -lssl -lcrypto"
235 621 hiro
		fi
236 355 hiro
		AC_TRY_LINK([
237 1 hiro
#include <openssl/opensslv.h>
238 355 hiro
],		[ return OPENSSL_VERSION_NUMBER; ],
239 355 hiro
		[ AC_MSG_RESULT(yes)
240 355 hiro
		  AC_DEFINE(USE_SSL, 1, Define if you use OpenSSL to support SSL.) ],
241 355 hiro
		[ AC_MSG_RESULT(no)
242 355 hiro
		  LIBS="$ac_save_LIBS"
243 355 hiro
		  ac_cv_enable_ssl=no ])
244 355 hiro
	fi
245 1 hiro
else
246 1 hiro
	AC_MSG_RESULT(no)
247 1 hiro
fi
248 1 hiro
249 1 hiro
dnl Check for X-Face support
250 1 hiro
AC_ARG_ENABLE(compface,
251 1 hiro
	[  --disable-compface      Do not use compface (X-Face)],
252 1 hiro
	[ac_cv_enable_compface=$enableval], [ac_cv_enable_compface=yes])
253 1 hiro
if test "$ac_cv_enable_compface" = yes; then
254 1 hiro
	AC_CHECK_LIB(compface, uncompface,,[ac_cv_enable_compface=no])
255 1 hiro
fi
256 1 hiro
257 754 hiro
dnl Check for GtkSpell support
258 754 hiro
AC_MSG_CHECKING([whether to use GtkSpell])
259 754 hiro
AC_ARG_ENABLE(gtkspell,
260 1010 hiro
	[  --disable-gtkspell      Do not use GtkSpell in editor],
261 1010 hiro
	[ac_cv_enable_gtkspell=$enableval], [ac_cv_enable_gtkspell=yes])
262 754 hiro
if test "$ac_cv_enable_gtkspell" = yes; then
263 754 hiro
	AC_MSG_RESULT(yes)
264 754 hiro
	AC_MSG_CHECKING([whether GtkSpell is available])
265 754 hiro
	if $PKG_CONFIG gtkspell-2.0 ; then
266 754 hiro
		AC_MSG_RESULT(yes)
267 754 hiro
		CFLAGS="$CFLAGS `$PKG_CONFIG --cflags gtkspell-2.0`"
268 754 hiro
		LIBS="$LIBS `$PKG_CONFIG --libs gtkspell-2.0`"
269 2022 hiro
		if $PKG_CONFIG --atleast-version 2.0.13 gtkspell-2.0 ; then
270 2022 hiro
			AC_DEFINE(USE_ENCHANT, 1, Use Enchant with GtkSpell)
271 2022 hiro
		elif $PKG_CONFIG --atleast-version 2.0.12 gtkspell-2.0 ; then
272 2022 hiro
			LIBS="$LIBS -laspell"
273 2022 hiro
		fi
274 754 hiro
		AC_DEFINE(USE_GTKSPELL, 1, Use GtkSpell in editor)
275 754 hiro
	else
276 754 hiro
		AC_MSG_RESULT(no)
277 755 hiro
		ac_cv_enable_gtkspell=no
278 754 hiro
	fi
279 754 hiro
else
280 754 hiro
	AC_MSG_RESULT(no)
281 754 hiro
fi
282 754 hiro
283 1113 hiro
dnl Check for Oniguruma support in message filtering
284 1113 hiro
AC_ARG_ENABLE(oniguruma,
285 1113 hiro
	[  --enable-oniguruma      Use Oniguruma instead of system's regex [[default=no]]],
286 1113 hiro
	[ac_cv_enable_oniguruma=$enableval], [ac_cv_enable_oniguruma=no])
287 1113 hiro
AC_MSG_CHECKING([whether to use Oniguruma])
288 1113 hiro
if test "$ac_cv_enable_oniguruma" = yes; then
289 1113 hiro
	AC_MSG_RESULT(yes)
290 1118 hiro
	AC_MSG_CHECKING([whether Oniguruma is available])
291 1118 hiro
        dnl AC_CHECK_PROG(ONIG_CONFIG, onig-config, onig-config)
292 1118 hiro
	ONIG_CONFIG=onig-config
293 1119 hiro
	ONIG_VERSION=`$ONIG_CONFIG --version 2>/dev/null`
294 1119 hiro
	if test "x$ONIG_VERSION" != "x"; then
295 1118 hiro
		AC_MSG_RESULT(yes)
296 1118 hiro
		CFLAGS="$CFLAGS `$ONIG_CONFIG --cflags`"
297 1118 hiro
		LIBS="$LIBS `$ONIG_CONFIG --libs`"
298 1118 hiro
		AC_DEFINE(USE_ONIGURUMA, 1, Define if you want to use Oniguruma.)
299 1118 hiro
	else
300 1118 hiro
		AC_MSG_RESULT(no)
301 1118 hiro
		ac_cv_enable_oniguruma=no
302 1113 hiro
	fi
303 1113 hiro
else
304 1113 hiro
	AC_MSG_RESULT(no)
305 1113 hiro
fi
306 1113 hiro
307 1463 hiro
dnl check additional libraries
308 1 hiro
AC_CHECK_LIB(xpg4, setlocale)
309 1463 hiro
AC_CHECK_LIB(resolv, res_init)
310 1463 hiro
AC_CHECK_LIB(socket, bind)
311 1463 hiro
AC_CHECK_LIB(nsl, gethostbyname)
312 1 hiro
313 1 hiro
dnl for GThread support (currently disabled)
314 1 hiro
dnl AC_ARG_ENABLE(threads,
315 355 hiro
dnl	[  --enable-threads        Enable multithread support [[default=no]]],
316 1 hiro
dnl	[use_threads=$enableval], [use_threads=no])
317 1 hiro
318 1 hiro
AC_MSG_CHECKING([whether to use threads])
319 1 hiro
if test x"$use_threads" = xyes ; then
320 1 hiro
	AC_MSG_RESULT(yes)
321 138 hiro
	if test ! -z `$PKG_CONFIG --help 2>&1 |grep 'gthread-2.0'` ; then
322 138 hiro
		CFLAGS="$CFLAGS `$PKG_CONFIG --cflags gthread-2.0`"
323 138 hiro
		LIBS="$LIBS `$PKG_CONFIG --libs gthread-2.0`"
324 1 hiro
		AC_DEFINE(USE_THREADS, 1, Whether to use multithread or not)
325 1 hiro
	else
326 1 hiro
		AC_MSG_ERROR([Sylpheed requires GThread from GLib to use threading.])
327 1 hiro
	fi
328 1 hiro
else
329 1 hiro
	AC_MSG_RESULT(no)
330 1 hiro
fi
331 1 hiro
332 1 hiro
dnl check for IPv6 option
333 1 hiro
AC_ARG_ENABLE(ipv6,
334 1 hiro
	[  --disable-ipv6          Disable IPv6 support],
335 1 hiro
	[ac_cv_enable_ipv6=$enableval], [ac_cv_enable_ipv6=yes])
336 1 hiro
337 1 hiro
dnl automated checks for IPv6 support.
338 1 hiro
AC_MSG_CHECKING([whether to use IPv6])
339 1 hiro
if test x"$ac_cv_enable_ipv6" = xyes; then
340 1 hiro
	AC_MSG_RESULT(yes)
341 1 hiro
	AC_MSG_CHECKING([for IPv6 support])
342 932 hiro
	if test "$native_win32" = yes; then
343 932 hiro
		AC_CACHE_VAL(ac_cv_ipv6,[
344 932 hiro
			AC_TRY_COMPILE([#define INET6
345 932 hiro
					#include <sys/types.h>
346 932 hiro
					#include <winsock2.h>
347 932 hiro
					#include <ws2tcpip.h>],
348 932 hiro
				[int x = IPPROTO_IPV6; struct in6_addr a;],
349 932 hiro
				ac_cv_ipv6=yes, ac_cv_ipv6=no)
350 932 hiro
		])
351 932 hiro
	else
352 932 hiro
		AC_CACHE_VAL(ac_cv_ipv6,[
353 932 hiro
			AC_TRY_COMPILE([#define INET6
354 932 hiro
					#include <sys/types.h>
355 932 hiro
					#include <netinet/in.h>],
356 932 hiro
				[int x = IPPROTO_IPV6; struct in6_addr a;],
357 932 hiro
				ac_cv_ipv6=yes, ac_cv_ipv6=no)
358 932 hiro
		])
359 932 hiro
	fi
360 1 hiro
	AC_MSG_RESULT($ac_cv_ipv6)
361 1 hiro
	if test $ac_cv_ipv6 = yes; then
362 1 hiro
		AC_DEFINE(INET6, 1, Define if you want IPv6 support.)
363 1 hiro
	else
364 1 hiro
		AC_MSG_WARN(*** IPv6 will not be supported ***)
365 1 hiro
		ac_cv_enable_ipv6=no
366 1 hiro
	fi
367 1 hiro
else
368 1 hiro
	AC_MSG_RESULT(no)
369 1 hiro
fi
370 1 hiro
371 1 hiro
dnl Check for d_type member in struct dirent
372 1 hiro
AC_MSG_CHECKING([whether struct dirent has d_type member])
373 1 hiro
AC_CACHE_VAL(ac_cv_dirent_d_type,[
374 1 hiro
	AC_TRY_COMPILE([#include <dirent.h>],
375 1 hiro
		       [struct dirent d; d.d_type = DT_REG;],
376 1 hiro
		       ac_cv_dirent_d_type=yes, ac_cv_dirent_d_type=no)
377 1 hiro
])
378 1 hiro
AC_MSG_RESULT($ac_cv_dirent_d_type)
379 1 hiro
if test $ac_cv_dirent_d_type = yes; then
380 1 hiro
	AC_DEFINE(HAVE_DIRENT_D_TYPE, 1,
381 1 hiro
		  Define if `struct dirent' has `d_type' member.)
382 1 hiro
fi
383 1 hiro
384 1 hiro
385 1 hiro
dnl Checks for header files.
386 1 hiro
AC_HEADER_DIRENT
387 1 hiro
AC_HEADER_STDC
388 1 hiro
AC_HEADER_SYS_WAIT
389 1 hiro
AC_CHECK_HEADERS(fcntl.h sys/file.h unistd.h paths.h \
390 1 hiro
		 sys/param.h sys/utsname.h sys/select.h \
391 733 hiro
		 netdb.h regex.h sys/mman.h)
392 1 hiro
393 1 hiro
dnl Checks for typedefs, structures, and compiler characteristics.
394 1 hiro
AC_C_CONST
395 1 hiro
AC_TYPE_OFF_T
396 1 hiro
AC_TYPE_PID_T
397 1 hiro
AC_TYPE_SIZE_T
398 1 hiro
AC_STRUCT_TM
399 1 hiro
400 56 hiro
AC_SYS_LARGEFILE
401 56 hiro
AC_FUNC_FSEEKO
402 56 hiro
403 1 hiro
GNUPG_CHECK_TYPEDEF(u32, HAVE_U32_TYPEDEF, Used to test for a u32 typedef)
404 1 hiro
AC_CHECK_SIZEOF(unsigned short, 2)
405 1 hiro
AC_CHECK_SIZEOF(unsigned int, 4)
406 1 hiro
AC_CHECK_SIZEOF(unsigned long, 4)
407 1 hiro
408 1 hiro
dnl Checks for library functions.
409 1 hiro
AC_FUNC_ALLOCA
410 1 hiro
AC_CHECK_FUNCS(gethostname mkdir mktime socket strstr strchr \
411 1 hiro
	       uname flock lockf inet_aton inet_addr \
412 733 hiro
	       fchmod truncate getuid regcomp mlock)
413 1 hiro
414 1 hiro
AC_OUTPUT([
415 1 hiro
Makefile
416 1 hiro
sylpheed.spec
417 1 hiro
ac/Makefile
418 528 hiro
libsylph/Makefile
419 1 hiro
src/version.h
420 1115 hiro
src/sylpheed.rc
421 1 hiro
src/Makefile
422 491 hiro
src/icons/Makefile
423 528 hiro
po/Makefile.in
424 1 hiro
faq/Makefile
425 1 hiro
faq/de/Makefile
426 1 hiro
faq/en/Makefile
427 1 hiro
faq/es/Makefile
428 1 hiro
faq/fr/Makefile
429 1 hiro
faq/it/Makefile
430 1 hiro
manual/Makefile
431 1 hiro
manual/en/Makefile
432 1 hiro
manual/ja/Makefile
433 1 hiro
])
434 1 hiro
435 1 hiro
dnl Output the configuration summary
436 1 hiro
echo ""
437 1 hiro
echo "$PACKAGE $VERSION"
438 1 hiro
echo ""
439 1 hiro
echo "GnuPG         : $ac_cv_enable_gpgme"
440 1 hiro
echo "JPilot        : $ac_cv_enable_jpilot"
441 1 hiro
echo "LDAP          : $ac_cv_enable_ldap"
442 1 hiro
echo "OpenSSL       : $ac_cv_enable_ssl"
443 1 hiro
echo "iconv         : $am_cv_func_iconv"
444 1 hiro
echo "compface      : $ac_cv_enable_compface"
445 1 hiro
echo "IPv6          : $ac_cv_enable_ipv6"
446 754 hiro
echo "GtkSpell      : $ac_cv_enable_gtkspell"
447 1113 hiro
echo "Oniguruma     : $ac_cv_enable_oniguruma"
448 1 hiro
echo ""
449 1 hiro
echo "The binary will be installed in $prefix/bin"
450 1 hiro
echo ""
451 1 hiro
echo "Configure finished, type 'make' to build."