fix bug 4115 'autogen: avoid unwarranted re-configure'