fn check_dependencies() {
    fn fails_to_run(terms: &[&str]) -> bool {
        Command::new(&terms[0])
            .args(&terms[1..])
            .stdout(Stdio::null())
            .stderr(Stdio::null())
            .status()
            .is_err()
    }

    if fails_to_run(&["make", "--version"]) {
        panic!(
            "

It seems your system does not have GNU make installed. Make is required
to build Themis from source.

Please install \"make\" or \"build-essential\" package and try again.

        "
        );
    }

    if fails_to_run(&["cc", "--version"]) {
        panic!(
            "

It seems your system does not have a C compiler installed. C compiler
is required to build Themis from source.

Please install \"clang\" (or \"gcc\" and \"g++\") package and try again.

        "
        );
    }

    // TODO: check for SomethingSSL, it would be nice for the user
}
/// Verifies binary dependencies of Themis build. Panics if dependencies are not satisfied.
Verifies binary dependencies of Themis build. Panics if dependencies are not satisfied.
Verifies binary dependencies of Themis build . Panics if dependencies are not satisfied .
fn check_dependencies() {
    fn fails_to_run(terms: &[&str]) -> bool {
        Command::new(&terms[0])
            .args(&terms[1..])
            .stdout(Stdio::null())
            .stderr(Stdio::null())
            .status()
            .is_err()
    }
    if fails_to_run(&["make", "--version"]) {
        panic!(
            "
It seems your system does not have GNU make installed. Make is required
to build Themis from source.
Please install \"make\" or \"build-essential\" package and try again.
        "
        );
    }
    if fails_to_run(&["cc", "--version"]) {
        panic!(
            "
It seems your system does not have a C compiler installed. C compiler
is required to build Themis from source.
Please install \"clang\" (or \"gcc\" and \"g++\") package and try again.
        "
        );
    }
    // TODO: check for SomethingSSL, it would be nice for the user
}
fn check_dependencies ( ) { fn fails_to_run ( terms : & [ & str ] ) -> bool { Command :: new ( & terms [ 0 ] ) . args ( & terms [ 1 .. ] ) . stdout ( Stdio :: null ( ) ) . stderr ( Stdio :: null ( ) ) . status ( ) . is_err ( ) } if fails_to_run ( & [ " " , " " ] ) { panic ! ( " \" \" \" \" " ) ; } if fails_to_run ( & [ " " , " " ] ) { panic ! ( " \" \" \" \" \" \" " ) ; } // TODO: check for SomethingSSL, it would be nice for the user }
Verifies binary dependencies of Themis build.
Verifies binary dependencies of Themis build .