[Lunar-commits] <moonbase> sqlite: Adjusting the CONFIGURE. The mquery works just fine here. While

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Sat Dec 11 14:42:29 CET 2010


commit 7344f04c073b1ca7f003d4d804bf17414e4b8901
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Sat Dec 11 08:42:29 2010 -0500

    sqlite: Adjusting the CONFIGURE. The mquery works just fine here. While
    
    fiddling around with the latest xulrunner, its configure barfed on sqlite
    not being compiled with secure delete. So you will want to `lin -rc sqlite`
    and say yes to that.
---
 sql/sqlite/BUILD     |    4 ++++
 sql/sqlite/CONFIGURE |   17 +++--------------
 2 files changed, 7 insertions(+), 14 deletions(-)

diff --git a/sql/sqlite/BUILD b/sql/sqlite/BUILD
index 9a7b05d..584fdd8 100644
--- a/sql/sqlite/BUILD
+++ b/sql/sqlite/BUILD
@@ -4,6 +4,10 @@
 
   LDFLAGS+=" -ldl" &&
 
+  if [ $USE_SEC_DEL == "y" ]; then
+    CFLAGS="-DSQLITE_SECURE_DELETE"
+  fi &&
+
   default_build  &&
   install -m 644 $SCRIPT_DIRECTORY/sqlite3.1 /usr/share/man/man1
 
diff --git a/sql/sqlite/CONFIGURE b/sql/sqlite/CONFIGURE
index dc835c0..d062ad0 100644
--- a/sql/sqlite/CONFIGURE
+++ b/sql/sqlite/CONFIGURE
@@ -1,14 +1,3 @@
-if  !  grep  -q  CONFIGURED  $MODULE_CONFIG; then
-
-#  if  query  "Support loadable extensions?" y; then
-#    OPTS="$OPTS --enable-dynamic-extensions"
-#  fi
-
-  if query "Support threadsafe operation?" y; then
-    OPTS="$OPTS --enable-threadsafe"
-  fi
-
-  echo  'CONFIGURED="y"'  >>  $MODULE_CONFIG
-  echo  'OPTS='\"$OPTS\"  >>  $MODULE_CONFIG
-
-fi
+mquery USE_THRED "Enable threadsafe operation?" y "--enable-threadsafe" "--disable-threadsafe"
+mquery USE_SEC_DEL "Enable secure delete operations? (Needed by xulrunner)" y
+mquery USE_EXTENT "Support loadable extensions?" y "--enable-dynamic-extensions" "--disable-dynamic-extensions"


More information about the Lunar-commits mailing list