-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.m4
24 lines (21 loc) · 940 Bytes
/
config.m4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
dnl $Id$
dnl config.m4 for extension sofa-pbrpc
PHP_ARG_ENABLE(sofa_pbrpc, whether to enable sofa_pbrpc support,
[ --enable-sofa_pbprc enable sofa_pbrpc support])
if test "$PHP_SOFAPBRPC" != "no"; then
RPC_LIBNAME=sofa-pbrpc
RPCLIB_DIR=/usr/local/sofa-pbrpc
PROTOBUF_LIBNAME=protobuf
PROTOBUFLIB_DIR=/usr/local/protobuf
PHP_REQUIRE_CXX()
PHP_SUBST(SOFA_PBRPC_SHARED_LIBADD)
PHP_ADD_LIBRARY(stdc++, 1, SOFA_PBRPC_SHARED_LIBADD)
PHP_ADD_LIBRARY(sofa-pbrpc, 1, SOFA_PBRPC_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH($RPC_LIBNAME, $RPCLIB_DIR/output/lib)
PHP_ADD_INCLUDE($RPCLIB_DIR/output/include)
PHP_ADD_LIBRARY(protobuf, 1, SOFA_PBRPC_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH($PROTOBUF_LIBNAME, $PROTOBUFLIB_DIR/lib)
PHP_ADD_INCLUDE($PROTOBUFLIB_DIR/include)
PHP_NEW_EXTENSION(sofa_pbrpc, ext_rpc_service_stub.cc ext_rpc_service_stub_impl.cc, $ext_shared)
fi
PHP_C_BIGENDIAN()