]> git.sur5r.net Git - openldap/commitdiff
Fix bogus SunOS/Solaris LWP tests.
authorKurt Zeilenga <kurt@openldap.org>
Mon, 2 Nov 1998 18:45:31 +0000 (18:45 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 2 Nov 1998 18:45:31 +0000 (18:45 +0000)
configure
configure.in

index 36460cb58f99871706755320f5576fe8c7f4dfe9..12eaa69c8932fa1d874ccc3a52caf671ba758c81 100755 (executable)
--- 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_%'`
index 96bfe9a4839b898a3eb341063293a7eeaba2b9bd..4a267f1238c58e5d8dd6bdb170ec604757bf34ab 100644 (file)
@@ -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