3 dnl Copyright (C) 2007 R. Grafl, A. Krall, C. Kruegel,
4 dnl C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5 dnl E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6 dnl J. Wenninger, Institut f. Computersprachen - TU Wien
8 dnl This file is part of CACAO.
10 dnl This program is free software; you can redistribute it and/or
11 dnl modify it under the terms of the GNU General Public License as
12 dnl published by the Free Software Foundation; either version 2, or (at
13 dnl your option) any later version.
15 dnl This program is distributed in the hope that it will be useful, but
16 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
17 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 dnl General Public License for more details.
20 dnl You should have received a copy of the GNU General Public License
21 dnl along with this program; if not, write to the Free Software
22 dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
26 dnl check if a libjvm.so should be built
28 AC_DEFUN([AC_CHECK_ENABLE_LIBJVM],[
29 AC_MSG_CHECKING(whether to build a libjvm.so)
30 AC_ARG_ENABLE([libjvm],
31 [AS_HELP_STRING(--disable-libjvm,build a libjvm.so [[default=enabled]])],
32 [case "${enableval}" in
41 AC_MSG_RESULT(${ENABLE_LIBJVM})
42 AM_CONDITIONAL([ENABLE_LIBJVM], test x"${ENABLE_LIBJVM}" = "xyes")
43 AC_SUBST(ENABLE_LIBJVM)
45 if test x"${ENABLE_LIBJVM}" = "xyes"; then
46 AC_DEFINE([ENABLE_LIBJVM], 1, [enable libjvm.so])
48 dnl set AC_ENABLE_SHARED and AC_DISABLE_STATIC properly