From patchwork Sun Dec 6 11:13:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 553109 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 962D41401DA for ; Sun, 6 Dec 2015 22:14:14 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=kgFLwIfq; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 982F432D4D; Sun, 6 Dec 2015 11:14:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H6v1LeNvHH0K; Sun, 6 Dec 2015 11:14:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id CE681321C3; Sun, 6 Dec 2015 11:14:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 3D6701C0DBE for ; Sun, 6 Dec 2015 11:14:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 270CA836C4 for ; Sun, 6 Dec 2015 11:14:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z-QHITQO33YH for ; Sun, 6 Dec 2015 11:14:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 5D71C879A8 for ; Sun, 6 Dec 2015 11:14:04 +0000 (UTC) Received: by wmww144 with SMTP id w144so109337466wmw.1 for ; Sun, 06 Dec 2015 03:14:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Hudai7oe0TpPOAjKT2MpfWB9fz0FFTN/rDYK+WncPDA=; b=kgFLwIfqN2Q9jkrhFArH6TS35EUggMIv0Hdx+qi1hmEzhHqni+YHtziGrzcKVP9JiX lmGf0n1iL9eQIAWkA+omJsgj1vJhWATIWzqvXSbIfja/ggazLOKt2enBH8aYoHMZtEHf 91nTjrFOXW2JDlNX/5rr6NO7wtNuhuD6O7scgrdMBRhL8GsQHmd1xPFR2cwYeJ9w+ePH iR1QESiN6O48GqulCjTlGyYs+eajyWCRrLBLfplhP9MXe5OcLlCLDimZnkw/VhpdX5Xd dYSPtQ4JsR1LGDw691dbsN4qR0RFmbO+ZySgeJP1djpq9kOfSVG1wBxdsuzsmRC3NEOc z8HQ== X-Received: by 10.28.3.133 with SMTP id 127mr15990403wmd.101.1449400442942; Sun, 06 Dec 2015 03:14:02 -0800 (PST) Received: from gourin.bzh.lan (ns304657.ip-46-105-103.eu. [46.105.103.66]) by smtp.gmail.com with ESMTPSA id pn6sm20094659wjb.15.2015.12.06.03.14.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Dec 2015 03:14:02 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 6 Dec 2015 12:13:59 +0100 Message-Id: <2b971b558fa20e875348aa2213e0ad385f72d20f.1449400403.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: Cc: "Yann E. MORIN" , Peter Korsgaard Subject: [Buildroot] [PATCH 2/2 v2] package/gawk: add optional readline dependency X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The gawk debugger can optionally use readline for user input during the debugging session (for the usual autocompletion and stuff). Enable readline support when the readline package is enabled; let ./configure automatically find it. Forcibly disable readline support when the readline package is disabled. Signed-off-by: "Yann E. MORIN" Cc: Peter Korsgaard Reviewed-by: Arnout Vandecappelle (Essensium/Mind) --- Changes v1 -> v2: - better comment on why no --with-readline (Arnout) --- package/gawk/gawk.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/gawk/gawk.mk b/package/gawk/gawk.mk index 0fd131d..507ea6d 100644 --- a/package/gawk/gawk.mk +++ b/package/gawk/gawk.mk @@ -24,6 +24,14 @@ else GAWK_CONF_OPTS += --without-mpfr endif +# --with-readline requires an argument so just let +# configure find it automatically +ifeq ($(BR2_PACKAGE_READLINE),y) +GAWK_DEPENDENCIES += readline +else +GAWK_CONF_OPTS += --without-readline +endif + # We don't have a host-busybox, and we don't want to use readline or mpfr HOST_GAWK_DEPENDENCIES =