source: trunk/essentials/sys-devel/automake-1.4/m4/header.m4

Last change on this file was 3124, checked in by bird, 18 years ago

automake 1.4-p6

File size: 858 bytes
Line 
1# Like AC_CONFIG_HEADER, but automatically create stamp file.
2
3AC_DEFUN([AM_CONFIG_HEADER],
4[AC_PREREQ([2.12])
5AC_CONFIG_HEADER([$1])
6dnl When config.status generates a header, we must update the stamp-h file.
7dnl This file resides in the same directory as the config header
8dnl that is generated. We must strip everything past the first ":",
9dnl and everything past the last "/".
10AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
11ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
12<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
13<<am_indx=1
14for 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
18 ;;
19 esac
20 am_indx=`expr "<<$>>am_indx" + 1`
21done<<>>dnl>>)
22changequote([,]))])
Note: See TracBrowser for help on using the repository browser.