Skip to content

Commit

Permalink
GNU build: Allow setting --with-java to Apple JDK 6
Browse files Browse the repository at this point in the history
git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@14026 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
  • Loading branch information
mark committed Aug 1, 2014
1 parent f24e54f commit 0340749
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions m4/mm_java.m4
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,18 @@ AC_DEFUN([MM_JAVA_HOME_SET_IF_JDK], [
],
[
AC_MSG_RESULT([no])
mm_java_home_candidate_is_jdk=no
break
# Apple JDK 6 has an incomplete JAVA_HOME lacking the JNI headers. We
# make an exception and allow this to pass as a JAVA_HOME, since we
# know how to deal with it specially (see MM_HEADERS_JNI).
# We do not need to do this for versions of Apple JDK 6 that get
# installed in /Library/Java/JavaVirtualMachines; those do contain an
# include directory.
AS_IF([test "$mm_java_home_candidate" = "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home"],
[],
[
mm_java_home_candidate_is_jdk=no
break
])
])
break
Expand Down

0 comments on commit 0340749

Please sign in to comment.