From ccffe4802cbde0b25102763e17dba7f54e1c5bbc Mon Sep 17 00:00:00 2001 From: michux Date: Mon, 11 May 2009 19:41:37 +0000 Subject: add qnap log plugin, thanks to rolf tralow git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1033 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- plugins.m4 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'plugins.m4') diff --git a/plugins.m4 b/plugins.m4 index 04a02db..240d4f4 100644 --- a/plugins.m4 +++ b/plugins.m4 @@ -86,6 +86,7 @@ for plugin in $plugins; do PLUGIN_PPP="yes" PLUGIN_PROC_STAT="yes" PLUGIN_PYTHON=$with_python + PLUGIN_QNAPLOG="yes" PLUGIN_SAMPLE="yes" PLUGIN_SETI="yes" PLUGIN_STATFS="yes" @@ -176,6 +177,9 @@ for plugin in $plugins; do python) PLUGIN_PYTHON=$val ;; + qnaplog) + PLUGIN_QNAPLOG=$val + ;; sample) PLUGIN_SAMPLE=$val ;; @@ -455,6 +459,23 @@ if test "$PLUGIN_PYTHON" = "yes"; then fi fi +# Qnaplog +if test "$PLUGIN_QNAPLOG" = "yes"; then + AC_CHECK_HEADERS(sqlite3.h, [has_sqlite3_header="true"], [has_sqlite3_header="false"]) + if test "$has_sqlite3_header" = "true"; then + AC_CHECK_LIB(sqlite3, sqlite3_initialize, [has_sqlite3_lib="true"], [has_sqlite3_lib="false"]) + if test "$has_sqlite3_lib" = "true"; then + PLUGINS="$PLUGINS plugin_qnaplog.o" + PLUGINLIBS="$PLUGINLIBS -lsqlite3" + AC_DEFINE(PLUGIN_QNAPLOG,1,[qnaplog plugin]) + else + AC_MSG_WARN(sqlite3 lib not found: qnaplog plugin disabled) + fi + else + AC_MSG_WARN(sqlite3.h header not found: qnaplog plugin disabled) + fi +fi + # sample if test "$PLUGIN_SAMPLE" = "yes"; then PLUGINS="$PLUGINS plugin_sample.o" -- cgit v1.2.3