Simplified configure.in test for posix threads, systems, that provide
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Thu, 28 Jan 1999 07:43:18 +0000 (07:43 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Thu, 28 Jan 1999 07:43:18 +0000 (07:43 +0000)
1999-01-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Simplified configure.in test for posix threads,
systems, that provide /usr/include/pthread.h should also have the
posix thread library. This is to avoid writing down all the tests
twice. New test for thread system on HPUX 11. Info from Matt
Nottingham <matt@sar.dera.gov.uk>.

ChangeLog
ChangeLog.pre-2-0
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 a1a0481..e851c3f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+1999-01-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: Simplified configure.in test for posix threads,
+       systems, that provide /usr/include/pthread.h should also have the
+       posix thread library. This is to avoid writing down all the tests
+       twice. New test for thread system on HPUX 11. Info from Matt
+       Nottingham <matt@sar.dera.gov.uk>.
+
 Wed Jan 27 20:39:49 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4: Xsed isn't valid here, don't use it
index a1a0481..e851c3f 100644 (file)
@@ -1,3 +1,11 @@
+1999-01-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: Simplified configure.in test for posix threads,
+       systems, that provide /usr/include/pthread.h should also have the
+       posix thread library. This is to avoid writing down all the tests
+       twice. New test for thread system on HPUX 11. Info from Matt
+       Nottingham <matt@sar.dera.gov.uk>.
+
 Wed Jan 27 20:39:49 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4: Xsed isn't valid here, don't use it
index a1a0481..e851c3f 100644 (file)
@@ -1,3 +1,11 @@
+1999-01-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: Simplified configure.in test for posix threads,
+       systems, that provide /usr/include/pthread.h should also have the
+       posix thread library. This is to avoid writing down all the tests
+       twice. New test for thread system on HPUX 11. Info from Matt
+       Nottingham <matt@sar.dera.gov.uk>.
+
 Wed Jan 27 20:39:49 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4: Xsed isn't valid here, don't use it
index a1a0481..e851c3f 100644 (file)
@@ -1,3 +1,11 @@
+1999-01-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: Simplified configure.in test for posix threads,
+       systems, that provide /usr/include/pthread.h should also have the
+       posix thread library. This is to avoid writing down all the tests
+       twice. New test for thread system on HPUX 11. Info from Matt
+       Nottingham <matt@sar.dera.gov.uk>.
+
 Wed Jan 27 20:39:49 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4: Xsed isn't valid here, don't use it
index a1a0481..e851c3f 100644 (file)
@@ -1,3 +1,11 @@
+1999-01-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: Simplified configure.in test for posix threads,
+       systems, that provide /usr/include/pthread.h should also have the
+       posix thread library. This is to avoid writing down all the tests
+       twice. New test for thread system on HPUX 11. Info from Matt
+       Nottingham <matt@sar.dera.gov.uk>.
+
 Wed Jan 27 20:39:49 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4: Xsed isn't valid here, don't use it
index a1a0481..e851c3f 100644 (file)
@@ -1,3 +1,11 @@
+1999-01-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: Simplified configure.in test for posix threads,
+       systems, that provide /usr/include/pthread.h should also have the
+       posix thread library. This is to avoid writing down all the tests
+       twice. New test for thread system on HPUX 11. Info from Matt
+       Nottingham <matt@sar.dera.gov.uk>.
+
 Wed Jan 27 20:39:49 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4: Xsed isn't valid here, don't use it
index a1a0481..e851c3f 100644 (file)
@@ -1,3 +1,11 @@
+1999-01-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: Simplified configure.in test for posix threads,
+       systems, that provide /usr/include/pthread.h should also have the
+       posix thread library. This is to avoid writing down all the tests
+       twice. New test for thread system on HPUX 11. Info from Matt
+       Nottingham <matt@sar.dera.gov.uk>.
+
 Wed Jan 27 20:39:49 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4: Xsed isn't valid here, don't use it
index a1a0481..e851c3f 100644 (file)
@@ -1,3 +1,11 @@
+1999-01-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: Simplified configure.in test for posix threads,
+       systems, that provide /usr/include/pthread.h should also have the
+       posix thread library. This is to avoid writing down all the tests
+       twice. New test for thread system on HPUX 11. Info from Matt
+       Nottingham <matt@sar.dera.gov.uk>.
+
 Wed Jan 27 20:39:49 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4: Xsed isn't valid here, don't use it
index 3669aa8..4a8887b 100644 (file)
@@ -594,21 +594,7 @@ if test "x$want_threads" = xyes || test "x$want_threads" = xsolaris; then
 fi
 if test "x$want_threads" = xyes || test "x$want_threads" = xposix; then
         if test "x$have_threads" = xnone; then
-                AC_CHECK_LIB(pthread, pthread_attr_init, have_threads=posix)
-       fi
-        if test "x$have_threads" = xnone; then
-               AC_CHECK_LIB(pthreads, pthread_attr_init, have_threads=posix)
-       fi
-        if test "x$have_threads" = xnone; then
-               AC_CHECK_LIB(c_r, pthread_attr_init, have_threads=posix)
-       fi
-        if test "x$have_threads" = xnone; then
-               AC_CHECK_FUNC(pthread_attr_init, have_threads=posix)
-       fi
-       dnl ********** DG/UX ************
-        if test "x$have_threads" = xnone; then
-                AC_CHECK_LIB(thread, __d10_pthread_attr_init,
-                       have_threads=posix)
+                AC_CHECK_HEADER(pthread.h, have_threads=posix)
         fi
 fi
 if test "x$want_threads" = xyes || test "x$want_threads" = xnspr; then
@@ -656,6 +642,11 @@ case $have_threads in
                                G_THREAD_LIBS="-lthread"
                                G_THREAD_CFLAGS="-D_POSIX4A_DRAFT10_SOURCE")
                fi
+               dnl ********* HPUX 11 ***********
+               if test "x$G_THREAD_LIBS" = xerror; then
+                       AC_CHECK_LIB(thread, __pthread_attr_init_system,
+                               G_THREAD_LIBS="-lpthread")
+               fi
                 mutex_has_default=yes
                 mutex_default_type='pthread_mutex_t'
                 mutex_default_init='PTHREAD_MUTEX_INITIALIZER'