From: Justin Erenkrantz Date: Thu, 18 Apr 2002 09:01:31 +0000 (+0000) Subject: Allow VPATH builds to succeed when configured from an empty directory. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6131bf2f9bd43790e7da917890869b4d1c94548;p=apache Allow VPATH builds to succeed when configured from an empty directory. (Justin removed some unneeded changes in Makefile.in.) Submitted by: Thom May Reviewed by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94697 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 50a9acbf57..8398dd0144 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.36 + *) Allow VPATH builds to succeed when configured from an empty + directory. [Thom May ] + *) Fix 'control reaches end of non-void function' warning in server/log.c. [Ben Collins-Sussman ] diff --git a/acinclude.m4 b/acinclude.m4 index 488cf5bd50..5828c035c9 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -28,8 +28,10 @@ AC_DEFUN(APACHE_MKDIR_P_CHECK,[ mkdir -p conftestdir/somedir >/dev/null 2>&1 if test -d conftestdir/somedir; then ac_cv_mkdir_p=yes + mkdir_p="mkdir -p" else ac_cv_mkdir_p=no + mkdir_p="$top_srcdir/build/mkdir.sh" fi rm -rf conftestdir ]) @@ -103,13 +105,7 @@ AC_DEFUN(APACHE_GEN_CONFIG_VARS,[ abs_srcdir="`(cd $srcdir && pwd)`" - APACHE_MKDIR_P_CHECK echo creating config_vars.mk - if test "$ac_cv_mkdir_p" = "yes"; then - mkdir_p="mkdir -p" - else - mkdir_p="$top_srcdir/build/mkdir.sh" - fi test -d build || $mkdir_p build > build/config_vars.mk for i in $APACHE_VAR_SUBST; do diff --git a/configure.in b/configure.in index 8d40221cf0..1e95b49e29 100644 --- a/configure.in +++ b/configure.in @@ -47,6 +47,8 @@ APR_CONFIG_NICE(config.nice) nl=' ' +dnl Check that mkdir -p works +APACHE_MKDIR_P_CHECK dnl ## Run configure for packages Apache uses @@ -480,6 +482,9 @@ case $host in ;; esac +dnl Ensure that docs/conf is created. +test -d docs/conf||$mkdir_p docs/conf + AC_OUTPUT($APACHE_OUTPUT_FILES docs/conf/httpd-std.conf include/ap_config_layout.h support/apxs support/apachectl support/dbmmanage support/envvars-std support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile build/rules.mk,[true],[ APACHE_GEN_MAKEFILES ])