[PATCH] Avoid running configure twice on Autotools projects