Skip to content

Commit c8d38d3

Browse files
authored
Merge pull request #3618 from kawashima-fj/pr/java-doc-man
java: Detect `javadoc` path and improve `mpijavac` man page
2 parents 037a85a + 76b1f80 commit c8d38d3

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ ompi/tools/wrappers/mpicc.1
256256
ompi/tools/wrappers/mpic++.1
257257
ompi/tools/wrappers/mpicxx.1
258258
ompi/tools/wrappers/mpifort.1
259+
ompi/tools/wrappers/mpijavac.1
259260
ompi/tools/wrappers/ompi_wrapper_script
260261
ompi/tools/wrappers/ompi.pc
261262
ompi/tools/wrappers/ompi-c.pc

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

ompi/tools/wrappers/Makefile.am

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# Copyright (c) 2013 Intel, Inc. All rights reserved.
1515
# Copyright (c) 2014 Research Organization for Information Science
1616
# and Technology (RIST). All rights reserved.
17+
# Copyright (c) 2017 FUJITSU LIMITED. All rights reserved.
1718
# $COPYRIGHT$
1819
#
1920
# Additional copyrights may follow
@@ -24,14 +25,15 @@
2425
include $(top_srcdir)/Makefile.ompi-rules
2526

2627
generated_man_pages = mpicc.1 mpic++.1 mpicxx.1 mpifort.1 mpif77.1 mpif90.1
27-
man_pages = $(generated_man_pages)
28-
29-
EXTRA_DIST = mpif77.1in mpijavac.1 mpijavac.pl.in
3028

3129
if OMPI_WANT_JAVA_BINDINGS
32-
man_pages += mpijavac.1
30+
generated_man_pages += mpijavac.1
3331
endif
3432

33+
man_pages = $(generated_man_pages)
34+
35+
EXTRA_DIST = mpif77.1in mpijavac.1in mpijavac.pl.in
36+
3537
if OPAL_WANT_SCRIPT_WRAPPER_COMPILERS
3638

3739
bin_SCRIPTS = ompi_wrapper_script

ompi/tools/wrappers/mpijavac.1 renamed to ompi/tools/wrappers/mpijavac.1in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.\" Copyright (c) 2012 Los Alamos National Security, LLC. All rights reserved.
2-
.TH mpijava 1 "Unreleased developer copy" "1.7a1r25839M" "Open MPI"
2+
.\" Copyright (c) 2017 FUJITSU LIMITED. All rights reserved.
3+
.TH mpijava 1 "#OPAL_DATE#" "#PACKAGE_VERSION#" "#PACKAGE_NAME#"
34
.
45
.SH NAME
56
mpijava -- Open MPI Java wrapper compiler

0 commit comments

Comments
 (0)