From c07dcd1b8d6144d8a280339749605adbe7e9364f Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Mon, 1 May 2000 03:59:55 +0000 Subject: [PATCH] There was already a perfectly good README-BCMATH, I just found the different naming confusing. --- README.bcmath | 6 ------ ext/bcmath/config.m4 | 11 +++++++++++ 2 files changed, 11 insertions(+), 6 deletions(-) delete mode 100644 README.bcmath diff --git a/README.bcmath b/README.bcmath deleted file mode 100644 index eb8735699a6..00000000000 --- a/README.bcmath +++ /dev/null @@ -1,6 +0,0 @@ -NOTE: If you are going to build with --enable-bcmath, you must download -http://www.php.net/version4/do_download.php?download_file=number.tar.gz -and unpack it in the top php4 directory. - -PHP no longer ships the bcmath files with the distribution because of -licensing restrictions. diff --git a/ext/bcmath/config.m4 b/ext/bcmath/config.m4 index 2f1a93dbcf7..b9d3291da27 100644 --- a/ext/bcmath/config.m4 +++ b/ext/bcmath/config.m4 @@ -10,6 +10,13 @@ AC_ARG_ENABLE(bcmath, AC_DEFINE(WITH_BCMATH, 1, [Whether you have bcmath]) AC_MSG_RESULT(yes) PHP_EXTENSION(bcmath) + if test -f $srcdir/ext/bcmath/number.c; then + if grep "Dummy File" $srcdir/ext/bcmath/number.c >/dev/null; then + AC_MSG_ERROR(You do not have the bcmath package. Please read the README-BCMATH.) + fi + else + AC_MSG_ERROR(You do not have the bcmath package. Please read the README-BCMATH.) + fi else AC_DEFINE(WITH_BCMATH, 0,[ ]) AC_MSG_RESULT(no) @@ -18,3 +25,7 @@ AC_ARG_ENABLE(bcmath, AC_DEFINE(WITH_BCMATH, 0,[ ]) AC_MSG_RESULT(no) ]) + +dnl ## Local Variables: +dnl ## tab-width: 4 +dnl ## End: