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