Don't enable the 'thread' module if threads are not possible.

This commit is contained in:
Thomas Wouters 2000-08-26 11:33:43 +00:00
parent 617c43cafe
commit 0db2b2b4fe
2 changed files with 161 additions and 154 deletions

306
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -765,15 +765,18 @@ else
AC_CHECK_LIB(cma, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lcma"
LIBOBJS="$LIBOBJS thread.o"])
LIBOBJS="$LIBOBJS thread.o"],[
USE_THREAD_MODULE="#"])
])])])])])])])])
AC_CHECK_LIB(mpc, usconfig, [AC_DEFINE(WITH_THREAD)
LIBS="$LIBS -lmpc"
LIBOBJS="$LIBOBJS thread.o"])
LIBOBJS="$LIBOBJS thread.o"
USE_THREAD_MODULE=""])
AC_CHECK_LIB(thread, thr_create, [AC_DEFINE(WITH_THREAD)
LIBS="$LIBS -lthread"
LIBOBJS="$LIBOBJS thread.o"])
LIBOBJS="$LIBOBJS thread.o"
USE_THREAD_MODULE=""])
fi
# Check for GC support