Previously ./configure --prefix=/foo --help didn't show the help-text
Unified · Split
| @@ -130,6 +130,8 @@ for opt do · 129 unmodified lines | ||
| 130 | 130 | ;; |
| 131 | 131 | --with-libgcc) use_libgcc="yes" |
| 132 | 132 | ;; |
| 133 | + --help|-h) show_help="yes" | |
| 134 | + ;; | |
| 133 | 135 | esac |
| 134 | 136 | done |
| 135 | 137 | |
| @@ -203,7 +205,7 @@ if $cc -o $TMPO $TMPC 2> /dev/null ; then · 67 unmodified lines | ||
| 203 | 205 | gcc_major="4" |
| 204 | 206 | fi |
| 205 | 207 | |
| 206 | −if test x"$1" = x"-h" -o x"$1" = x"--help" ; then | |
| 208 | +if test x"$show_help" = "xyes" ; then | |
| 207 | 209 | cat << EOF |
| 208 | 210 | |
| 209 | 211 | Usage: configure [options] |