From: Roland McGrath Date: Thu, 18 Apr 1996 23:33:59 +0000 (+0000) Subject: Tue Mar 26 13:03:12 1996 Roland McGrath X-Git-Tag: fsf-origin~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fddd83bcb57679fca4fce4bc187bdd0d6cd105a3;p=thirdparty%2Fautoconf.git Tue Mar 26 13:03:12 1996 Roland McGrath * acgeneral.m4 (AC_OUTPUT_HEADER): Make subdir if necessary. --- diff --git a/acgeneral.m4 b/acgeneral.m4 index fa950d80..b40b9717 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -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 diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index fa950d80..b40b9717 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -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