1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/Gxhua-php-cp

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
config.m4 1.8 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
郭新华 Отправлено 17.01.2017 08:48 d494528
dnl $Id$
dnl config.m4 for extension connect_pool
dnl Comments in this file start with the string 'dnl'.
dnl Remove where necessary. This file will not work
dnl without editing.
dnl If your extension references something external, use with:
PHP_ARG_WITH(connect_pool, for connect_pool support,
[ --with-connect_pool Include connect_pool support])
dnl Otherwise use enable:
dnl PHP_ARG_ENABLE(connect_pool, whether to enable connect_pool support,
dnl Make sure that the comment is aligned:
dnl [ --enable-connect_pool Enable connect_pool support])
if test "$PHP_CONNECT_POOL" != "no"; then
AC_MSG_CHECKING(PHP version)
AC_TRY_COMPILE([#include "$phpincludedir/main/php_version.h"], [
#if PHP_MAJOR_VERSION < 5
#error this extension requires at least PHP version 5 or newer
#endif
],
[AC_MSG_RESULT(ok)],
[AC_MSG_ERROR([need at least PHP 5 or newer])])
AC_MSG_CHECKING(ZTS)
AC_TRY_COMPILE([#include "$phpincludedir/main/php_config.h"], [
#ifdef ZTS
#error this extension requires no zts, please do not add ' --enable-maintainer-zts' when you configure php
#endif
],
[AC_MSG_RESULT(ok)],
[AC_MSG_ERROR([need php no zts, please do not add ' --enable-maintainer-zts' when you configure php])])
CFLAGS="-Wall -pthread $CFLAGS"
LDFLAGS="$LDFLAGS -lpthread"
PHP_NEW_EXTENSION(connect_pool, connect_pool.c cpServer.c cpWorker.c \
connect_pool_client.c \
cpFunction.c \
cpMemory.c \
cpNetWork.c \
cpClientNet.c \
cpPingWorker.c \
msgpack/msgpack.c \
msgpack/msgpack_pack.c\
msgpack/msgpack_unpack.c\
msgpack/msgpack_convert.c\
msgpack7/swoole_serialize.c\
, $ext_shared)
PHP_ADD_INCLUDE([$ext_srcdir/include])
fi

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/Gxhua-php-cp.git
git@api.gitlife.ru:oschina-mirror/Gxhua-php-cp.git
oschina-mirror
Gxhua-php-cp
Gxhua-php-cp
master