]> granicus.if.org Git - php/commitdiff
Handle BCMath
authorZeev Suraski <zeev@php.net>
Sat, 17 Jul 1999 10:59:22 +0000 (10:59 +0000)
committerZeev Suraski <zeev@php.net>
Sat, 17 Jul 1999 10:59:22 +0000 (10:59 +0000)
Add a license pointer

README-BCMATH [new file with mode: 0644]
configure.in.in

diff --git a/README-BCMATH b/README-BCMATH
new file mode 100644 (file)
index 0000000..7d5bac1
--- /dev/null
@@ -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
index cf4ecf83012a12e3cf15bbe5d9b36ee56cb6d5b4..dbe558a17f2c3f59c325f48663f24c995dee2ba0 100644 (file)
@@ -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