summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-07-17 10:59:22 +0000
committerZeev Suraski <zeev@php.net>1999-07-17 10:59:22 +0000
commita6dc6b88d2d0633f01b9d3a266febe65625c38e7 (patch)
tree3778bb225adea176a33f721939d64a72bff5f49e
parent3b142d5a3df7f6c26086cb71b9bbcf7f8364f591 (diff)
downloadphp-git-a6dc6b88d2d0633f01b9d3a266febe65625c38e7.tar.gz
Handle BCMath
Add a license pointer
-rw-r--r--README-BCMATH17
-rw-r--r--configure.in.in28
2 files changed, 40 insertions, 5 deletions
diff --git a/README-BCMATH b/README-BCMATH
new file mode 100644
index 0000000000..7d5bac19a6
--- /dev/null
+++ b/README-BCMATH
@@ -0,0 +1,17 @@
+How to install PHP with the BCMath arbitrary precision math library?
+--------------------------------------------------------------------
+
+Due to license restrictions, the BC math library can no longer be distributed
+along with PHP. The BC math library is distributed under the restrictive
+GNU Public License, and PHP is no longer distributed under that license, but
+under a less restrictive license, the PHP License.
+
+If you want to enable BC math support (recommended), all you have to do is
+simply download http://www.php.net/extra/number4.tar.gz, and untar it on the
+top level php4 directory.
+
+A typical way of doing this would be (assuming that you have lynx):
+cd ~/php4
+lynx -dump -source http://www.php.net/extra/number4.tar.gz | gzip -d | tar xvf -
+
+The PHP Group
diff --git a/configure.in.in b/configure.in.in
index cf4ecf8301..dbe558a17f 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -930,6 +930,13 @@ AC_OUTPUT(Makefile libphp4.module
@@EXT_MAKEFILES@@ build-defs.h, [
], [
+if test ! -f $srcdir/ext/bcmath/number.c; then
+ echo "creating number.c"
+ echo "/* Dummy File */" > $srcdir/ext/bcmath/number.c
+ echo "creating number.h"
+ echo "/* Dummy File */" > $srcdir/ext/bcmath/number.h
+fi
+
chmod +x scripts/mkextlib
# Hacking while airborne considered harmful.
#
@@ -949,15 +956,26 @@ dnl Warn about CGI version with no extra security options.
if test "$BINNAME" = "php"; then
if test "$REDIRECT" = "0"; then
if test "$DISCARD_PATH" = "0"; then
- echo "WARNING: You will be compiling the CGI version of PHP without any"
- echo " redirection checking. By putting this cgi binary somewhere"
- echo " in your web space, users may be able to circumvent existing .htaccess"
- echo " security by loading files directly through the parser. See"
- echo " http://www.php.net/manual/config-security.php3 for more details."
+ echo "+--------------------------------------------------------------------+"
+ echo "| Warning: |"
+ echo "| You will be compiling the CGI version of PHP without any |"
+ echo "| redirection checking. By putting this cgi binary somewhere in |"
+ echo "| your web space, users may be able to circumvent existing .htaccess |"
+ echo "| security by loading files directly through the parser. See |"
+ echo "| http://www.php.net/manual/config-security.php3 for more details. |"
fi
fi
fi
+echo "+--------------------------------------------------------------------+"
+echo "| License: |"
+echo "| This software is subject to the PHP License, available in this |"
+echo "| distribution in the file LICENSE. By continuing this installation |"
+echo "| process, you are bound by the terms of this license agreement. |"
+echo "| If you do not agree with the terms of this license, you must abort |"
+echo "| the installation process at this point. |"
+echo "+--------------------------------------------------------------------+"
+
])
divert