From: Jim Meyering Date: Sun, 6 Aug 2000 12:36:53 +0000 (+0000) Subject: (AM_CONFIG_HEADER): Fix typo in last change: X-Git-Tag: Release-1-4b~70 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=393c1089260374aa483a0a1065942c875de13430;p=automake.git (AM_CONFIG_HEADER): Fix typo in last change: add missing closing bracket and closing parenthesis. Don't quote the first argument to AC_OUTPUT_COMMANDS. Backslash-escape the backquotes and `$' in `am_indx'-incrementing stmt. --- diff --git a/m4/header.m4 b/m4/header.m4 index 3f455572..c82b6a7e 100644 --- a/m4/header.m4 +++ b/m4/header.m4 @@ -1,6 +1,6 @@ # Like AC_CONFIG_HEADER, but automatically create stamp file. -# serial 2 +# serial 3 # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header @@ -11,17 +11,18 @@ AC_PREREQ([2.12]) AC_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADER([$1]) -AC_OUTPUT_COMMANDS( -[ifelse(patsubst([$1], [[^ ]], []), - [], - [test -z "$CONFIG_HEADERS" || echo timestamp >dnl - patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h])], -[am_indx=1 -for am_file in $1; do - case " $CONFIG_HEADERS " in - *" $am_file "*) - echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx - ;; - esac - am_indx=`expr "$am_indx" + 1` -done]) + AC_OUTPUT_COMMANDS( + ifelse(patsubst([$1], [[^ ]], []), + [], + [test -z "$CONFIG_HEADERS" || echo timestamp >dnl + patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]), + [am_indx=1 + for am_file in $1; do + case " $CONFIG_HEADERS " in + *" $am_file "*) + echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx + ;; + esac + am_indx=\`expr \$am_indx + 1\` + done]) +])