~ubuntu-branches/ubuntu/trusty/syslog-ng/trusty-proposed

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS), Gergely Nagy
  • Date: 2011-10-11 14:30:48 UTC
  • mfrom: (1.3.7)
  • Revision ID: package-import@ubuntu.com-20111011143048-r1iljux9xbvj3lwh
Tags: 3.3.1.dfsg-1
* New upstream release with important fixes from upstream git tree with
  non-free manpages removed.
* Drop syslog-ng.conf(5) (closes: #496521).
* syslog-ng(8) is generated, and does not mention -Q anymore
  (closes: #616069).
* Supports CAP_SYSLOG on recent kernels (closes: #630172).
* Does not use g_timeout_add_seconds anymore (closes: #609154).

[ Gergely Nagy <algernon@madhouse-project.org> ]
* Update debian/copyright to DEP-5 format.
* Simplified the logrotate file by merging identical entries.
* Include local configuration files from /etc/syslog-ng/conf.d/ (Closes:
  #609050).
* Update syslog-ng.conf to be fully 3.3 compliant.
* Compress both source and binaries (except the syslog-ng meta
  package) with xz, instead of gzip.
* Use dpkg triggers to restart syslog-ng when appropriate.
* Include DFSG-free manual pages for all binaries.
* Build with Hardening enabled.
* Mention syslog(3) in /etc/default/syslog-ng, instead of
  <linux/kernel.h> (Closes: #608605)
* Support 'status' in the init script.
  Patch from Peter Eisentraut <petere@debian.org> (Closes: #644458)
* Build-Depend on libevtlog-dev (>= 0.2.12-5~) for correct shlibs.
* Use [linux-any] in Build-Depends instead of hardcoded links.
  (Closes: #634715)
* Use $SYSLOGNG_OPTS in the init script when reloading syslog-ng.
  (Closes: #589081)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
EVTLOG_MIN_VERSION="0.2.12"
25
25
OPENSSL_MIN_VERSION="0.9.8"
26
26
LIBDBI_MIN_VERSION="0.8.0"
 
27
IVYKIS_MIN_VERSION="0.18"
 
28
JSON_C_MIN_VERSION="0.7"
 
29
JSON_GLIB_MIN_VERSION="0.12"
27
30
PCRE_MIN_VERSION="6.1"
 
31
LMC_MIN_VERSION="0.1.0"
28
32
 
29
33
dnl ***************************************************************************
30
34
dnl Initial setup
49
53
fi
50
54
 
51
55
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
 
56
_AM_PROG_TAR([ustar])
52
57
if test -n "$SNAPSHOT_VERSION"; then
53
58
        VERSION=$VERSION+$SNAPSHOT_VERSION
54
59
fi
77
82
   pidfiledir=$with_pidfile_dir)
78
83
 
79
84
AC_ARG_WITH(module-dir,
80
 
   [  --with-module-dir=path   Use path as the list of directories looked up when searching for modules],
 
85
   [  --with-module-dir=path   Use path as the directory to install modules into],
81
86
   moduledir=$with_module_dir)
 
87
 
 
88
AC_ARG_WITH(module-path,
 
89
   [  --with-module-path=path   Use path as the list of ':' separated directories looked up when searching for modules],
 
90
   module_path=$with_module_path)
82
91
        
83
92
AC_ARG_WITH(timezone-dir,
84
93
   [  --with-timezone-dir=path   Use path as the directory to get the timezone files],
85
94
   timezonedir=$with_timezone_dir)
86
95
 
 
96
AC_ARG_WITH(default-modules,
 
97
   [  --with-default-modules="mod1,mod2,mod3"   Use these as the list of automatically loaded modules],
 
98
   default_modules=$with_default_modules, default_modules="auto")
 
99
 
87
100
AC_ARG_WITH(ld-library-path,
88
101
   [  --with-ld-library-path=path  Set LD_LIBRARY_PATH during runtime to the value given],
89
102
   env_ld_library_path=$with_ld_library_path)
90
103
 
 
104
AC_ARG_WITH([systemdsystemunitdir],
 
105
   AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]))
 
106
 
91
107
AC_ARG_ENABLE(debug, 
92
108
              [  --enable-debug      Enable debugging code.],, enable_debug="no")
93
109
 
143
159
              [  --enable-gcov           Enable coverage profiling (default: no)]
144
160
              ,,enable_gcov="no")
145
161
 
 
162
AC_ARG_ENABLE(mongodb,
 
163
              [  --enable-mongodb        Enable mongodb destination (default: auto)]
 
164
              ,,enable_mongodb="auto")
 
165
 
 
166
AC_ARG_WITH(libmongo-client,
 
167
              [  --with-libmongo-client=[system/internal]
 
168
                                         Link against the system supplied or the builting libmongo-client library.]
 
169
              ,,with_libmongo_client="internal")
 
170
 
 
171
AC_ARG_WITH(ivykis,
 
172
              [  --with-ivykis=[system/internal]
 
173
                                         Link against the system supplied or the builting ivykis library.]
 
174
              ,,with_ivykis="internal")
 
175
 
 
176
AC_ARG_WITH(json,
 
177
              [  --with-json=[json-c/json-glib/auto]
 
178
                                         Use the JSON implementation specified]
 
179
              ,,with_json="auto")
 
180
 
 
181
AC_ARG_ENABLE(json,
 
182
              [  --enable-json           Enable support for JSON template formatting (default: auto)]
 
183
              ,,enable_json="auto")
 
184
 
146
185
AC_ARG_ENABLE(systemd,
147
186
              [  --enable-systemd        Enable systemd support (default: auto)]
148
187
              ,,enable_systemd="auto")
149
188
 
 
189
AC_ARG_WITH(compile-date,
 
190
              [  --without-compile-date  Do not include the compile date in the binary]
 
191
              ,wcmp_date="${withval}", wcmp_date="yes")
 
192
 
 
193
if test "x$wcmp_date" != "xno"; then
 
194
  wcmp_date="1"
 
195
else
 
196
  wcmp_date="0"
 
197
fi
 
198
 
 
199
patheval()
 
200
{
 
201
        OLD=$1
 
202
        NEW=`eval echo $1`
 
203
        while test "x$OLD" != "x$NEW"
 
204
        do
 
205
                OLD=$NEW
 
206
                NEW=`eval echo $OLD`
 
207
        done
 
208
        echo $OLD
 
209
}
150
210
 
151
211
dnl ***************************************************************************
152
212
dnl Checks for programs.
219
279
                CFLAGS="${CFLAGS} -fprofile-arcs -ftest-coverage"
220
280
        fi
221
281
fi
 
282
CFLAGS="${CFLAGS} -pthread"
222
283
 
223
284
AX_CFLAGS_GCC_OPTION(-Wno-pointer-sign, CFLAGS_NOWARN_POINTER_SIGN)
224
285
 
281
342
        linking_mode="mixed"
282
343
fi
283
344
 
 
345
dnl ***************************************************************************
 
346
dnl Is the __thread keyword available?
 
347
dnl ***************************************************************************
 
348
 
 
349
AC_LINK_IFELSE([AC_LANG_PROGRAM(
 
350
[[#include <pthread.h>
 
351
__thread int a;
 
352
]],
 
353
[a=0;])],
 
354
[ac_cv_have_tls=yes; AC_DEFINE_UNQUOTED(HAVE_THREAD_KEYWORD, 1, "Whether Transport Layer Security is supported by the system")])
284
355
 
285
356
dnl ***************************************************************************
286
357
dnl How to do static linking?
405
476
        AC_CHECK_LIB(cap, cap_set_proc, LIBCAP_LIBS="-lcap")
406
477
fi
407
478
 
408
 
AC_CHECK_FUNCS(strdup strtol strtoll strtoimax inet_aton inet_ntoa getopt_long getaddrinfo getutent pread pwrite strcasestr memrchr)
 
479
AC_CHECK_FUNCS(strdup strtol strtoll strtoimax inet_aton inet_ntoa getopt_long getaddrinfo getutent pread pwrite strcasestr memrchr clock_gettime localtime_r gmtime_r)
409
480
 
410
481
dnl ***************************************************************************
411
482
dnl libevtlog headers/libraries
485
556
dnl GLib headers/libraries
486
557
dnl ***************************************************************************
487
558
 
488
 
GLIB_ADDONS="gmodule-2.0"
489
 
if test "x$enable_sql" = "xyes"; then
490
 
        GLIB_ADDONS="${GLIB_ADDONS} gthread-2.0"
491
 
fi
492
 
 
 
559
GLIB_ADDONS="gmodule-2.0 gthread-2.0"
493
560
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_MIN_VERSION $GLIB_ADDONS,,)
494
561
 
495
562
if test "$linking_mode" != "dynamic"; then
504
571
 
505
572
old_CPPFLAGS=$CPPFLAGS
506
573
CPPFLAGS="$GLIB_CFLAGS"
 
574
old_LDFLAGS=$LDFLAGS
 
575
LDFLAGS="$LDFLAGS $GLIB_LIBS"
507
576
 
508
577
AC_CACHE_CHECK(sanity checking Glib headers,
509
578
               blb_cv_glib_sane,
521
590
blb_cv_glib_sane=no,
522
591
blb_cv_glib_sane=yes)])
523
592
CPPFLAGS=$old_CPPFLAGS
 
593
LDFLAGS=$old_LDFLAGS
524
594
 
525
595
if test "x$blb_cv_glib_sane" = "xno"; then
526
596
        AC_MSG_ERROR([Glib headers inconsistent with current compiler setting. You might be using 32 bit Glib with a 64 bit compiler, check PKG_CONFIG_PATH])
531
601
fi
532
602
 
533
603
dnl ***************************************************************************
 
604
dnl json headers/libraries
 
605
dnl ***************************************************************************
 
606
PKG_CHECK_MODULES(JSON_C, json >= $JSON_C_MIN_VERSION,, JSON_C_LIBS="")
 
607
PKG_CHECK_MODULES(JSON_GLIB, json-glib-1.0 >= $JSON_GLIB_MIN_VERSION,, JSON_GLIB_LIBS="")
 
608
 
 
609
dnl ***************************************************************************
534
610
dnl pcre headers/libraries
535
611
dnl ***************************************************************************
536
612
 
653
729
fi
654
730
 
655
731
dnl ***************************************************************************
 
732
dnl ivykis headers/libraries
 
733
dnl ***************************************************************************
 
734
 
 
735
if test "x$with_ivykis" = "xinternal"; then
 
736
        if test -f "$srcdir/lib/ivykis/lib/iv_main.c"; then
 
737
                AC_CONFIG_SUBDIRS([lib/ivykis])
 
738
 
 
739
                # these can only be used in lib as it assumes
 
740
                # the current directory just one below ivykis
 
741
 
 
742
                IVYKIS_LIBS="-Wl,--whole-archive -L\$(top_builddir)/lib/ivykis/lib -livykis -L\$(top_builddir)/lib/ivykis/modules -livykis-modules -Wl,--no-whole-archive"
 
743
                IVYKIS_CFLAGS="-I\$(top_srcdir)/lib/ivykis/lib/include -I\$(top_builddir)/lib/ivykis/lib/include -I\$(top_srcdir)/lib/ivykis/modules/include"
 
744
                IVYKIS_SUBDIRS=ivykis
 
745
 
 
746
                # LIBS to use when libtool is not applicable (when linking the main syslog-ng executable in mixed linking mode)
 
747
                IVYKIS_NO_LIBTOOL_LIBS="-Wl,--whole-archive -L\$(top_builddir)/lib/ivykis/lib/.libs -livykis -L\$(top_builddir)/lib/ivykis/modules/.libs -livykis-modules -Wl,--no-whole-archive"
 
748
        else
 
749
                AC_MSG_ERROR([Internal ivykis sources not found in lib/ivykis. This is a hard dependency, unable to build syslog-ng without them.])
 
750
        fi
 
751
else
 
752
        with_ivykis="system"
 
753
        PKG_CHECK_MODULES(IVYKIS, ivykis >= $IVYKIS_MIN_VERSION ivykis-modules,,)
 
754
 
 
755
        # in case we're using a system installed ivykis, we can link against
 
756
        # it even without libtool and without extra linker arguments (as
 
757
        # we're linking dynamically)
 
758
 
 
759
        IVYKIS_NO_LIBTOOL_LIBS="$IVYKIS_LIBS"
 
760
fi
 
761
 
 
762
dnl ***************************************************************************
 
763
dnl libmongo headers/libraries
 
764
dnl ***************************************************************************
 
765
 
 
766
if test "x$with_libmongo_client" = "xinternal"; then
 
767
        if test -f "$srcdir/modules/afmongodb/libmongo-client/src/mongo.h"; then
 
768
                AC_CONFIG_SUBDIRS([modules/afmongodb/libmongo-client])
 
769
 
 
770
                # these can only be used in modules/mongodb as it assumes
 
771
                # the current directory just one below libmongo-client
 
772
 
 
773
                LIBMONGO_LIBS="-L\$(builddir)/libmongo-client/src -lmongo-client"
 
774
                LIBMONGO_CFLAGS="-I\$(srcdir)/libmongo-client/src"
 
775
                LIBMONGO_SUBDIRS="libmongo-client"
 
776
        else
 
777
                AC_MSG_WARN([Internal libmongo-client sources not found in modules/afmongodb/libmongo-client])
 
778
                with_libmongo_client="no"
 
779
        fi
 
780
elif test "x$with_libmongo_client" = "xsystem"; then
 
781
        PKG_CHECK_MODULES(LIBMONGO, libmongo-client >= $LMC_MIN_VERSION,,with_libmongo_client="no")
 
782
fi
 
783
 
 
784
if test "x$with_libmongo_client" = "xno"; then
 
785
        enable_mongodb="no"
 
786
fi
 
787
 
 
788
dnl ***************************************************************************
656
789
dnl misc features to be enabled
657
790
dnl ***************************************************************************
658
791
 
705
838
        AC_MSG_RESULT([$enable_linux_caps])
706
839
fi
707
840
 
 
841
if test "x$enable_mongodb" = "xauto"; then
 
842
        AC_MSG_CHECKING(whether to enable mongodb destination support)
 
843
        if test "x$with_mongo_client" != "no"; then
 
844
                enable_mongodb="yes"
 
845
        else
 
846
                enable_mongodb="no"
 
847
        fi
 
848
        AC_MSG_RESULT([$enable_mongodb])
 
849
fi
 
850
 
 
851
if test "x$with_json" != "xjson-glib" -a "x$with_json" != "xjson-c" -a "x$with_json" != "xauto"; then
 
852
        # unknown --with-json argument
 
853
 
 
854
        AC_MSG_ERROR([Unknown JSON implementation ($with_json) specified, only json-glib, json-c and auto is known])
 
855
elif test \( "x$with_json" = "xauto" -o "x$with_json" = "xjson-c" \) -a -n "$JSON_C_LIBS" ;  then
 
856
        # json-c found and user requested json-c or auto
 
857
 
 
858
        JSON_LIBS=$JSON_C_LIBS
 
859
        JSON_CFLAGS=$JSON_C_CFLAGS
 
860
        AC_DEFINE_UNQUOTED(HAVE_JSON_C, 1, [Have json-c])
 
861
        with_json="json-c"
 
862
elif test \( "x$with_json" = "xauto" -o "x$with_json" = "xjson-glib" \) -a -n "$JSON_GLIB_LIBS"; then
 
863
        # json-glib found and user requested json-glib or auto
 
864
 
 
865
        JSON_LIBS=$JSON_GLIB_LIBS
 
866
        JSON_CFLAGS=$JSON_GLIB_CFLAGS
 
867
        AC_DEFINE_UNQUOTED(HAVE_JSON_GLIB, 1, [Have json-glib])
 
868
        with_json="json-glib"
 
869
 
 
870
elif test "x$with_json" = "xauto"; then
 
871
        # nothing found, but autodetect was selected
 
872
 
 
873
        JSON_LIBS=""
 
874
        JSON_CFLAGS=""
 
875
        with_json="no"
 
876
elif test "x$with_json" = "xjson-glib"; then
 
877
        AC_MSG_ERROR([Cannot find json-glib-1.0 >= $JSON_GLIB_MIN_VERSION: is pkg-config in path?])
 
878
elif test "x$with_json" = "xjson-c"; then
 
879
        AC_MSG_ERROR([Cannot find json-c version >= $JSON_C_MIN_VERSION: is pkg-config in path?])
 
880
fi
 
881
 
 
882
if test "x$enable_json" = "xauto"; then
 
883
        if test "x$with_json" = "xno"; then
 
884
                enable_json="no"
 
885
        else
 
886
                enable_json="yes"
 
887
        fi
 
888
elif test "x$enable_json" = "xyes" -a "x$with_json" = "xno"; then
 
889
        AC_MSG_ERROR([Cannot find json-c version >= $JSON_C_MIN_VERSION or json-glib-1.0 >= $JSON_GLIB_MIN_VERSION: is pkg-config in path?])
 
890
fi
 
891
 
708
892
if test "x$enable_systemd" = "xauto"; then
709
893
        if test "$ostype" = "Linux" -a "$blb_cv_c_so_acceptconn" = "yes"; then
710
894
                enable_systemd=yes
711
895
        else
712
896
                enable_systemd=no
713
897
        fi
714
 
fi
715
 
 
716
 
CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS $EVTLOG_CFLAGS $PCRE_CFLAGS $OPENSSL_CFLAGS $LIBNET_CFLAGS $LIBDBI_CFLAGS -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
 
898
 
 
899
fi
 
900
 
 
901
if test "x$enable_systemd" = "xyes"; then
 
902
        PKG_CHECK_MODULES(libsystemd_daemon, libsystemd-daemon >= 31,with_libsystemd="yes",with_libsystemd="no")
 
903
        if test "x$with_systemdsystemunitdir" = "xyes"; then
 
904
                # no arguments, just --with-systemdsystemunitdir
 
905
                systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd);
 
906
                if test "$systemdsystemunitdir" = ""; then
 
907
                        AC_MSG_ERROR([Error autodetecting systemdsystemunitdir, systemd pkg-config file not found?])
 
908
                fi
 
909
        elif test "$systemdsystemunitdir" = "no"; then
 
910
                # --without-systemdsystemunitdir was specified
 
911
                systemdsystemunitdir=""
 
912
        else
 
913
                systemdsystemunitdir="$with_systemdsystemunitdir"
 
914
        fi
 
915
fi
 
916
 
 
917
dnl ***************************************************************************
 
918
dnl default modules to be loaded
 
919
dnl ***************************************************************************
 
920
 
 
921
### The default set of modules are those that provide functionality that
 
922
### were provided in syslog-ng 3.2 and prior, unless explicitly overridden
 
923
### by the user.
 
924
###
 
925
### New plugins can be loaded by explicit "@module foo" lines in the
 
926
### configuration file, that's the preferred form.
 
927
 
 
928
if test "x$default_modules" = "xauto"; then
 
929
        default_modules="affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat"
 
930
        if test "x$enable_sql" = "xyes"; then
 
931
                default_modules="$default_modules,afsql"
 
932
        fi
 
933
        if test "x$enable_sun_streams" = "xyes"; then
 
934
                default_modules="$default_modules,afstreams"
 
935
        fi
 
936
fi
 
937
 
 
938
if test "x$module_path" = "x"; then
 
939
        module_path="`patheval $moduledir`"
 
940
fi
 
941
 
 
942
CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS $EVTLOG_CFLAGS $PCRE_CFLAGS $OPENSSL_CFLAGS $LIBNET_CFLAGS $LIBDBI_CFLAGS $IVYKIS_CFLAGS -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
717
943
 
718
944
########################################################
719
945
## NOTES: on how syslog-ng is linked
762
988
 
763
989
if test "x$linking_mode" = "xdynamic"; then
764
990
        SYSLOGNG_DEPS_LIBS="$LIBS $BASE_LIBS $GLIB_LIBS $EVTLOG_LIBS $RESOLV_LIBS $LIBCAP_LIBS $PCRE_LIBS $REGEX_LIBS $DL_LIBS"
765
 
        TOOL_DEPS_LIBS="$SYSLOGNG_DEPS_LIBS"
766
 
        CORE_DEPS_LIBS="$SYSLOGNG_DEPS_LIBS"
 
991
 
 
992
        if test "x$with_ivykis" = "xinternal"; then
 
993
                # when using the internal ivykis, we're linking it statically into libsyslog-ng.so
 
994
 
 
995
                TOOL_DEPS_LIBS="$SYSLOGNG_DEPS_LIBS"
 
996
                CORE_DEPS_LIBS="$SYSLOGNG_DEPS_LIBS $IVYKIS_LIBS"
 
997
        else
 
998
                # otherwise everything needs to link against libivykis.so
 
999
 
 
1000
                SYSLOGNG_DEPS_LIBS="$SYSLOGNG_DEPS_LIBS $IVYKIS_LIBS"
 
1001
 
 
1002
                TOOL_DEPS_LIBS="$SYSLOGNG_DEPS_LIBS"
 
1003
                CORE_DEPS_LIBS="$SYSLOGNG_DEPS_LIBS"
 
1004
        fi
767
1005
 
768
1006
        # syslog-ng binary is linked with the default link command (e.g. libtool)
769
1007
        SYSLOGNG_LINK='$(LINK)'
770
1008
else
771
 
        SYSLOGNG_DEPS_LIBS="$LIBS $BASE_LIBS $RESOLV_LIBS $LD_START_STATIC -Wl,--whole-archive $GLIB_LIBS $EVTLOG_LIBS $PCRE_LIBS $REGEX_LIBS -Wl,--no-whole-archive $LD_END_STATIC $LIBCAP_LIBS $DL_LIBS "
772
 
        TOOL_DEPS_LIBS="$LIBS $BASE_LIBS $GLIB_LIBS $EVTLOG_LIBS $RESOLV_LIBS $LIBCAP_LIBS $PCRE_LIBS $REGEX_LIBS $DL_LIBS"
 
1009
        SYSLOGNG_DEPS_LIBS="$LIBS $BASE_LIBS $RESOLV_LIBS $LD_START_STATIC -Wl,--whole-archive $GLIB_LIBS $EVTLOG_LIBS $PCRE_LIBS $REGEX_LIBS -Wl,--no-whole-archive $IVYKIS_NO_LIBTOOL_LIBS $LD_END_STATIC $LIBCAP_LIBS $DL_LIBS "
 
1010
        TOOL_DEPS_LIBS="$LIBS $BASE_LIBS $GLIB_LIBS $EVTLOG_LIBS $RESOLV_LIBS $LIBCAP_LIBS $PCRE_LIBS $REGEX_LIBS $IVYKIS_LIBS $DL_LIBS"
773
1011
        CORE_DEPS_LIBS=""
774
1012
 
775
1013
        # bypass libtool in case we want to do mixed linking because it
787
1025
        fi
788
1026
}
789
1027
 
790
 
patheval()
791
 
{
792
 
        OLD=$1
793
 
        NEW=`eval echo $1`
794
 
        while test "x$OLD" != "x$NEW"
795
 
        do
796
 
                OLD=$NEW
797
 
                NEW=`eval echo $OLD`
798
 
        done
799
 
        echo $OLD
800
 
}
801
1028
 
802
1029
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [package name])
803
1030
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [version number])
808
1035
AC_DEFINE_UNQUOTED(PATH_SYSCONFDIR, "`patheval $sysconfdir`", [sysconfdir])
809
1036
AC_DEFINE_UNQUOTED(PATH_LOCALSTATEDIR, "`patheval $localstatedir`", [local state directory])
810
1037
AC_DEFINE_UNQUOTED(PATH_PIDFILEDIR, "`patheval $pidfiledir`", [local state directory])
811
 
AC_DEFINE_UNQUOTED(PATH_MODULEDIR, "`patheval $moduledir`", [module directory])
812
1038
AC_DEFINE_UNQUOTED(PATH_DATAROOTDIR, "`patheval $datarootdir`", [data root directory])
813
1039
AC_DEFINE_UNQUOTED(PATH_DATADIR, "`patheval $datadir`", [data directory])
814
1040
AC_DEFINE_UNQUOTED(PATH_LIBEXECDIR, "`patheval $libexecdir`", [libexec directory])
818
1044
if test -n "$env_ld_library_path"; then
819
1045
        AC_DEFINE_UNQUOTED(ENV_LD_LIBRARY_PATH, "$env_ld_library_path", [set LD_LIBRARY_PATH to this value])
820
1046
fi
821
 
 
822
 
if test "x$enable_sql" = "xyes"; then
823
 
        enable_threads=yes
824
 
else
825
 
        enable_threads=no
826
 
fi
827
 
 
828
 
AC_DEFINE_UNQUOTED(ENABLE_THREADS, `enable_value $enable_threads`, [whether to enable threads support in the syslog-ng core])
 
1047
AC_DEFINE_UNQUOTED(MODULE_PATH, "$module_path", [module search path])
 
1048
AC_DEFINE_UNQUOTED(DEFAULT_MODULES, "$default_modules", [The default set of modules loaded if an old config version is used or autoload-compiled-modules is 1])
 
1049
 
 
1050
AC_DEFINE_UNQUOTED(WITH_COMPILE_DATE, $wcmp_date, [Include the compile date in the binary])
829
1051
AC_DEFINE_UNQUOTED(ENABLE_DEBUG, `enable_value $enable_debug`, [Enable debugging])
 
1052
AC_DEFINE_UNQUOTED(ENABLE_SSL, `enable_value $enable_ssl`, [Enable SSL support])
830
1053
AC_DEFINE_UNQUOTED(ENABLE_GPROF, `enable_value $enable_gprof`, [Enable gcc profiling])
831
1054
AC_DEFINE_UNQUOTED(ENABLE_MEMTRACE, `enable_value $enable_memtrace`, [Enable memtrace])
832
1055
AC_DEFINE_UNQUOTED(ENABLE_SPOOF_SOURCE, `enable_value $enable_spoof_source`, [Enable spoof source support])
836
1059
AC_DEFINE_UNQUOTED(ENABLE_PCRE, `enable_value $enable_pcre`, [Enable PCRE support])
837
1060
AC_DEFINE_UNQUOTED(ENABLE_ENV_WRAPPER, `enable_value $enable_env_wrapper`, [Enable environment wrapper support])
838
1061
AC_DEFINE_UNQUOTED(ENABLE_SYSTEMD, `enable_value $enable_systemd`, [Enable systemd support])
839
 
 
840
 
AC_DEFINE_UNQUOTED(ENABLE_SSL_MODULE, `enable_value $enable_ssl`, [SSL was detected and compiled in the afsocket module])
841
 
AC_DEFINE_UNQUOTED(ENABLE_SQL_MODULE, `enable_value $enable_sql`, [SQL was compiled as a module])
842
 
AC_DEFINE_UNQUOTED(ENABLE_SUN_STREAMS_MODULE, `enable_value $enable_sun_streams`, [SUN STREAMS device support was compiled as a module])
843
 
AC_DEFINE_UNQUOTED(ENABLE_PACCT_MODULE, `enable_value $enable_pacct`, [Process accounting format (pacct) was compiled as a module])
 
1062
AC_DEFINE_UNQUOTED(WITH_LIBSYSTEMD, `enable_value $with_libsystemd`, [Compile with libsystemd-daemon])
844
1063
 
845
1064
AM_CONDITIONAL(ENABLE_ENV_WRAPPER, [test "$enable_env_wrapper" = "yes"])
846
1065
AM_CONDITIONAL(ENABLE_SYSTEMD, [test "$enable_systemd" = "yes"])
 
1066
AM_CONDITIONAL(ENABLE_SYSTEMD_UNIT_INSTALL, [test "$systemdsystemunitdir" != ""])
847
1067
AM_CONDITIONAL(ENABLE_SSL, [test "$enable_ssl" = "yes"])
848
1068
AM_CONDITIONAL(ENABLE_SQL, [test "$enable_sql" = "yes"])
849
1069
AM_CONDITIONAL(ENABLE_SUN_STREAMS, [test "$enable_sun_streams" = "yes"])
850
1070
AM_CONDITIONAL(ENABLE_PACCT, [test "$enable_pacct" = "yes"])
 
1071
AM_CONDITIONAL(ENABLE_MONGODB, [test "$enable_mongodb" = "yes"])
 
1072
AM_CONDITIONAL(ENABLE_JSON, [test "$enable_json" = "yes"])
 
1073
AM_CONDITIONAL(WITH_LIBSYSTEMD, [test "$with_libsystemd" = "yes"])
851
1074
 
852
1075
# substitution into manual pages
853
1076
expanded_sysconfdir=[`patheval $sysconfdir | sed -e 's/-/\\\\-/g'`]
 
1077
expanded_moduledir=[`patheval $moduledir`]
854
1078
 
855
1079
AC_SUBST(timezonedir)
856
1080
AC_SUBST(pidfiledir)
857
1081
AC_SUBST(moduledir)
858
1082
AC_SUBST(expanded_sysconfdir)
 
1083
AC_SUBST(expanded_moduledir)
 
1084
AC_SUBST(systemdsystemunitdir)
859
1085
AC_SUBST(SYSLOGNG_LINK)
860
1086
AC_SUBST(SYSLOGNG_DEPS_LIBS)
861
1087
AC_SUBST(TOOL_DEPS_LIBS)
872
1098
AC_SUBST(ZLIB_CFLAGS)
873
1099
AC_SUBST(LIBDBI_LIBS)
874
1100
AC_SUBST(LIBDBI_CFLAGS)
 
1101
AC_SUBST(LIBMONGO_LIBS)
 
1102
AC_SUBST(LIBMONGO_CFLAGS)
 
1103
AC_SUBST(LIBMONGO_SUBDIRS)
 
1104
AC_SUBST(JSON_LIBS)
 
1105
AC_SUBST(JSON_CFLAGS)
 
1106
AC_SUBST(IVYKIS_SUBDIRS)
875
1107
AC_SUBST(RESOLV_LIBS)
876
1108
AC_SUBST(CFLAGS_NOWARN_POINTER_SIGN)
877
1109
 
883
1115
AC_OUTPUT(dist.conf
884
1116
          Makefile 
885
1117
          syslog-ng.spec
 
1118
          syslog-ng.pc
 
1119
          build/Makefile
886
1120
          lib/Makefile 
887
1121
          syslog-ng/Makefile 
888
1122
          modules/Makefile 
893
1127
          modules/affile/Makefile
894
1128
          modules/afprog/Makefile
895
1129
          modules/afuser/Makefile
 
1130
          modules/afmongodb/Makefile
896
1131
          modules/dbparser/Makefile
897
1132
          modules/dbparser/tests/Makefile
898
1133
          modules/csvparser/Makefile
901
1136
          modules/pacctformat/Makefile
902
1137
          modules/basicfuncs/Makefile
903
1138
          modules/convertfuncs/Makefile
 
1139
          modules/tfjson/Makefile
904
1140
          scripts/Makefile
905
1141
          scripts/update-patterndb
906
1142
          doc/Makefile
907
 
          doc/man/loggen.1
908
 
          doc/man/pdbtool.1
909
 
          doc/man/syslog-ng.8
910
 
          doc/man/syslog-ng.conf.5
911
 
          doc/man/syslog-ng-ctl.1
912
1143
          contrib/Makefile
913
1144
          scl/Makefile
914
1145
          tests/Makefile 
915
 
          debian/Makefile
916
1146
          tgz2build/Makefile
917
1147
          tests/unit/Makefile
918
1148
          tests/functional/Makefile
927
1157
echo "  linker flags                : $LDFLAGS $LIBS"
928
1158
echo "  prefix                      : $prefix"
929
1159
echo "  linking mode                : $linking_mode"
 
1160
echo "  __thread keyword            : ${ac_cv_have_tls:=no}"
 
1161
echo " Submodules:"
 
1162
echo "  ivykis                      : $with_ivykis"
 
1163
echo "  libmongo-client             : $with_libmongo_client"
930
1164
echo " Features:"
931
 
echo "  Sun STREAMS support (module): ${enable_sun_streams:=no}"
932
1165
echo "  Debug symbols               : ${enable_debug:=no}"
933
1166
echo "  GCC profiling               : ${enable_gprof:=no}"
934
1167
echo "  Memtrace                    : ${enable_memtrace:=no}"
935
1168
echo "  IPV6 support                : ${enable_ipv6:=no}"
936
1169
echo "  spoof-source support        : ${enable_spoof_source:=no}"
937
1170
echo "  tcp-wrapper support         : ${enable_tcp_wrapper:=no}"
938
 
echo "  SSL support (module)        : ${enable_ssl:=no}"
939
 
echo "  SQL support (module)        : ${enable_sql:=no}"
940
1171
echo "  Linux capability support    : ${enable_linux_caps:=no}"
941
1172
echo "  PCRE support                : ${enable_pcre:=no}"
942
1173
echo "  Env wrapper support         : ${enable_env_wrapper:=no}"
943
 
echo "  systemd support             : ${enable_systemd:=no}"
 
1174
echo "  systemd support             : ${enable_systemd:=no} (unit dir: ${systemdsystemunitdir:=none})"
 
1175
echo " Modules:"
 
1176
echo "  Module search path          : ${module_path}"
 
1177
echo "  Default module list         : ${default_modules}"
 
1178
echo "  Sun STREAMS support (module): ${enable_sun_streams:=no}"
 
1179
echo "  SSL support (module)        : ${enable_ssl:=no}"
 
1180
echo "  SQL support (module)        : ${enable_sql:=no}"
944
1181
echo "  PACCT module (EXPERIMENTAL) : ${enable_pacct:=no}"
 
1182
echo "  MongoDB destination (module): ${enable_mongodb:=no}"
 
1183
echo "  JSON support (module)       : ${enable_json:=no} (using ${with_json})"
945
1184
 
946
1185