663 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
664 |
# 02111-1307, USA. |
# 02111-1307, USA. |
665 |
|
|
666 |
# serial 4 |
AC_PREREQ([2.52]) |
667 |
|
|
668 |
|
# serial 6 |
669 |
|
|
670 |
# When config.status generates a header, we must update the stamp-h file. |
# When config.status generates a header, we must update the stamp-h file. |
671 |
# This file resides in the same directory as the config header |
# This file resides in the same directory as the config header |
672 |
# that is generated. We must strip everything past the first ":", |
# that is generated. We must strip everything past the first ":", |
673 |
# and everything past the last "/". |
# and everything past the last "/". |
674 |
|
|
|
AC_PREREQ([2.52]) |
|
|
|
|
|
AC_DEFUN([AM_CONFIG_HEADER], |
|
|
[dnl init our file count if it isn't already |
|
|
m4_ifndef([_AM_Config_Header_Index], m4_define([_AM_Config_Header_Index], [0])) |
|
|
dnl prepare to store our destination file list for use in config.status |
|
|
AC_FOREACH([_AM_File], [$1], |
|
|
[m4_pushdef([_AM_Dest], patsubst(_AM_File, [:.*])) |
|
|
m4_define([_AM_Config_Header_Index], |
|
|
m4_incr(_AM_Config_Header_Index)) |
|
|
dnl and add it to the list of files AC keeps track of, along |
|
|
dnl with our hook |
|
|
AC_CONFIG_HEADERS(_AM_File, |
|
|
[# update the timestamp |
|
|
echo timestamp >"AS_ESCAPE(_AM_DIRNAME(]_AM_Dest[))/stamp-h]_AM_Config_Header_Index[" |
|
|
][$2]m4_ifval([$3], [, [$3]])) |
|
|
m4_popdef([_AM_Dest])]) |
|
|
]) # AM_CONFIG_HEADER |
|
|
|
|
675 |
# _AM_DIRNAME(PATH) |
# _AM_DIRNAME(PATH) |
676 |
# ----------------- |
# ----------------- |
677 |
# Like AS_DIRNAME, only do it during macro expansion |
# Like AS_DIRNAME, only do it during macro expansion |
683 |
patsubst([$1], [^\(/\).*], [\1])), |
patsubst([$1], [^\(/\).*], [\1])), |
684 |
patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])), |
patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])), |
685 |
patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl |
patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl |
686 |
]) # _AM_DIRNAME |
])# _AM_DIRNAME |
687 |
|
|
688 |
|
|
689 |
|
# The stamp files are numbered to have different names. |
690 |
|
# We could number them on a directory basis, but that's additional |
691 |
|
# complications, let's have a unique counter. |
692 |
|
m4_define([_AM_STAMP_Count], [0]) |
693 |
|
|
694 |
|
|
695 |
|
# _AM_STAMP(HEADER) |
696 |
|
# ----------------- |
697 |
|
# The name of the stamp file for HEADER. |
698 |
|
AC_DEFUN([_AM_STAMP], |
699 |
|
[m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl |
700 |
|
AS_ESCAPE(_AM_DIRNAME(patsubst([$1], |
701 |
|
[:.*])))/stamp-h[]_AM_STAMP_Count]) |
702 |
|
|
703 |
|
|
704 |
|
# _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS) |
705 |
|
# ------------------------------------------------------------ |
706 |
|
# We used to try to get a real timestamp in stamp-h. But the fear is that |
707 |
|
# that will cause unnecessary cvs conflicts. |
708 |
|
AC_DEFUN([_AM_CONFIG_HEADER], |
709 |
|
[# Add the stamp file to the list of files AC keeps track of, |
710 |
|
# along with our hook. |
711 |
|
AC_CONFIG_HEADERS([$1], |
712 |
|
[# update the timestamp |
713 |
|
echo 'timestamp for $1' >"_AM_STAMP([$1])" |
714 |
|
$2], |
715 |
|
[$3]) |
716 |
|
])# _AM_CONFIG_HEADER |
717 |
|
|
718 |
|
|
719 |
|
# AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS) |
720 |
|
# -------------------------------------------------------------- |
721 |
|
AC_DEFUN([AM_CONFIG_HEADER], |
722 |
|
[AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])]) |
723 |
|
])# AM_CONFIG_HEADER |
724 |
|
|
725 |
#serial 1 |
#serial 1 |
726 |
# This test replaces the one in autoconf. |
# This test replaces the one in autoconf. |