diff --git a/xorriso/configure_ac.txt b/xorriso/configure_ac.txt index 6f7b7f21..8c65c28b 100644 --- a/xorriso/configure_ac.txt +++ b/xorriso/configure_ac.txt @@ -338,6 +338,17 @@ AC_ARG_ENABLE(jtethreads, , enable_jtethreads=yes) if test x$LIBJTE_DEF = xyes then + if test "x$enable_jtethreads" = xyes; then + mem_LDFLAGs="$LDFLAGS" + LDFLAGS="$LDFLAGS $THREAD_LIBS" + AC_MSG_CHECKING([for pthread_cancel()]) + AC_TRY_LINK([#include ], + [pthread_cancel((pthread_t) NULL);], + [], + [enable_jtethreads=no]) + AC_MSG_RESULT([$enable_jtethreads]) + LDFLAGS="$mem_LDFLAGS" + fi if test "x$enable_jtethreads" = xyes; then AC_DEFINE([THREADED_CHECKSUMS], []) echo "enabled multi-threading in libjte"