]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: add --disable-python option
authorAndreas Herz <andi@geekosphere.org>
Sun, 31 Jan 2016 22:15:20 +0000 (23:15 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 8 Feb 2016 10:50:54 +0000 (11:50 +0100)
configure.ac

index f3d20a1f5f0ab70fdc3ee583772fb76dea7ed5f6..c5d8b8ea1e8428c2629591517bda86ab755bfcb4 100644 (file)
         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