support_readline=yes
support_gnome=no
support_static_tools=no
+support_static_fd=no
+support_static_sd=no
+support_static_dir=no
+support_static_cons=no
+build_client_only=no
cats=
db_name=Internal
DB_NAME=bdb
dnl# --------------------------------------------------------------------------
dnl# CHECKING COMMAND LINE OPTIONS
dnl# --------------------------------------------------------------------------
-AC_ARG_ENABLE(everything,
- [ --enable-everything enable standard non-multichoice features: marked *],
- [if test x$enableval = xyes; then
- support_smartalloc=yes
- fi])
# -------------------------------------------
# gnome (default off)
# -------------------------------------------
AC_ARG_ENABLE(gnome,
- [ --enable-gnome enable build of gnome-console GUI *],
+ [ --enable-gnome enable build of gnome-console GUI [disabled]],
[if test x$enableval = xyes; then
support_gnome=yes
fi])
# smartalloc (default off)
# -------------------------------------------
AC_ARG_ENABLE(smartalloc,
- [ --enable-smartalloc enable smartalloc debugging support *],
+ [ --enable-smartalloc enable smartalloc debugging support [disabled]],
[if test x$enableval = xno; then
support_smartalloc=no
fi])
# static-tools (default off)
# -------------------------------------------
AC_ARG_ENABLE(static-tools,
- [ --enable-static-tools enable static tape tools *],
+ [ --enable-static-tools enable static tape tools [disabled]],
[if test x$enableval = xyes; then
support_static_tools=yes
fi])
fi
AC_SUBST(TTOOL_LDFLAGS)
+# -------------------------------------------
+# static-fd (default off)
+# -------------------------------------------
+AC_ARG_ENABLE(static-fd,
+ [ --enable-static-fd enable static File daemon [disabled]],
+ [if test x$enableval = xyes; then
+ support_static_fd=yes
+ fi])
+STATIC_FD=
+if test x$support_static_fd = xyes; then
+ STATIC_FD="static-bacula-fd"
+fi
+AC_SUBST(STATIC_FD)
+# -------------------------------------------
+# static-sd (default off)
+# -------------------------------------------
+AC_ARG_ENABLE(static-sd,
+ [ --enable-static-sd enable static Storage daemon [disabled]],
+ [if test x$enableval = xyes; then
+ support_static_sd=yes
+ fi])
+
+STATIC_SD=
+if test x$support_static_sd = xyes; then
+ STATIC_SD="static-bacula-sd"
+fi
+AC_SUBST(STATIC_SD)
+
+# -------------------------------------------
+# static-dir (default off)
+# -------------------------------------------
+AC_ARG_ENABLE(static-dir,
+ [ --enable-static-dir enable static Director [disabled]],
+ [if test x$enableval = xyes; then
+ support_static_dir=yes
+ fi])
+
+STATIC_DIR=
+if test x$support_static_dir = xyes; then
+ STATIC_DIR="static-bacula-dir"
+fi
+AC_SUBST(STATIC_DIR)
+
+# -------------------------------------------
+# static-cons (default off)
+# -------------------------------------------
+AC_ARG_ENABLE(static-cons,
+ [ --enable-static-cons enable static Console [disabled]],
+ [if test x$enableval = xyes; then
+ support_static_cons=yes
+ fi])
+
+STATIC_CONS=
+if test x$support_static_cons = xyes; then
+ STATIC_CONS="static-console"
+fi
+AC_SUBST(STATIC_CONS)
+
+# -------------------------------------------
+# client_only (default off)
+# -------------------------------------------
+AC_ARG_ENABLE(client-only,
+ [ --enable-client-only build client (File daemon) only [disabled]],
+ [if test x$enableval = xyes; then
+ build_client_only=yes
+ fi])
+if test x$build_client_only = xno; then
+ ALL_DIRS="subdirs"
+else
+ ALL_DIRS=""
+fi
+AC_SUBST(ALL_DIRS)
# ---------------------------------------------------
# Check for readline support/directory (default on)
# ---------------------------------------------------
# this allows you to turn it completely off
AC_ARG_ENABLE(readline,
- [ --disable-readline disable readline support ],
+ [ --disable-readline disable readline support [enabled]
+ ],
[if test x$enableval = xno; then
support_readline=no
fi])
READLINE_SRC=
if test x$support_readline = xyes; then
AC_ARG_WITH(readline,
- [ --with-readline[=DIR] Specify readline library directory],
+ [ --with-readline=DIR specify readline library directory],
[
case "$with_readline" in
no) : ;;
# -----------------------------------------------------------
TCPW_MSG="no"
AC_ARG_WITH(tcp-wrappers,
- [ --with-tcp-wrappers=DIR Enable tcpwrappers support],
+ [ --with-tcp-wrappers=DIR enable tcpwrappers support],
[
if test "x$withval" != "xno" ; then
saved_LIBS="$LIBS"
# ------------------------------------------
working_dir=`eval echo ${sysconfdir}/working`
AC_ARG_WITH(working-dir,
- [ --with-working-dir=PATH Specify location of Bacula working files],
+ [ --with-working-dir=PATH specify path of Bacula working directory],
[
if test "x$withval" != "xno" ; then
working_dir=$withval
# ------------------------------------------
dump_email=root@localhost
AC_ARG_WITH(dump-email,
- [ --with-dump-email=Dump email address],
+ [ --with-dump-email=EMAIL dump email address],
[
if test "x$withval" != "xno" ; then
dump_email=$withval
# ------------------------------------------
job_email=root@localhost
AC_ARG_WITH(job-email,
- [ --with-job-email=Job output email address],
+ [ --with-job-email=EMAIL job output email address],
[
if test "x$withval" != "xno" ; then
job_email=$withval
# ------------------------------------------
smtp_host=localhost
AC_ARG_WITH(smtp_host,
- [ --with-smtp-host=SMTP mail host address],
+ [ --with-smtp-host=HOST SMTP mail host address],
[
if test "x$withval" != "xno" ; then
smtp_host=$withval
# ------------------------------------
piddir=/var/run
AC_ARG_WITH(pid-dir,
- [ --with-pid-dir=PATH Specify location of Bacula pid files],
+ [ --with-pid-dir=PATH specify location of Bacula pid files],
[
if test "x$withval" != "xno" ; then
piddir=$withval
# ------------------------------------
subsysdir=/var/run/subsys
AC_ARG_WITH(subsys-dir,
- [ --with-subsys-dir=PATH Specify location of Bacula subsys file],
+ [ --with-subsys-dir=PATH specify location of Bacula subsys file],
[
if test "x$withval" != "xno" ; then
subsysdir=$withval
# ------------------------------------
baseport=9101
AC_ARG_WITH(baseport,
- [ --with-baseport=PORT Specify base port address for daemons],
+ [ --with-baseport=PORT specify base port address for daemons],
[
if test "x$withval" != "xno" ; then
baseport=$withval
# ------------------------------------------
dir_password=
AC_ARG_WITH(dir-password,
- [ --with-dir-password=PASSWORD Specify Director's password],
+ [ --with-dir-password=PASSWORD specify Director's password],
[
if test "x$withval" != "xno" ; then
dir_password=$withval
fd_password=
AC_ARG_WITH(fd-password,
- [ --with-fd-password=PASSWORD Specify Client's password],
+ [ --with-fd-password=PASSWORD specify Client's password],
[
if test "x$withval" != "xno" ; then
fd_password=$withval
sd_password=
AC_ARG_WITH(sd-password,
- [ --with-sd-password=PASSWORD Specify Storage daemon's password],
+ [ --with-sd-password=PASSWORD specify Storage daemon's password],
[
if test "x$withval" != "xno" ; then
sd_password=$withval
AC_OUTPUT([autoconf/Make.common \
Makefile \
+ rescue/Makefile \
+ rescue/linux/Makefile \
+ rescue/freebsd/Makefile \
scripts/startmysql \
scripts/stopmysql \
scripts/btraceback \
Linker flags: ${LDFLAGS}
Libraries: ${LIBS}
Statically Linked Tools: ${support_static_tools}
+ Statically Linked FD: ${support_static_fd}
+ Statically Linked SD: ${support_static_sd}
+ Statically Linked DIR: ${support_static_dir}
+ Statically Linked CONS: ${support_static_cons}
Database type: ${db_name}
Database lib: ${DB_LIBS}
ZLIB support: ${have_zlib}
enable-smartalloc: ${support_smartalloc}
enable-gnome: ${support_gnome}
+ client-only: ${build_client_only}
" > config.out