+2008-02-25 Andy Wingo <wingo@pobox.com>
+
+ * gst-autogen.sh: Instead of only passing certain arguments to
+ configure, pass anything that we didn't handle. Much friendlier.
+ Fixes #34412.
+
2008-02-23 Jan Schmidt <Jan.Schmidt@sun.com>
* m4/gst-error.m4:
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=*)
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