blob: 2c9e7a3916b3925ef856e35fd16c940c56ccc0df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
diff -up phpy-1.0.8/config.m4.old phpy-1.0.8/config.m4
--- phpy-1.0.8/config.m4.old 2024-09-06 06:58:54.678666785 +0200
+++ phpy-1.0.8/config.m4 2024-09-06 06:59:02.749976475 +0200
@@ -68,9 +68,12 @@ if test "$PHP_PHPY" != "no"; then
PHP_EVAL_LIBLINE($PYTHON_LIBS, PHPY_SHARED_LIBADD)
PHP_EVAL_INCLINE($PYTHON_CFLAGS)
else
- PHP_PYTHON_CONFIG="python3-config"
- GET_PYTHON_INCLUDES()
- GET_PYTHON_LDFLAGS()
+ dnl modern version use python3-embed, old (<= 3.6) use python3
+ PKG_CHECK_MODULES([PYTHON], [python3-embed],,
+ [PKG_CHECK_MODULES([PYTHON], [python3])]
+ )
+ PHP_EVAL_LIBLINE($PYTHON_LIBS, PHPY_SHARED_LIBADD)
+ PHP_EVAL_INCLINE($PYTHON_CFLAGS)
fi
PHP_REQUIRE_CXX()
|