configury: fix handling of external libevent library
Search external libevent library in both DIR/lib64 and DIR/lib when --with-libevent=DIR is specified but --with-libevent-libdir=DIR is not Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
родитель
ea3508b26b
Коммит
5c61a4e3a5
13
opal/mca/event/external/configure.m4
поставляемый
13
opal/mca/event/external/configure.m4
поставляемый
@ -2,7 +2,7 @@
|
||||
#
|
||||
# Copyright (c) 2009-2013 Cisco Systems, Inc. All rights reserved.
|
||||
# Copyright (c) 2013 Los Alamos National Security, LLC. All rights reserved.
|
||||
# Copyright (c) 2015 Research Organization for Information Science
|
||||
# Copyright (c) 2015-2017 Research Organization for Information Science
|
||||
# and Technology (RIST). All rights reserved.
|
||||
#
|
||||
# Copyright (c) 2017 Intel, Inc. All rights reserved.
|
||||
@ -98,8 +98,15 @@ AC_DEFUN([MCA_opal_event_external_CONFIG],[
|
||||
AC_MSG_RESULT([$opal_event_dir])
|
||||
OPAL_CHECK_WITHDIR([libevent], [$opal_event_dir],
|
||||
[include/event.h])
|
||||
opal_event_libdir=$with_libevent/lib
|
||||
],
|
||||
AS_IF([test -z "$with_libevent_libdir" || test "$with_libevent_libdir" = "yes"],
|
||||
[AS_IF([test -d "$with_libevent/lib64"],
|
||||
[opal_event_libdir="$with_libevent/lib64"],
|
||||
[AS_IF([test -d "$with_libevent/lib"],
|
||||
[opal_event_libdir="$with_libevent/lib"],
|
||||
[AC_MSG_WARN([libevent library were neither found under:])
|
||||
AC_MSG_WARN([ $with_libevent/lib64])
|
||||
AC_MSG_WARN([ $with_libevent/lib])
|
||||
AC_MSG_ERROR([Cannot continue])])])])],
|
||||
[AC_MSG_RESULT([(default search paths)])])
|
||||
AS_IF([test ! -z "$with_libevent_libdir" && test "$with_libevent_libdir" != "yes"],
|
||||
[opal_event_libdir="$with_libevent_libdir"])
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user