blob: 4c83c6c72cc736157c672b32b70dc5f88e30fee5 [file] [log] [blame]
# Check for Java compiler. -*- Autoconf -*-
# For now we only handle the GNU compiler.
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
AC_DEFUN([AM_PROG_GCJ],
[AC_CHECK_TOOLS([GCJ], [gcj], [gcj])
test -z "$GCJ" && AC_MSG_ERROR([no acceptable gcj found in \$PATH])
if test "x${GCJFLAGS-unset}" = xunset; then
GCJFLAGS="-g -O2"
fi
AC_SUBST([GCJFLAGS])
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES(GCJ)])
])