Skip to contentSkip to conversation

Added rules to disable SQLite history plugin

PATCH In review Dario 1 participant 1 message Apr 4, 2010 Kbuild

lore
Share & tools
lore

Dario

author
#0 lore raw

PATCH 1/2 Added rules to disable SQLite history plugin

Hi all,
as promised here are the 2 patches to add the SQLite history plugin. Thanks for your kind support,
best regards,
Dario

---
 Makefile.am  |   10 ++++++++++
 configure.ac |    9 +++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
Makefile.am +10 -0
index ee10095..adff96f 100644
@@ -222,6 +222,16 @@ builtin_modules += example_history
 builtin_sources += plugins/example_history.c
 endif
 
+if SQLITEHISTORY
+builtin_modules += sqlite_history
+builtin_sources += plugins/sqlite_history.c
+builtin_cflags += @SQLITE3_CFLAGS@
+builtin_libadd += @SQLITE3_LIBS@
+
+sqlitescriptsdir = $(localstatedir)/lib/ofono
+sqlitescripts_DATA = plugins/*.sql
+endif
+
 sbin_PROGRAMS = src/ofonod
 
 src_ofonod_SOURCES = $(gdbus_sources) $(builtin_sources) \
configure.ac +0 -0
index d2f921f..997ee9f 100644
@@ -151,6 +151,15 @@ AC_ARG_ENABLE(datafiles, 

AC_HELP_STRING([--disable-datafiles],

AM_CONDITIONAL(DATAFILES, test "${enable_datafiles}" != "no")

+AC_ARG_ENABLE(sqlitehistory, AC_HELP_STRING([--disable-sqlitehistory],
+ [don't install sqlite history plugin]),
+ [enable_sqlitehistory=${enableval}])
+
+AM_CONDITIONAL(SQLITEHISTORY, test "${enable_sqlitehistory}" != "no") +if (test "${enable_sqlitehistory}" != "no"); then
+ PKG_CHECK_MODULES(SQLITE3, sqlite3)
+fi
+
if (test "${prefix}" = "NONE"); then
dnl no prefix and no localstatedir, so default to /var if (test "$localstatedir" = '${prefix}/var'); then

Signature · 1 line
1.6.3.3