summaryrefslogtreecommitdiff
path: root/ext/bcmath/config.m4
blob: 697dca4df59d80ccfa15934d29f9326b468c88d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
dnl $Id$

PHP_ARG_ENABLE(bcmath,whether to enable bc style precision math functions,
[  --enable-bcmath         Compile with bc style precision math functions.
                          Read README-BCMATH for instructions on how to
                          get this module installed. ])

if test "$PHP_BCMATH" != "no"; then
  AC_DEFINE(WITH_BCMATH, 1, [Whether you have bcmath])
  PHP_EXTENSION(bcmath, $ext_shared)
  if test ! -f $ext_srcdir/number.c || grep "Dummy File" $ext_srcdir/number.c >/dev/null; then
    AC_MSG_ERROR(You do not have the bcmath package. Please read the README.BCMATH file.)
  fi
fi

dnl ## Local Variables:
dnl ## tab-width: 4
dnl ## End: