From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 2A703384241C for ; Sun, 21 Feb 2021 23:40:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2A703384241C Received: from vapier (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 70BF0340CC0; Sun, 21 Feb 2021 23:40:43 +0000 (UTC) Date: Sun, 21 Feb 2021 18:40:42 -0500 From: Mike Frysinger To: Naohiro Tamura Cc: libc-alpha@sourceware.org Subject: Re: [PATCH v2 2/3] Replaced obsolete AC_TRY_LINK to AC_LINK_IFELSE Message-ID: Mail-Followup-To: Naohiro Tamura , libc-alpha@sourceware.org References: <20210216120021.213600-1-naohirot@fujitsu.com> <20210217012017.215961-1-naohirot@fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210217012017.215961-1-naohirot@fujitsu.com> X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, 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: Sun, 21 Feb 2021 23:40:48 -0000 On 17 Feb 2021 01:20, Naohiro Tamura wrote: > --- 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]) i fixed the indentation & pushed the result. - 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]) -mike