X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/2ada05412ca83fce9be76b0f06602d9f79376128..76284c7490dc7bab511412c707daf856c61d3fd0:/configure.ac diff --git a/configure.ac b/configure.ac index b9dc7f8..aa81400 100644 --- a/configure.ac +++ b/configure.ac @@ -202,13 +202,17 @@ AS_CASE([$CY_EXECUTE], [1], [ AS_CASE([$ac_cv_search_ffi_call], [no], [CY_CHECK_PKG_CONFIG_LIBFFI]) ])) - AC_CHECK_HEADER([jni.h], [ + AC_CHECK_FRAMEWORK([JavaVM], [ + #include + ], [JNI_GetCreatedJavaVMs(NULL, 0, NULL);], [ + AC_SUBST([CY_JAVA], [1]) + ], [AC_CHECK_HEADER([jni.h], [ AC_SUBST([CY_JAVA], [1]) CY_LT_LIB([LTJAVA], [AC_SEARCH_LIBS([JNI_GetCreatedJavaVMs], [dvm], [ ])]) ], [ AC_SUBST([CY_JAVA], [0]) - ]) + ])]) AC_LANG_PUSH([Objective C++])