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