aboutsummaryrefslogtreecommitdiff
path: root/libctf
diff options
context:
space:
mode:
authorPietro Monteiro <pietro@sociotechnical.xyz>2025-08-06 21:47:00 -0400
committerAlan Modra <amodra@gmail.com>2025-08-07 22:14:49 +0930
commitbdee55420232f16d73210517e96320636e0f2e7d (patch)
treed43cc0cce1c25ba0c3ec1e7888528b0be758a495 /libctf
parent158b142e801393f4c68b54ec57fee7dee0558eff (diff)
downloadbinutils-bdee55420232f16d73210517e96320636e0f2e7d.zip
binutils-bdee55420232f16d73210517e96320636e0f2e7d.tar.gz
binutils-bdee55420232f16d73210517e96320636e0f2e7d.tar.bz2
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.
Diffstat (limited to 'libctf')
-rw-r--r--libctf/configure.ac8
1 files changed, 4 insertions, 4 deletions
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 <stdlib.h>
+[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>
#include <string.h>
#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