@@ -99,13 +99,23 @@ AC_DEFUN([MCA_opal_event_external_CONFIG],[
99
99
OPAL_CHECK_WITHDIR([libevent], [$opal_event_dir ],
100
100
[include/event.h])
101
101
AS_IF([test -z " $with_libevent_libdir " || test " $with_libevent_libdir " = " yes" ],
102
- [AS_IF([test -d " $with_libevent /lib64" ],
102
+ [AC_MSG_CHECKING([for $with_libevent /lib64])
103
+ AS_IF([test -d " $with_libevent /lib64" ],
104
+ [opal_event_libdir_found= yes
105
+ AC_MSG_RESULT([found])],
106
+ [opal_event_libdir_found= no
107
+ AC_MSG_RESULT([not found])])
108
+ AS_IF([test " $opal_event_libdir_found " = " yes" ],
103
109
[opal_event_libdir= " $with_libevent /lib64" ],
104
- [AS_IF([test -d " $with_libevent /lib" ],
105
- [opal_event_libdir= " $with_libevent /lib" ],
106
- [AC_MSG_WARN([libevent library were neither found under:])
110
+ [AC_MSG_CHECKING([for $with_libevent /lib])
111
+ AS_IF([test -d " $with_libevent /lib" ],
112
+ [AC_MSG_RESULT([found])
113
+ opal_event_libdir= " $with_libevent /lib" ],
114
+ [AC_MSG_RESULT([not found])
115
+ AC_MSG_WARN([Library directories were not found:])
107
116
AC_MSG_WARN([ $with_libevent /lib64])
108
117
AC_MSG_WARN([ $with_libevent /lib])
118
+ AC_MSG_WARN([Please use --with-libevent-libdir to identify it.])
109
119
AC_MSG_ERROR([Cannot continue])])])])],
110
120
[AC_MSG_RESULT([(default search paths)])])
111
121
AS_IF([test ! -z " $with_libevent_libdir " && test " $with_libevent_libdir " != " yes" ],
@@ -136,6 +146,7 @@ AC_DEFUN([MCA_opal_event_external_CONFIG],[
136
146
AC_MSG_WARN([Open MPI requires libevent to be compiled with])
137
147
AC_MSG_WARN([thread support enabled])
138
148
AC_MSG_ERROR([Cannot continue])])
149
+
139
150
AC_CHECK_LIB([event_pthreads], [evthread_use_pthreads],
140
151
[],
141
152
[AC_MSG_WARN([External libevent does not have thread support])
0 commit comments