From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Marcelo Arenas Belon Subject: [PATCH 5/5] configure: use kvm's configure usage for unknown options Date: Wed, 2 Jan 2008 05:40:43 -0600 Message-ID: <20080102114043.GF15869@tapir> References: <20080102113354.GA15869@tapir> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: Content-Disposition: inline In-Reply-To: <20080102113354.GA15869@tapir> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Prevent qemu's configure usage to be printed if an invalid option is passed to it, allowing kvm's configure to trap those errors and print the usage instead Signed-off-by: Carlo Marcelo Arenas Belon --- configure | 2 +- qemu/configure | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 0464456..a10a4af 100755 --- a/configure +++ b/configure @@ -116,7 +116,7 @@ fi ${qemu_cc:+"--cc=$qemu_cc"} \ ${cross_prefix:+"--cross-prefix=$cross_prefix"} \ ${cross_prefix:+"--cpu=$arch"} $qemu_opts -) +) || usage cat < config.mak diff --git a/qemu/configure b/qemu/configure index c05dcc4..741fe7a 100755 --- a/qemu/configure +++ b/qemu/configure @@ -329,7 +329,7 @@ for opt do ;; --disable-werror) werror="no" ;; - *) echo "ERROR: unknown option $opt"; show_help="yes" + *) echo "ERROR: unknown option $opt"; exit 1 ;; esac done -- 1.5.3.7 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/