1625
1628
CXXCPP C++ preprocessor
1626
1629
SSL_CFLAGS C compiler flags for SSL, overriding pkg-config
1627
1630
SSL_LIBS linker flags for SSL, overriding pkg-config
1632
C compiler flags for CLUCENE, overriding pkg-config
1634
linker flags for CLUCENE, overriding pkg-config
1629
1636
Use these variables to override the choices made by `configure' or to help
1630
1637
it to find libraries and programs with nonstandard names/locations.
2180
2187
} # ac_fn_c_check_header_mongrel
2189
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2190
# -------------------------------------------
2191
# Tests whether TYPE exists after having included INCLUDES, setting cache
2192
# variable VAR accordingly.
2193
ac_fn_c_check_type ()
2195
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2197
$as_echo_n "checking for $2... " >&6; }
2198
if eval \${$3+:} false; then :
2199
$as_echo_n "(cached) " >&6
2202
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203
/* end confdefs.h. */
2214
if ac_fn_c_try_compile "$LINENO"; then :
2215
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216
/* end confdefs.h. */
2227
if ac_fn_c_try_compile "$LINENO"; then :
2232
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2238
$as_echo "$ac_res" >&6; }
2239
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241
} # ac_fn_c_check_type
2182
2243
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2183
2244
# --------------------------------------------
2184
2245
# Tries to find the compile-time value of EXPR in a program that includes
2361
2422
as_fn_set_status $ac_retval
2363
2424
} # ac_fn_c_compute_int
2365
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2366
# -------------------------------------------
2367
# Tests whether TYPE exists after having included INCLUDES, setting cache
2368
# variable VAR accordingly.
2369
ac_fn_c_check_type ()
2371
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2373
$as_echo_n "checking for $2... " >&6; }
2374
if eval \${$3+:} false; then :
2375
$as_echo_n "(cached) " >&6
2378
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379
/* end confdefs.h. */
2390
if ac_fn_c_try_compile "$LINENO"; then :
2391
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392
/* end confdefs.h. */
2403
if ac_fn_c_try_compile "$LINENO"; then :
2408
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414
$as_echo "$ac_res" >&6; }
2415
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417
} # ac_fn_c_check_type
2418
2425
cat >config.log <<_ACEOF
2419
2426
This file contains any messages produced by compilers while
2420
2427
running configure, to aid debugging if configure makes a mistake.
2422
It was created by Dovecot $as_me 2.1.17, which was
2429
It was created by Dovecot $as_me 2.2.5, which was
2423
2430
generated by GNU Autoconf 2.69. Invocation command line was
3711
# Check whether --with-cdb was given.
3712
if test "${with_cdb+set}" = set; then :
3714
want=want_`echo cdb|sed s/-/_/g`
3715
if test $withval = yes || test $withval = no || test $withval = auto; then
3717
elif test $withval = plugin; then
3718
if test "" = plugin; then
3721
as_fn_error $? "--with-cdb=plugin not supported" "$LINENO" 5
3723
elif `echo $withval|grep '^/' >/dev/null`; then
3724
as_fn_error $? "--with-cdb=path not supported. You may want to use instead:
3725
CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-cdb" "$LINENO" 5
3727
as_fn_error $? "--with-cdb: Unknown value: $withval" "$LINENO" 5
3698
3736
# Check whether --with-sql was given.
3699
3737
if test "${with_sql+set}" = set; then :
3700
3738
withval=$with_sql;
18050
18088
$as_echo "#define DOVECOT_VERSION_MAJOR 2" >>confdefs.h
18053
$as_echo "#define DOVECOT_VERSION_MINOR 1" >>confdefs.h
18091
$as_echo "#define DOVECOT_VERSION_MINOR 2" >>confdefs.h
18056
18094
for ac_header in strings.h stdint.h unistd.h dirent.h malloc.h inttypes.h \
18057
18095
sys/uio.h sys/sysmacros.h sys/resource.h sys/select.h libgen.h \
18058
sys/quota.h sys/fs/ufs_quota.h ufs/ufs/quota.h jfs/quota.h sys/fs/quota_common.h \
18096
sys/quota.h sys/fs/ufs_quota.h ufs/ufs/quota.h jfs/quota.h \
18097
quota.h sys/fs/quota_common.h \
18059
18098
mntent.h sys/mnttab.h sys/event.h sys/time.h sys/mkdev.h linux/dqblk_xfs.h \
18060
18099
xfs/xqm.h execinfo.h ucontext.h malloc_np.h sys/utsname.h sys/vmount.h \
18061
sys/utsname.h glob.h linux/falloc.h ucred.h
18100
sys/utsname.h glob.h linux/falloc.h ucred.h sys/ucred.h
18063
18102
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18064
18103
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18083
18122
# -Wmissing-format-attribute -Wmissing-noreturn -Wwrite-strings # a couple of warnings
18084
18123
CFLAGS="$CFLAGS -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast"
18086
if test "$have_clang" != "yes"; then
18125
if test "$have_clang" = "yes"; then
18126
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18127
/* end confdefs.h. */
18129
#if __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 3)
18141
if ac_fn_c_try_compile "$LINENO"; then :
18145
# clang 3.3+ unfortunately this gives warnings with hash.h
18146
CFLAGS="$CFLAGS -Wno-duplicate-decl-specifier"
18149
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18087
18151
# This is simply to avoid warning when building strftime() wrappers..
18088
18152
CFLAGS="$CFLAGS -fno-builtin-strftime"
18476
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
18477
$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
18478
if ${ac_cv_lib_rt_clock_gettime+:} false; then :
18542
ac_fn_c_check_type "$LINENO" "struct sockpeercred" "ac_cv_type_struct_sockpeercred" "
18543
#include <sys/types.h>
18544
#include <sys/socket.h>
18547
if test "x$ac_cv_type_struct_sockpeercred" = xyes; then :
18549
cat >>confdefs.h <<_ACEOF
18550
#define HAVE_STRUCT_SOCKPEERCRED 1
18557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18558
$as_echo_n "checking for library containing clock_gettime... " >&6; }
18559
if ${ac_cv_search_clock_gettime+:} false; then :
18479
18560
$as_echo_n "(cached) " >&6
18481
ac_check_lib_save_LIBS=$LIBS
18562
ac_func_search_save_LIBS=$LIBS
18483
18563
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484
18564
/* end confdefs.h. */
18501
if ac_fn_c_try_link "$LINENO"; then :
18502
ac_cv_lib_rt_clock_gettime=yes
18581
for ac_lib in '' rt; do
18582
if test -z "$ac_lib"; then
18583
ac_res="none required"
18586
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18588
if ac_fn_c_try_link "$LINENO"; then :
18589
ac_cv_search_clock_gettime=$ac_res
18591
rm -f core conftest.err conftest.$ac_objext \
18593
if ${ac_cv_search_clock_gettime+:} false; then :
18597
if ${ac_cv_search_clock_gettime+:} false; then :
18504
ac_cv_lib_rt_clock_gettime=no
18506
rm -f core conftest.err conftest.$ac_objext \
18507
conftest$ac_exeext conftest.$ac_ext
18508
LIBS=$ac_check_lib_save_LIBS
18510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
18511
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
18512
if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
18600
ac_cv_search_clock_gettime=no
18602
rm conftest.$ac_ext
18603
LIBS=$ac_func_search_save_LIBS
18605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18606
$as_echo "$ac_cv_search_clock_gettime" >&6; }
18607
ac_res=$ac_cv_search_clock_gettime
18608
if test "$ac_res" != no; then :
18609
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18515
18612
$as_echo "#define HAVE_CLOCK_GETTIME /**/" >>confdefs.h
18618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
18619
$as_echo_n "checking for typeof... " >&6; }
18620
if ${i_cv_have_typeof+:} false; then :
18621
$as_echo_n "(cached) " >&6
18522
for ac_func in clock_gettime
18524
ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
18525
if test "x$ac_cv_func_clock_gettime" = xyes; then :
18526
cat >>confdefs.h <<_ACEOF
18527
#define HAVE_CLOCK_GETTIME 1
18624
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18625
/* end confdefs.h. */
18639
if ac_fn_c_try_compile "$LINENO"; then :
18641
i_cv_have_typeof=yes
18645
i_cv_have_typeof=no
18648
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_typeof" >&5
18652
$as_echo "$i_cv_have_typeof" >&6; }
18653
if test $i_cv_have_typeof = yes; then
18655
$as_echo "#define HAVE_TYPEOF /**/" >>confdefs.h
18537
18659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtoimax" >&5
18538
18660
$as_echo_n "checking for strtoimax... " >&6; }
23056
if test $want_cdb != no; then
23057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_init in -lcdb" >&5
23058
$as_echo_n "checking for cdb_init in -lcdb... " >&6; }
23059
if ${ac_cv_lib_cdb_cdb_init+:} false; then :
23060
$as_echo_n "(cached) " >&6
23062
ac_check_lib_save_LIBS=$LIBS
23064
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23065
/* end confdefs.h. */
23067
/* Override any GCC internal prototype to avoid an error.
23068
Use char because int might match the return type of a GCC
23069
builtin and then its argument prototype would still apply. */
23077
return cdb_init ();
23082
if ac_fn_c_try_link "$LINENO"; then :
23083
ac_cv_lib_cdb_cdb_init=yes
23085
ac_cv_lib_cdb_cdb_init=no
23087
rm -f core conftest.err conftest.$ac_objext \
23088
conftest$ac_exeext conftest.$ac_ext
23089
LIBS=$ac_check_lib_save_LIBS
23091
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_init" >&5
23092
$as_echo "$ac_cv_lib_cdb_cdb_init" >&6; }
23093
if test "x$ac_cv_lib_cdb_cdb_init" = xyes; then :
23095
ac_fn_c_check_header_mongrel "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
23096
if test "x$ac_cv_header_cdb_h" = xyes; then :
23098
DICT_LIBS="$DICT_LIBS -lcdb"
23100
$as_echo "#define BUILD_CDB /**/" >>confdefs.h
23105
if test $want_cdb = yes; then
23106
as_fn_error $? "Can't build with CDB support: cdb.h not found" "$LINENO" 5
23115
if test $want_cdb = yes; then
23116
as_fn_error $? "Can't build with CDB support: libcdb not found" "$LINENO" 5
22934
23123
if test $want_pgsql != no; then
22935
23124
# Extract the first word of "pg_config", so it can be a program name with args.
22936
23125
set dummy pg_config; ac_word=$2
24000
24182
if test "$want_shared_libs" = "yes"; then
24001
24183
LIBDOVECOT_DEPS='$(top_builddir)/src/lib-dovecot/libdovecot.la'
24002
LIBDOVECOT="$LIBDOVECOT_DEPS"
24003
LIBDOVECOT_STORAGE_DEPS='$(top_builddir)/src/lib-storage/libdovecot-storage.la'
24184
LIBDOVECOT="$LIBDOVECOT_DEPS \$(MODULE_LIBS)"
24185
LIBDOVECOT_STORAGE_DEPS='$(top_builddir)/src/lib-storage/libdovecot-storage.la $(top_builddir)/src/lib-imap-storage/libimap-storage.la'
24004
24186
LIBDOVECOT_LOGIN='$(top_builddir)/src/login-common/libdovecot-login.la'
24187
LIBDOVECOT_COMPRESS='$(top_builddir)/src/lib-compression/libcompression.la'
24005
24188
LIBDOVECOT_LDA='$(top_builddir)/src/lib-lda/libdovecot-lda.la'
24007
LIBDOVECOT_DEPS='$(top_builddir)/src/lib-master/libmaster.la $(top_builddir)/src/lib-settings/libsettings.la $(top_builddir)/src/lib-dict/libdict.la $(top_builddir)/src/lib-dns/libdns.la $(top_builddir)/src/lib-fs/libfs.la $(top_builddir)/src/lib-imap/libimap.la $(top_builddir)/src/lib-mail/libmail.la $(top_builddir)/src/lib-auth/libauth.la $(top_builddir)/src/lib-charset/libcharset.la $(top_builddir)/src/lib/liblib.la'
24008
LIBDOVECOT="$LIBDOVECOT_DEPS \$(LIBICONV)"
24009
LIBDOVECOT_STORAGE_LAST='$(top_builddir)/src/lib-storage/list/libstorage_list.la $(top_builddir)/src/lib-storage/index/libstorage_index.la $(top_builddir)/src/lib-storage/libstorage.la $(top_builddir)/src/lib-index/libindex.la'
24190
LIBDOVECOT_DEPS='$(top_builddir)/src/lib-master/libmaster.la $(top_builddir)/src/lib-settings/libsettings.la $(top_builddir)/src/lib-http/libhttp.la $(top_builddir)/src/lib-dict/libdict.la $(top_builddir)/src/lib-dns/libdns.la $(top_builddir)/src/lib-fs/libfs.la $(top_builddir)/src/lib-imap/libimap.la $(top_builddir)/src/lib-mail/libmail.la $(top_builddir)/src/lib-sasl/libsasl.la $(top_builddir)/src/lib-auth/libauth.la $(top_builddir)/src/lib-charset/libcharset.la $(top_builddir)/src/lib-ssl-iostream/libssl_iostream.la $(top_builddir)/src/lib-test/libtest.la $(top_builddir)/src/lib/liblib.la'
24191
LIBDOVECOT="$LIBDOVECOT_DEPS \$(LIBICONV) \$(MODULE_LIBS)"
24192
LIBDOVECOT_STORAGE_LAST='$(top_builddir)/src/lib-storage/list/libstorage_list.la $(top_builddir)/src/lib-storage/index/libstorage_index.la $(top_builddir)/src/lib-storage/libstorage.la $(top_builddir)/src/lib-index/libindex.la $(top_builddir)/src/lib-imap-storage/libimap-storage.la'
24010
24193
LIBDOVECOT_STORAGE_FIRST='$(top_builddir)/src/lib-storage/libstorage_service.la $(top_builddir)/src/lib-storage/register/libstorage_register.la'
24011
24194
LIBDOVECOT_STORAGE_DEPS="$LIBDOVECOT_STORAGE_FIRST $LINKED_STORAGE_LIBS $LIBDOVECOT_STORAGE_LAST"
24012
LIBDOVECOT_LOGIN='$(top_builddir)/src/login-common/liblogin.la $(top_builddir)/src/lib-ssl-iostream/libssl_iostream.la'
24195
LIBDOVECOT_LOGIN='$(top_builddir)/src/login-common/liblogin.la'
24196
LIBDOVECOT_COMPRESS='$(top_builddir)/src/lib-compression/libcompression.la'
24013
24197
LIBDOVECOT_LDA='$(top_builddir)/src/lib-lda/liblda.la'
24015
24199
LIBDOVECOT_STORAGE="$LIBDOVECOT_STORAGE_DEPS $LINKED_STORAGE_LDADD"
24401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing quota_open" >&5
24402
$as_echo_n "checking for library containing quota_open... " >&6; }
24403
if ${ac_cv_search_quota_open+:} false; then :
24404
$as_echo_n "(cached) " >&6
24406
ac_func_search_save_LIBS=$LIBS
24407
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24408
/* end confdefs.h. */
24410
/* Override any GCC internal prototype to avoid an error.
24411
Use char because int might match the return type of a GCC
24412
builtin and then its argument prototype would still apply. */
24416
char quota_open ();
24420
return quota_open ();
24425
for ac_lib in '' quota; do
24426
if test -z "$ac_lib"; then
24427
ac_res="none required"
24430
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24432
if ac_fn_c_try_link "$LINENO"; then :
24433
ac_cv_search_quota_open=$ac_res
24435
rm -f core conftest.err conftest.$ac_objext \
24437
if ${ac_cv_search_quota_open+:} false; then :
24441
if ${ac_cv_search_quota_open+:} false; then :
24444
ac_cv_search_quota_open=no
24446
rm conftest.$ac_ext
24447
LIBS=$ac_func_search_save_LIBS
24449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_quota_open" >&5
24450
$as_echo "$ac_cv_search_quota_open" >&6; }
24451
ac_res=$ac_cv_search_quota_open
24452
if test "$ac_res" != no; then :
24453
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24456
$as_echo "#define HAVE_QUOTA_OPEN /**/" >>confdefs.h
24458
QUOTA_LIBS="-lquota"
24232
24469
if test "$want_solr" != "no"; then
24233
# Extract the first word of "curl-config", so it can be a program name with args.
24234
set dummy curl-config; ac_word=$2
24235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24236
$as_echo_n "checking for $ac_word... " >&6; }
24237
if ${ac_cv_prog_CURLCONFIG+:} false; then :
24238
$as_echo_n "(cached) " >&6
24240
if test -n "$CURLCONFIG"; then
24241
ac_cv_prog_CURLCONFIG="$CURLCONFIG" # Let the user override the test.
24243
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24244
for as_dir in $PATH
24247
test -z "$as_dir" && as_dir=.
24248
for ac_exec_ext in '' $ac_executable_extensions; do
24249
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24250
ac_cv_prog_CURLCONFIG="curl-config"
24251
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24258
test -z "$ac_cv_prog_CURLCONFIG" && ac_cv_prog_CURLCONFIG="NO"
24261
CURLCONFIG=$ac_cv_prog_CURLCONFIG
24262
if test -n "$CURLCONFIG"; then
24263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLCONFIG" >&5
24264
$as_echo "$CURLCONFIG" >&6; }
24266
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24267
$as_echo "no" >&6; }
24271
if test $CURLCONFIG != NO; then
24272
CURL_CFLAGS=`$CURLCONFIG --cflags`
24273
CURL_LIBS=`$CURLCONFIG --libs`
24275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_Parse in -lexpat" >&5
24470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_Parse in -lexpat" >&5
24276
24471
$as_echo_n "checking for XML_Parse in -lexpat... " >&6; }
24277
24472
if ${ac_cv_lib_expat_XML_Parse+:} false; then :
24278
24473
$as_echo_n "(cached) " >&6
24310
24505
$as_echo "$ac_cv_lib_expat_XML_Parse" >&6; }
24311
24506
if test "x$ac_cv_lib_expat_XML_Parse" = xyes; then :
24313
ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
24508
ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
24314
24509
if test "x$ac_cv_header_expat_h" = xyes; then :
24323
if test $want_solr = yes; then
24324
as_fn_error $? "Can't build with Solr support: expat.h not found" "$LINENO" 5
24333
24516
if test $want_solr = yes; then
24334
as_fn_error $? "Can't build with Solr support: libexpat not found" "$LINENO" 5
24517
as_fn_error $? "Can't build with Solr support: expat.h not found" "$LINENO" 5
24340
24526
if test $want_solr = yes; then
24341
as_fn_error $? "Can't build with Solr support: curl-config not found" "$LINENO" 5
24527
as_fn_error $? "Can't build with Solr support: libexpat not found" "$LINENO" 5
24345
24533
if test "$have_solr" = "yes"; then
24346
24534
BUILD_SOLR_TRUE=
24354
24542
have_lucene=no
24355
24543
if test "$want_lucene" = "yes"; then
24546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLUCENE" >&5
24547
$as_echo_n "checking for CLUCENE... " >&6; }
24549
if test -n "$CLUCENE_CFLAGS"; then
24550
pkg_cv_CLUCENE_CFLAGS="$CLUCENE_CFLAGS"
24551
elif test -n "$PKG_CONFIG"; then
24552
if test -n "$PKG_CONFIG" && \
24553
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclucene-core\""; } >&5
24554
($PKG_CONFIG --exists --print-errors "libclucene-core") 2>&5
24556
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24557
test $ac_status = 0; }; then
24558
pkg_cv_CLUCENE_CFLAGS=`$PKG_CONFIG --cflags "libclucene-core" 2>/dev/null`
24559
test "x$?" != "x0" && pkg_failed=yes
24566
if test -n "$CLUCENE_LIBS"; then
24567
pkg_cv_CLUCENE_LIBS="$CLUCENE_LIBS"
24568
elif test -n "$PKG_CONFIG"; then
24569
if test -n "$PKG_CONFIG" && \
24570
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclucene-core\""; } >&5
24571
($PKG_CONFIG --exists --print-errors "libclucene-core") 2>&5
24573
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24574
test $ac_status = 0; }; then
24575
pkg_cv_CLUCENE_LIBS=`$PKG_CONFIG --libs "libclucene-core" 2>/dev/null`
24576
test "x$?" != "x0" && pkg_failed=yes
24586
if test $pkg_failed = yes; then
24587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24588
$as_echo "no" >&6; }
24590
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24591
_pkg_short_errors_supported=yes
24593
_pkg_short_errors_supported=no
24595
if test $_pkg_short_errors_supported = yes; then
24596
CLUCENE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libclucene-core" 2>&1`
24598
CLUCENE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libclucene-core" 2>&1`
24600
# Put the nasty error message in config.log where it belongs
24601
echo "$CLUCENE_PKG_ERRORS" >&5
24604
# no pkg-config file for clucene. fallback to defaults.
24605
# FIXME: we should verify here that this actually works..
24606
CLUCENE_LIBS="-lclucene-shared -lclucene-core"
24608
elif test $pkg_failed = untried; then
24609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24610
$as_echo "no" >&6; }
24612
# no pkg-config file for clucene. fallback to defaults.
24613
# FIXME: we should verify here that this actually works..
24614
CLUCENE_LIBS="-lclucene-shared -lclucene-core"
24617
CLUCENE_CFLAGS=$pkg_cv_CLUCENE_CFLAGS
24618
CLUCENE_LIBS=$pkg_cv_CLUCENE_LIBS
24619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24620
$as_echo "yes" >&6; }
24356
24623
if test $want_stemmer != no; then
24357
24624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sb_stemmer_new in -lstemmer" >&5
24358
24625
$as_echo_n "checking for sb_stemmer_new in -lstemmer... " >&6; }
24538
FILES1=`find $srcdir/src -name '*settings.[ch]'|grep "$srcdir/src/lib-" | sed 's/^\(.*\)\(.\)$/\2 \1\2/' | sort -r | sed s/^..//`
24805
FILES1=`find $srcdir/src -name '*settings.[ch]'|grep "$srcdir/src/lib-" | sed 's/^\(.*\)\(.\)$/\2 \1\2/' | grep -v 'lib-master.*c$' | sort -r | sed s/^..//`
24539
24806
FILES2=`find $srcdir/src -name '*settings.[ch]'|grep -v "$srcdir/src/lib-" | sed 's/^\(.*\)\(.\)$/\2 \1\2/' | grep -v all-settings | sort -r | sed s/^..//`
24540
24807
SETTING_FILES=`echo $FILES1 $FILES2 | sed -e s,$srcdir/src,./src,g -e 's,./src,$(top_srcdir)/src,g'`
24544
24811
capability_banner="IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE"
24545
capability="$capability_banner SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE"
24812
capability="$capability_banner SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE"
24547
24814
cat >>confdefs.h <<_ACEOF
24548
24815
#define CAPABILITY_STRING "$capability"
24562
24829
LDFLAGS="\$(NOPLUGIN_LDFLAGS) $LDFLAGS"
24832
if test "$with_gnu_ld" = yes -a "$want_shared_libs" = "no"; then
24833
# libtool can't handle using whole-archive flags, so we need to do this
24834
# with a CC wrapper.. shouldn't be much of a problem, since most people
24835
# are building with shared libs.
24836
sed "s/@CC@/$CC/" < $srcdir/cc-wrapper.sh.in > cc-wrapper.sh
24837
chmod +x cc-wrapper.sh
24838
CC=`pwd`/cc-wrapper.sh
24565
24841
if test "$docdir" = ""; then
24566
24842
docdir='${datadir}/doc/${PACKAGE_TARNAME}'
24808
25084
as_fn_error $? "conditional \"SQL_PLUGINS\" was never defined.
24809
25085
Usually this means the macro was only invoked conditionally." "$LINENO" 5
24811
if test -z "${BUILD_ZLIB_TRUE}" && test -z "${BUILD_ZLIB_FALSE}"; then
24812
as_fn_error $? "conditional \"BUILD_ZLIB\" was never defined.
24813
Usually this means the macro was only invoked conditionally." "$LINENO" 5
24815
if test -z "${BUILD_BZLIB_TRUE}" && test -z "${BUILD_BZLIB_FALSE}"; then
24816
as_fn_error $? "conditional \"BUILD_BZLIB\" was never defined.
24817
Usually this means the macro was only invoked conditionally." "$LINENO" 5
24819
25087
if test -z "${BUILD_ZLIB_PLUGIN_TRUE}" && test -z "${BUILD_ZLIB_PLUGIN_FALSE}"; then
24820
25088
as_fn_error $? "conditional \"BUILD_ZLIB_PLUGIN\" was never defined.
24821
25089
Usually this means the macro was only invoked conditionally." "$LINENO" 5
25821
26089
"src/lib-sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-sql/Makefile" ;;
25822
26090
"src/lib-auth/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-auth/Makefile" ;;
25823
26091
"src/lib-charset/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-charset/Makefile" ;;
26092
"src/lib-compression/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-compression/Makefile" ;;
25824
26093
"src/lib-dict/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-dict/Makefile" ;;
25825
26094
"src/lib-dns/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-dns/Makefile" ;;
25826
26095
"src/lib-fs/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-fs/Makefile" ;;
26096
"src/lib-http/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-http/Makefile" ;;
25827
26097
"src/lib-imap/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-imap/Makefile" ;;
26098
"src/lib-imap-storage/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-imap-storage/Makefile" ;;
25828
26099
"src/lib-imap-client/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-imap-client/Makefile" ;;
26100
"src/lib-imap-urlauth/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-imap-urlauth/Makefile" ;;
25829
26101
"src/lib-index/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-index/Makefile" ;;
25830
26102
"src/lib-lda/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-lda/Makefile" ;;
25831
26103
"src/lib-mail/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-mail/Makefile" ;;
25833
26105
"src/lib-ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-ntlm/Makefile" ;;
25834
26106
"src/lib-otp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-otp/Makefile" ;;
25835
26107
"src/lib-dovecot/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-dovecot/Makefile" ;;
26108
"src/lib-sasl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-sasl/Makefile" ;;
25836
26109
"src/lib-settings/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-settings/Makefile" ;;
25837
26110
"src/lib-ssl-iostream/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-ssl-iostream/Makefile" ;;
25838
26111
"src/lib-test/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-test/Makefile" ;;
25865
26138
"src/ipc/Makefile") CONFIG_FILES="$CONFIG_FILES src/ipc/Makefile" ;;
25866
26139
"src/imap/Makefile") CONFIG_FILES="$CONFIG_FILES src/imap/Makefile" ;;
25867
26140
"src/imap-login/Makefile") CONFIG_FILES="$CONFIG_FILES src/imap-login/Makefile" ;;
26141
"src/imap-urlauth/Makefile") CONFIG_FILES="$CONFIG_FILES src/imap-urlauth/Makefile" ;;
25868
26142
"src/login-common/Makefile") CONFIG_FILES="$CONFIG_FILES src/login-common/Makefile" ;;
25869
26143
"src/master/Makefile") CONFIG_FILES="$CONFIG_FILES src/master/Makefile" ;;
25870
26144
"src/pop3/Makefile") CONFIG_FILES="$CONFIG_FILES src/pop3/Makefile" ;;