AC_PROG_CC_C_O dnl Determine if C compiler support -c -o.
AC_PROG_GCC_TRADITIONAL dnl Determine if ioctl() need -traditional.
-if test "x$CC" = xgcc
-then
+if test "x$CC" = xgcc; then
AC_DEFINE(HAVE_GCC)
fi
+AC_PATH_PROG(CXX, $CXX, $CXX)
+if test ! -e $CXX; then
+ AC_MSG_ERROR(Unable to find C++ compiler)
+fi
dnl -------------------------------------------------------
dnl# Check for programs.
AC_PATH_PROG(GROWISOFS, growisofs, growisofs)
AC_PATH_PROG(DVDRWMEDIAINFO, dvd+rw-mediainfo, dvd+rw-mediainfo)
AC_PATH_PROG(PKGCONFIG, pkg-config, pkg-config)
-AC_PATH_PROG(WXCONFIG, wx-config, /opt/gnome/bin/wx-config)
+AC_ARG_VAR(WXCONFIG, [wx-config command. On some systems, you must set it to wx-config-2.6 to use wxWidgets 2.6.])
+if test "x$WXCONFIG" = x; then
+ WXCONFIG=wx-config
+fi
+AC_PATH_PROG(WXCONFIG, ${WXCONFIG}, ${WXCONFIG})
+AC_ARG_VAR(WXFLAGS, [Parameters to pass to wx-config (e.g. --unicode=no).])
AC_PATH_PROG(CDRECORD, cdrecord, cdrecord)
AC_PATH_PROG(PIDOF, pidof, pidof)
AC_PROG_AWK
sbindir=${exec_prefix}/sbin
fi
sbindir=`eval echo ${sbindir}`
+
+# -------------------------------------------------------------------------
+# If the user has not set --mandir, we default to /usr/share/man
+# -------------------------------------------------------------------------
+if test x$mandir = x'${prefix}/man' ; then
+ mandir=/usr/share/man
+fi
+
# ------------------------------------------------------------------
# All list of languages for which a translation exist. Each
support_wx_console=no
support_tls=no
gnome_version=
+wx_version=
support_static_tools=no
support_static_fd=no
support_static_sd=no
WX_DIR=
if test x$support_wx_console = xyes; then
- abc=`$WXCONFIG --cppflags`
+ abc=`$WXCONFIG $WXFLAGS --cppflags`
pkg=$?
if test $pkg = 0; then
- WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
- WXCONS_LDFLAGS=`$WXCONFIG --libs`
+ wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
+ WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
+ WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
+
AC_SUBST(WXCONS_CPPFLAGS)
AC_SUBST(WXCONS_LDFLAGS)
WX_DIR=src/wx-console
AC_HELP_STRING([--with-openssl@<:@=DIR@:>@], [Include OpenSSL support. DIR is the OpenSSL base]),
[with_openssl_directory=${withval}])
-if test "x$with_openssl_directory" != "xno"; then
+if test "x$with_openssl_directory" != "x"; then
OPENSSL_LIBS="-lssl -lcrypto"
OPENSSL_INC=""
TAPEDRIVE="/dev/nrmt0"
PTHREAD_LIB="-pthread"
CFLAGS="${CFLAGS} -pthread"
- PSCMD="ps -x -o pid,command"
+ PSCMD="ps -ax -o pid,command"
lld="qd"
llu="qu"
PFILES="${PFILES} \
lld="qd"
llu="qu"
TAPEDRIVE="/dev/nrsa0"
- PSCMD="ps -x -o pid,command"
+ PSCMD="ps -ax -o pid,command"
PFILES="${PFILES} \
platforms/freebsd/Makefile \
platforms/freebsd/bacula-fd \
lld="qd"
llu="qu"
TAPEDRIVE="/dev/nrst0"
- PSCMD="ps -a -o pid,command"
+ PSCMD="ps -ax -o pid,command"
PTHREAD_LIB="-pthread"
CFLAGS="${CFLAGS} -pthread"
;;
scripts/bacula-tray-monitor.desktop \
scripts/logwatch/Makefile \
scripts/logwatch/logfile.bacula.conf \
- doc/Makefile \
src/Makefile \
src/host.h \
src/console/Makefile \
cd scripts
chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
+chmod 755 dvd-writepart dvd-freespace
chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
cd ..
Working directory: ${working_dir}
PID directory: ${piddir}
Subsys directory: ${subsysdir}
+ Man directory: ${mandir}
C Compiler: ${CC} ${CCVERSION}
C++ Compiler: ${CXX} ${CXXVERSION}
Compiler flags: ${WCFLAGS} ${CFLAGS}
ZLIB support: ${have_zlib}
enable-smartalloc: ${support_smartalloc}
enable-gnome: ${support_gnome} ${gnome_version}
- enable-wx-console: ${support_wx_console}
+ enable-wx-console: ${support_wx_console} ${wx_version}
enable-tray-monitor: ${support_tray_monitor}
client-only: ${build_client_only}
ACL support: ${have_acl}