# HG changeset patch # User Rik # Date 1383262712 25200 # Node ID af924e6572cb0b9f842f64effa6dc6504ceb859d # Parent f1b59ef34eda254b4faf97e2e5d4c8406d0e3170 build: Don't search path at compile time for jvm on Win32 platforms. * configure.ac: Don't search path for jvm on Win32 platforms. It is found through registry at runtime. diff -r f1b59ef34eda -r af924e6572cb configure.ac --- a/configure.ac Thu Oct 31 17:26:04 2013 -0400 +++ b/configure.ac Thu Oct 31 16:38:32 2013 -0700 @@ -2458,9 +2458,9 @@ break fi - ## At this point Win32/MSVC systems have enough configuration data. We - ## assume that all appropriate variables (e.g. INCLUDE and LIB) already have - ## the required paths to compile and link against JDK. + ## At this point Win32 systems have enough configuration data. + ## We assume that all appropriate variables (e.g. INCLUDE and LIB) already + ## contain the required paths to compile and link against JDK. case $host_os in msdosmsvc) build_java=yes @@ -2469,14 +2469,20 @@ [Define to 1 if Java is available and is at least version 1.5]) break ;; - mingw*) - if test $have_msvc = yes; then - build_java=yes - JAVA_LIBS=-ladvapi32 - AC_DEFINE(HAVE_JAVA, 1, - [Define to 1 if Java is available and is at least version 1.5]) - break + mingw* | cygwin*) + build_java=yes + JAVA_LIBS=-ladvapi32 + if test $have_msvc = no; then + if test -n "$JAVA_CPPFLAGS"; then + JAVA_CPPFLAGS="-I${JAVA_CPPFLAGS}/include -I${JAVA_CPPFLAGS}/include/win32" + else + JAVA_CPPFLAGS="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/win32" + fi + LDFLAGS="$LDFLAGS -Wl,--export-all-symbols" fi + AC_DEFINE(HAVE_JAVA, 1, + [Define to 1 if Java is available and is at least version 1.5]) + break ;; esac @@ -2485,9 +2491,6 @@ darwin*) jvmlib=libjvm.dylib ;; - mingw* | cygwin*) - jvmlib=jvm.dll - ;; *) jvmlib=libjvm.so ;; @@ -2569,15 +2572,6 @@ fi JAVA_LIBS="-framework JavaVM" ;; - mingw* | cygwin*) - if test -n "$JAVA_CPPFLAGS"; then - JAVA_CPPFLAGS="-I${JAVA_CPPFLAGS}/include -I${JAVA_CPPFLAGS}/include/win32" - else - JAVA_CPPFLAGS="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/win32" - fi - JAVA_LIBS=-ladvapi32 - LDFLAGS="$LDFLAGS -Wl,--export-all-symbols" - ;; *) if test -n "$JAVA_CPPFLAGS"; then JAVA_CPPFLAGS="-I${JAVA_CPPFLAGS}/include -I${JAVA_CPPFLAGS}/include/linux"