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(-)
diff --git a/Makefile.am b/Makefile.am
index ee10095..adff96f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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) \
diff --git a/configure.ac b/configure.ac
index d2f921f..997ee9f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
--
1.6.3.3
Show replies by date