mirror of
https://github.com/ttys3/php-bencode.git
synced 2020-06-03 17:07:06 +00:00
14 lines
542 B
Plaintext
14 lines
542 B
Plaintext
PHP_ARG_ENABLE(bencode,
|
|
[Whether to enable the "Bencode" extension],
|
|
[ --enable-bencode Enable "Bencode" extension support])
|
|
|
|
if test "$PHP_BENCODE" != "no"; then
|
|
AC_DEFINE(HAVE_BENCODE, 1, [Whether you have Bencode extension])
|
|
CFLAGS="-g -O3"
|
|
CXXFLAGS="-std=c++11 -g -O3"
|
|
PHP_REQUIRE_CXX()
|
|
PHP_SUBST(BENCODE_SHARED_LIBADD)
|
|
PHP_ADD_LIBRARY(stdc++, 1, BENCODE_SHARED_LIBADD)
|
|
PHP_NEW_EXTENSION(bencode, src/bencode.cc src/bitem.cc src/bdict.cc src/blist.cc src/bstr.cc src/bint.cc, $ext_shared)
|
|
fi
|