1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #! /bin/sh
- . test-init.sh
- echo AC_OUTPUT >> configure.ac
- cat > Makefile.am <<'END'
- include $(srcdir)/foobar.am
- include $(srcdir)/zardoz.am
- END
- : > foobar.am
- : > zardoz.am
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE
- ./configure
- ocwd=$(pwd) || fatal_ "cannot get current working directory"
- for vpath in false :; do
- $MAKE distdir
- test -f $distdir/zardoz.am
- rm -f $distdir/zardoz.am
- if $vpath; then
-
-
- mkdir vpath-distcheck
- cd vpath-distcheck
- ../$distdir/configure
- else
- cd $distdir
- ./configure
- fi
- run_make -e FAIL -M
-
-
- grep 'cannot open.*zardoz\.am' output
- grep 'foobar\.am' output && exit 1
- cd "$ocwd" || fatal_ "cannot chdir back to top-level test directory"
- done
- :
|