Skip to content

Commit 26dd34f

Browse files
edgargabrielshintaro-iwasaki
authored andcommitted
make the sharedfp/sm component pass the configure logic again.
Signed-off-by: Edgar Gabriel <egabriel@central.uh.edu>
1 parent ca6e66f commit 26dd34f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ompi/mca/sharedfp/sm/configure.m4

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,16 @@ AC_DEFUN([MCA_ompi_sharedfp_sm_CONFIG],[
2727

2828
sharedfp_sm_happy=no
2929
AC_CHECK_HEADER([semaphore.h],
30-
[AC_CHECK_FUNCS([sem_open],[sharedfp_sm_happy=yes],[])])
30+
[dnl requires potentially pthread library
31+
OPAL_SEARCH_LIBS_COMPONENT([sharedfp_sm],
32+
[sem_open], [pthread],
33+
[sharedfp_sm_happy="yes"])])
3134

3235
AC_CHECK_HEADER([semaphore.h],
33-
[AC_CHECK_FUNCS([sem_init],[sharedfp_sm_happy=yes],[])])
36+
[dnl requires potentially pthread library
37+
OPAL_SEARCH_LIBS_COMPONENT([sharedfp_sm],
38+
[sem_init], [pthread],
39+
[sharedfp_sm_happy="yes"])])
3440

3541
AS_IF([test "$sharedfp_sm_happy" = "yes"],
3642
[$1],

0 commit comments

Comments
 (0)