]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/regress-config.in
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / scripts / regress-config.in
index a022ec1dfde24b94906f6b918a02ad8f66a2b9bd..6e9f6fb3d91b0bea5f5d103505118ac74531a943 100755 (executable)
@@ -1,8 +1,13 @@
 #!/bin/sh
 #
+# Copyright (C) 2000-2017 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
 # This is the configuration script for regression testing
 #
 
+set -e
+
 . ${1}/config
 if test "x@db_password@" = "x"; then
   PASSWD=
@@ -10,15 +15,22 @@ else
   PASSWD="--with-db-password=@db_password@"
 fi
 
-CFLAGS="-g -O2 -Wall" \
- ./configure \
+if [ -z "${CFLAGS}" ]; then
+   CFLAGS="-g -O2 -Wall"
+   export CFLAGS
+fi
+
+./configure \
     --sbindir=${1}/bin \
     --libdir=${1}/bin \
     --sysconfdir=${1}/bin \
     --mandir=${1}/bin \
+    --docdir=${1}/bin/html \
+    --htmldir=${1}/bin/html \
     --with-pid-dir=${1}/working \
     --with-subsys-dir=${1}/working \
     --with-plugindir=${1}/bin/plugins \
+    --with-logdir=${1}/working \
     --enable-smartalloc \
     --enable-lockmgr \
     --disable-readline \
@@ -33,6 +45,7 @@ CFLAGS="-g -O2 -Wall" \
     ${OPENSSL} \
     ${TCPWRAPPERS} \
     ${WHICHDB} \
+    ${CONFIGURE_EXTRA} \
     --with-baseport=${BASEPORT}
 
 LD_LIBRARY_PATH=${1}/bin:${LD_LIBRARY_PATH}