From patchwork Wed Feb 18 19:15:07 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 23349 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id BCCC2DDF61 for ; Thu, 19 Feb 2009 06:16:59 +1100 (EST) X-Original-To: cbe-oss-dev@ozlabs.org Delivered-To: cbe-oss-dev@ozlabs.org Received: from WA4EHSOBE003.bigfish.com (wa4ehsobe003.messaging.microsoft.com [216.32.181.13]) by ozlabs.org (Postfix) with ESMTP id DD258DDDB6 for ; Thu, 19 Feb 2009 06:15:40 +1100 (EST) Received: from mail28-wa4-R.bigfish.com (10.8.14.252) by WA4EHSOBE003.bigfish.com (10.8.40.23) with Microsoft SMTP Server id 8.1.340.0; Wed, 18 Feb 2009 19:15:36 +0000 Received: from mail28-wa4 (localhost.localdomain [127.0.0.1]) by mail28-wa4-R.bigfish.com (Postfix) with ESMTP id 2F2A711100BC; Wed, 18 Feb 2009 19:15:36 +0000 (UTC) X-BigFish: VPS0(zzzzzzz2fh6bh66h) X-Spam-TCS-SCL: 5:0 X-FB-SS: 5, Received: by mail28-wa4 (MessageSwitch) id 1234984534597115_28235; Wed, 18 Feb 2009 19:15:34 +0000 (UCT) Received: from mail8.fw-bc.sony.com (mail8.fw-bc.sony.com [160.33.98.75]) by mail28-wa4.bigfish.com (Postfix) with ESMTP id 5BF2113C0064; Wed, 18 Feb 2009 19:15:34 +0000 (UTC) Received: from mail3.sjc.in.sel.sony.com (mail3.sjc.in.sel.sony.com [43.134.1.211]) by mail8.fw-bc.sony.com (8.14.2/8.14.2) with ESMTP id n1IJFXtN003336; Wed, 18 Feb 2009 19:15:33 GMT Received: from ussdixhub21.spe.sony.com (ussdixhub21.spe.sony.com [43.130.141.76]) by mail3.sjc.in.sel.sony.com (8.12.11/8.12.11) with ESMTP id n1IJFWiT014851; Wed, 18 Feb 2009 19:15:32 GMT Received: from USSDIXRG02.am.sony.com (43.130.140.32) by ussdixhub21.spe.sony.com (43.130.141.76) with Microsoft SMTP Server id 8.1.291.1; Wed, 18 Feb 2009 11:15:32 -0800 Received: from ussdixms03.am.sony.com ([43.130.140.23]) by USSDIXRG02.am.sony.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 18 Feb 2009 11:15:32 -0800 Received: from [192.168.1.10] ([43.135.148.226]) by ussdixms03.am.sony.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 18 Feb 2009 11:15:32 -0800 Message-ID: <499C5E3B.2050708@am.sony.com> Date: Wed, 18 Feb 2009 11:15:07 -0800 From: Geoff Levand User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Jeremy Kerr References: <20090208043550.681477743@am.sony.com> <20090208043550.755762324@am.sony.com> In-Reply-To: <20090208043550.755762324@am.sony.com> X-Enigmail-Version: 0.95.7 X-OriginalArrivalTime: 18 Feb 2009 19:15:32.0051 (UTC) FILETIME=[449AAA30:01C991FD] X-SEL-encryption-scan: scanned Cc: cbe-oss-dev@ozlabs.org Subject: [Cbe-oss-dev] [patch 1/4 v2] petitboot: Add --with-twin config option X-BeenThere: cbe-oss-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Discussion about Open Source Software for the Cell Broadband Engine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Subject: [patch] petitboot: Add --with-twin config option Make the build of the GUI components conditional on the installation of libtwin. Also, add options --with-twin and --without-twin to allow the user to override the default. Signed-off-by: Geoff Levand --- v2: Run PKG_CHECK_MODULES before AC_CHECK_LIB to pickup libtwin package info for AC_CHECK_LIB. configure.ac | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) --- a/configure.ac +++ b/configure.ac @@ -29,7 +29,25 @@ fi AC_PROG_CC AC_PROG_INSTALL -PKG_CHECK_MODULES([twin], [libtwin]) +AC_ARG_WITH([twin], + [AS_HELP_STRING([--with-twin], + [build GUI versions using the twin window system])], + [], + [with_twin=check]) + +LIBTWIN= +AS_IF([test "x$with_twin" != xno], + [PKG_CHECK_MODULES([twin], [libtwin], [], + [AC_MSG_RESULT([$twin_PKG_ERRORS]) + AC_MSG_RESULT([Consider adjusting PKG_CONFIG_PATH environment variable])]) + AC_CHECK_LIB([twin], [main], + [AC_SUBST([LIBTWIN], ["-ltwin"]) + AC_DEFINE([HAVE_LIBTWIN], [1], [Define if you have libtwin])], + [if test "x$with_twin" != xcheck; then + AC_MSG_FAILURE([--with-twin was given, but test for twin failed]) + fi], + [${twin_LIBS}])]) + mkdir -p discover ui/test ui/common lib/talloc lib/pb-protocol lib/list \ lib/waiter lib/log