]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: don't detect python version
authorJason Ish <jason.ish@oisf.net>
Tue, 8 Oct 2019 15:43:12 +0000 (09:43 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 10 Oct 2019 05:47:15 +0000 (07:47 +0200)
Don't detect the Python version, it is not needed anyways,
all we need is the Python path.

Also, python2 --version prints to stderr, while python3
prints to stdout, leading to some odd output during
./configure (but fixable).

configure.ac

index 31b550a1494a9f2e67b53c7fdadf19f4a713c66a..2405fed4976fad56eebb5707947a83f580a67c1c 100644 (file)
@@ -97,7 +97,6 @@
         exit 1
     fi
 
-    python_version="not set"
     python_path="not set"
 
     AC_ARG_ENABLE(python,
         AC_PATH_PROGS(HAVE_PYTHON, python3 python2.7 python2 python, "no")
         if test "$HAVE_PYTHON" = "no"; then
             echo
-            echo "   Warning! python not found, you will not be     "
-            echo "   able to install suricatasc unix socket client   "
+            echo "   Warning! Python not found."
+            echo
+            echo "   Python is required for additional tools like"
+            echo "   suricatasc, suricatactl and suricata-update."
+            echo "   It is also required when building from git."
             echo
             enable_python="no"
        else
            python_path="$HAVE_PYTHON"
-           python_version="$($HAVE_PYTHON --version)"
         fi
     fi
     AM_CONDITIONAL([HAVE_PYTHON], [test "x$enable_python" = "xyes"])
@@ -2589,7 +2590,6 @@ SURICATA_BUILD_CONF="Suricata Configuration:
 
   Python support:                          ${enable_python}
   Python path:                             ${python_path}
-  Python version:                          ${python_version}
   Python distutils                         ${have_python_distutils}
   Python yaml                              ${have_python_yaml}
   Install suricatactl:                     ${install_suricatactl}