From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa12.hc1455-7.c3s2.iphmx.com (esa12.hc1455-7.c3s2.iphmx.com [139.138.37.100]) by sourceware.org (Postfix) with ESMTPS id E28F0386102F for ; Wed, 17 Feb 2021 01:21:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E28F0386102F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=fujitsu.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=naohirot@fujitsu.com IronPort-SDR: L6b7nfYipVXODdNRID0dRYD1KZOQ0JAGsc4eJQOkUoAQrdjH5OlTn3iOV8o8E4OkuLivapXIVC t5LOsp4eRPLmpvQZC5nx7PvzgsTaIF3ipIK76gh3O/EUpr11lh+p9TEgUtOJkSGssbJWaZoi4C egeK5Sg3B1REmN1ZatJymPim+NG6lJEnuAZSaEq40dwZW+0u2SQ2xER20ux/oMgVVjK+qVjwAp bxx++cmv7ptGFw5UXjPZKQyR0vp7hgxXDIHYuULD07/dzy7X3N0nweWkDnz8VqoFB1SgUCdeu5 erY= X-IronPort-AV: E=McAfee;i="6000,8403,9897"; a="60142" X-IronPort-AV: E=Sophos;i="5.81,184,1610377200"; d="scan'208";a="60142" Received: from unknown (HELO yto-r1.gw.nic.fujitsu.com) ([218.44.52.217]) by esa12.hc1455-7.c3s2.iphmx.com with ESMTP; 17 Feb 2021 10:21:28 +0900 Received: from yto-m2.gw.nic.fujitsu.com (yto-nat-yto-m2.gw.nic.fujitsu.com [192.168.83.65]) by yto-r1.gw.nic.fujitsu.com (Postfix) with ESMTP id E9FB3EC7AA for ; Wed, 17 Feb 2021 10:21:27 +0900 (JST) Received: from m3051.s.css.fujitsu.com (m3051.s.css.fujitsu.com [10.134.21.209]) by yto-m2.gw.nic.fujitsu.com (Postfix) with ESMTP id 42E599BAE9 for ; Wed, 17 Feb 2021 10:21:27 +0900 (JST) Received: from bionic.lxd (unknown [10.126.53.116]) by m3051.s.css.fujitsu.com (Postfix) with ESMTP id 3657822E; Wed, 17 Feb 2021 10:21:27 +0900 (JST) From: Naohiro Tamura To: libc-alpha@sourceware.org Subject: [PATCH v2 2/3] Replaced obsolete AC_TRY_LINK to AC_LINK_IFELSE Date: Wed, 17 Feb 2021 01:20:17 +0000 Message-Id: <20210217012017.215961-1-naohirot@fujitsu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210216120021.213600-1-naohirot@fujitsu.com> References: <20210216120021.213600-1-naohirot@fujitsu.com> X-TM-AS-GCONF: 00 X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2021 01:21:34 -0000 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d8ccb6c119..14e85a221f 100644 --- a/configure.ac +++ b/configure.ac @@ -1579,7 +1579,8 @@ if test "$with_gd" != "no"; then LDFLAGS="$LDFLAGS $libgd_ldflags" old_LIBS="$LIBS" LIBS="$LIBS -lgd -lpng -lz -lm" - AC_TRY_LINK([#include ], [gdImagePng (0, 0)], LIBGD=yes, LIBGD=no) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[gdImagePng (0, 0)]])], + [LIBGD=yes],[LIBGD=no]) CFLAGS="$old_CFLAGS" LDFLAGS="$old_LDFLAGS" LIBS="$old_LIBS" -- 2.17.1