dnl# CHECKING COMMAND LINE OPTIONS
dnl# --------------------------------------------------------------------------
-# -------------------------------------------
-# 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)
where=
# ------------------------------------------
# Where to get iso
# ------------------------------------------
AC_ARG_WITH(iso,
- [ --with-iso=PATH specify path to iso],
+ [ --with-iso=PATH specify path to iso (not implemented)],
[
if test "x$withval" != "xno" ; then
where=$withval
AC_SUBST(where)
AC_SUBST(type)
+
+# ------------------------------------------
+# Which kernel to take
+# ------------------------------------------
+AC_ARG_WITH(kernel,
+ [ --with-kernel=version specify complete kernel version (e.g. 2.6.14-2) ],
+ [
+ if test "x$withval" != "xno" ; then
+ KERNEL=$withval
+ fi
+ ]
+)
+AC_SUBST(KERNEL)
+
+
# ------------------------------------------
# Where to get Bacula source
# ------------------------------------------
fi
]
)
-
-if test x${bacula} = x; then
- AC_MSG_ERROR(Missing --with-bacula=PATH)
-fi
-
AC_SUBST(bacula)
+STATIC_FD=
+# ------------------------------------------
+# Where to get static-bacula-fd
+# ------------------------------------------
+AC_ARG_WITH(static-fd,
+ [ --with-static-fd=PATH specify path to static FD],
+ [
+ if test "x$withval" != "xno" ; then
+ STATIC_FD=$withval
+ fi
+ ]
+)
+AC_SUBST(STATIC_FD)
+
+if test x${bacula} = x -a x${STATIC_FD} = x ; then
+ AC_MSG_ERROR(You must specify either --with-bacula=PATH or --with-static-fd=PATH)
+fi
#
# Finally we set appropriate distribution specific
Host: $host -- ${DISTNAME} ${DISTVER}
Rescue version: ${VERSION} (${DATE})
Source code location: ${bacula}
- Rescue disk image type: ${type}
- Rescue disk image location: ${where}
-
+ Static FD location: ${STATIC_FD}
+ Specific kernel version: ${KERNEL}
" > config.out
PACKAGE_BUGREPORT=
ac_unique_file="version.h"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG AWK VERSION DATE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MV RM CP ECHO AR CDRECORD build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE CDSTL STATIC_FD iso where type bacula hostname DISTNAME DISTVER LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG AWK VERSION DATE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MV RM CP ECHO AR CDRECORD build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE CDSTL iso where type KERNEL bacula STATIC_FD hostname DISTNAME DISTVER LIBOBJS LTLIBOBJS'
ac_subst_files='MCOMMON'
# Initialize some variables set by options.
cat <<\_ACEOF
-Optional Features:
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --enable-static-fd enable static File daemon disabled
-
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --with-iso=PATH specify path to iso
+ --with-iso=PATH specify path to iso (not implemented)
--with-cdrom=PATH specify path to cdrom
+ --with-kernel=version specify complete kernel version (e.g. 2.6.14-2)
--with-bacula=PATH specify path to Bacula source
+ --with-static-fd=PATH specify path to static FD
_ACEOF
fi
-# -------------------------------------------
-# static-fd (default off)
-# -------------------------------------------
-# Check whether --enable-static-fd or --disable-static-fd was given.
-if test "${enable_static_fd+set}" = set; then
- enableval="$enable_static_fd"
- if test x$enableval = xyes; then
- support_static_fd=yes
- fi
-fi;
-
-STATIC_FD=
-if test x$support_static_fd = xyes; then
- STATIC_FD="static-bacula-fd"
-fi
-
where=
# ------------------------------------------
+
+# ------------------------------------------
+# Which kernel to take
+# ------------------------------------------
+
+# Check whether --with-kernel or --without-kernel was given.
+if test "${with_kernel+set}" = set; then
+ withval="$with_kernel"
+
+ if test "x$withval" != "xno" ; then
+ KERNEL=$withval
+ fi
+
+
+fi;
+
+
+
# ------------------------------------------
# Where to get Bacula source
# ------------------------------------------
fi;
-if test x${bacula} = x; then
- { { echo "$as_me:$LINENO: error: Missing --with-bacula=PATH" >&5
-echo "$as_me: error: Missing --with-bacula=PATH" >&2;}
- { (exit 1); exit 1; }; }
-fi
+STATIC_FD=
+# ------------------------------------------
+# Where to get static-bacula-fd
+# ------------------------------------------
+
+# Check whether --with-static-fd or --without-static-fd was given.
+if test "${with_static_fd+set}" = set; then
+ withval="$with_static_fd"
+ if test "x$withval" != "xno" ; then
+ STATIC_FD=$withval
+ fi
+fi;
+
+
+if test x${bacula} = x -a x${STATIC_FD} = x ; then
+ { { echo "$as_me:$LINENO: error: You must specify either --with-bacula=PATH or --with-static-fd=PATH" >&5
+echo "$as_me: error: You must specify either --with-bacula=PATH or --with-static-fd=PATH" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
#
# Finally we set appropriate distribution specific
# variables and defaults
s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
s,@CDSTL@,$CDSTL,;t t
-s,@STATIC_FD@,$STATIC_FD,;t t
s,@iso@,$iso,;t t
s,@where@,$where,;t t
s,@type@,$type,;t t
+s,@KERNEL@,$KERNEL,;t t
s,@bacula@,$bacula,;t t
+s,@STATIC_FD@,$STATIC_FD,;t t
s,@hostname@,$hostname,;t t
s,@DISTNAME@,$DISTNAME,;t t
s,@DISTVER@,$DISTVER,;t t
Host: $host -- ${DISTNAME} ${DISTVER}
Rescue version: ${VERSION} (${DATE})
Source code location: ${bacula}
- Rescue disk image type: ${type}
- Rescue disk image location: ${where}
-
+ Static FD location: ${STATIC_FD}
+ Specific kernel version: ${KERNEL}
" > config.out