add rules for travis how to test
improve prog checks when used with args
honor ac_cv_* env settings as they're cache idents