Skip to content

Commit 08e8205

Browse files
committed
Adding ofi include to CPPFLAGS so that configure is able to check fabric.h
configure was previously failing to check for the fi_info.nic struct because fabric.h relied on other header files in the ofi/include dir. This adds that include to CPPFLAGS before running that check so that configure can check for the struct. Signed-off-by: Nikola Dancejic <[email protected]>
1 parent 23269cc commit 08e8205

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/opal_check_ofi.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,13 @@ AC_DEFUN([_OPAL_CHECK_OFI],[
121121
[],
122122
[opal_ofi_happy=no])])
123123

124+
CPPFLAGS="$CPPFLAGS $opal_ofi_CPPFLAGS"
125+
124126
AS_IF([test $opal_ofi_happy = yes],
125127
[AC_CHECK_MEMBER([struct fi_info.nic],
126128
[opal_check_fi_info_pci=1],
127129
[opal_check_fi_info_pci=0],
128-
[[#include "$with_ofi/include/rdma/fabric.h"]])])
130+
[[#include <rdma/fabric.h>]])])
129131

130132
AC_DEFINE_UNQUOTED([OPAL_OFI_PCI_DATA_AVAILABLE],
131133
[$opal_check_fi_info_pci],

0 commit comments

Comments
 (0)