AC_CONFIG_HEADER(src/config.h:autoconf/config.h.in)
dnl require a recent autoconf
-AC_PREREQ(2.12)
+AC_PREREQ(2.13)
dnl search for true and false programs.
support_mysql=no
support_sqlite=no
support_smartalloc=yes
+support_readline=yes
+support_gnome=no
+support_static_tools=yes
cats=
db_name=Internal
DB_NAME=bdb
# -------------------------------------------
# gnome (default off)
# -------------------------------------------
-support_gnome=no
AC_ARG_ENABLE(gnome,
[ --enable-gnome enable build of gnome-console GUI *],
[if test x$enableval = xyes; then
AC_DEFINE(SMARTALLOC)
fi
+# -------------------------------------------
+# static-tools (default on)
+# -------------------------------------------
+AC_ARG_ENABLE(static-tools,
+ [ --enable-static-tools enable static tape tools *],
+ [if test x$enableval = xno; then
+ support_static_tools=no
+ fi])
+
+TTOOL_LDFLAGS=
+if test x$support_static_tools = xyes; then
+ TTOOL_LDFLAGS="-static"
+fi
+AC_SUBST(TTOOL_LDFLAGS)
+
+
# ---------------------------------------------------
# Check for readline support/directory (default on)
# ---------------------------------------------------
-support_readline=yes
# this allows you to turn it completely off
AC_ARG_ENABLE(readline,
[ --disable-readline disable readline support ],
if test "x$dir_password" = "x" ; then
if test "x$OPENSSL" = "xnone" ; then
- key=`date | uuencode 1 | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
+# key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
+ key=`./randpass 33`
else
key=`openssl rand -base64 33`
fi
if test "x$fd_password" = "x" ; then
if test "x$OPENSSL" = "xnone" ; then
- key=`date | uuencode 1 | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
+# key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
+ key=`./randpass 37`
else
key=`openssl rand -base64 33`
fi
if test "x$sd_password" = "x" ; then
if test "x$OPENSSL" = "xnone" ; then
- key=`date | uuencode 1 | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
+# key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
+ key=`./randpass 41`
else
key=`openssl rand -base64 33`
fi
dnl A few others
AC_EXEEXT
-dnl # AC_SYS_LARGEFILE must modify aclocal.m4
-dnl LARGE_FILE_SUPPORT
-
+
+dnl See if we can use 64 bit file addresses
+AC_SYS_LARGEFILE
AC_PATH_XTRA
AC_CHECK_FUNCS(fchdir, [AC_DEFINE(HAVE_FCHDIR)])
-AC_CHECK_FUNCS(snprintf vsnprintf)
+AC_CHECK_FUNCS(snprintf vsnprintf gethostid getdomainname)
dnl# --------------------------------------------------------------------------
dnl# CHECKING FOR THREAD SAFE FUNCTIONS
platforms/freebsd/bacula-sd \
platforms/freebsd/bacula-dir"
hostname=`hostname -s`
+ ac_cv_sys_largefile_CFLAGS="yes"
;;
hpux)
DISTVER=`uname -r`
src/cats/create_bdb_database \
src/cats/make_bdb_tables \
src/cats/drop_bdb_tables \
+ src/cats/make_bacula_tables \
+ src/cats/drop_bacula_tables \
src/findlib/Makefile \
src/tools/Makefile \
$PFILES ],
Compiler flags: ${CFLAGS}
Linker flags: ${LDFLAGS}
Libraries: ${LIBS}
+ Statically Linked Tools: ${support_static_tools}
Database found: ${have_db}
Database type: ${db_name}
Database lib: ${DB_LIBS}
Working directory ${working_dir}
SQL binaries Directory ${SQL_BINDIR}
+ Large file support: $ac_cv_sys_largefile_CFLAGS
readline support: ${got_readline} ${PRTREADLINE_SRC}
cweb support: ${got_cweb} ${CWEB_SRC}
TCP Wrappers support: ${TCPW_MSG}