extern crate pnacl_build_helper as helper;
use std::env::current_dir;
use std::path::Path;
pub fn main() {
let libs = [(Path::new("ssl/.libs/").to_path_buf(),
"ssl:static".to_string()),
(Path::new("crypto/.libs/").to_path_buf(),
"crypto:static".to_string())];
let mut src_dir = current_dir()
.unwrap();
src_dir.push("libressl");
let mut cfg = helper::ConfigureMake::new
(&["--disable-shared".to_string(),
"--without-pic".to_string(),
"CFLAGS=-DNO_SYSLOG".to_string()],
&libs,
src_dir);
cfg.make_only_dir(Path::new("ssl").to_path_buf())
.make_only_dir(Path::new("crypto").to_path_buf());
cfg.configure();
cfg.make();
}