From: Thomas V. S. <tho...@us...> - 2002-04-10 18:32:51
|
CVS Root: /cvsroot/gstreamer Module: common Changes by: thomasvs Date: Wed Apr 10 2002 05:57:54 PDT Log message: 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 Modified files: . : gst-autogen.sh Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/common/gst-autogen.sh.diff?r1=1.7&r2=1.8 ====Begin Diffs==== Index: gst-autogen.sh =================================================================== RCS file: /cvsroot/gstreamer/common/gst-autogen.sh,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- gst-autogen.sh 5 Mar 2002 12:14:21 -0000 1.7 +++ gst-autogen.sh 10 Apr 2002 12:57:42 -0000 1.8 @@ -136,7 +136,7 @@ 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 @@ 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" |