+Mon Oct 21 21:19:53 1996 Tom Yu <tlyu@mit.edu>
+
+ * aclocal.m4: Fix CopySrcHeader and CopyHeader so they actually
+ generate dependencies for the files they're copying to. Also, fix
+ up DO_SUBDIRS to work with new recursion methods.
+
Mon Oct 7 15:07:38 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
* configure.in: Add AC_KRB5_TCL so configure --help is useful.
dnl recurse into subdirs by specifying the recursion targets
dnl the rules are in post.in but the target needs substitution
AC_DEFUN([DO_SUBDIRS],
-[RECURSE_TARGETS="all-unix clean-unix install-unix check-unix Makefiles"
-AC_SUBST(RECURSE_TARGETS)])
+[ALL_RECURSE="all-recurse"
+CLEAN_RECURSE="clean-recurse"
+INSTALL_RECURSE="install-recurse"
+CHECK_RECURSE="check-recurse"
+MAKEFILES_RECURSE="Makefiles-recurse"])
dnl
dnl drop in standard rules for all configure files -- CONFIG_RULES
dnl
WITH_NETLIB dnl
KRB_INCLUDE dnl
AC_ARG_PROGRAM dnl
+AC_SUBST(ALL_RECURSE)
+AC_SUBST(CLEAN_RECURSE)
+AC_SUBST(INSTALL_RECURSE)
+AC_SUBST(CHECK_RECURSE)
+AC_SUBST(MAKEFILES_RECURSE)
])dnl
dnl This is somewhat gross and should go away when the build system
define(CopyHeader,[
AC_PUSH_MAKEFILE()dnl
-includes:: $1
+includes:: $2/$1
+$2/$1: $1
@if test -d $2; then :; else (set -x; mkdir $2) fi
@if cmp $1 $2/$1 >/dev/null 2>&1; then :; \
else \
define(CopySrcHeader,[
AC_PUSH_MAKEFILE()dnl
-includes:: $1
+includes:: $2/$1
+$2/$1: $(srcdir)/$1
@if test -d $2; then :; else (set -x; mkdir $2) fi
@if cmp $(srcdir)/$1 $2/$1 >/dev/null 2>&1; then :; \
else \