diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2010-10-20 08:29:18 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-10-20 08:29:18 +0200 |
commit | ba06237d4ad835a91a5ba67c7b4ac72e0020ce5b (patch) | |
tree | b1402f47ad80f07cb2a9416d5fabd9e3d96f0fb3 | |
parent | 43bb861707b33e527bba3a77381d10eebcf086fa (diff) | |
download | eurephia-ba06237d4ad835a91a5ba67c7b4ac72e0020ce5b.tar.gz eurephia-ba06237d4ad835a91a5ba67c7b4ac72e0020ce5b.tar.xz eurephia-ba06237d4ad835a91a5ba67c7b4ac72e0020ce5b.zip |
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 <dazo@users.sourceforge.net>
-rwxr-xr-x | configure | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |