1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-07-06 01:30:22 +02:00

Only run `test-with-guile-module' when pthread support is built.

This commit is contained in:
Ludovic Courtès 2008-04-26 21:55:29 +02:00
parent bd22f1c768
commit 56ae214817
4 changed files with 28 additions and 1 deletions

View file

@ -1166,6 +1166,9 @@ AC_SUBST(SCM_I_GSC_NEED_BRACES_ON_PTHREAD_MUTEX_INITIALIZER, 0)
case "$with_threads" in
"yes" | "pthread" | "pthreads" | "pthread-threads" | "")
build_pthread_support="yes"
ACX_PTHREAD(CC="$PTHREAD_CC"
LIBS="$PTHREAD_LIBS $LIBS"
SCM_I_GSC_USE_PTHREAD_THREADS=1
@ -1245,6 +1248,10 @@ esac
AC_MSG_CHECKING(what kind of threads to support)
AC_MSG_RESULT($with_threads)
AM_CONDITIONAL([BUILD_PTHREAD_SUPPORT],
[test "x$build_pthread_support" = "xyes"])
## Check whether pthread_attr_getstack works for the main thread
if test "$with_threads" = pthreads; then