diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-11-03 21:45:44 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-11-03 21:45:44 +0100 |
commit | 9cf19f93324f1a7adfc5c386050d21ce6d661203 (patch) | |
tree | 23843074b216ac0406284afa33074c3a9c04ed73 /configure.ac | |
parent | 513e5f1def6e019613430d2ffed952da470fb801 (diff) | |
download | hurd-9cf19f93324f1a7adfc5c386050d21ce6d661203.tar.gz hurd-9cf19f93324f1a7adfc5c386050d21ce6d661203.tar.bz2 hurd-9cf19f93324f1a7adfc5c386050d21ce6d661203.zip |
pciaccess: properly detect and use
* configure.ac: Detect pciaccess pkg module. Define HAVE_LIBPCIACCESS,
libpciaccess_CFLAGS, libpciaccess_LIBS variables.
* config.make.in (HAVE_LIBPCIACCESS, libpciaccess_CFLAGS,
libpciaccess_LIBS): Add variables.
* Makefile (prog-subdirs) [!HAVE_LIBPCIACCESS]: Do not add pci-arbiter.
* pci-arbiter/Makefile (LDLIBS): Use $(libpciaccess_LIBS) instead of
-lpciaccess.
(CFLAGS): Use $(libpciaccess_CFLAGS).
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 4f0c3bba..af04d051 100644 --- a/configure.ac +++ b/configure.ac @@ -365,6 +365,11 @@ AC_SUBST([HAVE_LIBLWIP]) AC_SUBST([liblwip_CFLAGS]) AC_SUBST([liblwip_LIBS]) +PKG_CHECK_MODULES([libpciaccess], [pciaccess], [HAVE_LIBPCIACCESS=yes], [HAVE_LIBPCIACCESS=no]) +AC_SUBST([HAVE_LIBPCIACCESS]) +AC_SUBST([libpciaccess_CFLAGS]) +AC_SUBST([libpciaccess_LIBS]) + AC_CONFIG_FILES([config.make ${makefiles}]) AC_OUTPUT |