-CONFIGURE_COMMAND="'$0'"
-for arg in "$@"; do
- CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
-done
-AC_DEFINE_UNQUOTED(CONFIGURE_COMMAND,"$CONFIGURE_COMMAND",
- [Saves the original ./configure command line arguments])
-AC_SUBST(CONFIGURE_COMMAND)
-
-AM_INIT_AUTOMAKE(amanda, 2.5.0p2)
-AM_CONFIG_HEADER(config/config.h)
-
-AC_PREREQ(2.57) dnl Minimum Autoconf version required.
-
-if test -f "$srcdir/SNAPSHOT"; then
- cat < "$srcdir/SNAPSHOT"
-changequote(,)
- snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
-changequote([,])
- test -z "$snapdate" || VERSION="$VERSION-$snapdate"
- SNAPSHOT_STAMP=SNAPSHOT
-else
- SNAPSHOT_STAMP=
-fi
-AC_SUBST(SNAPSHOT_STAMP)
-
-if test -f config.local; then
- echo "running local script ./config.local"
- . ./config.local
-fi
-
-dnl
-dnl Set the version number of this release of Amanda from the VERSION
-dnl string, which is set in AM_INIT_AUTOMAKE.
-dnl
-changequote(,)
-VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
-VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
-VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
-VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
-changequote([,])
-
-VERSION_SUFFIX="$VERSION"
-AC_SUBST(VERSION_MAJOR)
-AC_SUBST(VERSION_MINOR)
-AC_SUBST(VERSION_PATCH)
-AC_SUBST(VERSION_COMMENT)
-AC_SUBST(VERSION_SUFFIX)
-
-dnl
-dnl runtime and compile time
-dnl
-SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/bsd:/etc:/usr/etc"
-LOCPATH=`(
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
- eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
-)`
-SYSLOCPATH="$SYSPATH:$LOCPATH"
-LOCSYSPATH="$LOCPATH:$SYSPATH"
-
-AC_ARG_WITH(cflags,
- [ --with-cflags=CFLAGS arguments to the c compiler (-Wall, -g, etc)],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-includes option.])
- ;;
- esac
- CFLAGS="$withval"
- ])
-
-AC_ARG_WITH(includes,
- [ --with-includes=DIR site header files for readline, etc in DIR],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-includes option.])
- ;;
- esac
- INCLUDE_DIRS="$withval"
- ])
-
-if test "$INCLUDE_DIRS"; then
- for dir in $INCLUDE_DIRS; do
- if test -d "$dir"; then
- AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS -I$dir"
- else
- AC_MSG_WARN([*** Include directory $dir does not exist.])
- fi
- done
-fi
-
-AC_ARG_WITH(libraries,
- [ --with-libraries=DIR site library directories for readline, etc in DIR],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-libraries option.])
- ;;
- esac
- LIBRARY_DIRS="$withval"
- ])
-
-if test "$LIBRARY_DIRS"; then
- for dir in $LIBRARY_DIRS; do
- if test -d "$dir"; then
- case "$target" in
- *-solaris2*,*-netbsd*)
- AMANDA_LDFLAGS="$AMANDA_LDFLAGS -R$dir"
- ;;
- esac
- AMANDA_LDFLAGS="$AMANDA_LDFLAGS -L$dir"
- else
- AC_MSG_WARN([*** Library directory $dir does not exist.])
- fi
- done
-fi
-
-AC_ARG_WITH(dumperdir,
- [ --with-dumperdir=DIR where we install the dumpers [[EPREFIX/dumper]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-dumperdir option.])
- ;;
- esac
- DUMPER_DIR="$withval"
- ], [
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
- DUMPER_DIR=$exec_prefix/dumper
- ]
-)
-DUMPER_DIR=`(
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
- eval echo "$DUMPER_DIR"
-)`
-AC_DEFINE_UNQUOTED(DUMPER_DIR,"$DUMPER_DIR",[Directory in which dumper interfaces should be installed and searched. ])
-AC_SUBST(DUMPER_DIR)
-
-AC_ARG_WITH(configdir,
- [ --with-configdir=DIR runtime config files in DIR [[sysconfdir/amanda]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-configdir option.])
- ;;
- *) CONFIG_DIR="$withval"
- ;;
- esac
- ],
- : ${CONFIG_DIR="$sysconfdir/amanda"}
-)
-CONFIG_DIR=`(
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
- eval echo "$CONFIG_DIR"
-)`
-AC_DEFINE_UNQUOTED(CONFIG_DIR,"$CONFIG_DIR",
- [The directory in which configuration directories should be created. ])
-AC_SUBST(CONFIG_DIR)
-
-AC_ARG_WITH(indexdir,
- [ --with-indexdir deprecated, use indexdir in amanda.conf],
- [ AC_MSG_ERROR([*** --with-indexdir is deprecated, use indexdir in amanda.conf instead.])
- ],)
-
-AC_ARG_WITH(dbdir,
- [ --with-dbdir deprecated, use infofile in amanda.conf],
- [ AC_MSG_ERROR([*** --with-dbdir is deprecated, use infofile in amanda.conf instead.])
- ],)
-
-AC_ARG_WITH(logdir,
- [ --with-logdir deprecated, use logfile in amanda.conf],
- [ AC_MSG_ERROR([*** --with-logdir is deprecated, use logdir in amanda.conf instead.])
- ],)
-
-AC_ARG_WITH(suffixes,
- [ --with-suffixes install binaries with version string appended to name],
- USE_VERSION_SUFFIXES=$withval,
- : ${USE_VERSION_SUFFIXES=no}
-)
-case "$USE_VERSION_SUFFIXES" in
-y | ye | yes)
- AC_DEFINE(USE_VERSION_SUFFIXES, 1,
- [Define to have programs use version suffixes when calling other programs.])
-
- program_suffix="-$VERSION"
- # This is from the output of configure.in.
- if test "x$program_transform_name" = xs,x,x,; then
- program_transform_name=
- else
- # Double any \ or $. echo might interpret backslashes.
- cat <<\EOF_SED > conftestsed
-s,\\,\\\\,g; s,\$,$$,g
-EOF_SED
- program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
- rm -f conftestsed
- fi
- test "x$program_prefix" != xNONE &&
- program_transform_name="s,^,${program_prefix},; $program_transform_name"
- # Use a double $ so make ignores it.
- test "x$program_suffix" != xNONE &&
- program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
-
- # sed with no file args requires a program.
- test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
- # Remove empty command
- cat <<\EOF_SED > conftestsed
-s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
-EOF_SED
- program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
- rm -f conftestsed
- ;;
-n | no) USE_VERSION_SUFFIXES=no
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument to --with-suffixes option.])
- ;;
-esac
-AC_SUBST(USE_VERSION_SUFFIXES)
-
-case "$target" in
- *-hp-*)
- CLIENT_SCRIPTS_OPT=amhpfixdevs
- ;;
- *-sni-sysv4)
- CLIENT_SCRIPTS_OPT=amsinixfixdevs
- ;;
- *)
- CLIENT_SCRIPTS_OPT=
- ;;
-esac
-
-AC_SUBST(CLIENT_SCRIPTS_OPT)
-
-AC_ARG_WITH(client-only,
- [ --with-client-only deprecated, use --without-server],
- [ AC_MSG_ERROR([*** --with-client-only is deprecated, use --without-server instead.])
- ],)
-AC_ARG_WITH(server-only,
- [ --with-server-only deprecated, use --without-client],
- [ AC_MSG_ERROR([*** --with-server-only is deprecated, use --without-client instead.])
- ],)
-
-AC_ARG_WITH(client,
- [ --without-client do not build client stuff],
- [
- case "$withval" in
- y | ye | yes) NO_CLIENT_MODE=false;;
- n | no) NO_CLIENT_MODE=true;;
- *)
- AC_MSG_ERROR([*** You must not supply an argument to --with-client option.])
- ;;
- esac
- ]
-)
-
-AC_ARG_WITH(server,
- [ --without-server do not build server stuff (set --without-restore)],
- [
- case "$withval" in
- y | ye | yes) NO_SERVER_MODE=false ;;
- n | no) NO_SERVER_MODE=true;NO_RESTORE_MODE=true;;
- *)
- AC_MSG_ERROR([*** You must not supply an argument to --with-server option. Maybe you meant --with-index-server=$withval])
- ;;
- esac
- ]
-)
-if test "x${NO_SERVER_MODE+set}" != xset ; then
- NO_SERVER_MODE=false
-fi
-
-AC_ARG_WITH(restore,
- [ --without-restore do not build amrestore nor amidxtaped],
- [
- case "$withval" in
- y | ye | yes) NO_RESTORE_MODE=false;;
- n | no) NO_RESTORE_MODE=true;;
- *)
- AC_MSG_ERROR([*** You must not supply an argument to --with-restore option.])
- ;;
- esac
- ]
-)
-if test "x${NO_RESTORE_MODE+set}" != xset ; then
- NO_RESTORE_MODE=${NO_SERVER_MODE-false}
-fi
-
-if ${NO_SERVER_MODE-false}; then
- if ${NO_RESTORE_MODE-false}; then
- dnl
- dnl --without-server and --without-restore is OK
- dnl
- true
- else
- AC_MSG_ERROR([*** --without-server requires --without-restore])
- fi
-fi
-
-AC_ARG_WITH(amrecover,
- [ --without-amrecover do not build amrecover],
- [
- case "$withval" in
- y | ye | yes)
- if ${NO_CLIENT_MODE-false}; then
- AC_MSG_ERROR([*** --without-client and --with-amrecover are incompatible])
- fi
- NO_RECOVER_MODE=false;;
- n | no) NO_RECOVER_MODE=true;;
- *)
- AC_MSG_ERROR([*** You must not supply an argument to --with-amrecover option.])
- ;;
- esac
- ]
-)
-
-AC_ARG_WITH(index-server,
- [ --with-index-server=HOST default amanda index server [[`uname -n`]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-index-server option.])
- ;;
- *) DEFAULT_SERVER="$withval"
- ;;
- esac
- ],
- : ${DEFAULT_SERVER=`uname -n`}
-)
-AC_DEFINE_UNQUOTED(DEFAULT_SERVER,"$DEFAULT_SERVER",
- [This is the default Amanda index server. ])
-AC_SUBST(DEFAULT_SERVER)
-
-AC_ARG_WITH(force-uid,
- [ --without-force-uid do not force the uid to --with-user],
- FORCE_USERID="$withval",
- : ${FORCE_USERID=yes}
-)
-case "$FORCE_USERID" in
-y | ye | yes) AC_DEFINE(FORCE_USERID, 1,
- [Define to force to another user on client machines. ])
- ;;
-n | no) :
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument to --with-force-uid option.])
-esac
-
-AC_ARG_WITH(user,
- [ --with-user=USER force execution to USER on client systems [[required]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-user option.])
- ;;
- *) CLIENT_LOGIN="$withval"
- ;;
- esac
- ]
-)
-if test "x${CLIENT_LOGIN+set}" != xset; then
- AC_MSG_ERROR([*** --with-user=USER is missing])
-fi
-AC_DEFINE_UNQUOTED(CLIENT_LOGIN,"$CLIENT_LOGIN",
- [Define as a the user to force to on client machines. ])
-AC_SUBST(CLIENT_LOGIN)
-
-AC_ARG_WITH(group,
- [ --with-group=GROUP group allowed to execute setuid-root programs [[required]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-group option.])
- ;;
- *) SETUID_GROUP="$withval"
- ;;
- esac
- ]
-)
-if test "x${SETUID_GROUP+set}" != xset; then
- AC_MSG_ERROR([*** --with-group=GROUP is missing])
-fi
-AC_SUBST(SETUID_GROUP)
-
-AC_ARG_WITH(owner,
- [ --with-owner=USER force ownership of files to USER [[default == --with-user value]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-owner option.])
- ;;
- *) BINARY_OWNER="$withval"
- ;;
- esac
- ]
-)
-if test "x${BINARY_OWNER+set}" != xset ; then
- BINARY_OWNER=$CLIENT_LOGIN
-fi
-AC_DEFINE_UNQUOTED(BINARY_OWNER,"$BINARY_OWNER",
- [Define as the user who owns installed binaries. ])
-AC_SUBST(BINARY_OWNER)
-
-AC_ARG_WITH(rundump,
- [ --with-rundump use rundump (setuid-root) to invoke dump],
- [
- case "$withval" in
- n | no | y | ye | yes) FORCE_USE_RUNDUMP="$withval";;
- *) AC_MSG_ERROR([*** You must not supply an argument to --with-rundump option.]);;
- esac
- ]
-)
-
-AC_ARG_WITH(config,
- [ --with-config=CONFIG default configuration [[DailySet1]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-config option.])
- ;;
- *) DEFAULT_CONFIG="$withval"
- ;;
- esac
- ],
- : ${DEFAULT_CONFIG=DailySet1}
-)
-AC_DEFINE_UNQUOTED(DEFAULT_CONFIG,"$DEFAULT_CONFIG",
- [This is the default Amanda configuration. ])
-AC_SUBST(DEFAULT_CONFIG)
-
-AC_ARG_WITH(tape-server,
- [ --with-tape-server=HOST default restoring tape server is HOST [[same as --with-index-server]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-tape-server option.])
- ;;
- *) DEFAULT_TAPE_SERVER="$withval"
- ;;
- esac
- ],
- : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
-)
-AC_DEFINE_UNQUOTED(DEFAULT_TAPE_SERVER,"$DEFAULT_TAPE_SERVER",[This is the default restoring Amanda tape server. ])
-AC_SUBST(DEFAULT_TAPE_SERVER)
-
-AC_ARG_WITH(tape-device,
- [ --with-tape-device=ARG restoring tape server HOST's no rewinding tape drive],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-tape-device option.])
- ;;
- *) DEFAULT_TAPE_DEVICE="$withval"
- ;;
- esac
- ],
- [
- if test -z "$DEFAULT_TAPE_DEVICE"; then
- AC_MSG_CHECKING(for non-rewinding tape device)
- dnl Check for the /dev/rmt directory and use what's in there.
- dnl Otherwise look for tape devices in /dev. For the devices
- dnl in /dev/rmt, we want to use the Berkeley behavior of
- dnl reading the first record of the next tape file after 0
- dnl bytes are returned upon reading to the next tape mark,
- dnl instead of returning an error. Look for devices that have
- dnl a 'b' in their name.
- tape_dev=null:
- nr_tape_dev=null:
- if test -d /dev/rmt; then
-
- dnl See if we can find two devices, one being the norewind
- dnl version of the other. Devices in this directory are
- dnl normally a digit followed by some characters. We also
- dnl want the Berkely behavior, since Amanda needs it for
- dnl amrestore.
-
- for num in 9 8 7 6 5 4 3 2 1 0; do
- td=/dev/rmt/${num}b
- ntd=/dev/rmt/${num}bn
- if test -r $td -a -r $ntd; then
- tape_dev=$td
- nr_tape_dev=$ntd
- fi
- done
- else
- dnl Look for tape devices in /dev.
- for num in 9 8 7 6 5 4 3 2 1 0; do
- td=/dev/rst${num}
- ntd=/dev/nrst${num}
- if test -r $td -a -r $ntd; then
- tape_dev=$td
- nr_tape_dev=$ntd
- fi
- done
- fi
- DEFAULT_TAPE_DEVICE=$nr_tape_dev
- AC_MSG_RESULT($DEFAULT_TAPE_DEVICE)
- fi
- ]
-)
-
-if test -z "$DEFAULT_TAPE_DEVICE"; then
- DEFAULT_TAPE_DEVICE=/dev/null
-fi
-
-AC_DEFINE_UNQUOTED(DEFAULT_TAPE_DEVICE,"$DEFAULT_TAPE_DEVICE",[This is the default no-rewinding tape device. ])
-AC_SUBST(DEFAULT_TAPE_DEVICE)
-
-AC_ARG_WITH(ftape-raw-device,
- [ --with-ftape-rawdevice=ARG raw device on tape server HOST's if using Linux ftape >=3.04d],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-ftape-rawdevice option.])
- ;;
- *) DEFAULT_RAW_TAPE_DEVICE="$withval"
- ;;
- esac
- ],
- [
- if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
- AC_MSG_CHECKING(for raw ftape device)
- dnl Look for tape devices in /dev.
- raw_tape_dev=/dev/null
- dnl Look for tape devices in /dev.
- for num in 3 2 1 0 ; do
- td=/dev/rawft${num}
- if test -r $td; then
- raw_tape_dev=$td
- fi
- done
- DEFAULT_RAW_TAPE_DEVICE=$raw_tape_dev
- AC_MSG_RESULT($DEFAULT_RAW_TAPE_DEVICE)
- fi
- ]
-)
-
-if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
- DEFAULT_RAW_TAPE_DEVICE=/dev/null
-fi
-
-AC_DEFINE_UNQUOTED(DEFAULT_RAW_TAPE_DEVICE,"$DEFAULT_RAW_TAPE_DEVICE",[For Linux systems with floppy tapes:
- * QIC volume table support via raw tape device. ])
-AC_SUBST(DEFAULT_RAW_TAPE_DEVICE)
-
-AC_ARG_WITH(rew-tape,
- [ --with-rew-tape deprecated, use --with-tape-device],
- [ AC_MSG_ERROR([*** --with-rew-tape is deprecated, use --with-tape-device instead.])
- ],)
-
-AC_ARG_WITH(norew-tape,
- [ --with-norew-tape=ARG deprecated, use --with-tape-device],
- [ AC_MSG_ERROR([*** --with-norew-tape is deprecated, use --with-tape-device instead.])
- ],)
-
-AC_ARG_WITH(changer-device,
- [ --with-changer-device=ARG default tape changer device [[/dev/ch0 if it exists]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-changer-device option.])
- ;;
- *) DEFAULT_CHANGER_DEVICE="$withval"
- ;;
- esac
- ],
- [
- if test -z "$DEFAULT_CHANGER_DEVICE" &&
- test -f /dev/ch0; then
- DEFAULT_CHANGER_DEVICE=/dev/ch0
- fi
- ]
-)
-
-if test -z "$DEFAULT_CHANGER_DEVICE"; then
- DEFAULT_CHANGER_DEVICE=/dev/null
-fi
-
-AC_DEFINE_UNQUOTED(DEFAULT_CHANGER_DEVICE,"$DEFAULT_CHANGER_DEVICE",[This is the default changer device. ])
-AC_SUBST(DEFAULT_CHANGER_DEVICE)
-
-AC_ARG_WITH(fqdn,
- [ --with-fqdn use FQDN's to backup multiple networks],
- USE_FQDN=$withval,
- : ${USE_FQDN=no}
-)
-case "$USE_FQDN" in
-n | no) : ;;
-y | ye | yes) AC_DEFINE(USE_FQDN,1,[Define for backups being done on a multiple networks and FQDNs are used. ])
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument to --with-fqdn option.])
- ;;
-esac
-
-AC_ARG_WITH(broken-fsf,
- [ --with-broken-fsf only enable if tape fsf calls fail mid-file],
- HAVE_BROKEN_FSF=$withval,
- : ${HAVE_BROKEN_FSF=no}
-)
-case "$HAVE_BROKEN_FSF" in
-n | no) : ;;
-y | ye | yes) AC_DEFINE(HAVE_BROKEN_FSF,1,[Define this if issuing a fsf on a tape fails when you are not at a tape
- * mark, for instance, if amrecover gives I/O errors when skipping.
-])
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument to --with-broken-fsf option.])
- ;;
-esac
-
-AC_ARG_WITH(gnutar,
- [ --with-gnutar[[=PROG]] use PROG as GNU tar executable [[default: looks for one]]],
- [
- case "$withval" in
- /*) GNUTAR="$withval";;
- y|ye|yes) :;;
- n|no) GNUTAR=;;
- *) AC_MSG_ERROR([*** You must supply a full pathname to --with-gnutar]);;
- esac
- ]
-)
-
-AC_ARG_WITH(smbclient,
- [ --with-smbclient[[=PROG]] use PROG as Samba's smbclient executable [[default: looks for one]]],
- [
- case "$withval" in
- /*) SAMBA_CLIENT="$withval";;
- y|ye|yes) :;;
- n|no) SAMBA_CLIENT=;;
- *) AC_MSG_ERROR([*** You must supply a full pathname to --with-smbclient]);;
- esac
- ]
-)
-
-AC_ARG_WITH(samba-user,
- [ --with-samba-user was deprecated],
- [ AC_MSG_ERROR([*** The samba-user option was deprecated, the username go in the amandapass])
- ]
-)
-
-AC_ARG_WITH(gnutar-listdir,
- [ --with-gnutar-listdir=DIR gnutar directory lists go in DIR [[localstatedir/amanda/gnutar-lists]]],
- [
- case "$withval" in
- n | no) unset GNUTAR_LISTDIR ;;
- y | ye | yes) : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists} ;;
- /*) GNUTAR_LISTDIR="$withval" ;;
- *) AC_MSG_ERROR([*** You must supply a full pathname to --with-gnutar-listdir])
- esac
- ],
- : ${GNUTAR_LISTDIR="$localstatedir/amanda/gnutar-lists"}
-)
-if test "$GNUTAR_LISTDIR"; then
- GNUTAR_LISTDIR=`(
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- eval echo "$GNUTAR_LISTDIR"
- )`
- AC_DEFINE_UNQUOTED(GNUTAR_LISTED_INCREMENTAL_DIR,"$GNUTAR_LISTDIR",[The directory in which GNU tar should store directory lists for incrementals. ])
- GNUTAR_LISTED_INCREMENTAL_DIRX=$GNUTAR_LISTDIR
-else
- GNUTAR_LISTED_INCREMENTAL_DIRX=
-fi
-AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIRX)
-
-AC_ARG_WITH(gnutar-listed-incremental,
- [ --with-gnutar-listed-incremental was deprecated, use --with-gnutar-listdir],
- [ AC_MSG_ERROR([*** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead])
- ]
-)
-GNUTAR_LISTED_INCREMENTAL_DIR=$GNUTAR_LISTDIR
-AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIR)
-
-AC_ARG_WITH(bsd-security,
- [ --without-bsd-security do not use BSD rsh/rlogin style security],
- BSD_SECURITY=$withval,
- : ${BSD_SECURITY=yes}
-)
-case "$BSD_SECURITY" in
-n | no) : ;;
-y | ye | yes) AC_DEFINE(BSD_SECURITY,1,[Define to use BSD .rhosts/.amandahosts security. ])
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument to --with-bsd-security option.])
- ;;
-esac
-
-AC_ARG_WITH(amandahosts,
- [ --without-amandahosts use .rhosts instead of .amandahosts],
- USE_AMANDAHOSTS=$withval,
- : ${USE_AMANDAHOSTS=yes}
-)
-case "$USE_AMANDAHOSTS" in
-n | no) : ;;
-y | ye | yes) :
- case "$BSD_SECURITY" in
- y | ye | yes) AC_DEFINE(USE_AMANDAHOSTS,1,[Define if you want to use the .amandahosts for BSD security. ])
- ;;
- esac
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument to --with-amandahosts option.])
- ;;
-esac
-
-dnl Specify --with-dbmalloc if you desire dbmalloc to be linked in
-
-AC_ARG_WITH(dbmalloc,
- [ --with-dbmalloc=DIR Location of dbmalloc libs and headers],
- DBMALLOC="$withval",
- : ${DBMALLOC=no}
-)
-
-case "$DBMALLOC" in
-n | no)
- DBMALLOCCFLAGS=""
- DBMALLOCLIBS=""
- ;;
-*)
- DBMALLOCCFLAGS="-I$DBMALLOC -DUSE_DBMALLOC"
- DBMALLOCLIBS="-L$DBMALLOC -ldbmalloc"
- ;;
-esac
-
-dnl Specify --with-krb4-security if Kerberos software is in somewhere
-dnl other than the listed KRB4_SPOTS. We only compile kerberos support in
-dnl if the right files are there.
-
-: ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
-
-AC_ARG_WITH(krb4-security,
- [ --with-krb4-security=DIR Location of Kerberos software [[/usr/kerberos /usr/cygnus /usr /opt/kerberos]]],
- KRB4_SECURITY="$withval",
- : ${KRB4_SECURITY=no}
-)
-
-case "$KRB4_SECURITY" in
-n | no) KRB4_SECURITY=no ;;
-y | ye | yes) : ;;
-*) KRB4_SPOTS="$KRB4_SECURITY"
- KRB4_SECURITY=yes
- ;;
-esac
-
-AC_MSG_CHECKING(for Kerberos and Amanda kerberos4 bits)
-if test "x${KRB4_SECURITY}" = xyes -a -f ${srcdir-.}/common-src/krb4-security.c ; then
- for dir in $KRB4_SPOTS; do
- if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
- #
- # This is the original Kerberos 4.
- #
- AC_MSG_RESULT(found in $dir)
- KRB4_SECURITY=yes
- AC_DEFINE(KRB4_SECURITY, 1, [Enable Kerberos security. ])
- if test -d $dir/include/kerberosIV ; then
- #
- # This handles BSD/OS.
- #
- KRB4INCLUDES=-I$dir/include/kerberosIV
- else
- KRB4INCLUDES=-I$dir/include
- fi
- KRB4LDFLAGS=-L$dir/lib
- KRB4LIBS="-lkrb -ldes"
- if test -f ${dir}/lib/libcom_err.a; then
- KRB4LIBS="$KRB4LIBS -lcom_err"
- fi
- break
- elif test -f ${dir}/lib/libkrb4.a &&
- test -f ${dir}/lib/libcrypto.a &&
- test -f ${dir}/lib/libdes425.a ; then
- #
- # This is Kerberos 5 with Kerberos 4 back-support.
- #
- AC_MSG_RESULT(found in $dir)
- KRB4_SECURITY=yes
- AC_DEFINE(KRB4_SECURITY, 1, [Enable Kerberos security. ])
- KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
- KRB4LDFLAGS=-L$dir/lib
- if test -f ${dir}/lib/libkrb5.a &&
- test -f ${dir}/lib/libcom_err.a; then
- KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
- else
- KRB4LIBS="-lkrb4 -lcrypto -ldes425"
- fi
- break
- fi
- done
-
- if test "x$KRB4LDFLAGS" = "x" ; then
- AC_MSG_RESULT(no libraries found)
- fi
-else
- AC_MSG_RESULT(no)
-fi
-
-AC_ARG_WITH(rsh-security,
- [ --with-rsh-security use rsh as a transport],
- RSH_SECURITY=$withval,
- : ${RSH_SECURITY=yes}
-)
-case "$RSH_SECURITY" in
-n | no) : ;;
-y | ye | yes) AC_DEFINE(RSH_SECURITY,1,[Define if RSH transport should be enabled. ])
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument the to --with-rsh-security option.])
- ;;
-esac
-
-AC_ARG_WITH(ssh-security,
- [ --with-ssh-security use ssh as a transport],
- SSH_SECURITY=$withval,
- : ${SSH_SECURITY=no}
-)
-case "$SSH_SECURITY" in
-n | no) : ;;
-y | ye | yes) AC_DEFINE(SSH_SECURITY,1,[Define if SSH transport should be enabled. ])
- SSH_SECURITY_SET=true
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument the to --with-ssh-security option.])
- ;;
-esac
-
-AC_ARG_WITH(server-principal,
- [ --with-server-principal=ARG server host principal [["amanda"]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-server-principal option.])
- ;;
- *)
- SERVER_HOST_PRINCIPLE="$withval"
- ;;
- esac
- ],
- : ${SERVER_HOST_PRINCIPLE="amanda"}
-)
-AC_DEFINE_UNQUOTED(SERVER_HOST_PRINCIPLE,"$SERVER_HOST_PRINCIPLE",[The Kerberos server principle. ])
-
-AC_ARG_WITH(server-instance,
- [ --with-server-instance=ARG server host instance [["amanda"]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-server-instance option.])
- ;;
- *) SERVER_HOST_INSTANCE="$withval"
- ;;
- esac
- ],
- : ${SERVER_HOST_INSTANCE="amanda"}
-)
-AC_DEFINE_UNQUOTED(SERVER_HOST_INSTANCE,"$SERVER_HOST_INSTANCE",[The Kerberos server instance. ])
-
-AC_ARG_WITH(server-keyfile,
- [ --with-server-keyfile=ARG server host key file [["/.amanda"]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-server-keyfile option.])
- ;;
- *) SERVER_HOST_KEY_FILE="$withval"
- ;;
- esac
- ],
- : ${SERVER_HOST_KEY_FILE="/.amanda"}
-)
-AC_DEFINE_UNQUOTED(SERVER_HOST_KEY_FILE,"$SERVER_HOST_KEY_FILE",[The Kerberos server key file. ])
-
-AC_ARG_WITH(client-principal,
- [ --with-client-principal=ARG client host principal [["rcmd"]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-client-principal option.])
- ;;
- *) CLIENT_HOST_PRINCIPLE="$withval"
- ;;
- esac
- ],
- : ${CLIENT_HOST_PRINCIPLE="rcmd"}
-)
-AC_DEFINE_UNQUOTED(CLIENT_HOST_PRINCIPLE,"$CLIENT_HOST_PRINCIPLE",[The Kerberos client host principle. ])
-
-AC_ARG_WITH(client-instance,
- [ --with-client-instance=ARG client host instance [[HOSTNAME_INSTANCE]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-client-instance option.])
- ;;
- *) CLIENT_HOST_INSTANCE="$withval"
- ;;
- esac
- ],
- : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
-)
-AC_DEFINE_UNQUOTED(CLIENT_HOST_INSTANCE,$CLIENT_HOST_INSTANCE,[The Kerberos client host instance. ])
-
-AC_ARG_WITH(client-keyfile,
- [ --with-client-keyfile=ARG client host key file [[KEYFILE]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-client-keyfile option.])
- ;;
- *) CLIENT_HOST_KEY_FILE="$withval"
- ;;
- esac
- ],
- : ${CLIENT_HOST_KEY_FILE=KEYFILE}
-)
-
-# Assume it's either KEYFILE (defined in krb.h), or a string filename...
-if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
- CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
-fi
-
-AC_DEFINE_UNQUOTED(CLIENT_HOST_KEY_FILE,$CLIENT_HOST_KEY_FILE,[The Kerberos client host key file. ])
-
-AC_ARG_WITH(ticket-lifetime,
- [ --with-ticket-lifetime=ARG ticket lifetime [[128]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-ticket-lifetime option.])
- ;;
- *) TICKET_LIFETIME="$withval"
- ;;
- esac
- ],
- : ${TICKET_LIFETIME=128}
-)
-AC_DEFINE_UNQUOTED(TICKET_LIFETIME,$TICKET_LIFETIME,[The Kerberos ticket lifetime. ])
-
-dnl Specify --with-krb5-security if Kerberos software is in somewhere
-dnl other than the listed KRB5_SPOTS. We only compile kerberos support in
-dnl if the right files are there.
-
-: ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
-
-AC_ARG_WITH(krb5-security,
- [ --with-krb5-security=DIR Location of Kerberos V software [[/usr/kerberos /usr/cygnus /usr /opt/kerberos]]],
- KRB5_SECURITY="$withval",
- : ${KRB5_SECURITY=no}
-)
-
-case "$KRB5_SECURITY" in
-n | no) KRB5_SECURITY=no
- KRB5_SPOTS=""
- ;;
-y | ye | yes) : ;;
-*) KRB5_SPOTS="$KRB5_SECURITY"
- KRB5_SECURITY=yes
- ;;
-esac
-
-# if found, force the static versions of these libs (.a) by linking directly
-# with the .a files. I don't know how to get -R dependancies checked
-# in autoconf at this time. -kashmir
-AC_MSG_CHECKING(for Kerberos V)
-KRB5_DIR_FOUND=""
-KRB5_CFLAGS=""
-for dir in $KRB5_SPOTS; do
- k5libdir=${dir}/lib
- if test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libgssapi_krb5.a -a -f ${k5libdir}/libcom_err.a; then
- if test -f ${k5libdir}/libcrypto.a; then
- K5CRYPTO=${k5libdir}/libcrypto.a
- elif test -f ${k5libdir}/libk5crypto.a; then
- K5CRYPTO=${k5libdir}/libk5crypto.a
- else
- K5CRYPTO=""
- fi
- KRB5_DIR_FOUND=$dir
- KRB5LIBS="${k5libdir}/libgssapi_krb5.a ${k5libdir}/libkrb5.a $K5CRYPTO ${k5libdir}/libcom_err.a"
- KRB5CFLAGS=""
- break
- elif test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libasn1.a -a -f ${k5libdir}/libgssapi.a; then
- KRB5_DIR_FOUND=$dir
- KRB5LIBS="${k5libdir}/libgssapi.a ${k5libdir}/libkrb5.a ${k5libdir}/libasn1.a"
- KRB5_CFLAGS="-DKRB5_HEIMDAL_INCLUDES"
- break
- fi
-done
-
-if test "$KRB5_DIR_FOUND"; then
- AC_MSG_RESULT(found in $KRB5_DIR_FOUND)
- KRB5_SECURITY=yes
- AC_DEFINE(KRB5_SECURITY,1,[Define if Kerberos 5 security is to be enabled. ])
- #
- # some OS's, such as NetBSD, stick krb5 includes out of the way...
- # should probably just use autoconf to look for various include
- # options and set them, but don't quite want to do that until I've
- # dug into it a bit more.
- #
- if test -d "$KRB5_DIR_FOUND/krb5" ; then
- KRB5INCLUDES="-I$KRB5_DIR_FOUND/include/krb5"
- else
- KRB5INCLUDES="-I$KRB5_DIR_FOUND/include"
- fi
- if test "$KRB5_CFLAGS" ; then
- KRB5INCLUDES="$KRB5INCLUDES $KRB5_CFLAGS"
- fi
- KRB5LDFLAGS=-L$k5libdir
- break
-fi
-
-if test "x$KRB5LDFLAGS" = "x" ; then
- AC_MSG_RESULT(no krb5 system libraries found)
-fi
-
-
-AC_ARG_WITH(portrange,
- [ --with-portrange=low,high bind unreserved TCP server sockets to ports within this range [[unlimited]]],
- [
- TCPPORTRANGE="$withval"
- ]
-)
-AC_ARG_WITH(tcpportrange,
- [ --with-tcpportrange=low,high bind unreserved TCP server sockets to ports within this range [[unlimited]]],
- [
- TCPPORTRANGE="$withval"
- ]
-)
-if test x"${TCPPORTRANGE+set}" = x"set"; then
- if test x`echo "$TCPPORTRANGE" | sed 's/[[0-9]][[0-9]]*,[[0-9]][[0-9]]*//'` != x""; then
- AC_MSG_ERROR([*** --with-tcpportrange requires two comma-separated positive numbers])
- fi
- min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
- max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
- if test $min_tcp_port -gt $max_tcp_port; then
- AC_MSG_ERROR([*** the second TCP port number must be greater than the first in --with-tcpportrange])
- fi
- if test $min_tcp_port -lt 1024; then
- AC_MSG_WARN([*** the TCP port range should be 1024 or greater in --with-tcpportrange])
- fi
- if test $max_tcp_port -ge 65536; then
- AC_MSG_WARN([*** the TCP port range should be less than 65536 in --with-tcpportrange])
- fi
- AC_DEFINE_UNQUOTED(TCPPORTRANGE,$TCPPORTRANGE,[A comma-separated list of two integers, determining the minimum and
- maximum unreserved TCP port numbers sockets should be bound to. ])
-fi
-
-AC_ARG_WITH(udpportrange,
- [ --with-udpportrange=low,high bind reserved UDP server sockets to ports within this range [[unlimited]]],
- [
- UDPPORTRANGE="$withval"
- ]
-)
-if test x"${UDPPORTRANGE+set}" = x"set"; then
- if test x`echo "$UDPPORTRANGE" | sed 's/[[0-9]][[0-9]]*,[[0-9]][[0-9]]*//'` != x""; then
- AC_MSG_ERROR([*** --with-udpportrange requires two comma-separated positive numbers])
- fi
- min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
- max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
- if test $min_udp_port -gt $max_udp_port; then
- AC_MSG_ERROR([*** the second UDP port number must be greater than the first in --with-udpportrange])
- fi
- if test $max_udp_port -ge 1024; then
- AC_MSG_WARN([*** the UDP port range should be less than 1024 in --with-udpportrange])
- fi
- if test $min_udp_port -le 0; then
- AC_MSG_WARN([*** the UDP port range should be greater than 0 in --with-udpportrange])
- fi
- AC_DEFINE_UNQUOTED(UDPPORTRANGE,$UDPPORTRANGE,[A comma-separated list of two integers, determining the minimum and
- maximum reserved UDP port numbers sockets should be bound to. ])
-fi
-
-AC_ARG_WITH(maxtapeblocksize,
- [ --with-maxtapeblocksize=kb Maximum size of a tape block],
- [
- MAXTAPEBLOCKSIZE="$withval"
- ],
- : ${MAXTAPEBLOCKSIZE=32}
-)
-
-AC_DEFINE_UNQUOTED(MAX_TAPE_BLOCK_KB,($MAXTAPEBLOCKSIZE),[Maximum size of a tape block in KBytes.])
-AC_SUBST(MAXTAPEBLOCKSIZE)
-
-AC_ARG_WITH(db,
- [ --with-db={text,db,dbm,gdbm,ndbm} use the selected database format [[text]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-db option.])
- ;;
- *) DB_STYLE="$withval"
- ;;
- esac
- ]
-)
-if test "$DB_STYLE"; then
- case "$DB_STYLE" in
- db | dbm | gdbm | ndbm | text) ;;
- *)
- AC_MSG_ERROR([*** Unknown argument $DB_STYLE given to --with-db. Choose from db, dbm, gdbm, ndbm, text.])
- DB_STYLE=
- ;;
- esac
-fi
-
-AC_ARG_WITH(mmap,
- [ --with-mmap force use of mmap instead of shared memory support],
- FORCE_MMAP=$withval,
- : ${FORCE_MMAP=no}
-)
-case "$FORCE_MMAP" in
-y | ye | yes | n | no) : ;;
-*) AC_MSG_ERROR([*** You must not supply an argument to --with-mmap.])
- ;;
-esac
-
-AC_ARG_WITH(buffered-dump,
- [ --with-buffered-dump buffer the dumping sockets on the server for speed],
- DUMPER_SOCKET_BUFFERING=$withval,
- : ${DUMPER_SOCKET_BUFFERING=no}
-)
-case "$DUMPER_SOCKET_BUFFERING" in
-n | no) :
- ;;
-y | ye | yes) AC_DEFINE(DUMPER_SOCKET_BUFFERING,1,[Define if dumper should buffer the sockets for faster throughput. ])
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument to --with-buffered-dump.])
- ;;
-esac
-
-AC_ARG_WITH(assertions,
- [ --with-assertions compile assertions into code],
- ASSERTIONS="$withval",
- : ${ASSERTIONS=no}
-)
-case "$ASSERTIONS" in
-n | no) : ;;
-y | ye | yes) AC_DEFINE(ASSERTIONS,1,[Define if you want assertion checking. ])
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument to --with-assertions option.])
- ;;
-esac
-
-AC_ARG_WITH(tmpdir,
- [ --with-tmpdir[=/temp/dir] area Amanda can use for temp files [[/tmp/amanda]]],
- tmpdir="$withval",
- : ${tmpdir=yes}
-)
-tmpdir=`(
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
- eval echo "$tmpdir"
-)`
-case "$tmpdir" in
-n | no) AC_MSG_ERROR([*** --without-tmpdir is not allowed.]);;
-y | ye | yes)
- AMANDA_TMPDIR="/tmp/amanda";;
-/*)
- AMANDA_TMPDIR="$tmpdir";;
-*) AC_MSG_ERROR([*** You must supply a full pathname to --with-tmpdir option.]);;
-esac
-AC_DEFINE_UNQUOTED(AMANDA_TMPDIR,"$AMANDA_TMPDIR",[The directory in which Amanda should create temporary files. ])
-AC_SUBST(AMANDA_TMPDIR)
-
-AC_ARG_WITH(debugging,
- [ --with[[out]]-debugging[[=/debug/dir]] [[do not]] record runtime debugging information in specified directory [[--with-tmpdir]]],
- debugging="$withval",
- : ${debugging=yes}
-)
-debugging=`(
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
- eval echo "$debugging"
-)`
-case "$debugging" in
-n | no) AMANDA_DBGDIR="";;
-y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
-/*) AMANDA_DBGDIR="$debugging";;
-*) AC_MSG_ERROR([*** You must supply a full pathname to --with-debugging option.])
- ;;
-esac
-case "$AMANDA_DBGDIR" in
-"") :;;
-*) AC_DEFINE(DEBUG_CODE,1,[Define if you want debugging. ])
- AC_DEFINE_UNQUOTED(AMANDA_DBGDIR,"$AMANDA_DBGDIR",[Location of Amanda directories and files. ])
- AC_SUBST(AMANDA_DBGDIR);;
-esac
-
-AC_ARG_WITH(debug_days,
- [ --with-debug-days=NN number of days to keep debugging files [[default=4]]],
- debug_days="$withval",
- : ${debug_days=4}
-)
-case "$debug_days" in
-n | no) AMANDA_DEBUG_DAYS=0 ;;
-y | ye | yes) AMANDA_DEBUG_DAYS=4 ;;
-[[0-9]] | [[0-9]][[0-9]] | [[0-9]][[0-9]][[0-9]]) AMANDA_DEBUG_DAYS="$debug_days" ;;
-*) AC_MSG_ERROR([*** --with-debug-days value not numeric or out of range.])
- ;;
-esac
-AC_DEFINE_UNQUOTED(AMANDA_DEBUG_DAYS,$AMANDA_DEBUG_DAYS,[Number of days to keep debugging files. ])
-AC_SUBST(AMANDA_DEBUG_DAYS)
-
-AC_ARG_WITH(testing,
- [ --with-testing[[=suffix]] use alternate service names],
- TESTING="$withval",
- : ${TESTING=no}
-)
-case "$TESTING" in
-n | no) SERVICE_SUFFIX="";;
-y | ye | yes) SERVICE_SUFFIX="-test";;
-*) SERVICE_SUFFIX="-$TESTING";;
-esac
-AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
-KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
-AC_SUBST(SERVICE_SUFFIX)
-AC_DEFINE_UNQUOTED(SERVICE_SUFFIX, "$SERVICE_SUFFIX",[A suffix that will be appended to service names.
- * Useful for testing in parallel with a working version. ])
-AC_DEFINE_UNQUOTED(AMANDA_SERVICE_NAME, "$AMANDA_SERVICE_NAME", [The name for the Amanda service. ])
-AC_DEFINE_UNQUOTED(KAMANDA_SERVICE_NAME, "$KAMANDA_SERVICE_NAME", [The name for the Kerberized Amanda service. ])
-
-(
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- test "x$exec_prefix" = xNONE && exec_prefix=${prefix}