1 # Like AC_CONFIG_HEADER, but automatically create stamp file.
5 # When config.status generates a header, we must update the stamp-h file.
6 # This file resides in the same directory as the config header
7 # that is generated. We must strip everything past the first ":",
8 # and everything past the last "/".
12 AC_DEFUN([AM_CONFIG_HEADER],
13 [AC_CONFIG_HEADER([$1])
15 ifelse(patsubst([$1], [[^ ]], []),
17 [test -z "$CONFIG_HEADERS" || echo timestamp >dnl
18 patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]),
21 case " $CONFIG_HEADERS " in
23 echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
26 am_indx=\`expr \$am_indx + 1\`