From e94c92f1d06d713baecbf5230a0f30b371c4b3c9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 6 Sep 2024 07:17:30 +0200 Subject: update to 1.0.8 drop patches merged upstream add patch to use pkg-config by default --- config.m4 | 60 ------------------------------------------------------------ 1 file changed, 60 deletions(-) delete mode 100644 config.m4 (limited to 'config.m4') diff --git a/config.m4 b/config.m4 deleted file mode 100644 index f10fc79..0000000 --- a/config.m4 +++ /dev/null @@ -1,60 +0,0 @@ -dnl $Id$ -dnl config.m4 for extension phpy - -PHP_ARG_WITH([python_version], - [version of python], - [AS_HELP_STRING([[--with-python-version[=VERSION]]], - [Specify version of python, or use default (ex: 3.12)])], [no], [no]) - -PHP_ARG_ENABLE([phpy], - [whether to enable phpy support], - [AS_HELP_STRING([--enable-phpy], - [Enable phpy support])], - [no]) - -if test "$PHP_PHPY" != "no"; then - 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 - PHP_EVAL_LIBLINE($PYTHON_LIBS, PHPY_SHARED_LIBADD) - PHP_EVAL_INCLINE($PYTHON_CFLAGS) - - PHP_REQUIRE_CXX() - - PHP_SUBST(PHPY_SHARED_LIBADD) - - AC_DEFINE(HAVE_PHPY, 1, [ Have phpy support ]) - - EXTRAS_CXXFLAGS="-Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -z now" - EXTRAS_CXXFLAGS="$EXTRAS_CXXFLAGS -std=c++14" - - if test -f "$abs_srcdir/phpy.cc"; then - phpy_source_dir=$abs_srcdir - elif test -f "phpy.cc"; then - phpy_source_dir=$(pwd) - else - phpy_source_dir="ext/phpy" - fi - - dnl AC_MSG_RESULT([$phpy_source_dir]) - - phpy_source_files=$(cd $phpy_source_dir && find src -type f -name "*.cc") - phpy_source_files="phpy.cc $phpy_source_files" - - PHP_NEW_EXTENSION(phpy, $phpy_source_files , $ext_shared,, $EXTRAS_CXXFLAGS, cxx) - - dnl AC_MSG_RESULT([$ext_builddir]) - - PHP_ADD_INCLUDE([$ext_srcdir/include]) - PHP_ADD_BUILD_DIR($ext_builddir/src) - PHP_ADD_BUILD_DIR($ext_builddir/src/bridge) - PHP_ADD_BUILD_DIR($ext_builddir/src/php) - PHP_ADD_BUILD_DIR($ext_builddir/src/python) -fi -- cgit