From patchwork Thu Apr 7 05:12:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 90131 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B4E02B6F44 for ; Thu, 7 Apr 2011 15:15:02 +1000 (EST) Received: from localhost ([127.0.0.1]:37289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7hYZ-000462-LU for incoming@patchwork.ozlabs.org; Thu, 07 Apr 2011 01:14:59 -0400 Received: from [140.186.70.92] (port=54508 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7hWE-00044S-Vz for qemu-devel@nongnu.org; Thu, 07 Apr 2011 01:12:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7hWD-00055n-Jt for qemu-devel@nongnu.org; Thu, 07 Apr 2011 01:12:34 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:46966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7hWD-00055P-Eh for qemu-devel@nongnu.org; Thu, 07 Apr 2011 01:12:33 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id F18221B4017 for ; Thu, 7 Apr 2011 05:12:29 +0000 (UTC) From: Mike Frysinger To: qemu-devel@nongnu.org Date: Thu, 7 Apr 2011 01:12:28 -0400 Message-Id: <1302153148-15146-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.7.4.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.211.166.183 Subject: [Qemu-devel] [PATCH] configure: add --version flag X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Standard autoconf scripts include a --version flag so people can easily query things. Add this to qemu's configure so it too can integrate with build systems that have standard autotool helpers. Signed-off-by: Mike Frysinger --- configure | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 3593dc6..4b7ed5e 100755 --- a/configure +++ b/configure @@ -494,6 +494,8 @@ for opt do case "$opt" in --help|-h) show_help=yes ;; + --version|-V) exec cat $source_path/VERSION + ;; --prefix=*) prefix="$optarg" ;; --interp-prefix=*) interp_prefix="$optarg"