3 dnl# Process this file with autoconf to produce a configure script.
11 AC_CONFIG_AUX_DIR(${BUILD_DIR}/autoconf)
12 AC_CONFIG_HEADER(src/config.h:autoconf/config.h.in)
14 dnl require a recent autoconf
18 dnl search for true and false programs.
19 AC_PATH_PROGS(TRUEPRG, true, :)
20 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.
48 dnl -------------------------------------------------------
49 dnl# Check for programs.
50 dnl ------------------------------------------------------
53 AC_PATH_PROG(MV, mv, mv)
54 AC_PATH_PROG(RM, rm, rm)
55 AC_PATH_PROG(CP, cp, cp)
56 AC_PATH_PROG(SED, sed, sed)
57 AC_PATH_PROG(AWK, awk, awk)
58 AC_PATH_PROG(ECHO, echo, echo)
59 AC_PATH_PROG(CMP, cmp, cmp)
60 AC_PATH_PROG(TBL, tbl, tbl)
61 AC_PATH_PROG(AR, ar, ar)
62 dnl AC_PATH_PROG(RANLIB, ranlib, ranlib)
63 AC_PATH_PROG(OPENSSL, openssl, none)
64 AC_PATH_PROG(MTX, mtx, mtx)
65 AC_PATH_PROG(PKGCONFIG, pkg-config, pkg-config)
66 AC_PATH_PROG(WXCONFIG, wx-config, wx-config)
68 test -n "$ARFLAG" || ARFLAGS="cr"
75 AC_SUBST(LOCAL_CFLAGS)
76 AC_SUBST(LOCAL_LDFLAGS)
81 dnl --------------------------------------------------
82 dnl Bacula OP Sys determination (see aclocal.m4)
83 dnl --------------------------------------------------
86 # -----------------------------------------------------------
87 dnl Bacula OPSys Distribution determination (see aclocal.m4)
88 # ----------------------------------------------------------
89 BA_CHECK_OPSYS_DISTNAME
91 # -----------------------------------------------------------
92 dnl Check for gnome stuff for gnome-console
93 # ----------------------------------------------------------
94 AM_ACLOCAL_INCLUDE(gnome-macros)
96 # ------------------------------------------------------------------
97 # If the user has not set --prefix, we set our default to nothing.
98 # In this case, if the user has not set --sysconfdir, we set it
99 # to the package default of /etc/bacula. If either --prefix or
100 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
101 # ------------------------------------------------------------------
102 if test x${prefix} = xNONE ; then
103 if test `eval echo ${sysconfdir}` = NONE/etc ; then
104 sysconfdir=/etc/bacula
108 sysconfdir=`eval echo ${sysconfdir}`
110 # -------------------------------------------------------------------------
111 # If the user has not set --exec-prefix, we default to ${prefix}
112 # -------------------------------------------------------------------------
113 if test x${exec_prefix} = xNONE ; then
114 exec_prefix=${prefix}
117 # ------------------------------------------------------------------
118 # If the user has not set --sbindir, we set our default as /sbin
119 # ------------------------------------------------------------------
120 if test x$sbindir = x'${exec_prefix}/sbin' ; then
121 sbindir=${exec_prefix}/sbin
123 sbindir=`eval echo ${sbindir}`
125 # ------------------------------------------------------------------
126 # All list of languages for which a translation exist. Each
127 # language is separated by a space.
128 # ------------------------------------------------------------------
131 AC_PATH_PROGS(MSGFMT, msgfmt, no)
132 if test "$MSGFMT" = "no"
134 echo 'msgfmt program not found, disabling NLS !'
136 USE_INCLUDED_LIBINTL=no
144 support_postgresql=no
145 support_smartalloc=yes
149 support_wx_console=no
151 support_static_tools=no
154 support_static_dir=no
155 support_static_cons=no
161 dnl# --------------------------------------------------------------------------
162 dnl# CHECKING COMMAND LINE OPTIONS
163 dnl# --------------------------------------------------------------------------
165 # -------------------------------------------
166 # gnome (default off)
167 # -------------------------------------------
169 [ --enable-gnome enable build of gnome-console GUI [disabled]],
170 [if test x$enableval = xyes; then
175 if test x$support_gnome = xyes; then
176 abc=`$PKGCONFIG --exists libgnomeui-2.0`
178 if test $pkg = 0; then
179 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
180 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
181 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
182 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
183 AC_SUBST(GNOME_INCLUDEDIR)
184 AC_SUBST(GNOMEUI_LIBS)
185 AC_SUBST(GNOME_LIBDIR)
187 GNOME_DIR=src/gnome2-console
188 gnome_version="Version 2.x"
192 GNOME_DIR=src/gnome-console
193 gnome_version="Version 1.4"
199 # -------------------------------------------
200 # wx-console (default off)
201 # -------------------------------------------
202 AC_ARG_ENABLE(wx-console,
203 [ --enable-wx-console enable build of wxWidgets console [disabled]],
204 [if test x$enableval = xyes; then
205 support_wx_console=yes
209 if test x$support_wx_console = xyes; then
210 abc=`$WXCONFIG --cppflags`
212 if test $pkg = 0; then
213 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
214 WXCONS_LDFLAGS=`$WXCONFIG --libs`
215 AC_SUBST(WXCONS_CPPFLAGS)
216 AC_SUBST(WXCONS_LDFLAGS)
217 WX_DIR=src/wx-console
220 echo "wx-config program not found. wx-console disabled."
222 support_wx_console=no
228 # -------------------------------------------
229 # tray-monitor (default off)
230 # -------------------------------------------
231 AC_ARG_ENABLE(tray-monitor,
232 [ --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) [disabled]],
233 [if test x$enableval = xyes; then
234 support_tray_monitor=yes
238 if test x$support_tray_monitor = xyes; then
239 abc=`$PKGCONFIG --exists gtk+-2.0`
241 if test $pkg = 0; then
242 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
243 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
244 AC_SUBST(TRAY_MONITOR_CPPFLAGS)
245 AC_SUBST(TRAY_MONITOR_LDFLAGS)
246 TRAY_MONITOR_DIR=src/tray-monitor
249 AC_SUBST(TRAY_MONITOR_DIR)
251 # -------------------------------------------
252 # smartalloc (default off)
253 # -------------------------------------------
254 AC_ARG_ENABLE(smartalloc,
255 [ --enable-smartalloc enable smartalloc debugging support [disabled]],
256 [if test x$enableval = xno; then
257 support_smartalloc=no
260 if test x$support_smartalloc = xyes; then
261 AC_DEFINE(SMARTALLOC)
264 # -------------------------------------------
265 # static-tools (default off)
266 # -------------------------------------------
267 AC_ARG_ENABLE(static-tools,
268 [ --enable-static-tools enable static tape tools [disabled]],
269 [if test x$enableval = xyes; then
270 support_static_tools=yes
274 if test x$support_static_tools = xyes; then
275 TTOOL_LDFLAGS="-static"
277 AC_SUBST(TTOOL_LDFLAGS)
279 # -------------------------------------------
280 # static-fd (default off)
281 # -------------------------------------------
282 AC_ARG_ENABLE(static-fd,
283 [ --enable-static-fd enable static File daemon [disabled]],
284 [if test x$enableval = xyes; then
285 support_static_fd=yes
289 if test x$support_static_fd = xyes; then
290 STATIC_FD="static-bacula-fd"
294 # -------------------------------------------
295 # static-sd (default off)
296 # -------------------------------------------
297 AC_ARG_ENABLE(static-sd,
298 [ --enable-static-sd enable static Storage daemon [disabled]],
299 [if test x$enableval = xyes; then
300 support_static_sd=yes
304 if test x$support_static_sd = xyes; then
305 STATIC_SD="static-bacula-sd"
309 # -------------------------------------------
310 # static-dir (default off)
311 # -------------------------------------------
312 AC_ARG_ENABLE(static-dir,
313 [ --enable-static-dir enable static Director [disabled]],
314 [if test x$enableval = xyes; then
315 support_static_dir=yes
319 if test x$support_static_dir = xyes; then
320 STATIC_DIR="static-bacula-dir"
324 # -------------------------------------------
325 # static-cons (default off)
326 # -------------------------------------------
327 AC_ARG_ENABLE(static-cons,
328 [ --enable-static-cons enable static Console [disabled]],
329 [if test x$enableval = xyes; then
330 support_static_cons=yes
336 if test x$support_static_cons = xyes; then
337 STATIC_CONS="static-bconsole"
338 STATIC_GNOME_CONS="static-gnome-console"
339 STATIC_WX_CONS="static-wx-console"
341 AC_SUBST(STATIC_CONS)
342 AC_SUBST(STATIC_GNOME_CONS)
343 AC_SUBST(STATIC_WX_CONS)
345 # -------------------------------------------
346 # client_only (default off)
347 # -------------------------------------------
348 AC_ARG_ENABLE(client-only,
349 [ --enable-client-only build client (File daemon) only [disabled]],
350 [if test x$enableval = xyes; then
351 build_client_only=yes
355 if test x$build_client_only = xno; then
362 # ---------------------------------------------------
363 # Check for conio (Bacula readline substitute)(
364 # ---------------------------------------------------
365 # this allows you to turn it completely off
367 [ --disable-conio disable conio support [enabled]
369 [if test x$enableval = xno; then
374 if test x$support_conio = xyes; then
375 AC_CHECK_HEADER(termcap.h,
376 [ AC_CHECK_LIB(termcap, tgetent,
377 [ CONS_LIBS="-ltermcap"
382 AC_DEFINE(HAVE_CONIO, 1, [Set if Bacula conio support enabled])
384 [ AC_CHECK_LIB(ncurses, tgetent,
385 [ CONS_LIBS="-lncurses"
390 AC_DEFINE(HAVE_CONIO, 1, [Set if Bacula conio support enabled])
392 [ echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "])
394 ],[echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "])
398 # ---------------------------------------------------
399 # Check for readline support/directory (default off)
400 # ---------------------------------------------------
401 # this allows you to turn it completely off
402 AC_ARG_ENABLE(readline,
403 [ --disable-readline disable readline support [disable]
405 [if test x$enableval = xno; then
411 if test x$support_readline = xyes; then
412 AC_ARG_WITH(readline,
413 [ --with-readline=DIR specify readline library directory],
415 case "$with_readline" in
418 if test "$with_readline" != "yes"; then
419 CONS_INC="-I${with_readline}"
420 CONS_LDFLAGS="-L$with_readline"
422 with_readline="/usr/include/readline"
424 AC_CHECK_HEADER(${with_readline}/readline.h,
425 [ AC_DEFINE(HAVE_READLINE)
426 CONS_LIBS="-lreadline -ltermcap"
430 echo "readline.h not found. readline turned off ..."
437 # check for standard readline library
438 AC_CHECK_HEADER(/usr/include/readline/readline.h,
439 [ AC_DEFINE(HAVE_READLINE)
441 CONS_INC="-I/usr/include/readline"
442 CONS_LIBS="-lreadline -ltermcap"
444 # Did not find standard library, so try Bacula's default
445 AC_CHECK_HEADER(${TOP_DIR}/depkgs/readline/readline.h,
446 [ AC_DEFINE(HAVE_READLINE)
448 CONS_INC="-I${TOP_DIR}/depkgs/readline"
449 CONS_LIBS="-lreadline -lhistory -ltermcap"
450 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
451 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
454 echo "readline.h not found. readline turned off ..."
470 AC_SUBST(CONS_LDFLAGS)
471 AC_SUBST(READLINE_SRC)
473 # Minimal stuff for readline Makefile configuration
478 AC_CHECK_FUNCS(strcasecmp select setenv putenv tcgetattr setlocale lstat lchown)
479 AC_CHECK_FUNCS(nanosleep nl_langinfo)
480 AC_CHECK_HEADERS(varargs.h)
482 # End of readline/conio stuff
483 # -----------------------------------------------------------------------
486 # ---------------------------------------------------
487 # Check for GMP support/directory
488 # ---------------------------------------------------
492 # [ --with-gmp[=DIR] Specify gmp library directory],
494 # case "$with_gmp" in
497 # if test "$with_gmp" != "yes"; then
498 # GMP_INC="-I$with_gmp"
500 # GMP_LDFLAGS="-L$with_gmp"
502 # with_gmp="/usr/include"
504 # AC_CHECK_HEADER($with_gmp/gmp.h,
505 # [ AC_MSG_RESULT(yes)
506 # AC_DEFINE(HAVE_GMP)
510 # [ AC_MSG_ERROR([*** gmp library missing])
516 # # check for standard gmp library
517 # AC_CHECK_HEADER(/usr/include/gmp.h,
518 # [ AC_MSG_RESULT(yes)
519 # AC_DEFINE(HAVE_GMP)
524 # # Did not find standard library, so use our own
526 # AC_DEFINE(HAVE_GMP)
529 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
531 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
532 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
538 #AC_SUBST(GMP_LDFLAGS)
542 # -----------------------------------------------------------------------
545 # ---------------------------------------------------
546 # Check for CWEB support/directory
547 # ---------------------------------------------------
552 # [ --with-cweb[=DIR] Specify cweb library directory],
554 # case "$with_cweb" in
557 # if test "$with_cweb" != "yes"; then
558 # CWEB_INC="-I$with_cweb"
560 # CWEB_LDFLAGS="-L$with_cweb"
562 # with_cweb="/usr/include"
564 # AC_CHECK_HEADER($with_cweb/cweb.h,
565 # [ AC_MSG_RESULT(yes)
566 # AC_DEFINE(HAVE_CWEB)
570 # [ AC_MSG_ERROR([*** cweb library missing])
576 # # check for standard cweb library
577 # AC_CHECK_HEADER(/usr/include/cweb.h,
578 # [ AC_MSG_RESULT(yes)
579 # AC_DEFINE(HAVE_CWEB)
584 # # Did not find starndard library, so use our own
586 # AC_DEFINE(HAVE_CWEB)
589 # CWEB=${TOP_DIR}/depkgs/cweb
590 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
592 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
593 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
600 #AC_SUBST(CWEB_LDFLAGS)
604 # -----------------------------------------------------------------------
608 # -----------------------------------------------------------
609 # Check whether user wants TCP wrappers support (default off)
610 # -----------------------------------------------------------
612 AC_ARG_WITH(tcp-wrappers,
613 [ --with-tcp-wrappers=DIR enable tcpwrappers support],
615 if test "x$withval" != "xno" ; then
617 LIBS="$saved_LIBS -lwrap"
618 AC_MSG_CHECKING(for libwrap)
621 int deny_severity = 0;
622 int allow_severity = 0;
623 struct request_info *req; ],
624 [ hosts_access(req); ],
627 AC_DEFINE(HAVE_LIBWRAP)
630 LIBS="$saved_LIBS -lwrap -lnsl"
633 int deny_severity = 0;
634 int allow_severity = 0;
635 struct request_info *req; ],
636 [ hosts_access(req); ],
639 AC_DEFINE(HAVE_LIBWRAP)
642 [AC_MSG_ERROR([*** libwrap missing]) ] ]
649 # ------------------------------------------
650 # Where to place working dir
651 # ------------------------------------------
652 working_dir=`eval echo ${prefix}/var/bacula/working`
653 AC_ARG_WITH(working-dir,
654 [ --with-working-dir=PATH specify path of Bacula working directory],
656 if test "x$withval" != "xno" ; then
662 AC_SUBST(working_dir)
665 # ------------------------------------------
666 # Where to place scriptdir (script files)
667 # ------------------------------------------
668 scriptdir=`eval echo ${sysconfdir}`
669 AC_ARG_WITH(scriptdir,
670 [ --with-scriptdir=PATH specify path of Bacula scripts directory],
672 if test "x$withval" != "xno" ; then
681 # ------------------------------------------
682 # Where to send dump email
683 # ------------------------------------------
684 dump_email=root@localhost
685 AC_ARG_WITH(dump-email,
686 [ --with-dump-email=EMAIL dump email address],
688 if test "x$withval" != "xno" ; then
696 # ------------------------------------------
697 # Where to send job email
698 # ------------------------------------------
699 job_email=root@localhost
700 AC_ARG_WITH(job-email,
701 [ --with-job-email=EMAIL job output email address],
703 if test "x$withval" != "xno" ; then
711 # ------------------------------------------
712 # Where to find smtp host
713 # ------------------------------------------
715 AC_ARG_WITH(smtp_host,
716 [ --with-smtp-host=HOST SMTP mail host address],
718 if test "x$withval" != "xno" ; then
727 # ------------------------------------
728 # Where to place pid files
729 # ------------------------------------
732 [ --with-pid-dir=PATH specify location of Bacula pid files],
734 if test "x$withval" != "xno" ; then
740 AC_DEFINE_UNQUOTED(_PATH_BACULA_PIDDIR, "$piddir")
744 # ------------------------------------
745 # Where to place subsys "lock file"
746 # ------------------------------------
747 subsysdir=/var/run/subsys
748 AC_ARG_WITH(subsys-dir,
749 [ --with-subsys-dir=PATH specify location of Bacula subsys file],
751 if test "x$withval" != "xno" ; then
761 # ------------------------------------
762 # Where to start assigning ports
763 # ------------------------------------
765 AC_ARG_WITH(baseport,
766 [ --with-baseport=PORT specify base port address for daemons],
768 if test "x$withval" != "xno" ; then
775 dir_port=`expr $baseport`
776 fd_port=`expr $baseport + 1`
777 sd_port=`expr $fd_port + 1`
784 # ------------------------------------------
786 # ------------------------------------------
788 AC_ARG_WITH(dir-password,
789 [ --with-dir-password=PASSWORD specify Director's password],
791 if test "x$withval" != "xno" ; then
792 dir_password=$withval
797 if test "x$dir_password" = "x" ; then
798 if test "x$OPENSSL" = "xnone" ; then
799 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
800 key=`autoconf/randpass 33`
802 key=`openssl rand -base64 33`
808 AC_ARG_WITH(fd-password,
809 [ --with-fd-password=PASSWORD specify Client's password],
811 if test "x$withval" != "xno" ; then
817 if test "x$fd_password" = "x" ; then
818 if test "x$OPENSSL" = "xnone" ; then
819 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
820 key=`autoconf/randpass 37`
822 key=`openssl rand -base64 33`
828 AC_ARG_WITH(sd-password,
829 [ --with-sd-password=PASSWORD specify Storage daemon's password],
831 if test "x$withval" != "xno" ; then
837 if test "x$sd_password" = "x" ; then
838 if test "x$OPENSSL" = "xnone" ; then
839 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
840 key=`autoconf/randpass 41`
842 key=`openssl rand -base64 33`
848 AC_SUBST(dir_password)
849 AC_SUBST(fd_password)
850 AC_SUBST(sd_password)
854 # Handle users and groups for each daemon
857 AC_ARG_WITH(dir_user,
858 [ --with-dir-user=USER specify user for Director daemon],
860 if test "x$withval" != "x" ; then
867 AC_ARG_WITH(dir_group,
868 [ --with-dir-group=GROUP specify group for Director daemon],
870 if test "x$withval" != "x" ; then
878 [ --with-sd-user=USER specify user for Storage daemon],
880 if test "x$withval" != "x" ; then
887 AC_ARG_WITH(sd_group,
888 [ --with-sd-group=GROUP specify group for Storage daemon],
890 if test "x$withval" != "x" ; then
898 [ --with-fd-user=USER specify user for File daemon],
900 if test "x$withval" != "x" ; then
907 AC_ARG_WITH(fd_group,
908 [ --with-fd-group=GROUP specify group for File daemon],
910 if test "x$withval" != "x" ; then
927 # allow setting default executable permissions
930 AC_ARG_WITH(sbin-perm,
931 [ --with-sbin-perm=MODE specify permissions for sbin binaries (0754)],
933 if test "x$withval" != "x" ; then
941 # ------------------------------------------------
942 # Bacula check for various SQL database engines
943 # ------------------------------------------------
944 BA_CHECK_POSTGRESQL_DB
953 AC_DEFINE(PROTOTYPES)
955 dnl# --------------------------------------------------------------------------
956 dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
958 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
959 if test -z "$CCOPTS"; then
960 CCOPTS='-g -O2 -Wall'
969 dnl See if we can use 64 bit file addresses
970 largefile_support="no"
976 dnl# --------------------------------------------------------------------------
977 dnl# CHECKING FOR HEADER FILES
978 dnl# --------------------------------------------------------------------------
1012 AC_STRUCT_ST_BLKSIZE
1016 dnl# --------------------------------------------------------------------------
1017 dnl# Check for utime.h structure
1018 dnl# --------------------------------------------------------------------------
1019 AC_CACHE_CHECK(for utime.h, ba_cv_header_utime_h,
1021 #include <sys/types.h>
1022 #include <utime.h>], [struct utimbuf foo],
1023 ba_cv_header_utime_h=yes, ba_cv_header_utime_h=no)])
1024 test $ba_cv_header_utime_h = yes && AC_DEFINE(HAVE_UTIME_H)
1026 dnl# --------------------------------------------------------------------------
1027 dnl# Check for socklen_t
1028 dnl# --------------------------------------------------------------------------
1029 AC_CACHE_CHECK(for socklen_t, ba_cv_header_socklen_t,
1031 #include <sys/types.h>
1032 #include <sys/socket.h>],
1034 ba_cv_header_socklen_t=yes, ba_cv_header_socklen_t=no)])
1035 test $ba_cv_header_socklen_t = yes && AC_DEFINE(HAVE_SOCKLEN_T)
1037 dnl# --------------------------------------------------------------------------
1038 dnl# Check for bigendian
1039 dnl# --------------------------------------------------------------------------
1040 AC_CACHE_CHECK([for bigendian], ba_cv_bigendian,
1042 [main(){long a=1L; char *p=(char *)&a; exit(*p);}],
1043 [ba_cv_bigendian=yes],
1044 [ba_cv_bigendian=no],
1045 [ba_cv_bigendian=no])])
1046 test $ba_cv_bigendian = yes && AC_DEFINE(HAVE_BIGENDIAN)
1052 dnl# --------------------------------------------------------------------------
1053 dnl# CHECKING FOR FILESYSTEM TYPE
1054 dnl# --------------------------------------------------------------------------
1055 AC_MSG_CHECKING(how to get filesystem type)
1057 # The order of these tests is important.
1058 AC_TRY_CPP([#include <sys/statvfs.h>
1059 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=SVR4)
1060 if test $fstype = no; then
1061 AC_TRY_CPP([#include <sys/statfs.h>
1062 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=SVR3)
1064 if test $fstype = no; then
1065 AC_TRY_CPP([#include <sys/statfs.h>
1066 #include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=AIX)
1068 if test $fstype = no; then
1069 AC_TRY_CPP([#include <mntent.h>], AC_DEFINE(FSTYPE_MNTENT) fstype=4.3BSD)
1071 if test $fstype = no; then
1072 AC_EGREP_HEADER(f_type;, sys/mount.h, AC_DEFINE(FSTYPE_STATFS) fstype=4.4BSD/OSF1)
1074 if test $fstype = no; then
1075 AC_TRY_CPP([#include <sys/mount.h>
1076 #include <sys/fs_types.h>], AC_DEFINE(FSTYPE_GETMNT) fstype=Ultrix)
1078 AC_MSG_RESULT($fstype)
1080 dnl# --------------------------------------------------------------------------
1081 dnl# CHECKING FOR TYPEDEFS, STRUCTURES, AND COMPILER CHARACTERISTICS.
1082 dnl# --------------------------------------------------------------------------
1090 AC_CHECK_TYPE(ino_t, unsigned long)
1091 AC_CHECK_TYPE(dev_t, unsigned long)
1092 AC_CHECK_TYPE(daddr_t, long)
1093 AC_CHECK_TYPE(major_t, int)
1094 AC_CHECK_TYPE(minor_t, int)
1095 AC_CHECK_TYPE(ssize_t, int)
1102 AC_CHECK_SIZEOF(char, 1)
1103 AC_CHECK_SIZEOF(short int, 2)
1104 AC_CHECK_SIZEOF(int, 4)
1105 AC_CHECK_SIZEOF(long int, 4)
1106 AC_CHECK_SIZEOF(long long int, 8)
1107 AC_CHECK_SIZEOF(int *, 4)
1109 # Check for sys/types.h types
1110 AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
1112 [ #include <sys/types.h> ],
1114 [ ac_cv_have_u_int="yes" ],
1115 [ ac_cv_have_u_int="no" ]
1118 if test "x$ac_cv_have_u_int" = "xyes" ; then
1119 AC_DEFINE(HAVE_U_INT)
1123 AC_CACHE_CHECK([for intmax_t type], ac_cv_have_intmax_t, [
1125 [ #include <sys/types.h> ],
1126 [ intmax_t a; a = 1;],
1127 [ ac_cv_have_intmax_t="yes" ],
1130 [ #include <stdint.h> ],
1131 [ intmax_t a; a = 1;],
1132 [ ac_cv_have_intmax_t="yes" ],
1133 [ ac_cv_have_intmax_t="no" ]
1139 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
1140 AC_DEFINE(HAVE_INTMAX_T)
1145 AC_CACHE_CHECK([for u_intmax_t type], ac_cv_have_u_intmax_t, [
1147 [ #include <sys/types.h> ],
1148 [ u_intmax_t a; a = 1;],
1149 [ ac_cv_have_u_intmax_t="yes" ],
1152 [ #include <stdint.h> ],
1153 [ u_intmax_t a; a = 1;],
1154 [ ac_cv_have_u_intmax_t="yes" ],
1155 [ ac_cv_have_u_intmax_t="no" ]
1160 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
1161 AC_DEFINE(HAVE_U_INTMAX_T)
1166 AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
1168 [ #include <sys/types.h> ],
1169 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
1170 [ ac_cv_have_intxx_t="yes" ],
1171 [ ac_cv_have_intxx_t="no" ]
1174 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
1175 AC_DEFINE(HAVE_INTXX_T)
1179 AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [
1181 [ #include <sys/types.h> ],
1182 [ int64_t a; a = 1;],
1183 [ ac_cv_have_int64_t="yes" ],
1184 [ ac_cv_have_int64_t="no" ]
1187 if test "x$ac_cv_have_int64_t" = "xyes" ; then
1188 AC_DEFINE(HAVE_INT64_T)
1192 AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
1194 [ #include <sys/types.h> ],
1195 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
1196 [ ac_cv_have_u_intxx_t="yes" ],
1197 [ ac_cv_have_u_intxx_t="no" ]
1200 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
1201 AC_DEFINE(HAVE_U_INTXX_T)
1205 AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [
1207 [ #include <sys/types.h> ],
1208 [ u_int64_t a; a = 1;],
1209 [ ac_cv_have_u_int64_t="yes" ],
1210 [ ac_cv_have_u_int64_t="no" ]
1213 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
1214 AC_DEFINE(HAVE_U_INT64_T)
1218 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
1219 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1221 AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
1223 [ #include <sys/bitypes.h> ],
1224 [ int8_t a; int16_t b; int32_t c;
1225 u_int8_t e; u_int16_t f; u_int32_t g;
1226 a = b = c = e = f = g = 1; ],
1227 [ AC_DEFINE(HAVE_U_INTXX_T)
1228 AC_DEFINE(HAVE_INTXX_T)
1229 AC_DEFINE(HAVE_SYS_BITYPES_H)
1230 AC_MSG_RESULT(yes) ],
1231 [ AC_MSG_RESULT(no)]
1235 if test -z "$have_u_intxx_t" ; then
1236 AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
1238 [ #include <sys/types.h> ],
1239 [ uint8_t a; uint16_t b;
1240 uint32_t c; a = b = c = 1; ],
1241 [ ac_cv_have_uintxx_t="yes" ],
1242 [ ac_cv_have_uintxx_t="no" ]
1245 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
1246 AC_DEFINE(HAVE_UINTXX_T)
1250 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
1251 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1253 AC_MSG_CHECKING([for int64_t and u_int64_t types in sys/bitypes.h])
1255 [ #include <sys/bitypes.h> ],
1256 [ int64_t a; u_int64_t b;
1258 [ AC_DEFINE(HAVE_U_INT64_T)
1259 AC_DEFINE(HAVE_INT64_T)
1260 AC_MSG_RESULT(yes) ],
1261 [ AC_MSG_RESULT(no)]
1265 if (test -z "$have_uintxx_t" && \
1266 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1268 AC_MSG_CHECKING([for uintXX_t types in sys/bitypes.h])
1270 [ #include <sys/bitypes.h> ],
1271 [ uint8_t a; uint16_t b;
1272 uint32_t c; a = b = c = 1; ],
1273 [ AC_DEFINE(HAVE_UINTXX_T)
1274 AC_MSG_RESULT(yes) ],
1275 [ AC_MSG_RESULT(no)]
1283 dnl# --------------------------------------------------------------------------
1284 dnl# CHECKING FOR REQUIRED LIBRARY FUNCTIONS
1285 dnl# --------------------------------------------------------------------------
1301 [echo 'configure: cannot find needed function.'; exit 1]
1304 AC_CHECK_FUNCS(fchdir, [AC_DEFINE(HAVE_FCHDIR)])
1305 AC_CHECK_FUNCS(strtoll, [AC_DEFINE(HAVE_STRTOLL)])
1307 AC_CHECK_FUNCS(chflags)
1309 AC_CHECK_FUNCS(snprintf vsnprintf gethostid getdomainname)
1311 dnl# --------------------------------------------------------------------------
1312 dnl# CHECKING FOR THREAD SAFE FUNCTIONS
1313 dnl# --------------------------------------------------------------------------
1314 AC_CHECK_FUNCS(localtime_r readdir_r strerror_r gethostbyname_r)
1316 # If resolver functions are not in libc check for -lnsl or -lresolv.
1317 AC_CHECK_FUNC(gethostbyname_r,
1318 AC_MSG_RESULT(using libc's resolver),
1319 AC_CHECK_LIB(nsl,gethostbyname_r)
1320 AC_CHECK_LIB(resolv,gethostbyname_r))
1323 # Find where sockets are (especially for Solaris)
1324 AC_CHECK_FUNC(socket,
1325 AC_MSG_RESULT(using libc's socket),
1326 AC_CHECK_LIB(xnet,socket)
1327 AC_CHECK_LIB(socket,socket)
1328 AC_CHECK_LIB(inet,socket))
1330 AC_CHECK_FUNCS(inet_pton, [AC_DEFINE(HAVE_INET_PTON)])
1331 AC_CHECK_FUNCS(inet_ntop, [AC_DEFINE(HAVE_INET_NTOP)])
1332 AC_CHECK_FUNCS(gethostbyname2, [AC_DEFINE(HAVE_GETHOSTBYNAME2)])
1334 dnl ----------------------------
1335 dnl check sa_len of sockaddr
1336 dnl ----------------------------
1337 AC_CACHE_CHECK(for struct sockaddr has a sa_len field, ac_cv_struct_sockaddr_sa_len,
1338 [AC_TRY_COMPILE([#include <sys/socket.h>], [struct sockaddr s; s.sa_len;],
1339 ac_cv_struct_sockaddr_sa_len=yes, ac_cv_struct_sockaddr_sa_len=no)])
1341 if test $ac_cv_struct_sockaddr_sa_len = yes; then
1342 AC_DEFINE(HAVE_SA_LEN, 1, [Define if sa_len field exists in struct sockaddr])
1346 dnl Check for IPv6 support
1347 AC_CACHE_CHECK([for IPv6 support], ac_cv_ipv6_support,
1348 [AC_TRY_LINK([ #include <sys/types.h>
1349 #include <sys/socket.h>
1350 #include <netinet/in.h>], [struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
1352 [ac_cv_ipv6_support=yes], [ac_cv_ipv6_support=no])])
1354 if test "$ac_cv_ipv6_support" = yes; then
1355 AC_DEFINE(HAVE_IPV6,1,[Whether to enable IPv6 support])
1364 AC_FUNC_CLOSEDIR_VOID
1365 AC_FUNC_SETPGRP dnl check for BSD setpgrp.
1369 dnl# FreeBSD needs to link libxpg4
1370 AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])
1373 AC_CHECK_LIB(sun, getpwnam)
1375 AC_CHECK_HEADERS(zlib.h)
1376 AC_CHECK_LIB(z, deflate, [FDLIBS="-lz"])
1378 if test x$FDLIBS = x-lz; then
1379 AC_DEFINE(HAVE_LIBZ)
1383 AC_CHECK_HEADER(sys/acl.h)
1384 AC_CHECK_LIB(acl, acl_get_file, [FDLIBS="-lacl $FDLIBS"])
1386 if test $ac_cv_lib_acl_acl_get_file = yes; then
1391 dnl Check for pthread libraries
1393 AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
1394 [AC_CHECK_LIB(pthreads, pthread_create, PTHREAD_LIB="-lpthreads",
1395 [AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r",
1396 [AC_CHECK_FUNC(pthread_create)]
1406 LDFLAGS=${LDFLAGS--O}
1407 DB_LIBS="${SQL_LFLAGS}"
1409 CPPFLAGS="$CPPFLAGS"
1420 AC_SUBST(X_EXTRA_LIBS)
1424 dnl# extra configurable objects
1435 # Finally we set appropriate distribution specific
1436 # variables and defaults
1438 # PFILES are platform specific files
1439 PFILES="platforms/Makefile"
1443 hostname=`uname -n | cut -d '.' -f 1`
1447 PSCMD="ps -e -o pid,comm"
1449 platforms/aix/Makefile"
1450 TAPEDRIVE="/dev/rmt0.1"
1454 PTHREAD_LIB="-lpthread -lexc"
1455 if test "${CC}" = "gcc" ; then
1462 TAPEDRIVE="/dev/nrmt0"
1465 DISTVER=`uname -a |awk '{print $3}'`
1466 TAPEDRIVE="/dev/nrmt0"
1467 PTHREAD_LIB="-pthread"
1468 CFLAGS="${CFLAGS} -pthread"
1469 PSCMD="ps -x -o pid,command"
1473 platforms/bsdi/Makefile \
1474 platforms/bsdi/bacula-fd \
1475 platforms/bsdi/bacula-sd \
1476 platforms/bsdi/bacula-dir"
1477 largefile_support="yes"
1480 DISTVER=`uname -a |awk '{print $3}'`
1481 TAPEDRIVE="/dev/nrst0"
1484 WLDFLAGS="-mwindows"
1488 TAPEDRIVE="/dev/nst0"
1489 PSCMD="ps -e -o pid,command"
1492 platforms/darwin/Makefile"
1495 DISTVER=`cat /etc/debian_version`
1496 TAPEDRIVE="/dev/nrst0"
1497 PSCMD="ps -e -o pid,command"
1500 DISTVER=`uname -a |awk '{print $3}'`
1501 VER=`echo $DISTVER | cut -c 1`
1502 if test x$VER = x4 ; then
1503 PTHREAD_LIB="-pthread"
1504 CFLAGS="${CFLAGS} -pthread"
1508 TAPEDRIVE="/dev/nrsa0"
1509 PSCMD="ps -x -o pid,command"
1511 platforms/freebsd/Makefile \
1512 platforms/freebsd/bacula-fd \
1513 platforms/freebsd/bacula-sd \
1514 platforms/freebsd/bacula-dir"
1515 largefile_support="yes"
1518 PSCMD="UNIX95=1 ps -e -o pid,comm"
1519 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
1521 TAPEDRIVE="/dev/rmt/0hnb"
1525 TAPEDRIVE="/dev/rmt/0cbn"
1526 PSCMD="ps -e -o pid,comm"
1528 platforms/irix/Makefile \
1529 platforms/irix/bacula-fd \
1530 platforms/irix/bacula-sd \
1531 platforms/irix/bacula-dir"
1534 DISTVER=`uname -a |awk '{print $3}'`
1537 TAPEDRIVE="/dev/nrst0"
1538 PSCMD="ps -a -o pid,command"
1539 PTHREAD_LIB="-pthread"
1540 CFLAGS="${CFLAGS} -pthread"
1543 DISTVER=`uname -a |awk '{print $3}'`
1546 TAPEDRIVE="/dev/nrst0"
1547 PSCMD="ps -a -o pid,command"
1548 PTHREAD_LIB="-pthread"
1549 CFLAGS="${CFLAGS} -pthread"
1551 platforms/openbsd/Makefile \
1552 platforms/openbsd/bacula-fd \
1553 platforms/openbsd/bacula-sd \
1554 platforms/openbsd/bacula-dir"
1557 if test -f /etc/whitebox-release ; then
1558 f=/etc/whitebox-release
1560 f=/etc/redhat-release
1562 if test `cat $f | grep release |\
1563 cut -f 3 -d ' '`x = "Enterprise"x ; then
1564 DISTVER="Enterprise "`cat $f | grep release |\
1567 DISTVER=`cat /etc/redhat-release | grep release |\
1570 TAPEDRIVE="/dev/nst0"
1571 PSCMD="ps -e -o pid,command"
1573 platforms/redhat/Makefile \
1574 platforms/redhat/bacula-fd \
1575 platforms/redhat/bacula-sd \
1576 platforms/redhat/bacula-dir \
1577 platforms/redhat/bacula.spec \
1579 hostname=`hostname -s`
1582 DISTVER=`cat /etc/mandrake-release | grep release |\
1584 TAPEDRIVE="/dev/nst0"
1585 PSCMD="ps -e -o pid,command"
1587 platforms/mandrake/Makefile \
1588 platforms/mandrake/bacula-fd \
1589 platforms/mandrake/bacula-sd \
1590 platforms/mandrake/bacula-dir \
1591 platforms/mandrake/bacula.spec \
1595 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
1596 TAPEDRIVE="/dev/nst0"
1597 PSCMD="ps -e -o pid,command"
1599 platforms/gentoo/Makefile \
1600 platforms/gentoo/bacula-fd \
1601 platforms/gentoo/bacula-sd \
1602 platforms/gentoo/bacula-dir"
1605 DISTVER=`cat /etc/slackware-version`
1606 TAPEDRIVE="/dev/nst0"
1607 PSCMD="ps -e -o pid,command"
1609 platforms/slackware/Makefile \
1610 platforms/slackware/rc.bacula-fd \
1611 platforms/slackware/rc.bacula-sd \
1612 platforms/slackware/rc.bacula-dir\
1613 platforms/slackware/functions.bacula"
1617 TAPEDRIVE="/dev/rmt/0cbn"
1618 PSCMD="ps -e -o pid,comm"
1620 platforms/solaris/Makefile \
1621 platforms/solaris/bacula-fd \
1622 platforms/solaris/bacula-sd \
1623 platforms/solaris/bacula-dir"
1624 if test x$DISTVER = x5.6 ; then
1625 AC_DEFINE(HAVE_OLD_SOCKOPT)
1629 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
1631 TAPEDRIVE="/dev/nst0"
1632 PSCMD="ps -e -o pid,command"
1634 platforms/suse/Makefile \
1635 platforms/suse/bacula-fd \
1636 platforms/suse/bacula-sd \
1637 platforms/suse/bacula-dir \
1638 platforms/suse/bacula \
1639 platforms/suse/bacula.spec"
1644 TAPEDRIVE="/dev/nst0"
1645 PSCMD="ps -e -o pid,command"
1647 platforms/suse/Makefile \
1648 platforms/suse/bacula-fd \
1649 platforms/suse/bacula-sd \
1650 platforms/suse/bacula-dir"
1654 TAPEDRIVE="/dev/nst0"
1657 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
1663 LIBS="$PTHREAD_LIB $LIBS"
1665 AC_DEFINE_UNQUOTED(lld, "$lld")
1666 AC_DEFINE_UNQUOTED(llu, "$llu")
1674 dnl# common parts of the Makefile
1675 MCOMMON=./autoconf/Make.common
1676 AC_SUBST_FILE(MCOMMON)
1679 if test "x${subsysdir}" = "x${sbindir}" ; then
1682 echo "You have set both --sbindir and --with-subsys-dir"
1683 echo " equal to: ${subsysdir} "
1684 echo "This is not permitted. Please reconfigure."
1686 echo "Aborting configuration ..."
1692 AC_OUTPUT([autoconf/Make.common \
1695 rescue/linux/Makefile \
1696 rescue/freebsd/Makefile \
1697 rescue/solaris/Makefile \
1698 scripts/startmysql \
1700 scripts/btraceback \
1706 scripts/devel_bacula \
1709 scripts/bacula.desktop.gnome1 \
1710 scripts/bacula.desktop.gnome2 \
1711 scripts/bacula.desktop.gnome1.consolehelper \
1712 scripts/bacula.desktop.gnome2.consolehelper \
1713 scripts/bacula.desktop.gnome1.xsu \
1714 scripts/bacula.desktop.gnome2.xsu \
1715 scripts/gnome-console.console_apps \
1716 scripts/mtx-changer \
1720 src/console/Makefile \
1721 src/console/bconsole.conf \
1722 src/gnome-console/Makefile \
1723 src/gnome-console/gnome-console.conf \
1724 src/gnome2-console/Makefile \
1725 src/gnome2-console/gnome-console.conf \
1726 src/wx-console/Makefile \
1727 src/wx-console/wx-console.conf \
1728 src/tray-monitor/Makefile \
1729 src/tray-monitor/tray-monitor.conf \
1731 src/dird/bacula-dir.conf \
1733 src/stored/Makefile \
1734 src/stored/bacula-sd.conf \
1735 src/filed/Makefile \
1736 src/filed/bacula-fd.conf \
1737 src/filed/win32/Makefile \
1739 src/cats/make_catalog_backup \
1740 src/cats/delete_catalog_backup \
1741 src/cats/create_postgresql_database \
1742 src/cats/update_postgresql_tables \
1743 src/cats/make_postgresql_tables \
1744 src/cats/grant_postgresql_privileges \
1745 src/cats/drop_postgresql_tables \
1746 src/cats/drop_postgresql_database \
1747 src/cats/create_mysql_database \
1748 src/cats/update_mysql_tables \
1749 src/cats/make_mysql_tables \
1750 src/cats/grant_mysql_privileges \
1751 src/cats/drop_mysql_tables \
1752 src/cats/drop_mysql_database \
1753 src/cats/create_sqlite_database \
1754 src/cats/update_sqlite_tables \
1755 src/cats/make_sqlite_tables \
1756 src/cats/grant_sqlite_privileges \
1757 src/cats/drop_sqlite_tables \
1758 src/cats/drop_sqlite_database \
1761 src/cats/create_bdb_database \
1762 src/cats/update_bdb_tables \
1763 src/cats/make_bdb_tables \
1764 src/cats/grant_bdb_privileges \
1765 src/cats/drop_bdb_tables \
1766 src/cats/drop_bdb_database \
1767 src/cats/create_bacula_database \
1768 src/cats/update_bacula_tables \
1769 src/cats/grant_bacula_privileges \
1770 src/cats/make_bacula_tables \
1771 src/cats/drop_bacula_tables \
1772 src/cats/drop_bacula_database \
1773 src/findlib/Makefile \
1774 src/tools/Makefile \
1775 src/win32/winbacula.nsi \
1776 src/win32/baculafd/bacula-fd.conf \
1777 src/win32/Makefile \
1778 src/win32/console/bconsole.conf \
1779 src/win32/wx-console/wx-console.conf \
1781 [(echo "Doing make of dependencies"; ${MAKE:-make} depend;) ]
1785 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
1786 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
1791 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
1792 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
1794 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
1795 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
1797 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
1798 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
1800 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
1801 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
1803 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
1804 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
1806 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
1810 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
1811 largefile_support="yes"
1815 # A whole lot of hand springs to get the compiler version.
1816 # This is because gcc changed the output in version 3.0
1818 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
1819 if test "x${CCVERSION}" = "x" ; then
1820 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
1822 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
1823 if test x"${CXXVERSION}" = x ; then
1824 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
1827 if test "x${subsysdir}" = "x${sbindir}" ; then
1830 echo "You have set --sbindir and --with-subsys-dir"
1831 echo " both equal to: ${subsysdir} "
1832 echo " This is not permitted. Please reconfigure."
1834 echo "Aborting configuration ..."
1840 if test "x${db_name}" = "xInternal" ; then
1843 echo "You have not specified either --enable-client-only or one of the"
1844 echo " supported databases: MySQL, PostgreSQL, or SQLite".
1845 echo " This is not permitted. Please reconfigure."
1847 echo "Aborting the configuration ..."
1854 Configuration on `date`:
1856 Host: $host -- ${DISTNAME} ${DISTVER}
1857 Bacula version: ${VERSION} (${DATE})
1858 Source code location: ${srcdir}
1859 Install binaries: ${sbindir}
1860 Install config files: ${sysconfdir}
1861 Scripts directory: ${scriptdir}
1862 Working directory: ${working_dir}
1863 PID directory: ${piddir}
1864 Subsys directory: ${subsysdir}
1865 C Compiler: ${CC} ${CCVERSION}
1866 C++ Compiler: ${CXX} ${CXXVERSION}
1867 Compiler flags: ${WCFLAGS} ${CFLAGS}
1868 Linker flags: ${WLDFLAGS} ${LDFLAGS}
1870 Statically Linked Tools: ${support_static_tools}
1871 Statically Linked FD: ${support_static_fd}
1872 Statically Linked SD: ${support_static_sd}
1873 Statically Linked DIR: ${support_static_dir}
1874 Statically Linked CONS: ${support_static_cons}
1875 Database type: ${db_name}
1876 Database lib: ${DB_LIBS}
1878 Job Output Email: ${job_email}
1879 Traceback Email: ${dump_email}
1880 SMTP Host Address: ${smtp_host}
1882 Director Port: ${dir_port}
1883 File daemon Port: ${fd_port}
1884 Storage daemon Port: ${sd_port}
1886 Director User: ${dir_user}
1887 Director Group: ${dir_group}
1888 Storage Daemon User: ${sd_user}
1889 Storage DaemonGroup: ${sd_group}
1890 File Daemon User: ${fd_user}
1891 File Daemon Group: ${fd_group}
1893 SQL binaries Directory ${SQL_BINDIR}
1895 Large file support: $largefile_support
1896 Bacula conio support: ${got_conio} ${CONS_LIBS}
1897 readline support: ${got_readline} ${PRTREADLINE_SRC}
1898 TCP Wrappers support: ${TCPW_MSG}
1899 ZLIB support: ${have_zlib}
1900 enable-smartalloc: ${support_smartalloc}
1901 enable-gnome: ${support_gnome} ${gnome_version}
1902 enable-wx-console: ${support_wx_console}
1903 enable-tray-monitor: ${support_tray_monitor}
1904 client-only: ${build_client_only}
1905 ACL support: ${have_acl}
1912 # cweb support: ${got_cweb} ${CWEB_SRC}
1913 # gmp support: ${got_gmp} ${GMP_SRC}