3 # Test for ansi2knr in another directory.
5 .
$srcdir/defs ||
exit 1
7 cat > configure.
in << 'END'
9 AM_INIT_AUTOMAKE
(liver
, 0.23)
12 AC_OUTPUT
(Makefile one
/Makefile two
/Makefile
)
15 cat > Makefile.am
<< 'END'
21 cat > one
/Makefile.am
<< 'END'
22 AUTOMAKE_OPTIONS
= ansi2knr
26 cat > two
/Makefile.am
<< 'END'
27 AUTOMAKE_OPTIONS
= ..
/one
/ansi2knr
31 cat > one
/joe.c
<< 'END'
34 main
(int argc
, char
*argv
[])
41 cat > two
/maude.c
<< 'END'
44 main
(int argc
, char
*argv
[])
53 (gcc
-v) > /dev
/null
2>&1 ||
exit 77
62 # This is ugly! If we set U at make time then the "wrong" file gets
64 find .
-name '*.Po' -print \
66 base
="`echo $file | sed -e 's/\.Po//'`"
70 # So is this! If we set ANSI2KNR on the make command line then the
71 # wrong value is passed to two's Makefile.
72 mv one
/Makefile one
/Makefile.old
73 sed -e 's,ANSI2KNR =,ANSI2KNR = ./ansi2knr,' < one
/Makefile.old
> one
/Makefile