diff options
author | michux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2009-05-11 19:41:37 +0000 |
---|---|---|
committer | michux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2009-05-11 19:41:37 +0000 |
commit | ccffe4802cbde0b25102763e17dba7f54e1c5bbc (patch) | |
tree | dc82b571ff57926bc00ee1a0f257da68e153ee01 /plugins.m4 | |
parent | ac822f3769e380ddab8b7f689be6b8fad77f3b23 (diff) | |
download | lcd4linux-ccffe4802cbde0b25102763e17dba7f54e1c5bbc.tar.gz |
add qnap log plugin, thanks to rolf tralow
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1033 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugins.m4')
-rw-r--r-- | plugins.m4 | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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" |