Even more pthread changes for Digital UNIX...

This commit is contained in:
Kurt Zeilenga 1999-02-02 04:23:37 +00:00
parent 433e8ad645
commit da40e0e350
2 changed files with 565 additions and 433 deletions

900
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -465,20 +465,22 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
dnl 4) pthread_create() with -thread (?) dnl 4) pthread_create() with -thread (?)
dnl dnl
dnl Check pthread (final) libraries dnl Check pthread (final) libraries
dnl 5) pthread_mutex_lock() in -lpthread -lexc (OSF/1) dnl 5) pthread_mutex_unlock() in -lpthread -lmach -lexc -lc_r (OSF/1)
dnl 6) pthread_mutex_unlock() in -lpthread -lmach -lexc -lc_r (OSF/1) dnl 6) pthread_mutex_lock() in -lpthread -lmach -lexc (OSF/1)
dnl 7) pthread_create() in -lpthread (many) dnl 7) pthread_mutex_trylock() in -lpthread -lexc (OSF/1)
dnl 8) pthread_create() in -lc_r (FreeBSD) dnl 8) pthread_create() in -lpthread (many)
dnl 9) pthread_create() in -lpthreads (many) dnl 9) pthread_create() in -lc_r (FreeBSD)
dnl 10) pthread_join() -Wl,-woff,85 -lpthreads (IRIX) dnl 10) pthread_create() in -lpthreads (many)
dnl 11) pthread_create() in HP-UX -lpthread (HP-UX 11) dnl 11) pthread_join() -Wl,-woff,85 -lpthreads (IRIX)
dnl 12) pthread_create() in HP-UX -lpthread (HP-UX 11)
dnl dnl
dnl Check pthread (draft4) flags (to be depreciated) dnl Check pthread (draft4) flags (to be depreciated)
dnl 12) pthread_create() with -threads (OSF/1) dnl 13) pthread_create() with -threads (OSF/1)
dnl dnl
dnl Check pthread (final) libraries (to be depreciated) dnl Check pthread (final) libraries (to be depreciated)
dnl 13) pthread_mutex_lock() in -lpthreads -lexc (OSF/1)
dnl 14) pthread_mutex_unlock() in -lpthreads -lmach -lexc -lc_r (OSF/1) dnl 14) pthread_mutex_unlock() in -lpthreads -lmach -lexc -lc_r (OSF/1)
dnl 14) pthread_mutex_lock() in -lpthreads -lmach -lexc (OSF/1)
dnl 14) pthread_mutex_trylock() in -lpthreads -lexc (OSF/1)
dnl dnl
dnl pthread_create in $LIBS dnl pthread_create in $LIBS
@ -564,19 +566,6 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
fi fi
fi fi
if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthread -lexc
save_LIBS="$LIBS"
AC_CHECK_LIB(pthread, pthread_mutex_lock, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
fi
],:,[-lexc])
LIBS="$save_LIBS"
fi
if test $ol_link_threads = no ; then if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthread -lmach -lexc -lc_r dnl try DEC Threads -lpthread -lmach -lexc -lc_r
save_LIBS="$LIBS" save_LIBS="$LIBS"
@ -590,6 +579,32 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
LIBS="$save_LIBS" LIBS="$save_LIBS"
fi fi
if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthread -lmach -lexc
save_LIBS="$LIBS"
AC_CHECK_LIB(pthread, pthread_mutex_lock, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
fi
],:,[-lmach -lexc])
LIBS="$save_LIBS"
fi
if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthread -lexc
save_LIBS="$LIBS"
AC_CHECK_LIB(pthread, pthread_mutex_trylock, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
fi
],:,[-lexc])
LIBS="$save_LIBS"
fi
if test $ol_link_threads = no ; then if test $ol_link_threads = no ; then
dnl try -lpthread dnl try -lpthread
save_LIBS="$LIBS" save_LIBS="$LIBS"
@ -679,19 +694,6 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
fi fi
fi fi
if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthreads -lexc
save_LIBS="$LIBS"
AC_CHECK_LIB(pthreads, pthread_mutex_lock, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
fi
],:,[-lexc])
LIBS="$save_LIBS"
fi
if test $ol_link_threads = no ; then if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthreads -lmach -lexc -lc_r dnl try DEC Threads -lpthreads -lmach -lexc -lc_r
save_LIBS="$LIBS" save_LIBS="$LIBS"
@ -705,6 +707,32 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
LIBS="$save_LIBS" LIBS="$save_LIBS"
fi fi
if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthreads -lmach -lexc
save_LIBS="$LIBS"
AC_CHECK_LIB(pthreads, pthread_mutex_lock, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
fi
],:,[-lmach -lexc])
LIBS="$save_LIBS"
fi
if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthreads -lexc
save_LIBS="$LIBS"
AC_CHECK_LIB(pthreads, pthread_mutex_trylock, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
fi
],:,[-lexc])
LIBS="$save_LIBS"
fi
if test $ol_link_threads != no ; then if test $ol_link_threads != no ; then
AC_DEFINE(HAVE_PTHREADS) AC_DEFINE(HAVE_PTHREADS)