From: Jason Ish Date: Tue, 8 Oct 2019 15:43:12 +0000 (-0600) Subject: configure: don't detect python version X-Git-Tag: suricata-5.0.0~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00ad7a911faffe5e82f1cb7902f36597e6650910;p=thirdparty%2Fsuricata.git configure: don't detect python version 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). --- diff --git a/configure.ac b/configure.ac index 31b550a149..2405fed497 100644 --- a/configure.ac +++ b/configure.ac @@ -97,7 +97,6 @@ exit 1 fi - python_version="not set" python_path="not set" AC_ARG_ENABLE(python, @@ -109,13 +108,15 @@ 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}