On Wed, 18 Mar 2009, Peter Breitenlohner wrote:
The problem occurs when configure.ac contains a "computed m4_sinclude". The
attached small shell script creates and exercised a test case.
Sorry, forgot the attachment.
Peter Breitenlohner <[email protected]>
#! /bin/sh
rm -rf Work
mkdir Work
cd Work
mkdir SRC SRC/ac BLD
cat >SRC/configure.ac <<EOF
AC_INIT([aclocal-test], [1.0], [[email protected]])
AC_CONFIG_SRCDIR([ac/yy.ac])
AM_INIT_AUTOMAKE([foreign])
AM_MAINTAINER_MODE
AC_FOREACH([File], [ac/yy.ac], [m4_sinclude(File)])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
EOF
cat >SRC/Makefile.am <<EOF
all-local:
echo 'making all-local'
EOF
cat >SRC/ac/yy.ac <<EOF
## ac/yy.ac
EOF
(cd SRC && autoreconf -iv)
sleep 1
(cd BLD && ../SRC/configure --enable-maintainer-mode)
sleep 1
(cd BLD && make)
sleep 1
(cd BLD && make)
echo "touch SRC/ac/yy.ac"
touch SRC/ac/yy.ac
set -x
sleep 1
(cd BLD && make)
sleep 1
(cd BLD && make)
sleep 1
(cd BLD && make)
ls -lrt --fu SRC