3 dnl# Process this file with autoconf to produce a configure script.
12 AC_CONFIG_AUX_DIR(${BUILD_DIR}/autoconf)
13 AC_CONFIG_HEADER(src/config.h:autoconf/config.h.in)
15 dnl require a recent autoconf
19 dnl search for true and false programs.
20 AC_PATH_PROGS(TRUEPRG, true, :)
21 AC_PATH_PROGS(FALSEPRG, false, :)
25 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
26 DATE=`sed -n -e 's/^.*[ \t]*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
27 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
31 echo "configuring for bacula $VERSION ($DATE)"
34 dnl -------------------------------------------------------
35 dnl# Check for compiler.
36 dnl ------------------------------------------------------
40 AC_PROG_CC_C_O dnl Determine if C compiler support -c -o.
41 AC_PROG_GCC_TRADITIONAL dnl Determine if ioctl() need -traditional.
45 if test "x$BASECC" = xgcc; then
49 AC_PATH_PROG(CXX, $CXX, $CXX)
50 if test ! -e $CXX; then
51 AC_MSG_ERROR(Unable to find C++ compiler)
54 dnl -------------------------------------------------------
55 dnl# Check for programs.
56 dnl ------------------------------------------------------
59 AC_PATH_PROG(MV, mv, mv)
60 AC_PATH_PROG(RM, rm, rm)
61 AC_PATH_PROG(CP, cp, cp)
62 AC_PATH_PROG(SED, sed, sed)
63 AC_PATH_PROG(ECHO, echo, echo)
64 AC_PATH_PROG(CMP, cmp, cmp)
65 AC_PATH_PROG(TBL, tbl, tbl)
66 AC_PATH_PROG(AR, ar, ar)
67 dnl AC_PATH_PROG(RANLIB, ranlib, ranlib)
68 AC_PATH_PROG(OPENSSL, openssl, none)
69 AC_PATH_PROG(MTX, mtx, mtx)
70 AC_PATH_PROG(DD, dd, dd)
71 AC_PATH_PROG(MKISOFS, mkisofs, mkisofs)
72 AC_PATH_PROG(PYTHON, python, python)
73 AC_PATH_PROG(GROWISOFS, growisofs, growisofs)
74 AC_PATH_PROG(DVDRWMEDIAINFO, dvd+rw-mediainfo, dvd+rw-mediainfo)
75 AC_PATH_PROG(DVDRWFORMAT, dvd+rw-format, dvd+rw-format)
76 AC_PATH_PROG(PKGCONFIG, pkg-config, pkg-config)
77 AC_PATH_PROG(QMAKE, qmake, none)
78 AC_PATH_PROG(QMAKEQT4, qmake-qt4, none)
79 AC_ARG_VAR(WXCONFIG, [wx-config command. On some systems, you must set it to wx-config-2.6 to use wxWidgets 2.6.])
80 if test "x$WXCONFIG" = x; then
83 AC_PATH_PROG(WXCONFIG, ${WXCONFIG}, ${WXCONFIG})
84 AC_ARG_VAR(WXFLAGS, [Parameters to pass to wx-config (e.g. --unicode=no).])
85 AC_PATH_PROG(CDRECORD, cdrecord, cdrecord)
86 AC_PATH_PROG(PIDOF, pidof, pidof)
88 # Some AWK programs fail, so test it and warn the user
89 if echo xfoo | $AWK 'BEGIN { prog=ARGV[1]; ARGC=1 }
90 { if ((prog == $2) || (("(" prog ")") == $2) ||
91 (("[" prog "]") == $2) ||
92 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
94 AC_MSG_ERROR([!!!!!!!!! WARNING !!!!!!!!!!!!!!
95 The regex engine of $AWK is too broken to be used you
96 might want to install GNU AWK.
97 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!])
100 AC_PATH_PROG(AWK, $THE_AWK, $THE_AWK)
103 test -n "$ARFLAG" || ARFLAGS="cr"
110 AC_SUBST(LOCAL_CFLAGS)
111 AC_SUBST(LOCAL_LDFLAGS)
114 dnl --------------------------------------------------
115 dnl Bacula OP Sys determination (see aclocal.m4)
116 dnl --------------------------------------------------
119 # -----------------------------------------------------------
120 dnl Bacula OPSys Distribution determination (see aclocal.m4)
121 # ----------------------------------------------------------
122 BA_CHECK_OPSYS_DISTNAME
124 # --------------------------------------------------
125 # Suppport for gettext (translations)
126 # By default, $datadir is ${prefix}/share
127 # --------------------------------------------------
128 AM_GNU_GETTEXT([external])
129 if test x${prefix} = xNONE ; then
130 if test `eval echo ${datadir}` = NONE/share ; then
135 # ------------------------------------------------------------------
136 # If the user has not set --prefix, we set our default to nothing.
137 # In this case, if the user has not set --sysconfdir, we set it
138 # to the package default of /etc/bacula. If either --prefix or
139 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
140 # ------------------------------------------------------------------
141 if test x${prefix} = xNONE ; then
142 if test `eval echo ${sysconfdir}` = NONE/etc ; then
143 sysconfdir=/etc/bacula
147 sysconfdir=`eval echo ${sysconfdir}`
148 datadir=`eval echo ${datadir}`
149 localedir=`eval echo ${datadir}/locale`
150 AC_DEFINE_UNQUOTED(LOCALEDIR, "$localedir")
151 AC_DEFINE_UNQUOTED(SYSCONFDIR, "$sysconfdir")
153 # -------------------------------------------------------------------------
154 # If the user has not set --exec-prefix, we default to ${prefix}
155 # -------------------------------------------------------------------------
156 if test x${exec_prefix} = xNONE ; then
157 exec_prefix=${prefix}
160 # ------------------------------------------------------------------
161 # If the user has not set --sbindir, we set our default as /sbin
162 # ------------------------------------------------------------------
163 if test x$sbindir = x'${exec_prefix}/sbin' ; then
164 sbindir=${exec_prefix}/sbin
166 sbindir=`eval echo ${sbindir}`
169 # -------------------------------------------------------------------------
170 # If the user has not set --mandir, we default to /usr/share/man
171 # -------------------------------------------------------------------------
172 if test x$mandir = x'${prefix}/man' ; then
173 mandir=/usr/share/man
177 AC_PATH_PROGS(MSGFMT, msgfmt, no)
178 if test "$MSGFMT" = "no"
180 echo 'msgfmt program not found, disabling NLS !'
182 USE_INCLUDED_LIBINTL=no
190 support_postgresql=no
192 support_smartalloc=yes
197 support_wx_console=no
202 support_static_tools=no
205 support_static_dir=no
206 support_static_cons=no
215 dnl# --------------------------------------------------------------------------
216 dnl# CHECKING COMMAND LINE OPTIONS
217 dnl# --------------------------------------------------------------------------
219 # -------------------------------------------
220 # gnome (default off)
221 # -------------------------------------------
223 [ --enable-gnome enable build of bgnome-console GUI [disabled]],
224 [if test x$enableval = xyes; then
229 if test x$support_gnome = xyes; then
230 abc=`$PKGCONFIG --exists libgnomeui-2.0`
232 if test $pkg = 0; then
233 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
234 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
235 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
236 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
237 AC_SUBST(GNOME_INCLUDEDIR)
238 AC_SUBST(GNOMEUI_LIBS)
239 AC_SUBST(GNOME_LIBDIR)
241 GNOME_DIR=src/gnome2-console
242 gnome_version="Version 2.x"
244 AC_MSG_ERROR(Unable to find Gnome 2 installation)
249 # -------------------------------------------
251 # -------------------------------------------
253 [ --enable-bat enable build of bat Qt4 GUI [disabled]],
254 [if test x$enableval = xyes; then
255 AC_DEFINE(HAVE_BAT, 1, [Set if Bacula bat Qt4 GUI support enabled])
260 if test x$support_bat = xyes; then
261 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
263 if test $pkg = 0; then
264 BAT_DIR=src/qt-console
266 AC_MSG_ERROR(Unable to find Qt4 installation needed by bat)
271 # If bat is enabled, we need the qwt library
278 if test x$support_bat = xyes; then
279 AC_MSG_CHECKING(for qwt support)
281 [ --with-qwt@<:@=DIR@:>@ specify qwt library directory],
288 if test -f ${with_qwt}/include/qwt.h; then
289 QWT_INC="${with_qwt}/include"
290 QWT_LDFLAGS="-L${with_qwt}/lib"
299 # Search in standard places, or --with-qwt not specified
301 if test $no_qwt = no; then
302 if test x$QWT_INC = x; then
303 for root in /usr /usr/local; do
304 for ver in qwt qwt5 qwt-qt4; do
305 if test -f ${root}/include/${ver}/qwt.h; then
306 QWT_INC="${root}/include/${ver}"
307 if test -d ${root}/lib64/; then
308 QWT_LDFLAGS="-L${root}/lib64"
310 QWT_LDFLAGS="-L${root}/lib"
321 if test x$QWT_INC = x; then
324 AC_DEFINE(HAVE_QWT, 1, [Set if bat QWT library found])
331 AC_SUBST(QWT_LDFLAGS)
336 # -------------------------------------------
337 # bwx-console (default off)
338 # -------------------------------------------
339 AC_ARG_ENABLE(bwx-console,
340 [ --enable-bwx-console enable build of wxWidgets console [disabled]],
341 [if test x$enableval = xyes; then
342 support_wx_console=yes
346 if test x$support_wx_console = xyes; then
347 abc=`$WXCONFIG $WXFLAGS --cppflags`
349 if test $pkg = 0; then
350 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
351 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
352 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
354 AC_SUBST(WXCONS_CPPFLAGS)
355 AC_SUBST(WXCONS_LDFLAGS)
356 WX_DIR=src/wx-console
359 echo "wx-config program not found. bwx-console disabled."
361 support_wx_console=no
367 # -------------------------------------------
368 # tray-monitor (default off)
369 # -------------------------------------------
370 AC_ARG_ENABLE(tray-monitor,
371 [ --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) [disabled]],
372 [if test x$enableval = xyes; then
373 support_tray_monitor=yes
377 if test x$support_tray_monitor = xyes; then
378 abc=`$PKGCONFIG --exists gtk+-2.0`
380 if test $pkg = 0; then
381 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
382 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
383 AC_SUBST(TRAY_MONITOR_CPPFLAGS)
384 AC_SUBST(TRAY_MONITOR_LDFLAGS)
385 TRAY_MONITOR_DIR=src/tray-monitor
386 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
388 if test $pkg = 0; then
389 AC_DEFINE(HAVE_GTK_2_4, 1, [Set if you have GTK 4.2 or greater loaded])
393 AC_SUBST(TRAY_MONITOR_DIR)
395 # -------------------------------------------
396 # smartalloc (default off)
397 # -------------------------------------------
398 AC_ARG_ENABLE(smartalloc,
399 [ --enable-smartalloc enable smartalloc debugging support [disabled]],
400 [if test x$enableval = xno; then
401 support_smartalloc=no
404 if test x$support_smartalloc = xyes; then
405 AC_DEFINE(SMARTALLOC, 1, [Set if you want Smartalloc enabled])
408 # -------------------------------------------
409 # static-tools (default off)
410 # -------------------------------------------
411 AC_ARG_ENABLE(static-tools,
412 [ --enable-static-tools enable static tape tools [disabled]],
413 [if test x$enableval = xyes; then
414 support_static_tools=yes
418 if test x$support_static_tools = xyes; then
419 TTOOL_LDFLAGS="-static"
421 AC_SUBST(TTOOL_LDFLAGS)
423 # -------------------------------------------
424 # static-fd (default off)
425 # -------------------------------------------
426 AC_ARG_ENABLE(static-fd,
427 [ --enable-static-fd enable static File daemon [disabled]],
428 [if test x$enableval = xyes; then
429 support_static_fd=yes
433 if test x$support_static_fd = xyes; then
434 STATIC_FD="static-bacula-fd"
438 # -------------------------------------------
439 # static-sd (default off)
440 # -------------------------------------------
441 AC_ARG_ENABLE(static-sd,
442 [ --enable-static-sd enable static Storage daemon [disabled]],
443 [if test x$enableval = xyes; then
444 support_static_sd=yes
448 if test x$support_static_sd = xyes; then
449 STATIC_SD="static-bacula-sd"
453 # -------------------------------------------
454 # static-dir (default off)
455 # -------------------------------------------
456 AC_ARG_ENABLE(static-dir,
457 [ --enable-static-dir enable static Director [disabled]],
458 [if test x$enableval = xyes; then
459 support_static_dir=yes
463 if test x$support_static_dir = xyes; then
464 STATIC_DIR="static-bacula-dir"
468 # -------------------------------------------
469 # static-cons (default off)
470 # -------------------------------------------
471 AC_ARG_ENABLE(static-cons,
472 [ --enable-static-cons enable static Console [disabled]],
473 [if test x$enableval = xyes; then
474 support_static_cons=yes
480 if test x$support_static_cons = xyes; then
481 STATIC_CONS="static-bconsole"
482 STATIC_GNOME_CONS="static-bgnome-console"
483 STATIC_WX_CONS="static-bwx-console"
485 AC_SUBST(STATIC_CONS)
486 AC_SUBST(STATIC_GNOME_CONS)
487 AC_SUBST(STATIC_WX_CONS)
489 # -------------------------------------------
490 # client_only (default off)
491 # -------------------------------------------
492 AC_ARG_ENABLE(client-only,
493 [ --enable-client-only build client (File daemon) only [disabled]],
494 [if test x$enableval = xyes; then
495 build_client_only=yes
499 if test x$build_client_only = xno; then
506 # -------------------------------------------
507 # director (default on)
508 # -------------------------------------------
509 AC_ARG_ENABLE(build-dird,
510 [ --enable-build-dird enable building of dird (Director) [enabled]],
511 [if test x$enableval = xno; then
514 if test x$build_dird = xyes; then
519 DIR_TOOLS="NODIRTOOLS"
524 # -------------------------------------------
525 # stored (default on)
526 # -------------------------------------------
527 AC_ARG_ENABLE(build-stored,
528 [ --enable-build-stored enable building of stored (Storage daemon) [enabled]],
529 [if test x$enableval = xno; then
532 if test x$build_stored = xyes; then
533 STORED_DIR="src/stored"
539 # ---------------------------------------------------
540 # Check for conio (Bacula readline substitute)(
541 # ---------------------------------------------------
542 # this allows you to turn it completely off
544 [ --disable-conio disable conio support [enabled]
546 [if test x$enableval = xno; then
552 # ---------------------------------------------------
553 # Check for IPv6 support
554 # ---------------------------------------------------
555 # this allows you to turn it completely off
558 [ --enable-ipv6 enable ipv6 support [enabled]
560 [if test x$enableval = xno; then
565 if test x$support_ipv6 = xyes; then
566 AC_TRY_LINK([ #include <sys/types.h>
567 #include <sys/socket.h>
568 #include <netinet/in.h>], [struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;],
569 [support_ipv6=yes], [support_ipv6=no])
572 if test x$support_ipv6 = xyes; then
573 AC_DEFINE(HAVE_IPV6,1,[Whether to enable IPv6 support])
579 if test x$support_conio = xyes; then
580 AC_CHECK_HEADER(termcap.h,
581 [ AC_CHECK_LIB(termcap, tgetent,
582 [ CONS_LIBS="-ltermcap"
587 AC_DEFINE(HAVE_CONIO, 1, [Set if Bacula conio support enabled])
589 [ AC_CHECK_LIB(ncurses, tgetent,
590 [ CONS_LIBS="-lncurses"
595 AC_DEFINE(HAVE_CONIO, 1, [Set if Bacula conio support enabled])
600 AC_CHECK_HEADERS(curses.h)
601 AC_CHECK_HEADER(term.h,
602 [ AC_CHECK_LIB(curses, tgetent,
603 [ CONS_LIBS="-lcurses"
608 AC_DEFINE(HAVE_CONIO, 1, [Set if Bacula conio support enabled])
611 [ echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
620 # ---------------------------------------------------
621 # Check for readline support/directory (default off)
622 # ---------------------------------------------------
623 # this allows you to turn it completely off
624 AC_ARG_ENABLE(readline,
625 [ --disable-readline disable readline support [disable]
627 [if test x$enableval = xno; then
633 if test x$support_readline = xyes; then
634 AC_ARG_WITH(readline,
635 [ --with-readline@<:@=DIR@:>@ specify readline library directory],
637 case "$with_readline" in
640 if test -f ${with_readline}/readline.h; then
641 CONS_INC="-I${with_readline}"
642 CONS_LDFLAGS="-L$with_readline"
643 elif test -f ${with_readline}/include/readline/readline.h; then
644 CONS_INC="-I${with_readline}/include/readline"
645 CONS_LDFLAGS="-L${with_readline}/lib"
646 with_readline="${with_readline}/include/readline"
648 with_readline="/usr/include/readline"
650 AC_CHECK_HEADER(${with_readline}/readline.h,
651 [ AC_DEFINE(HAVE_READLINE, 1, [Set to enable readline support])
652 CONS_LIBS="-lreadline -lhistory -ltermcap"
656 echo "readline.h not found. readline turned off ..."
663 # check for standard readline library
664 AC_CHECK_HEADER(/usr/include/readline/readline.h,
665 [ AC_DEFINE(HAVE_READLINE, 1, [Set to enable readline support])
667 CONS_INC="-I/usr/include/readline"
668 CONS_LIBS="-lreadline -ltermcap"
670 # Did not find standard library, so try Bacula's default
671 AC_CHECK_HEADER(${TOP_DIR}/depkgs/readline/readline.h,
672 [ AC_DEFINE(HAVE_READLINE, 1, [Set to enable readline support])
674 CONS_INC="-I${TOP_DIR}/depkgs/readline"
675 CONS_LIBS="-lreadline -lhistory -ltermcap"
676 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
677 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
680 echo "readline.h not found. readline turned off ..."
696 AC_SUBST(CONS_LDFLAGS)
697 AC_SUBST(READLINE_SRC)
699 # Minimal stuff for readline Makefile configuration
704 AC_CHECK_FUNCS(strcasecmp select setenv putenv tcgetattr lstat lchown)
705 AC_CHECK_FUNCS(nanosleep nl_langinfo)
706 AC_CHECK_HEADERS(varargs.h)
708 # End of readline/conio stuff
709 # -----------------------------------------------------------------------
711 # -----------------------------------------------------------------------
712 # Check for Python support
714 AC_MSG_CHECKING(for Python support)
717 --with-python@<:@=DIR@:>@ Include Python support. DIR is the Python base
718 install directory, default is to search through
719 a number of common places for the Python files.],
723 if test "$withval" != "no"; then
724 if test "$withval" = "yes"; then
725 for python_root in /usr /usr/local /usr/sfw; do
726 for ver in python2.2 python2.3 python2.4 python2.5; do
727 if test -f $python_root/include/${ver}/Python.h; then
728 PYTHON_INCDIR=-I$python_root/include/${ver}
729 if test -d $python_root/lib64/${ver}/config; then
730 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
732 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
738 if test x$PYTHON_INCDIR = x; then
739 if test -f $prefix/include/Python.h; then
740 PYTHON_INCDIR=-I$prefix/include
741 if test -d $prefix/lib64/config; then
742 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
744 PYTHON_LIBS="-L$prefix/lib/config -lpython"
748 AC_MSG_ERROR(Unable to find Python.h in standard locations)
752 if test -f $withval/Python.h; then
753 PYTHON_INCDIR=-I$withval
754 PYTHON_LIBS="-L$withval/config -lpython"
755 elif test -f $withval/include/Python.h; then
756 PYTHON_INCDIR=-I$withval/include
757 if test -d $withval/lib64/config; then
758 PYTHON_LIBS="-L$withval/lib64/config -lpython"
760 PYTHON_LIBS="-L$withval/lib/config -lpython"
762 elif test -f $withval/include/python/Python.h; then
763 PYTHON_INCDIR=-I$withval/include/python
764 if test -d $withval/lib64/python/config; then
765 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
767 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
771 AC_MSG_ERROR(Invalid Python directory $withval - unable to find Python.h under $withval)
774 AC_DEFINE([HAVE_PYTHON], 1)
777 AC_MSG_NOTICE(checking for more Python libs)
778 saved_LIBS="$LIBS"; LIBS=
779 AC_SEARCH_LIBS(shm_open, [rt])
780 AC_CHECK_LIB(util, openpty)
781 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
789 AC_SUBST(PYTHON_LIBS)
790 AC_SUBST(PYTHON_INCDIR)
793 # Find where sockets are (especially for Solaris)
794 # Do this before the TCP Wrappers test since tcp wrappers
795 # uses the socket library and some linkers are stupid.
797 AC_CHECK_FUNC(socket,
798 AC_MSG_RESULT(using libc's socket),
799 AC_CHECK_LIB(xnet,socket)
800 AC_CHECK_LIB(socket,socket)
801 AC_CHECK_LIB(inet,socket))
804 # -----------------------------------------------------------
805 # Check whether user wants TCP wrappers support (default off)
806 # -----------------------------------------------------------
809 AC_ARG_WITH(tcp-wrappers,
810 [ --with-tcp-wrappers@<:@=DIR@:>@ enable tcpwrappers support],
812 if test "x$withval" != "xno" ; then
814 LIBS="$saved_LIBS -lwrap"
815 AC_MSG_CHECKING(for libwrap)
816 AC_SEARCH_LIBS(nanosleep, [rt])
818 [ #include <sys/types.h>
820 int deny_severity = 0;
821 int allow_severity = 0;
822 struct request_info *req; ],
823 [ hosts_access(req); ],
826 AC_DEFINE(HAVE_LIBWRAP, 1, [Set to enable libwraper support])
831 LIBS="$saved_LIBS -lwrap -lnsl"
832 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
834 [ #include <sys/types.h>
836 int deny_severity = 0;
837 int allow_severity = 0;
838 struct request_info *req; ],
839 [ hosts_access(req); ],
842 AC_DEFINE(HAVE_LIBWRAP, 1, [Set to enable libwraper support])
847 [AC_MSG_ERROR([*** libwrap missing]) ] ]
854 # -----------------------------------------------------------
855 # Check whether OpenSSL is available
856 # -----------------------------------------------------------
857 AC_MSG_CHECKING([for OpenSSL])
858 dnl The following uses quadrigraphs:
862 AC_HELP_STRING([--with-openssl@<:@=DIR@:>@], [Include OpenSSL support. DIR is the OpenSSL base]),
863 [with_openssl_directory=${withval}])
865 if test "x$with_openssl_directory" != "x"; then
866 OPENSSL_LIBS="-lssl -lcrypto"
869 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
870 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
871 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
875 saved_CFLAGS="${CFLAGS}"
876 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
877 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
879 AC_TRY_LINK([ #include <openssl/ssl.h> ],
880 [ CRYPTO_set_id_callback(NULL); ],
888 AC_TRY_LINK([ #include <openssl/evp.h> ],
890 [ ac_cv_openssl_sha2="yes" ],
891 [ ac_cv_openssl_sha2="no" ]
894 # Solaris disables greater than 128+ bit encryption in their OpenSSL
895 # implementation, presumably for export reasons. If 192bit AES
896 # is available, we assume that we're running with a 'non-export'
898 AC_TRY_LINK([ #include <openssl/evp.h> ],
899 [ EVP_aes_192_cbc(); ],
900 [ ac_cv_openssl_export="no" ],
901 [ ac_cv_openssl_export="yes" ]
905 CFLAGS="${saved_CFLAGS}"
907 if test "$support_tls" = "yes"; then
908 AC_DEFINE(HAVE_OPENSSL, 1, [Define if OpenSSL library is available])
909 AC_DEFINE(HAVE_TLS, 1, [Define if TLS support should be enabled])
910 AC_DEFINE(HAVE_CRYPTO, 1, [Define if encryption support should be enabled])
913 if test "$ac_cv_openssl_sha2" = "yes"; then
914 AC_DEFINE(HAVE_SHA2, 1, [Define if the SHA-2 family of digest algorithms is available])
917 if test "$ac_cv_openssl_export" = "yes"; then
918 AC_DEFINE(HAVE_OPENSSL_EXPORT_LIBRARY, 1, [Define if the OpenSSL library is export-contrained to 128bit ciphers])
927 AC_MSG_RESULT([$support_tls])
928 AC_SUBST(OPENSSL_LIBS)
929 AC_SUBST(OPENSSL_INC)
932 # -----------------------------------------------------------
933 # dlopen is needed for plugins
934 # -----------------------------------------------------------
935 AC_SEARCH_LIBS(dlopen, [dl])
937 # ------------------------------------------
938 # Where to place working dir
939 # ------------------------------------------
940 working_dir=`eval echo ${prefix}/var/bacula/working`
941 AC_ARG_WITH(working-dir,
942 [ --with-working-dir=PATH specify path of Bacula working directory],
944 if test "x$withval" != "xno" ; then
950 AC_SUBST(working_dir)
952 # ------------------------------------------------------------------
953 # If the user has not set archivedir, we set our default as /tmp
954 # ------------------------------------------------------------------
956 AC_ARG_WITH(archivedir,
957 [ --with-archivedir=PATH specify path of SD archive directory],
959 if test "x$withval" != "xno" ; then
969 # ------------------------------------------
970 # Where to place scriptdir (script files)
971 # ------------------------------------------
972 scriptdir=`eval echo ${sysconfdir}`
973 AC_ARG_WITH(scriptdir,
974 [ --with-scriptdir=PATH specify path of Bacula scripts directory],
976 if test "x$withval" != "xno" ; then
985 # ------------------------------------------
986 # Where to place plugindir (script files)
987 # ------------------------------------------
988 plugindir=`eval echo ${sysconfdir}`
989 AC_ARG_WITH(plugindir,
990 [ --with-plugindir=PATH specify path of Bacula plugins directory],
992 if test "x$withval" != "xno" ; then
1001 # ------------------------------------------
1002 # Where to send dump email
1003 # ------------------------------------------
1004 dump_email=root@localhost
1005 AC_ARG_WITH(dump-email,
1006 [ --with-dump-email=EMAIL dump email address],
1008 if test "x$withval" != "xno" ; then
1014 AC_SUBST(dump_email)
1016 # ------------------------------------------
1017 # Where to send job email
1018 # ------------------------------------------
1019 job_email=root@localhost
1020 AC_ARG_WITH(job-email,
1021 [ --with-job-email=EMAIL job output email address],
1023 if test "x$withval" != "xno" ; then
1031 # ------------------------------------------
1032 # Where to find smtp host
1033 # ------------------------------------------
1035 AC_ARG_WITH(smtp_host,
1036 [ --with-smtp-host=HOST SMTP mail host address],
1038 if test "x$withval" != "xno" ; then
1047 # ------------------------------------
1048 # Where to place pid files
1049 # ------------------------------------
1051 AC_ARG_WITH(pid-dir,
1052 [ --with-pid-dir=PATH specify location of Bacula pid files],
1054 if test "x$withval" != "xno" ; then
1060 AC_DEFINE_UNQUOTED(_PATH_BACULA_PIDDIR, "$piddir")
1064 # ------------------------------------
1065 # Where to place subsys "lock file"
1066 # ------------------------------------
1067 subsysdir=/var/run/subsys
1068 if test -d /var/run/subsys; then
1069 subsysdir=/var/run/subsys
1070 elif test -d /var/lock/subsys; then
1071 subsysdir=/var/lock/subsys
1073 subsysdir=/var/run/subsys
1075 AC_ARG_WITH(subsys-dir,
1076 [ --with-subsys-dir=PATH specify location of Bacula subsys file],
1078 if test "x$withval" != "xno" ; then
1088 # ------------------------------------
1089 # Where to start assigning ports
1090 # ------------------------------------
1092 AC_ARG_WITH(baseport,
1093 [ --with-baseport=PORT specify base port address for daemons],
1095 if test "x$withval" != "xno" ; then
1102 dir_port=`expr $baseport`
1103 fd_port=`expr $baseport + 1`
1104 sd_port=`expr $fd_port + 1`
1111 # ------------------------------------------
1112 # Generate passwords
1113 # ------------------------------------------
1115 AC_ARG_WITH(dir-password,
1116 [ --with-dir-password=PASSWORD specify Director's password],
1118 if test "x$withval" != "xno" ; then
1119 dir_password=$withval
1124 if test "x$dir_password" = "x" ; then
1125 if test "x$OPENSSL" = "xnone" ; then
1126 key=`autoconf/randpass 33`
1128 key=`openssl rand -base64 33`
1134 AC_ARG_WITH(fd-password,
1135 [ --with-fd-password=PASSWORD specify Client's password],
1137 if test "x$withval" != "xno" ; then
1138 fd_password=$withval
1143 if test "x$fd_password" = "x" ; then
1144 if test "x$OPENSSL" = "xnone" ; then
1145 key=`autoconf/randpass 37`
1147 key=`openssl rand -base64 33`
1153 AC_ARG_WITH(sd-password,
1154 [ --with-sd-password=PASSWORD specify Storage daemon's password],
1156 if test "x$withval" != "xno" ; then
1157 sd_password=$withval
1162 if test "x$sd_password" = "x" ; then
1163 if test "x$OPENSSL" = "xnone" ; then
1164 key=`autoconf/randpass 41`
1166 key=`openssl rand -base64 33`
1172 AC_ARG_WITH(mon-dir-password,
1173 [ --with-mon-dir-password=PASSWORD specify Director's password used by the monitor],
1175 if test "x$withval" != "xno" ; then
1176 mon_dir_password=$withval
1181 if test "x$mon_dir_password" = "x" ; then
1182 if test "x$OPENSSL" = "xnone" ; then
1183 key=`autoconf/randpass 33`
1185 key=`openssl rand -base64 33`
1187 mon_dir_password=$key
1191 AC_ARG_WITH(mon-fd-password,
1192 [ --with-mon-fd-password=PASSWORD specify Client's password used by the monitor],
1194 if test "x$withval" != "xno" ; then
1195 mon_fd_password=$withval
1200 if test "x$mon_fd_password" = "x" ; then
1201 if test "x$OPENSSL" = "xnone" ; then
1202 key=`autoconf/randpass 37`
1204 key=`openssl rand -base64 33`
1206 mon_fd_password=$key
1210 AC_ARG_WITH(mon-sd-password,
1211 [ --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor],
1213 if test "x$withval" != "xno" ; then
1214 mon_sd_password=$withval
1219 if test "x$mon_sd_password" = "x" ; then
1220 if test "x$OPENSSL" = "xnone" ; then
1221 key=`autoconf/randpass 41`
1223 key=`openssl rand -base64 33`
1225 mon_sd_password=$key
1228 AC_SUBST(dir_password)
1229 AC_SUBST(fd_password)
1230 AC_SUBST(sd_password)
1231 AC_SUBST(mon_dir_password)
1232 AC_SUBST(mon_fd_password)
1233 AC_SUBST(mon_sd_password)
1236 # Pickup any database name
1239 AC_ARG_WITH(db_name,
1240 [ --with-db-name=DBNAME specify database name (default bacula)],
1242 if test "x$withval" != "x" ; then
1250 AC_ARG_WITH(db_user,
1251 [ --with-db-user=UNAME specify database user (default bacula)],
1253 if test "x$withval" != "x" ; then
1261 AC_ARG_WITH(db_password,
1262 [ --with-db-password=UNAME specify database password (default *none*)],
1264 if test "x$withval" != "x" ; then
1265 db_password=$withval
1269 AC_SUBST(db_password)
1272 # Pickup a database port
1275 AC_ARG_WITH(db_port,
1276 [ --with-db-port=DBPORT specify a database port (default null)],
1278 if test "x$withval" != "x" ; then
1286 # Handle users and groups for each daemon
1289 AC_ARG_WITH(dir_user,
1290 [ --with-dir-user=USER specify user for Director daemon],
1292 if test "x$withval" != "x" ; then
1299 AC_ARG_WITH(dir_group,
1300 [ --with-dir-group=GROUP specify group for Director daemon],
1302 if test "x$withval" != "x" ; then
1309 AC_ARG_WITH(sd_user,
1310 [ --with-sd-user=USER specify user for Storage daemon],
1312 if test "x$withval" != "x" ; then
1319 AC_ARG_WITH(sd_group,
1320 [ --with-sd-group=GROUP specify group for Storage daemon],
1322 if test "x$withval" != "x" ; then
1329 AC_ARG_WITH(fd_user,
1330 [ --with-fd-user=USER specify user for File daemon],
1332 if test "x$withval" != "x" ; then
1339 AC_ARG_WITH(fd_group,
1340 [ --with-fd-group=GROUP specify group for File daemon],
1342 if test "x$withval" != "x" ; then
1356 # allow setting default executable permissions
1359 AC_ARG_WITH(sbin-perm,
1360 [ --with-sbin-perm=MODE specify permissions for sbin binaries (0754)],
1362 if test "x$withval" != "x" ; then
1370 # ------------------------------------------------
1371 # Bacula check for various SQL database engines
1372 # ------------------------------------------------
1374 BA_CHECK_POSTGRESQL_DB
1389 # -------------------------------------------
1390 # enable batch attribute DB insert (default on)
1391 # -------------------------------------------
1392 support_batch_insert=no
1393 A=`nm $SQL_LIB | grep pthread_mutex_lock`
1395 if test $pkg = 0; then
1396 support_batch_insert=yes
1397 AC_ARG_ENABLE(batch-insert,
1398 [ --enable-batch-insert enable the DB batch insert code [disabled]],
1399 [if test x$enableval = xno; then
1400 support_batch_insert=no
1402 support_batch_insert=yes
1406 # Check if postgresql support batch mode
1407 if test x$DB_TYPE = xpostgresql; then
1408 A=`nm $SQL_LIB | grep PQputCopyData`
1410 if test $pkg != 0; then
1411 support_batch_insert=no
1415 if test x$DB_TYPE = xdbi; then
1419 # Check for batch insert
1420 if test $DB_PROG = postgresql; then
1421 A=`nm $DB_PROG_LIB | grep PQputCopyData`
1425 if test $DB_PROG = mysql; then
1426 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
1430 if test $DB_PROG = sqlite3; then
1431 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
1435 if test $pkg = 0; then
1436 AC_ARG_ENABLE(batch-insert,
1437 [ --enable-batch-insert enable the DB batch insert code [disabled]],
1438 [if test x$enableval = xno; then
1439 support_batch_insert=no
1441 support_batch_insert=yes
1445 # If dbi was not chosen, let the comment in file
1449 AC_SUBST(uncomment_dbi)
1451 if test $support_batch_insert = yes ; then
1452 AC_DEFINE(HAVE_BATCH_FILE_INSERT, 1, [Set if DB batch insert code enabled])
1456 AC_DEFINE(PROTOTYPES)
1458 dnl# --------------------------------------------------------------------------
1459 dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
1461 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
1462 if test -z "$CCOPTS"; then
1463 CCOPTS='-g -O2 -Wall'
1472 dnl See if we can use 64 bit file addresses
1473 largefile_support="no"
1479 dnl# --------------------------------------------------------------------------
1480 dnl# CHECKING FOR HEADER FILES
1481 dnl# --------------------------------------------------------------------------
1520 AC_STRUCT_ST_BLKSIZE
1524 dnl# --------------------------------------------------------------------------
1525 dnl# Check for utime.h structure
1526 dnl# --------------------------------------------------------------------------
1527 AC_CACHE_CHECK(for utime.h, ba_cv_header_utime_h,
1529 #include <sys/types.h>
1530 #include <utime.h>], [struct utimbuf foo],
1531 ba_cv_header_utime_h=yes, ba_cv_header_utime_h=no)])
1532 test $ba_cv_header_utime_h = yes && AC_DEFINE(HAVE_UTIME_H, 1, [Set if utime.h exists])
1534 dnl# --------------------------------------------------------------------------
1535 dnl# Check for socklen_t
1536 dnl# --------------------------------------------------------------------------
1537 AC_CACHE_CHECK(for socklen_t, ba_cv_header_socklen_t,
1539 #include <sys/types.h>
1540 #include <sys/socket.h>],
1542 ba_cv_header_socklen_t=yes, ba_cv_header_socklen_t=no)])
1543 test $ba_cv_header_socklen_t = yes && AC_DEFINE(HAVE_SOCKLEN_T)
1545 dnl# --------------------------------------------------------------------------
1546 dnl# Check for bigendian
1547 dnl# --------------------------------------------------------------------------
1548 AC_CACHE_CHECK([for bigendian], ba_cv_bigendian,
1550 [main(){long a=1L; char *p=(char *)&a; exit(*p);}],
1551 [ba_cv_bigendian=yes],
1552 [ba_cv_bigendian=no],
1553 [ba_cv_bigendian=no])])
1554 test $ba_cv_bigendian = yes && AC_DEFINE(HAVE_BIGENDIAN)
1556 dnl# --------------------------------------------------------------------------
1557 dnl# Check for typeof()
1558 dnl# --------------------------------------------------------------------------
1560 AC_CACHE_CHECK(for typeof, ba_cv_have_typeof,
1562 [main(){char *a = 0; a = (typeof a)a;}],
1563 [ba_cv_have_typeof=yes],
1564 [ba_cv_have_typeof=no],
1565 [ba_cv_have_typeof=no])])
1566 test $ba_cv_have_typeof = yes && AC_DEFINE([HAVE_TYPEOF], 1, [Defind to 1 if compiler has typeof])
1572 dnl# --------------------------------------------------------------------------
1573 dnl# CHECKING FOR FILESYSTEM TYPE
1574 dnl# --------------------------------------------------------------------------
1575 AC_MSG_CHECKING(how to get filesystem type)
1577 # The order of these tests is important.
1578 AC_TRY_CPP([#include <sys/statvfs.h>
1579 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=SVR4)
1580 if test $fstype = no; then
1581 AC_TRY_CPP([#include <sys/statfs.h>
1582 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=SVR3)
1584 if test $fstype = no; then
1585 AC_TRY_CPP([#include <sys/statfs.h>
1586 #include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=AIX)
1588 if test $fstype = no; then
1589 AC_TRY_CPP([#include <mntent.h>], AC_DEFINE(FSTYPE_MNTENT) fstype=4.3BSD)
1591 if test $fstype = no; then
1592 AC_EGREP_HEADER(f_type;, sys/mount.h, AC_DEFINE(FSTYPE_STATFS) fstype=4.4BSD/OSF1)
1594 if test $fstype = no; then
1595 AC_TRY_CPP([#include <sys/mount.h>
1596 #include <sys/fs_types.h>], AC_DEFINE(FSTYPE_GETMNT) fstype=Ultrix)
1598 AC_MSG_RESULT($fstype)
1600 AC_CHECK_HEADER(sys/statvfs.h, [ AC_DEFINE(HAVE_SYS_STATVFS_H,1,[Defines if your system have the sys/statvfs.h header file])] , )
1602 dnl# --------------------------------------------------------------------------
1603 dnl# CHECKING FOR TYPEDEFS, STRUCTURES, AND COMPILER CHARACTERISTICS.
1604 dnl# --------------------------------------------------------------------------
1612 AC_CHECK_TYPE(ino_t, unsigned long)
1613 AC_CHECK_TYPE(dev_t, unsigned long)
1614 AC_CHECK_TYPE(daddr_t, long)
1615 AC_CHECK_TYPE(major_t, int)
1616 AC_CHECK_TYPE(minor_t, int)
1617 AC_CHECK_TYPE(ssize_t, int)
1624 AC_CHECK_SIZEOF(char, 1)
1625 AC_CHECK_SIZEOF(short int, 2)
1626 AC_CHECK_SIZEOF(int, 4)
1627 AC_CHECK_SIZEOF(long int, 4)
1628 AC_CHECK_SIZEOF(long long int, 8)
1629 AC_CHECK_SIZEOF(int *, 4)
1631 # Check for sys/types.h types
1632 AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
1634 [ #include <sys/types.h> ],
1636 [ ac_cv_have_u_int="yes" ],
1637 [ ac_cv_have_u_int="no" ]
1640 if test "x$ac_cv_have_u_int" = "xyes" ; then
1641 AC_DEFINE(HAVE_U_INT)
1645 AC_CACHE_CHECK([for intmax_t type], ac_cv_have_intmax_t, [
1647 [ #include <sys/types.h> ],
1648 [ intmax_t a; a = 1;],
1649 [ ac_cv_have_intmax_t="yes" ],
1652 [ #include <stdint.h> ],
1653 [ intmax_t a; a = 1;],
1654 [ ac_cv_have_intmax_t="yes" ],
1655 [ ac_cv_have_intmax_t="no" ]
1661 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
1662 AC_DEFINE(HAVE_INTMAX_T)
1667 AC_CACHE_CHECK([for u_intmax_t type], ac_cv_have_u_intmax_t, [
1669 [ #include <sys/types.h> ],
1670 [ u_intmax_t a; a = 1;],
1671 [ ac_cv_have_u_intmax_t="yes" ],
1674 [ #include <stdint.h> ],
1675 [ u_intmax_t a; a = 1;],
1676 [ ac_cv_have_u_intmax_t="yes" ],
1677 [ ac_cv_have_u_intmax_t="no" ]
1682 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
1683 AC_DEFINE(HAVE_U_INTMAX_T)
1688 AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
1690 [ #include <sys/types.h> ],
1691 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
1692 [ ac_cv_have_intxx_t="yes" ],
1693 [ ac_cv_have_intxx_t="no" ]
1696 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
1697 AC_DEFINE(HAVE_INTXX_T)
1701 AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [
1703 [ #include <sys/types.h> ],
1704 [ int64_t a; a = 1;],
1705 [ ac_cv_have_int64_t="yes" ],
1706 [ ac_cv_have_int64_t="no" ]
1709 if test "x$ac_cv_have_int64_t" = "xyes" ; then
1710 AC_DEFINE(HAVE_INT64_T)
1714 AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
1716 [ #include <sys/types.h> ],
1717 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
1718 [ ac_cv_have_u_intxx_t="yes" ],
1719 [ ac_cv_have_u_intxx_t="no" ]
1722 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
1723 AC_DEFINE(HAVE_U_INTXX_T)
1727 AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [
1729 [ #include <sys/types.h> ],
1730 [ u_int64_t a; a = 1;],
1731 [ ac_cv_have_u_int64_t="yes" ],
1732 [ ac_cv_have_u_int64_t="no" ]
1735 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
1736 AC_DEFINE(HAVE_U_INT64_T)
1740 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
1741 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1743 AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
1745 [ #include <sys/bitypes.h> ],
1746 [ int8_t a; int16_t b; int32_t c;
1747 u_int8_t e; u_int16_t f; u_int32_t g;
1748 a = b = c = e = f = g = 1; ],
1749 [ AC_DEFINE(HAVE_U_INTXX_T)
1750 AC_DEFINE(HAVE_INTXX_T)
1751 AC_DEFINE(HAVE_SYS_BITYPES_H)
1752 AC_MSG_RESULT(yes) ],
1753 [ AC_MSG_RESULT(no)]
1757 if test -z "$have_u_intxx_t" ; then
1758 AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
1760 [ #include <sys/types.h> ],
1761 [ uint8_t a; uint16_t b;
1762 uint32_t c; a = b = c = 1; ],
1763 [ ac_cv_have_uintxx_t="yes" ],
1764 [ ac_cv_have_uintxx_t="no" ]
1767 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
1768 AC_DEFINE(HAVE_UINTXX_T)
1772 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
1773 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1775 AC_MSG_CHECKING([for int64_t and u_int64_t types in sys/bitypes.h])
1777 [ #include <sys/bitypes.h> ],
1778 [ int64_t a; u_int64_t b;
1780 [ AC_DEFINE(HAVE_U_INT64_T)
1781 AC_DEFINE(HAVE_INT64_T)
1782 AC_MSG_RESULT(yes) ],
1783 [ AC_MSG_RESULT(no)]
1787 if (test -z "$have_uintxx_t" && \
1788 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1790 AC_MSG_CHECKING([for uintXX_t types in sys/bitypes.h])
1792 [ #include <sys/bitypes.h> ],
1793 [ uint8_t a; uint16_t b;
1794 uint32_t c; a = b = c = 1; ],
1795 [ AC_DEFINE(HAVE_UINTXX_T)
1796 AC_MSG_RESULT(yes) ],
1797 [ AC_MSG_RESULT(no)]
1805 dnl# --------------------------------------------------------------------------
1806 dnl# CHECKING FOR REQUIRED LIBRARY FUNCTIONS
1807 dnl# --------------------------------------------------------------------------
1823 [echo 'configure: cannot find needed function.'; exit 1]
1826 AC_CHECK_FUNCS(fchdir, [AC_DEFINE(HAVE_FCHDIR)])
1827 AC_CHECK_FUNCS(strtoll, [AC_DEFINE(HAVE_STRTOLL)])
1828 AC_CHECK_FUNCS(posix_fadvise)
1829 AC_CHECK_FUNCS(fdatasync)
1831 AC_CHECK_FUNCS(chflags)
1833 AC_CHECK_FUNCS(snprintf vsnprintf gethostid fseeko)
1835 AC_CACHE_CHECK(for va_copy, ba_cv_va_copy,
1838 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
1839 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
1841 [call_use_va_copy(1,2,3)],
1842 ba_cv_va_copy=yes, ba_cv_va_copy=no)])
1843 test $ba_cv_va_copy = yes && AC_DEFINE(HAVE_VA_COPY, 1, [Set if va_copy exists])
1846 dnl# --------------------------------------------------------------------------
1847 dnl# CHECKING FOR THREAD SAFE FUNCTIONS
1848 dnl# --------------------------------------------------------------------------
1849 AC_CHECK_FUNCS(localtime_r readdir_r strerror_r gethostbyname_r)
1851 # If resolver functions are not in libc check for -lnsl or -lresolv.
1852 AC_CHECK_FUNC(gethostbyname_r,
1853 AC_MSG_RESULT(using libc's resolver),
1854 AC_CHECK_LIB(nsl,gethostbyname_r)
1855 AC_CHECK_LIB(resolv,gethostbyname_r))
1859 AC_CHECK_FUNCS(inet_pton, [AC_DEFINE(HAVE_INET_PTON)])
1860 AC_CHECK_FUNCS(inet_ntop, [AC_DEFINE(HAVE_INET_NTOP)])
1861 AC_CHECK_FUNCS(gethostbyname2, [AC_DEFINE(HAVE_GETHOSTBYNAME2)])
1863 dnl ----------------------------
1864 dnl check sa_len of sockaddr
1865 dnl ----------------------------
1866 AC_CACHE_CHECK(for struct sockaddr has a sa_len field, ac_cv_struct_sockaddr_sa_len,
1867 [AC_TRY_COMPILE([#include <sys/socket.h>], [struct sockaddr s; s.sa_len;],
1868 ac_cv_struct_sockaddr_sa_len=yes, ac_cv_struct_sockaddr_sa_len=no)])
1870 if test $ac_cv_struct_sockaddr_sa_len = yes; then
1871 AC_DEFINE(HAVE_SA_LEN, 1, [Define if sa_len field exists in struct sockaddr])
1881 AC_FUNC_CLOSEDIR_VOID
1882 AC_FUNC_SETPGRP dnl check for BSD setpgrp.
1883 # AC_FUNC_FNMATCH dnl use local version
1886 AC_CHECK_LIB(intl, gettext, [LIBS="$LIBS -lintl"])
1889 AC_CHECK_LIB(sun, getpwnam)
1891 AC_CHECK_HEADERS(zlib.h)
1892 AC_CHECK_LIB(z, deflate, [FDLIBS="-lz"])
1894 if test x$FDLIBS = x-lz; then
1895 AC_DEFINE(HAVE_LIBZ)
1900 # Check for ACL libraries
1903 AC_CHECK_HEADER(sys/acl.h)
1904 AC_CHECK_FUNC(acl_get_file, [have_acl=yes],
1905 [AC_CHECK_LIB(acl, acl_get_file, [have_acl=yes; FDLIBS="-lacl $FDLIBS"],
1906 [AC_CHECK_LIB(sec, acltotext, [have_acl=yes; FDLIBS="-lsec $FDLIBS"])]
1909 if test $have_acl = yes; then
1913 dnl Check for pthread libraries
1915 AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
1916 [AC_CHECK_LIB(pthreads, pthread_create, PTHREAD_LIB="-lpthreads",
1917 [AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r",
1918 [AC_CHECK_FUNC(pthread_create)]
1929 if test x$have_gcc = xyes ; then
1930 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
1931 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
1933 LDFLAGS=${LDFLAGS--O}
1934 DB_LIBS="${SQL_LFLAGS}"
1935 CPPFLAGS="$CPPFLAGS"
1948 AC_SUBST(X_EXTRA_LIBS)
1953 dnl# extra configurable objects
1964 # Finally we set appropriate distribution specific
1965 # variables and defaults
1967 # PFILES are platform specific files
1968 PFILES="platforms/Makefile"
1972 hostname=`uname -n | cut -d '.' -f 1`
1973 if test x${hostname} = x ; then
1974 hostname="localhost"
1979 PSCMD="ps -e -o pid,comm"
1981 platforms/aix/Makefile"
1982 TAPEDRIVE="/dev/rmt0.1"
1986 PTHREAD_LIB="-lpthread -lexc"
1987 if test "${CC}" = "gcc" ; then
1994 TAPEDRIVE="/dev/nrmt0"
1997 DISTVER=`uname -a |awk '{print $3}'`
1998 TAPEDRIVE="/dev/nrmt0"
1999 PTHREAD_LIB="-pthread"
2000 CFLAGS="${CFLAGS} -pthread"
2001 PSCMD="ps -ax -o pid,command"
2005 platforms/bsdi/Makefile \
2006 platforms/bsdi/bacula-fd \
2007 platforms/bsdi/bacula-sd \
2008 platforms/bsdi/bacula-dir"
2009 largefile_support="yes"
2012 DISTVER=`uname -a |awk '{print $3}'`
2013 TAPEDRIVE="/dev/nrst0"
2016 WLDFLAGS="-mwindows"
2020 TAPEDRIVE="/dev/nst0"
2021 PSCMD="ps -e -o pid,command"
2024 platforms/darwin/Makefile"
2027 # Make sure hostname is resolved
2028 ping -c 1 $hostname 2>&1 1>/dev/null
2029 if test ! $? = 0; then
2030 hostname="localhost"
2032 if `grep -q ubuntu /etc/apt/sources.list`; then
2035 DISTVER=`cat /etc/debian_version`
2036 if test -f /etc/lsb-release ; then
2038 if test "x$DISTRIB_ID" != "x" ; then
2039 DISTNAME=$DISTRIB_ID
2041 if test "x$DISTRIB_RELEASE" != "x" ; then
2042 DISTVER=$DISTRIB_RELEASE
2045 if test "$DISTNAME" = "Ubuntu" ; then
2048 TAPEDRIVE="/dev/nst0"
2049 PSCMD="ps -e -o pid,command"
2050 if test "$DISTNAME" = "ubuntu" ; then
2052 platforms/ubuntu/Makefile \
2053 platforms/ubuntu/bacula-fd \
2054 platforms/ubuntu/bacula-sd \
2055 platforms/ubuntu/bacula-dir"
2058 platforms/debian/Makefile \
2059 platforms/debian/bacula-fd \
2060 platforms/debian/bacula-sd \
2061 platforms/debian/bacula-dir"
2065 # Make sure hostname is resolved
2066 ping -c 1 $hostname 2>&1 1>/dev/null
2067 if test ! $? = 0; then
2068 hostname="localhost"
2070 if `grep -q ubuntu /etc/apt/sources.list`; then
2073 DISTVER=`uname -a |awk '{print $3}'`
2074 VER=`echo $DISTVER | cut -c 1`
2075 if test x$VER = x4 ; then
2076 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
2077 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
2081 TAPEDRIVE="/dev/nrsa0"
2082 PSCMD="ps -ax -o pid,command"
2084 platforms/freebsd/Makefile \
2085 platforms/freebsd/bacula-fd \
2086 platforms/freebsd/bacula-sd \
2087 platforms/freebsd/bacula-dir"
2088 largefile_support="yes"
2091 PSCMD="UNIX95=1; ps -e -o pid,comm"
2092 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
2094 TAPEDRIVE="/dev/rmt/0hnb"
2095 PTHREAD_LIB="-lpthread"
2096 AC_DEFINE([_INCLUDE_LONGLONG])
2100 TAPEDRIVE="/dev/rmt/0cbn"
2101 PSCMD="ps -e -o pid,comm"
2103 platforms/irix/Makefile \
2104 platforms/irix/bacula-fd \
2105 platforms/irix/bacula-sd \
2106 platforms/irix/bacula-dir"
2109 DISTVER=`uname -a |awk '{print $3}'`
2112 TAPEDRIVE="/dev/nrst0"
2113 PSCMD="ps -ax -o pid,command"
2114 PTHREAD_LIB="-pthread"
2115 CFLAGS="${CFLAGS} -pthread"
2118 DISTVER=`uname -a |awk '{print $3}'`
2121 TAPEDRIVE="/dev/nrst0"
2122 PSCMD="ps -ax -o pid,command"
2123 PTHREAD_LIB="-pthread"
2124 CFLAGS="${CFLAGS} -pthread"
2126 platforms/openbsd/Makefile \
2127 platforms/openbsd/bacula-fd \
2128 platforms/openbsd/bacula-sd \
2129 platforms/openbsd/bacula-dir"
2132 # Make sure hostname is resolved
2133 ping -c 1 $hostname 2>&1 1>/dev/null
2134 if test ! $? = 0; then
2135 hostname="localhost"
2137 if `grep -q ubuntu /etc/apt/sources.list`; then
2140 if test -f /etc/whitebox-release ; then
2141 f=/etc/whitebox-release
2143 f=/etc/redhat-release
2145 if test `cat $f | grep release |\
2146 cut -f 3 -d ' '`x = "Enterprise"x ; then
2147 DISTVER="Enterprise "`cat $f | grep release |\
2150 DISTVER=`cat /etc/redhat-release | grep release |\
2153 TAPEDRIVE="/dev/nst0"
2154 PSCMD="ps -e -o pid,command"
2156 platforms/redhat/Makefile \
2157 platforms/redhat/bacula-fd \
2158 platforms/redhat/bacula-sd \
2159 platforms/redhat/bacula-dir \
2160 platforms/redhat/bacula.spec \
2164 # Make sure hostname is resolved
2165 ping -c 1 $hostname 2>&1 1>/dev/null
2166 if test ! $? = 0; then
2167 hostname="localhost"
2169 if `grep -q ubuntu /etc/apt/sources.list`; then
2172 DISTVER=`cat /etc/mandrake-release | grep release |\
2174 TAPEDRIVE="/dev/nst0"
2175 PSCMD="ps -e -o pid,command"
2177 platforms/mandrake/Makefile \
2178 platforms/mandrake/bacula-fd \
2179 platforms/mandrake/bacula-sd \
2180 platforms/mandrake/bacula-dir \
2181 platforms/mandrake/bacula.spec \
2185 # Make sure hostname is resolved
2186 ping -c 1 $hostname 2>&1 1>/dev/null
2187 if test ! $? = 0; then
2188 hostname="localhost"
2190 if `grep -q ubuntu /etc/apt/sources.list`; then
2193 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
2194 TAPEDRIVE="/dev/nst0"
2195 PSCMD="ps -e -o pid,command"
2197 platforms/gentoo/Makefile \
2198 platforms/gentoo/bacula-init \
2199 platforms/gentoo/bacula-fd \
2200 platforms/gentoo/bacula-sd \
2201 platforms/gentoo/bacula-dir"
2204 # Make sure hostname is resolved
2205 ping -c 1 $hostname 2>&1 1>/dev/null
2206 if test ! $? = 0; then
2207 hostname="localhost"
2209 if `grep -q ubuntu /etc/apt/sources.list`; then
2212 DISTVER=`cat /etc/slackware-version`
2213 TAPEDRIVE="/dev/nst0"
2214 PSCMD="ps -e -o pid,command"
2216 platforms/slackware/Makefile \
2217 platforms/slackware/rc.bacula-fd \
2218 platforms/slackware/rc.bacula-sd \
2219 platforms/slackware/rc.bacula-dir\
2220 platforms/slackware/functions.bacula"
2224 TAPEDRIVE="/dev/rmt/0cbn"
2225 PSCMD="ps -e -o pid,comm"
2227 platforms/solaris/Makefile \
2228 platforms/solaris/bacula-fd \
2229 platforms/solaris/bacula-sd \
2230 platforms/solaris/bacula-dir"
2231 if test x$DISTVER = x5.6 ; then
2232 AC_DEFINE(HAVE_OLD_SOCKOPT)
2234 LIBS="$LIBS -lresolv"
2237 # Make sure hostname is resolved
2238 ping -c 1 $hostname 2>&1 1>/dev/null
2239 if test ! $? = 0; then
2240 hostname="localhost"
2242 if `grep -q ubuntu /etc/apt/sources.list`; then
2245 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
2247 TAPEDRIVE="/dev/nst0"
2248 PSCMD="ps -e -o pid,command"
2250 platforms/suse/Makefile \
2251 platforms/suse/bacula-fd \
2252 platforms/suse/bacula-sd \
2253 platforms/suse/bacula-dir \
2254 platforms/suse/bacula \
2255 platforms/suse/bacula.spec"
2258 # Make sure hostname is resolved
2259 ping -c 1 $hostname 2>&1 1>/dev/null
2260 if test ! $? = 0; then
2261 hostname="localhost"
2263 if `grep -q ubuntu /etc/apt/sources.list`; then
2268 TAPEDRIVE="/dev/nst0"
2269 PSCMD="ps -e -o pid,command"
2271 platforms/suse/Makefile \
2272 platforms/suse/bacula-fd \
2273 platforms/suse/bacula-sd \
2274 platforms/suse/bacula-dir"
2278 TAPEDRIVE="/dev/nst0"
2281 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
2287 LIBS="$PTHREAD_LIB $LIBS"
2289 AC_DEFINE_UNQUOTED(lld, "$lld")
2290 AC_DEFINE_UNQUOTED(llu, "$llu")
2298 dnl# common parts of the Makefile
2299 MCOMMON=./autoconf/Make.common
2300 AC_SUBST_FILE(MCOMMON)
2303 if test "x${subsysdir}" = "x${sbindir}" ; then
2306 echo "You have set both --sbindir and --with-subsys-dir"
2307 echo " equal to: ${subsysdir} "
2308 echo "This is not permitted. Please reconfigure."
2310 echo "Aborting configuration ..."
2316 AC_OUTPUT([autoconf/Make.common \
2319 scripts/startmysql \
2321 scripts/btraceback \
2327 scripts/bacula-ctl-dir \
2328 scripts/bacula-ctl-fd \
2329 scripts/bacula-ctl-sd \
2330 scripts/devel_bacula \
2333 scripts/bacula.desktop.gnome1 \
2334 scripts/bacula.desktop.gnome2 \
2335 scripts/bacula.desktop.gnome1.consolehelper \
2336 scripts/bacula.desktop.gnome2.consolehelper \
2337 scripts/bacula.desktop.gnome1.xsu \
2338 scripts/bacula.desktop.gnome2.xsu \
2339 scripts/bgnome-console.console_apps \
2340 scripts/mtx-changer \
2341 scripts/disk-changer \
2342 scripts/dvd-handler \
2343 scripts/dvd-simulator \
2344 scripts/bacula-tray-monitor.desktop \
2345 scripts/logwatch/Makefile \
2346 scripts/logwatch/logfile.bacula.conf \
2347 scripts/wxconsole.console_apps \
2348 scripts/wxconsole.desktop.consolehelper \
2349 scripts/wxconsole.desktop.xsu \
2350 scripts/bat.desktop \
2351 scripts/bat.desktop.xsu \
2352 scripts/bat.desktop.consolehelper \
2353 scripts/bat.console_apps \
2356 src/console/Makefile \
2357 src/console/bconsole.conf \
2358 src/gnome2-console/Makefile \
2359 src/gnome2-console/bgnome-console.conf \
2360 src/qt-console/bat.conf \
2361 src/qt-console/bat.pro \
2362 src/qt-console/bat.pro.mingw32 \
2363 src/qt-console/install_conf_file \
2364 src/wx-console/Makefile \
2365 src/wx-console/bwx-console.conf \
2366 src/tray-monitor/Makefile \
2367 src/tray-monitor/tray-monitor.conf \
2369 src/dird/bacula-dir.conf \
2371 src/stored/Makefile \
2372 src/stored/bacula-sd.conf \
2373 src/filed/Makefile \
2374 src/filed/bacula-fd.conf \
2376 src/cats/make_catalog_backup \
2377 src/cats/delete_catalog_backup \
2378 src/cats/create_postgresql_database \
2379 src/cats/update_postgresql_tables \
2380 src/cats/make_postgresql_tables \
2381 src/cats/grant_postgresql_privileges \
2382 src/cats/drop_postgresql_tables \
2383 src/cats/drop_postgresql_database \
2384 src/cats/create_mysql_database \
2385 src/cats/update_mysql_tables \
2386 src/cats/make_mysql_tables \
2387 src/cats/grant_mysql_privileges \
2388 src/cats/drop_mysql_tables \
2389 src/cats/drop_mysql_database \
2390 src/cats/create_sqlite_database \
2391 src/cats/update_sqlite_tables \
2392 src/cats/make_sqlite_tables \
2393 src/cats/grant_sqlite_privileges \
2394 src/cats/drop_sqlite_tables \
2395 src/cats/drop_sqlite_database \
2396 src/cats/create_sqlite3_database \
2397 src/cats/update_sqlite3_tables \
2398 src/cats/make_sqlite3_tables \
2399 src/cats/grant_sqlite3_privileges \
2400 src/cats/drop_sqlite3_tables \
2401 src/cats/drop_sqlite3_database \
2404 src/cats/create_bdb_database \
2405 src/cats/update_bdb_tables \
2406 src/cats/make_bdb_tables \
2407 src/cats/grant_bdb_privileges \
2408 src/cats/drop_bdb_tables \
2409 src/cats/drop_bdb_database \
2410 src/cats/create_bacula_database \
2411 src/cats/update_bacula_tables \
2412 src/cats/grant_bacula_privileges \
2413 src/cats/make_bacula_tables \
2414 src/cats/drop_bacula_tables \
2415 src/cats/drop_bacula_database \
2416 src/findlib/Makefile \
2417 src/tools/Makefile \
2418 src/plugins/fd/Makefile \
2420 updatedb/update_mysql_tables_10_to_11 \
2421 updatedb/update_sqlite3_tables_10_to_11 \
2422 updatedb/update_postgresql_tables_10_to_11 \
2423 updatedb/update_sqlite_tables_10_to_11 \
2428 if test "${support_bat}" = "yes" ; then
2429 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
2430 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
2436 if test "x$QMAKEQT4" != "xnone"; then
2441 chmod 755 install_conf_file build-depkgs-qt-console
2442 echo "Creating bat Makefile"
2448 echo "Doing make of dependencies"
2449 ${MAKE:-make} depend
2452 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
2453 chmod 755 dvd-handler dvd-simulator
2454 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
2458 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
2459 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
2463 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
2464 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
2466 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
2467 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
2469 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
2470 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
2472 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
2473 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
2475 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
2476 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
2478 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
2479 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
2481 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
2485 chmod 755 src/win32/build-depkgs-mingw32
2489 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
2490 largefile_support="yes"
2494 # A whole lot of hand springs to get the compiler version.
2495 # This is because gcc changed the output in version 3.0
2497 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
2498 if test "x${CCVERSION}" = "x" ; then
2499 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
2501 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
2502 if test x"${CXXVERSION}" = x ; then
2503 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
2506 if test "x${subsysdir}" = "x${sbindir}" ; then
2509 echo "You have set --sbindir and --with-subsys-dir"
2510 echo " both equal to: ${subsysdir} "
2511 echo " This is not permitted. Please reconfigure."
2513 echo "Aborting configuration ..."
2519 if test "x${db_type}" = "xInternal" ; then
2522 echo "You have not specified either --enable-client-only or one of the"
2523 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
2524 echo " This is not permitted. Please reconfigure."
2526 echo "Aborting the configuration ..."
2533 Configuration on `date`:
2535 Host: $host -- ${DISTNAME} ${DISTVER}
2536 Bacula version: ${VERSION} (${DATE})
2537 Source code location: ${srcdir}
2538 Install binaries: ${sbindir}
2539 Install config files: ${sysconfdir}
2540 Scripts directory: ${scriptdir}
2541 Archive directory: ${archivedir}
2542 Working directory: ${working_dir}
2543 PID directory: ${piddir}
2544 Subsys directory: ${subsysdir}
2545 Man directory: ${mandir}
2546 Data directory: ${datadir}
2547 C Compiler: ${CC} ${CCVERSION}
2548 C++ Compiler: ${CXX} ${CXXVERSION}
2549 Compiler flags: ${WCFLAGS} ${CFLAGS}
2550 Linker flags: ${WLDFLAGS} ${LDFLAGS}
2552 Statically Linked Tools: ${support_static_tools}
2553 Statically Linked FD: ${support_static_fd}
2554 Statically Linked SD: ${support_static_sd}
2555 Statically Linked DIR: ${support_static_dir}
2556 Statically Linked CONS: ${support_static_cons}
2557 Database type: ${db_type}
2558 Database port: ${db_port}
2559 Database lib: ${DB_LIBS}
2560 Database name: ${db_name}
2561 Database user: ${db_user}
2563 Job Output Email: ${job_email}
2564 Traceback Email: ${dump_email}
2565 SMTP Host Address: ${smtp_host}
2567 Director Port: ${dir_port}
2568 File daemon Port: ${fd_port}
2569 Storage daemon Port: ${sd_port}
2571 Director User: ${dir_user}
2572 Director Group: ${dir_group}
2573 Storage Daemon User: ${sd_user}
2574 Storage DaemonGroup: ${sd_group}
2575 File Daemon User: ${fd_user}
2576 File Daemon Group: ${fd_group}
2578 SQL binaries Directory ${SQL_BINDIR}
2580 Large file support: $largefile_support
2581 Bacula conio support: ${got_conio} ${CONS_LIBS}
2582 readline support: ${got_readline} ${PRTREADLINE_SRC}
2583 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
2584 TLS support: ${support_tls}
2585 Encryption support: ${support_crypto}
2586 ZLIB support: ${have_zlib}
2587 enable-smartalloc: ${support_smartalloc}
2588 bat support: ${support_bat} ${QWT_LDFLAGS}
2589 enable-gnome: ${support_gnome} ${gnome_version}
2590 enable-bwx-console: ${support_wx_console} ${wx_version}
2591 enable-tray-monitor: ${support_tray_monitor}
2592 client-only: ${build_client_only}
2593 build-dird: ${build_dird}
2594 build-stored: ${build_stored}
2595 ACL support: ${have_acl}
2596 Python support: ${support_python} ${PYTHON_LIBS}
2597 Batch insert enabled: ${support_batch_insert}