]> saetta.ns0.it Git - solipa/libsolipa/commitdiff
Utilizzo del nuovo python3-embed pkgconfig file.
authorAndrea Zagli <azagli@libero.it>
Sun, 3 May 2020 06:46:02 +0000 (08:46 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 3 May 2020 06:46:02 +0000 (08:46 +0200)
configure.ac

index e34ebd1b2ea9b75a415a09c59bf2fca83c08f5b5..890790f6fd57f8c2c311841befd5b6efec7c2a44 100644 (file)
@@ -92,22 +92,27 @@ PKG_CHECK_MODULES(CTPL, [ctpl])
 AC_SUBST(CTPL_CFLAGS)
 AC_SUBST(CTPL_LIBS)
 
-PKG_CHECK_MODULES(PYTHON, [python3], [python3_found=yes], [python3_found=no])
+PKG_CHECK_MODULES(PYTHON, [python3-embed], [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
+  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="python3"
+  fi
 else
-   PYTHON_PKGCONFIG="python3"
+   PYTHON_PKGCONFIG="python3-embed"
 fi
 AC_SUBST(PYTHON_CFLAGS)
 AC_SUBST(PYTHON_LIBS)