public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 2/3] Replaced obsolete AC_TRY_LINK to AC_LINK_IFELSE
@ 2021-02-16 12:00 Naohiro Tamura
  2021-02-16 13:04 ` Andreas Schwab
  2021-02-17  1:20 ` [PATCH v2 " Naohiro Tamura
  0 siblings, 2 replies; 6+ messages in thread
From: Naohiro Tamura @ 2021-02-16 12:00 UTC (permalink / raw)
  To: libc-alpha

This patch replaced obsolete AC_TRY_LINK to AC_LINK_IFELSE.
It has been confirmed that GNU 'autoconf' 2.69 doesn't change the
'configure' file and suppressed obsolete warning.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index d8ccb6c119..b7f6f8f008 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1579,7 +1579,7 @@ 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"
-- 
2.17.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-02-22  1:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16 12:00 [PATCH 2/3] Replaced obsolete AC_TRY_LINK to AC_LINK_IFELSE Naohiro Tamura
2021-02-16 13:04 ` Andreas Schwab
2021-02-17  1:08   ` naohirot
2021-02-17  1:20 ` [PATCH v2 " Naohiro Tamura
2021-02-21 23:40   ` Mike Frysinger
2021-02-22  1:50     ` naohirot

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).