diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-09 20:26:24 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-09 20:26:24 +0000 |
| commit | 100f78de3f9d671c993a17ce56ae9e41756dafb5 (patch) | |
| tree | 82a34092eec1b9f44a1a7b89571cf49d29196c02 /configure.in | |
| parent | 7e38b22fa0f060ced575d2881066fa6a5ba9f15d (diff) | |
CygWin threading fixes from Teun.
Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1828 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/configure.in b/configure.in index 9a03cc3e8..3727e5b4f 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl -*- sh -*- dnl the "configure" script is made from this by running GNU "autoconf" dnl -dnl "$Id: configure.in,v 1.33.2.31.2.38 2001/12/08 16:23:51 easysw Exp $" +dnl "$Id: configure.in,v 1.33.2.31.2.39 2001/12/09 20:26:24 easysw Exp $" dnl dnl Configuration script for the Fast Light Tool Kit (FLTK). dnl @@ -262,6 +262,12 @@ HLINKS= dnl some environments need postprocessing (Darwin, MacOS) POSTBUILD= +dnl Check for pthreads for multi-threaded apps... +if test "$enable_threads" = yes; then + AC_CHECK_HEADER(pthread.h, AC_DEFINE(HAVE_PTHREAD_H)) + AC_SEARCH_LIBS(pthread_create, pthread) +fi + case $uname in CYGWIN*) dnl Cygwin environment... @@ -283,6 +289,10 @@ case $uname in GLDEMOS="" fi + if test "x$ac_cv_search_pthread_create" != xno; then + AC_DEFINE(HAVE_PTHREAD) + fi + # Don't make symlinks since Windows is not case sensitive. HLINKS="#" ;; @@ -308,12 +318,8 @@ case $uname in POSTBUILD="/Developer/Tools/Rez -t APPL ../FL/mac.r -o \$@" ;; *) - dnl Check for pthreads for multi-threaded apps... - if test "$enable_threads" = yes; then - AC_SEARCH_LIBS(pthread_create, pthread) - fi - if test "x$ac_cv_search_pthread_create" != x; then + if test "x$ac_cv_search_pthread_create" != xno; then AC_DEFINE(HAVE_PTHREAD) fi @@ -604,5 +610,5 @@ AC_OUTPUT(makeinclude fltk.list fltk-config FL/Makefile) chmod +x fltk-config dnl -dnl End of "$Id: configure.in,v 1.33.2.31.2.38 2001/12/08 16:23:51 easysw Exp $". +dnl End of "$Id: configure.in,v 1.33.2.31.2.39 2001/12/09 20:26:24 easysw Exp $". dnl |
