]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
configure: Replace obsolete AC_TRY_LINK with AC_LINK_IFELSE
authorNaohiro Tamura <naohirot@fujitsu.com>
Wed, 17 Feb 2021 01:20:17 +0000 (01:20 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 21 Feb 2021 23:39:01 +0000 (18:39 -0500)
This patch replaces obsolete AC_TRY_LINK with AC_LINK_IFELSE.
It has been confirmed that GNU 'autoconf' 2.69 doesn't change the
'configure' file and suppressed obsolete warning.

configure.ac

index 1c82e3cd18f49ee6f19ea330f0867407e7839b62..16b15b6f90ebd0cb1248db121ec8fddd166218f6 100644 (file)
@@ -1578,7 +1578,8 @@ if test "$with_gd" != "no"; then
   LDFLAGS="$LDFLAGS $libgd_ldflags"
   old_LIBS="$LIBS"
   LIBS="$LIBS -lgd -lpng -lz -lm"
-  AC_TRY_LINK([#include <gd.h>], [gdImagePng (0, 0)], LIBGD=yes, LIBGD=no)
+  AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <gd.h>]], [[gdImagePng (0, 0)]])],
+                [LIBGD=yes], [LIBGD=no])
   CFLAGS="$old_CFLAGS"
   LDFLAGS="$old_LDFLAGS"
   LIBS="$old_LIBS"