summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-12-11 18:55:58 +0800
committerGitHub <[email protected]>2021-12-11 18:55:58 +0800
commitb45552a5f4a026d298b8cd944200713189f9f952 (patch)
treedec2874e253e7016c4973167b6518df0ee3ae636
parent16c681c62506a2512ce8717ae377fa3e8d5d2f26 (diff)
Update autoconf.lua
-rw-r--r--xmake/modules/package/tools/autoconf.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua
index 833aa2f02..12b94d64f 100644
--- a/xmake/modules/package/tools/autoconf.lua
+++ b/xmake/modules/package/tools/autoconf.lua
@@ -377,6 +377,18 @@ function build(package, configs, opt)
if option.get("verbose") then
table.insert(argv, "V=1")
end
+ if opt.makeconfigs then
+ for name, value in pairs(opt.makeconfigs) do
+ value = tostring(value):trim()
+ if value ~= "" then
+ if type(name) == "number" then
+ table.insert(argv, value)
+ else
+ table.insert(argv, name .. "=" .. value)
+ end
+ end
+ end
+ end
make(package, argv, opt)
end
@@ -392,6 +404,18 @@ function install(package, configs, opt)
if option.get("verbose") then
table.insert(argv, "V=1")
end
+ if opt.makeconfigs then
+ for name, value in pairs(opt.makeconfigs) do
+ value = tostring(value):trim()
+ if value ~= "" then
+ if type(name) == "number" then
+ table.insert(argv, value)
+ else
+ table.insert(argv, name .. "=" .. value)
+ end
+ end
+ end
+ end
make(package, argv, opt)
end