2005-04-25 Stepan Kasal * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization. Index: lib/autoconf/status.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/status.m4,v retrieving revision 1.51 diff -u -r1.51 status.m4 --- lib/autoconf/status.m4 13 Apr 2005 17:01:41 -0000 1.51 +++ lib/autoconf/status.m4 25 Apr 2005 21:15:50 -0000 @@ -645,14 +645,9 @@ # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ - if test x"$ac_file" = x-; then - echo "/* Generated by configure. */" >"$tmp/config.h" - else - echo "/* $ac_file. Generated by configure. */" >"$tmp/config.h" - fi - cat "$tmp/in" >>"$tmp/config.h" - rm -f "$tmp/in" if test x"$ac_file" != x-; then + echo "/* $ac_file. Generated by configure. */" >"$tmp/config.h" + cat "$tmp/in" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then AC_MSG_NOTICE([$ac_file is unchanged]) else @@ -662,9 +657,10 @@ mv "$tmp/config.h" $ac_file fi else - cat "$tmp/config.h" - rm -f "$tmp/config.h" + echo "/* Generated by configure. */" + cat "$tmp/in" fi + rm -f "$tmp/in" dnl If running for Automake, be ready to perform additional dnl commands to set up the timestamp files. m4_ifdef([_AC_AM_CONFIG_HEADER_HOOK],