diff options
Diffstat (limited to 'flow-native/configure.ac')
-rw-r--r-- | flow-native/configure.ac | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/flow-native/configure.ac b/flow-native/configure.ac index a4a25a8..1bc221e 100644 --- a/flow-native/configure.ac +++ b/flow-native/configure.ac @@ -17,9 +17,9 @@ AC_PROG_CC # Checks for header files. AC_CHECK_HEADERS([fcntl.h stddef.h stdlib.h sys/file.h termios.h unistd.h]) -AC_CHECK_HEADERS([jni.h],,AC_MSG_WARN(No jni.h found. Is a JDK installed?)) +#AC_CHECK_HEADERS([jni.h],,AC_MSG_WARN(No jni.h found. Is a JDK installed?)) -LT_INIT([shared]) +LT_INIT([disable-static]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL @@ -30,6 +30,12 @@ AC_TYPE_SIZE_T AC_FUNC_MALLOC AC_CHECK_FUNCS([select]) +AX_JNI_INCLUDE_DIR +for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS +do + CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR" +done + AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([src/Makefile]) AC_OUTPUT |