Merge pull request #8094 from dancejic/include-v4.1.x
v4.1.x: Adding ofi include to CPPFLAGS so that configure can check fabric.h
Этот коммит содержится в:
Коммит
aa996b89c7
@ -121,11 +121,13 @@ AC_DEFUN([_OPAL_CHECK_OFI],[
|
|||||||
[],
|
[],
|
||||||
[opal_ofi_happy=no])])
|
[opal_ofi_happy=no])])
|
||||||
|
|
||||||
|
CPPFLAGS="$CPPFLAGS $opal_ofi_CPPFLAGS"
|
||||||
|
|
||||||
AS_IF([test $opal_ofi_happy = yes],
|
AS_IF([test $opal_ofi_happy = yes],
|
||||||
[AC_CHECK_MEMBER([struct fi_info.nic],
|
[AC_CHECK_MEMBER([struct fi_info.nic],
|
||||||
[opal_check_fi_info_pci=1],
|
[opal_check_fi_info_pci=1],
|
||||||
[opal_check_fi_info_pci=0],
|
[opal_check_fi_info_pci=0],
|
||||||
[[#include "$with_ofi/include/rdma/fabric.h"]])])
|
[[#include <rdma/fabric.h>]])])
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED([OPAL_OFI_PCI_DATA_AVAILABLE],
|
AC_DEFINE_UNQUOTED([OPAL_OFI_PCI_DATA_AVAILABLE],
|
||||||
[$opal_check_fi_info_pci],
|
[$opal_check_fi_info_pci],
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user