From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Marcelo Arenas Belon Subject: [PATCH 4/5] configure: use passthrough for all unknown options into qemu Date: Wed, 2 Jan 2008 05:39:28 -0600 Message-ID: <20080102113928.GE15869@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 uses qemu to generate a hopefully complete usage in case of error Signed-off-by: Carlo Marcelo Arenas Belon --- configure | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 50a0e90..0464456 100755 --- a/configure +++ b/configure @@ -24,9 +24,17 @@ usage() { --qemu-cc=CC specify compiler for qemu (must be gcc-3.x) --qemu-cflags=CFLAGS CFLAGS to add to qemu configuration --qemu-ldflags=LDFLAGS LDFLAGS to add to qemu configuration + + Any additional option is given to qemu's configure verbatim; including: + --disable-gcc-check don't insist on gcc-3.x CAUTION: this will break running without kvm EOF + cd qemu + ./configure --help | egrep "enable-|disable-" \ + | grep -v user | grep -v system | grep -v kqemu | grep -v kvm \ + | sed -e "s/^ / /g" \ + | sed -e"s/ enable/enable/g" | sed -e "s/ disable/disable/g" exit 1 } @@ -66,7 +74,7 @@ while [[ "$1" = -* ]]; do usage ;; *) - usage + qemu_opts="$qemu_opts $opt" ;; 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/