郭新华 php,config.m4

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

一键复制

编辑

Web IDE

原始数据

按行查看

历史

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值