use std::path::Path;
fn main() {
let candidates = ["/usr/local/lib", "/opt/homebrew/lib"];
for candidate in candidates {
let dylib = Path::new(candidate).join("libfdb_c.dylib");
if dylib.exists() {
println!("cargo:rustc-link-search=native={candidate}");
break;
}
}
}