extern crate pkg_config;
use std::env;
fn main() {
let target = env::var("TARGET").unwrap();
if target.ends_with("-apple-darwin") {
pkg_config::find_library("osxfuse").unwrap();
} else if target.ends_with("-unknown-linux-gnu") || target.ends_with("-unknown-linux-musl") {
pkg_config::find_library("fuse").unwrap();
} else {
panic!("{} is not a supported target for tfs-fuse-sys!", target);
}
}