3 # Test of subdir objects with C++.
5 .
$srcdir/defs ||
exit 1
7 cat > configure.
in << 'END'
9 AM_INIT_AUTOMAKE
(hello
,0.23)
10 dnl Prevent automake from looking
in .. and ..
/..
18 cat > Makefile.am
<< 'END'
19 AUTOMAKE_OPTIONS
= subdir-objects
21 hello_SOURCES
= sub
/hello.c
25 cat > sub
/hello.c
<< 'END'
28 main
(int argc
, char
*argv
[])
30 printf ("yeah, yeah\n");
35 # Fail gracefully if no autoconf.
39 (gcc
-v) > /dev
/null
2>&1 ||
exit 77
41 # We use gcc and not gcc -traditional as the latter fails on some
42 # Linux boxes (Red Hat 5.1 in particular).
46 && CC
='gcc' .
/configure \
47 && $MAKE ANSI2KNR
=.
/ansi2knr U
=_ \