]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/regress-config
3a59c515652085128cc1c9b09c8fef09a134dbca
[bacula/bacula] / regress / scripts / regress-config
1 #!/bin/sh
2 #
3 # This is the configuration script for regression testing
4 #
5
6 . ${1}/config
7 if test "x" = "x"; then
8   PASSWD=
9 else
10   PASSWD="--with-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-logdir=${1}/working \
26     --with-bsrdir=${1}/working \
27     --with-pid-dir=${1}/working \
28     --with-subsys-dir=${1}/working \
29     --with-plugindir=${1}/bin/plugins \
30     --enable-smartalloc \
31     --enable-lockmgr \
32     --disable-readline \
33     --with-working-dir=${1}/working \
34     --with-archivedir=${1}/tmp \
35     --with-dump-email=${EMAIL} \
36     --with-job-email=${EMAIL} \
37     --with-smtp-host=${SMTP_HOST} \
38     --with-db-name=regress \
39     --with-db-user=regress \
40     ${PASSWD} \
41     ${OPENSSL} \
42     ${TCPWRAPPERS} \
43     ${WHICHDB} \
44     --with-baseport=${BASEPORT}
45
46 LD_LIBRARY_PATH=${1}/bin:${LD_LIBRARY_PATH}
47 export LD_LIBRARY_PATH
48
49 exit 0