From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csPaV-0007lx-00 for qemu-devel@nongnu.org; Mon, 27 Mar 2017 04:01:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csPaQ-0006qS-Ju for qemu-devel@nongnu.org; Mon, 27 Mar 2017 04:01:15 -0400 Received: from smtp.ctxuk.citrix.com ([185.25.65.24]:24814 helo=SMTP.EU.CITRIX.COM) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1csPaQ-0006o3-B7 for qemu-devel@nongnu.org; Mon, 27 Mar 2017 04:01:10 -0400 From: Paul Durrant Date: Mon, 27 Mar 2017 08:01:07 +0000 Message-ID: References: <1490376002-1223-1-git-send-email-paul.durrant@citrix.com> <671b281d-4536-0117-b9a2-b6b72242d3f5@suse.com> <2a218de0a59a4060b00a0f3839323d37@AMSPEX02CL03.citrite.net> <4334f125a9174a2e99e5b6f1228da2cd@AMSPEX02CL03.citrite.net> In-Reply-To: Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH RESEND] xen: limit pkg-config to PKG_CONFIG_PATH for xen libraries List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Juergen Gross' , 'Stefano Stabellini' Cc: Anthony Perard , "xen-devel@lists.xenproject.org" , "qemu-devel@nongnu.org" > -----Original Message----- [snip] >=20 > To sum it up we have to care about the following scenarios: >=20 > a) Xen in-tree build, Xen >=3D 4.9 > b) Xen in-tree build, Xen < 4.9 > c) build out-of-Xen-tree >=20 > combined with any of: >=20 > 1) no Xen installed on build machine > 2) Xen >=3D 4.9 installed > 3) Xen < 4.9 installed >=20 > 1) + c) is not supported, all other combinations should work. >=20 Good summary. > I suggest the following modifications of my patch: >=20 > - keep the test program for detection of Xen 4.9 > - scan the extra ldflags for special mentioning of tools/libxc > to detect Xen in-tree build < 4.9 (will detect 4.9, too, but > this is no problem), set xen_in_tree_old if found > - if xen_in_tree_old found, don't use pkg-config for Xen version > detection and flags > - otherwise try pkg-config first >=20 > This should cover all cases we need. >=20 That sounds plausible. Thanks, Paul >=20 > Juergen