From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Ulmsf-0007Gp-G5 for mharc-grub-devel@gnu.org; Sun, 09 Jun 2013 17:10:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ulmsb-0007GR-BW for grub-devel@gnu.org; Sun, 09 Jun 2013 17:10:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UlmsY-0000HL-Tp for grub-devel@gnu.org; Sun, 09 Jun 2013 17:10:25 -0400 Received: from mail.gw90.de ([188.40.100.199]:41747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlmsY-0000Gv-NC for grub-devel@gnu.org; Sun, 09 Jun 2013 17:10:22 -0400 Received: from e178065185.adsl.alicedsl.de ([85.178.65.185] helo=[192.168.2.49]) by mail.gw90.de with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1UlmsU-0001Jl-4h for grub-devel@gnu.org; Sun, 09 Jun 2013 21:10:18 +0000 Message-ID: <1370812214.5437.13.camel@mattotaupa> Subject: Re: [BUG][PATCH] configure.ac: Respect the configured freetype-config From: Paul Menzel To: grub-devel@gnu.org Date: Sun, 09 Jun 2013 23:10:14 +0200 In-Reply-To: <20130608080051.26e42526@opensuse.site> References: <20130607222002.6d37ec61@opensuse.site> <20130608080051.26e42526@opensuse.site> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-j/d1jEQBU9dMMQ9SgrXn" X-Mailer: Evolution 3.4.4-3 Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 188.40.100.199 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jun 2013 21:10:27 -0000 --=-j/d1jEQBU9dMMQ9SgrXn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Am Samstag, den 08.06.2013, 08:00 +0400 schrieb Andrey Borzenkov: > =D0=92 Fri, 7 Jun 2013 14:35:10 -0400 > David Michael =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > On Fri, Jun 7, 2013 at 2:20 PM, Andrey Borzenkov = wrote: > > > But FREETYPE cannot be anything than freetype-config, can it? Do you > > > actually have situation when AC_CHECK_PROGS([FREETYPE], > > > [freetype-config]) succeeds but call to freetype-config fails? > >=20 > > In my case, I noticed this issue while attempting to cross-compile > > GRUB for another system. It needs to use the cross-compiled freetype > > configuration, but the build system has its native freetype-config > > installed as well. Using a variable here allowed me to specify the > > correct freetype-config as per the usual AC_CHECK_PROGS behavior. > >=20 >=20 > I still do not understand it. AC_CHECK_PROG does not change behavior in > case of cross-compilation, it simply finds first program in PATH. >=20 > Could you explain you setup in more details and show config.log both > with and without your patch? But later on freetype_cflags=3D`$FREETYPE --cflags` is executed, which is going to get the CFLAGS from the build(?) system (GRUB is built on) and not the target(?) system (GRUB is built for), so the flags from the build system are going to be used (like x86 and not ARM). > > This isn't a big problem since I am able to build on the target system > > as well, but it would be nice to have working out of the box. Thanks, Paul --=-j/d1jEQBU9dMMQ9SgrXn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEABECAAYFAlG07zYACgkQPX1aK2wOHVi74QCeN1eQXlGF1SKoimBDX4j8pvaB fbgAoIPiAx3MFRNk9fxLErr1ZhY02xCd =8xk6 -----END PGP SIGNATURE----- --=-j/d1jEQBU9dMMQ9SgrXn--