autoconf: sync with upstream pa_option_lto.m4

This change has no effect on NASM, but syncs with the upstream
collection. RANLIB should be defaulting to : if not present.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel) 2026-06-04 10:50:54 -07:00
parent 3ee140842f
commit ea675d0af7

View file

@ -13,7 +13,7 @@ dnl If not, do it now to prevent it from getting down further down.
dnl Do it unconditionally to avoid inconsistent behavior with or
dnl without --enable-lto.
AS_IF([test -z "$AR"], [AC_CHECK_TOOL(AR, ar)])
AS_IF([test -z "$RANLIB"], [AC_CHECK_TOOL(RANLIB, ranlib)])
AS_IF([test -z "$RANLIB"], [AC_CHECK_TOOL(RANLIB, ranlib, :)])
PA_ARG_BOOL([lto],
[Try to enable link-time optimization for this compiler],