mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r26226] Fixed the --with-pthread option so that it correctly handles 'yes' and
'no', which was broken after other work in this area. Part of: HDFFV-9087 Tested on: 64-bit linux VM
This commit is contained in:
parent
a2b08b6e27
commit
265782d3eb
@ -1647,12 +1647,15 @@ if test "X$THREADSAFE" = "Xyes"; then
|
||||
[withval=check])
|
||||
|
||||
case "$withval" in
|
||||
check)
|
||||
check | yes)
|
||||
AC_CHECK_HEADERS([pthread.h],, [unset HAVE_PTHREAD])
|
||||
if test "x$HAVE_PTHREAD" = "xyes"; then
|
||||
AC_CHECK_LIB([pthread], [pthread_self],, [unset HAVE_PTHREAD])
|
||||
fi
|
||||
;;
|
||||
no)
|
||||
AC_MSG_ERROR([Must use Pthreads with thread safety])
|
||||
;;
|
||||
*)
|
||||
case "$withval" in
|
||||
*,*)
|
||||
|
Loading…
Reference in New Issue
Block a user