summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven E. Templer <sven.templer@gmail.com>2015-04-04 23:46:49 +0200
committerSven E. Templer <sven.templer@gmail.com>2015-04-04 23:46:49 +0200
commite41f93768e36dd189f7b16a8c5b5c7abd356aa1c (patch)
tree7ff410c1ac404a289a80e6ecd84e885e7f8fb20a
parent12ee82ae5138ac86252c41f3ae8f9fd9880e4284 (diff)
downloadyajl-e41f93768e36dd189f7b16a8c5b5c7abd356aa1c.tar.gz
fixed configure script to accept "-h" and "--prefix" as stated in usage/help
-rwxr-xr-xconfigure5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure b/configure
index 716e7d1..311d18d 100755
--- a/configure
+++ b/configure
@@ -15,7 +15,7 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
prefix="/usr/local"
-if [ "$1" = "--help" ]
+if [ "$1" = "-h" ] || [ "$1" = "--help" ]
then
cat <<EOS
Usage: configure [options]
@@ -24,7 +24,8 @@ Usage: configure [options]
EOS
exit 0
fi
-if [ "$1" = "-p" ]; then
+if [ "$1" = "-p" ] || [ "$1" = "--prefix" ]
+then
if [ "$#" != 2 ]; then
./configure.sh --help
exit 1