From 5f078928bbe85c11d5240d178b3801cd2e23198e Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 16 Feb 2021 20:54:46 -0800 Subject: [PATCH] * configure.ac: Replace obsolete AC_TRY_LINK with AC_LINK_IFELSE. --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 5fd0e76b823..9a294bc796f 100644 --- a/configure.ac +++ b/configure.ac @@ -4715,10 +4715,10 @@ if test "$USE_X_TOOLKIT" != "none"; then else OTHERLIBS="-lXt -$LIBXMU" fi - AC_TRY_LINK( - [#include - #include ], - [_XEditResCheckMessages (0, 0, 0, 0);], + AC_LINK_IFELSE([AC_LANG_PROGRAM( + [[#include + #include ]], + [[_XEditResCheckMessages (0, 0, 0, 0);]])], [AC_DEFINE([X_TOOLKIT_EDITRES], 1, [Define to 1 if we should use XEditRes.])]) LIBS=$OLDLIBS -- 2.39.2