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)
67 AC_PATH_PROG(CDRECORD, cdrecord)
69 test -n "$ARFLAG" || ARFLAGS="cr"
76 AC_SUBST(LOCAL_CFLAGS)
77 AC_SUBST(LOCAL_LDFLAGS)
82 dnl --------------------------------------------------
83 dnl Bacula OP Sys determination (see aclocal.m4)
84 dnl --------------------------------------------------
87 # -----------------------------------------------------------
88 dnl Bacula OPSys Distribution determination (see aclocal.m4)
89 # ----------------------------------------------------------
90 BA_CHECK_OPSYS_DISTNAME
92 # -----------------------------------------------------------
93 dnl Check for gnome stuff for gnome-console
94 # ----------------------------------------------------------
95 AM_ACLOCAL_INCLUDE(gnome-macros)
97 # ------------------------------------------------------------------
98 # If the user has not set --prefix, we set our default to nothing.
99 # In this case, if the user has not set --sysconfdir, we set it
100 # to the package default of /etc/bacula. If either --prefix or
101 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
102 # ------------------------------------------------------------------
103 if test x${prefix} = xNONE ; then
104 if test `eval echo ${sysconfdir}` = NONE/etc ; then
105 sysconfdir=/etc/bacula
109 sysconfdir=`eval echo ${sysconfdir}`
111 # -------------------------------------------------------------------------
112 # If the user has not set --exec-prefix, we default to ${prefix}
113 # -------------------------------------------------------------------------
114 if test x${exec_prefix} = xNONE ; then
115 exec_prefix=${prefix}
118 # ------------------------------------------------------------------
119 # If the user has not set --sbindir, we set our default as /sbin
120 # ------------------------------------------------------------------
121 if test x$sbindir = x'${exec_prefix}/sbin' ; then
122 sbindir=${exec_prefix}/sbin
124 sbindir=`eval echo ${sbindir}`
126 # ------------------------------------------------------------------
127 # All list of languages for which a translation exist. Each
128 # language is separated by a space.
129 # ------------------------------------------------------------------
132 AC_PATH_PROGS(MSGFMT, msgfmt, no)
133 if test "$MSGFMT" = "no"
135 echo 'msgfmt program not found, disabling NLS !'
137 USE_INCLUDED_LIBINTL=no
145 support_postgresql=no
146 support_smartalloc=yes
150 support_wx_console=no
152 support_static_tools=no
155 support_static_dir=no
156 support_static_cons=no
162 dnl# --------------------------------------------------------------------------
163 dnl# CHECKING COMMAND LINE OPTIONS
164 dnl# --------------------------------------------------------------------------
166 # -------------------------------------------
167 # gnome (default off)
168 # -------------------------------------------
170 [ --enable-gnome enable build of gnome-console GUI [disabled]],
171 [if test x$enableval = xyes; then
176 if test x$support_gnome = xyes; then
177 abc=`$PKGCONFIG --exists libgnomeui-2.0`
179 if test $pkg = 0; then
180 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
181 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
182 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
183 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
184 AC_SUBST(GNOME_INCLUDEDIR)
185 AC_SUBST(GNOMEUI_LIBS)
186 AC_SUBST(GNOME_LIBDIR)
188 GNOME_DIR=src/gnome2-console
189 gnome_version="Version 2.x"
193 GNOME_DIR=src/gnome-console
194 gnome_version="Version 1.4"
200 # -------------------------------------------
201 # wx-console (default off)
202 # -------------------------------------------
203 AC_ARG_ENABLE(wx-console,
204 [ --enable-wx-console enable build of wxWidgets console [disabled]],
205 [if test x$enableval = xyes; then
206 support_wx_console=yes
210 if test x$support_wx_console = xyes; then
211 abc=`$WXCONFIG --cppflags`
213 if test $pkg = 0; then
214 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
215 WXCONS_LDFLAGS=`$WXCONFIG --libs`
216 AC_SUBST(WXCONS_CPPFLAGS)
217 AC_SUBST(WXCONS_LDFLAGS)
218 WX_DIR=src/wx-console
221 echo "wx-config program not found. wx-console disabled."
223 support_wx_console=no
229 # -------------------------------------------
230 # tray-monitor (default off)
231 # -------------------------------------------
232 AC_ARG_ENABLE(tray-monitor,
233 [ --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) [disabled]],
234 [if test x$enableval = xyes; then
235 support_tray_monitor=yes
239 if test x$support_tray_monitor = xyes; then
240 abc=`$PKGCONFIG --exists gtk+-2.0`
242 if test $pkg = 0; then
243 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
244 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
245 AC_SUBST(TRAY_MONITOR_CPPFLAGS)
246 AC_SUBST(TRAY_MONITOR_LDFLAGS)
247 TRAY_MONITOR_DIR=src/tray-monitor
248 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
250 if test $pkg = 0; then
251 AC_DEFINE(HAVE_GTK_2_4)
255 AC_SUBST(TRAY_MONITOR_DIR)
257 # -------------------------------------------
258 # smartalloc (default off)
259 # -------------------------------------------
260 AC_ARG_ENABLE(smartalloc,
261 [ --enable-smartalloc enable smartalloc debugging support [disabled]],
262 [if test x$enableval = xno; then
263 support_smartalloc=no
266 if test x$support_smartalloc = xyes; then
267 AC_DEFINE(SMARTALLOC)
270 # -------------------------------------------
271 # static-tools (default off)
272 # -------------------------------------------
273 AC_ARG_ENABLE(static-tools,
274 [ --enable-static-tools enable static tape tools [disabled]],
275 [if test x$enableval = xyes; then
276 support_static_tools=yes
280 if test x$support_static_tools = xyes; then
281 TTOOL_LDFLAGS="-static"
283 AC_SUBST(TTOOL_LDFLAGS)
285 # -------------------------------------------
286 # static-fd (default off)
287 # -------------------------------------------
288 AC_ARG_ENABLE(static-fd,
289 [ --enable-static-fd enable static File daemon [disabled]],
290 [if test x$enableval = xyes; then
291 support_static_fd=yes
295 if test x$support_static_fd = xyes; then
296 STATIC_FD="static-bacula-fd"
300 # -------------------------------------------
301 # static-sd (default off)
302 # -------------------------------------------
303 AC_ARG_ENABLE(static-sd,
304 [ --enable-static-sd enable static Storage daemon [disabled]],
305 [if test x$enableval = xyes; then
306 support_static_sd=yes
310 if test x$support_static_sd = xyes; then
311 STATIC_SD="static-bacula-sd"
315 # -------------------------------------------
316 # static-dir (default off)
317 # -------------------------------------------
318 AC_ARG_ENABLE(static-dir,
319 [ --enable-static-dir enable static Director [disabled]],
320 [if test x$enableval = xyes; then
321 support_static_dir=yes
325 if test x$support_static_dir = xyes; then
326 STATIC_DIR="static-bacula-dir"
330 # -------------------------------------------
331 # static-cons (default off)
332 # -------------------------------------------
333 AC_ARG_ENABLE(static-cons,
334 [ --enable-static-cons enable static Console [disabled]],
335 [if test x$enableval = xyes; then
336 support_static_cons=yes
342 if test x$support_static_cons = xyes; then
343 STATIC_CONS="static-bconsole"
344 STATIC_GNOME_CONS="static-gnome-console"
345 STATIC_WX_CONS="static-wx-console"
347 AC_SUBST(STATIC_CONS)
348 AC_SUBST(STATIC_GNOME_CONS)
349 AC_SUBST(STATIC_WX_CONS)
351 # -------------------------------------------
352 # client_only (default off)
353 # -------------------------------------------
354 AC_ARG_ENABLE(client-only,
355 [ --enable-client-only build client (File daemon) only [disabled]],
356 [if test x$enableval = xyes; then
357 build_client_only=yes
361 if test x$build_client_only = xno; then
368 # ---------------------------------------------------
369 # Check for conio (Bacula readline substitute)(
370 # ---------------------------------------------------
371 # this allows you to turn it completely off
373 [ --disable-conio disable conio support [enabled]
375 [if test x$enableval = xno; then
380 if test x$support_conio = xyes; then
381 AC_CHECK_HEADER(termcap.h,
382 [ AC_CHECK_LIB(termcap, tgetent,
383 [ CONS_LIBS="-ltermcap"
388 AC_DEFINE(HAVE_CONIO, 1, [Set if Bacula conio support enabled])
390 [ AC_CHECK_LIB(ncurses, tgetent,
391 [ CONS_LIBS="-lncurses"
396 AC_DEFINE(HAVE_CONIO, 1, [Set if Bacula conio support enabled])
401 AC_CHECK_HEADERS(curses.h)
402 AC_CHECK_HEADER(term.h,
403 [ AC_CHECK_LIB(curses, tgetent,
404 [ CONS_LIBS="-lcurses"
409 AC_DEFINE(HAVE_CONIO, 1, [Set if Bacula conio support enabled])
412 [ echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
421 # ---------------------------------------------------
422 # Check for readline support/directory (default off)
423 # ---------------------------------------------------
424 # this allows you to turn it completely off
425 AC_ARG_ENABLE(readline,
426 [ --disable-readline disable readline support [disable]
428 [if test x$enableval = xno; then
434 if test x$support_readline = xyes; then
435 AC_ARG_WITH(readline,
436 [ --with-readline=DIR specify readline library directory],
438 case "$with_readline" in
441 if test "$with_readline" != "yes"; then
442 CONS_INC="-I${with_readline}"
443 CONS_LDFLAGS="-L$with_readline"
445 with_readline="/usr/include/readline"
447 AC_CHECK_HEADER(${with_readline}/readline.h,
448 [ AC_DEFINE(HAVE_READLINE)
449 CONS_LIBS="-lreadline -ltermcap"
453 echo "readline.h not found. readline turned off ..."
460 # check for standard readline library
461 AC_CHECK_HEADER(/usr/include/readline/readline.h,
462 [ AC_DEFINE(HAVE_READLINE)
464 CONS_INC="-I/usr/include/readline"
465 CONS_LIBS="-lreadline -ltermcap"
467 # Did not find standard library, so try Bacula's default
468 AC_CHECK_HEADER(${TOP_DIR}/depkgs/readline/readline.h,
469 [ AC_DEFINE(HAVE_READLINE)
471 CONS_INC="-I${TOP_DIR}/depkgs/readline"
472 CONS_LIBS="-lreadline -lhistory -ltermcap"
473 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
474 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
477 echo "readline.h not found. readline turned off ..."
493 AC_SUBST(CONS_LDFLAGS)
494 AC_SUBST(READLINE_SRC)
496 # Minimal stuff for readline Makefile configuration
501 AC_CHECK_FUNCS(strcasecmp select setenv putenv tcgetattr setlocale lstat lchown)
502 AC_CHECK_FUNCS(nanosleep nl_langinfo)
503 AC_CHECK_HEADERS(varargs.h)
505 # End of readline/conio stuff
506 # -----------------------------------------------------------------------
508 # -------------------------------------------
509 # check for cdrecord writer location
510 # get scsibus,target,lun
511 # -------------------------------------------
513 if test ! x$CDRECORD = x ; then
514 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
515 if test x${CDSTL} = x ; then
516 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
518 if test x${CDSTL} = x ; then
525 # ---------------------------------------------------
526 # Check for GMP support/directory
527 # ---------------------------------------------------
531 # [ --with-gmp[=DIR] Specify gmp library directory],
533 # case "$with_gmp" in
536 # if test "$with_gmp" != "yes"; then
537 # GMP_INC="-I$with_gmp"
539 # GMP_LDFLAGS="-L$with_gmp"
541 # with_gmp="/usr/include"
543 # AC_CHECK_HEADER($with_gmp/gmp.h,
544 # [ AC_MSG_RESULT(yes)
545 # AC_DEFINE(HAVE_GMP)
549 # [ AC_MSG_ERROR([*** gmp library missing])
555 # # check for standard gmp library
556 # AC_CHECK_HEADER(/usr/include/gmp.h,
557 # [ AC_MSG_RESULT(yes)
558 # AC_DEFINE(HAVE_GMP)
563 # # Did not find standard library, so use our own
565 # AC_DEFINE(HAVE_GMP)
568 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
570 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
571 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
577 #AC_SUBST(GMP_LDFLAGS)
581 # -----------------------------------------------------------------------
584 # ---------------------------------------------------
585 # Check for CWEB support/directory
586 # ---------------------------------------------------
591 # [ --with-cweb[=DIR] Specify cweb library directory],
593 # case "$with_cweb" in
596 # if test "$with_cweb" != "yes"; then
597 # CWEB_INC="-I$with_cweb"
599 # CWEB_LDFLAGS="-L$with_cweb"
601 # with_cweb="/usr/include"
603 # AC_CHECK_HEADER($with_cweb/cweb.h,
604 # [ AC_MSG_RESULT(yes)
605 # AC_DEFINE(HAVE_CWEB)
609 # [ AC_MSG_ERROR([*** cweb library missing])
615 # # check for standard cweb library
616 # AC_CHECK_HEADER(/usr/include/cweb.h,
617 # [ AC_MSG_RESULT(yes)
618 # AC_DEFINE(HAVE_CWEB)
623 # # Did not find starndard library, so use our own
625 # AC_DEFINE(HAVE_CWEB)
628 # CWEB=${TOP_DIR}/depkgs/cweb
629 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
631 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
632 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
639 #AC_SUBST(CWEB_LDFLAGS)
643 # -----------------------------------------------------------------------
646 # Find where sockets are (especially for Solaris)
647 # Do this before the TCP Wrappers test since tcp wrappers
648 # uses the socket library and some linkers are stupid.
650 AC_CHECK_FUNC(socket,
651 AC_MSG_RESULT(using libc's socket),
652 AC_CHECK_LIB(xnet,socket)
653 AC_CHECK_LIB(socket,socket)
654 AC_CHECK_LIB(inet,socket))
657 # -----------------------------------------------------------
658 # Check whether user wants TCP wrappers support (default off)
659 # -----------------------------------------------------------
661 AC_ARG_WITH(tcp-wrappers,
662 [ --with-tcp-wrappers=DIR enable tcpwrappers support],
664 if test "x$withval" != "xno" ; then
666 LIBS="$saved_LIBS -lwrap"
667 AC_MSG_CHECKING(for libwrap)
670 int deny_severity = 0;
671 int allow_severity = 0;
672 struct request_info *req; ],
673 [ hosts_access(req); ],
676 AC_DEFINE(HAVE_LIBWRAP)
679 LIBS="$saved_LIBS -lwrap -lnsl"
682 int deny_severity = 0;
683 int allow_severity = 0;
684 struct request_info *req; ],
685 [ hosts_access(req); ],
688 AC_DEFINE(HAVE_LIBWRAP)
691 [AC_MSG_ERROR([*** libwrap missing]) ] ]
698 # ------------------------------------------
699 # Where to place working dir
700 # ------------------------------------------
701 working_dir=`eval echo ${prefix}/var/bacula/working`
702 AC_ARG_WITH(working-dir,
703 [ --with-working-dir=PATH specify path of Bacula working directory],
705 if test "x$withval" != "xno" ; then
711 AC_SUBST(working_dir)
714 # ------------------------------------------
715 # Where to place scriptdir (script files)
716 # ------------------------------------------
717 scriptdir=`eval echo ${sysconfdir}`
718 AC_ARG_WITH(scriptdir,
719 [ --with-scriptdir=PATH specify path of Bacula scripts directory],
721 if test "x$withval" != "xno" ; then
730 # ------------------------------------------
731 # Where to send dump email
732 # ------------------------------------------
733 dump_email=root@localhost
734 AC_ARG_WITH(dump-email,
735 [ --with-dump-email=EMAIL dump email address],
737 if test "x$withval" != "xno" ; then
745 # ------------------------------------------
746 # Where to send job email
747 # ------------------------------------------
748 job_email=root@localhost
749 AC_ARG_WITH(job-email,
750 [ --with-job-email=EMAIL job output email address],
752 if test "x$withval" != "xno" ; then
760 # ------------------------------------------
761 # Where to find smtp host
762 # ------------------------------------------
764 AC_ARG_WITH(smtp_host,
765 [ --with-smtp-host=HOST SMTP mail host address],
767 if test "x$withval" != "xno" ; then
776 # ------------------------------------
777 # Where to place pid files
778 # ------------------------------------
781 [ --with-pid-dir=PATH specify location of Bacula pid files],
783 if test "x$withval" != "xno" ; then
789 AC_DEFINE_UNQUOTED(_PATH_BACULA_PIDDIR, "$piddir")
793 # ------------------------------------
794 # Where to place subsys "lock file"
795 # ------------------------------------
796 subsysdir=/var/run/subsys
797 AC_ARG_WITH(subsys-dir,
798 [ --with-subsys-dir=PATH specify location of Bacula subsys file],
800 if test "x$withval" != "xno" ; then
810 # ------------------------------------
811 # Where to start assigning ports
812 # ------------------------------------
814 AC_ARG_WITH(baseport,
815 [ --with-baseport=PORT specify base port address for daemons],
817 if test "x$withval" != "xno" ; then
824 dir_port=`expr $baseport`
825 fd_port=`expr $baseport + 1`
826 sd_port=`expr $fd_port + 1`
833 # ------------------------------------------
835 # ------------------------------------------
837 AC_ARG_WITH(dir-password,
838 [ --with-dir-password=PASSWORD specify Director's password],
840 if test "x$withval" != "xno" ; then
841 dir_password=$withval
846 if test "x$dir_password" = "x" ; then
847 if test "x$OPENSSL" = "xnone" ; then
848 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
849 key=`autoconf/randpass 33`
851 key=`openssl rand -base64 33`
857 AC_ARG_WITH(fd-password,
858 [ --with-fd-password=PASSWORD specify Client's password],
860 if test "x$withval" != "xno" ; then
866 if test "x$fd_password" = "x" ; then
867 if test "x$OPENSSL" = "xnone" ; then
868 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
869 key=`autoconf/randpass 37`
871 key=`openssl rand -base64 33`
877 AC_ARG_WITH(sd-password,
878 [ --with-sd-password=PASSWORD specify Storage daemon's password],
880 if test "x$withval" != "xno" ; then
886 if test "x$sd_password" = "x" ; then
887 if test "x$OPENSSL" = "xnone" ; then
888 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
889 key=`autoconf/randpass 41`
891 key=`openssl rand -base64 33`
897 AC_ARG_WITH(mon-dir-password,
898 [ --with-mon-dir-password=PASSWORD specify Director's password used by the monitor],
900 if test "x$withval" != "xno" ; then
901 mon_dir_password=$withval
906 if test "x$mon_dir_password" = "x" ; then
907 if test "x$OPENSSL" = "xnone" ; then
908 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
909 key=`autoconf/randpass 33`
911 key=`openssl rand -base64 33`
913 mon_dir_password=$key
917 AC_ARG_WITH(mon-fd-password,
918 [ --with-mon-fd-password=PASSWORD specify Client's password used by the monitor],
920 if test "x$withval" != "xno" ; then
921 mon_fd_password=$withval
926 if test "x$mon_fd_password" = "x" ; then
927 if test "x$OPENSSL" = "xnone" ; then
928 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
929 key=`autoconf/randpass 37`
931 key=`openssl rand -base64 33`
937 AC_ARG_WITH(mon-sd-password,
938 [ --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor],
940 if test "x$withval" != "xno" ; then
941 mon_sd_password=$withval
946 if test "x$mon_sd_password" = "x" ; then
947 if test "x$OPENSSL" = "xnone" ; then
948 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
949 key=`autoconf/randpass 41`
951 key=`openssl rand -base64 33`
956 AC_SUBST(dir_password)
957 AC_SUBST(fd_password)
958 AC_SUBST(sd_password)
959 AC_SUBST(mon_dir_password)
960 AC_SUBST(mon_fd_password)
961 AC_SUBST(mon_sd_password)
964 # Handle users and groups for each daemon
967 AC_ARG_WITH(dir_user,
968 [ --with-dir-user=USER specify user for Director daemon],
970 if test "x$withval" != "x" ; then
977 AC_ARG_WITH(dir_group,
978 [ --with-dir-group=GROUP specify group for Director daemon],
980 if test "x$withval" != "x" ; then
988 [ --with-sd-user=USER specify user for Storage daemon],
990 if test "x$withval" != "x" ; then
997 AC_ARG_WITH(sd_group,
998 [ --with-sd-group=GROUP specify group for Storage daemon],
1000 if test "x$withval" != "x" ; then
1007 AC_ARG_WITH(fd_user,
1008 [ --with-fd-user=USER specify user for File daemon],
1010 if test "x$withval" != "x" ; then
1017 AC_ARG_WITH(fd_group,
1018 [ --with-fd-group=GROUP specify group for File daemon],
1020 if test "x$withval" != "x" ; then
1037 # allow setting default executable permissions
1040 AC_ARG_WITH(sbin-perm,
1041 [ --with-sbin-perm=MODE specify permissions for sbin binaries (0754)],
1043 if test "x$withval" != "x" ; then
1051 # ------------------------------------------------
1052 # Bacula check for various SQL database engines
1053 # ------------------------------------------------
1054 BA_CHECK_POSTGRESQL_DB
1063 AC_DEFINE(PROTOTYPES)
1065 dnl# --------------------------------------------------------------------------
1066 dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
1068 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
1069 if test -z "$CCOPTS"; then
1070 CCOPTS='-g -O2 -Wall'
1079 dnl See if we can use 64 bit file addresses
1080 largefile_support="no"
1086 dnl# --------------------------------------------------------------------------
1087 dnl# CHECKING FOR HEADER FILES
1088 dnl# --------------------------------------------------------------------------
1124 AC_STRUCT_ST_BLKSIZE
1128 dnl# --------------------------------------------------------------------------
1129 dnl# Check for utime.h structure
1130 dnl# --------------------------------------------------------------------------
1131 AC_CACHE_CHECK(for utime.h, ba_cv_header_utime_h,
1133 #include <sys/types.h>
1134 #include <utime.h>], [struct utimbuf foo],
1135 ba_cv_header_utime_h=yes, ba_cv_header_utime_h=no)])
1136 test $ba_cv_header_utime_h = yes && AC_DEFINE(HAVE_UTIME_H)
1138 dnl# --------------------------------------------------------------------------
1139 dnl# Check for socklen_t
1140 dnl# --------------------------------------------------------------------------
1141 AC_CACHE_CHECK(for socklen_t, ba_cv_header_socklen_t,
1143 #include <sys/types.h>
1144 #include <sys/socket.h>],
1146 ba_cv_header_socklen_t=yes, ba_cv_header_socklen_t=no)])
1147 test $ba_cv_header_socklen_t = yes && AC_DEFINE(HAVE_SOCKLEN_T)
1149 dnl# --------------------------------------------------------------------------
1150 dnl# Check for bigendian
1151 dnl# --------------------------------------------------------------------------
1152 AC_CACHE_CHECK([for bigendian], ba_cv_bigendian,
1154 [main(){long a=1L; char *p=(char *)&a; exit(*p);}],
1155 [ba_cv_bigendian=yes],
1156 [ba_cv_bigendian=no],
1157 [ba_cv_bigendian=no])])
1158 test $ba_cv_bigendian = yes && AC_DEFINE(HAVE_BIGENDIAN)
1164 dnl# --------------------------------------------------------------------------
1165 dnl# CHECKING FOR FILESYSTEM TYPE
1166 dnl# --------------------------------------------------------------------------
1167 AC_MSG_CHECKING(how to get filesystem type)
1169 # The order of these tests is important.
1170 AC_TRY_CPP([#include <sys/statvfs.h>
1171 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=SVR4)
1172 if test $fstype = no; then
1173 AC_TRY_CPP([#include <sys/statfs.h>
1174 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=SVR3)
1176 if test $fstype = no; then
1177 AC_TRY_CPP([#include <sys/statfs.h>
1178 #include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=AIX)
1180 if test $fstype = no; then
1181 AC_TRY_CPP([#include <mntent.h>], AC_DEFINE(FSTYPE_MNTENT) fstype=4.3BSD)
1183 if test $fstype = no; then
1184 AC_EGREP_HEADER(f_type;, sys/mount.h, AC_DEFINE(FSTYPE_STATFS) fstype=4.4BSD/OSF1)
1186 if test $fstype = no; then
1187 AC_TRY_CPP([#include <sys/mount.h>
1188 #include <sys/fs_types.h>], AC_DEFINE(FSTYPE_GETMNT) fstype=Ultrix)
1190 AC_MSG_RESULT($fstype)
1192 dnl# --------------------------------------------------------------------------
1193 dnl# CHECKING FOR TYPEDEFS, STRUCTURES, AND COMPILER CHARACTERISTICS.
1194 dnl# --------------------------------------------------------------------------
1202 AC_CHECK_TYPE(ino_t, unsigned long)
1203 AC_CHECK_TYPE(dev_t, unsigned long)
1204 AC_CHECK_TYPE(daddr_t, long)
1205 AC_CHECK_TYPE(major_t, int)
1206 AC_CHECK_TYPE(minor_t, int)
1207 AC_CHECK_TYPE(ssize_t, int)
1214 AC_CHECK_SIZEOF(char, 1)
1215 AC_CHECK_SIZEOF(short int, 2)
1216 AC_CHECK_SIZEOF(int, 4)
1217 AC_CHECK_SIZEOF(long int, 4)
1218 AC_CHECK_SIZEOF(long long int, 8)
1219 AC_CHECK_SIZEOF(int *, 4)
1221 # Check for sys/types.h types
1222 AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
1224 [ #include <sys/types.h> ],
1226 [ ac_cv_have_u_int="yes" ],
1227 [ ac_cv_have_u_int="no" ]
1230 if test "x$ac_cv_have_u_int" = "xyes" ; then
1231 AC_DEFINE(HAVE_U_INT)
1235 AC_CACHE_CHECK([for intmax_t type], ac_cv_have_intmax_t, [
1237 [ #include <sys/types.h> ],
1238 [ intmax_t a; a = 1;],
1239 [ ac_cv_have_intmax_t="yes" ],
1242 [ #include <stdint.h> ],
1243 [ intmax_t a; a = 1;],
1244 [ ac_cv_have_intmax_t="yes" ],
1245 [ ac_cv_have_intmax_t="no" ]
1251 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
1252 AC_DEFINE(HAVE_INTMAX_T)
1257 AC_CACHE_CHECK([for u_intmax_t type], ac_cv_have_u_intmax_t, [
1259 [ #include <sys/types.h> ],
1260 [ u_intmax_t a; a = 1;],
1261 [ ac_cv_have_u_intmax_t="yes" ],
1264 [ #include <stdint.h> ],
1265 [ u_intmax_t a; a = 1;],
1266 [ ac_cv_have_u_intmax_t="yes" ],
1267 [ ac_cv_have_u_intmax_t="no" ]
1272 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
1273 AC_DEFINE(HAVE_U_INTMAX_T)
1278 AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
1280 [ #include <sys/types.h> ],
1281 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
1282 [ ac_cv_have_intxx_t="yes" ],
1283 [ ac_cv_have_intxx_t="no" ]
1286 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
1287 AC_DEFINE(HAVE_INTXX_T)
1291 AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [
1293 [ #include <sys/types.h> ],
1294 [ int64_t a; a = 1;],
1295 [ ac_cv_have_int64_t="yes" ],
1296 [ ac_cv_have_int64_t="no" ]
1299 if test "x$ac_cv_have_int64_t" = "xyes" ; then
1300 AC_DEFINE(HAVE_INT64_T)
1304 AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
1306 [ #include <sys/types.h> ],
1307 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
1308 [ ac_cv_have_u_intxx_t="yes" ],
1309 [ ac_cv_have_u_intxx_t="no" ]
1312 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
1313 AC_DEFINE(HAVE_U_INTXX_T)
1317 AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [
1319 [ #include <sys/types.h> ],
1320 [ u_int64_t a; a = 1;],
1321 [ ac_cv_have_u_int64_t="yes" ],
1322 [ ac_cv_have_u_int64_t="no" ]
1325 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
1326 AC_DEFINE(HAVE_U_INT64_T)
1330 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
1331 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1333 AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
1335 [ #include <sys/bitypes.h> ],
1336 [ int8_t a; int16_t b; int32_t c;
1337 u_int8_t e; u_int16_t f; u_int32_t g;
1338 a = b = c = e = f = g = 1; ],
1339 [ AC_DEFINE(HAVE_U_INTXX_T)
1340 AC_DEFINE(HAVE_INTXX_T)
1341 AC_DEFINE(HAVE_SYS_BITYPES_H)
1342 AC_MSG_RESULT(yes) ],
1343 [ AC_MSG_RESULT(no)]
1347 if test -z "$have_u_intxx_t" ; then
1348 AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
1350 [ #include <sys/types.h> ],
1351 [ uint8_t a; uint16_t b;
1352 uint32_t c; a = b = c = 1; ],
1353 [ ac_cv_have_uintxx_t="yes" ],
1354 [ ac_cv_have_uintxx_t="no" ]
1357 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
1358 AC_DEFINE(HAVE_UINTXX_T)
1362 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
1363 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1365 AC_MSG_CHECKING([for int64_t and u_int64_t types in sys/bitypes.h])
1367 [ #include <sys/bitypes.h> ],
1368 [ int64_t a; u_int64_t b;
1370 [ AC_DEFINE(HAVE_U_INT64_T)
1371 AC_DEFINE(HAVE_INT64_T)
1372 AC_MSG_RESULT(yes) ],
1373 [ AC_MSG_RESULT(no)]
1377 if (test -z "$have_uintxx_t" && \
1378 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1380 AC_MSG_CHECKING([for uintXX_t types in sys/bitypes.h])
1382 [ #include <sys/bitypes.h> ],
1383 [ uint8_t a; uint16_t b;
1384 uint32_t c; a = b = c = 1; ],
1385 [ AC_DEFINE(HAVE_UINTXX_T)
1386 AC_MSG_RESULT(yes) ],
1387 [ AC_MSG_RESULT(no)]
1395 dnl# --------------------------------------------------------------------------
1396 dnl# CHECKING FOR REQUIRED LIBRARY FUNCTIONS
1397 dnl# --------------------------------------------------------------------------
1413 [echo 'configure: cannot find needed function.'; exit 1]
1416 AC_CHECK_FUNCS(fchdir, [AC_DEFINE(HAVE_FCHDIR)])
1417 AC_CHECK_FUNCS(strtoll, [AC_DEFINE(HAVE_STRTOLL)])
1419 AC_CHECK_FUNCS(chflags)
1421 AC_CHECK_FUNCS(snprintf vsnprintf gethostid getdomainname)
1423 dnl# --------------------------------------------------------------------------
1424 dnl# CHECKING FOR THREAD SAFE FUNCTIONS
1425 dnl# --------------------------------------------------------------------------
1426 AC_CHECK_FUNCS(localtime_r readdir_r strerror_r gethostbyname_r)
1428 # If resolver functions are not in libc check for -lnsl or -lresolv.
1429 AC_CHECK_FUNC(gethostbyname_r,
1430 AC_MSG_RESULT(using libc's resolver),
1431 AC_CHECK_LIB(nsl,gethostbyname_r)
1432 AC_CHECK_LIB(resolv,gethostbyname_r))
1436 AC_CHECK_FUNCS(inet_pton, [AC_DEFINE(HAVE_INET_PTON)])
1437 AC_CHECK_FUNCS(inet_ntop, [AC_DEFINE(HAVE_INET_NTOP)])
1438 AC_CHECK_FUNCS(gethostbyname2, [AC_DEFINE(HAVE_GETHOSTBYNAME2)])
1440 dnl ----------------------------
1441 dnl check sa_len of sockaddr
1442 dnl ----------------------------
1443 AC_CACHE_CHECK(for struct sockaddr has a sa_len field, ac_cv_struct_sockaddr_sa_len,
1444 [AC_TRY_COMPILE([#include <sys/socket.h>], [struct sockaddr s; s.sa_len;],
1445 ac_cv_struct_sockaddr_sa_len=yes, ac_cv_struct_sockaddr_sa_len=no)])
1447 if test $ac_cv_struct_sockaddr_sa_len = yes; then
1448 AC_DEFINE(HAVE_SA_LEN, 1, [Define if sa_len field exists in struct sockaddr])
1452 dnl Check for IPv6 support
1453 AC_CACHE_CHECK([for IPv6 support], ac_cv_ipv6_support,
1454 [AC_TRY_LINK([ #include <sys/types.h>
1455 #include <sys/socket.h>
1456 #include <netinet/in.h>], [struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
1458 [ac_cv_ipv6_support=yes], [ac_cv_ipv6_support=no])])
1460 if test "$ac_cv_ipv6_support" = yes; then
1461 AC_DEFINE(HAVE_IPV6,1,[Whether to enable IPv6 support])
1470 AC_FUNC_CLOSEDIR_VOID
1471 AC_FUNC_SETPGRP dnl check for BSD setpgrp.
1475 dnl# FreeBSD needs to link libxpg4
1476 AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])
1479 AC_CHECK_LIB(sun, getpwnam)
1481 AC_CHECK_HEADERS(zlib.h)
1482 AC_CHECK_LIB(z, deflate, [FDLIBS="-lz"])
1484 if test x$FDLIBS = x-lz; then
1485 AC_DEFINE(HAVE_LIBZ)
1489 AC_CHECK_HEADER(sys/acl.h)
1490 AC_CHECK_LIB(acl, acl_get_file, [FDLIBS="-lacl $FDLIBS"])
1492 if test $ac_cv_lib_acl_acl_get_file = yes; then
1497 dnl Check for pthread libraries
1499 AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
1500 [AC_CHECK_LIB(pthreads, pthread_create, PTHREAD_LIB="-lpthreads",
1501 [AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r",
1502 [AC_CHECK_FUNC(pthread_create)]
1512 LDFLAGS=${LDFLAGS--O}
1513 DB_LIBS="${SQL_LFLAGS}"
1515 CPPFLAGS="$CPPFLAGS"
1526 AC_SUBST(X_EXTRA_LIBS)
1530 dnl# extra configurable objects
1541 # Finally we set appropriate distribution specific
1542 # variables and defaults
1544 # PFILES are platform specific files
1545 PFILES="platforms/Makefile"
1549 hostname=`uname -n | cut -d '.' -f 1`
1553 PSCMD="ps -e -o pid,comm"
1555 platforms/aix/Makefile"
1556 TAPEDRIVE="/dev/rmt0.1"
1560 PTHREAD_LIB="-lpthread -lexc"
1561 if test "${CC}" = "gcc" ; then
1568 TAPEDRIVE="/dev/nrmt0"
1571 DISTVER=`uname -a |awk '{print $3}'`
1572 TAPEDRIVE="/dev/nrmt0"
1573 PTHREAD_LIB="-pthread"
1574 CFLAGS="${CFLAGS} -pthread"
1575 PSCMD="ps -x -o pid,command"
1579 platforms/bsdi/Makefile \
1580 platforms/bsdi/bacula-fd \
1581 platforms/bsdi/bacula-sd \
1582 platforms/bsdi/bacula-dir"
1583 largefile_support="yes"
1586 DISTVER=`uname -a |awk '{print $3}'`
1587 TAPEDRIVE="/dev/nrst0"
1590 WLDFLAGS="-mwindows"
1594 TAPEDRIVE="/dev/nst0"
1595 PSCMD="ps -e -o pid,command"
1598 platforms/darwin/Makefile"
1601 DISTVER=`cat /etc/debian_version`
1602 TAPEDRIVE="/dev/nrst0"
1603 PSCMD="ps -e -o pid,command"
1606 DISTVER=`uname -a |awk '{print $3}'`
1607 VER=`echo $DISTVER | cut -c 1`
1608 if test x$VER = x4 ; then
1609 PTHREAD_LIB="-pthread"
1610 CFLAGS="${CFLAGS} -pthread"
1614 TAPEDRIVE="/dev/nrsa0"
1615 PSCMD="ps -x -o pid,command"
1617 platforms/freebsd/Makefile \
1618 platforms/freebsd/bacula-fd \
1619 platforms/freebsd/bacula-sd \
1620 platforms/freebsd/bacula-dir"
1621 largefile_support="yes"
1624 PSCMD="UNIX95=1 ps -e -o pid,comm"
1625 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
1627 TAPEDRIVE="/dev/rmt/0hnb"
1631 TAPEDRIVE="/dev/rmt/0cbn"
1632 PSCMD="ps -e -o pid,comm"
1634 platforms/irix/Makefile \
1635 platforms/irix/bacula-fd \
1636 platforms/irix/bacula-sd \
1637 platforms/irix/bacula-dir"
1640 DISTVER=`uname -a |awk '{print $3}'`
1643 TAPEDRIVE="/dev/nrst0"
1644 PSCMD="ps -a -o pid,command"
1645 PTHREAD_LIB="-pthread"
1646 CFLAGS="${CFLAGS} -pthread"
1649 DISTVER=`uname -a |awk '{print $3}'`
1652 TAPEDRIVE="/dev/nrst0"
1653 PSCMD="ps -ax -o pid,command"
1654 PTHREAD_LIB="-pthread"
1655 CFLAGS="${CFLAGS} -pthread"
1657 platforms/openbsd/Makefile \
1658 platforms/openbsd/bacula-fd \
1659 platforms/openbsd/bacula-sd \
1660 platforms/openbsd/bacula-dir"
1663 if test -f /etc/whitebox-release ; then
1664 f=/etc/whitebox-release
1666 f=/etc/redhat-release
1668 if test `cat $f | grep release |\
1669 cut -f 3 -d ' '`x = "Enterprise"x ; then
1670 DISTVER="Enterprise "`cat $f | grep release |\
1673 DISTVER=`cat /etc/redhat-release | grep release |\
1676 TAPEDRIVE="/dev/nst0"
1677 PSCMD="ps -e -o pid,command"
1679 platforms/redhat/Makefile \
1680 platforms/redhat/bacula-fd \
1681 platforms/redhat/bacula-sd \
1682 platforms/redhat/bacula-dir \
1683 platforms/redhat/bacula.spec \
1685 hostname=`hostname -s`
1688 DISTVER=`cat /etc/mandrake-release | grep release |\
1690 TAPEDRIVE="/dev/nst0"
1691 PSCMD="ps -e -o pid,command"
1693 platforms/mandrake/Makefile \
1694 platforms/mandrake/bacula-fd \
1695 platforms/mandrake/bacula-sd \
1696 platforms/mandrake/bacula-dir \
1697 platforms/mandrake/bacula.spec \
1701 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
1702 TAPEDRIVE="/dev/nst0"
1703 PSCMD="ps -e -o pid,command"
1705 platforms/gentoo/Makefile \
1706 platforms/gentoo/bacula-init \
1707 platforms/gentoo/bacula-fd \
1708 platforms/gentoo/bacula-sd \
1709 platforms/gentoo/bacula-dir"
1712 DISTVER=`cat /etc/slackware-version`
1713 TAPEDRIVE="/dev/nst0"
1714 PSCMD="ps -e -o pid,command"
1716 platforms/slackware/Makefile \
1717 platforms/slackware/rc.bacula-fd \
1718 platforms/slackware/rc.bacula-sd \
1719 platforms/slackware/rc.bacula-dir\
1720 platforms/slackware/functions.bacula"
1724 TAPEDRIVE="/dev/rmt/0cbn"
1725 PSCMD="ps -e -o pid,comm"
1727 platforms/solaris/Makefile \
1728 platforms/solaris/bacula-fd \
1729 platforms/solaris/bacula-sd \
1730 platforms/solaris/bacula-dir"
1731 if test x$DISTVER = x5.6 ; then
1732 AC_DEFINE(HAVE_OLD_SOCKOPT)
1736 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
1738 TAPEDRIVE="/dev/nst0"
1739 PSCMD="ps -e -o pid,command"
1741 platforms/suse/Makefile \
1742 platforms/suse/bacula-fd \
1743 platforms/suse/bacula-sd \
1744 platforms/suse/bacula-dir \
1745 platforms/suse/bacula \
1746 platforms/suse/bacula.spec"
1751 TAPEDRIVE="/dev/nst0"
1752 PSCMD="ps -e -o pid,command"
1754 platforms/suse/Makefile \
1755 platforms/suse/bacula-fd \
1756 platforms/suse/bacula-sd \
1757 platforms/suse/bacula-dir"
1761 TAPEDRIVE="/dev/nst0"
1764 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
1770 LIBS="$PTHREAD_LIB $LIBS"
1772 AC_DEFINE_UNQUOTED(lld, "$lld")
1773 AC_DEFINE_UNQUOTED(llu, "$llu")
1781 dnl# common parts of the Makefile
1782 MCOMMON=./autoconf/Make.common
1783 AC_SUBST_FILE(MCOMMON)
1786 if test "x${subsysdir}" = "x${sbindir}" ; then
1789 echo "You have set both --sbindir and --with-subsys-dir"
1790 echo " equal to: ${subsysdir} "
1791 echo "This is not permitted. Please reconfigure."
1793 echo "Aborting configuration ..."
1799 AC_OUTPUT([autoconf/Make.common \
1802 rescue/linux/Makefile \
1803 rescue/linux/floppy/Makefile \
1804 rescue/linux/cdrom/Makefile \
1805 rescue/linux/cdrom/bacula/Makefile \
1806 rescue/freebsd/Makefile \
1807 rescue/solaris/Makefile \
1808 scripts/startmysql \
1810 scripts/btraceback \
1816 scripts/devel_bacula \
1819 scripts/bacula.desktop.gnome1 \
1820 scripts/bacula.desktop.gnome2 \
1821 scripts/bacula.desktop.gnome1.consolehelper \
1822 scripts/bacula.desktop.gnome2.consolehelper \
1823 scripts/bacula.desktop.gnome1.xsu \
1824 scripts/bacula.desktop.gnome2.xsu \
1825 scripts/gnome-console.console_apps \
1826 scripts/mtx-changer \
1827 scripts/bacula-tray-monitor.desktop \
1831 src/console/Makefile \
1832 src/console/bconsole.conf \
1833 src/gnome-console/Makefile \
1834 src/gnome-console/gnome-console.conf \
1835 src/gnome2-console/Makefile \
1836 src/gnome2-console/gnome-console.conf \
1837 src/wx-console/Makefile \
1838 src/wx-console/wx-console.conf \
1839 src/tray-monitor/Makefile \
1840 src/tray-monitor/tray-monitor.conf \
1842 src/dird/bacula-dir.conf \
1844 src/stored/Makefile \
1845 src/stored/bacula-sd.conf \
1846 src/filed/Makefile \
1847 src/filed/bacula-fd.conf \
1848 src/filed/win32/Makefile \
1850 src/cats/make_catalog_backup \
1851 src/cats/delete_catalog_backup \
1852 src/cats/create_postgresql_database \
1853 src/cats/update_postgresql_tables \
1854 src/cats/make_postgresql_tables \
1855 src/cats/grant_postgresql_privileges \
1856 src/cats/drop_postgresql_tables \
1857 src/cats/drop_postgresql_database \
1858 src/cats/create_mysql_database \
1859 src/cats/update_mysql_tables \
1860 src/cats/make_mysql_tables \
1861 src/cats/grant_mysql_privileges \
1862 src/cats/drop_mysql_tables \
1863 src/cats/drop_mysql_database \
1864 src/cats/create_sqlite_database \
1865 src/cats/update_sqlite_tables \
1866 src/cats/make_sqlite_tables \
1867 src/cats/grant_sqlite_privileges \
1868 src/cats/drop_sqlite_tables \
1869 src/cats/drop_sqlite_database \
1872 src/cats/create_bdb_database \
1873 src/cats/update_bdb_tables \
1874 src/cats/make_bdb_tables \
1875 src/cats/grant_bdb_privileges \
1876 src/cats/drop_bdb_tables \
1877 src/cats/drop_bdb_database \
1878 src/cats/create_bacula_database \
1879 src/cats/update_bacula_tables \
1880 src/cats/grant_bacula_privileges \
1881 src/cats/make_bacula_tables \
1882 src/cats/drop_bacula_tables \
1883 src/cats/drop_bacula_database \
1884 src/findlib/Makefile \
1885 src/tools/Makefile \
1886 src/win32/winbacula.nsi \
1887 src/win32/baculafd/bacula-fd.conf \
1888 src/win32/Makefile \
1889 src/win32/console/bconsole.conf \
1890 src/win32/wx-console/wx-console.conf \
1892 [(echo "Doing make of dependencies"; ${MAKE:-make} depend;) ]
1896 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
1897 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
1902 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
1903 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
1905 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
1906 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
1908 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
1909 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
1911 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
1912 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
1914 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
1915 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
1917 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
1921 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
1922 largefile_support="yes"
1926 # A whole lot of hand springs to get the compiler version.
1927 # This is because gcc changed the output in version 3.0
1929 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
1930 if test "x${CCVERSION}" = "x" ; then
1931 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
1933 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
1934 if test x"${CXXVERSION}" = x ; then
1935 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
1938 if test "x${subsysdir}" = "x${sbindir}" ; then
1941 echo "You have set --sbindir and --with-subsys-dir"
1942 echo " both equal to: ${subsysdir} "
1943 echo " This is not permitted. Please reconfigure."
1945 echo "Aborting configuration ..."
1951 if test "x${db_name}" = "xInternal" ; then
1954 echo "You have not specified either --enable-client-only or one of the"
1955 echo " supported databases: MySQL, PostgreSQL, or SQLite".
1956 echo " This is not permitted. Please reconfigure."
1958 echo "Aborting the configuration ..."
1965 Configuration on `date`:
1967 Host: $host -- ${DISTNAME} ${DISTVER}
1968 Bacula version: ${VERSION} (${DATE})
1969 Source code location: ${srcdir}
1970 Install binaries: ${sbindir}
1971 Install config files: ${sysconfdir}
1972 Scripts directory: ${scriptdir}
1973 Working directory: ${working_dir}
1974 PID directory: ${piddir}
1975 Subsys directory: ${subsysdir}
1976 C Compiler: ${CC} ${CCVERSION}
1977 C++ Compiler: ${CXX} ${CXXVERSION}
1978 Compiler flags: ${WCFLAGS} ${CFLAGS}
1979 Linker flags: ${WLDFLAGS} ${LDFLAGS}
1981 Statically Linked Tools: ${support_static_tools}
1982 Statically Linked FD: ${support_static_fd}
1983 Statically Linked SD: ${support_static_sd}
1984 Statically Linked DIR: ${support_static_dir}
1985 Statically Linked CONS: ${support_static_cons}
1986 Database type: ${db_name}
1987 Database lib: ${DB_LIBS}
1989 Job Output Email: ${job_email}
1990 Traceback Email: ${dump_email}
1991 SMTP Host Address: ${smtp_host}
1993 Director Port: ${dir_port}
1994 File daemon Port: ${fd_port}
1995 Storage daemon Port: ${sd_port}
1997 Director User: ${dir_user}
1998 Director Group: ${dir_group}
1999 Storage Daemon User: ${sd_user}
2000 Storage DaemonGroup: ${sd_group}
2001 File Daemon User: ${fd_user}
2002 File Daemon Group: ${fd_group}
2004 SQL binaries Directory ${SQL_BINDIR}
2006 Large file support: $largefile_support
2007 Bacula conio support: ${got_conio} ${CONS_LIBS}
2008 readline support: ${got_readline} ${PRTREADLINE_SRC}
2009 TCP Wrappers support: ${TCPW_MSG}
2010 ZLIB support: ${have_zlib}
2011 enable-smartalloc: ${support_smartalloc}
2012 enable-gnome: ${support_gnome} ${gnome_version}
2013 enable-wx-console: ${support_wx_console}
2014 enable-tray-monitor: ${support_tray_monitor}
2015 client-only: ${build_client_only}
2016 ACL support: ${have_acl}
2023 # cweb support: ${got_cweb} ${CWEB_SRC}
2024 # gmp support: ${got_gmp} ${GMP_SRC}