Skip to content

Commit c3985ad

Browse files
configure: Use modern way to set AR
This uses AM_PROG_AR to discover AR, which is the recommended way to do so. Among other advantages, it honors the AR environment variable (as set from the outside). The macro has been around since automake 1.11.2 (Dec 2011). This commit also removes code that sets RANLIB and STRIP. ranlib is obsolete since the 1980s (ar does its task now automatically). The code we used to set STRIP was last mentioned in the automake 1.5 manual. Since automake 1.6 (Mar 2020), strip is discovered automatically when necessary (look for the *private* macro AM_PROG_INSTALL_STRIP in the automake manual).
1 parent ac83be3 commit c3985ad

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

configure.ac

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,12 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
3434

3535
PKG_PROG_PKG_CONFIG
3636

37-
AC_PATH_TOOL(AR, ar)
38-
AC_PATH_TOOL(RANLIB, ranlib)
39-
AC_PATH_TOOL(STRIP, strip)
40-
4137
AC_PROG_CC
4238
if test x"$ac_cv_prog_cc_c89" = x"no"; then
4339
AC_MSG_ERROR([c89 compiler support required])
4440
fi
4541
AM_PROG_AS
42+
AM_PROG_AR
4643

4744
build_windows=no
4845

0 commit comments

Comments
 (0)