extern crate pkg_config;
use std::env;
#[allow(unused)]
fn find_library(pc_name: &str, lib_name: &str, fallback: bool) {
match pkg_config::Config::new().atleast_version("2.0").probe(pc_name) {
Ok(_) => (),
Err(_) => if fallback { println!("cargo:rustc-link-lib={}", lib_name) },
};
}
fn main () {
match env::var_os("DO") {
Some(_) => {
#[cfg(target_os = "macos")]
println!("cargo:rustc-cfg=have_utimensat=\"0\"");
#[cfg(not(target_os = "macos"))]
println!("cargo:rustc-cfg=have_utimensat=\"1\"");
},
None => println!("cargo:rustc-cfg=have_utimensat=\"1\""),
}
#[cfg(feature = "profiling")] find_library("libprofiler", "profiler", true);
}