1.1 --- a/gmyth-upnp/autogen.sh Wed Jan 10 20:32:11 2007 +0000
1.2 +++ b/gmyth-upnp/autogen.sh Fri Feb 01 22:17:33 2008 +0000
1.3 @@ -1,102 +1,21 @@
1.4 #!/bin/sh
1.5 # Run this to generate all the initial makefiles, etc.
1.6
1.7 -DIE=0
1.8 -package=gmyth-upnp
1.9 -srcfile=configure.ac
1.10 +srcdir=`dirname $0`
1.11 +test -z "$srcdir" && srcdir=.
1.12
1.13 -# a quick cvs co if necessary to alleviate the pain - may remove this
1.14 -# when developers get a clue ;)
1.15 -if test ! -d common;
1.16 -then
1.17 - echo "+ getting common/ from svn"
1.18 - svn co common
1.19 -fi
1.20 +PKG_NAME="mtv"
1.21
1.22 -# source helper functions
1.23 -if test ! -f common/autogen-helper.sh;
1.24 -then
1.25 - echo There is something wrong with your source tree.
1.26 - echo You are missing common/autogen-helper.sh
1.27 - exit 1
1.28 -fi
1.29 -. common/autogen-helper.sh
1.30 -
1.31 -CONFIGURE_DEF_OPT='--enable-maintainer-mode'
1.32 -# uncomment below to disable the UPnP features
1.33 -#CONFIGURE_DEF_OPT+=' --disable-upnp'
1.34 -CONFIGURE_EXT_OPT="$@"
1.35 -
1.36 -autogen_options
1.37 -
1.38 -echo -n "+ check for build tools"
1.39 -if test ! -z "$NOCHECK"; then echo " skipped"; else echo; fi
1.40 -version_check "autoconf" "$AUTOCONF autoconf autoconf-2.54 autoconf-2.53" \
1.41 - "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 53 || DIE=1
1.42 -version_check "automake" "$AUTOMAKE automake automake-1.9 automake-1.8 automake-1.7 automake-1.6" \
1.43 - "ftp://ftp.gnu.org/pub/gnu/automake/" 1 6 || DIE=1
1.44 -version_check "libtoolize" "$LIBTOOLIZE libtoolize" \
1.45 - "ftp://ftp.gnu.org/pub/gnu/libtool/" 1 5 0 || DIE=1
1.46 -version_check "pkg-config" "" \
1.47 - "http://www.freedesktop.org/software/pkgconfig" 0 8 0 || DIE=1
1.48 -
1.49 -die_check $DIE
1.50 -
1.51 -aclocal_check || DIE=1
1.52 -autoheader_check || DIE=1
1.53 -
1.54 -die_check $DIE
1.55 -
1.56 -# if no arguments specified then this will be printed
1.57 -if test -z "$*"; then
1.58 - echo "+ checking for autogen.sh options"
1.59 - echo " This autogen script will automatically run ./configure as:"
1.60 - echo " ./configure $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT"
1.61 - echo " To pass any additional options, please specify them on the $0"
1.62 - echo " command line."
1.63 -fi
1.64 -
1.65 -toplevel_check $srcfile
1.66 -
1.67 -tool_run "$aclocal" "-I m4 $ACLOCAL_FLAGS"
1.68 -tool_run "$libtoolize" "--copy --force"
1.69 -tool_run "$autoheader"
1.70 -
1.71 -# touch the stamp-h.in build stamp so we don't re-run autoheader in maintainer mode -- wingo
1.72 -echo timestamp > stamp-h.in 2> /dev/null
1.73 -
1.74 -tool_run "$autoconf"
1.75 -tool_run "$automake" "-a -c"
1.76 -
1.77 -# if enable exists, add an -enable option for each of the lines in that file
1.78 -if test -f enable; then
1.79 - for a in `cat enable`; do
1.80 - CONFIGURE_FILE_OPT="--enable-$a"
1.81 - done
1.82 -fi
1.83 -
1.84 -# if disable exists, add an -disable option for each of the lines in that file
1.85 -if test -f disable; then
1.86 - for a in `cat disable`; do
1.87 - CONFIGURE_FILE_OPT="$CONFIGURE_FILE_OPT --disable-$a"
1.88 - done
1.89 -fi
1.90 -
1.91 -test -n "$NOCONFIGURE" && {
1.92 - echo "+ skipping configure stage for package $package, as requested."
1.93 - echo "+ autogen.sh done."
1.94 - exit 0
1.95 +(test -f $srcdir/configure.ac) || {
1.96 + echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
1.97 + echo " top-level $PKG_NAME directory"
1.98 + exit 1
1.99 }
1.100
1.101 -echo "+ running configure ... "
1.102 -test ! -z "$CONFIGURE_DEF_OPT" && echo " ./configure default flags: $CONFIGURE_DEF_OPT"
1.103 -test ! -z "$CONFIGURE_EXT_OPT" && echo " ./configure external flags: $CONFIGURE_EXT_OPT"
1.104 -test ! -z "$CONFIGURE_FILE_OPT" && echo " ./configure enable/disable flags: $CONFIGURE_FILE_OPT"
1.105 -echo
1.106 -
1.107 -./configure $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT $CONFIGURE_FILE_OPT || {
1.108 - echo " configure failed"
1.109 - exit 1
1.110 +which gnome-autogen.sh || {
1.111 + echo "You need to install gnome-common from the GNOME CVS"
1.112 + exit 1
1.113 }
1.114
1.115 -echo "Now type 'make' to compile $package."
1.116 +ACLOCAL_FLAGS="$ACLOCAL_FLAGS"
1.117 +REQUIRED_AUTOMAKE_VERSION=1.7 USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh