11
11
# Copyright (c) 2004-2012 The Regents of the University of California.
12
12
# All rights reserved.
13
13
# Copyright (c) 2010-2014 Cisco Systems, Inc. All rights reserved.
14
- # Copyright (c) 2008-2015 University of Houston. All rights reserved.
14
+ # Copyright (c) 2008-2021 University of Houston. All rights reserved.
15
+ # Copyright (c) 2021 Argonne National Laboratory. All rights
16
+ # reserved.
15
17
# $COPYRIGHT$
16
18
#
17
19
# Additional copyrights may follow
@@ -27,11 +29,19 @@ AC_DEFUN([MCA_ompi_sharedfp_sm_CONFIG],[
27
29
28
30
sharedfp_sm_happy= no
29
31
AC_CHECK_HEADER([semaphore.h],
30
- [AC_CHECK_FUNCS([sem_open],[sharedfp_sm_happy= yes],[])])
31
-
32
+ [dnl requires potentially pthread library
33
+ OPAL_SEARCH_LIBS_COMPONENT([sharedfp_sm],
34
+ [sem_open], [pthread],
35
+ [AC_CHECK_FUNCS([sem_open],
36
+ [sharedfp_sm_happy= " yes" ],[])]
37
+ )])
32
38
AC_CHECK_HEADER([semaphore.h],
33
- [AC_CHECK_FUNCS([sem_init],[sharedfp_sm_happy= yes],[])])
34
-
39
+ [dnl requires potentially pthread library
40
+ OPAL_SEARCH_LIBS_COMPONENT([sharedfp_sm],
41
+ [sem_init], [pthread],
42
+ [AC_CHECK_FUNCS([sem_init],
43
+ [sharedfp_sm_happy= " yes" ],[])]
44
+ )])
35
45
AS_IF([test " $sharedfp_sm_happy " = " yes" ],
36
46
[$1 ],
37
47
[$2 ])
0 commit comments