diff options
author | Dick Porter <dick@acm.org> | 2001-09-23 16:32:33 +0400 |
---|---|---|
committer | Dick Porter <dick@acm.org> | 2001-09-23 16:32:33 +0400 |
commit | 70b4ec9404b6f0c8178172d320d36b95137f9c22 (patch) | |
tree | d0615acfd721a1be95beb2479f45495f34cd0508 /configure.in | |
parent | 879c3f3467e1022d0bb5e51bebb15d01198cb66e (diff) |
2001-09-23 Dick Porter <dick@ximian.com>
* threads-dummy.c:
* threads-dummy.h: New files of dummy threading routines
* Makefile.am (THREAD_SOURCE): Arrange to compile different thread
support code based on system specifics
Rename PTHREAD_LIBS to THREAD_LIBS
2001-09-23 Dick Porter <dick@ximian.com>
* configure.in: Arrange to compile dummy thread support routines
if pthread isnt available
2001-09-23 Dick Porter <dick@ximian.com>
* Makefile.am (testjit_LDADD): rename PTHREAD_LIBS to THREAD_LIBS
2001-09-23 Dick Porter <dick@ximian.com>
* Makefile.am (mint_LDADD): rename PTHREAD_LIBS to THREAD_LIBS
svn path=/trunk/mono/; revision=934
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 047c4b5fff7..2ecf6c455bf 100644 --- a/configure.in +++ b/configure.in @@ -37,9 +37,17 @@ dnl ***************************** dnl *** Checks for libpthread *** dnl ***************************** AC_CHECK_HEADERS(pthread.h) -AC_CHECK_LIB(pthread,pthread_create,PTHREAD_LIBS=-lpthread, - AC_MSG_ERROR([Cannot find libpthread])) -AC_SUBST(PTHREAD_LIBS) +AC_CHECK_LIB(pthread, pthread_create, [ + THREAD_LIBS=-lpthread + AM_CONDITIONAL(THREADS_PTHREAD, true) + ], [ + AC_MSG_RESULT([Cannot find libpthread]) + # Check for other thread systems here, set THREAD_LIBS to + # whatever is needed, and define + # AM_CONDITIONAL(THREADS_foo, true), and add it to the + # section in mono/metadata/Makefile.am + ]) +AC_SUBST(THREAD_LIBS) CFLAGS='-g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations' |