about summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorNaohiro Tamura <naohirot@fujitsu.com>2021-02-17 01:20:17 +0000
committerMike Frysinger <vapier@gentoo.org>2021-02-21 18:39:01 -0500
commite9e7f24543e6d1b0a31641f144697e261df6ccd7 (patch)
treef25948b5dc40178b387e4728b2c752870db7af17 /configure.ac
parent3907c7bf0f82878363a8cccb83f7258b744c3f27 (diff)
downloadglibc-e9e7f24543e6d1b0a31641f144697e261df6ccd7.tar.gz
glibc-e9e7f24543e6d1b0a31641f144697e261df6ccd7.tar.xz
glibc-e9e7f24543e6d1b0a31641f144697e261df6ccd7.zip
configure: Replace obsolete AC_TRY_LINK with AC_LINK_IFELSE
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.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 1c82e3cd18..16b15b6f90 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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"