From: Sascha Schumann Date: Wed, 29 Sep 1999 22:18:43 +0000 (+0000) Subject: * create Makefiles for ext, pcrelib, sapi/* X-Git-Tag: php-4.0b3_RC2~392 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf4afd61f0e426e68543709de9e6faa3c3c6d936;p=php * create Makefiles for ext, pcrelib, sapi/* * copy files for Apache from $(srcdir) --- diff --git a/configure.in b/configure.in index c9b3f100f3..9f4883bf39 100644 --- a/configure.in +++ b/configure.in @@ -706,6 +706,11 @@ AC_SUBST(EXTRA_LIBS) # reading config stubs esyscmd(./scripts/config-stubs ext) +dnl if it's still the default choice, enable this implicitly +if test "$PHP_SAPI" = "cgi"; then + PHP_OUTPUT(sapi/cgi/Makefile) +fi + divert(4) dnl If we are using gcc and the user has not specified CFLAGS, add -O2. @@ -741,11 +746,8 @@ AC_SUBST(PHP_LIBS) AC_SUBST(PHP_SAPI) AC_SUBST(SAPI_TARGET) -test -d sapi || mkdir sapi -test -d ext || mkdir ext - #libphp4.module -AC_OUTPUT([Makefile php4.spec $PHP_OUTPUT_FILES +AC_OUTPUT([Makefile php4.spec ext/Makefile sapi/Makefile $PHP_OUTPUT_FILES scripts/mkextlib regex/Makefile build-defs.h], [], [ if test ! -f $srcdir/ext/bcmath/number.c; then diff --git a/ext/pcre/config.m4 b/ext/pcre/config.m4 index 7c01193fdc..2480ff7e6a 100644 --- a/ext/pcre/config.m4 +++ b/ext/pcre/config.m4 @@ -21,6 +21,7 @@ AC_ARG_WITH(pcre-regex, AC_DEFINE(HAVE_BUNDLED_PCRE, 1) AC_MSG_RESULT(yes) PHP_EXTENSION(pcre) + PHP_OUTPUT(ext/pcre/pcrelib/Makefile) ;; *) if test -f $withval/pcre.h ; then @@ -55,5 +56,6 @@ AC_ARG_WITH(pcre-regex, AC_DEFINE(HAVE_BUNDLED_PCRE, 1) AC_MSG_RESULT(yes) PHP_EXTENSION(pcre) + PHP_OUTPUT(ext/pcre/pcrelib/Makefile) ]) AC_SUBST(PCRE_SUBDIR) diff --git a/ext/pcre/config0.m4 b/ext/pcre/config0.m4 index 7c01193fdc..2480ff7e6a 100644 --- a/ext/pcre/config0.m4 +++ b/ext/pcre/config0.m4 @@ -21,6 +21,7 @@ AC_ARG_WITH(pcre-regex, AC_DEFINE(HAVE_BUNDLED_PCRE, 1) AC_MSG_RESULT(yes) PHP_EXTENSION(pcre) + PHP_OUTPUT(ext/pcre/pcrelib/Makefile) ;; *) if test -f $withval/pcre.h ; then @@ -55,5 +56,6 @@ AC_ARG_WITH(pcre-regex, AC_DEFINE(HAVE_BUNDLED_PCRE, 1) AC_MSG_RESULT(yes) PHP_EXTENSION(pcre) + PHP_OUTPUT(ext/pcre/pcrelib/Makefile) ]) AC_SUBST(PCRE_SUBDIR) diff --git a/sapi/apache/config.m4 b/sapi/apache/config.m4 index 7489f25fd6..4265f7f35c 100644 --- a/sapi/apache/config.m4 +++ b/sapi/apache/config.m4 @@ -29,12 +29,12 @@ AC_ARG_WITH(apxs, AC_DEFINE(HAVE_AP_CONFIG_H) AC_DEFINE(HAVE_AP_COMPAT_H) AC_MSG_RESULT(yes) + PHP_OUTPUT(sapi/apache/Makefile) ],[ AC_MSG_RESULT(no) ]) -APACHE_INSTALL_FILES="sapi/apache/mod_php4.* sapi/apache/libphp4.module" -PHP_OUTPUT(sapi/apache/libphp4.module) +APACHE_INSTALL_FILES="\$(srcdir)/sapi/apache/mod_php4.* sapi/apache/libphp4.module" if test "$SAPI_TARGET" != "libmodphp4-so.a"; then if test "$SAPI_TARGET" != "libphp4.so"; then @@ -48,6 +48,8 @@ AC_ARG_WITH(apache, withval=/usr/local/apache fi if test "$withval" != "no"; then + APACHE_MODULE=yes + PHP_OUTPUT(sapi/apache/Makefile) AC_EXPAND_PATH($withval, withval) # For Apache 1.2.x if test -f $withval/src/httpd.h; then @@ -182,6 +184,11 @@ AC_ARG_WITH(mod_charset, AC_MSG_RESULT(no) ]) +if test -n "$APACHE_MODULE"; then + PHP_OUTPUT(sapi/apache/libphp4.module) +fi + + dnl ## Local Variables: dnl ## tab-width: 4 dnl ## End: