Make GLib recognize Tru64Unix thread system. (#103020)
authorSebastian Wilhelmi <seppi@seppi.de>
Wed, 12 Feb 2003 13:01:35 +0000 (13:01 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Wed, 12 Feb 2003 13:01:35 +0000 (13:01 +0000)
2003-02-12  Sebastian Wilhelmi  <seppi@seppi.de>

* configure.in: Make GLib recognize Tru64Unix thread system. (#103020)

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

index 34df670..a946c1c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-02-12  Sebastian Wilhelmi  <seppi@seppi.de>
+
+       * configure.in: Make GLib recognize Tru64Unix thread system. (#103020)
+
 2003-02-11  Tor Lillqvist  <tml@iki.fi>
 
        * Makefile.am (EXTRA_DIST): Include ChangeLog.pre-2-2.
index 34df670..a946c1c 100644 (file)
@@ -1,3 +1,7 @@
+2003-02-12  Sebastian Wilhelmi  <seppi@seppi.de>
+
+       * configure.in: Make GLib recognize Tru64Unix thread system. (#103020)
+
 2003-02-11  Tor Lillqvist  <tml@iki.fi>
 
        * Makefile.am (EXTRA_DIST): Include ChangeLog.pre-2-2.
index 34df670..a946c1c 100644 (file)
@@ -1,3 +1,7 @@
+2003-02-12  Sebastian Wilhelmi  <seppi@seppi.de>
+
+       * configure.in: Make GLib recognize Tru64Unix thread system. (#103020)
+
 2003-02-11  Tor Lillqvist  <tml@iki.fi>
 
        * Makefile.am (EXTRA_DIST): Include ChangeLog.pre-2-2.
index 34df670..a946c1c 100644 (file)
@@ -1,3 +1,7 @@
+2003-02-12  Sebastian Wilhelmi  <seppi@seppi.de>
+
+       * configure.in: Make GLib recognize Tru64Unix thread system. (#103020)
+
 2003-02-11  Tor Lillqvist  <tml@iki.fi>
 
        * Makefile.am (EXTRA_DIST): Include ChangeLog.pre-2-2.
index 34df670..a946c1c 100644 (file)
@@ -1,3 +1,7 @@
+2003-02-12  Sebastian Wilhelmi  <seppi@seppi.de>
+
+       * configure.in: Make GLib recognize Tru64Unix thread system. (#103020)
+
 2003-02-11  Tor Lillqvist  <tml@iki.fi>
 
        * Makefile.am (EXTRA_DIST): Include ChangeLog.pre-2-2.
index 34df670..a946c1c 100644 (file)
@@ -1,3 +1,7 @@
+2003-02-12  Sebastian Wilhelmi  <seppi@seppi.de>
+
+       * configure.in: Make GLib recognize Tru64Unix thread system. (#103020)
+
 2003-02-11  Tor Lillqvist  <tml@iki.fi>
 
        * Makefile.am (EXTRA_DIST): Include ChangeLog.pre-2-2.
index 4bf334f..2718bdd 100644 (file)
@@ -1261,6 +1261,13 @@ if test "x$want_threads" = xyes || test "x$want_threads" = xposix \
                          pthread_mutex_init (&m, pthread_mutexattr_default);],
                        have_threads=dce)
         fi
+       # Tru64Unix requires -pthread to find pthread.h. See #103020
+       CPPFLAGS="$CPPFLAGS -pthread"
+       if test "x$have_threads" = xno; then
+       AC_TRY_COMPILE([#include <pthread.h>],
+                      [pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;],
+                      have_threads=posix)
+        fi
        CPPFLAGS="$glib_save_CPPFLAGS"
 fi
 if test "x$want_threads" = xyes || test "x$want_threads" = xwin32; then