aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonrad Scherer <Konrad.Scherer@windriver.com>2010-07-30 13:05:16 -0400
committerKonrad Scherer <Konrad.Scherer@windriver.com>2010-07-30 13:18:39 -0400
commit51591a9413959ca2dda5966f5402d431adc3fb50 (patch)
treea64771f7854b07780e9f48c51c87b94e1f8cf10b
parent73f6a3b712874916d6552717bfe7a077bca456cf (diff)
downloadpseudo-51591a9413959ca2dda5966f5402d431adc3fb50.tar.gz
pseudo-51591a9413959ca2dda5966f5402d431adc3fb50.tar.bz2
pseudo-51591a9413959ca2dda5966f5402d431adc3fb50.zip
Configure script now checks for sqlite3 version.
CQ: WIND000225366 Pseudo requires functionality in sqlite3 only available in version 3.6.x. The configure script now checks if sqlite headers are installed and checks that the version is at least 3.6.x.
-rwxr-xr-xconfigure16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure b/configure
index 20eaccb..08e2283 100755
--- a/configure
+++ b/configure
@@ -62,6 +62,22 @@ if [ -z "$opt_prefix" ]; then
usage
fi
+if [ ! -f "${opt_sqlite}/include/sqlite3.h" ]; then
+ echo >&2 "SQLite3 headers not found in at ${opt_sqlite}/include/sqlite3.h. Please check that SQLite3 and SQLite3 headers are installed."
+ exit 1
+fi
+
+read t1 t2 SQLITE3_VERSION << EOF
+ `grep "#define SQLITE_VERSION_NUMBER " ${opt_sqlite}/include/sqlite3.h`
+EOF
+
+echo "SQLite header for version ${SQLITE3_VERSION} found."
+
+if [ "${SQLITE3_VERSION}" -lt "03006000" ]; then
+ echo >&2 "Pseudo requires SQLite version 3, 3.6.x or later."
+ exit 1
+fi
+
sed -e '
s,@PREFIX@,'"$opt_prefix"',g
s,@SUFFIX@,'"$opt_suffix"',g