From cdba9a3f4a52e9c0722e6a5b23b51196b7e53e34 Mon Sep 17 00:00:00 2001
From: caixiangyue <caixiangyue007@gmail.com>
Date: Wed, 17 Jun 2020 16:44:19 +0800
Subject: [PATCH] only use python3 in linux

---
 configure.ac | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 9c2159a..c293b69 100644
--- a/configure.ac
+++ b/configure.ac
@@ -98,7 +98,12 @@ PKG_CHECK_MODULES(JANSSON, [jansson >= $JANSSON_REQUIRED])
 AC_SUBST(JANSSON_CFLAGS)
 AC_SUBST(JANSSON_LIBS)
 
-AM_PATH_PYTHON([3.5])
+if test "$bwin32" = "true" -o "$bmac" = "yes"; then
+   AM_PATH_PYTHON([2.7])
+else
+   AM_PATH_PYTHON([3.5])
+fi
+
 if test "$bwin32" = true; then
    if test x$PYTHON_DIR != x; then
    # set pyexecdir to somewhere like /c/Python26/Lib/site-packages