Skip to content

Commit

Permalink
Merge pull request open-mpi#1366 from nrgraham23/darwin_java_fix
Browse files Browse the repository at this point in the history
Adds darwin headers directory with Darwin JDK
  • Loading branch information
rhc54 authored Sep 17, 2016
2 parents d9426a8 + e3c8f6d commit 373720f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/opal_setup_java.m4
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ AC_DEFUN([OPAL_SETUP_JAVA],[
# too. Ugh.
AS_IF([test -d "$with_jdk_headers/solaris"],
[OPAL_JDK_CPPFLAGS="$OPAL_JDK_CPPFLAGS -I$with_jdk_headers/solaris"])
# Darwin JDK also require -I<blah>/darwin.
# See if that's there, and if so, add a -I for that,
# too. Ugh.
AS_IF([test -d "$with_jdk_headers/darwin"],
[OPAL_JDK_CPPFLAGS="$OPAL_JDK_CPPFLAGS -I$with_jdk_headers/darwin"])

CPPFLAGS="$CPPFLAGS $OPAL_JDK_CPPFLAGS"])
AC_CHECK_HEADER([jni.h], [],
Expand Down

0 comments on commit 373720f

Please sign in to comment.