@@ -5,6 +5,7 @@ dnl All rights reserved.
55dnl Copyright (c) 2017 IBM Corporation. All rights reserved.
66dnl Copyright (c) 2017 Research Organization for Information Science
77dnl and Technology (RIST). All rights reserved.
8+ dnl Copyright (c) 2017 Intel, Inc. All rights reserved.
89dnl $COPYRIGHT $
910dnl
1011dnl Additional copyrights may follow
@@ -26,7 +27,7 @@ AC_DEFUN([PMIX_CHECK_DSTOR_LOCK],[
2627 _x_ac_fcntl_lock_found=" 1"
2728 ], [], [# include <fcntl.h>])
2829
29- if test " $DSTORE_PTHREAD_LOCK " == " 1" ; then
30+ if test " $DSTORE_PTHREAD_LOCK " = " 1" ; then
3031 AC_CHECK_FUNC([pthread_rwlockattr_setkind_np],
3132 [AC_EGREP_HEADER([PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP],
3233 [pthread.h],[
@@ -43,15 +44,15 @@ AC_DEFUN([PMIX_CHECK_DSTOR_LOCK],[
4344 ])
4445 ])
4546
46- if test " $_x_ac_pthread_lock_found " == " 0" ; then
47- if test " $_x_ac_fcntl_lock_found " == " 1" ; then
47+ if test " $_x_ac_pthread_lock_found " = " 0" ; then
48+ if test " $_x_ac_fcntl_lock_found " = " 1" ; then
4849 AC_MSG_WARN([dstore: pthread-based locking not found, will use fcntl-based locking.])
4950 else
5051 AC_MSG_ERROR([dstore: no available locking mechanisms was found. Can not continue. Try disabling dstore])
5152 fi
5253 fi
5354 else
54- if test " $_x_ac_fcntl_lock_found " == " 0" ; then
55+ if test " $_x_ac_fcntl_lock_found " = " 0" ; then
5556 AC_MSG_ERROR([dstore: no available locking mechanisms was found. Can not continue. Try disabling dstore])
5657 fi
5758 LIBS=" $orig_libs "
0 commit comments