]> saetta.ns0.it Git - solipa/libsolipa/commitdiff
Utilizzo di python3 se presente.
authorAndrea Zagli <azagli@libero.it>
Sat, 30 Jun 2018 14:00:58 +0000 (16:00 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 30 Jun 2018 14:00:58 +0000 (16:00 +0200)
configure.ac

index 512c6d2f7736b015666c5abd28be4d6e803b78e8..c5bef4d8e47052313ba11a79cc0809af37b73ae3 100644 (file)
@@ -91,7 +91,10 @@ PKG_CHECK_MODULES(CTPL, [ctpl])
 AC_SUBST(CTPL_CFLAGS)
 AC_SUBST(CTPL_LIBS)
 
-PKG_CHECK_MODULES(PYTHON, [python])
+PKG_CHECK_MODULES(PYTHON, [python-3.6], [python36_found=yes], [python36_found=no])
+if test x$python36_found = xno; then
+   PKG_CHECK_MODULES(PYTHON, [python])
+fi
 AC_SUBST(PYTHON_CFLAGS)
 AC_SUBST(PYTHON_LIBS)