configure: check IBV_WR_SEND_WITH_INV not only for Linux

If the user wants to build RDMA on BSD and IBV_WR_SEND_WITH_INV
is unavailable there he'll now get a warning message.

Change-Id: Ie6c6ce55d21de519bb371ceed44fb1e01d6dc878
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453705
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Darek Stojaczyk 2019-05-07 19:12:15 +02:00 committed by Jim Harris
parent c4a3b31278
commit 32b356cd04

2
configure vendored
View File

@ -407,7 +407,6 @@ if [[ "$OSTYPE" == "freebsd"* ]]; then
fi
if [ "${CONFIG[RDMA]}" = "y" ]; then
if [ "$OSTYPE" != "FreeBSD"* ]; then
if echo -e '#include <infiniband/verbs.h>\n \
int main(void){ return !!IBV_WR_SEND_WITH_INV; }\n' \
| ${CC:-cc} ${CFLAGS} -x c -c -o /dev/null - 2>/dev/null; then
@ -430,7 +429,6 @@ than or equal to 4.14 will see significantly reduced performance.
*******************************************************************************"
fi
fi
fi
if [[ "${CONFIG[ISAL]}" = "y" ]] || [[ "${CONFIG[CRYPTO]}" = "y" ]]; then
ver=$(nasm -v | awk '{print $3}' | sed 's/[^0-9]*//g')