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
247 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
249 if test $pkg = 0; then
250 AC_DEFINE(HAVE_GTK_2_4)
254 AC_SUBST(TRAY_MONITOR_DIR)
256 # -------------------------------------------
257 # smartalloc (default off)
258 # -------------------------------------------
259 AC_ARG_ENABLE(smartalloc,
260 [ --enable-smartalloc enable smartalloc debugging support [disabled]],
261 [if test x$enableval = xno; then
262 support_smartalloc=no
265 if test x$support_smartalloc = xyes; then
266 AC_DEFINE(SMARTALLOC)
269 # -------------------------------------------
270 # static-tools (default off)
271 # -------------------------------------------
272 AC_ARG_ENABLE(static-tools,
273 [ --enable-static-tools enable static tape tools [disabled]],
274 [if test x$enableval = xyes; then
275 support_static_tools=yes
279 if test x$support_static_tools = xyes; then
280 TTOOL_LDFLAGS="-static"
282 AC_SUBST(TTOOL_LDFLAGS)
284 # -------------------------------------------
285 # static-fd (default off)
286 # -------------------------------------------
287 AC_ARG_ENABLE(static-fd,
288 [ --enable-static-fd enable static File daemon [disabled]],
289 [if test x$enableval = xyes; then
290 support_static_fd=yes
294 if test x$support_static_fd = xyes; then
295 STATIC_FD="static-bacula-fd"
299 # -------------------------------------------
300 # static-sd (default off)
301 # -------------------------------------------
302 AC_ARG_ENABLE(static-sd,
303 [ --enable-static-sd enable static Storage daemon [disabled]],
304 [if test x$enableval = xyes; then
305 support_static_sd=yes
309 if test x$support_static_sd = xyes; then
310 STATIC_SD="static-bacula-sd"
314 # -------------------------------------------
315 # static-dir (default off)
316 # -------------------------------------------
317 AC_ARG_ENABLE(static-dir,
318 [ --enable-static-dir enable static Director [disabled]],
319 [if test x$enableval = xyes; then
320 support_static_dir=yes
324 if test x$support_static_dir = xyes; then
325 STATIC_DIR="static-bacula-dir"
329 # -------------------------------------------
330 # static-cons (default off)
331 # -------------------------------------------
332 AC_ARG_ENABLE(static-cons,
333 [ --enable-static-cons enable static Console [disabled]],
334 [if test x$enableval = xyes; then
335 support_static_cons=yes
341 if test x$support_static_cons = xyes; then
342 STATIC_CONS="static-bconsole"
343 STATIC_GNOME_CONS="static-gnome-console"
344 STATIC_WX_CONS="static-wx-console"
346 AC_SUBST(STATIC_CONS)
347 AC_SUBST(STATIC_GNOME_CONS)
348 AC_SUBST(STATIC_WX_CONS)
350 # -------------------------------------------
351 # client_only (default off)
352 # -------------------------------------------
353 AC_ARG_ENABLE(client-only,
354 [ --enable-client-only build client (File daemon) only [disabled]],
355 [if test x$enableval = xyes; then
356 build_client_only=yes
360 if test x$build_client_only = xno; then
367 # ---------------------------------------------------
368 # Check for conio (Bacula readline substitute)(
369 # ---------------------------------------------------
370 # this allows you to turn it completely off
372 [ --disable-conio disable conio support [enabled]
374 [if test x$enableval = xno; then
379 if test x$support_conio = xyes; then
380 AC_CHECK_HEADER(termcap.h,
381 [ AC_CHECK_LIB(termcap, tgetent,
382 [ CONS_LIBS="-ltermcap"
387 AC_DEFINE(HAVE_CONIO, 1, [Set if Bacula conio support enabled])
389 [ AC_CHECK_LIB(ncurses, tgetent,
390 [ CONS_LIBS="-lncurses"
395 AC_DEFINE(HAVE_CONIO, 1, [Set if Bacula conio support enabled])
397 [ echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "])
399 ],[echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "])
403 # ---------------------------------------------------
404 # Check for readline support/directory (default off)
405 # ---------------------------------------------------
406 # this allows you to turn it completely off
407 AC_ARG_ENABLE(readline,
408 [ --disable-readline disable readline support [disable]
410 [if test x$enableval = xno; then
416 if test x$support_readline = xyes; then
417 AC_ARG_WITH(readline,
418 [ --with-readline=DIR specify readline library directory],
420 case "$with_readline" in
423 if test "$with_readline" != "yes"; then
424 CONS_INC="-I${with_readline}"
425 CONS_LDFLAGS="-L$with_readline"
427 with_readline="/usr/include/readline"
429 AC_CHECK_HEADER(${with_readline}/readline.h,
430 [ AC_DEFINE(HAVE_READLINE)
431 CONS_LIBS="-lreadline -ltermcap"
435 echo "readline.h not found. readline turned off ..."
442 # check for standard readline library
443 AC_CHECK_HEADER(/usr/include/readline/readline.h,
444 [ AC_DEFINE(HAVE_READLINE)
446 CONS_INC="-I/usr/include/readline"
447 CONS_LIBS="-lreadline -ltermcap"
449 # Did not find standard library, so try Bacula's default
450 AC_CHECK_HEADER(${TOP_DIR}/depkgs/readline/readline.h,
451 [ AC_DEFINE(HAVE_READLINE)
453 CONS_INC="-I${TOP_DIR}/depkgs/readline"
454 CONS_LIBS="-lreadline -lhistory -ltermcap"
455 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
456 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
459 echo "readline.h not found. readline turned off ..."
475 AC_SUBST(CONS_LDFLAGS)
476 AC_SUBST(READLINE_SRC)
478 # Minimal stuff for readline Makefile configuration
483 AC_CHECK_FUNCS(strcasecmp select setenv putenv tcgetattr setlocale lstat lchown)
484 AC_CHECK_FUNCS(nanosleep nl_langinfo)
485 AC_CHECK_HEADERS(varargs.h)
487 # End of readline/conio stuff
488 # -----------------------------------------------------------------------
491 # ---------------------------------------------------
492 # Check for GMP support/directory
493 # ---------------------------------------------------
497 # [ --with-gmp[=DIR] Specify gmp library directory],
499 # case "$with_gmp" in
502 # if test "$with_gmp" != "yes"; then
503 # GMP_INC="-I$with_gmp"
505 # GMP_LDFLAGS="-L$with_gmp"
507 # with_gmp="/usr/include"
509 # AC_CHECK_HEADER($with_gmp/gmp.h,
510 # [ AC_MSG_RESULT(yes)
511 # AC_DEFINE(HAVE_GMP)
515 # [ AC_MSG_ERROR([*** gmp library missing])
521 # # check for standard gmp library
522 # AC_CHECK_HEADER(/usr/include/gmp.h,
523 # [ AC_MSG_RESULT(yes)
524 # AC_DEFINE(HAVE_GMP)
529 # # Did not find standard library, so use our own
531 # AC_DEFINE(HAVE_GMP)
534 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
536 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
537 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
543 #AC_SUBST(GMP_LDFLAGS)
547 # -----------------------------------------------------------------------
550 # ---------------------------------------------------
551 # Check for CWEB support/directory
552 # ---------------------------------------------------
557 # [ --with-cweb[=DIR] Specify cweb library directory],
559 # case "$with_cweb" in
562 # if test "$with_cweb" != "yes"; then
563 # CWEB_INC="-I$with_cweb"
565 # CWEB_LDFLAGS="-L$with_cweb"
567 # with_cweb="/usr/include"
569 # AC_CHECK_HEADER($with_cweb/cweb.h,
570 # [ AC_MSG_RESULT(yes)
571 # AC_DEFINE(HAVE_CWEB)
575 # [ AC_MSG_ERROR([*** cweb library missing])
581 # # check for standard cweb library
582 # AC_CHECK_HEADER(/usr/include/cweb.h,
583 # [ AC_MSG_RESULT(yes)
584 # AC_DEFINE(HAVE_CWEB)
589 # # Did not find starndard library, so use our own
591 # AC_DEFINE(HAVE_CWEB)
594 # CWEB=${TOP_DIR}/depkgs/cweb
595 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
597 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
598 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
605 #AC_SUBST(CWEB_LDFLAGS)
609 # -----------------------------------------------------------------------
613 # -----------------------------------------------------------
614 # Check whether user wants TCP wrappers support (default off)
615 # -----------------------------------------------------------
617 AC_ARG_WITH(tcp-wrappers,
618 [ --with-tcp-wrappers=DIR enable tcpwrappers support],
620 if test "x$withval" != "xno" ; then
622 LIBS="$saved_LIBS -lwrap"
623 AC_MSG_CHECKING(for libwrap)
626 int deny_severity = 0;
627 int allow_severity = 0;
628 struct request_info *req; ],
629 [ hosts_access(req); ],
632 AC_DEFINE(HAVE_LIBWRAP)
635 LIBS="$saved_LIBS -lwrap -lnsl"
638 int deny_severity = 0;
639 int allow_severity = 0;
640 struct request_info *req; ],
641 [ hosts_access(req); ],
644 AC_DEFINE(HAVE_LIBWRAP)
647 [AC_MSG_ERROR([*** libwrap missing]) ] ]
654 # ------------------------------------------
655 # Where to place working dir
656 # ------------------------------------------
657 working_dir=`eval echo ${prefix}/var/bacula/working`
658 AC_ARG_WITH(working-dir,
659 [ --with-working-dir=PATH specify path of Bacula working directory],
661 if test "x$withval" != "xno" ; then
667 AC_SUBST(working_dir)
670 # ------------------------------------------
671 # Where to place scriptdir (script files)
672 # ------------------------------------------
673 scriptdir=`eval echo ${sysconfdir}`
674 AC_ARG_WITH(scriptdir,
675 [ --with-scriptdir=PATH specify path of Bacula scripts directory],
677 if test "x$withval" != "xno" ; then
686 # ------------------------------------------
687 # Where to send dump email
688 # ------------------------------------------
689 dump_email=root@localhost
690 AC_ARG_WITH(dump-email,
691 [ --with-dump-email=EMAIL dump email address],
693 if test "x$withval" != "xno" ; then
701 # ------------------------------------------
702 # Where to send job email
703 # ------------------------------------------
704 job_email=root@localhost
705 AC_ARG_WITH(job-email,
706 [ --with-job-email=EMAIL job output email address],
708 if test "x$withval" != "xno" ; then
716 # ------------------------------------------
717 # Where to find smtp host
718 # ------------------------------------------
720 AC_ARG_WITH(smtp_host,
721 [ --with-smtp-host=HOST SMTP mail host address],
723 if test "x$withval" != "xno" ; then
732 # ------------------------------------
733 # Where to place pid files
734 # ------------------------------------
737 [ --with-pid-dir=PATH specify location of Bacula pid files],
739 if test "x$withval" != "xno" ; then
745 AC_DEFINE_UNQUOTED(_PATH_BACULA_PIDDIR, "$piddir")
749 # ------------------------------------
750 # Where to place subsys "lock file"
751 # ------------------------------------
752 subsysdir=/var/run/subsys
753 AC_ARG_WITH(subsys-dir,
754 [ --with-subsys-dir=PATH specify location of Bacula subsys file],
756 if test "x$withval" != "xno" ; then
766 # ------------------------------------
767 # Where to start assigning ports
768 # ------------------------------------
770 AC_ARG_WITH(baseport,
771 [ --with-baseport=PORT specify base port address for daemons],
773 if test "x$withval" != "xno" ; then
780 dir_port=`expr $baseport`
781 fd_port=`expr $baseport + 1`
782 sd_port=`expr $fd_port + 1`
789 # ------------------------------------------
791 # ------------------------------------------
793 AC_ARG_WITH(dir-password,
794 [ --with-dir-password=PASSWORD specify Director's password],
796 if test "x$withval" != "xno" ; then
797 dir_password=$withval
802 if test "x$dir_password" = "x" ; then
803 if test "x$OPENSSL" = "xnone" ; then
804 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
805 key=`autoconf/randpass 33`
807 key=`openssl rand -base64 33`
813 AC_ARG_WITH(fd-password,
814 [ --with-fd-password=PASSWORD specify Client's password],
816 if test "x$withval" != "xno" ; then
822 if test "x$fd_password" = "x" ; then
823 if test "x$OPENSSL" = "xnone" ; then
824 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
825 key=`autoconf/randpass 37`
827 key=`openssl rand -base64 33`
833 AC_ARG_WITH(sd-password,
834 [ --with-sd-password=PASSWORD specify Storage daemon's password],
836 if test "x$withval" != "xno" ; then
842 if test "x$sd_password" = "x" ; then
843 if test "x$OPENSSL" = "xnone" ; then
844 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
845 key=`autoconf/randpass 41`
847 key=`openssl rand -base64 33`
853 AC_ARG_WITH(mon-dir-password,
854 [ --with-mon-dir-password=PASSWORD specify Director's password used by the monitor],
856 if test "x$withval" != "xno" ; then
857 mon_dir_password=$withval
862 if test "x$mon_dir_password" = "x" ; then
863 if test "x$OPENSSL" = "xnone" ; then
864 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
865 key=`autoconf/randpass 33`
867 key=`openssl rand -base64 33`
869 mon_dir_password=$key
873 AC_ARG_WITH(mon-fd-password,
874 [ --with-mon-fd-password=PASSWORD specify Client's password used by the monitor],
876 if test "x$withval" != "xno" ; then
877 mon_fd_password=$withval
882 if test "x$mon_fd_password" = "x" ; then
883 if test "x$OPENSSL" = "xnone" ; then
884 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
885 key=`autoconf/randpass 37`
887 key=`openssl rand -base64 33`
893 AC_ARG_WITH(mon-sd-password,
894 [ --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor],
896 if test "x$withval" != "xno" ; then
897 mon_sd_password=$withval
902 if test "x$mon_sd_password" = "x" ; then
903 if test "x$OPENSSL" = "xnone" ; then
904 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
905 key=`autoconf/randpass 41`
907 key=`openssl rand -base64 33`
912 AC_SUBST(dir_password)
913 AC_SUBST(fd_password)
914 AC_SUBST(sd_password)
915 AC_SUBST(mon_dir_password)
916 AC_SUBST(mon_fd_password)
917 AC_SUBST(mon_sd_password)
920 # Handle users and groups for each daemon
923 AC_ARG_WITH(dir_user,
924 [ --with-dir-user=USER specify user for Director daemon],
926 if test "x$withval" != "x" ; then
933 AC_ARG_WITH(dir_group,
934 [ --with-dir-group=GROUP specify group for Director daemon],
936 if test "x$withval" != "x" ; then
944 [ --with-sd-user=USER specify user for Storage daemon],
946 if test "x$withval" != "x" ; then
953 AC_ARG_WITH(sd_group,
954 [ --with-sd-group=GROUP specify group for Storage daemon],
956 if test "x$withval" != "x" ; then
964 [ --with-fd-user=USER specify user for File daemon],
966 if test "x$withval" != "x" ; then
973 AC_ARG_WITH(fd_group,
974 [ --with-fd-group=GROUP specify group for File daemon],
976 if test "x$withval" != "x" ; then
993 # allow setting default executable permissions
996 AC_ARG_WITH(sbin-perm,
997 [ --with-sbin-perm=MODE specify permissions for sbin binaries (0754)],
999 if test "x$withval" != "x" ; then
1007 # ------------------------------------------------
1008 # Bacula check for various SQL database engines
1009 # ------------------------------------------------
1010 BA_CHECK_POSTGRESQL_DB
1019 AC_DEFINE(PROTOTYPES)
1021 dnl# --------------------------------------------------------------------------
1022 dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
1024 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
1025 if test -z "$CCOPTS"; then
1026 CCOPTS='-g -O2 -Wall'
1035 dnl See if we can use 64 bit file addresses
1036 largefile_support="no"
1042 dnl# --------------------------------------------------------------------------
1043 dnl# CHECKING FOR HEADER FILES
1044 dnl# --------------------------------------------------------------------------
1079 AC_STRUCT_ST_BLKSIZE
1083 dnl# --------------------------------------------------------------------------
1084 dnl# Check for utime.h structure
1085 dnl# --------------------------------------------------------------------------
1086 AC_CACHE_CHECK(for utime.h, ba_cv_header_utime_h,
1088 #include <sys/types.h>
1089 #include <utime.h>], [struct utimbuf foo],
1090 ba_cv_header_utime_h=yes, ba_cv_header_utime_h=no)])
1091 test $ba_cv_header_utime_h = yes && AC_DEFINE(HAVE_UTIME_H)
1093 dnl# --------------------------------------------------------------------------
1094 dnl# Check for socklen_t
1095 dnl# --------------------------------------------------------------------------
1096 AC_CACHE_CHECK(for socklen_t, ba_cv_header_socklen_t,
1098 #include <sys/types.h>
1099 #include <sys/socket.h>],
1101 ba_cv_header_socklen_t=yes, ba_cv_header_socklen_t=no)])
1102 test $ba_cv_header_socklen_t = yes && AC_DEFINE(HAVE_SOCKLEN_T)
1104 dnl# --------------------------------------------------------------------------
1105 dnl# Check for bigendian
1106 dnl# --------------------------------------------------------------------------
1107 AC_CACHE_CHECK([for bigendian], ba_cv_bigendian,
1109 [main(){long a=1L; char *p=(char *)&a; exit(*p);}],
1110 [ba_cv_bigendian=yes],
1111 [ba_cv_bigendian=no],
1112 [ba_cv_bigendian=no])])
1113 test $ba_cv_bigendian = yes && AC_DEFINE(HAVE_BIGENDIAN)
1119 dnl# --------------------------------------------------------------------------
1120 dnl# CHECKING FOR FILESYSTEM TYPE
1121 dnl# --------------------------------------------------------------------------
1122 AC_MSG_CHECKING(how to get filesystem type)
1124 # The order of these tests is important.
1125 AC_TRY_CPP([#include <sys/statvfs.h>
1126 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=SVR4)
1127 if test $fstype = no; then
1128 AC_TRY_CPP([#include <sys/statfs.h>
1129 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=SVR3)
1131 if test $fstype = no; then
1132 AC_TRY_CPP([#include <sys/statfs.h>
1133 #include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=AIX)
1135 if test $fstype = no; then
1136 AC_TRY_CPP([#include <mntent.h>], AC_DEFINE(FSTYPE_MNTENT) fstype=4.3BSD)
1138 if test $fstype = no; then
1139 AC_EGREP_HEADER(f_type;, sys/mount.h, AC_DEFINE(FSTYPE_STATFS) fstype=4.4BSD/OSF1)
1141 if test $fstype = no; then
1142 AC_TRY_CPP([#include <sys/mount.h>
1143 #include <sys/fs_types.h>], AC_DEFINE(FSTYPE_GETMNT) fstype=Ultrix)
1145 AC_MSG_RESULT($fstype)
1147 dnl# --------------------------------------------------------------------------
1148 dnl# CHECKING FOR TYPEDEFS, STRUCTURES, AND COMPILER CHARACTERISTICS.
1149 dnl# --------------------------------------------------------------------------
1157 AC_CHECK_TYPE(ino_t, unsigned long)
1158 AC_CHECK_TYPE(dev_t, unsigned long)
1159 AC_CHECK_TYPE(daddr_t, long)
1160 AC_CHECK_TYPE(major_t, int)
1161 AC_CHECK_TYPE(minor_t, int)
1162 AC_CHECK_TYPE(ssize_t, int)
1169 AC_CHECK_SIZEOF(char, 1)
1170 AC_CHECK_SIZEOF(short int, 2)
1171 AC_CHECK_SIZEOF(int, 4)
1172 AC_CHECK_SIZEOF(long int, 4)
1173 AC_CHECK_SIZEOF(long long int, 8)
1174 AC_CHECK_SIZEOF(int *, 4)
1176 # Check for sys/types.h types
1177 AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
1179 [ #include <sys/types.h> ],
1181 [ ac_cv_have_u_int="yes" ],
1182 [ ac_cv_have_u_int="no" ]
1185 if test "x$ac_cv_have_u_int" = "xyes" ; then
1186 AC_DEFINE(HAVE_U_INT)
1190 AC_CACHE_CHECK([for intmax_t type], ac_cv_have_intmax_t, [
1192 [ #include <sys/types.h> ],
1193 [ intmax_t a; a = 1;],
1194 [ ac_cv_have_intmax_t="yes" ],
1197 [ #include <stdint.h> ],
1198 [ intmax_t a; a = 1;],
1199 [ ac_cv_have_intmax_t="yes" ],
1200 [ ac_cv_have_intmax_t="no" ]
1206 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
1207 AC_DEFINE(HAVE_INTMAX_T)
1212 AC_CACHE_CHECK([for u_intmax_t type], ac_cv_have_u_intmax_t, [
1214 [ #include <sys/types.h> ],
1215 [ u_intmax_t a; a = 1;],
1216 [ ac_cv_have_u_intmax_t="yes" ],
1219 [ #include <stdint.h> ],
1220 [ u_intmax_t a; a = 1;],
1221 [ ac_cv_have_u_intmax_t="yes" ],
1222 [ ac_cv_have_u_intmax_t="no" ]
1227 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
1228 AC_DEFINE(HAVE_U_INTMAX_T)
1233 AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
1235 [ #include <sys/types.h> ],
1236 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
1237 [ ac_cv_have_intxx_t="yes" ],
1238 [ ac_cv_have_intxx_t="no" ]
1241 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
1242 AC_DEFINE(HAVE_INTXX_T)
1246 AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [
1248 [ #include <sys/types.h> ],
1249 [ int64_t a; a = 1;],
1250 [ ac_cv_have_int64_t="yes" ],
1251 [ ac_cv_have_int64_t="no" ]
1254 if test "x$ac_cv_have_int64_t" = "xyes" ; then
1255 AC_DEFINE(HAVE_INT64_T)
1259 AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
1261 [ #include <sys/types.h> ],
1262 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
1263 [ ac_cv_have_u_intxx_t="yes" ],
1264 [ ac_cv_have_u_intxx_t="no" ]
1267 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
1268 AC_DEFINE(HAVE_U_INTXX_T)
1272 AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [
1274 [ #include <sys/types.h> ],
1275 [ u_int64_t a; a = 1;],
1276 [ ac_cv_have_u_int64_t="yes" ],
1277 [ ac_cv_have_u_int64_t="no" ]
1280 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
1281 AC_DEFINE(HAVE_U_INT64_T)
1285 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
1286 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1288 AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
1290 [ #include <sys/bitypes.h> ],
1291 [ int8_t a; int16_t b; int32_t c;
1292 u_int8_t e; u_int16_t f; u_int32_t g;
1293 a = b = c = e = f = g = 1; ],
1294 [ AC_DEFINE(HAVE_U_INTXX_T)
1295 AC_DEFINE(HAVE_INTXX_T)
1296 AC_DEFINE(HAVE_SYS_BITYPES_H)
1297 AC_MSG_RESULT(yes) ],
1298 [ AC_MSG_RESULT(no)]
1302 if test -z "$have_u_intxx_t" ; then
1303 AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
1305 [ #include <sys/types.h> ],
1306 [ uint8_t a; uint16_t b;
1307 uint32_t c; a = b = c = 1; ],
1308 [ ac_cv_have_uintxx_t="yes" ],
1309 [ ac_cv_have_uintxx_t="no" ]
1312 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
1313 AC_DEFINE(HAVE_UINTXX_T)
1317 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
1318 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1320 AC_MSG_CHECKING([for int64_t and u_int64_t types in sys/bitypes.h])
1322 [ #include <sys/bitypes.h> ],
1323 [ int64_t a; u_int64_t b;
1325 [ AC_DEFINE(HAVE_U_INT64_T)
1326 AC_DEFINE(HAVE_INT64_T)
1327 AC_MSG_RESULT(yes) ],
1328 [ AC_MSG_RESULT(no)]
1332 if (test -z "$have_uintxx_t" && \
1333 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1335 AC_MSG_CHECKING([for uintXX_t types in sys/bitypes.h])
1337 [ #include <sys/bitypes.h> ],
1338 [ uint8_t a; uint16_t b;
1339 uint32_t c; a = b = c = 1; ],
1340 [ AC_DEFINE(HAVE_UINTXX_T)
1341 AC_MSG_RESULT(yes) ],
1342 [ AC_MSG_RESULT(no)]
1350 dnl# --------------------------------------------------------------------------
1351 dnl# CHECKING FOR REQUIRED LIBRARY FUNCTIONS
1352 dnl# --------------------------------------------------------------------------
1368 [echo 'configure: cannot find needed function.'; exit 1]
1371 AC_CHECK_FUNCS(fchdir, [AC_DEFINE(HAVE_FCHDIR)])
1372 AC_CHECK_FUNCS(strtoll, [AC_DEFINE(HAVE_STRTOLL)])
1374 AC_CHECK_FUNCS(chflags)
1376 AC_CHECK_FUNCS(snprintf vsnprintf gethostid getdomainname)
1378 dnl# --------------------------------------------------------------------------
1379 dnl# CHECKING FOR THREAD SAFE FUNCTIONS
1380 dnl# --------------------------------------------------------------------------
1381 AC_CHECK_FUNCS(localtime_r readdir_r strerror_r gethostbyname_r)
1383 # If resolver functions are not in libc check for -lnsl or -lresolv.
1384 AC_CHECK_FUNC(gethostbyname_r,
1385 AC_MSG_RESULT(using libc's resolver),
1386 AC_CHECK_LIB(nsl,gethostbyname_r)
1387 AC_CHECK_LIB(resolv,gethostbyname_r))
1390 # Find where sockets are (especially for Solaris)
1391 AC_CHECK_FUNC(socket,
1392 AC_MSG_RESULT(using libc's socket),
1393 AC_CHECK_LIB(xnet,socket)
1394 AC_CHECK_LIB(socket,socket)
1395 AC_CHECK_LIB(inet,socket))
1397 AC_CHECK_FUNCS(inet_pton, [AC_DEFINE(HAVE_INET_PTON)])
1398 AC_CHECK_FUNCS(inet_ntop, [AC_DEFINE(HAVE_INET_NTOP)])
1399 AC_CHECK_FUNCS(gethostbyname2, [AC_DEFINE(HAVE_GETHOSTBYNAME2)])
1401 dnl ----------------------------
1402 dnl check sa_len of sockaddr
1403 dnl ----------------------------
1404 AC_CACHE_CHECK(for struct sockaddr has a sa_len field, ac_cv_struct_sockaddr_sa_len,
1405 [AC_TRY_COMPILE([#include <sys/socket.h>], [struct sockaddr s; s.sa_len;],
1406 ac_cv_struct_sockaddr_sa_len=yes, ac_cv_struct_sockaddr_sa_len=no)])
1408 if test $ac_cv_struct_sockaddr_sa_len = yes; then
1409 AC_DEFINE(HAVE_SA_LEN, 1, [Define if sa_len field exists in struct sockaddr])
1413 dnl Check for IPv6 support
1414 AC_CACHE_CHECK([for IPv6 support], ac_cv_ipv6_support,
1415 [AC_TRY_LINK([ #include <sys/types.h>
1416 #include <sys/socket.h>
1417 #include <netinet/in.h>], [struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
1419 [ac_cv_ipv6_support=yes], [ac_cv_ipv6_support=no])])
1421 if test "$ac_cv_ipv6_support" = yes; then
1422 AC_DEFINE(HAVE_IPV6,1,[Whether to enable IPv6 support])
1431 AC_FUNC_CLOSEDIR_VOID
1432 AC_FUNC_SETPGRP dnl check for BSD setpgrp.
1436 dnl# FreeBSD needs to link libxpg4
1437 AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])
1440 AC_CHECK_LIB(sun, getpwnam)
1442 AC_CHECK_HEADERS(zlib.h)
1443 AC_CHECK_LIB(z, deflate, [FDLIBS="-lz"])
1445 if test x$FDLIBS = x-lz; then
1446 AC_DEFINE(HAVE_LIBZ)
1450 AC_CHECK_HEADER(sys/acl.h)
1451 AC_CHECK_LIB(acl, acl_get_file, [FDLIBS="-lacl $FDLIBS"])
1453 if test $ac_cv_lib_acl_acl_get_file = yes; then
1458 dnl Check for pthread libraries
1460 AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
1461 [AC_CHECK_LIB(pthreads, pthread_create, PTHREAD_LIB="-lpthreads",
1462 [AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r",
1463 [AC_CHECK_FUNC(pthread_create)]
1473 LDFLAGS=${LDFLAGS--O}
1474 DB_LIBS="${SQL_LFLAGS}"
1476 CPPFLAGS="$CPPFLAGS"
1487 AC_SUBST(X_EXTRA_LIBS)
1491 dnl# extra configurable objects
1502 # Finally we set appropriate distribution specific
1503 # variables and defaults
1505 # PFILES are platform specific files
1506 PFILES="platforms/Makefile"
1510 hostname=`uname -n | cut -d '.' -f 1`
1514 PSCMD="ps -e -o pid,comm"
1516 platforms/aix/Makefile"
1517 TAPEDRIVE="/dev/rmt0.1"
1521 PTHREAD_LIB="-lpthread -lexc"
1522 if test "${CC}" = "gcc" ; then
1529 TAPEDRIVE="/dev/nrmt0"
1532 DISTVER=`uname -a |awk '{print $3}'`
1533 TAPEDRIVE="/dev/nrmt0"
1534 PTHREAD_LIB="-pthread"
1535 CFLAGS="${CFLAGS} -pthread"
1536 PSCMD="ps -x -o pid,command"
1540 platforms/bsdi/Makefile \
1541 platforms/bsdi/bacula-fd \
1542 platforms/bsdi/bacula-sd \
1543 platforms/bsdi/bacula-dir"
1544 largefile_support="yes"
1547 DISTVER=`uname -a |awk '{print $3}'`
1548 TAPEDRIVE="/dev/nrst0"
1551 WLDFLAGS="-mwindows"
1555 TAPEDRIVE="/dev/nst0"
1556 PSCMD="ps -e -o pid,command"
1559 platforms/darwin/Makefile"
1562 DISTVER=`cat /etc/debian_version`
1563 TAPEDRIVE="/dev/nrst0"
1564 PSCMD="ps -e -o pid,command"
1567 DISTVER=`uname -a |awk '{print $3}'`
1568 VER=`echo $DISTVER | cut -c 1`
1569 if test x$VER = x4 ; then
1570 PTHREAD_LIB="-pthread"
1571 CFLAGS="${CFLAGS} -pthread"
1575 TAPEDRIVE="/dev/nrsa0"
1576 PSCMD="ps -x -o pid,command"
1578 platforms/freebsd/Makefile \
1579 platforms/freebsd/bacula-fd \
1580 platforms/freebsd/bacula-sd \
1581 platforms/freebsd/bacula-dir"
1582 largefile_support="yes"
1585 PSCMD="UNIX95=1 ps -e -o pid,comm"
1586 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
1588 TAPEDRIVE="/dev/rmt/0hnb"
1592 TAPEDRIVE="/dev/rmt/0cbn"
1593 PSCMD="ps -e -o pid,comm"
1595 platforms/irix/Makefile \
1596 platforms/irix/bacula-fd \
1597 platforms/irix/bacula-sd \
1598 platforms/irix/bacula-dir"
1601 DISTVER=`uname -a |awk '{print $3}'`
1604 TAPEDRIVE="/dev/nrst0"
1605 PSCMD="ps -a -o pid,command"
1606 PTHREAD_LIB="-pthread"
1607 CFLAGS="${CFLAGS} -pthread"
1610 DISTVER=`uname -a |awk '{print $3}'`
1613 TAPEDRIVE="/dev/nrst0"
1614 PSCMD="ps -a -o pid,command"
1615 PTHREAD_LIB="-pthread"
1616 CFLAGS="${CFLAGS} -pthread"
1618 platforms/openbsd/Makefile \
1619 platforms/openbsd/bacula-fd \
1620 platforms/openbsd/bacula-sd \
1621 platforms/openbsd/bacula-dir"
1624 if test -f /etc/whitebox-release ; then
1625 f=/etc/whitebox-release
1627 f=/etc/redhat-release
1629 if test `cat $f | grep release |\
1630 cut -f 3 -d ' '`x = "Enterprise"x ; then
1631 DISTVER="Enterprise "`cat $f | grep release |\
1634 DISTVER=`cat /etc/redhat-release | grep release |\
1637 TAPEDRIVE="/dev/nst0"
1638 PSCMD="ps -e -o pid,command"
1640 platforms/redhat/Makefile \
1641 platforms/redhat/bacula-fd \
1642 platforms/redhat/bacula-sd \
1643 platforms/redhat/bacula-dir \
1644 platforms/redhat/bacula.spec \
1646 hostname=`hostname -s`
1649 DISTVER=`cat /etc/mandrake-release | grep release |\
1651 TAPEDRIVE="/dev/nst0"
1652 PSCMD="ps -e -o pid,command"
1654 platforms/mandrake/Makefile \
1655 platforms/mandrake/bacula-fd \
1656 platforms/mandrake/bacula-sd \
1657 platforms/mandrake/bacula-dir \
1658 platforms/mandrake/bacula.spec \
1662 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
1663 TAPEDRIVE="/dev/nst0"
1664 PSCMD="ps -e -o pid,command"
1666 platforms/gentoo/Makefile \
1667 platforms/gentoo/bacula-fd \
1668 platforms/gentoo/bacula-sd \
1669 platforms/gentoo/bacula-dir"
1672 DISTVER=`cat /etc/slackware-version`
1673 TAPEDRIVE="/dev/nst0"
1674 PSCMD="ps -e -o pid,command"
1676 platforms/slackware/Makefile \
1677 platforms/slackware/rc.bacula-fd \
1678 platforms/slackware/rc.bacula-sd \
1679 platforms/slackware/rc.bacula-dir\
1680 platforms/slackware/functions.bacula"
1684 TAPEDRIVE="/dev/rmt/0cbn"
1685 PSCMD="ps -e -o pid,comm"
1687 platforms/solaris/Makefile \
1688 platforms/solaris/bacula-fd \
1689 platforms/solaris/bacula-sd \
1690 platforms/solaris/bacula-dir"
1691 if test x$DISTVER = x5.6 ; then
1692 AC_DEFINE(HAVE_OLD_SOCKOPT)
1696 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
1698 TAPEDRIVE="/dev/nst0"
1699 PSCMD="ps -e -o pid,command"
1701 platforms/suse/Makefile \
1702 platforms/suse/bacula-fd \
1703 platforms/suse/bacula-sd \
1704 platforms/suse/bacula-dir \
1705 platforms/suse/bacula \
1706 platforms/suse/bacula.spec"
1711 TAPEDRIVE="/dev/nst0"
1712 PSCMD="ps -e -o pid,command"
1714 platforms/suse/Makefile \
1715 platforms/suse/bacula-fd \
1716 platforms/suse/bacula-sd \
1717 platforms/suse/bacula-dir"
1721 TAPEDRIVE="/dev/nst0"
1724 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
1730 LIBS="$PTHREAD_LIB $LIBS"
1732 AC_DEFINE_UNQUOTED(lld, "$lld")
1733 AC_DEFINE_UNQUOTED(llu, "$llu")
1741 dnl# common parts of the Makefile
1742 MCOMMON=./autoconf/Make.common
1743 AC_SUBST_FILE(MCOMMON)
1746 if test "x${subsysdir}" = "x${sbindir}" ; then
1749 echo "You have set both --sbindir and --with-subsys-dir"
1750 echo " equal to: ${subsysdir} "
1751 echo "This is not permitted. Please reconfigure."
1753 echo "Aborting configuration ..."
1759 AC_OUTPUT([autoconf/Make.common \
1762 rescue/linux/Makefile \
1763 rescue/freebsd/Makefile \
1764 rescue/solaris/Makefile \
1765 scripts/startmysql \
1767 scripts/btraceback \
1773 scripts/devel_bacula \
1776 scripts/bacula.desktop.gnome1 \
1777 scripts/bacula.desktop.gnome2 \
1778 scripts/bacula.desktop.gnome1.consolehelper \
1779 scripts/bacula.desktop.gnome2.consolehelper \
1780 scripts/bacula.desktop.gnome1.xsu \
1781 scripts/bacula.desktop.gnome2.xsu \
1782 scripts/gnome-console.console_apps \
1783 scripts/mtx-changer \
1787 src/console/Makefile \
1788 src/console/bconsole.conf \
1789 src/gnome-console/Makefile \
1790 src/gnome-console/gnome-console.conf \
1791 src/gnome2-console/Makefile \
1792 src/gnome2-console/gnome-console.conf \
1793 src/wx-console/Makefile \
1794 src/wx-console/wx-console.conf \
1795 src/tray-monitor/Makefile \
1796 src/tray-monitor/tray-monitor.conf \
1798 src/dird/bacula-dir.conf \
1800 src/stored/Makefile \
1801 src/stored/bacula-sd.conf \
1802 src/filed/Makefile \
1803 src/filed/bacula-fd.conf \
1804 src/filed/win32/Makefile \
1806 src/cats/make_catalog_backup \
1807 src/cats/delete_catalog_backup \
1808 src/cats/create_postgresql_database \
1809 src/cats/update_postgresql_tables \
1810 src/cats/make_postgresql_tables \
1811 src/cats/grant_postgresql_privileges \
1812 src/cats/drop_postgresql_tables \
1813 src/cats/drop_postgresql_database \
1814 src/cats/create_mysql_database \
1815 src/cats/update_mysql_tables \
1816 src/cats/make_mysql_tables \
1817 src/cats/grant_mysql_privileges \
1818 src/cats/drop_mysql_tables \
1819 src/cats/drop_mysql_database \
1820 src/cats/create_sqlite_database \
1821 src/cats/update_sqlite_tables \
1822 src/cats/make_sqlite_tables \
1823 src/cats/grant_sqlite_privileges \
1824 src/cats/drop_sqlite_tables \
1825 src/cats/drop_sqlite_database \
1828 src/cats/create_bdb_database \
1829 src/cats/update_bdb_tables \
1830 src/cats/make_bdb_tables \
1831 src/cats/grant_bdb_privileges \
1832 src/cats/drop_bdb_tables \
1833 src/cats/drop_bdb_database \
1834 src/cats/create_bacula_database \
1835 src/cats/update_bacula_tables \
1836 src/cats/grant_bacula_privileges \
1837 src/cats/make_bacula_tables \
1838 src/cats/drop_bacula_tables \
1839 src/cats/drop_bacula_database \
1840 src/findlib/Makefile \
1841 src/tools/Makefile \
1842 src/win32/winbacula.nsi \
1843 src/win32/baculafd/bacula-fd.conf \
1844 src/win32/Makefile \
1845 src/win32/console/bconsole.conf \
1846 src/win32/wx-console/wx-console.conf \
1848 [(echo "Doing make of dependencies"; ${MAKE:-make} depend;) ]
1852 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
1853 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
1858 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
1859 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
1861 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
1862 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
1864 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
1865 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
1867 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
1868 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
1870 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
1871 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
1873 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
1877 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
1878 largefile_support="yes"
1882 # A whole lot of hand springs to get the compiler version.
1883 # This is because gcc changed the output in version 3.0
1885 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
1886 if test "x${CCVERSION}" = "x" ; then
1887 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
1889 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
1890 if test x"${CXXVERSION}" = x ; then
1891 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
1894 if test "x${subsysdir}" = "x${sbindir}" ; then
1897 echo "You have set --sbindir and --with-subsys-dir"
1898 echo " both equal to: ${subsysdir} "
1899 echo " This is not permitted. Please reconfigure."
1901 echo "Aborting configuration ..."
1907 if test "x${db_name}" = "xInternal" ; then
1910 echo "You have not specified either --enable-client-only or one of the"
1911 echo " supported databases: MySQL, PostgreSQL, or SQLite".
1912 echo " This is not permitted. Please reconfigure."
1914 echo "Aborting the configuration ..."
1921 Configuration on `date`:
1923 Host: $host -- ${DISTNAME} ${DISTVER}
1924 Bacula version: ${VERSION} (${DATE})
1925 Source code location: ${srcdir}
1926 Install binaries: ${sbindir}
1927 Install config files: ${sysconfdir}
1928 Scripts directory: ${scriptdir}
1929 Working directory: ${working_dir}
1930 PID directory: ${piddir}
1931 Subsys directory: ${subsysdir}
1932 C Compiler: ${CC} ${CCVERSION}
1933 C++ Compiler: ${CXX} ${CXXVERSION}
1934 Compiler flags: ${WCFLAGS} ${CFLAGS}
1935 Linker flags: ${WLDFLAGS} ${LDFLAGS}
1937 Statically Linked Tools: ${support_static_tools}
1938 Statically Linked FD: ${support_static_fd}
1939 Statically Linked SD: ${support_static_sd}
1940 Statically Linked DIR: ${support_static_dir}
1941 Statically Linked CONS: ${support_static_cons}
1942 Database type: ${db_name}
1943 Database lib: ${DB_LIBS}
1945 Job Output Email: ${job_email}
1946 Traceback Email: ${dump_email}
1947 SMTP Host Address: ${smtp_host}
1949 Director Port: ${dir_port}
1950 File daemon Port: ${fd_port}
1951 Storage daemon Port: ${sd_port}
1953 Director User: ${dir_user}
1954 Director Group: ${dir_group}
1955 Storage Daemon User: ${sd_user}
1956 Storage DaemonGroup: ${sd_group}
1957 File Daemon User: ${fd_user}
1958 File Daemon Group: ${fd_group}
1960 SQL binaries Directory ${SQL_BINDIR}
1962 Large file support: $largefile_support
1963 Bacula conio support: ${got_conio} ${CONS_LIBS}
1964 readline support: ${got_readline} ${PRTREADLINE_SRC}
1965 TCP Wrappers support: ${TCPW_MSG}
1966 ZLIB support: ${have_zlib}
1967 enable-smartalloc: ${support_smartalloc}
1968 enable-gnome: ${support_gnome} ${gnome_version}
1969 enable-wx-console: ${support_wx_console}
1970 enable-tray-monitor: ${support_tray_monitor}
1971 client-only: ${build_client_only}
1972 ACL support: ${have_acl}
1979 # cweb support: ${got_cweb} ${CWEB_SRC}
1980 # gmp support: ${got_gmp} ${GMP_SRC}