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)