]> git.proxmox.com Git - mirror_ovs.git/commit - acinclude.m4
configure: Fix check for rte_config.h to handle cross-compilation.
authorBen Pfaff <blp@ovn.org>
Fri, 7 Jul 2017 16:16:27 +0000 (09:16 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 7 Jul 2017 18:08:40 +0000 (11:08 -0700)
commit214ac6d4952f4c45605d20d3b883eab4fa9e2fb2
treeacca5567ffa9fb8db37da72140d59e1a642f0a90
parent1752ea92dc11935e0595d208fdfe8203baf5b55c
configure: Fix check for rte_config.h to handle cross-compilation.

The check for rte_config.h in acinclude.m4 used AC_CHECK_FILE, but this
macro is intended to check for a file on the host system, not the build
system, which means that it fails unconditionally in a cross-compilation
environment.  However, the intended check here is for a header file,
which is part of the build system.  To check for part of the build system,
we can just use "test", so this commit makes that change.

Reported-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2017-March/329994.html
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Darrell Ball <dlu998@gmail.com>
acinclude.m4