Commit 2efc32658e7517e8e555a31fe99303757cb6bbb5
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,6 +147,8 @@ fi | ||
| 147 | 147 | ||
| 148 | for opt do | 148 | for opt do |
| 149 | case "$opt" in | 149 | case "$opt" in |
| 150 | + --help|-h) show_help=yes | ||
| 151 | + ;; | ||
| 150 | --prefix=*) prefix=`echo $opt | cut -d '=' -f 2` | 152 | --prefix=*) prefix=`echo $opt | cut -d '=' -f 2` |
| 151 | ;; | 153 | ;; |
| 152 | --interp-prefix=*) interp_prefix=`echo $opt | cut -d '=' -f 2` | 154 | --interp-prefix=*) interp_prefix=`echo $opt | cut -d '=' -f 2` |
| @@ -348,7 +350,7 @@ fi # sdl compile test | @@ -348,7 +350,7 @@ fi # sdl compile test | ||
| 348 | fi # cross compilation | 350 | fi # cross compilation |
| 349 | fi # -z $sdl | 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 | cat << EOF | 354 | cat << EOF |
| 353 | 355 | ||
| 354 | Usage: configure [options] | 356 | Usage: configure [options] |
| @@ -370,7 +372,7 @@ echo "Advanced options (experts only):" | @@ -370,7 +372,7 @@ echo "Advanced options (experts only):" | ||
| 370 | echo " --source-path=PATH path of source code [$source_path]" | 372 | echo " --source-path=PATH path of source code [$source_path]" |
| 371 | echo " --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix]" | 373 | echo " --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix]" |
| 372 | echo " --cc=CC use C compiler CC [$cc]" | 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 | echo " --make=MAKE use specified make [$make]" | 376 | echo " --make=MAKE use specified make [$make]" |
| 375 | echo " --static enable static build [$static]" | 377 | echo " --static enable static build [$static]" |
| 376 | echo " --enable-mingw32 enable Win32 cross compilation with mingw32" | 378 | echo " --enable-mingw32 enable Win32 cross compilation with mingw32" |