diff options
Diffstat (limited to 'configure.in.in')
-rw-r--r-- | configure.in.in | 90 |
1 files changed, 49 insertions, 41 deletions
diff --git a/configure.in.in b/configure.in.in index fb701b025c..c73423e3b9 100644 --- a/configure.in.in +++ b/configure.in.in @@ -1,8 +1,6 @@ dnl $Id$ -*- sh -*- dnl Process this file with autoconf to produce a configure script. - - divert(0) AC_INIT(main.c) recurse=yes @@ -23,14 +21,18 @@ if test "$with_shared_apache" != "no" && test -n "$with_shared_apache" ; then exit 1 fi +cwd=`pwd` +cachefile=$cwd/config.cache + if test "$recurse" = "yes"; then - cwd=`pwd` - (set -x; test -d libzend || mkdir libzend ; cd libzend; $cwd/$srcdir/libzend/configure --cache-file=$cwd/config.cache $@) + (set -x; test -d libzend || mkdir libzend ; cd libzend; $cwd/$srcdir/libzend/configure --cache-file=$cachefile $@) if test "$threadsafe" = "yes"; then - (set -x; test -d TSRM || mkdir TSRM; cd TSRM; $cwd/$srcdir/TSRM/configure --cache-file=$cwd/config.cache $@) + (set -x; test -d TSRM || mkdir TSRM; cd TSRM; $cwd/$srcdir/TSRM/configure --cache-file=$cachefile $@) fi fi +(set -x; cd $srcdir; ./ltconfig --disable-static --enable-dlopen --cache-file=$cachefile ltmain.sh) + dnl ## Diversion 1 is the initial checking of OS features, programs, dnl ## libraries and so on. @@ -54,7 +56,9 @@ AM_INIT_AUTOMAKE(php, 4.0b2-dev) PHP_VERSION=$VERSION -echo "#define PHP_VERSION \"$PHP_VERSION\"" > php_version.h.new +echo "/* automatically generated by configure */" > php_version.h.new +echo "/* edit configure.in.in to change version number */" >> php_version.h.new +echo "#define PHP_VERSION \"$PHP_VERSION\"" >> php_version.h.new cmp php_version.h.new php_version.h >/dev/null 2>&1 if test $? -ne 0 ; then rm -f php_version.h && mv php_version.h.new php_version.h && \ @@ -71,6 +75,7 @@ dnl We want this one before the checks, so the checks can modify CFLAGS. test -z "$CFLAGS" && auto_cflags=1 dnl Checks for programs. +AM_PROG_LIBTOOL AC_PROG_YACC if test "$YACC" != "bison -y"; then AC_MSG_WARN(You will need bison if you want to regenerate the PHP parsers.) @@ -889,44 +894,47 @@ if test ! -f $srcdir/ext/bcmath/number.c; then echo "/* Dummy File */" > $srcdir/ext/bcmath/number.h fi -chmod +x scripts/mkextlib -# Hacking while airborne considered harmful. -# -echo "creating internal_functions.c" -extensions=\`grep '^s.@EXT_SUBDIRS@' \$0|sed -e 's/^.*@% *//' -e 's/%.*$//'\` -mv -f internal_functions.c internal_functions.c.old 2>/dev/null -sh $srcdir/genif.sh $srcdir/internal_functions.c.in $srcdir \$extensions > internal_functions.c -if cmp internal_functions.c.old internal_functions.c > /dev/null 2>&1; then - echo "internal_functions.c is unchanged" - mv internal_functions.c.old internal_functions.c -else - rm -f internal_functions.c.old -fi +if test "" = ""; then + + chmod +x scripts/mkextlib + # Hacking while airborne considered harmful. + # + echo "creating internal_functions.c" + extensions=\`grep '^s.@EXT_STATIC@' \$0|sed -e 's/^.*@% *//' -e 's/%.*$//'\` + mv -f internal_functions.c internal_functions.c.old 2>/dev/null + sh $srcdir/genif.sh $srcdir/internal_functions.c.in $srcdir \$extensions > internal_functions.c + if cmp internal_functions.c.old internal_functions.c > /dev/null 2>&1; then + echo "internal_functions.c is unchanged" + mv internal_functions.c.old internal_functions.c + else + rm -f internal_functions.c.old + fi + # 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 "+--------------------------------------------------------------------+" + 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 -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 "+--------------------------------------------------------------------+" - 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 "+--------------------------------------------------------------------+" -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 "+--------------------------------------------------------------------+" +fi ]) |