aboutsummaryrefslogtreecommitdiff
path: root/opcodes
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 /opcodes
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 'opcodes')
-rw-r--r--opcodes/configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/opcodes/configure.ac b/opcodes/configure.ac
index 783ac2a..675f066 100644
--- a/opcodes/configure.ac
+++ b/opcodes/configure.ac
@@ -101,10 +101,10 @@ AC_CHECK_DECLS([basename, stpcpy])
# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
# since sigsetjmp might only be defined as a macro.
AC_CACHE_CHECK([for sigsetjmp], gdb_cv_func_sigsetjmp,
-[AC_TRY_COMPILE([
+[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <setjmp.h>
-], [sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);],
-bfd_cv_func_sigsetjmp=yes, bfd_cv_func_sigsetjmp=no)])
+]], [[sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);]])],
+[bfd_cv_func_sigsetjmp=yes], [bfd_cv_func_sigsetjmp=no])])
if test $bfd_cv_func_sigsetjmp = yes; then
AC_DEFINE(HAVE_SIGSETJMP, 1, [Define if sigsetjmp is available. ])
fi