summaryrefslogtreecommitdiff
path: root/xmake/modules/private
diff options
context:
space:
mode:
authorÂngelo Andrade Cirino <[email protected]>2022-01-14 09:15:19 -0300
committerÂngelo Andrade Cirino <[email protected]>2022-01-14 09:15:19 -0300
commit274244bf3530a77ab3c93309e5ea5bb5d29907ae (patch)
treec77ea18ad77df218272b0d63089e121e433e1457 /xmake/modules/private
parented0c0c5e0249aa966ea7061b30710abdd0b09d87 (diff)
parentedcbcd5127a9f3b7bbe93d34aa1921856db9a8fb (diff)
Merge branch 'master' of https://github.com/xmake-io/xmake into modnamefix
Diffstat (limited to 'xmake/modules/private')
-rw-r--r--xmake/modules/private/action/trybuild/autotools.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/modules/private/action/trybuild/autotools.lua b/xmake/modules/private/action/trybuild/autotools.lua
index 1d4090522..fe484c98e 100644
--- a/xmake/modules/private/action/trybuild/autotools.lua
+++ b/xmake/modules/private/action/trybuild/autotools.lua
@@ -221,8 +221,10 @@ function build()
if not os.isfile("configure") then
if os.isfile("autogen.sh") then
os.vexecv("sh", {"./autogen.sh"})
- elseif os.isfile("configure.ac") then
- os.vexecv("sh", {"autoreconf", "--install", "--symlink"})
+ elseif os.isfile("configure.ac") or os.isfile("configure.in") then
+ local autoreconf = find_tool("autoreconf")
+ assert(autoreconf, "autoreconf not found!")
+ os.vexecv("sh", {autoreconf.program, "--install", "--symlink"})
end
end