cvs: /php4/ext/bcmath Makefile.in config.m4
| From: | Sascha Schumann | Date: | Tue, 02 May 2000 21:35:08 +0000 |
| Subject: | cvs: /php4/ext/bcmath Makefile.in config.m4 | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-14388@lists.php.net to get a copy of this message | ||
sas Tue May 2 14:35:08 2000 EDT
Modified files:
/php4/ext/bcmath Makefile.in config.m4
Log:
Make bcmath buildable as shared module
Index: php4/ext/bcmath/Makefile.in
diff -u php4/ext/bcmath/Makefile.in:1.8 php4/ext/bcmath/Makefile.in:1.9
--- php4/ext/bcmath/Makefile.in:1.8 Mon May 1 15:35:17 2000
+++ php4/ext/bcmath/Makefile.in Tue May 2 14:35:08 2000
@@ -1,5 +1,6 @@
LTLIBRARY_NAME = libbcmath.la
LTLIBRARY_SOURCES = bcmath.c number.c
+LTLIBRARY_SHARED_NAME = bcmath.la
include $(top_srcdir)/build/dynlib.mk
Index: php4/ext/bcmath/config.m4
diff -u php4/ext/bcmath/config.m4:1.7 php4/ext/bcmath/config.m4:1.8
--- php4/ext/bcmath/config.m4:1.7 Sun Apr 30 21:02:43 2000
+++ php4/ext/bcmath/config.m4 Tue May 2 14:35:08 2000
@@ -1,30 +1,17 @@
-dnl $Id: config.m4,v 1.7 2000/05/01 04:02:43 joey Exp $
+dnl $Id: config.m4,v 1.8 2000/05/02 21:35:08 sas Exp $
-AC_MSG_CHECKING(whether to enable bc style precision math functions)
-AC_ARG_ENABLE(bcmath,
+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 "$enableval" = "yes"; then
- 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 file.)
- fi
- else
- AC_MSG_ERROR(You do not have the bcmath package. Please read the README-BCMATH file.)
- fi
- else
- AC_DEFINE(WITH_BCMATH, 0,[ ])
- AC_MSG_RESULT(no)
+ 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
-],[
- AC_DEFINE(WITH_BCMATH, 0,[ ])
- AC_MSG_RESULT(no)
-])
+fi
dnl ## Local Variables:
dnl ## tab-width: 4