* m4/depend.m4 (AM_DEP_TRACK): Use AM_CONDITIONAL to define AMDEP.
* automake.in (&add_depend2): Transform %AMDEP% into `AMDEP' (leading
to a configure time if/endif), or to `FALSE' (static removal of
the code).
(&handle_dependencies): Adjust to use `AMDEP_TRUE'.
* depend2.am: Use if/endif.
Adjust the 101 tests that use dependencies so that they
properly invoke aclocal before automake. They need to `see'
`AM_CONDITIONAL([AMDEP], ...)'.
2001-04-09 Akim Demaille <akim@epita.fr>
+ Use AM_CONDITIONAL and if/endif for AMDEP.
+
+ * m4/depend.m4 (AM_DEP_TRACK): Use AM_CONDITIONAL to define AMDEP.
+ * automake.in (&add_depend2): Transform %AMDEP% into `AMDEP' (leading
+ to a configure time if/endif), or to `FALSE' (static removal of
+ the code).
+ (&handle_dependencies): Adjust to use `AMDEP_TRUE'.
+ * depend2.am: Use if/endif.
+
+ Adjust the 101 tests that use dependencies so that they
+ properly invoke aclocal before automake. They need to `see'
+ `AM_CONDITIONAL([AMDEP], ...)'.
+
+2001-04-09 Akim Demaille <akim@epita.fr>
+
* tags.am: Fix missing leading tabs.
2001-04-09 Akim Demaille <akim@epita.fr>
my %transform = ('PFX' => $pfx,
'FPFX' => $fpfx,
'LIBTOOL' => $seen_libtool,
- 'AMDEP' => $use_dependencies);
+ 'AMDEP' => $use_dependencies ? 'AMDEP' : 'FALSE');
# This function can be called even when we don't want dependency
# tracking. This happens when we need an explicit rule for some
# We define this as a conditional variable because BSD
# make can't handle backslashes for continuing comments on
# the following line.
- &define_pretty_variable ('DEP_FILES', 'AMDEP', @deplist);
+ &define_pretty_variable ('DEP_FILES', 'AMDEP_TRUE', @deplist);
# Generate each `include' individually. Irix 6 make will
# not properly include several files resulting from a
$output_rules .= "\n";
foreach my $iter (@deplist)
{
- $output_rules .= "\@AMDEP\@\@_am_include\@ " . $iter . "\n";
+ $output_rules .= '@AMDEP_TRUE@@_am_include@ ' . $iter . "\n";
}
$output_rules .= &file_contents ('depend');
## - once per language for generic compilation rules
## - once for each file which requires specific flags.
-?GENERIC??AMDEP?@AMDEP@%FPFX%DEPMODE = @%FPFX%DEPMODE@
+## Note it is on purpose we wrote `if %AMDEP%', since %AMDEP% becomes
+## '@AMDEP_TRUE@' if dependencies are to be used, otherwise FALSE.
+
+if %AMDEP%
+?GENERIC?%FPFX%DEPMODE = @%FPFX%DEPMODE@
+endif %AMDEP%
?GENERIC?%EXT%.o:
?!GENERIC?%OBJ%: %SOURCE%
-?AMDEP?@AMDEP@ source='%SOURCE%' object='%OBJ%' libtool=no @AMDEPBACKSLASH@
-?AMDEP?@AMDEP@ depfile='$(DEPDIR)/%BASE%.Po' tmpdepfile='$(DEPDIR)/%BASE%.TPo' @AMDEPBACKSLASH@
-?AMDEP?@AMDEP@ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
+if %AMDEP%
+ source='%SOURCE%' object='%OBJ%' libtool=no @AMDEPBACKSLASH@
+ depfile='$(DEPDIR)/%BASE%.Po' tmpdepfile='$(DEPDIR)/%BASE%.TPo' @AMDEPBACKSLASH@
+ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
+endif %AMDEP%
%COMPILE% -c -o %OBJ% `test -f %SOURCE% || echo '$(srcdir)/'`%SOURCE%
-?LIBTOOL??GENERIC?%EXT%.lo:
-?LIBTOOL??!GENERIC?%LTOBJ%: %SOURCE%
-?LIBTOOL??AMDEP?@AMDEP@ source='%SOURCE%' object='%LTOBJ%' libtool=yes @AMDEPBACKSLASH@
-?LIBTOOL??AMDEP?@AMDEP@ depfile='$(DEPDIR)/%BASE%.Plo' tmpdepfile='$(DEPDIR)/%BASE%.TPlo' @AMDEPBACKSLASH@
-?LIBTOOL??AMDEP?@AMDEP@ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
-?LIBTOOL? %LTCOMPILE% -c -o %LTOBJ% `test -f %SOURCE% || echo '$(srcdir)/'`%SOURCE%
+if %?LIBTOOL?%
+?GENERIC?%EXT%.lo:
+?!GENERIC?%LTOBJ%: %SOURCE%
+if %AMDEP%
+ source='%SOURCE%' object='%LTOBJ%' libtool=yes @AMDEPBACKSLASH@
+ depfile='$(DEPDIR)/%BASE%.Plo' tmpdepfile='$(DEPDIR)/%BASE%.TPlo' @AMDEPBACKSLASH@
+ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
+endif %AMDEP%
+ %LTCOMPILE% -c -o %LTOBJ% `test -f %SOURCE% || echo '$(srcdir)/'`%SOURCE%
+endif %?LIBTOOL?%
?GENERIC?%EXT%.obj:
?!GENERIC?%OBJOBJ%: %SOURCE%
-?AMDEP?@AMDEP@ source='%SOURCE%' object='%OBJOBJ%' libtool=no @AMDEPBACKSLASH@
-?AMDEP?@AMDEP@ depfile='$(DEPDIR)/%BASE%.Po' tmpdepfile='$(DEPDIR)/%BASE%.TPo' @AMDEPBACKSLASH@
-?AMDEP?@AMDEP@ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
+if %AMDEP%
+ source='%SOURCE%' object='%OBJOBJ%' libtool=no @AMDEPBACKSLASH@
+ depfile='$(DEPDIR)/%BASE%.Po' tmpdepfile='$(DEPDIR)/%BASE%.TPo' @AMDEPBACKSLASH@
+ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
+endif %AMDEP%
%COMPILE% -c -o %OBJOBJ% `cygpath -w %SOURCE%`
## - once per language for generic compilation rules
## - once for each file which requires specific flags.
-?GENERIC??AMDEP?@AMDEP@%FPFX%DEPMODE = @%FPFX%DEPMODE@
+## Note it is on purpose we wrote `if %AMDEP%', since %AMDEP% becomes
+## '@AMDEP_TRUE@' if dependencies are to be used, otherwise FALSE.
+
+if %AMDEP%
+?GENERIC?%FPFX%DEPMODE = @%FPFX%DEPMODE@
+endif %AMDEP%
?GENERIC?%EXT%.o:
?!GENERIC?%OBJ%: %SOURCE%
-?AMDEP?@AMDEP@ source='%SOURCE%' object='%OBJ%' libtool=no @AMDEPBACKSLASH@
-?AMDEP?@AMDEP@ depfile='$(DEPDIR)/%BASE%.Po' tmpdepfile='$(DEPDIR)/%BASE%.TPo' @AMDEPBACKSLASH@
-?AMDEP?@AMDEP@ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
+if %AMDEP%
+ source='%SOURCE%' object='%OBJ%' libtool=no @AMDEPBACKSLASH@
+ depfile='$(DEPDIR)/%BASE%.Po' tmpdepfile='$(DEPDIR)/%BASE%.TPo' @AMDEPBACKSLASH@
+ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
+endif %AMDEP%
%COMPILE% -c -o %OBJ% `test -f %SOURCE% || echo '$(srcdir)/'`%SOURCE%
-?LIBTOOL??GENERIC?%EXT%.lo:
-?LIBTOOL??!GENERIC?%LTOBJ%: %SOURCE%
-?LIBTOOL??AMDEP?@AMDEP@ source='%SOURCE%' object='%LTOBJ%' libtool=yes @AMDEPBACKSLASH@
-?LIBTOOL??AMDEP?@AMDEP@ depfile='$(DEPDIR)/%BASE%.Plo' tmpdepfile='$(DEPDIR)/%BASE%.TPlo' @AMDEPBACKSLASH@
-?LIBTOOL??AMDEP?@AMDEP@ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
-?LIBTOOL? %LTCOMPILE% -c -o %LTOBJ% `test -f %SOURCE% || echo '$(srcdir)/'`%SOURCE%
+if %?LIBTOOL?%
+?GENERIC?%EXT%.lo:
+?!GENERIC?%LTOBJ%: %SOURCE%
+if %AMDEP%
+ source='%SOURCE%' object='%LTOBJ%' libtool=yes @AMDEPBACKSLASH@
+ depfile='$(DEPDIR)/%BASE%.Plo' tmpdepfile='$(DEPDIR)/%BASE%.TPlo' @AMDEPBACKSLASH@
+ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
+endif %AMDEP%
+ %LTCOMPILE% -c -o %LTOBJ% `test -f %SOURCE% || echo '$(srcdir)/'`%SOURCE%
+endif %?LIBTOOL?%
?GENERIC?%EXT%.obj:
?!GENERIC?%OBJOBJ%: %SOURCE%
-?AMDEP?@AMDEP@ source='%SOURCE%' object='%OBJOBJ%' libtool=no @AMDEPBACKSLASH@
-?AMDEP?@AMDEP@ depfile='$(DEPDIR)/%BASE%.Po' tmpdepfile='$(DEPDIR)/%BASE%.TPo' @AMDEPBACKSLASH@
-?AMDEP?@AMDEP@ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
+if %AMDEP%
+ source='%SOURCE%' object='%OBJOBJ%' libtool=no @AMDEPBACKSLASH@
+ depfile='$(DEPDIR)/%BASE%.Po' tmpdepfile='$(DEPDIR)/%BASE%.TPo' @AMDEPBACKSLASH@
+ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
+endif %AMDEP%
%COMPILE% -c -o %OBJOBJ% `cygpath -w %SOURCE%`
[AC_ARG_ENABLE(dependency-tracking,
[ --disable-dependency-tracking Speeds up one-time builds
--enable-dependency-tracking Do not reject slow dependency extractors])
-if test "x$enable_dependency_tracking" = xno; then
- AMDEP="#"
-else
+if test "x$enable_dependency_tracking" != xno; then
am_depcomp="$ac_aux_dir/depcomp"
- if test ! -f "$am_depcomp"; then
- AMDEP="#"
- else
- AMDEP=
- fi
-fi
-AC_SUBST(AMDEP)
-if test -z "$AMDEP"; then
AMDEPBACKSLASH='\'
-else
- AMDEPBACKSLASH=
fi
+AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
pushdef([subst], defn([AC_SUBST]))
subst(AMDEPBACKSLASH)
popdef([subst])
: > ansi2knr.c
: > ansi2knr.1
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep '^all[-a-z]*:.*ANSI2KNR' Makefile.in
: > ansi2knr.c
: > hello.c
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep 'ansi2knr.$(' Makefile.in || exit 1
frob
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep '^_SOURCE' Makefile.in && exit 1
a_b_SOURCES = ab.c
END
+$ACLOCAL || exit 1
$AUTOMAKE
sniff-glue_SOURCES = sg.c
END
+$ACLOCAL || exit 1
$AUTOMAKE && exit 1
exit 0
: > perm-number.c
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep 'perm_number\.c' Makefile.in && exit 1
libx_y_a_SOURCES = xy.c
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep '^libx-y.*=' Makefile.in && exit 1
123test_SOURCES = 123.c
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
cat > Makefile.am << 'END'
bin_PROGRAMS = sim_products receive_th receive_pos # image_proc
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep '^image_proc' Makefile.in && exit 1
: > bar.c
: > baz.cc
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
targ_SOURCES = $(SONE) $(STWO) $(STHREE)
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
# `b top' so that
targ_SOURCES = main.c $(OPT1) $(OPT2)
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
test "`grep TWO_FALSE Makefile.in | wc -l`" -eq 2
# The bug is that automake hangs. So we give it a few seconds and
# then kill it.
+$ACLOCAL || exit 1
$AUTOMAKE &
pid=$!
endif
END
+$ACLOCAL || exit 1
$AUTOMAKE
BUILT_SOURCES = $(nodist_librsaref_a_SOURCES)
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep librsaref.a.c Makefile.in && exit 1
: > config.h.in
: > two.h.in
+$ACLOCAL || exit 1
$AUTOMAKE
: > include/Makefile.am
: > include/config.h.in
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
egrep '^DEFS =.* -I(\.|\$\(top_builddir\))/include' Makefile.in
mkdir subdir
: > subdir/config.h.in
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep '^subdir/config.h:' Makefile.in
bin_PROGRAMS = fred
EOF
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
if grep '@CONFIG_INCLUDE_SPEC@' Makefile.in; then
mv depcomp subdir
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
# Make sure subdir Makefile.in doesn't itself look in the subdir.
: > doe.C
: > jane.C
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep '$U' Makefile.in && exit 1
: > doe.C
: > jane.C
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep CC Makefile.in
: > lava.c
: > lamp.cxx
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
# Look for this macro not at the beginning of any line; that will have
: > doe.C
: > jane.C
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep CC Makefile.in | grep -v MKDEP && exit 1
: > doe.C
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep 'doe.$(OBJEXT)' Makefile.in
: > www.c
: > xtra.c
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep '^CYGWIN' Makefile.in && exit 1
: > memcmp.c
+$ACLOCAL || exit 1
$AUTOMAKE
fred.c
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
# In this case we no longer expect to find DEP_FILES.
TerraVision_DEPENDENCIES = $(DEPS)
END
+$ACLOCAL || exit 1
$AUTOMAKE
: > fsusage.c
+$ACLOCAL || exit 1
$AUTOMAKE && exit 1
exit 0
bin_PROGRAMS = spice nutmeg help sconvert multidec nutmeg
END
+$ACLOCAL || exit 1
$AUTOMAKE
pavel_SOURCES =
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep 'pavel\.[co]' Makefile.in && exit 1
bin_PROGRAMS = pavel
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep 'pavel\.[co]' Makefile.in
zoo_LDADD = $(zoo_DEPENDENCIES)
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep zoo. Makefile.in && exit 1
exit 0
: > www.c
: > xtra.c
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep '@_am_include@ .*/xtra\.P' Makefile.in
foo_SOURCES = 1.f 2.for 3.f90 4.F 5.r 6.m
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
for ext in f for f90 F r m
EXTRA_PROGRAMS = zardoz
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep "^zardoz" Makefile.in || exit 1
: > joe.c
: > qq.h
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep '[^@]MY_HEADERS' Makefile.in && exit 1
noinst_PROGRAMS = libapp_1
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep '^libapp_1_OBJECTS' Makefile.in | fgrep '.$(OBJEXT)'
qqq_SOURCES = $(s1)
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep 'z.$(OBJEXT)' Makefile.in
x_LDADD = $(X_EXTRA_LIBS)
END
+$ACLOCAL || exit 1
$AUTOMAKE
: > config.sub
: > q.c
+$ACLOCAL || exit 1
$AUTOMAKE && exit 1
exit 0
: > config.sub
: > q.c
+$ACLOCAL || exit 1
$AUTOMAKE
: > joe.l
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep '\$(LEX)' Makefile.in
: > joe.l
+$ACLOCAL || exit 1
$AUTOMAKE --Wno-error 2> output || exit 1
test -n "`cat output`"
: > joe.l
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep joel Makefile.in && exit 1
: > joe.ll
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep joe.Po Makefile.in
: > fsusage.c
: > mountlist.c
+$ACLOCAL || exit 1
$AUTOMAKE
libfoo_a_LIBADD = @LIBOBJS@
END
+$ACLOCAL || exit 1
$AUTOMAKE && exit 1
echo 'BUILT_SOURCES = foo.c' >> Makefile.am
mv depcomp subdir
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep 'fsusage\.c' subdir/Makefile.in
AC_REPLACE_FUNCS(foo)
END
+$ACLOCAL || exit 1
$AUTOMAKE
: > foo.c
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep foo.c Makefile.in
: > fsusage.c
: > mountlist.c
+$ACLOCAL || exit 1
$AUTOMAKE
: > dirname.c
: > strsignal.c
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
sed -n -e ': again
: > ansi2knr.1
: > ansi2knr.c
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep 'strsignal_.c:' Makefile.in
: > mountlist.c
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
libfoo_a_DEPENDENCIES = libzot.a
END
+$ACLOCAL || exit 1
$AUTOMAKE
: > lava.c
: > lamp.cxx
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
: > lava.c
: > lamp.f
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
: > lamp.cxx
: > lamp2.f
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
: > lava.cxx
: > lamp.f
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
: > config.guess
: > config.sub
+$ACLOCAL || exit 1
$AUTOMAKE
: > config.guess
: > config.sub
+$ACLOCAL || exit 1
$AUTOMAKE
: > y.c
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep '%' Makefile.in && exit 1
: > b.c
: > c.c
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep '^am_eyeball_OBJECTS' Makefile.in || exit 1
AC_PROG_RANLIB
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep 'noinstdir' Makefile.in && exit 1
foo_SOURCES = foo.c
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep -e '-I.' Makefile.in && exit 1
bin_PROGRAMS = zardoz
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
count=`grep -c '^zardoz_OBJECTS' Makefile.in`
: > foo.m
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep '^LINK' Makefile.in
doz.c
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep zar.cdoz Makefile.in && exit 1
: > foo.c
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep '@CC@ -Dwhatever' Makefile.in
: > q.c
+$ACLOCAL || exit 1
$AUTOMAKE && exit 1
exit 0
: > config.guess
: > config.sub
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep '^LINK ' Makefile.in
bni_PROGRAMS = zardoz
EOF
+$ACLOCAL || exit 1
$AUTOMAKE
EXTRA_PROGRAMS = joe @more@
END
+$ACLOCAL || exit 1
$AUTOMAKE && exit 1
exit 0
: > config.guess
: > config.sub
+$ACLOCAL || exit 1
$AUTOMAKE
foo = $(bin_PROGRAMS)
END
+$ACLOCAL || exit 1
$AUTOMAKE && exit 1
exit 0
> chgrp.1
> chgrp.x
-$AUTOMAKE
\ No newline at end of file
+$ACLOCAL || exit 1
+$AUTOMAKE
EXTRA_x_SOURCES = y.c
END
+$ACLOCAL || exit 1
$AUTOMAKE && exit 1
exit 0
foo_SOURCES = foo.c
END
+$ACLOCAL || exit 1
$AUTOMAKE
END
# Make sure `compile' is required.
+$ACLOCAL || exit 1
$AUTOMAKE && exit 1
: > compile
END
# Make sure `compile' is required.
+$ACLOCAL || exit 1
$AUTOMAKE && exit 1
: > compile
: > compile
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep -e '-o foo-foo' Makefile.in
: > compile
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep 'test1.o.o' Makefile.in && exit 1
: > compile
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep '$(foo_CFLAGS)' Makefile.in
qardoz_LDADD = -ljoe
END
+$ACLOCAL || exit 1
$AUTOMAKE && exit 1
exit 0
noinst_LIBRARIES = foo
END
+$ACLOCAL || exit 1
$AUTOMAKE 2> output.log && exit 1
# We're specifically testing for line-number information.
# Well, when it is implemented.
: > y.c
: > x/z.c
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep '^z\.o: x/z\.c$' Makefile.in
pkgdata_DATA =
END
+$ACLOCAL || exit 1
$AUTOMAKE --gnu || exit 1
# Make sure that depcomp is *not* included in the definition
: > compile
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep 'generic/a.$(OBJEXT)' Makefile.in || exit 1
: > compile
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
fgrep 'generic/a.$(OBJEXT)' Makefile.in || exit 1
: > compile
: > d2/z.c
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep 'CC.*z' d1/Makefile.in
noinst_PROGRAMS = foo
END
+$ACLOCAL || exit 1
$AUTOMAKE -i || exit 1
grep '^\.c\.o' Makefile.in > /dev/null || exit 1
set -e
+$ACLOCAL || exit 1
$AUTOMAKE -a
grep -c '^\.c\.o:' Makefile.in | grep '^1$'
foo_SOURCES = foo.zoo
END
+$ACLOCAL || exit 1
$AUTOMAKE --Wno-error || exit 1
fgrep foo.cc Makefile.in && exit 1
echo > consud.c
+$ACLOCAL || exit 1
$AUTOMAKE && exit 1
exit 0
: > z.c
: > x/z.c
+$ACLOCAL || exit 1
$AUTOMAKE && exit 1
exit 0
zardoz_SOURCES = zardoz.y
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep 'zardoz.c' Makefile.in
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
# If zardoz.h IS mentioned, fail
@echo $(DIST_COMMON)
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
# It should not be disted here
zardoz_SOURCES = zardoz.yy
END
+$ACLOCAL || exit 1
$AUTOMAKE || exit 1
grep zardoz.cc Makefile.in