public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] configure: Replace obsolete AC_TRY_LINK with AC_LINK_IFELSE
@ 2021-02-21 23:40 Michael Frysinger
0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2021-02-21 23:40 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e9e7f24543e6d1b0a31641f144697e261df6ccd7
commit e9e7f24543e6d1b0a31641f144697e261df6ccd7
Author: Naohiro Tamura <naohirot@fujitsu.com>
Date: Wed Feb 17 01:20:17 2021 +0000
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.
Diff:
---
configure.ac | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-21 23:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-21 23:40 [glibc] configure: Replace obsolete AC_TRY_LINK with AC_LINK_IFELSE Michael Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).