contrib: new, a directory for non-mainstream functionalities
[automake.git] / m4 / gcj.m4
blob49dbe1f1ffc2a7c8f8f83dbc6843935b82272af3
1 # Check for Java compiler.                                  -*- Autoconf -*-
2 # For now we only handle the GNU compiler.
4 # Copyright (C) 1999, 2000, 2003, 2005, 2009, 2011 Free Software
5 # Foundation, Inc.
7 # This file is free software; the Free Software Foundation
8 # gives unlimited permission to copy and/or distribute it,
9 # with or without modifications, as long as this notice is preserved.
11 # serial 1
13 AC_DEFUN([AM_PROG_GCJ],[
14 AC_CHECK_TOOLS(GCJ, gcj, gcj)
15 test -z "$GCJ" && AC_MSG_ERROR([no acceptable gcj found in \$PATH])
16 if test "x${GCJFLAGS-unset}" = xunset; then
17    GCJFLAGS="-g -O2"
19 AC_SUBST(GCJFLAGS)
20 _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES(GCJ)])