Skip to content

Commit 9d6a4b3

Browse files
committed
configury/libevent: fix incorrect drop of OPAL_HAVE_WORKING_EVENTOPS
Fixes PR #1687 The code that sets OPAL_HAVE_WORKING_EVENTOPS for internal libevent was executed even if the external libevent component was configured. As the result libevent progress wasn't called in opal_progress which for example caused ring_c to hang when pml/ob1 was used.
1 parent 30f98cd commit 9d6a4b3

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

opal/mca/event/libevent2022/configure.m4

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,15 @@ AC_DEFUN([MCA_opal_event_libevent2022_CONFIG],[
190190

191191
AS_IF([test "$with_libevent" != "internal" && test -n "$with_libevent" && test "$with_libevent" != "yes"],
192192
[AC_MSG_WARN([using an external libevent; disqualifying this component])
193-
libevent_happy=no])
194-
195-
AS_IF([test "$libevent_happy" = "yes" && test -r $libevent_file],
196-
[OPAL_HAVE_WORKING_EVENTOPS=`grep HAVE_WORKING_EVENTOPS $libevent_file | awk '{print [$]3 }'`
197-
$1],
198-
[$2
199-
OPAL_HAVE_WORKING_EVENTOPS=0])
193+
libevent_happy=no],
194+
195+
[AS_IF([test "$libevent_happy" = "yes" && test -r $libevent_file],
196+
[OPAL_HAVE_WORKING_EVENTOPS=`grep HAVE_WORKING_EVENTOPS $libevent_file | awk '{print [$]3 }'`
197+
$1],
198+
[$2
199+
OPAL_HAVE_WORKING_EVENTOPS=0])
200+
]
201+
)
200202

201203
OPAL_VAR_SCOPE_POP
202204
])

0 commit comments

Comments
 (0)