History

improve handling of --help

Previously ./configure --prefix=/foo --help didn't show the help-text

Bernhard Reutner-Fischer committed 17 years ago

Commit d2e12511 parent 55cb2171 file · +3 −1Browse files

Unified · Split

configure+3−1
@@ -130,6 +130,8 @@ for opt do · 129 unmodified lines
130 ;;130 ;;
131 --with-libgcc) use_libgcc="yes"131 --with-libgcc) use_libgcc="yes"
132 ;;132 ;;
133 --help|-h) show_help="yes"
134 ;;
133 esac135 esac
134done136done
135 137
@@ -203,7 +205,7 @@ if $cc -o $TMPO $TMPC 2> /dev/null ; then · 67 unmodified lines
203 gcc_major="4"205 gcc_major="4"
204fi206fi
205 207
206if test x"$1" = x"-h" -o x"$1" = x"--help" ; then208if test x"$show_help" = "xyes" ; then
207cat << EOF209cat << EOF
208 210
209Usage: configure [options]211Usage: configure [options]

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t