This repository has been archived on 2020-06-07. You can view files and clone it, but cannot push or open issues or pull requests.
php-armadillo/config.m4

28 lines
804 B
Plaintext
Raw Normal View History

2019-03-25 07:14:53 +00:00
PHP_ARG_ENABLE(arma, for armadillo support,
2019-02-05 13:31:16 +00:00
[ --enable-arma Enable armadillo support])
2019-03-25 07:14:53 +00:00
PHP_ARG_ENABLE(arma-operator, for operator overloading support in armadillo,
[ --enable-arma-operator Enable operator overloading for armadillo ], no, no)
2019-02-05 13:31:16 +00:00
if test "$PHP_ARMA" != "no"; then
PHP_REQUIRE_CXX()
2019-03-23 16:24:34 +00:00
2019-03-22 08:30:44 +00:00
ARMA_SRC=" \
src/php_arma.cc \
src/constants.cc \
2019-04-02 08:16:11 +00:00
src/base.cc \
2019-03-23 16:24:34 +00:00
src/complex.cc \
2019-03-25 07:14:53 +00:00
src/mapval.cc \
"
if test "$PHP_ARMA_OPERATOR" != "no"; then
AC_DEFINE(PHP_ARMA_OPERATOR, 1, [ Defined if operator overloading is enabled for armadillo. ])
ARMA_SRC+="src/operator.cc"
fi
2019-03-20 14:55:19 +00:00
PHP_NEW_EXTENSION(arma, $ARMA_SRC, $ext_shared, , -std=c++17)
2019-03-23 16:24:34 +00:00
PHP_ADD_LIBRARY(armadillo, 1, ARMA_SHARED_LIBADD)
PHP_SUBST(ARMA_SHARED_LIBADD)
2019-02-05 13:31:16 +00:00
fi