improve handling of --help
Previously ./configure --prefix=/foo --help didn't show the help-text Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
parent
55cb2170cd
commit
d2e125186f
1 changed files with 3 additions and 1 deletions
4
configure
vendored
4
configure
vendored
|
@ -130,6 +130,8 @@ for opt do
|
||||||
;;
|
;;
|
||||||
--with-libgcc) use_libgcc="yes"
|
--with-libgcc) use_libgcc="yes"
|
||||||
;;
|
;;
|
||||||
|
--help|-h) show_help="yes"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -203,7 +205,7 @@ if $cc -o $TMPO $TMPC 2> /dev/null ; then
|
||||||
gcc_major="4"
|
gcc_major="4"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
|
if test x"$show_help" = "xyes" ; then
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|
||||||
Usage: configure [options]
|
Usage: configure [options]
|
||||||
|
|
Loading…
Reference in a new issue