From ba06237d4ad835a91a5ba67c7b4ac72e0020ce5b Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Wed, 20 Oct 2010 08:29:18 +0200 Subject: Fix ./configure to honour --sqlite3-path correctly The --sqlite3-path argument was silently ignored due to a misbehaviour in the check for database driver enablement. Moved over to proper bash scripting and used wildcards on the DB string which is intended to also contain more than just one database indicator. Signed-off-by: David Sommerseth --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 5197a65..22c0c38 100755 --- a/configure +++ b/configure @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Simple cmake wrapper script to make it behave more like autotools # @@ -228,7 +228,7 @@ if [ -z "${DB}" ]; then fi # Set default parameters for the SQLite3 database -if [ "${DB}" = "SQLite3" ]; then +if [[ ${DB} == *SQLite3* ]]; then PARAMS="${PARAMS} -DSQLITE3PREFIX:STIRNG=${SQLITE3PREFIX}" fi @@ -274,7 +274,7 @@ EOF echo " XSLT base path: ${XSLTPATH}" echo " eurephiadm XSLT path: ${EUREPHIADM_XSLT}" fi - if [ "${DB}" = "SQLite3" ]; then + if [[ ${DB} == *SQLite3* ]]; then echo " SQLite3 database path: ${SQLITE3PREFIX}" fi -- cgit