diff options
author | Rajagopal Venkat <rajagopal.venkat@linaro.org> | 2012-06-25 22:44:13 +0530 |
---|---|---|
committer | Chris E Ferron <chris.e.ferron@linux.intel.com> | 2012-07-19 11:30:47 -0700 |
commit | 98ca605e7cf856795facc4a3a4f9c5b9baf1cab1 (patch) | |
tree | 5e3f3aad53f3bb500ce98c4f0e220382f6d8b808 | |
parent | 0957efe14f7877c4d90a8706e5e8b84e8a80c2d6 (diff) |
conditionally disable pci if not supported
disable pci if not supported by host platform. When
libpci is not found, define a macro which will be
used for conditional compilation.
Signed-off-by: Rajagopal Venkat <rajagopal.venkat@linaro.org>
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 4b3d027..cb14cf3 100644 --- a/configure.ac +++ b/configure.ac @@ -48,7 +48,7 @@ AC_CHECK_FUNCS([fdatasync getpagesize gettimeofday memmove memset mkdir munmap p AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], AC_MSG_ERROR([ncurses is required but was not found]), []) PKG_CHECK_MODULES([PCIUTILS], [libpci],[],[ - AC_SEARCH_LIBS([pci_get_dev], [pci], [], AC_MSG_ERROR([libpci is required but was not found]), []) + AC_SEARCH_LIBS([pci_get_dev], [pci],[], AC_DEFINE([HAVE_NO_PCI],[1],[Define if pci is not supported]), []) ]) has_libnl_ver=0 |