From: Glenn Morris Date: Wed, 17 Feb 2021 04:54:46 +0000 (-0800) Subject: * configure.ac: Replace obsolete AC_TRY_LINK with AC_LINK_IFELSE. X-Git-Tag: emacs-28.0.90~3690 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5f078928bbe85c11d5240d178b3801cd2e23198e;p=emacs.git * configure.ac: Replace obsolete AC_TRY_LINK with AC_LINK_IFELSE. --- 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