2008-03-07 Peter O'Gorman <peter@pogma.com>
+ * tests/convenience.at (Java convenience archives): Skip test if
+ gcj cannot compile a working executable from .java files.
+ Report by Nelson H. F. Beebe.
+
* libltdl/m4/libtool.m4 (_LT_LANG_GCJ_CONFIG): Need to set LD.
Reported by Nelson H. F. Beebe.
# There are just too many broken gcj installations out there, either missing
# libgcj.spec or unable to find it. Skip this test for them.
if test $i -eq 1; then
- AT_CHECK[($GCJ $GCJFLAGS -c foo1.java || exit 77], [], [ignore], [ignore])
- rm -f foo1.o foo1.obj
+ AT_CHECK([$GCJ $GCJFLAGS -c foo1.java || exit 77], [], [ignore], [ignore])
+ AT_CHECK([$GCJ $GCJFLAGS --main=foo1 -o foo1 foo1.java A1.java || exit 77],[],[ignore],[ignore])
+ AT_CHECK([./foo1$EXEEXT || exit 77],[],[ignore],[ignore])
+ rm -f foo1.o foo1.obj foo1$EXEEXT
fi
$LIBTOOL --tag=GCJ --mode=compile $GCJ $GCJFLAGS -c foo$i.java