Improve checks for dce/posix threads to also do the right thing, if the
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Tue, 2 Jul 2002 12:41:46 +0000 (12:41 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Tue, 2 Jul 2002 12:41:46 +0000 (12:41 +0000)
2002-07-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Improve checks for dce/posix threads to also do
the right thing, if the thread functions are not declared in the
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
<mne@mosaic-ag.com> in #77981.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in

index eee9275..2d13729 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,11 @@
 
        * configure.in: Set binary age to 0 to make it compile.
 
+       * configure.in: Improve checks for dce/posix threads to also do
+       the right thing, if the thread functions are not declared in the
+       pthread.h. Idea from Miroslaw Dobrzanski-Neumann
+       <mne@mosaic-ag.com> in #77981.
+
 2002-07-01  Anders Carlsson  <andersca@gnu.org>
 
        * configure.in: Up version to 2.1.0.
index eee9275..2d13729 100644 (file)
@@ -2,6 +2,11 @@
 
        * configure.in: Set binary age to 0 to make it compile.
 
+       * configure.in: Improve checks for dce/posix threads to also do
+       the right thing, if the thread functions are not declared in the
+       pthread.h. Idea from Miroslaw Dobrzanski-Neumann
+       <mne@mosaic-ag.com> in #77981.
+
 2002-07-01  Anders Carlsson  <andersca@gnu.org>
 
        * configure.in: Up version to 2.1.0.
index eee9275..2d13729 100644 (file)
@@ -2,6 +2,11 @@
 
        * configure.in: Set binary age to 0 to make it compile.
 
+       * configure.in: Improve checks for dce/posix threads to also do
+       the right thing, if the thread functions are not declared in the
+       pthread.h. Idea from Miroslaw Dobrzanski-Neumann
+       <mne@mosaic-ag.com> in #77981.
+
 2002-07-01  Anders Carlsson  <andersca@gnu.org>
 
        * configure.in: Up version to 2.1.0.
index eee9275..2d13729 100644 (file)
@@ -2,6 +2,11 @@
 
        * configure.in: Set binary age to 0 to make it compile.
 
+       * configure.in: Improve checks for dce/posix threads to also do
+       the right thing, if the thread functions are not declared in the
+       pthread.h. Idea from Miroslaw Dobrzanski-Neumann
+       <mne@mosaic-ag.com> in #77981.
+
 2002-07-01  Anders Carlsson  <andersca@gnu.org>
 
        * configure.in: Up version to 2.1.0.
index eee9275..2d13729 100644 (file)
@@ -2,6 +2,11 @@
 
        * configure.in: Set binary age to 0 to make it compile.
 
+       * configure.in: Improve checks for dce/posix threads to also do
+       the right thing, if the thread functions are not declared in the
+       pthread.h. Idea from Miroslaw Dobrzanski-Neumann
+       <mne@mosaic-ag.com> in #77981.
+
 2002-07-01  Anders Carlsson  <andersca@gnu.org>
 
        * configure.in: Up version to 2.1.0.
index eee9275..2d13729 100644 (file)
@@ -2,6 +2,11 @@
 
        * configure.in: Set binary age to 0 to make it compile.
 
+       * configure.in: Improve checks for dce/posix threads to also do
+       the right thing, if the thread functions are not declared in the
+       pthread.h. Idea from Miroslaw Dobrzanski-Neumann
+       <mne@mosaic-ag.com> in #77981.
+
 2002-07-01  Anders Carlsson  <andersca@gnu.org>
 
        * configure.in: Up version to 2.1.0.
index eee9275..2d13729 100644 (file)
@@ -2,6 +2,11 @@
 
        * configure.in: Set binary age to 0 to make it compile.
 
+       * configure.in: Improve checks for dce/posix threads to also do
+       the right thing, if the thread functions are not declared in the
+       pthread.h. Idea from Miroslaw Dobrzanski-Neumann
+       <mne@mosaic-ag.com> in #77981.
+
 2002-07-01  Anders Carlsson  <andersca@gnu.org>
 
        * configure.in: Up version to 2.1.0.
index 71eb37f..5706976 100644 (file)
@@ -1187,12 +1187,13 @@ if test "x$want_threads" = xyes || test "x$want_threads" = xposix \
        CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
         if test "x$have_threads" = xno; then
                 AC_TRY_COMPILE([#include <pthread.h>],
-                       [pthread_attr_t attr; pthread_attr_init(&attr);],
+                       [pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;],
                        have_threads=posix)
         fi
         if test "x$have_threads" = xno; then
                 AC_TRY_COMPILE([#include <pthread.h>],
-                       [pthread_attr_t attr; pthread_attr_create(&attr);],
+                       [pthread_mutex_t m; 
+                         pthread_mutex_init (&m, pthread_mutexattr_default);],
                        have_threads=dce)
         fi
        CPPFLAGS="$glib_save_CPPFLAGS"