From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn2N8-0006DU-UW for qemu-devel@nongnu.org; Sat, 30 Jul 2011 01:46:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qn2N7-0004Bq-TM for qemu-devel@nongnu.org; Sat, 30 Jul 2011 01:46:02 -0400 Received: from speedy.comstyle.com ([206.51.28.2]:37609 helo=mail.comstyle.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn2N7-0004Bm-NX for qemu-devel@nongnu.org; Sat, 30 Jul 2011 01:46:01 -0400 Received: from rox.home.comstyle.com (rox.home.comstyle.com [IPv6:2001:470:b01e:3:ca0a:a9ff:fe93:42c9]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: brad) by mail.comstyle.com (Postfix) with ESMTPSA id B34CE98464 for ; Sat, 30 Jul 2011 01:45:56 -0400 (EDT) Date: Sat, 30 Jul 2011 01:45:55 -0400 From: Brad Message-ID: <20110730054551.GA18260@rox.home.comstyle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] Add support for finding libpng via pkg-config List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Add support for finding libpng via pkg-config. Signed-off-by: Brad Smith --- 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" -- 1.7.6 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.