File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 338338
339339if test x"$use_jni" != x"no"; then
340340 AX_JNI_INCLUDE_DIR
341+ have_jni_dependencies=yes
342+ if test x"$enable_module_schnorr" = x"no"; then
343+ have_jni_dependencies=no
344+ fi
345+ if test x"$enable_module_ecdh" = x"no"; then
346+ have_jni_dependencies=no
347+ fi
341348 if test "x$JNI_INCLUDE_DIRS" = "x"; then
349+ have_jni_dependencies=no
350+ fi
351+ if test "x$have_jni_dependencies" = "xno"; then
342352 if test x"$use_jni" = x"yes"; then
343- AC_MSG_ERROR ( [ jni support explicitly requested but headers were not found] )
353+ AC_MSG_ERROR ( [ jni support explicitly requested but headers/dependencies were not found. Enable ECDH and Schnorr and try again. ] )
344354 fi
345- AC_MSG_WARN ( [ jni headers not found. jni support disabled] )
355+ AC_MSG_WARN ( [ jni headers/dependencies not found. jni support disabled] )
346356 use_jni=no
347357 else
348358 use_jni=yes
You can’t perform that action at this time.
0 commit comments