From: Andreas Herz Date: Sun, 31 Jan 2016 22:15:20 +0000 (+0100) Subject: configure: add --disable-python option X-Git-Tag: suricata-3.0.1RC1~170 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc1bd5b6bd15e24f57eef0dd6677cc49526a2897;p=thirdparty%2Fsuricata.git configure: add --disable-python option --- diff --git a/configure.ac b/configure.ac index f3d20a1f5f..c5d8b8ea1e 100644 --- a/configure.ac +++ b/configure.ac @@ -113,17 +113,24 @@ exit 1 fi + AC_ARG_ENABLE(python, + AS_HELP_STRING([--enable-python], [Enable python]),,[enable_python=yes]) AC_PATH_PROG(HAVE_PYTHON_CONFIG, python, "no") + if test "x$enable_python" = "xno" ; then + echo + echo " Warning! python disabled, you will not be " + echo " able to install surictasc unix socket client " + echo + enable_python="no" + fi if test "$HAVE_PYTHON_CONFIG" = "no"; then echo echo " Warning! python not found, you will not be " echo " able to install surictasc unix socket client " echo enable_python="no" - else - enable_python="yes" fi - AM_CONDITIONAL([HAVE_PYTHON], [test "$HAVE_PYTHON_CONFIG" != "no"]) + AM_CONDITIONAL([HAVE_PYTHON], [test "x$enable_python" = "xyes"]) AC_PATH_PROG(HAVE_WGET, wget, "no") if test "$HAVE_WGET" = "no"; then