| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 | #! /bin/sh# Copyright (C) 2012-2017 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# the Free Software Foundation; either version 2, or (at your option)# any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program.  If not, see <http://www.gnu.org/licenses/>.# Check that the aclocal honouring of AC_CONFIG_MACRO_DIR interacts# nicely with automatic rebuild rules.. test-init.shcat >> configure.ac <<'END'AC_CONFIG_MACRO_DIR([macro-dir])my__FOO || AS_EXIT([1])AC_OUTPUTEND: > Makefile.ammkdir macro-dircat > macro-dir/foo.m4 <<'END'AC_DEFUN([my__FOO], [: > bar])END$ACLOCAL$AUTOCONF$AUTOMAKE$FGREP my__FOO configure && exit 1./configuretest -f barrm -f bar$sleepcat > macro-dir/foo.m4 <<'END'AC_DEFUN([my__FOO], [: > baz])END$MAKE Makefiletest -f baztest ! -r barrm -f baz$sleeprm -f macro-dir/foo.m4cat > macro-dir/quux.m4 <<'END'AC_DEFUN([my__FOO], [: > quux])END$MAKE Makefiletest -f quuxtest ! -r bazrm -f quux$sleepsed 's/^AC_CONFIG_MACRO_DIR/&([newdir])/' configure.ac > tmv -f t configure.acmkdir newdircat > newdir/mu.m4 <<'END'AC_DEFUN([my__FOO], [[: my__FOO do nothing]])END$MAKE Makefile$FGREP ': my__FOO do nothing' configure$MAKE distcheck:
 |