]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Tue Mar 26 13:03:12 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
authorRoland McGrath <roland@gnu.org>
Thu, 18 Apr 1996 23:33:59 +0000 (23:33 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 18 Apr 1996 23:33:59 +0000 (23:33 +0000)
* acgeneral.m4 (AC_OUTPUT_HEADER): Make subdir if necessary.

acgeneral.m4
lib/autoconf/general.m4

index fa950d803d7e63ff3b53a52d1ccf656466a28d96..b40b971789f03c1b704f1088f896c2a7e1dc9e16 100644 (file)
@@ -2116,6 +2116,14 @@ cat >> $CONFIG_STATUS <<\EOF
     echo "$ac_file is unchanged"
     rm -f conftest.h
   else
+    # Remove last slash and all that follows it.  Not all systems have dirname.
+  changequote(, )dnl
+    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+  changequote([, ])dnl
+    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+      # The file is in a subdirectory.
+      test ! -d "$ac_dir" && mkdir "$ac_dir"
+    fi
     rm -f $ac_file
     mv conftest.h $ac_file
   fi
index fa950d803d7e63ff3b53a52d1ccf656466a28d96..b40b971789f03c1b704f1088f896c2a7e1dc9e16 100644 (file)
@@ -2116,6 +2116,14 @@ cat >> $CONFIG_STATUS <<\EOF
     echo "$ac_file is unchanged"
     rm -f conftest.h
   else
+    # Remove last slash and all that follows it.  Not all systems have dirname.
+  changequote(, )dnl
+    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+  changequote([, ])dnl
+    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+      # The file is in a subdirectory.
+      test ! -d "$ac_dir" && mkdir "$ac_dir"
+    fi
     rm -f $ac_file
     mv conftest.h $ac_file
   fi