xref: /PHP-8.4/ext/bcmath/config.m4 (revision fad899e5)
1PHP_ARG_ENABLE([bcmath],
2  [whether to enable bc style precision math functions],
3  [AS_HELP_STRING([--enable-bcmath],
4    [Enable bc style precision math functions])])
5
6if test "$PHP_BCMATH" != "no"; then
7  PHP_NEW_EXTENSION([bcmath], m4_normalize([
8      bcmath.c
9      libbcmath/src/add.c
10      libbcmath/src/compare.c
11      libbcmath/src/convert.c
12      libbcmath/src/div.c
13      libbcmath/src/divmod.c
14      libbcmath/src/doaddsub.c
15      libbcmath/src/floor_or_ceil.c
16      libbcmath/src/long2num.c
17      libbcmath/src/init.c
18      libbcmath/src/int2num.c
19      libbcmath/src/nearzero.c
20      libbcmath/src/neg.c
21      libbcmath/src/num2long.c
22      libbcmath/src/num2str.c
23      libbcmath/src/raise.c
24      libbcmath/src/raisemod.c
25      libbcmath/src/recmul.c
26      libbcmath/src/rmzero.c
27      libbcmath/src/round.c
28      libbcmath/src/sqrt.c
29      libbcmath/src/str2num.c
30      libbcmath/src/sub.c
31      libbcmath/src/zero.c
32    ]),
33    [$ext_shared],,
34    [-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
35  PHP_ADD_BUILD_DIR([$ext_builddir/libbcmath/src])
36  AC_DEFINE([HAVE_BCMATH], [1],
37    [Define to 1 if the PHP extension 'bcmath' is available.])
38fi
39