From 312fe11024ca83d777707ab5fa65d5ed428ae828 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 2 Nov 1998 18:45:31 +0000 Subject: [PATCH] Fix bogus SunOS/Solaris LWP tests. --- configure | 4 ++-- configure.in | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 36460cb58f..12eaa69c89 100755 --- a/configure +++ b/configure @@ -3250,7 +3250,7 @@ else fi done - if test $ac_cv_header_lwp_lwp_h = yes ; then + if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 echo "configure:3256: checking for thr_create in -lthread" >&5 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` @@ -3346,7 +3346,7 @@ else fi done - if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then + if test $ac_cv_header_lwp_lwp_h = yes ; then echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6 echo "configure:3352: checking for lwp_create in -llwp" >&5 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'` diff --git a/configure.in b/configure.in index 96bfe9a483..4a267f1238 100644 --- a/configure.in +++ b/configure.in @@ -501,7 +501,7 @@ fi if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then dnl check for SunOS5 LWP AC_CHECK_HEADERS(thread.h synch.h) - if test $ac_cv_header_lwp_lwp_h = yes ; then + if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then AC_CHECK_LIB(thread, thr_create, [have_lwp=yes], [have_lwp=no]) if test $have_lwp = yes ; then @@ -516,7 +516,7 @@ if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then dnl check for SunOS4 LWP AC_CHECK_HEADERS(lwp/lwp.h) - if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then + if test $ac_cv_header_lwp_lwp_h = yes ; then AC_CHECK_LIB(lwp, lwp_create, [have_lwp=yes], [have_lwp=no]) if test $have_lwp = yes ; then -- 2.39.5