Skip to content

Commit 63f0945

Browse files
committed
java: Detect the path of javadoc in configure
Without this change, the directory of `javadoc` command must be included in the `PATH` environment variable at `make`-time. Paths of `javac`, `javah`, and `jar` commands are detected in `configure`. So the path of `javadoc` also should be detected. Signed-off-by: KAWASHIMA Takahiro <[email protected]>
1 parent 6ff2780 commit 63f0945

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

config/opal_setup_java.m4

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dnl Copyright (c) 2008-2013 Cisco Systems, Inc. All rights reserved.
1717
dnl Copyright (c) 2013 Intel, Inc. All rights reserved.
1818
dnl Copyright (c) 2015 Research Organization for Information Science
1919
dnl and Technology (RIST). All rights reserved.
20+
dnl Copyright (c) 2017 FUJITSU LIMITED. All rights reserved.
2021
dnl $COPYRIGHT$
2122
dnl
2223
dnl Additional copyrights may follow
@@ -162,10 +163,11 @@ AC_DEFUN([OPAL_SETUP_JAVA],[
162163
AC_PATH_PROG(JAVAC, javac)
163164
AC_PATH_PROG(JAVAH, javah)
164165
AC_PATH_PROG(JAR, jar)
166+
AC_PATH_PROG(JAVADOC, javadoc)
165167
PATH=$opal_java_PATH_save
166168

167-
# Check to see if we have all 3 programs.
168-
AS_IF([test -z "$JAVAC" || test -z "$JAVAH" || test -z "$JAR"],
169+
# Check to see if we have all 4 programs.
170+
AS_IF([test -z "$JAVAC" || test -z "$JAVAH" || test -z "$JAR" || test -z "$JAVADOC"],
169171
[opal_java_happy=no
170172
HAVE_JAVA_SUPPORT=0],
171173
[opal_java_happy=yes

ompi/mpi/java/java/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Copyright (c) 2011-2014 Cisco Systems, Inc. All rights reserved.
44
# Copyright (c) 2015 Los Alamos National Security, LLC. All rights
55
# reserved.
6+
# Copyright (c) 2017 FUJITSU LIMITED. All rights reserved.
67
# $COPYRIGHT$
78
#
89
# Additional copyrights may follow
@@ -179,7 +180,7 @@ jdoc: doc
179180
# mpi.jar is ever rebuilt, then also make the docs eligible to be
180181
# rebuilt.
181182
doc: mpi/MPI.class
182-
$(OMPI_V_JAVADOC) javadoc $(OMPI_V_JAVADOC_QUIET) -d doc $(srcdir)/*.java
183+
$(OMPI_V_JAVADOC) $(JAVADOC) $(OMPI_V_JAVADOC_QUIET) -d doc $(srcdir)/*.java
183184
@touch doc
184185

185186
jdoc-install: doc

0 commit comments

Comments
 (0)