[AC_MSG_WARN([botched installation for GNU Fortran 77 compiler])
_AM_SKIP_COMP_TESTS([GNU Fortran 77])])
+# GNU Java compiler.
+AC_ARG_VAR([GNU_GCJ], [GNU Java compiler])
+AC_ARG_VAR([GNU_GCJFLAGS], [GNU Java compiler flags])
+AC_CHECK_TOOLS([GNU_GCJ], [gcj], [false])
+AS_IF([AM_RUN_LOG([$GNU_GCJ --version && $GNU_GCJ -v])], [],
+ [AC_MSG_WARN([botched installation for GNU Java compiler])
+ _AM_SKIP_COMP_TESTS([GNU Java])])
+
# If we have been able to find at least a working compiler above, we
# know what the object and executable extensions for this platform are.
OBJEXT=${ac_cv_objext-UNKNOWN}
## required by them. ##
## ----------------------------------------------------------- ##
-# So that we can force the use of correct gcc, g++ etc., consistently
-# with cross-compilation settings.
-if cross_compiling; then
- am__tool_prefix="$host_alias-"
-else
- am__tool_prefix=
-fi
-
# Look for (and maybe set up) required tools and/or system features; skip
# the current test if they are not found.
for tool in : $required
unset make_
;;
gcj)
- GCJ=${am__tool_prefix}gcj
- export GCJ
- echo "$me: running $GCJ --version"
- $GCJ --version || skip_all_ "GNU Java compiler not available"
- echo "$me: running $GCJ -v"
- $GCJ -v || skip_all_ "botched installation for GNU Java compiler"
+ GCJ=$GNU_GCJ GCJFLAGS=$GNU_GCJFLAGS; export GCJ GCJFLAGS
+ test "$GCJ" = false && skip_all_ "GNU Java compiler unavailable"
;;
gcc)
CC=$GNU_CC CFLAGS=$GNU_CFLAGS; export CC CFLAGS CPPFLAGS