X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=m4%2Fjmm.m4;fp=m4%2Fjmm.m4;h=37c86ed5570d6e4fca021cf865aa7c9e6591695a;hb=f24e856e3c43a10dcc8581fd5ddbdda200d63aba;hp=0000000000000000000000000000000000000000;hpb=a266bddaca35ff9ccfa4171607e8b035fc70df2e;p=cacao.git diff --git a/m4/jmm.m4 b/m4/jmm.m4 new file mode 100644 index 000000000..37c86ed55 --- /dev/null +++ b/m4/jmm.m4 @@ -0,0 +1,42 @@ +dnl m4/jmm.m4 +dnl +dnl Copyright (C) 2008 Theobroma Systems Ltd. +dnl +dnl This file is part of CACAO. +dnl +dnl This program is free software; you can redistribute it and/or +dnl modify it under the terms of the GNU General Public License as +dnl published by the Free Software Foundation; either version 2, or (at +dnl your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, but +dnl WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +dnl General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program; if not, write to the Free Software +dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +dnl 02110-1301, USA. + + +dnl Check for jmm.h + +AC_DEFUN([AC_CHECK_WITH_JMM_H],[ +AC_MSG_CHECKING(where jmm.h is installed) +AC_ARG_WITH([jmm_h], + [AS_HELP_STRING(--with-jmm_h=,path to jmm.h (only with --with-java-runtime-library=openjdk) [[default=${JAVA_RUNTIME_LIBRARY_PREFIX}/jdk/src/share/javavm/export]])], + [WITH_JMM_H=${withval}], + [case "${WITH_JAVA_RUNTIME_LIBRARY}" in + openjdk) + WITH_JMM_H=${JAVA_RUNTIME_LIBRARY_PREFIX}/jdk/src/share/javavm/export + ;; + *) + ;; + esac]) +AC_MSG_RESULT(${WITH_JMM_H}) + +AC_CHECK_HEADER([${WITH_JMM_H}/jmm.h], + [AC_DEFINE_UNQUOTED([INCLUDE_JMM_H], "${WITH_JMM_H}/jmm.h", [Java runtime library jmm.h header])], + [AC_MSG_ERROR(cannot find jmm.h)]) +])