Added presence detection function for autotools, etc.