updated: [master] [87a7629] buildsys: fix ar check by doing it before toolchain checks implicitly looking for ar

1 view
Skip to first unread message

Yury V. Zaytsev

unread,
Jul 28, 2024, 4:01:35 AM7/28/24
to mc-co...@googlegroups.com
The following commit has been merged in the master branch:
commit 87a76294c46731610f233127bde3e11286f6d230
Author: Yury V. Zaytsev <yu...@shurup.com>
Date: Sat Jul 27 21:18:48 2024 +0200

buildsys: fix ar check by doing it before toolchain checks implicitly looking for ar

Signed-off-by: Yury V. Zaytsev <yu...@shurup.com>

diff --git a/configure.ac b/configure.ac
index a18defa..e3d89ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,6 +36,10 @@ dnl ############################################################################
dnl Check for compiler
dnl ############################################################################

+dnl This should be checked before toolchain macros, otherwise they will remember
+dnl that ar cannot be found and linking via libtool will fail at a later stage
+AC_CHECK_TOOLS([AR], [ar gar])
+
AC_PROG_CC
AM_PROG_CC_C_O

@@ -211,8 +215,7 @@ dnl ############################################################################
dnl Check for other tools
dnl ############################################################################

-AC_CHECK_TOOL(AR, ar, ar)
-AC_CHECK_TOOL(INDENT, gindent, indent)
+AC_CHECK_TOOLS([INDENT], [gindent indent])
mc_UNIT_TESTS



--
Midnight Commander Development
Reply all
Reply to author
Forward
0 new messages