#! /bin/sh
-# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005, 2012 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
test ! -f m4_1/macro.m4
test ! -f m4_2/macro.m4
+$sleep
+
$ACLOCAL -I m4_2 -I m4_1
$AUTOCONF
./configure
test ! -f m4_1/macro.m4
test ! -f m4_2/macro.m4
+$sleep
+
$ACLOCAL -I m4_1 -I m4_2 --install
$AUTOCONF
./configure
test ! -f m4_2/macro.m4
cp aclocal.m4 copy.m4
+$sleep
+
echo '#GREPME' >>dirlist-test/macro.m4
$ACLOCAL -I m4_1 -I m4_2 --install
$AUTOCONF
#! /bin/sh
-# Copyright (C) 2005, 2006, 2008, 2010 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2006, 2008, 2010, 2012 Free Software Foundation,
+# Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
AC_DEFUN([AM_MACRO1], [echo macro14 >> foo])
EOF
+clean_stale ()
+{
+ rm -rf aclocal.m4 configure foo autom4te*.cache
+}
+
$ACLOCAL -I 1 -I 2 -I 3 -I 4
$AUTOCONF
./configure
grep macro11 foo
grep macro21 foo
-rm -rf foo autom4te*.cache
+clean_stale
$ACLOCAL -I 1 -I 2 -I 3 -I 4 --install
$AUTOCONF
./configure
grep macro12 foo
grep macro23 foo
-rm -rf foo autom4te*.cache
+clean_stale
$ACLOCAL -I 4 -I 1 -I 2 -I 3 --install --dry-run
$AUTOCONF
./configure
grep macro12 foo
grep macro23 foo
-rm -rf foo autom4te*.cache
+clean_stale
$ACLOCAL -I 4 -I 1 -I 2 -I 3 --install
$AUTOCONF
./configure
grep macro14 foo
grep macro23 foo
-rm -rf foo autom4te*.cache
+clean_stale
$ACLOCAL -I 4 -I 1 -I 2 --install 2>stderr && { cat stderr >&2; Exit 1; }
cat stderr >&2
grep 'macro.*AM_MACRO2.*not found' stderr
-rm -rf foo autom4te*.cache
+clean_stale
$ACLOCAL -I 4 -I 1 --install
$AUTOCONF
./configure
AC_DEFUN([AM_MACRO1], [echo macro1d >> foo])
AC_DEFUN([AM_MACRO2], [echo macro2d >> foo])
EOF
-rm -rf foo autom4te*.cache
+clean_stale
$ACLOCAL -I 4 -I 1 --diff=diff >stdout 2>stderr || {
cat stderr >&2
cat stdout
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2012 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
grep macro11 foo
grep macro21 foo
-$ACLOCAL -I m4_2 -I m4_1
-$AUTOCONF
+$ACLOCAL --force -I m4_2 -I m4_1
+$AUTOCONF --force
./configure
grep macro12 foo
grep macro21 foo