def METHOD_NAME(self):
    apply_conandata_patches(self)
    # support more triplets
    for gnu_config in [
        self.conf.get("user.gnu-config:config_guess", check_type=str),
        self.conf.get("user.gnu-config:config_sub", check_type=str),
    ]:
        if gnu_config:
            copy(self, os.path.basename(gnu_config), src=os.path.dirname(gnu_config), dst=self.source_folder)
    # allow external libtdl (in libtool recipe)
    replace_in_file(
        self,
        os.path.join(self.source_folder, "configure"),
        "if test -f \"$with_ltdl_lib/libltdl.la\";",
        "if true;",
    )
    libtool_system_libs = self.dependencies["libtool"].cpp_info.aggregated_components().system_libs
    if libtool_system_libs:
        replace_in_file(
            self,
            os.path.join(self.source_folder, "configure"),
            "-L$with_ltdl_lib -lltdl",
            "-L$with_ltdl_lib -lltdl -l{}".format(" -l".join(libtool_system_libs)),
        )