]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
When --with-python is given to configure, use default search list for python binaries...
authorOndřej Surý <ondrej@sury.org>
Tue, 18 Dec 2018 14:05:52 +0000 (15:05 +0100)
committerMichał Kępień <michal@isc.org>
Fri, 18 Jan 2019 14:14:43 +0000 (15:14 +0100)
(cherry picked from commit 3951cb053b4d451fdb0580294fb78bc792b828da)

configure
configure.ac

index 5b2e2f867e4f6449f6cbeed2a6ac872b2653f00e..5bdcd3dcca2cf52b0e3afa5efe9e01127c65fad5 100755 (executable)
--- a/configure
+++ b/configure
@@ -12497,12 +12497,14 @@ except: exit(1)'
 testply='try: import ply
 except: exit(1)'
 
+default_with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
+
 
 # Check whether --with-python was given.
 if test "${with_python+set}" = set; then :
   withval=$with_python;
 else
-  with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
+  with_python=$default_with_python
 fi
 
 
@@ -12514,6 +12516,10 @@ else
 fi
 
 
+if test "$with_python" = "yes"; then :
+  with_python=$default_with_python
+fi
+
 if test "$with_python" = "no"; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
 $as_echo_n "checking for Python support... " >&6; }
index 5bb5c85fca83dfd56942de7fb6bf4663eb6785db..754c9244f27ab062bc638d699a6ab67b6706707a 100644 (file)
@@ -250,15 +250,20 @@ except: exit(1)'
 testply='try: import ply
 except: exit(1)'
 
+default_with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
+
 AC_ARG_WITH([python],
            AS_HELP_STRING([--with-python=PATH],
                           [specify path to Python interpreter]),
-           [], [with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"])
+           [], [with_python=$default_with_python])
 AC_ARG_WITH([python-install-dir],
            AS_HELP_STRING([--with-python-install-dir=PATH],
                           [installation directory for Python modules]),
            [], with_python_install_dir="")
 
+AS_IF([test "$with_python" = "yes"],
+      [with_python=$default_with_python])
+
 AS_IF([test "$with_python" = "no"],
       [AC_MSG_CHECKING([for Python support])
        AC_MSG_RESULT([disabled])],