Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit fbe49f1

Browse files
authored
Merge pull request #1367 from nrgraham23/darwin_java_2x_fix
Adds darwin headers directory with Darwin JDK
2 parents 353e178 + 5b08f86 commit fbe49f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/opal_setup_java.m4

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ AC_DEFUN([OPAL_SETUP_JAVA],[
186186
# too. Ugh.
187187
AS_IF([test -d "$with_jdk_headers/solaris"],
188188
[OPAL_JDK_CPPFLAGS="$OPAL_JDK_CPPFLAGS -I$with_jdk_headers/solaris"])
189+
# Darwin JDK also require -I<blah>/darwin.
190+
# See if that's there, and if so, add a -I for that,
191+
# too. Ugh.
192+
AS_IF([test -d "$with_jdk_headers/darwin"],
193+
[OPAL_JDK_CPPFLAGS="$OPAL_JDK_CPPFLAGS -I$with_jdk_headers/darwin"])
189194

190195
CPPFLAGS="$CPPFLAGS $OPAL_JDK_CPPFLAGS"])
191196
AC_CHECK_HEADER([jni.h], [],

0 commit comments

Comments
 (0)