summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-11-13 20:07:33 +0000
committerChristian Pointner <equinox@anytun.org>2009-11-13 20:07:33 +0000
commit13f3b3eb72f44fd2e688072dde0ce2ab99bd62de (patch)
treea30b8aea957c0182f9e1a7b04291b725049fc1f5 /src
parentcleaned Makefile (diff)
improved handling of errors at configure arguments
Diffstat (limited to 'src')
-rwxr-xr-xsrc/configure19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/configure b/src/configure
index 80fe9a5..77002f3 100755
--- a/src/configure
+++ b/src/configure
@@ -73,6 +73,9 @@ do
--prefix=*)
PREFIX=${arg#--prefix=}
;;
+ --bindir=*)
+ SBINDIR=${arg#--bindir=}
+ ;;
--sbindir=*)
SBINDIR=${arg#--sbindir=}
;;
@@ -108,15 +111,21 @@ do
exit 0
;;
*)
- if [ $EBUILD_COMPAT -ne 1 ]; then
- echo "Unknown argument: $arg"
- print_usage
- exit 1
- fi
+ ERRORS="$ERRORS $arg"
;;
esac
done
+if [ -n "$ERRORS" ] && [ $EBUILD_COMPAT -ne 1 ]; then
+ for error in $ERRORS; do
+ echo "Unknown argument: $error"
+ done
+
+ print_usage
+ exit 1
+fi
+
+
rm -f include.mk
case $TARGET in
Linux)