3 dnl Copyright (C) 2008 Theobroma Systems Ltd.
5 dnl This file is part of CACAO.
7 dnl This program is free software; you can redistribute it and/or
8 dnl modify it under the terms of the GNU General Public License as
9 dnl published by the Free Software Foundation; either version 2, or (at
10 dnl your option) any later version.
12 dnl This program is distributed in the hope that it will be useful, but
13 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
14 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 dnl General Public License for more details.
17 dnl You should have received a copy of the GNU General Public License
18 dnl along with this program; if not, write to the Free Software
19 dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25 AC_DEFUN([AC_CHECK_WITH_JMM_H],[
26 AC_MSG_CHECKING(where jmm.h is installed)
28 [AS_HELP_STRING(--with-jmm_h=<dir>,path to jmm.h (only with --with-java-runtime-library=openjdk) [[default=${JAVA_RUNTIME_LIBRARY_PREFIX}/jdk/src/share/javavm/export]])],
29 [WITH_JMM_H=${withval}],
30 [case "${WITH_JAVA_RUNTIME_LIBRARY}" in
32 WITH_JMM_H=${JAVA_RUNTIME_LIBRARY_PREFIX}/jdk/src/share/javavm/export
37 AC_MSG_RESULT(${WITH_JMM_H})
39 AC_CHECK_HEADER([${WITH_JMM_H}/jmm.h],
40 [AC_DEFINE_UNQUOTED([INCLUDE_JMM_H], "${WITH_JMM_H}/jmm.h", [Java runtime library jmm.h header])],
41 [AC_MSG_ERROR(cannot find jmm.h)])