]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/regress-config.in
Backport from BEE
[bacula/bacula] / regress / scripts / regress-config.in
1 #!/bin/sh
2 #
3 # This is the configuration script for regression testing
4 #
5
6 . ${1}/config
7 if test "x@db_password@" = "x"; then
8   PASSWD=
9 else
10   PASSWD="--with-db-password=@db_password@"
11 fi
12
13 if [ -z "${CFLAGS}" ]; then
14    CFLAGS="-g -O2 -Wall"
15    export CFLAGS
16 fi
17
18 ./configure \
19     --sbindir=${1}/bin \
20     --libdir=${1}/bin \
21     --sysconfdir=${1}/bin \
22     --mandir=${1}/bin \
23     --docdir=${1}/bin/html \
24     --htmldir=${1}/bin/html \
25     --with-pid-dir=${1}/working \
26     --with-subsys-dir=${1}/working \
27     --with-plugindir=${1}/bin/plugins \
28     --with-logdir=${1}/working \
29     --enable-smartalloc \
30     --enable-lockmgr \
31     --disable-readline \
32     --with-working-dir=${1}/working \
33     --with-archivedir=${1}/tmp \
34     --with-dump-email=${EMAIL} \
35     --with-job-email=${EMAIL} \
36     --with-smtp-host=${SMTP_HOST} \
37     --with-db-name=@db_name@ \
38     --with-db-user=@db_user@ \
39     ${PASSWD} \
40     ${OPENSSL} \
41     ${TCPWRAPPERS} \
42     ${WHICHDB} \
43     --with-baseport=${BASEPORT}
44
45 LD_LIBRARY_PATH=${1}/bin:${LD_LIBRARY_PATH}
46 export LD_LIBRARY_PATH
47
48 exit 0