From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:56222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qp659-00023s-L9 for qemu-devel@nongnu.org; Thu, 04 Aug 2011 18:08:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qp658-00056E-HI for qemu-devel@nongnu.org; Thu, 04 Aug 2011 18:07:59 -0400 Received: from mail-pz0-f42.google.com ([209.85.210.42]:35088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qp658-000567-BK for qemu-devel@nongnu.org; Thu, 04 Aug 2011 18:07:58 -0400 Received: by pzk37 with SMTP id 37so3197791pzk.29 for ; Thu, 04 Aug 2011 15:07:57 -0700 (PDT) Message-ID: <4E3B183A.8080105@codemonkey.ws> Date: Thu, 04 Aug 2011 17:07:54 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <20110730054551.GA18260@rox.home.comstyle.com> In-Reply-To: <20110730054551.GA18260@rox.home.comstyle.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] Add support for finding libpng via pkg-config List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Brad Cc: qemu-devel@nongnu.org On 07/30/2011 12:45 AM, Brad wrote: > Add support for finding libpng via pkg-config. > > Signed-off-by: Brad Smith > Applied. Thanks. Regards, Anthony Liguori > --- > configure | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/configure b/configure > index 4012d15..25aa75f 100755 > --- a/configure > +++ b/configure > @@ -1519,11 +1519,17 @@ int main(void) { > return 0; > } > EOF > + if $pkg_config libpng --modversion>/dev/null 2>&1; then > + vnc_png_cflags=`$pkg_config libpng --cflags 2> /dev/null` > + vnc_png_libs=`$pkg_config libpng --libs 2> /dev/null` > + else > vnc_png_cflags="" > vnc_png_libs="-lpng" > + fi > if compile_prog "$vnc_png_cflags" "$vnc_png_libs" ; then > vnc_png=yes > libs_softmmu="$vnc_png_libs $libs_softmmu" > + QEMU_CFLAGS="$QEMU_CFLAGS $vnc_png_cflags" > else > if test "$vnc_png" = "yes" ; then > feature_not_found "vnc-png"