Commit 2efc32658e7517e8e555a31fe99303757cb6bbb5

Authored by bellard
1 parent 91fc2119

better help option support (Bernhard Fischer)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1720 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 2 deletions
configure
... ... @@ -147,6 +147,8 @@ fi
147 147  
148 148 for opt do
149 149 case "$opt" in
  150 + --help|-h) show_help=yes
  151 + ;;
150 152 --prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
151 153 ;;
152 154 --interp-prefix=*) interp_prefix=`echo $opt | cut -d '=' -f 2`
... ... @@ -348,7 +350,7 @@ fi # sdl compile test
348 350 fi # cross compilation
349 351 fi # -z $sdl
350 352  
351   -if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
  353 +if test x"$show_help" = x"yes" ; then
352 354 cat << EOF
353 355  
354 356 Usage: configure [options]
... ... @@ -370,7 +372,7 @@ echo &quot;Advanced options (experts only):&quot;
370 372 echo " --source-path=PATH path of source code [$source_path]"
371 373 echo " --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix]"
372 374 echo " --cc=CC use C compiler CC [$cc]"
373   -echo " --host-cc=CC use C compiler CC [$cc] for dyngen etc."
  375 +echo " --host-cc=CC use C compiler CC [$host_cc] for dyngen etc."
374 376 echo " --make=MAKE use specified make [$make]"
375 377 echo " --static enable static build [$static]"
376 378 echo " --enable-mingw32 enable Win32 cross compilation with mingw32"
... ...