cvs: php4 / acconfig.h.in acinclude.m4 configure.in /sapi/apache/ config.m4 /sapi/cgi/ config.m4 /sapi/isapi/ config.m4

From: Date: Thu, 08 Jun 2000 06:14:58 +0000
Subject: cvs: php4 / acconfig.h.in acinclude.m4 configure.in /sapi/apache/ config.m4 /sapi/cgi/ config.m4 /sapi/isapi/ config.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82@lists.php.net to get a copy of this message
sas Wed Jun 7 23:14:58 2000 EDT Modified files: /php4 acinclude.m4 acconfig.h.in configure.in /php4/sapi/apache config.m4 /php4/sapi/cgi config.m4 /php4/sapi/isapi config.m4 Log: Wipe out acconfig.h.in and rewrite some checks to use PHP_ARG_ENABLE. Index: php4/acinclude.m4 diff -u php4/acinclude.m4:1.93 php4/acinclude.m4:1.94 --- php4/acinclude.m4:1.93 Wed Jun 7 12:13:28 2000 +++ php4/acinclude.m4 Wed Jun 7 23:14:58 2000 @@ -1,4 +1,4 @@ -dnl $Id: acinclude.m4,v 1.93 2000/06/07 19:13:28 sas Exp $ +dnl $Id: acinclude.m4,v 1.94 2000/06/08 06:14:58 sas Exp $ dnl dnl This file contains local autoconf functions. @@ -236,7 +236,7 @@ ]) ]) if test "$ac_cv_time_r_type" = "hpux"; then - AC_DEFINE(PHP_HPUX_TIME_R,1,[Whether you have HP-SUX 10.x]) + AC_DEFINE(PHP_HPUX_TIME_R,1,[Whether you have HP-UX 10.x]) fi ]) @@ -279,7 +279,7 @@ ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)]) if test "$ac_cv_struct_tm_gmtoff" = yes; then - AC_DEFINE(HAVE_TM_GMTOFF) + AC_DEFINE(HAVE_TM_GMTOFF,1,[whether you have tm_gmtoff in struct tm]) fi ]) @@ -293,7 +293,7 @@ AC_DEFUN(PHP_PROG_SENDMAIL,[ AC_PATH_PROG(PROG_SENDMAIL, sendmail, /usr/lib/sendmail, $PATH:/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib) if test -n "$PROG_SENDMAIL"; then - AC_DEFINE(HAVE_SENDMAIL) + AC_DEFINE(HAVE_SENDMAIL,1,[whether you have sendmail]) fi ]) @@ -339,7 +339,7 @@ ]) ) if test "$ac_cv_struct_flock" = "yes" ; then - AC_DEFINE(HAVE_STRUCT_FLOCK, 1) + AC_DEFINE(HAVE_STRUCT_FLOCK, 1,[whether you have struct flock]) fi ]) @@ -590,11 +590,11 @@ if test "$REGEX_TYPE" = "php"; then REGEX_LIB=regex/libregex.la REGEX_DIR=regex - AC_DEFINE(HSREGEX) - AC_DEFINE(REGEX,1) + AC_DEFINE(HSREGEX,1,[ ]) + AC_DEFINE(REGEX,1,[ ]) PHP_FAST_OUTPUT(regex/Makefile) elif test "$REGEX_TYPE" = "system"; then - AC_DEFINE(REGEX,0) + AC_DEFINE(REGEX,0,[ ]) fi AC_MSG_CHECKING(which regex library to use) @@ -611,10 +611,10 @@ AC_DEFUN(AC_MISSING_FCLOSE_DECL,[ AC_MSG_CHECKING([for fclose declaration]) AC_TRY_COMPILE([#include <stdio.h>],[int (*func)() = fclose],[ - AC_DEFINE(MISSING_FCLOSE_DECL,0) + AC_DEFINE(MISSING_FCLOSE_DECL,0,[ ]) AC_MSG_RESULT(ok) ],[ - AC_DEFINE(MISSING_FCLOSE_DECL,1) + AC_DEFINE(MISSING_FCLOSE_DECL,1,[ ]) AC_MSG_RESULT(missing) ]) ]) @@ -633,9 +633,9 @@ ]) ]) if test "$ac_cv_broken_sprintf" = "yes"; then - AC_DEFINE(BROKEN_SPRINTF, 1) + AC_DEFINE(PHP_BROKEN_SPRINTF, 1, [ ]) else - AC_DEFINE(BROKEN_SPRINTF, 0) + AC_DEFINE(PHP_BROKEN_SPRINTF, 0, [ ]) fi ]) @@ -780,7 +780,7 @@ #include <sys/socket.h>], [struct sockaddr s; s.sa_len;], [ac_cv_sockaddr_sa_len=yes - AC_DEFINE(HAVE_SOCKADDR_SA_LEN)], + AC_DEFINE(HAVE_SOCKADDR_SA_LEN,1,[ ])], [ac_cv_sockaddr_sa_len=no]) ]) ]) @@ -827,7 +827,7 @@ ac_cv_ebcdic="no" ])]) if test "$ac_cv_ebcdic" = "yes"; then - AC_DEFINE(CHARSET_EBCDIC,, [Define if system uses EBCDIC]) + AC_DEFINE(CHARSET_EBCDIC,1, [Define if system uses EBCDIC]) fi ]) Index: php4/acconfig.h.in diff -u php4/acconfig.h.in:1.37 php4/acconfig.h.in:1.38 --- php4/acconfig.h.in:1.37 Thu May 18 12:45:29 2000 +++ php4/acconfig.h.in Wed Jun 7 23:14:58 2000 @@ -1,125 +1 @@ -/* This is the default configuration file to read -*- C -*- */ - -/* these are defined by automake */ -#undef PACKAGE -#undef VERSION - -#undef HAVE_LIBDL - -#undef HAVE_STRUCT_FLOCK -#undef HAVE_TM_GMTOFF - -#define CONFIGURATION_FILE_PATH "php.ini" -#define USE_CONFIG_FILE 1 - -#undef HAVE_DMALLOC - -/* Some global constants defined by conigure */ -#undef PHP_BUILD_DATE -#undef PHP_OS -#undef PHP_UNAME - -/* define uint by configure if it is missed (QNX and BSD derived) */ -#undef uint - -/* define ulong by configure if it is missed (most probably is) */ -#undef ulong - -/* type check for in_addr_t */ -#undef in_addr_t - -/* Define if you have dirent.h but opendir() resides in libc rather than in libdir */ -/* This will cause HAVE_DIRENT_H defined twice sometimes, but it should be problem */ -#undef HAVE_DIRENT_H - -/* Define if you have the resolv library (-lresolv). */ -#undef HAVE_LIBRESOLV - -/* Define if you have the pam library (-lpam). */ -#define HAVE_LIBPAM 0 - -/* Define if you have the bind library (-lbind). */ -#define HAVE_LIBBIND 0 - -/* Define if you have Netscape LDAP instead of umich ldap or openldap*/ -#define HAVE_NSLDAP 0 - -/* Define if you want safe mode enabled by default. */ -#define PHP_SAFE_MODE 0 - -/* Set to the path to the dir containing safe mode executables */ -#define PHP_SAFE_MODE_EXEC_DIR /usr/local/php/bin - -/* Define if PHP to setup it's own SIGCHLD handler */ -#define PHP_SIGCHILD 0 - -/* Define if you want POST/GET/Cookie track variables by default */ -#define PHP_TRACK_VARS 0 - -/* Undefine if you want stricter XML/SGML compliance by default */ -/* (this disables "<?expression?>" by default) */ -#define DEFAULT_SHORT_OPEN_TAG 1 - -/* Undefine if you do not want PHP by default to escape "'" */ -/* in GET/POST/Cookie data */ -#define MAGIC_QUOTES 1 - -/* Define both of these if you want the bundled REGEX library */ -#define REGEX 0 -#define HSREGEX 0 - -/* Define if you have and want to use libnsl */ -#undef HAVE_LIBNSL - -/* Define if you have and want to use libsocket */ -#undef HAVE_LIBSOCKET - -/* Define if you have the sendmail program available */ -#define HAVE_SENDMAIL 0 - -/* Define if you are compiling PHP as an Apache module with mod_charset patch applied (aka Russian Apache)*/ -#define USE_TRANSFER_TABLES 0 - -/* Define if you are compiling PHP as an fhttpd module */ -#define FHTTPD 0 - -/* Define if your Apache creates an ap_config.h header file (only 1.3b6 and later) */ -#define HAVE_AP_CONFIG_H 0 - -/* Define if your Apache has src/include/compat.h */ -#define HAVE_OLD_COMPAT_H 0 - -/* Define if your Apache has src/include/ap_compat.h */ -#define HAVE_AP_COMPAT_H 0 - -/* Define if you want to enable PHP RPC (experimental) */ -#define PHP_RPC 0 - -/* Define if you want to prevent the CGI from working unless REDIRECT_STATUS is defined in the environment */ -#define FORCE_CGI_REDIRECT 0 - -/* Define if you want to prevent the CGI from using path_info and path_translated */ -#define DISCARD_PATH 0 - -/* Define if you want include() and other functions to be able to open - * http and ftp URLs as files. - */ -#define PHP_URL_FOPEN 0 - -/* Define if you have broken header files like SunOS 4 */ -#define MISSING_FCLOSE_DECL 0 - -/* Define to compile PHP/Zend thread safe */ -#undef ZTS - -/* Define when compiling with Zeus support */ -#undef WITH_ZEUS - -/* Define if struct sockaddr contains the field sa_len */ -#undef HAVE_SOCKADDR_SA_LEN - -#undef BROKEN_SPRINTF - -#if BROKEN_SPRINTF -#define sprintf php_sprintf -#endif +/* Leave this file alone */ Index: php4/configure.in diff -u php4/configure.in:1.140 php4/configure.in:1.141 --- php4/configure.in:1.140 Sun Jun 4 08:34:31 2000 +++ php4/configure.in Wed Jun 7 23:14:58 2000 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.140 2000/06/04 15:34:31 sas Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.141 2000/06/08 06:14:58 sas Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -193,7 +193,7 @@ AC_CHECK_LIB(socket, socket, [ AC_ADD_LIBRARY(socket) - AC_DEFINE(HAVE_LIBSOCKET) ], [ + AC_DEFINE(HAVE_LIBSOCKET,1,[ ]) ], [ AC_CHECK_LIB(socket, htonl, [ AC_ADD_LIBRARY(socket) ])]) @@ -211,10 +211,10 @@ AC_CHECK_LIB(nsl, gethostname, [ AC_ADD_LIBRARY(nsl) - AC_DEFINE(HAVE_LIBNSL) ],[ + AC_DEFINE(HAVE_LIBNSL,1,[ ]) ],[ AC_CHECK_LIB(nsl, gethostbyaddr, [ AC_ADD_LIBRARY(nsl) - AC_DEFINE(HAVE_LIBNSL) ], []) + AC_DEFINE(HAVE_LIBNSL,1,[ ]) ], []) ]) fi @@ -231,7 +231,7 @@ AC_CHECK_LIB(bind, inet_aton, [ AC_ADD_LIBRARY(bind) - AC_DEFINE(HAVE_LIBBIND) ], []) + AC_DEFINE(HAVE_LIBBIND,1,[Whether you have bind]) ], []) AC_CHECK_LIB(resolv, inet_aton) @@ -242,10 +242,10 @@ AC_CHECK_LIB(resolv, dn_skipname) AC_CHECK_LIB(resolv, __dn_skipname) LIBS="$LIBS -lsocket" - AC_DEFINE(HAVE_LIBSOCKET) ], [ + AC_DEFINE(HAVE_LIBSOCKET,1,[ ]) ], [ AC_CHECK_LIB(resolv, res_search, [ LIBS="$LIBS -lresolv" - AC_DEFINE(HAVE_LIBRESOLV) + AC_DEFINE(HAVE_LIBRESOLV,1,[ ]) ], [ AC_CHECK_LIB(resolv, dn_skipname) AC_CHECK_LIB(resolv, __dn_skipname) @@ -401,7 +401,7 @@ dnl AC_MSG_RESULT($ac_cv_type_in_addr_t) if test $ac_cv_type_in_addr_t = no; then - AC_DEFINE(in_addr_t, u_int) + AC_DEFINE(in_addr_t, u_int, [ ]) fi divert(4) @@ -421,11 +421,11 @@ fi if test "$PHP_CONFIG_FILE_PATH" != "no"; then - AC_DEFINE_UNQUOTED(CONFIGURATION_FILE_PATH, "$PHP_CONFIG_FILE_PATH") - AC_DEFINE(USE_CONFIG_FILE, 1) + AC_DEFINE_UNQUOTED(CONFIGURATION_FILE_PATH, "$PHP_CONFIG_FILE_PATH",[ ]) + AC_DEFINE(USE_CONFIG_FILE, 1, [ ]) else - AC_DEFINE(CONFIGURATION_FILE_PATH, 0) - AC_DEFINE(USE_CONFIG_FILE, 0) + AC_DEFINE(CONFIGURATION_FILE_PATH, 0, [ ]) + AC_DEFINE(USE_CONFIG_FILE, 0, [ ]) fi PHP_ARG_ENABLE(debug, whether to include debugging symbols, @@ -446,9 +446,9 @@ [ --enable-safe-mode Enable safe mode by default.]) if test "$PHP_SAFE_MODE" = "yes"; then - AC_DEFINE(PHP_SAFE_MODE, 1) + AC_DEFINE(PHP_SAFE_MODE,1,[ ]) else - AC_DEFINE(PHP_SAFE_MODE, 0) + AC_DEFINE(PHP_SAFE_MODE,0,[ ]) fi AC_MSG_CHECKING(for safe mode exec dir) @@ -458,18 +458,18 @@ [ if test "$withval" != "no"; then if test "$withval" = "yes"; then - AC_DEFINE(PHP_SAFE_MODE_EXEC_DIR,"/usr/local/php/bin") + AC_DEFINE(PHP_SAFE_MODE_EXEC_DIR,"/usr/local/php/bin", [ ]) AC_MSG_RESULT(/usr/local/php/bin) else - AC_DEFINE_UNQUOTED(PHP_SAFE_MODE_EXEC_DIR,"$withval") + AC_DEFINE_UNQUOTED(PHP_SAFE_MODE_EXEC_DIR,"$withval", [ ]) AC_MSG_RESULT($withval) fi else - AC_DEFINE(PHP_SAFE_MODE_EXEC_DIR,"/usr/local/php/bin") + AC_DEFINE(PHP_SAFE_MODE_EXEC_DIR,"/usr/local/php/bin", [ ]) AC_MSG_RESULT(/usr/local/php/bin) fi ],[ - AC_DEFINE(PHP_SAFE_MODE_EXEC_DIR,"/usr/local/php/bin") + AC_DEFINE(PHP_SAFE_MODE_EXEC_DIR,"/usr/local/php/bin", [ ]) AC_MSG_RESULT(/usr/local/php/bin) ]) @@ -477,27 +477,27 @@ [ --enable-sigchild Enable PHP's own SIGCHLD handler.],no) if test "$PHP_SIGCHILD" = "yes"; then - AC_DEFINE(PHP_SIGCHILD, 1) + AC_DEFINE(PHP_SIGCHILD, 1, [ ]) else - AC_DEFINE(PHP_SIGCHILD, 0) + AC_DEFINE(PHP_SIGCHILD, 0, [ ]) fi PHP_ARG_ENABLE(track-vars,whether to enable track_vars variables by default, [ --enable-track-vars Enable GET/POST/Cookie track variables by default.],yes) if test "$PHP_TRACK_VARS" = "yes"; then - AC_DEFINE(PHP_TRACK_VARS, 1) + AC_DEFINE(PHP_TRACK_VARS, 1, [ ]) else - AC_DEFINE(PHP_TRACK_VARS, 0) + AC_DEFINE(PHP_TRACK_VARS, 0, [ ]) fi PHP_ARG_ENABLE(magic-quotes,whether to enable magic quotes by default, [ --enable-magic-quotes Enable magic quotes by default.]) if test "$PHP_MAGIC_QUOTES" = "yes"; then - AC_DEFINE(MAGIC_QUOTES, 1) + AC_DEFINE(MAGIC_QUOTES, 1, [ ]) else - AC_DEFINE(MAGIC_QUOTES, 0) + AC_DEFINE(MAGIC_QUOTES, 0, [ ]) fi PHP_ARG_ENABLE(rpath, whether to enable runpaths, @@ -516,78 +516,51 @@ AC_ADD_LIBRARY(gcc, yes) fi -AC_MSG_CHECKING(whether to enable short tags by default) -AC_ARG_ENABLE(short-tags, -[ --disable-short-tags Disable the short-form <? start tag by default.], -[ - if test "$enableval" = "no"; then - AC_DEFINE(DEFAULT_SHORT_OPEN_TAG, 0) - AC_MSG_RESULT(no) - else - AC_DEFINE(DEFAULT_SHORT_OPEN_TAG, 1) - AC_MSG_RESULT(yes) - fi -],[ - AC_DEFINE(DEFAULT_SHORT_OPEN_TAG, 1) - AC_MSG_RESULT(yes) -]) +PHP_ARG_ENABLE(short-tags,whether to enable short tags by default, +[ --disable-short-tags Disable the short-form <? start tag by default.],yes) -AC_MSG_CHECKING(whether to enable the URL-aware fopen wrapper) -AC_ARG_ENABLE(url-fopen-wrapper, +if test "$PHP_SHORT_TAGS" = "yes"; then + AC_DEFINE(DEFAULT_SHORT_OPEN_TAG,1,[ ]) +else + AC_DEFINE(DEFAULT_SHORT_OPEN_TAG,0,[ ]) +fi + +PHP_ARG_ENABLE(url-fopen-wrapper,whether to enable the URL-aware fopen wrapper, [ --disable-url-fopen-wrapper Disable the URL-aware fopen wrapper that allows - accessing files via http or ftp.], -[ - if test "$enableval" = "yes"; then - AC_DEFINE(PHP_URL_FOPEN, 1) - AC_MSG_RESULT(yes) - else - AC_DEFINE(PHP_URL_FOPEN, 0) - AC_MSG_RESULT(no) - fi -],[ - AC_DEFINE(PHP_URL_FOPEN, 1) - AC_MSG_RESULT(yes) -]) + accessing files via http or ftp.], yes) -AC_MSG_CHECKING(whether to enable PIC for shared objects) -AC_ARG_ENABLE(pic, -[ --disable-pic Disable PIC for shared objects],[ - PHP_PIC=$enableval -],[ - PHP_PIC=yes -]) -AC_MSG_RESULT($PHP_PIC) +if test "$PHP_URL_FOPEN_WRAPPER" = "yes"; then + AC_DEFINE(PHP_URL_FOPEN, 1, [ ]) +else + AC_DEFINE(PHP_URL_FOPEN, 0, [ ]) +fi -DMALLOC_RESULT=no -AC_MSG_CHECKING(whether to enable dmalloc) -AC_ARG_ENABLE(dmalloc, -[ --enable-dmalloc Enable dmalloc], -[ - if test "$enableval" = "yes" ; then - AC_DEFINE(HAVE_DMALLOC, 1) - AC_ADD_LIBRARY(dmalloc) - CFLAGS="$CFLAGS -DDMALLOC_FUNC_CHECK" - DMALLOC_RESULT=yes - fi -]) -AC_MSG_RESULT($DMALLOC_RESULT) +PHP_ARG_ENABLE(pic,whether to enable PIC for shared objects, +[ --disable-pic Disable PIC for shared objects], yes) -AC_ARG_ENABLE(pear, -[ --disable-pear Do not install PEAR],[ - PHP_PEAR=$enableval -],[ - PHP_PEAR=yes -]) -AC_MSG_CHECKING(whether to install PEAR) -AC_MSG_RESULT($PHP_PEAR) +PHP_ARG_ENABLE(dmalloc,whether to enable dmalloc, +[ --enable-dmalloc Enable dmalloc]) + +if test "$PHP_DMALLOC" = "yes"; then + AC_DEFINE(HAVE_DMALLOC,1,[Whether you have dmalloc]) + AC_ADD_LIBRARY(dmalloc) + CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK" +fi + +PHP_ARG_ENABLE(pear,whether to install PEAR, +[ --disable-pear Do not install PEAR],yes) + if test "$PHP_PEAR" = "yes"; then PEAR_DIR=pear fi - + + + + divert(5) PHP_CONFIGURE_PART(Configuring extensions) @@ -645,7 +618,7 @@ if test "$ZEND_EXPERIMENTAL_ZTS" = "yes"; then TSRM_LIB='TSRM/libtsrm.la' TSRM_DIR=TSRM - AC_DEFINE(ZTS) + AC_DEFINE(ZTS,1,[ ]) INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM" PHP_THREAD_SAFETY=yes else @@ -704,11 +677,11 @@ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS" PHP_BUILD_DATE=date '+%Y-%m-%d' -AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE") +AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE",[PHP build date]) PHP_UNAME=uname -a -AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME") +AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output]) PHP_OS=uname -AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS") +AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS",[uname output]) Index: php4/sapi/apache/config.m4 diff -u php4/sapi/apache/config.m4:1.28 php4/sapi/apache/config.m4:1.29 --- php4/sapi/apache/config.m4:1.28 Mon May 15 09:43:44 2000 +++ php4/sapi/apache/config.m4 Wed Jun 7 23:14:58 2000 @@ -43,8 +43,8 @@ PHP_APXS_BROKEN=yes fi STRONGHOLD= - AC_DEFINE(HAVE_AP_CONFIG_H) - AC_DEFINE(HAVE_AP_COMPAT_H) + AC_DEFINE(HAVE_AP_CONFIG_H,1,[ ]) + AC_DEFINE(HAVE_AP_COMPAT_H,1,[ ]) AC_MSG_RESULT(yes) ],[ AC_MSG_RESULT(no) @@ -74,7 +74,7 @@ AC_MSG_RESULT(yes - Apache 1.2.x) STRONGHOLD= if test -f $withval/src/ap_config.h; then - AC_DEFINE(HAVE_AP_CONFIG_H) + AC_DEFINE(HAVE_AP_CONFIG_H,1,[ ]) fi # For Apache 2.0.x elif test -f $withval/src/include/httpd.h && @@ -91,16 +91,16 @@ AC_MSG_RESULT(yes - Apache 2.0.X) STRONGHOLD= if test -f $withval/src/include/ap_config.h; then - AC_DEFINE(HAVE_AP_CONFIG_H) + AC_DEFINE(HAVE_AP_CONFIG_H,1,[ ]) fi if test -f $withval/src/include/ap_compat.h; then - AC_DEFINE(HAVE_AP_COMPAT_H) + AC_DEFINE(HAVE_AP_COMPAT_H,1,[ ]) if test ! -f $withval/src/include/ap_config_auto.h; then AC_MSG_ERROR(Please run Apache\'s configure or src/Configure program once and try again) fi else if test -f $withval/src/include/compat.h; then - AC_DEFINE(HAVE_OLD_COMPAT_H) + AC_DEFINE(HAVE_OLD_COMPAT_H,1,[ ]) fi fi # For Apache 1.3.x @@ -117,16 +117,16 @@ AC_MSG_RESULT(yes - Apache 1.3.x) STRONGHOLD= if test -f $withval/src/include/ap_config.h; then - AC_DEFINE(HAVE_AP_CONFIG_H) + AC_DEFINE(HAVE_AP_CONFIG_H,1,[ ]) fi if test -f $withval/src/include/ap_compat.h; then - AC_DEFINE(HAVE_AP_COMPAT_H) + AC_DEFINE(HAVE_AP_COMPAT_H,1,[ ]) if test ! -f $withval/src/include/ap_config_auto.h; then AC_MSG_ERROR(Please run Apache\'s configure or src/Configure program once and try again) fi else if test -f $withval/src/include/compat.h; then - AC_DEFINE(HAVE_OLD_COMPAT_H) + AC_DEFINE(HAVE_OLD_COMPAT_H,1,[ ]) fi fi # Also for Apache 1.3.x @@ -143,16 +143,16 @@ AC_MSG_RESULT(yes - Apache 1.3.x) STRONGHOLD= if test -f $withval/src/include/ap_config.h; then - AC_DEFINE(HAVE_AP_CONFIG_H) + AC_DEFINE(HAVE_AP_CONFIG_H,1,[ ]) fi if test -f $withval/src/include/ap_compat.h; then - AC_DEFINE(HAVE_AP_COMPAT_H) + AC_DEFINE(HAVE_AP_COMPAT_H,1,[ ]) if test ! -f $withval/src/include/ap_config_auto.h; then AC_MSG_ERROR(Please run Apache\'s configure or src/Configure program once and try again) fi else if test -f $withval/src/include/compat.h; then - AC_DEFINE(HAVE_OLD_COMPAT_H) + AC_DEFINE(HAVE_OLD_COMPAT_H,1,[ ]) fi fi # For StrongHold 2.2 @@ -165,16 +165,16 @@ STRONGHOLD=-DSTRONGHOLD=1 AC_MSG_RESULT(yes - StrongHold) if test -f $withval/apache/ap_config.h; then - AC_DEFINE(HAVE_AP_CONFIG_H) + AC_DEFINE(HAVE_AP_CONFIG_H,1,[ ]) fi if test -f $withval/src/ap_compat.h; then - AC_DEFINE(HAVE_AP_COMPAT_H) + AC_DEFINE(HAVE_AP_COMPAT_H,1,[ ]) if test ! -f $withval/src/include/ap_config_auto.h; then AC_MSG_ERROR(Please run Apache\'s configure or src/Configure program once and try again) fi else if test -f $withval/src/compat.h; then - AC_DEFINE(HAVE_OLD_COMPAT_H) + AC_DEFINE(HAVE_OLD_COMPAT_H,1,[ ]) fi fi else @@ -208,7 +208,7 @@ [ --with-mod_charset Enable transfer tables for mod_charset (Rus Apache).], [ AC_MSG_RESULT(yes) - AC_DEFINE(USE_TRANSFER_TABLES) + AC_DEFINE(USE_TRANSFER_TABLES,1,[ ]) ],[ AC_MSG_RESULT(no) ]) Index: php4/sapi/cgi/config.m4 diff -u php4/sapi/cgi/config.m4:1.3 php4/sapi/cgi/config.m4:1.4 --- php4/sapi/cgi/config.m4:1.3 Wed Dec 29 18:59:38 1999 +++ php4/sapi/cgi/config.m4 Wed Jun 7 23:14:58 2000 @@ -1,48 +1,34 @@ if test "$PHP_SAPI" = "cgi"; then -AC_MSG_CHECKING(whether to force Apache CGI redirect) -AC_ARG_ENABLE(force-cgi-redirect, + + PHP_ARG_ENABLE(force-cgi-redirect,whether to force Apache CGI redirect, [ --enable-force-cgi-redirect Enable the security check for internal server redirects. You should use this if you are - running the CGI version with Apache. ], -[ - if test "$enableval" = "yes"; then - AC_DEFINE(FORCE_CGI_REDIRECT, 1) - AC_MSG_RESULT(yes) + running the CGI version with Apache. ]) + + if test "$PHP_FORCE_CGI_REDIRECT" = "yes"; then + AC_DEFINE(FORCE_CGI_REDIRECT, 1, [ ]) REDIRECT=1 else - AC_DEFINE(FORCE_CGI_REDIRECT, 0) - AC_MSG_RESULT(no) + AC_DEFINE(FORCE_CGI_REDIRECT, 0, [ ]) REDIRECT=0 fi -],[ - AC_DEFINE(FORCE_CGI_REDIRECT, 0) - AC_MSG_RESULT(no) - REDIRECT=0 -]) -AC_MSG_CHECKING(whether to discard path_info + path_translated) -AC_ARG_ENABLE(discard_path, + PHP_ARG_ENABLE(discard-path,whether to discard path_info + path_translated, [ --enable-discard-path If this is enabled, the PHP CGI binary can safely be placed outside of the web tree and people will not be able - to circumvent .htaccess security. ], -[ - if test "$enableval" = "yes"; then - AC_DEFINE(DISCARD_PATH, 1) - AC_MSG_RESULT(yes) + to circumvent .htaccess security. ]) + + if test "$PHP_DISCARD_PATH" = "yes"; then + AC_DEFINE(DISCARD_PATH, 1, [ ]) DISCARD_PATH=1 else - AC_DEFINE(DISCARD_PATH, 0) - AC_MSG_RESULT(no) + AC_DEFINE(DISCARD_PATH, 0, [ ]) DISCARD_PATH=0 fi -],[ - AC_DEFINE(DISCARD_PATH, 0) - AC_MSG_RESULT(no) - DISCARD_PATH=0 -]) + fi if test "$PHP_SAPI" = "cgi" ; then @@ -66,7 +52,7 @@ FHTTPD_TARGET=$withval/ PHP_BUILD_STATIC PHP_SAPI=cgi - AC_DEFINE(FHTTPD) + AC_DEFINE(FHTTPD,1,[ ]) AC_MSG_RESULT(yes - fhttpd 0.3.x) else AC_MSG_RESULT(no) Index: php4/sapi/isapi/config.m4 diff -u php4/sapi/isapi/config.m4:1.7 php4/sapi/isapi/config.m4:1.8 --- php4/sapi/isapi/config.m4:1.7 Mon May 22 07:39:33 2000 +++ php4/sapi/isapi/config.m4 Wed Jun 7 23:14:58 2000 @@ -1,4 +1,4 @@ -dnl ## $Id: config.m4,v 1.7 2000/05/22 14:39:33 joosters Exp $ -*- sh -*- +dnl ## $Id: config.m4,v 1.8 2000/06/08 06:14:58 sas Exp $ -*- sh -*- RESULT=no AC_MSG_CHECKING(for Zeus ISAPI support) @@ -12,7 +12,7 @@ fi test -f "$ZEUSPATH/web/include/httpext.h" || AC_MSG_ERROR(Unable to find httpext.h in $ZEUSPATH/web/include) PHP_BUILD_THREAD_SAFE - AC_DEFINE(WITH_ZEUS) + AC_DEFINE(WITH_ZEUS,1,[ ]) AC_ADD_INCLUDE($ZEUSPATH/web/include) PHP_SAPI=isapi PHP_BUILD_SHARED

« previous php.cvs (#82) next »