4 dnl CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
6 dnl This file is part of CACAO.
8 dnl This program is free software; you can redistribute it and/or
9 dnl modify it under the terms of the GNU General Public License as
10 dnl published by the Free Software Foundation; either version 2, or (at
11 dnl your option) any later version.
13 dnl This program is distributed in the hope that it will be useful, but
14 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
15 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 dnl General Public License for more details.
18 dnl You should have received a copy of the GNU General Public License
19 dnl along with this program; if not, write to the Free Software
20 dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 dnl where hpi_md.h is installed
26 AC_DEFUN([AC_CHECK_WITH_HPI_MD_H],[
27 AC_MSG_CHECKING(where hpi_md.h is installed)
28 AC_ARG_WITH([hpi_md_h],
29 [AS_HELP_STRING(--with-hpi_md_h=<dir>,path to hpi_md.h (only with --with-java-runtime-library=openjdk) [[default=${JAVA_RUNTIME_LIBRARY_PREFIX}/jdk/src/solaris/hpi/export]])],
30 [WITH_HPI_MD_H=${withval}],
31 [case "${WITH_JAVA_RUNTIME_LIBRARY}" in
33 WITH_HPI_MD_H=${JAVA_RUNTIME_LIBRARY_PREFIX}/jdk/src/solaris/hpi/export
38 AC_MSG_RESULT(${WITH_HPI_MD_H})
40 dnl We use CPPFLAGS so hpi.h can find hpi_md.h
41 CPPFLAGS="${CPPFLAGS} -I${WITH_HPI_MD_H}"
43 AC_CHECK_HEADER([${WITH_HPI_MD_H}/hpi_md.h],
44 [AC_DEFINE_UNQUOTED([INCLUDE_HPI_MD_H], "${WITH_HPI_MD_H}/hpi_md.h", [Java core library hpi_md.h header])],
45 [AC_MSG_ERROR(cannot find hpi_md.h)])
49 dnl where hpi.h is installed
51 AC_DEFUN([AC_CHECK_WITH_HPI_H],[
52 AC_MSG_CHECKING(where hpi.h is installed)
54 [AS_HELP_STRING(--with-hpi_h=<dir>,path to hpi.h (only with --with-java-runtime-library=openjdk) [[default=${JAVA_RUNTIME_LIBRARY_PREFIX}/jdk/src/share/hpi/export]])],
55 [WITH_HPI_H=${withval}],
56 [WITH_HPI_H=${JAVA_RUNTIME_LIBRARY_PREFIX}/jdk/src/share/hpi/export])
57 AC_MSG_RESULT(${WITH_HPI_H})
59 dnl We use CPPFLAGS so hpi.h can find hpi_md.h
60 CPPFLAGS="${CPPFLAGS} -I${WITH_HPI_H}"
62 AC_CHECK_HEADER([${WITH_HPI_H}/hpi.h],
63 [AC_DEFINE_UNQUOTED([INCLUDE_HPI_H], "${WITH_HPI_H}/hpi.h", [Java core library hpi.h header])],
64 [AC_MSG_ERROR(cannot find hpi.h)],
65 [#include INCLUDE_HPI_MD_H])