From bdee55420232f16d73210517e96320636e0f2e7d Mon Sep 17 00:00:00 2001 From: Pietro Monteiro Date: Wed, 6 Aug 2025 21:47:00 -0400 Subject: Update obsolete autoconf macros bfd/ * bfd.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. binutils/ * configure.ac: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. gas/ * acinclude.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. gprof/ * configure.ac: Replace AC_OUTPUT(file list) with AC_CONFIG_FILES([file list])\nAC_OUTPUT. libctf/ * configure.ac: Replace AC_TRY_LINK with AC_LINK_IFELSE. opcodes/ * configure.ac: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. --- libctf/configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libctf') diff --git a/libctf/configure.ac b/libctf/configure.ac index 40d00e8..62e6225 100644 --- a/libctf/configure.ac +++ b/libctf/configure.ac @@ -98,12 +98,12 @@ LDFLAGS="-L../bfd -L../libiberty $LDFLAGS" intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` LIBS="-lbfd -liberty $intl $LIBS" AC_CACHE_CHECK([for ELF support in BFD], ac_cv_libctf_bfd_elf, -[AC_TRY_LINK([#include +[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include #include #include "bfd.h" - #include "elf-bfd.h"], - [(void) bfd_section_from_elf_index (NULL, 0); - return 0;], + #include "elf-bfd.h"]], + [[(void) bfd_section_from_elf_index (NULL, 0); + return 0;]])], [ac_cv_libctf_bfd_elf=yes], [ac_cv_libctf_bfd_elf=no])]) CFLAGS=$OLD_CFLAGS -- cgit v1.1