diff mbox

configure: add --version flag

Message ID 1302153148-15146-1-git-send-email-vapier@gentoo.org
State New
Headers show

Commit Message

Mike Frysinger April 7, 2011, 5:12 a.m. UTC
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 <vapier@gentoo.org>
---
 configure |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Paolo Bonzini April 7, 2011, 7:31 a.m. UTC | #1
On 04/07/2011 07:12 AM, Mike Frysinger wrote:
> 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<vapier@gentoo.org>

ACK

Paolo
Edgar E. Iglesias April 7, 2011, 8:52 a.m. UTC | #2
On Thu, Apr 07, 2011 at 09:31:24AM +0200, Paolo Bonzini wrote:
> On 04/07/2011 07:12 AM, Mike Frysinger wrote:
> > 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<vapier@gentoo.org>
> 
> ACK

Applied, thanks.

Cheers
diff mbox

Patch

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"