12345678910111213141516171819202122232425262728293031323334353637383940 |
- #! /bin/sh
- . test-init.sh
- cat >> configure.ac << 'END'
- AM_PROG_AR([
- echo spy > bad-archiver-interface-detected
- AC_MSG_CHECKING([for something else])
- AC_MSG_RESULT([found it])
- echo Grep This
- ])
- END
- $ACLOCAL
- $AUTOCONF
- ./configure AR=/bin/false >stdout || { cat stdout; exit 1; }
- cat stdout
- grep '^checking.* archiver .*interface.*\.\.\. unknown$' stdout
- grep '^checking for something else\.\.\. found it$' stdout
- grep '^Grep This$' stdout
- test -f bad-archiver-interface-detected
- :
|