configurator: more robust test for HAVE_NESTED_FUNCTIONS