about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-10-05 13:48:21 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-10-09 09:38:47 +0200
commitf1b9bb49e1336cd16f063b756e222be2b064e08d (patch)
treeb9c927523d4f5ace1074b89f4243e0096cf31170
parent0211ab0e3082d88cc8b904d2669a5f500ca474f6 (diff)
downloadprofani-tty-f1b9bb49e1336cd16f063b756e222be2b064e08d.tar.gz
configure: check for python3-config
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index fa5838ed..2f92166e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,7 +82,8 @@ elif test "x$enable_python_plugins" != xno; then
         rm -f Python.framework
         ln -s $PYTHON_FRAMEWORK Python.framework ])
     AC_CHECK_PROG(PYTHON_CONFIG_EXISTS, python-config, yes, no)
-    if test "$PYTHON_CONFIG_EXISTS" = "yes"; then
+    AC_CHECK_PROG(PYTHON3_CONFIG_EXISTS, python3-config, yes, no)
+    if test "$PYTHON_CONFIG_EXISTS" = "yes" || test "$PYTHON3_CONFIG_EXISTS" = "yes"; then
         AX_PYTHON_DEVEL
         AM_CONDITIONAL([BUILD_PYTHON_API], [true])
         AC_DEFINE([HAVE_PYTHON], [1], [Python support])