]> granicus.if.org Git - apache/commitdiff
Ensure that the build directory is created when using VPATH.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Tue, 26 Mar 2002 19:43:46 +0000 (19:43 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Tue, 26 Mar 2002 19:43:46 +0000 (19:43 +0000)
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

CHANGES
acinclude.m4

diff --git a/CHANGES b/CHANGES
index ba77087fab8d106991553cb3627da2294c9eebad..4638e2fe7667238605a885fc60ee88bf1e7b5792 100644 (file)
--- 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 <triad@df.lth.se>, Justin Erenkrantz]
 
index a9ef84e40f9b6b03249f84b01c28bafeb873ac31..244a6369c2b3da3cebd7e117fc30cd9c4f402788 100644 (file)
@@ -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