| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 | #! /bin/sh# Copyright (C) 2003-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/>.# Make sure dependencies on aclocal.m4 are set correctly.# Report from Jim Meyering.required=cc. test-init.shcat >>configure.ac <<EOFAC_CONFIG_MACRO_DIR([m4])AC_PROG_RANLIBAM_PROG_ARAC_PROG_CCMY_MACROAC_CONFIG_FILES([lib/Makefile])AC_OUTPUTEOFmkdir m4cat >m4/mymacro.m4 <<EOFAC_DEFUN([MY_MACRO], [])EOFmkdir lib: > lib/foo.c: > lib/bar.ccat >lib/Makefile.am <<'EOF'noinst_LIBRARIES = liberi.aliberi_a_SOURCES = bar.cliberi_a_LIBADD = $(LIBOBJS)EOFcat >Makefile.am <<'EOF'SUBDIRS = libEXTRA_DIST = m4/mymacro.m4check-foo: distdir	test -f $(distdir)/lib/foo.c	test -f $(distdir)/lib/bar.ccheck-not-foo: distdir	test ! -f $(distdir)/lib/foo.c	test -f $(distdir)/lib/bar.cEOF$ACLOCAL$AUTOCONF$AUTOMAKE --add-missing./configure$MAKE check-not-foo# Update one of the macros.  This should cause ./configure, Makefile.in,# Makefile, lib/Makefile.in, and lib/Makefile to be updated.cat >m4/mymacro.m4 <<'EOF'AC_DEFUN([MY_MACRO], [AC_LIBOBJ([foo])])EOFusing_gmake || $MAKE$MAKE check-foo:
 |