Skip to contentSkip to conversation

configure: add --version flag

PATCH Applied Mike Frysinger 3 participants 3 messages Apr 7, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: add --version flag

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.

---
 configure |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
configure +2 -0
index 3593dc6..4b7ed5e 100755
@@ -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"
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 5 lines · Mike Frysinger

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.

ACK

Paolo

#2 lore raw
Quoted 8 lines · Paolo Bonzini
Quoted 5 lines · Mike Frysinger

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.

ACK

Applied, thanks.

Cheers