diff options
Diffstat (limited to '')
-rwxr-xr-x | external/unbound/configure | 3 | ||||
-rw-r--r-- | external/unbound/configure.ac | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/external/unbound/configure b/external/unbound/configure index 425466ebd..630d6e450 100755 --- a/external/unbound/configure +++ b/external/unbound/configure @@ -677,6 +677,7 @@ WITH_PYTHONMODULE swig SWIG_LIB SWIG +PY_MAJOR_VERSION PYTHON_SITE_PKG PYTHON_LDFLAGS PYTHON_CPPFLAGS @@ -16100,6 +16101,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5 fi + PY_MAJOR_VERSION="`$PYTHON -c "import sys; print(sys.version_info.major)"`" + # Have Python $as_echo "#define HAVE_PYTHON 1" >>confdefs.h diff --git a/external/unbound/configure.ac b/external/unbound/configure.ac index 602813834..de809afdd 100644 --- a/external/unbound/configure.ac +++ b/external/unbound/configure.ac @@ -475,6 +475,8 @@ if test x_$ub_test_python != x_no; then AC_ERROR([Python version >= 2.4.0 is required]) fi + PY_MAJOR_VERSION="`$PYTHON -c "import sys; print(sys.version_info.major)"`" + AC_SUBST(PY_MAJOR_VERSION) # Have Python AC_DEFINE(HAVE_PYTHON,1,[Define if you have Python libraries and header files.]) LIBS="$PYTHON_LDFLAGS $LIBS" |