]> saetta.ns0.it Git - solipa/libsolipa/commitdiff
Link with pyton 3.8 if present.
authorAndrea Zagli <azagli@libero.it>
Sat, 9 Nov 2019 08:18:15 +0000 (09:18 +0100)
committerAndrea Zagli <azagli@libero.it>
Sat, 9 Nov 2019 08:18:15 +0000 (09:18 +0100)
configure.ac

index 2e544c761b1ac2471688e3dcf1f16155945800fc..b7f8f6a3683071f5638735df8a0a6c200b764d1e 100644 (file)
@@ -91,12 +91,22 @@ PKG_CHECK_MODULES(CTPL, [ctpl])
 AC_SUBST(CTPL_CFLAGS)
 AC_SUBST(CTPL_LIBS)
 
-PKG_CHECK_MODULES(PYTHON, [python-3.7], [python37_found=yes], [python37_found=no])
-if test x$python37_found = xno; then
-   PKG_CHECK_MODULES(PYTHON, [python])
-   PYTHON_PKGCONFIG="python"
+PKG_CHECK_MODULES(PYTHON, [python3], [python3_found=yes], [python3_found=no])
+if test x$python3_found = xno; then
+   PKG_CHECK_MODULES(PYTHON, [python-3.8], [python38_found=yes], [python38_found=no])
+   if test x$python38_found = xno; then
+      PKG_CHECK_MODULES(PYTHON, [python-3.7], [python37_found=yes], [python37_found=no])
+      if test x$python37_found = xno; then
+         PKG_CHECK_MODULES(PYTHON, [python])
+         PYTHON_PKGCONFIG="python"
+      else
+         PYTHON_PKGCONFIG="python-3.7"
+      fi
+   else
+      PYTHON_PKGCONFIG="python-3.8"
+   fi
 else
-   PYTHON_PKGCONFIG="python-3.7"
+   PYTHON_PKGCONFIG="python3"
 fi
 AC_SUBST(PYTHON_CFLAGS)
 AC_SUBST(PYTHON_LIBS)