summaryrefslogtreecommitdiff
path: root/common/gst-autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'common/gst-autogen.sh')
-rw-r--r--common/gst-autogen.sh24
1 files changed, 5 insertions, 19 deletions
diff --git a/common/gst-autogen.sh b/common/gst-autogen.sh
index 7b312124..ae60f7e1 100644
--- a/common/gst-autogen.sh
+++ b/common/gst-autogen.sh
@@ -227,31 +227,18 @@ autogen_options ()
echo "+ debug output enabled"
shift
;;
- --prefix=*)
- CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT --prefix=$optarg"
- echo "+ passing --prefix=$optarg to configure"
- shift
- ;;
- --prefix)
- shift
- echo "DEBUG: $1"
- CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT --prefix=$1"
- echo "+ passing --prefix=$1 to configure"
- shift
- ;;
-
-h|--help)
echo "autogen.sh (autogen options) -- (configure options)"
echo "autogen.sh help options: "
echo " --noconfigure don't run the configure script"
echo " --nocheck don't do version checks"
echo " --debug debug the autogen process"
- echo " --prefix will be passed on to configure"
echo
echo " --with-autoconf PATH use autoconf in PATH"
echo " --with-automake PATH use automake in PATH"
echo
- echo "to pass options to configure, put them as arguments after -- "
+ echo "Any argument either not in the above list or after a '--' will be "
+ echo "passed to ./configure."
exit 1
;;
--with-automake=*)
@@ -266,13 +253,12 @@ autogen_options ()
CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-autoconf=$AUTOCONF"
shift
;;
- --disable*|--enable*|--with*)
- echo "+ passing option $1 to configure"
+ --) shift ; break ;;
+ *)
+ echo "+ passing argument $1 to configure"
CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT $1"
shift
;;
- --) shift ; break ;;
- *) echo "- ignoring unknown autogen.sh argument $1"; shift ;;
esac
done