]> git.sur5r.net Git - openldap/commitdiff
Fixed Pthread detection problem in IRIX.
authorJuan Gomez <gomez@openldap.org>
Wed, 24 Mar 1999 04:04:50 +0000 (04:04 +0000)
committerJuan Gomez <gomez@openldap.org>
Wed, 24 Mar 1999 04:04:50 +0000 (04:04 +0000)
configure.in

index cf5595436473c4e80a348d7d0477753c3d6471d2..65ad18775c62d84388666c26c0a4a115443d9116 100644 (file)
@@ -617,9 +617,19 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
                dnl     pthread_mutex_trylock() in -lpthreads -lexc (OSF/1)
                dnl
 
+               dnl hack the Pthread detection problem in IRIX 6*
+
+               save_LIBS="$LIBS"
+
+               case "$host_os" in
+               irix6*)  AC_CHECK_LIB(pthread, main, [LTHREAD_LIBS="$LTHREAD_LIBS -lpthread" LIBS="-lpthread $LIBS"]);;
+               esac
+
                dnl pthread_create in $LIBS
                AC_CHECK_FUNC(pthread_create,[ol_link_threads=yes])
 
+               LIBS="$save_LIBS"
+
                if test $ol_link_threads = no ; then
                        dnl try -mt
                        AC_CACHE_CHECK([for pthread_create with -mt],