Skip to content

Commit eee808d

Browse files
committed
Test whether ECDH and Schnorr are enabled for JNI
1 parent 7b0fb18 commit eee808d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

configure.ac

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,21 @@ fi
338338

339339
if 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

0 commit comments

Comments
 (0)