643 |
"yes" | "qt" | "coop" | "") |
"yes" | "qt" | "coop" | "") |
644 |
with_threads=qt |
with_threads=qt |
645 |
;; |
;; |
646 |
|
"null" ) |
647 |
|
;; |
648 |
"no" ) |
"no" ) |
649 |
;; |
;; |
650 |
* ) |
* ) |
662 |
## correctly. |
## correctly. |
663 |
QTHREADS_CONFIGURE |
QTHREADS_CONFIGURE |
664 |
;; |
;; |
665 |
|
"null" ) |
666 |
|
THREAD_PACKAGE="null" |
667 |
|
;; |
668 |
esac |
esac |
669 |
|
|
670 |
|
|
671 |
## If we're using threads, bring in some other parts of Guile which |
## If we're using threads, bring in some other parts of Guile which |
672 |
## work with them. |
## work with them. |
673 |
if test "${THREAD_PACKAGE}" != "" ; then |
if test "${THREAD_PACKAGE}" != "" ; then |
674 |
AC_DEFINE(USE_THREADS, 1, [Define if using any sort of threads.]) |
AC_DEFINE(USE_THREADS, 1, [Define if providing the thread API.]) |
675 |
|
|
676 |
## Include the Guile thread interface in the library... |
## Include the Guile thread interface in the library... |
677 |
AC_LIBOBJ([threads]) |
AC_LIBOBJ([threads]) |
681 |
"QT" ) |
"QT" ) |
682 |
AC_DEFINE(USE_COOP_THREADS, 1, |
AC_DEFINE(USE_COOP_THREADS, 1, |
683 |
[Define if using cooperative multithreading.]) |
[Define if using cooperative multithreading.]) |
684 |
|
|
685 |
|
AC_ARG_ENABLE(linuxthreads, |
686 |
|
[ --disable-linuxthreads disable linuxthreads workaround],, |
687 |
|
enable_linuxthreads=yes) |
688 |
|
|
689 |
|
## Workaround for linuxthreads (optionally disabled) |
690 |
|
if test $host_os = linux-gnu -a "$enable_linuxthreads" = yes; then |
691 |
|
AC_DEFINE(GUILE_PTHREAD_COMPAT, 1, |
692 |
|
[Define to enable workaround for COOP-linuxthreads compatibility.]) |
693 |
|
AC_CHECK_LIB(pthread, main) |
694 |
|
fi |
695 |
|
|
696 |
|
## Bring in scm_internal_select, if appropriate. |
697 |
|
if test $ac_cv_func_gettimeofday = yes && |
698 |
|
test $ac_cv_func_select = yes; then |
699 |
|
AC_DEFINE(GUILE_ISELECT, 1, [Define to implement scm_internal_select.]) |
700 |
|
fi |
701 |
|
|
702 |
|
;; |
703 |
|
"null" ) |
704 |
|
AC_DEFINE(USE_NULL_THREADS, 1, |
705 |
|
[Define if using one-thread 'multi'threading.]) |
706 |
;; |
;; |
707 |
* ) |
* ) |
708 |
AC_MSG_ERROR(invalid value for THREAD_PACKAGE: ${THREAD_PACKAGE}) |
AC_MSG_ERROR(invalid value for THREAD_PACKAGE: ${THREAD_PACKAGE}) |
709 |
;; |
;; |
710 |
esac |
esac |
711 |
|
|
|
## Bring in scm_internal_select, if appropriate. |
|
|
if test $ac_cv_func_gettimeofday = yes && |
|
|
test $ac_cv_func_select = yes; then |
|
|
AC_DEFINE(GUILE_ISELECT, 1, [Define to implement scm_internal_select.]) |
|
|
fi |
|
|
|
|
|
AC_ARG_ENABLE(linuxthreads, |
|
|
[ --disable-linuxthreads disable linuxthreads workaround],, |
|
|
enable_linuxthreads=yes) |
|
|
|
|
|
## Workaround for linuxthreads (optionally disabled) |
|
|
if test $host_os = linux-gnu -a "$enable_linuxthreads" = yes; then |
|
|
AC_DEFINE(GUILE_PTHREAD_COMPAT, 1, |
|
|
[Define to enable workaround for COOP-linuxthreads compatibility.]) |
|
|
AC_CHECK_LIB(pthread, main) |
|
|
fi |
|
712 |
fi |
fi |
713 |
|
|
714 |
## Cross building |
## Cross building |