~ubuntu-branches/ubuntu/trusty/opendkim/trusty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2012-06-08 14:38:25 UTC
  • mfrom: (1.2.14) (3.2.7 sid)
  • Revision ID: package-import@ubuntu.com-20120608143825-ehz9xxdvii6podhh
Tags: 2.6.0-1
* New upstream release (now DFSG free so tarball repacking no longer
  required)
  - Rename libopendkim6 to libopendkim7 to match new soname
    - Update package and dependencies in debian/control
    - Rename .install and .doc files
  - Drop --enable-xtags from configure in debian/rules since it is now on by
    default
  - Update debian/copyright
  - Remove dversionmangle from debian/watch
  - Update README.Debian to reflect documentation no longer being stripped
* Correct copyright/license information in libar/ar-strl.h based on feedback
  from upstream (correction already implemented upstream for the next
  relese)
* Set --sysconfdir=/etc in configure so that generated man pages refer to
  the correct configuration file locations

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.68 for OpenDKIM 2.5.2.
 
3
# Generated by GNU Autoconf 2.68 for OpenDKIM 2.6.0.
4
4
#
5
5
# Report bugs to <bugs@opendkim.org>.
6
6
#
570
570
# Identity of this package.
571
571
PACKAGE_NAME='OpenDKIM'
572
572
PACKAGE_TARNAME='opendkim'
573
 
PACKAGE_VERSION='2.5.2'
574
 
PACKAGE_STRING='OpenDKIM 2.5.2'
 
573
PACKAGE_VERSION='2.6.0'
 
574
PACKAGE_STRING='OpenDKIM 2.6.0'
575
575
PACKAGE_BUGREPORT='bugs@opendkim.org'
576
576
PACKAGE_URL=''
577
577
 
618
618
am__EXEEXT_TRUE
619
619
LTLIBOBJS
620
620
SYSCONFDIR
 
621
LIBERL_LIBS
 
622
LIBERL_LIBDIRS
 
623
LIBERL_INCDIRS
 
624
ERLANG_FALSE
 
625
ERLANG_TRUE
 
626
LIBERL_MANNOTICE
621
627
DOMAIN
622
628
domainname
623
629
LIVE_TESTS_FALSE
637
643
LIBXML2_CPPFLAGS
638
644
LIBXML_LIBS
639
645
LIBXML_CFLAGS
 
646
LIBJANSSON_LDFLAGS
 
647
LIBJANSSON_CPPFLAGS
 
648
LIBJANSSON_LIBS
 
649
LIBJANSSON_CFLAGS
640
650
CURL_LDFLAGS
641
651
CURL_CPPFLAGS
642
652
CURL_LIBS
643
653
CURL_CFLAGS
 
654
LIBMDB_LIBS
 
655
LIBMDB_CPPFLAGS
 
656
USE_MDB_FALSE
 
657
USE_MDB_TRUE
644
658
SASL_CPPFLAGS
645
659
USE_SASL_FALSE
646
660
USE_SASL_TRUE
664
678
LUA_MANNOTICE
665
679
LIBLUA_LIBS
666
680
LIBLUA_CFLAGS
 
681
LIBTRE_CPPFLAGS
667
682
USE_TRE_FALSE
668
683
USE_TRE_TRUE
669
684
LIBTRE_LIBS
670
685
LIBTRE_CFLAGS
 
686
LIBEVENT_LIBS
 
687
LIBEVENT_LIBDIRS
671
688
LIBLDNS_LIBS
672
689
LIBLDNS_LIBDIRS
673
690
LIBUNBOUND_LIBS
700
717
USE_ARLIB_TRUE
701
718
ALL_SYMBOLS_FALSE
702
719
ALL_SYMBOLS_TRUE
703
 
PARSETIME_MANNOTICE
704
720
QUERY_CACHE_MANNOTICE
705
721
BUILD_FILTER_FALSE
706
722
BUILD_FILTER_TRUE
726
742
RPATH_TRUE
727
743
SENDMAIL_PATH
728
744
DEFAULT_SENDER_MANNOTICE
729
 
XTAGS_FALSE
730
 
XTAGS_TRUE
731
 
XTAGS_MANNOTICE
732
745
VBR_FALSE
733
746
VBR_TRUE
734
747
VBR_MANNOTICE
739
752
STATS_FALSE
740
753
STATS_TRUE
741
754
STATS_MANNOTICE
 
755
SOCKETDB_MANNOTICE
742
756
SENDER_MACRO_MANNOTICE
743
757
SELECTOR_HEADER_MANNOTICE
744
 
SELECT_CANONICALIZATION_MANNOTICE
745
758
RESIGN_MANNOTICE
746
759
REPUTATION_CACHE_MANNOTICE
747
760
REPUTE_FALSE
915
928
enable_reputation
916
929
enable_reputation_cache
917
930
enable_resign
918
 
enable_select_canonicalization
919
931
enable_selector_header
920
932
enable_sender_macro
 
933
enable_socketdb
921
934
enable_stats
922
935
enable_statsext
923
936
enable_rbl
924
937
enable_vbr
925
 
enable_xtags
926
938
enable_default_sender
927
939
enable_rpath
928
940
enable_codecoverage
931
943
with_lcov
932
944
enable_filter
933
945
enable_query_cache
934
 
enable_parsetime
935
946
enable_allsymbols
936
947
enable_arlib
937
948
enable_debug
941
952
with_libmemcached
942
953
with_unbound
943
954
with_ldns
 
955
with_libevent
944
956
with_tre
945
957
with_lua
946
958
with_sql_backend
947
959
with_odbx
948
960
with_openldap
949
961
with_sasl
 
962
with_mdb
950
963
with_libcurl
 
964
with_libjansson
951
965
with_libxml2
952
966
with_db_incdir
953
967
with_db_libdir
955
969
with_db
956
970
enable_live_testing
957
971
with_domain
 
972
with_erlang
958
973
'
959
974
      ac_precious_vars='build_alias
960
975
host_alias
986
1001
SASL_LIBS
987
1002
CURL_CFLAGS
988
1003
CURL_LIBS
 
1004
LIBJANSSON_CFLAGS
 
1005
LIBJANSSON_LIBS
989
1006
LIBXML_CFLAGS
990
1007
LIBXML_LIBS'
991
1008
 
1530
1547
  # Omit some internal or obsolete options to make the list less imposing.
1531
1548
  # This message is too long to be a string in the A/UX 3.1 sh.
1532
1549
  cat <<_ACEOF
1533
 
\`configure' configures OpenDKIM 2.5.2 to adapt to many kinds of systems.
 
1550
\`configure' configures OpenDKIM 2.6.0 to adapt to many kinds of systems.
1534
1551
 
1535
1552
Usage: $0 [OPTION]... [VAR=VALUE]...
1536
1553
 
1600
1617
 
1601
1618
if test -n "$ac_init_help"; then
1602
1619
  case $ac_init_help in
1603
 
     short | recursive ) echo "Configuration of OpenDKIM 2.5.2:";;
 
1620
     short | recursive ) echo "Configuration of OpenDKIM 2.6.0:";;
1604
1621
   esac
1605
1622
  cat <<\_ACEOF
1606
1623
 
1640
1657
  --enable-reputation_cache
1641
1658
                          support for experimental reputation caching
1642
1659
  --enable-resign         support for one-step re-signing
1643
 
  --enable-select_canonicalization
1644
 
                          allow sender to select canonicalization
1645
1660
  --enable-selector_header
1646
1661
                          special header to choose signing key
1647
1662
  --enable-sender_macro   macro to determine sender
 
1663
  --enable-socketdb       arbitrary socket data sets
1648
1664
  --enable-stats          stats recording and reporting
1649
1665
  --enable-statsext       extended stats recording and reporting
1650
1666
  --enable-rbl            Realtime Blacklist query support
1651
1667
  --enable-vbr            Vouch-By-Reference support
1652
 
  --enable-xtags          extension signature tags
1653
1668
  --enable-default_sender default sender address
1654
1669
  --enable-rpath          include library load paths in binaries
1655
1670
  --enable-codecoverage   include code coverage/profiling code
1656
1671
  --disable-filter        do not compile the opendkim filter
1657
1672
  --enable-query_cache    local key/policy caching
1658
 
  --enable-parsetime      parse From: headers for sending times
1659
1673
  --enable-allsymbols     export internal-use symbols for better test coverage
1660
1674
  --enable-arlib          enable provided asynchronous resolver library
1661
1675
  --enable-debug          produce debugging binaries and libraries
1678
1692
  --with-libmemcached     location of libmemcached includes and library
1679
1693
  --with-unbound          location of Unbound includes and library
1680
1694
  --with-ldns             location of ldns includes and library
 
1695
  --with-libevent         location of libevent includes and library
1681
1696
  --with-tre              location of TRE includes and library
1682
1697
  --with-lua              location of Lua includes and library
1683
1698
  --with-sql-backend      selection of SQL backend in use
1684
1699
  --with-odbx             location of OpenDBX includes and library
1685
1700
  --with-openldap         location of OpenLDAP includes and library
1686
1701
  --with-sasl             location of SASL includes
 
1702
  --with-mdb              location of OpenLDAP MDB includes and library
1687
1703
  --with-libcurl          location of CURL includes and library
 
1704
  --with-libjansson       location of jansson includes and library
1688
1705
  --with-libxml2          location of XML2 includes and library
1689
1706
  --with-db-incdir        location of BerkeleyDB includes
1690
1707
  --with-db-libdir        location of BerkeleyDB library
1692
1709
  --with-db               location of BerkeleyDB includes and library
1693
1710
  --with-domain           name of the domain for signing - sets this in sample
1694
1711
                          configuration files
 
1712
  --with-erlang           location of Erlang includes and library
1695
1713
 
1696
1714
Some influential environment variables:
1697
1715
  CC          C compiler command
1736
1754
  SASL_LIBS   linker flags for SASL, overriding pkg-config
1737
1755
  CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1738
1756
  CURL_LIBS   linker flags for CURL, overriding pkg-config
 
1757
  LIBJANSSON_CFLAGS
 
1758
              C compiler flags for LIBJANSSON, overriding pkg-config
 
1759
  LIBJANSSON_LIBS
 
1760
              linker flags for LIBJANSSON, overriding pkg-config
1739
1761
  LIBXML_CFLAGS
1740
1762
              C compiler flags for LIBXML, overriding pkg-config
1741
1763
  LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
1806
1828
test -n "$ac_init_help" && exit $ac_status
1807
1829
if $ac_init_version; then
1808
1830
  cat <<\_ACEOF
1809
 
OpenDKIM configure 2.5.2
 
1831
OpenDKIM configure 2.6.0
1810
1832
generated by GNU Autoconf 2.68
1811
1833
 
1812
1834
Copyright (C) 2010 Free Software Foundation, Inc.
2385
2407
This file contains any messages produced by compilers while
2386
2408
running configure, to aid debugging if configure makes a mistake.
2387
2409
 
2388
 
It was created by OpenDKIM $as_me 2.5.2, which was
 
2410
It was created by OpenDKIM $as_me 2.6.0, which was
2389
2411
generated by GNU Autoconf 2.68.  Invocation command line was
2390
2412
 
2391
2413
  $ $0 $@
3204
3226
 
3205
3227
# Define the identity of the package.
3206
3228
 PACKAGE='opendkim'
3207
 
 VERSION='2.5.2'
 
3229
 VERSION='2.6.0'
3208
3230
 
3209
3231
 
3210
3232
cat >>confdefs.h <<_ACEOF
3253
3275
#
3254
3276
# Hexadecimal version, for use in generating dkim.h
3255
3277
#
3256
 
HEX_VERSION=$(printf %08x $(( ((2 << 8 | 5) << 8 | 2) << 8| 0 )))
 
3278
HEX_VERSION=$(printf %08x $(( ((2 << 8 | 6) << 8 | 0) << 8| 0 )))
3257
3279
 
3258
3280
 
3259
3281
#
3260
3282
# library version, passed to libtool
3261
3283
#
3262
 
LIBOPENDKIM_VERSION_INFO=$(printf %d:%d:%d 6 0 0)
 
3284
LIBOPENDKIM_VERSION_INFO=$(printf %d:%d:%d 7 0 0)
3263
3285
 
3264
3286
 
3265
3287
#
14120
14142
 
14121
14143
 
14122
14144
 
14123
 
for ac_func in dup2 endpwent getcwd gethostname gethostbyname  gettimeofday isascii memchr memmove memset regcomp select socket strcasecmp strchr strdup strerror strncasecmp strrchr strstr strtol strtoul strtoull strlcpy strlcat
 
14145
for ac_func in dup2 endpwent getcwd gethostname gethostbyname getaddrinfo gethostbyname2 gettimeofday isascii memchr memmove memset regcomp select socket strcasecmp strchr strdup strerror strncasecmp strrchr strstr strtol strtoul strtoull strlcpy strlcat
14124
14146
do :
14125
14147
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14126
14148
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14715
14737
 
14716
14738
 
14717
14739
experimentalnotincluded="(Experimental feature not enabled for this installation.)"
14718
 
          # Check whether --enable-select_canonicalization was given.
14719
 
if test "${enable_select_canonicalization+set}" = set; then :
14720
 
  enableval=$enable_select_canonicalization; if test "x$enable_select_canonicalization" = "xyes"; then :
14721
 
 
14722
 
 
14723
 
$as_echo "#define _FFR_SELECT_CANONICALIZATION 1" >>confdefs.h
14724
 
 
14725
 
                                SELECT_CANONICALIZATION_MANNOTICE="(Note: Feature is experimental.)"
14726
 
 
14727
 
 
14728
 
else
14729
 
 
14730
 
                                SELECT_CANONICALIZATION_MANNOTICE=$experimentalnotincluded
14731
 
 
14732
 
 
14733
 
fi
14734
 
else
14735
 
  SELECT_CANONICALIZATION_MANNOTICE=$experimentalnotincluded
14736
 
 
14737
 
fi
14738
 
 
14739
 
 
14740
 
 
14741
 
experimentalnotincluded="(Experimental feature not enabled for this installation.)"
14742
14740
          # Check whether --enable-selector_header was given.
14743
14741
if test "${enable_selector_header+set}" = set; then :
14744
14742
  enableval=$enable_selector_header; if test "x$enable_selector_header" = "xyes"; then :
14787
14785
 
14788
14786
 
14789
14787
experimentalnotincluded="(Experimental feature not enabled for this installation.)"
 
14788
          # Check whether --enable-socketdb was given.
 
14789
if test "${enable_socketdb+set}" = set; then :
 
14790
  enableval=$enable_socketdb; if test "x$enable_socketdb" = "xyes"; then :
 
14791
 
 
14792
 
 
14793
$as_echo "#define _FFR_SOCKETDB 1" >>confdefs.h
 
14794
 
 
14795
                                SOCKETDB_MANNOTICE="(Note: Feature is experimental.)"
 
14796
 
 
14797
 
 
14798
else
 
14799
 
 
14800
                                SOCKETDB_MANNOTICE=$experimentalnotincluded
 
14801
 
 
14802
 
 
14803
fi
 
14804
else
 
14805
  SOCKETDB_MANNOTICE=$experimentalnotincluded
 
14806
 
 
14807
fi
 
14808
 
 
14809
 
 
14810
 
 
14811
experimentalnotincluded="(Experimental feature not enabled for this installation.)"
14790
14812
          # Check whether --enable-stats was given.
14791
14813
if test "${enable_stats+set}" = set; then :
14792
14814
  enableval=$enable_stats; if test "x$enable_stats" = "xyes"; then :
14905
14927
fi
14906
14928
 
14907
14929
 
14908
 
experimentalnotincluded="(Experimental feature not enabled for this installation.)"
14909
 
          # Check whether --enable-xtags was given.
14910
 
if test "${enable_xtags+set}" = set; then :
14911
 
  enableval=$enable_xtags; if test "x$enable_xtags" = "xyes"; then :
14912
 
 
14913
 
 
14914
 
$as_echo "#define _FFR_XTAGS 1" >>confdefs.h
14915
 
 
14916
 
                                XTAGS_MANNOTICE="(Note: Feature is experimental.)"
14917
 
 
14918
 
 
14919
 
else
14920
 
 
14921
 
                                XTAGS_MANNOTICE=$experimentalnotincluded
14922
 
 
14923
 
 
14924
 
fi
14925
 
else
14926
 
  XTAGS_MANNOTICE=$experimentalnotincluded
14927
 
 
14928
 
fi
14929
 
 
14930
 
 
14931
 
          if test "x$enable_xtags" = "xyes"; then :
14932
 
 
14933
 
                        LIBOPENDKIM_FEATURE_STRING="$LIBOPENDKIM_FEATURE_STRING xtags"
14934
 
 
14935
 
fi
14936
 
 
14937
 
 if test x"$enable_xtags" = x"yes"; then
14938
 
  XTAGS_TRUE=
14939
 
  XTAGS_FALSE='#'
14940
 
else
14941
 
  XTAGS_TRUE='#'
14942
 
  XTAGS_FALSE=
14943
 
fi
14944
 
 
14945
 
 
14946
14930
if test x"$enable_statsext" = x"yes" -a x"$enable_stats" != x"yes"
14947
14931
then
14948
14932
        as_fn_error $? "--enable-statsext requires --enable-stats" "$LINENO" 5
14949
14933
fi
14950
14934
 
14951
 
if test x"$enable_atps" = x"yes" -a x"$enable_xtags" != x"yes"
14952
 
then
14953
 
        as_fn_error $? "--enable-atps requires --enable-xtags" "$LINENO" 5
14954
 
fi
14955
 
 
14956
14935
experimentalnotincluded="(Experimental feature not enabled for this installation.)"
14957
14936
          # Check whether --enable-default_sender was given.
14958
14937
if test "${enable_default_sender+set}" = set; then :
15527
15506
fi
15528
15507
 
15529
15508
 
15530
 
experimentalnotincluded="(Experimental feature not enabled for this installation.)"
15531
 
          # Check whether --enable-parsetime was given.
15532
 
if test "${enable_parsetime+set}" = set; then :
15533
 
  enableval=$enable_parsetime; if test "x$enable_parsetime" = "xyes"; then :
15534
 
 
15535
 
 
15536
 
$as_echo "#define _FFR_PARSETIME 1" >>confdefs.h
15537
 
 
15538
 
                                PARSETIME_MANNOTICE="(Note: Feature is experimental.)"
15539
 
 
15540
 
 
15541
 
else
15542
 
 
15543
 
                                PARSETIME_MANNOTICE=$experimentalnotincluded
15544
 
 
15545
 
 
15546
 
fi
15547
 
else
15548
 
  PARSETIME_MANNOTICE=$experimentalnotincluded
15549
 
 
15550
 
fi
15551
 
 
15552
 
 
15553
 
          if test "x$enable_parsetime" = "xyes"; then :
15554
 
 
15555
 
                        LIBOPENDKIM_FEATURE_STRING="$LIBOPENDKIM_FEATURE_STRING parsetime"
15556
 
 
15557
 
fi
15558
 
 
15559
 
 
15560
15509
#
15561
15510
# Conditional stuff
15562
15511
#
15601
15550
  enableval=$enable_debug; if test "x$enable_debug" = x"yes"; then :
15602
15551
 
15603
15552
                        LIBOPENDKIM_FEATURE_STRING="$LIBOPENDKIM_FEATURE_STRING debug"
15604
 
                        CFLAGS=`echo $CFLAGS | sed 's/ -O[0-9s]*//g'`
 
15553
                        CFLAGS=`echo $CFLAGS | sed 's/ -O[1-9s]*//g'`
15605
15554
 
15606
15555
fi
15607
15556
 
17028
16977
 
17029
16978
 
17030
16979
 
 
16980
# unbound may also need libevent
 
16981
 
 
16982
# Check whether --with-libevent was given.
 
16983
if test "${with_libevent+set}" = set; then :
 
16984
  withval=$with_libevent; libeventpath="$withval"
 
16985
else
 
16986
  libeventpath="no"
 
16987
fi
 
16988
 
 
16989
 
 
16990
LIBEVENT_LIBS=""
 
16991
LIBEVENT_LIBDIRS=""
 
16992
 
 
16993
if test x"$libevent" = x"yes"
 
16994
then
 
16995
        libevent_found="no"
 
16996
 
 
16997
        libeventdirs="/usr /usr/local"
 
16998
        for d in $libeventdirs
 
16999
        do
 
17000
                unset ac_cv_search_libevent_rr_new
 
17001
                saved_LDFLAGS="$LDFLAGS"
 
17002
                LDFLAGS="-L$d/lib $LDFLAGS"
 
17003
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_enable_debug_mode" >&5
 
17004
$as_echo_n "checking for library containing event_enable_debug_mode... " >&6; }
 
17005
if ${ac_cv_search_event_enable_debug_mode+:} false; then :
 
17006
  $as_echo_n "(cached) " >&6
 
17007
else
 
17008
  ac_func_search_save_LIBS=$LIBS
 
17009
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17010
/* end confdefs.h.  */
 
17011
 
 
17012
/* Override any GCC internal prototype to avoid an error.
 
17013
   Use char because int might match the return type of a GCC
 
17014
   builtin and then its argument prototype would still apply.  */
 
17015
#ifdef __cplusplus
 
17016
extern "C"
 
17017
#endif
 
17018
char event_enable_debug_mode ();
 
17019
int
 
17020
main ()
 
17021
{
 
17022
return event_enable_debug_mode ();
 
17023
  ;
 
17024
  return 0;
 
17025
}
 
17026
_ACEOF
 
17027
for ac_lib in '' event; do
 
17028
  if test -z "$ac_lib"; then
 
17029
    ac_res="none required"
 
17030
  else
 
17031
    ac_res=-l$ac_lib
 
17032
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
17033
  fi
 
17034
  if ac_fn_c_try_link "$LINENO"; then :
 
17035
  ac_cv_search_event_enable_debug_mode=$ac_res
 
17036
fi
 
17037
rm -f core conftest.err conftest.$ac_objext \
 
17038
    conftest$ac_exeext
 
17039
  if ${ac_cv_search_event_enable_debug_mode+:} false; then :
 
17040
  break
 
17041
fi
 
17042
done
 
17043
if ${ac_cv_search_event_enable_debug_mode+:} false; then :
 
17044
 
 
17045
else
 
17046
  ac_cv_search_event_enable_debug_mode=no
 
17047
fi
 
17048
rm conftest.$ac_ext
 
17049
LIBS=$ac_func_search_save_LIBS
 
17050
fi
 
17051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_enable_debug_mode" >&5
 
17052
$as_echo "$ac_cv_search_event_enable_debug_mode" >&6; }
 
17053
ac_res=$ac_cv_search_event_enable_debug_mode
 
17054
if test "$ac_res" != no; then :
 
17055
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
17056
  libevent_found="yes"
 
17057
fi
 
17058
 
 
17059
                LDFLAGS="$saved_LDFLAGS"
 
17060
 
 
17061
                if test x"$libevent_found" = x"yes"
 
17062
                then
 
17063
                        LIBEVENT_LIBDIRS="-L$d/lib"
 
17064
                        LIBEVENT_LIBS="-levent"
 
17065
                        break
 
17066
                fi
 
17067
        done
 
17068
        if test x"$LIBEVENT_LIBS" = x""
 
17069
        then
 
17070
                as_fn_error $? "libevent not found" "$LINENO" 5
 
17071
        fi
 
17072
elif test x"$libeventpath" != x"no"
 
17073
then
 
17074
        libevent_found="no"
 
17075
        saved_LDFLAGS="$LDFLAGS"
 
17076
        LDFLAGS="-L$d/lib $LDFLAGS"
 
17077
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_enable_debug_mode" >&5
 
17078
$as_echo_n "checking for library containing event_enable_debug_mode... " >&6; }
 
17079
if ${ac_cv_search_event_enable_debug_mode+:} false; then :
 
17080
  $as_echo_n "(cached) " >&6
 
17081
else
 
17082
  ac_func_search_save_LIBS=$LIBS
 
17083
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17084
/* end confdefs.h.  */
 
17085
 
 
17086
/* Override any GCC internal prototype to avoid an error.
 
17087
   Use char because int might match the return type of a GCC
 
17088
   builtin and then its argument prototype would still apply.  */
 
17089
#ifdef __cplusplus
 
17090
extern "C"
 
17091
#endif
 
17092
char event_enable_debug_mode ();
 
17093
int
 
17094
main ()
 
17095
{
 
17096
return event_enable_debug_mode ();
 
17097
  ;
 
17098
  return 0;
 
17099
}
 
17100
_ACEOF
 
17101
for ac_lib in '' event; do
 
17102
  if test -z "$ac_lib"; then
 
17103
    ac_res="none required"
 
17104
  else
 
17105
    ac_res=-l$ac_lib
 
17106
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
17107
  fi
 
17108
  if ac_fn_c_try_link "$LINENO"; then :
 
17109
  ac_cv_search_event_enable_debug_mode=$ac_res
 
17110
fi
 
17111
rm -f core conftest.err conftest.$ac_objext \
 
17112
    conftest$ac_exeext
 
17113
  if ${ac_cv_search_event_enable_debug_mode+:} false; then :
 
17114
  break
 
17115
fi
 
17116
done
 
17117
if ${ac_cv_search_event_enable_debug_mode+:} false; then :
 
17118
 
 
17119
else
 
17120
  ac_cv_search_event_enable_debug_mode=no
 
17121
fi
 
17122
rm conftest.$ac_ext
 
17123
LIBS=$ac_func_search_save_LIBS
 
17124
fi
 
17125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_enable_debug_mode" >&5
 
17126
$as_echo "$ac_cv_search_event_enable_debug_mode" >&6; }
 
17127
ac_res=$ac_cv_search_event_enable_debug_mode
 
17128
if test "$ac_res" != no; then :
 
17129
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
17130
  libevent_found="yes"
 
17131
fi
 
17132
 
 
17133
        LDFLAGS="$saved_LDFLAGS"
 
17134
 
 
17135
        if test x"$libevent_found" = x"yes"
 
17136
        then
 
17137
                LIBEVENT_LIBDIRS="-L$d/lib"
 
17138
                LIBEVENT_LIBS="-levent"
 
17139
                break
 
17140
        else
 
17141
                as_fn_error $? "libevent not found in $d" "$LINENO" 5
 
17142
        fi
 
17143
fi
 
17144
 
 
17145
 
 
17146
 
 
17147
 
17031
17148
#
17032
17149
# libtre
17033
17150
#
17041
17158
 
17042
17159
 
17043
17160
tre_found="no"
17044
 
LIBTRE_CFLAGS=""
 
17161
LIBTRE_CPPFLAGS=""
17045
17162
LIBTRE_LIBS=""
17046
17163
 
17047
17164
if test x"$enable_diffheaders" != x"yes"
17309
17426
                        tre_found="yes"
17310
17427
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $trepath" >&5
17311
17428
$as_echo "$trepath" >&6; }
17312
 
                        LIBTRE_CFLAGS="-I$trepath/include"
 
17429
                        LIBTRE_CPPFLAGS="-I$trepath/include"
17313
17430
                        LIBTRE_LIBS="-L$trepath/lib -ltre"
17314
17431
                elif test -f "$trepath/include/tre/regex.h"
17315
17432
                then
17319
17436
 
17320
17437
$as_echo "#define TRE_PRE_080 1" >>confdefs.h
17321
17438
 
17322
 
                        LIBTRE_CFLAGS="-I$trepath/include"
 
17439
                        LIBTRE_CPPFLAGS="-I$trepath/include"
17323
17440
                        LIBTRE_LIBS="-L$trepath/lib -ltre"
17324
17441
                else
17325
17442
                        as_fn_error $? "\"not found at $trepath\"" "$LINENO" 5
17334
17451
                                tre_found="yes"
17335
17452
                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
17336
17453
$as_echo "$d" >&6; }
17337
 
                                LIBTRE_CFLAGS="-I$trepath/include"
 
17454
                                LIBTRE_CPPFLAGS="-I$trepath/include"
17338
17455
                                LIBTRE_LIBS="-L$trepath/lib -ltre"
17339
17456
                                break
17340
17457
                        elif test -f $d/include/tre/regex.h
17346
17463
 
17347
17464
$as_echo "#define TRE_PRE_080 1" >>confdefs.h
17348
17465
 
17349
 
                                LIBTRE_CFLAGS="-I$trepath/include"
 
17466
                                LIBTRE_CPPFLAGS="-I$trepath/include"
17350
17467
                                LIBTRE_LIBS="-L$trepath/lib -ltre"
17351
17468
                                break
17352
17469
                        fi
17857
17974
 
17858
17975
else
17859
17976
 
17860
 
                                        as_fn_error $? "opendbx not at least v1.3.7 at $odbxpath" "$LINENO" 5
 
17977
                                        as_fn_error $? "opendbx not at least v1.3.7 at $d" "$LINENO" 5
17861
17978
 
17862
17979
 
17863
17980
fi
18243
18360
 
18244
18361
 
18245
18362
#
 
18363
# libmdb
 
18364
#
 
18365
 
 
18366
# Check whether --with-mdb was given.
 
18367
if test "${with_mdb+set}" = set; then :
 
18368
  withval=$with_mdb; mdbpath="$withval"
 
18369
else
 
18370
  mdbpath="no"
 
18371
fi
 
18372
 
 
18373
 
 
18374
mdb_found="no"
 
18375
LIBMDB_CPPFLAGS=""
 
18376
LIBMDB_LIBS=""
 
18377
 
 
18378
if test x"$mdbpath" != x"no" -a x"$mdb_found" = x"no"
 
18379
then
 
18380
        saved_ldflags="$LDFLAGS"
 
18381
        saved_cflags="$CFLAGS"
 
18382
        CFLAGS="-pthread"
 
18383
        if test x"$mdbpath" != x"auto" -a x"$mdbpath" != x"yes"
 
18384
        then
 
18385
                if test -f $mdbpath/include/mdb.h
 
18386
                then
 
18387
                        LDFLAGS="-L$mdbpath/lib"
 
18388
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_open in -lmdb" >&5
 
18389
$as_echo_n "checking for mdb_env_open in -lmdb... " >&6; }
 
18390
if ${ac_cv_lib_mdb_mdb_env_open+:} false; then :
 
18391
  $as_echo_n "(cached) " >&6
 
18392
else
 
18393
  ac_check_lib_save_LIBS=$LIBS
 
18394
LIBS="-lmdb  $LIBS"
 
18395
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18396
/* end confdefs.h.  */
 
18397
 
 
18398
/* Override any GCC internal prototype to avoid an error.
 
18399
   Use char because int might match the return type of a GCC
 
18400
   builtin and then its argument prototype would still apply.  */
 
18401
#ifdef __cplusplus
 
18402
extern "C"
 
18403
#endif
 
18404
char mdb_env_open ();
 
18405
int
 
18406
main ()
 
18407
{
 
18408
return mdb_env_open ();
 
18409
  ;
 
18410
  return 0;
 
18411
}
 
18412
_ACEOF
 
18413
if ac_fn_c_try_link "$LINENO"; then :
 
18414
  ac_cv_lib_mdb_mdb_env_open=yes
 
18415
else
 
18416
  ac_cv_lib_mdb_mdb_env_open=no
 
18417
fi
 
18418
rm -f core conftest.err conftest.$ac_objext \
 
18419
    conftest$ac_exeext conftest.$ac_ext
 
18420
LIBS=$ac_check_lib_save_LIBS
 
18421
fi
 
18422
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mdb_mdb_env_open" >&5
 
18423
$as_echo "$ac_cv_lib_mdb_mdb_env_open" >&6; }
 
18424
if test "x$ac_cv_lib_mdb_mdb_env_open" = xyes; then :
 
18425
 
 
18426
                                mdb_found="yes"
 
18427
                                LIBMDB_CPPFLAGS="-I$mdbpath/include"
 
18428
                                LIBMDB_LIBS="-L$mdbpath/lib -lmdb"
 
18429
 
 
18430
else
 
18431
 
 
18432
                                as_fn_error $? "mdb not valid at $mdbpath" "$LINENO" 5
 
18433
 
 
18434
 
 
18435
fi
 
18436
 
 
18437
                else
 
18438
                        as_fn_error $? "mdb not found at $mdbpath" "$LINENO" 5
 
18439
                fi
 
18440
        else
 
18441
                mdbdirs="/usr /usr/local"
 
18442
                for d in $mdbdirs
 
18443
                do
 
18444
                        if test -f $d/include/mdb.h
 
18445
                        then
 
18446
                                LDFLAGS="-L$d/lib"
 
18447
                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_open in -lmdb" >&5
 
18448
$as_echo_n "checking for mdb_env_open in -lmdb... " >&6; }
 
18449
if ${ac_cv_lib_mdb_mdb_env_open+:} false; then :
 
18450
  $as_echo_n "(cached) " >&6
 
18451
else
 
18452
  ac_check_lib_save_LIBS=$LIBS
 
18453
LIBS="-lmdb  $LIBS"
 
18454
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18455
/* end confdefs.h.  */
 
18456
 
 
18457
/* Override any GCC internal prototype to avoid an error.
 
18458
   Use char because int might match the return type of a GCC
 
18459
   builtin and then its argument prototype would still apply.  */
 
18460
#ifdef __cplusplus
 
18461
extern "C"
 
18462
#endif
 
18463
char mdb_env_open ();
 
18464
int
 
18465
main ()
 
18466
{
 
18467
return mdb_env_open ();
 
18468
  ;
 
18469
  return 0;
 
18470
}
 
18471
_ACEOF
 
18472
if ac_fn_c_try_link "$LINENO"; then :
 
18473
  ac_cv_lib_mdb_mdb_env_open=yes
 
18474
else
 
18475
  ac_cv_lib_mdb_mdb_env_open=no
 
18476
fi
 
18477
rm -f core conftest.err conftest.$ac_objext \
 
18478
    conftest$ac_exeext conftest.$ac_ext
 
18479
LIBS=$ac_check_lib_save_LIBS
 
18480
fi
 
18481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mdb_mdb_env_open" >&5
 
18482
$as_echo "$ac_cv_lib_mdb_mdb_env_open" >&6; }
 
18483
if test "x$ac_cv_lib_mdb_mdb_env_open" = xyes; then :
 
18484
 
 
18485
                                        mdbpath=$d
 
18486
                                        mdb_found="yes"
 
18487
                                        LIBMDB_CPPFLAGS="-I$mdbpath/include"
 
18488
                                        LIBMDB_LIBS="-L$mdbpath/lib -lmdb"
 
18489
                                        break
 
18490
 
 
18491
 
 
18492
fi
 
18493
 
 
18494
                        fi
 
18495
                done
 
18496
                if test x"$mdb_found" != x"yes"
 
18497
                then
 
18498
                        as_fn_error $? "mdb not found" "$LINENO" 5
 
18499
                fi
 
18500
        fi
 
18501
        LDFLAGS="$saved_ldflags"
 
18502
        CFLAGS="$saved_cflags"
 
18503
fi
 
18504
if test x"$mdb_found" = x"yes"
 
18505
then
 
18506
 
 
18507
$as_echo "#define USE_MDB 1" >>confdefs.h
 
18508
 
 
18509
fi
 
18510
 if test x"$mdb_found" = x"yes"; then
 
18511
  USE_MDB_TRUE=
 
18512
  USE_MDB_FALSE='#'
 
18513
else
 
18514
  USE_MDB_TRUE='#'
 
18515
  USE_MDB_FALSE=
 
18516
fi
 
18517
 
 
18518
 
 
18519
 
 
18520
 
 
18521
#
 
18522
#
18246
18523
# libcurl, required by reputation
18247
18524
#
18248
18525
 
18405
18682
fi
18406
18683
 
18407
18684
#
18408
 
# libxml2, required by reputation
18409
 
#
 
18685
# libjansson, required by reputation
 
18686
#
 
18687
 
 
18688
 
 
18689
# Check whether --with-libjansson was given.
 
18690
if test "${with_libjansson+set}" = set; then :
 
18691
  withval=$with_libjansson; janssonpath="$withval"
 
18692
else
 
18693
  janssonpath="auto"
 
18694
fi
 
18695
 
 
18696
 
 
18697
LIBJANSSON_CPPFLAGS=""
 
18698
LIBJANSSON_LDFLAGS=""
 
18699
LIBJANSSON_LIBS=""
 
18700
 
 
18701
if test x"$enable_reputation" != x"yes" -a \
 
18702
        x"$janssonpath" = x"auto"
 
18703
then
 
18704
        janssonpath="no"
 
18705
fi
 
18706
 
 
18707
jansson_found="no"
 
18708
if test \( x"$janssonpath" = x"auto" -o x"$janssonpath" = x"yes" \) -a \
 
18709
        x"$PKG_CONFIG" != x""
 
18710
then
 
18711
 
 
18712
pkg_failed=no
 
18713
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBJANSSON" >&5
 
18714
$as_echo_n "checking for LIBJANSSON... " >&6; }
 
18715
 
 
18716
if test -n "$LIBJANSSON_CFLAGS"; then
 
18717
    pkg_cv_LIBJANSSON_CFLAGS="$LIBJANSSON_CFLAGS"
 
18718
 elif test -n "$PKG_CONFIG"; then
 
18719
    if test -n "$PKG_CONFIG" && \
 
18720
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjansson >= 2.2.1\""; } >&5
 
18721
  ($PKG_CONFIG --exists --print-errors "libjansson >= 2.2.1") 2>&5
 
18722
  ac_status=$?
 
18723
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18724
  test $ac_status = 0; }; then
 
18725
  pkg_cv_LIBJANSSON_CFLAGS=`$PKG_CONFIG --cflags "libjansson >= 2.2.1" 2>/dev/null`
 
18726
else
 
18727
  pkg_failed=yes
 
18728
fi
 
18729
 else
 
18730
    pkg_failed=untried
 
18731
fi
 
18732
if test -n "$LIBJANSSON_LIBS"; then
 
18733
    pkg_cv_LIBJANSSON_LIBS="$LIBJANSSON_LIBS"
 
18734
 elif test -n "$PKG_CONFIG"; then
 
18735
    if test -n "$PKG_CONFIG" && \
 
18736
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjansson >= 2.2.1\""; } >&5
 
18737
  ($PKG_CONFIG --exists --print-errors "libjansson >= 2.2.1") 2>&5
 
18738
  ac_status=$?
 
18739
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18740
  test $ac_status = 0; }; then
 
18741
  pkg_cv_LIBJANSSON_LIBS=`$PKG_CONFIG --libs "libjansson >= 2.2.1" 2>/dev/null`
 
18742
else
 
18743
  pkg_failed=yes
 
18744
fi
 
18745
 else
 
18746
    pkg_failed=untried
 
18747
fi
 
18748
 
 
18749
 
 
18750
 
 
18751
if test $pkg_failed = yes; then
 
18752
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18753
$as_echo "no" >&6; }
 
18754
 
 
18755
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
18756
        _pkg_short_errors_supported=yes
 
18757
else
 
18758
        _pkg_short_errors_supported=no
 
18759
fi
 
18760
        if test $_pkg_short_errors_supported = yes; then
 
18761
                LIBJANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libjansson >= 2.2.1" 2>&1`
 
18762
        else
 
18763
                LIBJANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors "libjansson >= 2.2.1" 2>&1`
 
18764
        fi
 
18765
        # Put the nasty error message in config.log where it belongs
 
18766
        echo "$LIBJANSSON_PKG_ERRORS" >&5
 
18767
 
 
18768
 
 
18769
                jansson_found="no"
 
18770
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config for libjansson not found, trying manual
 
18771
                            search..." >&5
 
18772
$as_echo "$as_me: WARNING: pkg-config for libjansson not found, trying manual
 
18773
                            search..." >&2;}
 
18774
 
 
18775
elif test $pkg_failed = untried; then
 
18776
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18777
$as_echo "no" >&6; }
 
18778
 
 
18779
                jansson_found="no"
 
18780
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config for libjansson not found, trying manual
 
18781
                            search..." >&5
 
18782
$as_echo "$as_me: WARNING: pkg-config for libjansson not found, trying manual
 
18783
                            search..." >&2;}
 
18784
 
 
18785
else
 
18786
        LIBJANSSON_CFLAGS=$pkg_cv_LIBJANSSON_CFLAGS
 
18787
        LIBJANSSON_LIBS=$pkg_cv_LIBJANSSON_LIBS
 
18788
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18789
$as_echo "yes" >&6; }
 
18790
 
 
18791
                jansson_found="yes"
 
18792
                LIBJANSSON_CPPFLAGS="$LIBJANSSON_CFLAGS"
 
18793
                LIBJANSSON_LIBS="$LIBJANSSON_LIBS"
 
18794
 
 
18795
fi
 
18796
fi
 
18797
 
 
18798
if test x"$janssonpath" != x"no" -a x"$jansson_found" = x"no"
 
18799
then
 
18800
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjansson" >&5
 
18801
$as_echo_n "checking for libjansson... " >&6; }
 
18802
        if test x"$janssonpath" != x"auto" -a x"$janssonpath" != x"yes"
 
18803
        then
 
18804
                if test -f $janssonpath/include/jansson.h
 
18805
                then
 
18806
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $janssonpath" >&5
 
18807
$as_echo "$janssonpath" >&6; }
 
18808
                        jansson_found="yes"
 
18809
                        LIBJANSSON_CPPFLAGS="-I$janssonpath/include"
 
18810
                        LIBJANSSON_LDFLAGS="-L$janssonpath/lib"
 
18811
                        LIBJANSSON_LIBS="-ljansson"
 
18812
                else
 
18813
                        as_fn_error $? "not found at $janssonpath" "$LINENO" 5
 
18814
                fi
 
18815
        else
 
18816
                janssondirs="/usr /usr/local"
 
18817
                for d in $janssondirs
 
18818
                do
 
18819
                        if test -f $d/include/jansson.h
 
18820
                        then
 
18821
                                janssonpath=$d
 
18822
                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
 
18823
$as_echo "$d" >&6; }
 
18824
                                jansson_found="yes"
 
18825
                                LIBJANSSON_CPPFLAGS="-I$janssonpath/include"
 
18826
                                LIBJANSSON_LDFLAGS="-L$janssonpath/lib"
 
18827
                                LIBJANSSON_LIBS="-ljansson"
 
18828
                                break
 
18829
                        fi
 
18830
                done
 
18831
        fi
 
18832
        if test x"$jansson_found" != x"yes"
 
18833
        then
 
18834
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18835
$as_echo "no" >&6; }
 
18836
        fi
 
18837
fi
 
18838
 
 
18839
 
 
18840
 
 
18841
 
 
18842
#
 
18843
# libxml2
 
18844
#
 
18845
 
18410
18846
 
18411
18847
# Check whether --with-libxml2 was given.
18412
18848
if test "${with_libxml2+set}" = set; then :
18421
18857
LIBXML2_LIBS=""
18422
18858
 
18423
18859
if test x"$enable_reputation" != x"yes" -a \
 
18860
        x"$jansson_found" != x"yes" -a \
18424
18861
        x"$xml2path" = x"auto"
18425
18862
then
18426
18863
        xml2path="no"
18427
18864
fi
18428
18865
 
 
18866
if test x"$enable_reputation" = x"yes" -a x"$jansson_found" = x"yes"
 
18867
then
 
18868
        xml2path="no"
 
18869
fi
 
18870
 
18429
18871
xml2_found="no"
18430
18872
if test \( x"$xml2path" = x"auto" -o x"$xml2path" = x"yes" \) -a \
18431
18873
        x"$PKG_CONFIG" != x""
18523
18965
$as_echo_n "checking for libxml2... " >&6; }
18524
18966
        if test x"$xml2path" != x"auto" -a x"$xml2path" != x"yes"
18525
18967
        then
18526
 
                if test -f $xml2path/include/libxml/parser.h
 
18968
                if test -f $xml2path/include/libxml2/libxml/parser.h
18527
18969
                then
18528
18970
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2path" >&5
18529
18971
$as_echo "$xml2path" >&6; }
18530
18972
                        xml2_found="yes"
18531
 
                        LIBXML2_CPPFLAGS="-I$xml2path/include"
 
18973
                        LIBXML2_CPPFLAGS="-I$xml2path/include/libxml2"
18532
18974
                        LIBXML2_LDFLAGS="-I$xml2path/lib"
18533
18975
                        LIBXML2_LIBS="-lxml2"
18534
18976
                else
18538
18980
                xml2dirs="/usr /usr/local"
18539
18981
                for d in $xml2dirs
18540
18982
                do
18541
 
                        if test -f $d/include/libxml/parser.h
 
18983
                        if test -f $d/include/libxml2/libxml/parser.h
18542
18984
                        then
18543
18985
                                xml2path=$d
18544
18986
                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
18545
18987
$as_echo "$d" >&6; }
18546
18988
                                xml2_found="yes"
18547
 
                                LIBXML2_CPPFLAGS="-I$xml2path/include"
 
18989
                                LIBXML2_CPPFLAGS="-I$xml2path/include/libxml2"
18548
18990
                                LIBXML2_LDFLAGS="-I$xml2path/lib"
18549
18991
                                LIBXML2_LIBS="-lxml2"
18550
18992
                                break
18562
19004
 
18563
19005
 
18564
19006
if test x"$enable_reputation" = x"yes" -a \
18565
 
        x"$xml2_found" != x"yes"
18566
 
then
18567
 
        as_fn_error $? "reputation requires libxml2" "$LINENO" 5
 
19007
        \( x"$xml2_found" != x"yes" -a \
 
19008
           x"$jansson_found" != x"yes" \)
 
19009
then
 
19010
        as_fn_error $? "reputation requires libxml2 or libjansson" "$LINENO" 5
 
19011
fi
 
19012
 
 
19013
if test  x"$xml2_found" == x"yes" -a x"$jansson_found" == x"yes"
 
19014
then
 
19015
        as_fn_error $? "cannot use both libxml2 and libjansson" "$LINENO" 5
 
19016
fi
 
19017
 
 
19018
if test x"$xml2_found" == x"yes"
 
19019
then
 
19020
 
 
19021
$as_echo "#define USE_XML2 1" >>confdefs.h
 
19022
 
 
19023
fi
 
19024
if test x"$jansson_found" == x"yes"
 
19025
then
 
19026
 
 
19027
$as_echo "#define USE_JANSSON 1" >>confdefs.h
 
19028
 
18568
19029
fi
18569
19030
 
18570
19031
 
18623
19084
        bdbrequested="yes"
18624
19085
fi
18625
19086
 
 
19087
rep_needs_bdb="no"
 
19088
if test x"$enable_reputation" = x"yes" -a x"$mdb_found" = x"no"
 
19089
then
 
19090
        rep_needs_bdb="yes"
 
19091
fi
 
19092
 
18626
19093
 if test x"$enable_popauth" = x"yes" -o \
18627
 
                    x"$enable_reputation" = x"yes" -o \
18628
 
                    x"$enable_reputation_cache" = x"yes" -o \
 
19094
                    x"$rep_needs_bdb" = x"yes" -o \
 
19095
                    x"$enable_ldap_caching" = x"yes" -o \
18629
19096
                    x"$bdbrequested" = x"yes"; then
18630
19097
  USE_DB_OPENDKIM_TRUE=
18631
19098
  USE_DB_OPENDKIM_FALSE='#'
18703
19170
$as_echo "$bdb_incdir" >&6; }
18704
19171
        fi
18705
19172
 
18706
 
        # look for libdb.a
18707
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BerkeleyDB library lib$bdb_lib.a" >&5
18708
 
$as_echo_n "checking for BerkeleyDB library lib$bdb_lib.a... " >&6; }
18709
 
        if test x"$bdb_libdir" = x""
18710
 
        then
18711
 
                for d in $bdbdirs
18712
 
                do
18713
 
                        if test -f $d/lib/lib$bdb_lib.a
18714
 
                        then
18715
 
                                bdb_libdir=$d/lib
18716
 
                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bdb_libdir" >&5
18717
 
$as_echo "$bdb_libdir" >&6; }
18718
 
                                libdbfound="yes"
18719
 
                                break
18720
 
                        fi
18721
 
                done
18722
 
 
18723
 
                if test x"$bdb_libdir" = x""
18724
 
                then
18725
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18726
 
$as_echo "not found" >&6; }
18727
 
                fi
18728
 
        elif ! test -f $bdb_libdir/lib$bdb_lib.a
18729
 
        then
18730
 
                as_fn_error $? "not found in $bdb_libdir" "$LINENO" 5
18731
 
        else
18732
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bdb_libdir/lib$bdb_lib.a" >&5
18733
 
$as_echo "$bdb_libdir/lib$bdb_lib.a" >&6; }
18734
 
                libdbfound="yes"
18735
 
        fi
18736
 
 
18737
 
        # If no matching library, see if we can find one.  Note that
18738
 
        # this can cause compilation problems if for example a db.h
 
19173
        # See if we can find a library by looking for db_create(), then
 
19174
        # db_open(), then dbopen().
 
19175
        #
 
19176
        # This can cause compilation problems if for example a db.h
18739
19177
        # and a libdb are found that aren't the same version, but it's
18740
19178
        # worth a shot in general.
18741
 
        if test x"$libdbfound" = x"no"
18742
 
        then
18743
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_create" >&5
18744
 
$as_echo_n "checking for library containing db_create... " >&6; }
18745
 
if ${ac_cv_search_db_create+:} false; then :
18746
 
  $as_echo_n "(cached) " >&6
18747
 
else
18748
 
  ac_func_search_save_LIBS=$LIBS
18749
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18750
 
/* end confdefs.h.  */
18751
 
 
18752
 
/* Override any GCC internal prototype to avoid an error.
18753
 
   Use char because int might match the return type of a GCC
18754
 
   builtin and then its argument prototype would still apply.  */
18755
 
#ifdef __cplusplus
18756
 
extern "C"
18757
 
#endif
18758
 
char db_create ();
18759
 
int
18760
 
main ()
18761
 
{
18762
 
return db_create ();
18763
 
  ;
18764
 
  return 0;
18765
 
}
18766
 
_ACEOF
18767
 
for ac_lib in '' db; do
18768
 
  if test -z "$ac_lib"; then
18769
 
    ac_res="none required"
18770
 
  else
18771
 
    ac_res=-l$ac_lib
18772
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18773
 
  fi
18774
 
  if ac_fn_c_try_link "$LINENO"; then :
18775
 
  ac_cv_search_db_create=$ac_res
18776
 
fi
18777
 
rm -f core conftest.err conftest.$ac_objext \
18778
 
    conftest$ac_exeext
18779
 
  if ${ac_cv_search_db_create+:} false; then :
18780
 
  break
18781
 
fi
18782
 
done
18783
 
if ${ac_cv_search_db_create+:} false; then :
18784
 
 
18785
 
else
18786
 
  ac_cv_search_db_create=no
18787
 
fi
18788
 
rm conftest.$ac_ext
18789
 
LIBS=$ac_func_search_save_LIBS
18790
 
fi
18791
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_create" >&5
18792
 
$as_echo "$ac_cv_search_db_create" >&6; }
18793
 
ac_res=$ac_cv_search_db_create
18794
 
if test "$ac_res" != no; then :
18795
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18796
 
  libdbfound="yes"
18797
 
fi
18798
 
 
18799
 
        fi
18800
 
        if test x"$libdbfound" = x"no"
18801
 
        then
18802
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbopen" >&5
18803
 
$as_echo_n "checking for library containing dbopen... " >&6; }
18804
 
if ${ac_cv_search_dbopen+:} false; then :
18805
 
  $as_echo_n "(cached) " >&6
18806
 
else
18807
 
  ac_func_search_save_LIBS=$LIBS
18808
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18809
 
/* end confdefs.h.  */
18810
 
 
18811
 
/* Override any GCC internal prototype to avoid an error.
18812
 
   Use char because int might match the return type of a GCC
18813
 
   builtin and then its argument prototype would still apply.  */
18814
 
#ifdef __cplusplus
18815
 
extern "C"
18816
 
#endif
18817
 
char dbopen ();
18818
 
int
18819
 
main ()
18820
 
{
18821
 
return dbopen ();
18822
 
  ;
18823
 
  return 0;
18824
 
}
18825
 
_ACEOF
18826
 
for ac_lib in '' db; do
18827
 
  if test -z "$ac_lib"; then
18828
 
    ac_res="none required"
18829
 
  else
18830
 
    ac_res=-l$ac_lib
18831
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18832
 
  fi
18833
 
  if ac_fn_c_try_link "$LINENO"; then :
18834
 
  ac_cv_search_dbopen=$ac_res
18835
 
fi
18836
 
rm -f core conftest.err conftest.$ac_objext \
18837
 
    conftest$ac_exeext
18838
 
  if ${ac_cv_search_dbopen+:} false; then :
18839
 
  break
18840
 
fi
18841
 
done
18842
 
if ${ac_cv_search_dbopen+:} false; then :
18843
 
 
18844
 
else
18845
 
  ac_cv_search_dbopen=no
18846
 
fi
18847
 
rm conftest.$ac_ext
18848
 
LIBS=$ac_func_search_save_LIBS
18849
 
fi
18850
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbopen" >&5
18851
 
$as_echo "$ac_cv_search_dbopen" >&6; }
18852
 
ac_res=$ac_cv_search_dbopen
18853
 
if test "$ac_res" != no; then :
18854
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18855
 
  libdbfound="yes"
18856
 
fi
18857
 
 
18858
 
        fi
18859
 
        if test x"$libdbfound" = x"no"
18860
 
        then
18861
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdb" >&5
18862
 
$as_echo_n "checking for libdb... " >&6; }
 
19179
        if test x"$bdb_libdir" = x""
 
19180
        then
18863
19181
                for d in $bdbdirs
18864
19182
                do
18865
 
                        if test -f $d/lib/lib$bdb_lib.a
18866
 
                        then
18867
 
                                bdb_libdir=$d/lib
18868
 
                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bdb_libdir" >&5
18869
 
$as_echo "$bdb_libdir" >&6; }
18870
 
                                libdbfound="yes"
18871
 
                                break
18872
 
                        fi
 
19183
                        saved_LDFLAGS="$LDFLAGS"
 
19184
                        saved_CPPFLAGS="$CPPFLAGS"
 
19185
                        saved_LIBS="$LIBS"
 
19186
                        LDFLAGS="$LDFLAGS -L$d/lib"
 
19187
                        CPPFLAGS="$CPPFLAGS -I$bdb_incdir"
 
19188
                        LIBS=""
 
19189
                        if test x"$libdbfound" = x"no"
 
19190
                        then
 
19191
                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_create" >&5
 
19192
$as_echo_n "checking for library containing db_create... " >&6; }
 
19193
if ${ac_cv_search_db_create+:} false; then :
 
19194
  $as_echo_n "(cached) " >&6
 
19195
else
 
19196
  ac_func_search_save_LIBS=$LIBS
 
19197
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19198
/* end confdefs.h.  */
 
19199
 
 
19200
/* Override any GCC internal prototype to avoid an error.
 
19201
   Use char because int might match the return type of a GCC
 
19202
   builtin and then its argument prototype would still apply.  */
 
19203
#ifdef __cplusplus
 
19204
extern "C"
 
19205
#endif
 
19206
char db_create ();
 
19207
int
 
19208
main ()
 
19209
{
 
19210
return db_create ();
 
19211
  ;
 
19212
  return 0;
 
19213
}
 
19214
_ACEOF
 
19215
for ac_lib in '' $bdb_lib; do
 
19216
  if test -z "$ac_lib"; then
 
19217
    ac_res="none required"
 
19218
  else
 
19219
    ac_res=-l$ac_lib
 
19220
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
19221
  fi
 
19222
  if ac_fn_c_try_link "$LINENO"; then :
 
19223
  ac_cv_search_db_create=$ac_res
 
19224
fi
 
19225
rm -f core conftest.err conftest.$ac_objext \
 
19226
    conftest$ac_exeext
 
19227
  if ${ac_cv_search_db_create+:} false; then :
 
19228
  break
 
19229
fi
 
19230
done
 
19231
if ${ac_cv_search_db_create+:} false; then :
 
19232
 
 
19233
else
 
19234
  ac_cv_search_db_create=no
 
19235
fi
 
19236
rm conftest.$ac_ext
 
19237
LIBS=$ac_func_search_save_LIBS
 
19238
fi
 
19239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_create" >&5
 
19240
$as_echo "$ac_cv_search_db_create" >&6; }
 
19241
ac_res=$ac_cv_search_db_create
 
19242
if test "$ac_res" != no; then :
 
19243
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
19244
  libdbfound="yes"
 
19245
fi
 
19246
 
 
19247
                                bdb_libdir=$d/lib
 
19248
                        fi
 
19249
                        if test x"$libdbfound" = x"no"
 
19250
                        then
 
19251
                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_open" >&5
 
19252
$as_echo_n "checking for library containing db_open... " >&6; }
 
19253
if ${ac_cv_search_db_open+:} false; then :
 
19254
  $as_echo_n "(cached) " >&6
 
19255
else
 
19256
  ac_func_search_save_LIBS=$LIBS
 
19257
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19258
/* end confdefs.h.  */
 
19259
 
 
19260
/* Override any GCC internal prototype to avoid an error.
 
19261
   Use char because int might match the return type of a GCC
 
19262
   builtin and then its argument prototype would still apply.  */
 
19263
#ifdef __cplusplus
 
19264
extern "C"
 
19265
#endif
 
19266
char db_open ();
 
19267
int
 
19268
main ()
 
19269
{
 
19270
return db_open ();
 
19271
  ;
 
19272
  return 0;
 
19273
}
 
19274
_ACEOF
 
19275
for ac_lib in '' $bdb_lib; do
 
19276
  if test -z "$ac_lib"; then
 
19277
    ac_res="none required"
 
19278
  else
 
19279
    ac_res=-l$ac_lib
 
19280
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
19281
  fi
 
19282
  if ac_fn_c_try_link "$LINENO"; then :
 
19283
  ac_cv_search_db_open=$ac_res
 
19284
fi
 
19285
rm -f core conftest.err conftest.$ac_objext \
 
19286
    conftest$ac_exeext
 
19287
  if ${ac_cv_search_db_open+:} false; then :
 
19288
  break
 
19289
fi
 
19290
done
 
19291
if ${ac_cv_search_db_open+:} false; then :
 
19292
 
 
19293
else
 
19294
  ac_cv_search_db_open=no
 
19295
fi
 
19296
rm conftest.$ac_ext
 
19297
LIBS=$ac_func_search_save_LIBS
 
19298
fi
 
19299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_open" >&5
 
19300
$as_echo "$ac_cv_search_db_open" >&6; }
 
19301
ac_res=$ac_cv_search_db_open
 
19302
if test "$ac_res" != no; then :
 
19303
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
19304
  libdbfound="yes"
 
19305
fi
 
19306
 
 
19307
                                bdb_libdir=$d/lib
 
19308
                        fi
 
19309
                        if test x"$libdbfound" = x"no"
 
19310
                        then
 
19311
                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbopen" >&5
 
19312
$as_echo_n "checking for library containing dbopen... " >&6; }
 
19313
if ${ac_cv_search_dbopen+:} false; then :
 
19314
  $as_echo_n "(cached) " >&6
 
19315
else
 
19316
  ac_func_search_save_LIBS=$LIBS
 
19317
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19318
/* end confdefs.h.  */
 
19319
 
 
19320
/* Override any GCC internal prototype to avoid an error.
 
19321
   Use char because int might match the return type of a GCC
 
19322
   builtin and then its argument prototype would still apply.  */
 
19323
#ifdef __cplusplus
 
19324
extern "C"
 
19325
#endif
 
19326
char dbopen ();
 
19327
int
 
19328
main ()
 
19329
{
 
19330
return dbopen ();
 
19331
  ;
 
19332
  return 0;
 
19333
}
 
19334
_ACEOF
 
19335
for ac_lib in '' $bdb_lib; do
 
19336
  if test -z "$ac_lib"; then
 
19337
    ac_res="none required"
 
19338
  else
 
19339
    ac_res=-l$ac_lib
 
19340
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
19341
  fi
 
19342
  if ac_fn_c_try_link "$LINENO"; then :
 
19343
  ac_cv_search_dbopen=$ac_res
 
19344
fi
 
19345
rm -f core conftest.err conftest.$ac_objext \
 
19346
    conftest$ac_exeext
 
19347
  if ${ac_cv_search_dbopen+:} false; then :
 
19348
  break
 
19349
fi
 
19350
done
 
19351
if ${ac_cv_search_dbopen+:} false; then :
 
19352
 
 
19353
else
 
19354
  ac_cv_search_dbopen=no
 
19355
fi
 
19356
rm conftest.$ac_ext
 
19357
LIBS=$ac_func_search_save_LIBS
 
19358
fi
 
19359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbopen" >&5
 
19360
$as_echo "$ac_cv_search_dbopen" >&6; }
 
19361
ac_res=$ac_cv_search_dbopen
 
19362
if test "$ac_res" != no; then :
 
19363
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
19364
  libdbfound="yes"
 
19365
fi
 
19366
 
 
19367
                                bdb_libdir=$d/lib
 
19368
                        fi
 
19369
 
 
19370
                        LDFLAGS="$saved_LDFLAGS"
 
19371
                        CPPFLAGS="$saved_CPPFLAGS"
 
19372
                        LIBS="$saved_LIBS"
18873
19373
                done
 
19374
        else
 
19375
                saved_LDFLAGS="$LDFLAGS"
 
19376
                saved_CPPFLAGS="$CPPFLAGS"
 
19377
                saved_LIBS="$LIBS"
 
19378
                LDFLAGS="$LDFLAGS -L$bdb_libdir"
 
19379
                CPPFLAGS="$CPPFLAGS -I$bdb_incdir"
 
19380
                LIBS=""
 
19381
                if test x"$libdbfound" = x"no"
 
19382
                then
 
19383
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_create" >&5
 
19384
$as_echo_n "checking for library containing db_create... " >&6; }
 
19385
if ${ac_cv_search_db_create+:} false; then :
 
19386
  $as_echo_n "(cached) " >&6
 
19387
else
 
19388
  ac_func_search_save_LIBS=$LIBS
 
19389
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19390
/* end confdefs.h.  */
 
19391
 
 
19392
/* Override any GCC internal prototype to avoid an error.
 
19393
   Use char because int might match the return type of a GCC
 
19394
   builtin and then its argument prototype would still apply.  */
 
19395
#ifdef __cplusplus
 
19396
extern "C"
 
19397
#endif
 
19398
char db_create ();
 
19399
int
 
19400
main ()
 
19401
{
 
19402
return db_create ();
 
19403
  ;
 
19404
  return 0;
 
19405
}
 
19406
_ACEOF
 
19407
for ac_lib in '' $bdb_lib; do
 
19408
  if test -z "$ac_lib"; then
 
19409
    ac_res="none required"
 
19410
  else
 
19411
    ac_res=-l$ac_lib
 
19412
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
19413
  fi
 
19414
  if ac_fn_c_try_link "$LINENO"; then :
 
19415
  ac_cv_search_db_create=$ac_res
 
19416
fi
 
19417
rm -f core conftest.err conftest.$ac_objext \
 
19418
    conftest$ac_exeext
 
19419
  if ${ac_cv_search_db_create+:} false; then :
 
19420
  break
 
19421
fi
 
19422
done
 
19423
if ${ac_cv_search_db_create+:} false; then :
 
19424
 
 
19425
else
 
19426
  ac_cv_search_db_create=no
 
19427
fi
 
19428
rm conftest.$ac_ext
 
19429
LIBS=$ac_func_search_save_LIBS
 
19430
fi
 
19431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_create" >&5
 
19432
$as_echo "$ac_cv_search_db_create" >&6; }
 
19433
ac_res=$ac_cv_search_db_create
 
19434
if test "$ac_res" != no; then :
 
19435
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
19436
  libdbfound="yes"
 
19437
fi
 
19438
 
 
19439
                fi
 
19440
                if test x"$libdbfound" = x"no"
 
19441
                then
 
19442
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_open" >&5
 
19443
$as_echo_n "checking for library containing db_open... " >&6; }
 
19444
if ${ac_cv_search_db_open+:} false; then :
 
19445
  $as_echo_n "(cached) " >&6
 
19446
else
 
19447
  ac_func_search_save_LIBS=$LIBS
 
19448
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19449
/* end confdefs.h.  */
 
19450
 
 
19451
/* Override any GCC internal prototype to avoid an error.
 
19452
   Use char because int might match the return type of a GCC
 
19453
   builtin and then its argument prototype would still apply.  */
 
19454
#ifdef __cplusplus
 
19455
extern "C"
 
19456
#endif
 
19457
char db_open ();
 
19458
int
 
19459
main ()
 
19460
{
 
19461
return db_open ();
 
19462
  ;
 
19463
  return 0;
 
19464
}
 
19465
_ACEOF
 
19466
for ac_lib in '' $bdb_lib; do
 
19467
  if test -z "$ac_lib"; then
 
19468
    ac_res="none required"
 
19469
  else
 
19470
    ac_res=-l$ac_lib
 
19471
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
19472
  fi
 
19473
  if ac_fn_c_try_link "$LINENO"; then :
 
19474
  ac_cv_search_db_open=$ac_res
 
19475
fi
 
19476
rm -f core conftest.err conftest.$ac_objext \
 
19477
    conftest$ac_exeext
 
19478
  if ${ac_cv_search_db_open+:} false; then :
 
19479
  break
 
19480
fi
 
19481
done
 
19482
if ${ac_cv_search_db_open+:} false; then :
 
19483
 
 
19484
else
 
19485
  ac_cv_search_db_open=no
 
19486
fi
 
19487
rm conftest.$ac_ext
 
19488
LIBS=$ac_func_search_save_LIBS
 
19489
fi
 
19490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_open" >&5
 
19491
$as_echo "$ac_cv_search_db_open" >&6; }
 
19492
ac_res=$ac_cv_search_db_open
 
19493
if test "$ac_res" != no; then :
 
19494
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
19495
  libdbfound="yes"
 
19496
fi
 
19497
 
 
19498
                fi
 
19499
                if test x"$libdbfound" = x"no"
 
19500
                then
 
19501
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbopen" >&5
 
19502
$as_echo_n "checking for library containing dbopen... " >&6; }
 
19503
if ${ac_cv_search_dbopen+:} false; then :
 
19504
  $as_echo_n "(cached) " >&6
 
19505
else
 
19506
  ac_func_search_save_LIBS=$LIBS
 
19507
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19508
/* end confdefs.h.  */
 
19509
 
 
19510
/* Override any GCC internal prototype to avoid an error.
 
19511
   Use char because int might match the return type of a GCC
 
19512
   builtin and then its argument prototype would still apply.  */
 
19513
#ifdef __cplusplus
 
19514
extern "C"
 
19515
#endif
 
19516
char dbopen ();
 
19517
int
 
19518
main ()
 
19519
{
 
19520
return dbopen ();
 
19521
  ;
 
19522
  return 0;
 
19523
}
 
19524
_ACEOF
 
19525
for ac_lib in '' $bdb_lib; do
 
19526
  if test -z "$ac_lib"; then
 
19527
    ac_res="none required"
 
19528
  else
 
19529
    ac_res=-l$ac_lib
 
19530
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
19531
  fi
 
19532
  if ac_fn_c_try_link "$LINENO"; then :
 
19533
  ac_cv_search_dbopen=$ac_res
 
19534
fi
 
19535
rm -f core conftest.err conftest.$ac_objext \
 
19536
    conftest$ac_exeext
 
19537
  if ${ac_cv_search_dbopen+:} false; then :
 
19538
  break
 
19539
fi
 
19540
done
 
19541
if ${ac_cv_search_dbopen+:} false; then :
 
19542
 
 
19543
else
 
19544
  ac_cv_search_dbopen=no
 
19545
fi
 
19546
rm conftest.$ac_ext
 
19547
LIBS=$ac_func_search_save_LIBS
 
19548
fi
 
19549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbopen" >&5
 
19550
$as_echo "$ac_cv_search_dbopen" >&6; }
 
19551
ac_res=$ac_cv_search_dbopen
 
19552
if test "$ac_res" != no; then :
 
19553
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
19554
  libdbfound="yes"
 
19555
fi
 
19556
 
 
19557
                fi
 
19558
 
 
19559
                LDFLAGS="$saved_LDFLAGS"
 
19560
                CPPFLAGS="$saved_CPPFLAGS"
 
19561
                LIBS="$saved_LIBS"
18874
19562
        fi
18875
19563
 
18876
19564
        if test x"$libdbfound" = x"no"
18877
19565
        then
18878
 
                as_fn_error $? "cannot find db_create or dbopen" "$LINENO" 5
 
19566
                as_fn_error $? "cannot find db_create, db_open or dbopen" "$LINENO" 5
18879
19567
        fi
18880
19568
 
18881
19569
        if test x"$bdb_incdir" != x""
18909
19597
if test x"$unboundpath" != x"no" -a x"$bdbrequired" = x"yes"
18910
19598
then
18911
19599
        saved_LDFLAGS="$LDFLAGS"
18912
 
        saved_CFLAGS="$CFLAGS"
 
19600
        saved_CPPFLAGS="$CPPFLAGS"
18913
19601
        LDFLAGS="$LDFLAGS $LIBDB_LIBDIRS $LIBUNBOUND_LIBDIRS"
18914
 
        CFLAGS="$CFLAGS $LIBDB_INCDIRS $LIBUNBOUND_INCDIRS"
 
19602
        CPPFLAGS="$CPPFLAGS $LIBDB_INCDIRS $LIBUNBOUND_INCDIRS"
18915
19603
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log_file in -ldb" >&5
18916
19604
$as_echo_n "checking for log_file in -ldb... " >&6; }
18917
19605
if ${ac_cv_lib_db_log_file+:} false; then :
18994
19682
fi
18995
19683
 
18996
19684
        LDFLAGS="$saved_LDFLAGS"
18997
 
        CFLAGS="$saved_CFLAGS"
 
19685
        CPPFLAGS="$saved_CPPFLAGS"
18998
19686
fi
18999
19687
 
19000
19688
 
19003
19691
LIBOPENDKIM_LIBS="$LIBCRYPTO_LIBS $LIBTRE_LIBS $LIBRESOLV"
19004
19692
# This (below) is just for the pkg-config file opendkim.pc.in
19005
19693
LIBOPENDKIM_LIBS_PKG="$LIBOPENDKIM_LIBS"
19006
 
LIBOPENDKIM_INC="$LIBCRYPTO_CPPFLAGS $LIBCRYPTO_CFLAGS $LIBTRE_CFLAGS"
 
19694
LIBOPENDKIM_INC="$LIBCRYPTO_CPPFLAGS $LIBCRYPTO_CFLAGS $LIBTRE_CPPFLAGS"
19007
19695
 
19008
19696
if test x"$enable_arlib" = x"yes"
19009
19697
then
19125
19813
 
19126
19814
 
19127
19815
 
 
19816
 
 
19817
# Check whether --with-erlang was given.
 
19818
if test "${with_erlang+set}" = set; then :
 
19819
  withval=$with_erlang; erlpath="$withval"
 
19820
else
 
19821
  erlpath="no"
 
19822
fi
 
19823
 
 
19824
 
 
19825
LIBERL_INCDIRS=""
 
19826
LIBERL_LIBDIRS=""
 
19827
LIBERL_LIBS=""
 
19828
erl_found="no"
 
19829
 
 
19830
if test \( x"$erlpath" = x"yes" -o x"$erlpath" = x"auto" \)
 
19831
then
 
19832
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Erlang" >&5
 
19833
$as_echo_n "checking for Erlang... " >&6; }
 
19834
        b=`erl -noshell -eval 'io:format("~s~n", [code:lib_dir()]).' -s erlang halt`
 
19835
        erlbase=`ls -d $b/erl_interface-* | tail -n1`
 
19836
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $erlbase" >&5
 
19837
$as_echo "$erlbase" >&6; }
 
19838
        LIBERL_INCDIRS="-I$erlbase/include"
 
19839
        LIBERL_LIBDIRS="-L$erlbase/lib"
 
19840
        LIBERL_LIBS="-pthread -lerl_interface -lei"
 
19841
 
 
19842
$as_echo "#define USE_ERLANG 1" >>confdefs.h
 
19843
 
 
19844
        erl_found="yes"
 
19845
fi
 
19846
 
 
19847
if test x"$erlpath" != x"yes" -a x"$erlpath" != x"auto" -a x"$erlpath" != x"no"
 
19848
then
 
19849
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Erlang" >&5
 
19850
$as_echo_n "checking for Erlang... " >&6; }
 
19851
        if test -f $erlpath/include/ei.h
 
19852
        then
 
19853
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $erlpath" >&5
 
19854
$as_echo "$erlpath" >&6; }
 
19855
                LIBERL_INCDIRS="-I$erlpath/include"
 
19856
                LIBERL_LIBDIRS="-L$erlpath/lib"
 
19857
                LIBERL_LIBS="-pthread -lerl_interface -lei"
 
19858
                erl_found="yes"
 
19859
        else
 
19860
                as_fn_error $? "not found at $erlpath" "$LINENO" 5
 
19861
        fi
 
19862
fi
 
19863
 
 
19864
if test x"$erl_found" = x"yes"
 
19865
then
 
19866
        saved_CPPFLAGS="$CPPFLAGS"
 
19867
        CPPFLAGS="$LIBERL_INCDIRS"
 
19868
 
 
19869
$as_echo "#define USE_ERLANG 1" >>confdefs.h
 
19870
 
 
19871
        LIBERL_MANNOTICE=""
 
19872
 
 
19873
else
 
19874
        LIBERL_MANNOTICE="(Not enabled for this installation.)"
 
19875
 
 
19876
fi
 
19877
 
 
19878
 if test x"$erl_found" = x"yes"; then
 
19879
  ERLANG_TRUE=
 
19880
  ERLANG_FALSE='#'
 
19881
else
 
19882
  ERLANG_TRUE='#'
 
19883
  ERLANG_FALSE=
 
19884
fi
 
19885
 
 
19886
 
 
19887
 
 
19888
 
 
19889
 
19128
19890
#
19129
19891
# final command line tweaks
19130
19892
#
19138
19900
#
19139
19901
# Finish up
19140
19902
#
19141
 
ac_config_files="$ac_config_files Makefile docs/Makefile contrib/Makefile contrib/convert/Makefile contrib/docs/Makefile contrib/init/Makefile contrib/init/generic/Makefile contrib/init/redhat/Makefile contrib/init/redhat/opendkim contrib/init/solaris/Makefile contrib/ldap/Makefile contrib/lua/Makefile contrib/patches/Makefile contrib/spec/Makefile contrib/spec/opendkim.spec contrib/stats/Makefile libar/ar.pc libar/Makefile libar/tests/Makefile libdkimrep/dkim-rep.pc libdkimrep/Makefile libdkimrep/tests/Makefile libopendkim/opendkim.pc libopendkim/Makefile libopendkim/docs/Makefile libopendkim/tests/Makefile librbl/rbl.pc librbl/Makefile libut/ut.pc libut/Makefile libvbr/vbr.pc libvbr/Makefile miltertest/Makefile opendkim/Makefile opendkim/opendkim.8 opendkim/opendkim-genkey opendkim/opendkim-genkey.8 opendkim/opendkim-genzone.8 opendkim/opendkim-lua.3 opendkim/opendkim-testadsp.8 opendkim/opendkim-testkey.8 opendkim/opendkim-stats.8 opendkim/opendkim-testmsg.8 opendkim/opendkim.conf.5 opendkim/opendkim.conf.simple opendkim/opendkim.conf.simple-verify opendkim/opendkim-atpszone.8 opendkim/opendkim-spam.1 opendkim/tests/Makefile stats/Makefile stats/opendkim-importstats.8 stats/opendkim-gengraphs stats/opendkim-genstats reputation/Makefile reputation/opendkim-genrates reputation/opendkim-genrates.8 reputation/opendkim-modtotals reputation/opendkim-modtotals.8 reputation/repute.pc"
 
19903
ac_config_files="$ac_config_files Makefile docs/Makefile contrib/Makefile contrib/convert/Makefile contrib/docs/Makefile contrib/init/Makefile contrib/init/generic/Makefile contrib/init/redhat/Makefile contrib/init/redhat/opendkim contrib/init/solaris/Makefile contrib/ldap/Makefile contrib/lua/Makefile contrib/patches/Makefile contrib/spec/Makefile contrib/spec/opendkim.spec contrib/stats/Makefile libar/ar.pc libar/Makefile libar/tests/Makefile libdkimrep/dkim-rep.pc libdkimrep/Makefile libdkimrep/tests/Makefile libopendkim/opendkim.pc libopendkim/Makefile libopendkim/docs/Makefile libopendkim/tests/Makefile librbl/rbl.pc librbl/Makefile libut/ut.pc libut/Makefile libvbr/vbr.pc libvbr/Makefile miltertest/Makefile opendkim/Makefile opendkim/opendkim.8 opendkim/opendkim-genkey opendkim/opendkim-genkey.8 opendkim/opendkim-genzone.8 opendkim/opendkim-lua.3 opendkim/opendkim-testadsp.8 opendkim/opendkim-testkey.8 opendkim/opendkim-stats.8 opendkim/opendkim-testmsg.8 opendkim/opendkim.conf.5 opendkim/opendkim.conf.simple opendkim/opendkim.conf.simple-verify opendkim/opendkim-atpszone.8 opendkim/opendkim-spam.1 opendkim/tests/Makefile stats/Makefile stats/opendkim-importstats.8 stats/opendkim-expire stats/opendkim-expire.8 stats/opendkim-gengraphs stats/opendkim-gengraphs.8 stats/opendkim-genstats stats/opendkim-genstats.8 stats/opendkim-reportstats reputation/Makefile reputation/opendkim-genrates reputation/opendkim-genrates.8 reputation/opendkim-modtotals reputation/opendkim-modtotals.8 reputation/repute.pc"
19142
19904
 
19143
19905
cat >confcache <<\_ACEOF
19144
19906
# This file is a shell script that caches the results of configure
19293
20055
  as_fn_error $? "conditional \"VBR\" was never defined.
19294
20056
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19295
20057
fi
19296
 
if test -z "${XTAGS_TRUE}" && test -z "${XTAGS_FALSE}"; then
19297
 
  as_fn_error $? "conditional \"XTAGS\" was never defined.
19298
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19299
 
fi
19300
20058
if test -z "${RPATH_TRUE}" && test -z "${RPATH_FALSE}"; then
19301
20059
  as_fn_error $? "conditional \"RPATH\" was never defined.
19302
20060
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19369
20127
  as_fn_error $? "conditional \"USE_SASL\" was never defined.
19370
20128
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19371
20129
fi
 
20130
if test -z "${USE_MDB_TRUE}" && test -z "${USE_MDB_FALSE}"; then
 
20131
  as_fn_error $? "conditional \"USE_MDB\" was never defined.
 
20132
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
20133
fi
19372
20134
if test -z "${USE_DB_OPENDKIM_TRUE}" && test -z "${USE_DB_OPENDKIM_FALSE}"; then
19373
20135
  as_fn_error $? "conditional \"USE_DB_OPENDKIM\" was never defined.
19374
20136
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19381
20143
  as_fn_error $? "conditional \"LIVE_TESTS\" was never defined.
19382
20144
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19383
20145
fi
 
20146
if test -z "${ERLANG_TRUE}" && test -z "${ERLANG_FALSE}"; then
 
20147
  as_fn_error $? "conditional \"ERLANG\" was never defined.
 
20148
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
20149
fi
19384
20150
 
19385
20151
: "${CONFIG_STATUS=./config.status}"
19386
20152
ac_write_fail=0
19790
20556
# report actual input values of CONFIG_FILES etc. instead of their
19791
20557
# values after options handling.
19792
20558
ac_log="
19793
 
This file was extended by OpenDKIM $as_me 2.5.2, which was
 
20559
This file was extended by OpenDKIM $as_me 2.6.0, which was
19794
20560
generated by GNU Autoconf 2.68.  Invocation command line was
19795
20561
 
19796
20562
  CONFIG_FILES    = $CONFIG_FILES
19856
20622
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19857
20623
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19858
20624
ac_cs_version="\\
19859
 
OpenDKIM config.status 2.5.2
 
20625
OpenDKIM config.status 2.6.0
19860
20626
configured by $0, generated by GNU Autoconf 2.68,
19861
20627
  with options \\"\$ac_cs_config\\"
19862
20628
 
20316
21082
    "opendkim/tests/Makefile") CONFIG_FILES="$CONFIG_FILES opendkim/tests/Makefile" ;;
20317
21083
    "stats/Makefile") CONFIG_FILES="$CONFIG_FILES stats/Makefile" ;;
20318
21084
    "stats/opendkim-importstats.8") CONFIG_FILES="$CONFIG_FILES stats/opendkim-importstats.8" ;;
 
21085
    "stats/opendkim-expire") CONFIG_FILES="$CONFIG_FILES stats/opendkim-expire" ;;
 
21086
    "stats/opendkim-expire.8") CONFIG_FILES="$CONFIG_FILES stats/opendkim-expire.8" ;;
20319
21087
    "stats/opendkim-gengraphs") CONFIG_FILES="$CONFIG_FILES stats/opendkim-gengraphs" ;;
 
21088
    "stats/opendkim-gengraphs.8") CONFIG_FILES="$CONFIG_FILES stats/opendkim-gengraphs.8" ;;
20320
21089
    "stats/opendkim-genstats") CONFIG_FILES="$CONFIG_FILES stats/opendkim-genstats" ;;
 
21090
    "stats/opendkim-genstats.8") CONFIG_FILES="$CONFIG_FILES stats/opendkim-genstats.8" ;;
 
21091
    "stats/opendkim-reportstats") CONFIG_FILES="$CONFIG_FILES stats/opendkim-reportstats" ;;
20321
21092
    "reputation/Makefile") CONFIG_FILES="$CONFIG_FILES reputation/Makefile" ;;
20322
21093
    "reputation/opendkim-genrates") CONFIG_FILES="$CONFIG_FILES reputation/opendkim-genrates" ;;
20323
21094
    "reputation/opendkim-genrates.8") CONFIG_FILES="$CONFIG_FILES reputation/opendkim-genrates.8" ;;