]> git.proxmox.com Git - ovs.git/commit
acinclude: Check for rte_config.h before checking dependencies.
authorIlya Maximets <i.maximets@samsung.com>
Tue, 12 Feb 2019 13:19:31 +0000 (16:19 +0300)
committerIan Stokes <ian.stokes@intel.com>
Tue, 12 Feb 2019 16:47:47 +0000 (16:47 +0000)
commit865cee2baa1a07d17be6797c7f228e21c891b79b
treea912ecaa913862eef2f014cabb809a90dca7afc9
parent216abd2808d45b983e551ea26e464700a642a23a
acinclude: Check for rte_config.h before checking dependencies.

Current ./configure script shows misleading errors in case of wrong
DPDK path:

  # ./configure --with-dpdk=/wrong/path
  ...
  checking whether dpdk datapath is enabled... yes
  checking for library containing get_mempolicy... -lnuma
  checking for library containing pcap_dump... -lpcap
  checking for library containing mnl_attr_put... no
  configure: error: unable to find libmnl, install the dependency package

This happens because we're not checking for headers before checking
for dependencies. All the compile attempts fails and script thinks
that we need more dependencies.

With this change script will check for 'rte_config.h' availability
and produce sane error message:

  # ./configure --with-dpdk=/wrong/path
  ...
  checking for rte_config.h... no
  configure: error: unable to find rte_config.h in /wrong/path

'AC_INCLUDES_DEFAULT' passed explicitly to avoid preprocessor test.

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
acinclude.m4