X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=configure.ac;h=bf626697ff34ad2b09ea2265783b99c804235d68;hb=8d17995998aa11ffeecbe2cf7701106283544253;hp=175a0a65117039e05f1681940dc50db0bf4009f2;hpb=5c5aae82106abbb720b82bd8f10f22b69d738711;p=lttng-ust.git diff --git a/configure.ac b/configure.ac index 175a0a65..bf626697 100644 --- a/configure.ac +++ b/configure.ac @@ -262,19 +262,12 @@ AS_IF([test $JAVA_JDK],[ ]) # Check for JNI header files if requested -AC_ARG_WITH([jni-interface], - [AS_HELP_STRING([--with-jni-interface],[build JNI interface between C and Java. Needs Java include files [default=no]])], +AC_ARG_ENABLE([jni-interface], + [AS_HELP_STRING([--enable-jni-interface],[build JNI interface between C and Java. Needs Java include files [default=no]])], [jni_interface=$withval], [jni_interface=no] ) -AS_IF([test "x$jni_interface" = "xyes"],[ - AC_CHECK_HEADERS([jni.h],[],[ - AC_MSG_ERROR([missing jni.h -Make sure Sun Java, OpenJDK or GCJ is installed and that this header file exists in the system path. -Use the --with-java-jdk=DIR option to point to your JDK directory, or disable the JNI interface.]) - ]) -]) AM_CONDITIONAL([BUILD_JNI_INTERFACE], [test "x$jni_interface" = "xyes"]) # sdt.h integration