From 828b14d609dc04b30a47e12482f6e35200631179 Mon Sep 17 00:00:00 2001 From: hantianfeng Date: Wed, 21 Aug 2024 17:16:15 +0800 Subject: [PATCH] Remove useless code. --- config.m4 | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/config.m4 b/config.m4 index 94df913..7e5a8b9 100644 --- a/config.m4 +++ b/config.m4 @@ -55,15 +55,9 @@ if test "$PHP_PHPY" != "no"; then elif test "$PHP_PYTHON_VERSION" != "no"; then AC_MSG_RESULT([Python Version: ${PHP_PYTHON_VERSION}]) dnl modern version use python3-embed, old (<= 3.6) use python3 - if test "$PHP_PYTHON_VERSION" = "no"; then - PKG_CHECK_MODULES([PYTHON], [python3-embed],, - [PKG_CHECK_MODULES([PYTHON], [python3])] - ) - else - PKG_CHECK_MODULES([PYTHON], [python-${PHP_PYTHON_VERSION}-embed],, - [PKG_CHECK_MODULES([PYTHON], [python-${PHP_PYTHON_VERSION}])] - ) - fi + PKG_CHECK_MODULES([PYTHON], [python-${PHP_PYTHON_VERSION}-embed],, + [PKG_CHECK_MODULES([PYTHON], [python-${PHP_PYTHON_VERSION}])] + ) PHP_EVAL_LIBLINE($PYTHON_LIBS, PHPY_SHARED_LIBADD) PHP_EVAL_INCLINE($PYTHON_CFLAGS) else