Check inplace doesn't exist before we try to create it
authorIan Lynagh <igloo@earth.li>
Fri, 24 Sep 2010 19:18:58 +0000 (19:18 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 24 Sep 2010 19:18:58 +0000 (19:18 +0000)
This fixes rerunning configure in a tree which already has an inplace
directory. Edward Z Yang ran into this; I guess whether it actually
fails depends on details of your installation, or we'd have run into
it sooner.

configure.ac

index db268ab..600317d 100644 (file)
@@ -438,7 +438,7 @@ then
     then
         AC_MSG_NOTICE([Making in-tree mingw tree])
         rm -rf inplace/mingw
-        mkdir inplace
+        test -d inplace || mkdir inplace
         mkdir inplace/mingw
         (
             cd inplace/mingw &&