Use the non-depreciated autoconfUserHooks in the Setup script (it automatically checks for the configure script).