diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2002-04-10 12:57:42 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2002-04-10 12:57:42 +0000 |
commit | d8fa5431e3f6f1b9c8be36bad079719a6c4b529a (patch) | |
tree | a27c282a0d054f2ee5aa29f95c2421b6ef98a8d1 | |
parent | 6148068f2318e85d8e66df485342b630d8fb49ac (diff) |
added prefix as a fallthrough for autogen.sh to configure by request of jdahlin fixes http://bugzilla.gnome.org/show_...
Original commit message from CVS:
added prefix as a fallthrough for autogen.sh to configure by request of
jdahlin
fixes http://bugzilla.gnome.org/show_bug.cgi?id=78267 (ain't that cool ?)
if anyone knows how to coax getopt into passing unrecognized opts on, please
share
-rw-r--r-- | gst-autogen.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gst-autogen.sh b/gst-autogen.sh index 841cbfe..2d97284 100644 --- a/gst-autogen.sh +++ b/gst-autogen.sh @@ -136,7 +136,7 @@ die_check () autogen_options () { # we use getopt stuff here, copied things from the example example.bash - TEMP=`getopt -o h --long noconfigure,nocheck,debug,help,with-automake:,with-autoconf: \ + TEMP=`getopt -o h --long noconfigure,nocheck,debug,help,with-automake:,with-autoconf:,prefix:\ -- "$@"` eval set -- "$TEMP" @@ -161,12 +161,18 @@ autogen_options () echo "+ debug output enabled" shift ;; + --prefix) + CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT --prefix=$2" + echo "+ passing --prefix=$2 to configure" + shift 2 + ;; -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 " --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" |