From: Justin Erenkrantz Date: Tue, 26 Mar 2002 19:43:46 +0000 (+0000) Subject: Ensure that the build directory is created when using VPATH. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6150fe110aa155ddb5b1545b77d62e12eea47be9;p=apache Ensure that the build directory is created when using VPATH. Previously, configure would try to write config_vars.mk into build without ensuring that that directory existed first. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94188 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index ba77087fab..4638e2fe76 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.34-dev + *) Ensure that the build/ directory is created when using VPATH. + [Justin Erenkrantz] + *) Add some popular types to the mime magic file. PR 7730. [Linus Walleij , Justin Erenkrantz] diff --git a/acinclude.m4 b/acinclude.m4 index a9ef84e40f..244a6369c2 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -105,6 +105,12 @@ AC_DEFUN(APACHE_GEN_CONFIG_VARS,[ 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 eval echo "$i = \$$i" >> build/config_vars.mk