[binutils-gdb] config: Update obsolete autoconf macro

Pietro Monteiro pietro@sourceware.org
Thu Aug 14 21:43:34 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9f685464440e479244ce01262bdd216af14ccdad

commit 9f685464440e479244ce01262bdd216af14ccdad
Author: Pietro Monteiro <pietro@sociotechnical.xyz>
Date:   Thu Aug 14 17:40:37 2025 -0400

    config: Update obsolete autoconf macro
    
    Change AC_TRY_LINK to AC_LINK_IFELSE in config/dejagnu.m4.
    
    Reviewed-by: Indu Bhagat <indu.bhagat@oracle.com>

Diff:
---
 config/dejagnu.m4 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/config/dejagnu.m4 b/config/dejagnu.m4
index 0606e42cb53..e0ed81830b2 100644
--- a/config/dejagnu.m4
+++ b/config/dejagnu.m4
@@ -9,9 +9,9 @@ AC_DEFUN([DEJAGNU_CHECK_VERSION],
   AC_MSG_CHECKING([for incompatibility between DejaGnu and GCC])
   AC_MSG_RESULT([$ac_cv_dejagnu_compat])
 
-  AC_TRY_LINK([#include <dejagnu.h>],
-	      [pass ("test foo");
-	       return 0;],
+  AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <dejagnu.h>]],
+				  [[pass ("test foo");
+	       return 0;]])],
 	      [ac_cv_dejagnu_compat=yes],
 	      [ac_cv_dejagnu_compat=no])
   AC_MSG_RESULT([$ac_cv_dejagnu_compat])


More information about the Binutils-cvs mailing list