Merge branch 'yacc-quote-fix'
[platform/upstream/automake.git] / m4 / gcj.m4
1 # Check for Java compiler.                                  -*- Autoconf -*-
2 # For now we only handle the GNU compiler.
3
4 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
5 #
6 # This file is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # serial 8
11
12 AC_DEFUN([AM_PROG_GCJ],
13 [AC_CHECK_TOOLS([GCJ], [gcj], [gcj])
14 test -z "$GCJ" && AC_MSG_ERROR([no acceptable gcj found in \$PATH])
15 if test "x${GCJFLAGS-unset}" = xunset; then
16    GCJFLAGS="-g -O2"
17 fi
18 AC_SUBST([GCJFLAGS])
19 _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES(GCJ)])
20 ])