add two scripts to detect dependencies from ./configure.