From 9d4b79c99dd3f356383a4a92e84e9b06e1decd77 Mon Sep 17 00:00:00 2001 From: reinelt Date: Wed, 1 Jun 2005 12:46:32 +0000 Subject: [lcd4linux @ 2005-06-01 12:46:31 by reinelt] --with-python added to configure git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@563 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- plugins.m4 | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'plugins.m4') diff --git a/plugins.m4 b/plugins.m4 index ce1393b..03959e2 100644 --- a/plugins.m4 +++ b/plugins.m4 @@ -64,7 +64,7 @@ for plugin in $plugins; do PLUGIN_POP3="yes" PLUGIN_PPP="yes" PLUGIN_PROC_STAT="yes" - PLUGIN_PYTHON="yes" + PLUGIN_PYTHON=$with_python PLUGIN_SETI="yes" PLUGIN_STATFS="yes" PLUGIN_UNAME="yes" @@ -231,13 +231,17 @@ if test "$PLUGIN_PROC_STAT" = "yes"; then AC_DEFINE(PLUGIN_PROC_STAT,1,[proc_stat plugin]) fi if test "$PLUGIN_PYTHON" = "yes"; then - if test -z "$python_path"; then - AC_MSG_WARN(python headers not found: python plugin disabled) + if test "$with_python" != "yes"; then + AC_MSG_WARN(python support not enabled: python plugin disabled (use --with-python to enable)) else - PLUGINS="$PLUGINS plugin_python.o" - CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" - PLUGINLIBS="$PLUGINLIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LIBS" - AC_DEFINE(PLUGIN_PYTHON,1,[python plugin]) + if test -z "$python_path"; then + AC_MSG_WARN(python headers not found: python plugin disabled) + else + PLUGINS="$PLUGINS plugin_python.o" + CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" + PLUGINLIBS="$PLUGINLIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LIBS" + AC_DEFINE(PLUGIN_PYTHON,1,[python plugin]) + fi fi fi if test "$PLUGIN_SETI" = "yes"; then -- cgit v1.2.3