package("autoconf") set_kind("binary") set_homepage("https://www.gnu.org/software/autoconf/autoconf.html") set_description("An extensible package of M4 macros that produce shell scripts to automatically configure software source code packages.") add_urls("http://ftp.gnu.org/gnu/autoconf/autoconf-$(version).tar.gz", "https://mirrors.ustc.edu.cn/gnu/autoconf/autoconf-$(version).tar.gz", "git://git.sv.gnu.org/autoconf") add_versions("2.68", "eff70a2916f2e2b3ed7fe8a2d7e63d72cf3a23684b56456b319c3ebce0705d99") add_versions("2.69", "954bd69b391edc12d6a4a51a2dd1476543da5c6bbf05a95b59dc0dd6fd4c2969") add_versions("2.71", "431075ad0bf529ef13cb41e9042c542381103e80015686222b8a9d4abef42a1c") if is_host("linux") then add_extsources("apt::autoconf") end add_deps("m4") on_install("@macosx", "@linux", "@bsd", function (package) import("package.tools.autoconf").install(package) end) on_test(function (package) os.vrun("autoconf --version") end)