Rewritten configure.ac by one from parent repository

copy&paste in previous commit somehow failed.