Fix pthread.h checking for recent releases of Tru64

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@189 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
aet 2002-01-22 17:41:46 +00:00
parent cfa366d7e6
commit 9180ae8662
1 changed files with 12 additions and 1 deletions

View File

@ -42,7 +42,18 @@ acx_pthread_ok=no
# First, check if the POSIX threads header, pthread.h, is available.
# If it isn't, don't bother looking for the threads libraries.
AC_CHECK_HEADER(pthread.h, , acx_pthread_ok=noheader)
# Latest Tru64's require that you always use -pthread,
# just assume pthread.h exists
case "${host_cpu}-${host_os}" in
alpha*-osf*) acx_pthread_check_header=no; acx_pthread_ok=yes ;;
*) acx_pthread_check_header=yes ;;
esac
if test "x$acx_pthread_check_header" = xyes; then
AC_CHECK_HEADER(pthread.h, , acx_pthread_ok=noheader)
fi
# We must check for the threads library under a number of different
# names; the ordering is very important because some systems