1 extern crate pkg_config;
4 // See https://github.com/joshtriplett/metadeps/issues/9 for why we don't use
5 // metadeps here, but instead keep this manually in sync with Cargo.toml.
6 if let Err(e) = pkg_config::Config::new().atleast_version("1.6").probe("dbus-1") {
7 eprintln!("pkg_config failed: {}", e);
9 "One possible solution is to check whether packages\n\
10 'libdbus-1-dev' and 'pkg-config' are installed:\n\
12 sudo apt install libdbus-1-dev pkg-config\n\
14 sudo dnf install dbus-devel pkgconf-pkg-config\n"