Skip to content

Commit 835cb69

Browse files
authored
Normalize bcmath extension sources (#14655)
Follow-up of GH-14654
1 parent f3feef8 commit 835cb69

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

ext/bcmath/config.m4

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,33 @@ PHP_ARG_ENABLE([bcmath],
44
[Enable bc style precision math functions])])
55

66
if test "$PHP_BCMATH" != "no"; then
7-
PHP_NEW_EXTENSION(bcmath, bcmath.c \
8-
libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/raisemod.c libbcmath/src/sub.c \
9-
libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/recmul.c \
10-
libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/doaddsub.c libbcmath/src/floor_or_ceil.c libbcmath/src/nearzero.c libbcmath/src/num2str.c \
11-
libbcmath/src/raise.c libbcmath/src/rmzero.c libbcmath/src/round.c libbcmath/src/str2num.c libbcmath/src/convert.c,
12-
$ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
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/init.c
17+
libbcmath/src/int2num.c
18+
libbcmath/src/nearzero.c
19+
libbcmath/src/neg.c
20+
libbcmath/src/num2long.c
21+
libbcmath/src/num2str.c
22+
libbcmath/src/raise.c
23+
libbcmath/src/raisemod.c
24+
libbcmath/src/recmul.c
25+
libbcmath/src/rmzero.c
26+
libbcmath/src/round.c
27+
libbcmath/src/sqrt.c
28+
libbcmath/src/str2num.c
29+
libbcmath/src/sub.c
30+
libbcmath/src/zero.c
31+
])],
32+
[$ext_shared],,
33+
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
1334
PHP_ADD_BUILD_DIR($ext_builddir/libbcmath/src)
1435
AC_DEFINE(HAVE_BCMATH, 1, [Whether you have bcmath])
1536
fi

0 commit comments

Comments
 (0)