From c65e5aab740aedae259c4354a67a50686f573396 Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Thu, 28 Jan 1999 07:43:18 +0000 Subject: [PATCH] Simplified configure.in test for posix threads, systems, that provide 1999-01-28 Sebastian Wilhelmi * 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 . --- ChangeLog | 8 ++++++++ ChangeLog.pre-2-0 | 8 ++++++++ ChangeLog.pre-2-10 | 8 ++++++++ ChangeLog.pre-2-12 | 8 ++++++++ ChangeLog.pre-2-2 | 8 ++++++++ ChangeLog.pre-2-4 | 8 ++++++++ ChangeLog.pre-2-6 | 8 ++++++++ ChangeLog.pre-2-8 | 8 ++++++++ configure.in | 21 ++++++--------------- 9 files changed, 70 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index a1a0481..e851c3f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +1999-01-28 Sebastian Wilhelmi + + * 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 . + Wed Jan 27 20:39:49 PST 1999 Manish Singh * acinclude.m4: Xsed isn't valid here, don't use it diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index a1a0481..e851c3f 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,11 @@ +1999-01-28 Sebastian Wilhelmi + + * 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 . + Wed Jan 27 20:39:49 PST 1999 Manish Singh * acinclude.m4: Xsed isn't valid here, don't use it diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index a1a0481..e851c3f 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,11 @@ +1999-01-28 Sebastian Wilhelmi + + * 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 . + Wed Jan 27 20:39:49 PST 1999 Manish Singh * acinclude.m4: Xsed isn't valid here, don't use it diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index a1a0481..e851c3f 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,11 @@ +1999-01-28 Sebastian Wilhelmi + + * 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 . + Wed Jan 27 20:39:49 PST 1999 Manish Singh * acinclude.m4: Xsed isn't valid here, don't use it diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index a1a0481..e851c3f 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,11 @@ +1999-01-28 Sebastian Wilhelmi + + * 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 . + Wed Jan 27 20:39:49 PST 1999 Manish Singh * acinclude.m4: Xsed isn't valid here, don't use it diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index a1a0481..e851c3f 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,11 @@ +1999-01-28 Sebastian Wilhelmi + + * 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 . + Wed Jan 27 20:39:49 PST 1999 Manish Singh * acinclude.m4: Xsed isn't valid here, don't use it diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index a1a0481..e851c3f 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,11 @@ +1999-01-28 Sebastian Wilhelmi + + * 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 . + Wed Jan 27 20:39:49 PST 1999 Manish Singh * acinclude.m4: Xsed isn't valid here, don't use it diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index a1a0481..e851c3f 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,11 @@ +1999-01-28 Sebastian Wilhelmi + + * 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 . + Wed Jan 27 20:39:49 PST 1999 Manish Singh * acinclude.m4: Xsed isn't valid here, don't use it diff --git a/configure.in b/configure.in index 3669aa8..4a8887b 100644 --- a/configure.in +++ b/configure.in @@ -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' -- 2.7.4