[svn r254] Added these 2 mandatory directories (m4 and common).
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/gmyth-upnp/common/Makefile.am Wed Jan 10 20:35:17 2007 +0000
1.3 @@ -0,0 +1,1 @@
1.4 +EXTRA_DIST = autogen-helper.sh
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/gmyth-upnp/common/autogen-helper.sh Wed Jan 10 20:35:17 2007 +0000
2.3 @@ -0,0 +1,302 @@
2.4 +# a silly hack that generates autoregen.sh but it's handy
2.5 +echo "#!/bin/sh" > autoregen.sh
2.6 +echo "./autogen.sh $@ \$@" >> autoregen.sh
2.7 +chmod +x autoregen.sh
2.8 +
2.9 +# helper functions for autogen.sh
2.10 +
2.11 +debug ()
2.12 +# print out a debug message if DEBUG is a defined variable
2.13 +{
2.14 + if test ! -z "$DEBUG"
2.15 + then
2.16 + echo "DEBUG: $1"
2.17 + fi
2.18 +}
2.19 +
2.20 +version_check ()
2.21 +# check the version of a package
2.22 +# first argument : package name (executable)
2.23 +# second argument : optional path where to look for it instead
2.24 +# third argument : source download url
2.25 +# rest of arguments : major, minor, micro version
2.26 +# all consecutive ones : suggestions for binaries to use
2.27 +# (if not specified in second argument)
2.28 +{
2.29 + PACKAGE=$1
2.30 + PKG_PATH=$2
2.31 + URL=$3
2.32 + MAJOR=$4
2.33 + MINOR=$5
2.34 + MICRO=$6
2.35 +
2.36 + # for backwards compatibility, we let PKG_PATH=PACKAGE when PKG_PATH null
2.37 + if test -z "$PKG_PATH"; then PKG_PATH=$PACKAGE; fi
2.38 + debug "major $MAJOR minor $MINOR micro $MICRO"
2.39 + VERSION=$MAJOR
2.40 + if test ! -z "$MINOR"; then VERSION=$VERSION.$MINOR; else MINOR=0; fi
2.41 + if test ! -z "$MICRO"; then VERSION=$VERSION.$MICRO; else MICRO=0; fi
2.42 +
2.43 + debug "major $MAJOR minor $MINOR micro $MICRO"
2.44 +
2.45 + for SUGGESTION in $PKG_PATH; do
2.46 + COMMAND="$SUGGESTION"
2.47 +
2.48 + # don't check if asked not to
2.49 + test -z "$NOCHECK" && {
2.50 + echo -n " checking for $COMMAND >= $VERSION ... "
2.51 + } || {
2.52 + # we set a var with the same name as the package, but stripped of
2.53 + # unwanted chars
2.54 + VAR=`echo $PACKAGE | sed 's/-//g'`
2.55 + debug "setting $VAR"
2.56 + eval $VAR="$COMMAND"
2.57 + return 0
2.58 + }
2.59 +
2.60 + debug "checking version with $COMMAND"
2.61 + ($COMMAND --version) < /dev/null > /dev/null 2>&1 ||
2.62 + {
2.63 + echo "not found."
2.64 + continue
2.65 + }
2.66 + # strip everything that's not a digit, then use cut to get the first field
2.67 + pkg_version=`$COMMAND --version|head -n 1|sed 's/^[^0-9]*//'|cut -d' ' -f1`
2.68 + debug "pkg_version $pkg_version"
2.69 + # remove any non-digit characters from the version numbers to permit numeric
2.70 + # comparison
2.71 + pkg_major=`echo $pkg_version | cut -d. -f1 | sed s/[a-zA-Z\-].*//g`
2.72 + pkg_minor=`echo $pkg_version | cut -d. -f2 | sed s/[a-zA-Z\-].*//g`
2.73 + pkg_micro=`echo $pkg_version | cut -d. -f3 | sed s/[a-zA-Z\-].*//g`
2.74 + test -z "$pkg_major" && pkg_major=0
2.75 + test -z "$pkg_minor" && pkg_minor=0
2.76 + test -z "$pkg_micro" && pkg_micro=0
2.77 + debug "found major $pkg_major minor $pkg_minor micro $pkg_micro"
2.78 +
2.79 + #start checking the version
2.80 + debug "version check"
2.81 +
2.82 + # reset check
2.83 + WRONG=
2.84 +
2.85 + if [ ! "$pkg_major" -gt "$MAJOR" ]; then
2.86 + debug "major: $pkg_major <= $MAJOR"
2.87 + if [ "$pkg_major" -lt "$MAJOR" ]; then
2.88 + debug "major: $pkg_major < $MAJOR"
2.89 + WRONG=1
2.90 + elif [ ! "$pkg_minor" -gt "$MINOR" ]; then
2.91 + debug "minor: $pkg_minor <= $MINOR"
2.92 + if [ "$pkg_minor" -lt "$MINOR" ]; then
2.93 + debug "minor: $pkg_minor < $MINOR"
2.94 + WRONG=1
2.95 + elif [ "$pkg_micro" -lt "$MICRO" ]; then
2.96 + debug "micro: $pkg_micro < $MICRO"
2.97 + WRONG=1
2.98 + fi
2.99 + fi
2.100 + fi
2.101 +
2.102 + if test ! -z "$WRONG"; then
2.103 + echo "found $pkg_version, not ok !"
2.104 + continue
2.105 + else
2.106 + echo "found $pkg_version, ok."
2.107 + # we set a var with the same name as the package, but stripped of
2.108 + # unwanted chars
2.109 + VAR=`echo $PACKAGE | sed 's/-//g'`
2.110 + debug "setting $VAR"
2.111 + eval $VAR="$COMMAND"
2.112 + return 0
2.113 + fi
2.114 + done
2.115 +
2.116 + echo "not found !"
2.117 + echo "You must have $PACKAGE installed to compile $package."
2.118 + echo "Download the appropriate package for your distribution,"
2.119 + echo "or get the source tarball at $URL"
2.120 + return 1;
2.121 +}
2.122 +
2.123 +aclocal_check ()
2.124 +{
2.125 + # normally aclocal is part of automake
2.126 + # so we expect it to be in the same place as automake
2.127 + # so if a different automake is supplied, we need to adapt as well
2.128 + # so how's about replacing automake with aclocal in the set var,
2.129 + # and saving that in $aclocal ?
2.130 + # note, this will fail if the actual automake isn't called automake*
2.131 + # or if part of the path before it contains it
2.132 + if [ -z "$automake" ]; then
2.133 + echo "Error: no automake variable set !"
2.134 + return 1
2.135 + else
2.136 + aclocal=`echo $automake | sed s/automake/aclocal/`
2.137 + debug "aclocal: $aclocal"
2.138 + if [ "$aclocal" != "aclocal" ];
2.139 + then
2.140 + CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-aclocal=$aclocal"
2.141 + fi
2.142 + if [ ! -x `which $aclocal` ]; then
2.143 + echo "Error: cannot execute $aclocal !"
2.144 + return 1
2.145 + fi
2.146 + fi
2.147 +}
2.148 +
2.149 +autoheader_check ()
2.150 +{
2.151 + # same here - autoheader is part of autoconf
2.152 + # use the same voodoo
2.153 + if [ -z "$autoconf" ]; then
2.154 + echo "Error: no autoconf variable set !"
2.155 + return 1
2.156 + else
2.157 + autoheader=`echo $autoconf | sed s/autoconf/autoheader/`
2.158 + debug "autoheader: $autoheader"
2.159 + if [ "$autoheader" != "autoheader" ];
2.160 + then
2.161 + CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-autoheader=$autoheader"
2.162 + fi
2.163 + if [ ! -x `which $autoheader` ]; then
2.164 + echo "Error: cannot execute $autoheader !"
2.165 + return 1
2.166 + fi
2.167 + fi
2.168 +
2.169 +}
2.170 +
2.171 +autoconf_2_52d_check ()
2.172 +{
2.173 + # autoconf 2.52d has a weird issue involving a yes:no error
2.174 + # so don't allow it's use
2.175 + test -z "$NOCHECK" && {
2.176 + ac_version=`$autoconf --version|head -n 1|sed 's/^[a-zA-Z\.\ ()]*//;s/ .*$//'`
2.177 + if test "$ac_version" = "2.52d"; then
2.178 + echo "autoconf 2.52d has an issue with our current build."
2.179 + echo "We don't know who's to blame however. So until we do, get a"
2.180 + echo "regular version. RPM's of a working version are on the gstreamer site."
2.181 + exit 1
2.182 + fi
2.183 + }
2.184 + return 0
2.185 +}
2.186 +
2.187 +die_check ()
2.188 +{
2.189 + # call with $DIE
2.190 + # if set to 1, we need to print something helpful then die
2.191 + DIE=$1
2.192 + if test "x$DIE" = "x1";
2.193 + then
2.194 + echo
2.195 + echo "- Please get the right tools before proceeding."
2.196 + echo "- Alternatively, if you're sure we're wrong, run with --nocheck."
2.197 + exit 1
2.198 + fi
2.199 +}
2.200 +
2.201 +autogen_options ()
2.202 +{
2.203 + if test "x$1" = "x"; then
2.204 + return 0
2.205 + fi
2.206 +
2.207 + while test "x$1" != "x" ; do
2.208 + optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2.209 + case "$1" in
2.210 + --noconfigure)
2.211 + NOCONFIGURE=defined
2.212 + AUTOGEN_EXT_OPT="$AUTOGEN_EXT_OPT --noconfigure"
2.213 + echo "+ configure run disabled"
2.214 + shift
2.215 + ;;
2.216 + --nocheck)
2.217 + AUTOGEN_EXT_OPT="$AUTOGEN_EXT_OPT --nocheck"
2.218 + NOCHECK=defined
2.219 + echo "+ autotools version check disabled"
2.220 + shift
2.221 + ;;
2.222 + --debug)
2.223 + DEBUG=defined
2.224 + AUTOGEN_EXT_OPT="$AUTOGEN_EXT_OPT --debug"
2.225 + echo "+ debug output enabled"
2.226 + shift
2.227 + ;;
2.228 + --prefix=*)
2.229 + CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT --prefix=$optarg"
2.230 + echo "+ passing --prefix=$optarg to configure"
2.231 + shift
2.232 + ;;
2.233 + --prefix)
2.234 + shift
2.235 + echo "DEBUG: $1"
2.236 + CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT --prefix=$1"
2.237 + echo "+ passing --prefix=$1 to configure"
2.238 + shift
2.239 + ;;
2.240 + -h|--help)
2.241 + echo "autogen.sh (autogen options) -- (configure options)"
2.242 + echo "autogen.sh help options: "
2.243 + echo " --noconfigure don't run the configure script"
2.244 + echo " --nocheck don't do version checks"
2.245 + echo " --debug debug the autogen process"
2.246 + echo " --prefix will be passed on to configure"
2.247 + echo
2.248 + echo " --with-autoconf PATH use autoconf in PATH"
2.249 + echo " --with-automake PATH use automake in PATH"
2.250 + echo
2.251 + echo "to pass options to configure, put them as arguments after -- "
2.252 + exit 1
2.253 + ;;
2.254 + --with-automake=*)
2.255 + AUTOMAKE=$optarg
2.256 + echo "+ using alternate automake in $optarg"
2.257 + CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-automake=$AUTOMAKE"
2.258 + shift
2.259 + ;;
2.260 + --with-autoconf=*)
2.261 + AUTOCONF=$optarg
2.262 + echo "+ using alternate autoconf in $optarg"
2.263 + CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-autoconf=$AUTOCONF"
2.264 + shift
2.265 + ;;
2.266 + --disable*|--enable*|--with*)
2.267 + echo "+ passing option $1 to configure"
2.268 + CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT $1"
2.269 + shift
2.270 + ;;
2.271 + --) shift ; break ;;
2.272 + *) echo "- ignoring unknown autogen.sh argument $1"; shift ;;
2.273 + esac
2.274 + done
2.275 +
2.276 + for arg do CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT $arg"; done
2.277 + if test ! -z "$CONFIGURE_EXT_OPT"
2.278 + then
2.279 + echo "+ options passed to configure: $CONFIGURE_EXT_OPT"
2.280 + fi
2.281 +}
2.282 +
2.283 +toplevel_check ()
2.284 +{
2.285 + srcfile=$1
2.286 + test -f $srcfile || {
2.287 + echo "You must run this script in the top-level $package directory"
2.288 + exit 1
2.289 + }
2.290 +}
2.291 +
2.292 +
2.293 +tool_run ()
2.294 +{
2.295 + tool=$1
2.296 + options=$2
2.297 + run_if_fail=$3
2.298 + echo "+ running $tool $options..."
2.299 + $tool $options || {
2.300 + echo
2.301 + echo $tool failed
2.302 + eval $run_if_fail
2.303 + exit 1
2.304 + }
2.305 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/gmyth-upnp/m4/AUTHORS Wed Jan 10 20:35:17 2007 +0000
3.3 @@ -0,0 +1,4 @@
3.4 +Alexsandro Jose Virginio dos Santos <alexsandro.santos@indt.org.br>
3.5 +Hallyson Luiz de Morais Melo <hallyson.melo@indt.org.br>
3.6 +Leonardo Sobral Cunha <leonardo.cunha@indt.org.br>
3.7 +Rosfran Lins Borges <rosfran.borges@indt.org.br>
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/gmyth-upnp/m4/COPYING Wed Jan 10 20:35:17 2007 +0000
4.3 @@ -0,0 +1,504 @@
4.4 + GNU LESSER GENERAL PUBLIC LICENSE
4.5 + Version 2.1, February 1999
4.6 +
4.7 + Copyright (C) 1991, 1999 Free Software Foundation, Inc.
4.8 + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
4.9 + Everyone is permitted to copy and distribute verbatim copies
4.10 + of this license document, but changing it is not allowed.
4.11 +
4.12 +[This is the first released version of the Lesser GPL. It also counts
4.13 + as the successor of the GNU Library Public License, version 2, hence
4.14 + the version number 2.1.]
4.15 +
4.16 + Preamble
4.17 +
4.18 + The licenses for most software are designed to take away your
4.19 +freedom to share and change it. By contrast, the GNU General Public
4.20 +Licenses are intended to guarantee your freedom to share and change
4.21 +free software--to make sure the software is free for all its users.
4.22 +
4.23 + This license, the Lesser General Public License, applies to some
4.24 +specially designated software packages--typically libraries--of the
4.25 +Free Software Foundation and other authors who decide to use it. You
4.26 +can use it too, but we suggest you first think carefully about whether
4.27 +this license or the ordinary General Public License is the better
4.28 +strategy to use in any particular case, based on the explanations below.
4.29 +
4.30 + When we speak of free software, we are referring to freedom of use,
4.31 +not price. Our General Public Licenses are designed to make sure that
4.32 +you have the freedom to distribute copies of free software (and charge
4.33 +for this service if you wish); that you receive source code or can get
4.34 +it if you want it; that you can change the software and use pieces of
4.35 +it in new free programs; and that you are informed that you can do
4.36 +these things.
4.37 +
4.38 + To protect your rights, we need to make restrictions that forbid
4.39 +distributors to deny you these rights or to ask you to surrender these
4.40 +rights. These restrictions translate to certain responsibilities for
4.41 +you if you distribute copies of the library or if you modify it.
4.42 +
4.43 + For example, if you distribute copies of the library, whether gratis
4.44 +or for a fee, you must give the recipients all the rights that we gave
4.45 +you. You must make sure that they, too, receive or can get the source
4.46 +code. If you link other code with the library, you must provide
4.47 +complete object files to the recipients, so that they can relink them
4.48 +with the library after making changes to the library and recompiling
4.49 +it. And you must show them these terms so they know their rights.
4.50 +
4.51 + We protect your rights with a two-step method: (1) we copyright the
4.52 +library, and (2) we offer you this license, which gives you legal
4.53 +permission to copy, distribute and/or modify the library.
4.54 +
4.55 + To protect each distributor, we want to make it very clear that
4.56 +there is no warranty for the free library. Also, if the library is
4.57 +modified by someone else and passed on, the recipients should know
4.58 +that what they have is not the original version, so that the original
4.59 +author's reputation will not be affected by problems that might be
4.60 +introduced by others.
4.61 +
4.62 + Finally, software patents pose a constant threat to the existence of
4.63 +any free program. We wish to make sure that a company cannot
4.64 +effectively restrict the users of a free program by obtaining a
4.65 +restrictive license from a patent holder. Therefore, we insist that
4.66 +any patent license obtained for a version of the library must be
4.67 +consistent with the full freedom of use specified in this license.
4.68 +
4.69 + Most GNU software, including some libraries, is covered by the
4.70 +ordinary GNU General Public License. This license, the GNU Lesser
4.71 +General Public License, applies to certain designated libraries, and
4.72 +is quite different from the ordinary General Public License. We use
4.73 +this license for certain libraries in order to permit linking those
4.74 +libraries into non-free programs.
4.75 +
4.76 + When a program is linked with a library, whether statically or using
4.77 +a shared library, the combination of the two is legally speaking a
4.78 +combined work, a derivative of the original library. The ordinary
4.79 +General Public License therefore permits such linking only if the
4.80 +entire combination fits its criteria of freedom. The Lesser General
4.81 +Public License permits more lax criteria for linking other code with
4.82 +the library.
4.83 +
4.84 + We call this license the "Lesser" General Public License because it
4.85 +does Less to protect the user's freedom than the ordinary General
4.86 +Public License. It also provides other free software developers Less
4.87 +of an advantage over competing non-free programs. These disadvantages
4.88 +are the reason we use the ordinary General Public License for many
4.89 +libraries. However, the Lesser license provides advantages in certain
4.90 +special circumstances.
4.91 +
4.92 + For example, on rare occasions, there may be a special need to
4.93 +encourage the widest possible use of a certain library, so that it becomes
4.94 +a de-facto standard. To achieve this, non-free programs must be
4.95 +allowed to use the library. A more frequent case is that a free
4.96 +library does the same job as widely used non-free libraries. In this
4.97 +case, there is little to gain by limiting the free library to free
4.98 +software only, so we use the Lesser General Public License.
4.99 +
4.100 + In other cases, permission to use a particular library in non-free
4.101 +programs enables a greater number of people to use a large body of
4.102 +free software. For example, permission to use the GNU C Library in
4.103 +non-free programs enables many more people to use the whole GNU
4.104 +operating system, as well as its variant, the GNU/Linux operating
4.105 +system.
4.106 +
4.107 + Although the Lesser General Public License is Less protective of the
4.108 +users' freedom, it does ensure that the user of a program that is
4.109 +linked with the Library has the freedom and the wherewithal to run
4.110 +that program using a modified version of the Library.
4.111 +
4.112 + The precise terms and conditions for copying, distribution and
4.113 +modification follow. Pay close attention to the difference between a
4.114 +"work based on the library" and a "work that uses the library". The
4.115 +former contains code derived from the library, whereas the latter must
4.116 +be combined with the library in order to run.
4.117 +
4.118 + GNU LESSER GENERAL PUBLIC LICENSE
4.119 + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
4.120 +
4.121 + 0. This License Agreement applies to any software library or other
4.122 +program which contains a notice placed by the copyright holder or
4.123 +other authorized party saying it may be distributed under the terms of
4.124 +this Lesser General Public License (also called "this License").
4.125 +Each licensee is addressed as "you".
4.126 +
4.127 + A "library" means a collection of software functions and/or data
4.128 +prepared so as to be conveniently linked with application programs
4.129 +(which use some of those functions and data) to form executables.
4.130 +
4.131 + The "Library", below, refers to any such software library or work
4.132 +which has been distributed under these terms. A "work based on the
4.133 +Library" means either the Library or any derivative work under
4.134 +copyright law: that is to say, a work containing the Library or a
4.135 +portion of it, either verbatim or with modifications and/or translated
4.136 +straightforwardly into another language. (Hereinafter, translation is
4.137 +included without limitation in the term "modification".)
4.138 +
4.139 + "Source code" for a work means the preferred form of the work for
4.140 +making modifications to it. For a library, complete source code means
4.141 +all the source code for all modules it contains, plus any associated
4.142 +interface definition files, plus the scripts used to control compilation
4.143 +and installation of the library.
4.144 +
4.145 + Activities other than copying, distribution and modification are not
4.146 +covered by this License; they are outside its scope. The act of
4.147 +running a program using the Library is not restricted, and output from
4.148 +such a program is covered only if its contents constitute a work based
4.149 +on the Library (independent of the use of the Library in a tool for
4.150 +writing it). Whether that is true depends on what the Library does
4.151 +and what the program that uses the Library does.
4.152 +
4.153 + 1. You may copy and distribute verbatim copies of the Library's
4.154 +complete source code as you receive it, in any medium, provided that
4.155 +you conspicuously and appropriately publish on each copy an
4.156 +appropriate copyright notice and disclaimer of warranty; keep intact
4.157 +all the notices that refer to this License and to the absence of any
4.158 +warranty; and distribute a copy of this License along with the
4.159 +Library.
4.160 +
4.161 + You may charge a fee for the physical act of transferring a copy,
4.162 +and you may at your option offer warranty protection in exchange for a
4.163 +fee.
4.164 +
4.165 + 2. You may modify your copy or copies of the Library or any portion
4.166 +of it, thus forming a work based on the Library, and copy and
4.167 +distribute such modifications or work under the terms of Section 1
4.168 +above, provided that you also meet all of these conditions:
4.169 +
4.170 + a) The modified work must itself be a software library.
4.171 +
4.172 + b) You must cause the files modified to carry prominent notices
4.173 + stating that you changed the files and the date of any change.
4.174 +
4.175 + c) You must cause the whole of the work to be licensed at no
4.176 + charge to all third parties under the terms of this License.
4.177 +
4.178 + d) If a facility in the modified Library refers to a function or a
4.179 + table of data to be supplied by an application program that uses
4.180 + the facility, other than as an argument passed when the facility
4.181 + is invoked, then you must make a good faith effort to ensure that,
4.182 + in the event an application does not supply such function or
4.183 + table, the facility still operates, and performs whatever part of
4.184 + its purpose remains meaningful.
4.185 +
4.186 + (For example, a function in a library to compute square roots has
4.187 + a purpose that is entirely well-defined independent of the
4.188 + application. Therefore, Subsection 2d requires that any
4.189 + application-supplied function or table used by this function must
4.190 + be optional: if the application does not supply it, the square
4.191 + root function must still compute square roots.)
4.192 +
4.193 +These requirements apply to the modified work as a whole. If
4.194 +identifiable sections of that work are not derived from the Library,
4.195 +and can be reasonably considered independent and separate works in
4.196 +themselves, then this License, and its terms, do not apply to those
4.197 +sections when you distribute them as separate works. But when you
4.198 +distribute the same sections as part of a whole which is a work based
4.199 +on the Library, the distribution of the whole must be on the terms of
4.200 +this License, whose permissions for other licensees extend to the
4.201 +entire whole, and thus to each and every part regardless of who wrote
4.202 +it.
4.203 +
4.204 +Thus, it is not the intent of this section to claim rights or contest
4.205 +your rights to work written entirely by you; rather, the intent is to
4.206 +exercise the right to control the distribution of derivative or
4.207 +collective works based on the Library.
4.208 +
4.209 +In addition, mere aggregation of another work not based on the Library
4.210 +with the Library (or with a work based on the Library) on a volume of
4.211 +a storage or distribution medium does not bring the other work under
4.212 +the scope of this License.
4.213 +
4.214 + 3. You may opt to apply the terms of the ordinary GNU General Public
4.215 +License instead of this License to a given copy of the Library. To do
4.216 +this, you must alter all the notices that refer to this License, so
4.217 +that they refer to the ordinary GNU General Public License, version 2,
4.218 +instead of to this License. (If a newer version than version 2 of the
4.219 +ordinary GNU General Public License has appeared, then you can specify
4.220 +that version instead if you wish.) Do not make any other change in
4.221 +these notices.
4.222 +
4.223 + Once this change is made in a given copy, it is irreversible for
4.224 +that copy, so the ordinary GNU General Public License applies to all
4.225 +subsequent copies and derivative works made from that copy.
4.226 +
4.227 + This option is useful when you wish to copy part of the code of
4.228 +the Library into a program that is not a library.
4.229 +
4.230 + 4. You may copy and distribute the Library (or a portion or
4.231 +derivative of it, under Section 2) in object code or executable form
4.232 +under the terms of Sections 1 and 2 above provided that you accompany
4.233 +it with the complete corresponding machine-readable source code, which
4.234 +must be distributed under the terms of Sections 1 and 2 above on a
4.235 +medium customarily used for software interchange.
4.236 +
4.237 + If distribution of object code is made by offering access to copy
4.238 +from a designated place, then offering equivalent access to copy the
4.239 +source code from the same place satisfies the requirement to
4.240 +distribute the source code, even though third parties are not
4.241 +compelled to copy the source along with the object code.
4.242 +
4.243 + 5. A program that contains no derivative of any portion of the
4.244 +Library, but is designed to work with the Library by being compiled or
4.245 +linked with it, is called a "work that uses the Library". Such a
4.246 +work, in isolation, is not a derivative work of the Library, and
4.247 +therefore falls outside the scope of this License.
4.248 +
4.249 + However, linking a "work that uses the Library" with the Library
4.250 +creates an executable that is a derivative of the Library (because it
4.251 +contains portions of the Library), rather than a "work that uses the
4.252 +library". The executable is therefore covered by this License.
4.253 +Section 6 states terms for distribution of such executables.
4.254 +
4.255 + When a "work that uses the Library" uses material from a header file
4.256 +that is part of the Library, the object code for the work may be a
4.257 +derivative work of the Library even though the source code is not.
4.258 +Whether this is true is especially significant if the work can be
4.259 +linked without the Library, or if the work is itself a library. The
4.260 +threshold for this to be true is not precisely defined by law.
4.261 +
4.262 + If such an object file uses only numerical parameters, data
4.263 +structure layouts and accessors, and small macros and small inline
4.264 +functions (ten lines or less in length), then the use of the object
4.265 +file is unrestricted, regardless of whether it is legally a derivative
4.266 +work. (Executables containing this object code plus portions of the
4.267 +Library will still fall under Section 6.)
4.268 +
4.269 + Otherwise, if the work is a derivative of the Library, you may
4.270 +distribute the object code for the work under the terms of Section 6.
4.271 +Any executables containing that work also fall under Section 6,
4.272 +whether or not they are linked directly with the Library itself.
4.273 +
4.274 + 6. As an exception to the Sections above, you may also combine or
4.275 +link a "work that uses the Library" with the Library to produce a
4.276 +work containing portions of the Library, and distribute that work
4.277 +under terms of your choice, provided that the terms permit
4.278 +modification of the work for the customer's own use and reverse
4.279 +engineering for debugging such modifications.
4.280 +
4.281 + You must give prominent notice with each copy of the work that the
4.282 +Library is used in it and that the Library and its use are covered by
4.283 +this License. You must supply a copy of this License. If the work
4.284 +during execution displays copyright notices, you must include the
4.285 +copyright notice for the Library among them, as well as a reference
4.286 +directing the user to the copy of this License. Also, you must do one
4.287 +of these things:
4.288 +
4.289 + a) Accompany the work with the complete corresponding
4.290 + machine-readable source code for the Library including whatever
4.291 + changes were used in the work (which must be distributed under
4.292 + Sections 1 and 2 above); and, if the work is an executable linked
4.293 + with the Library, with the complete machine-readable "work that
4.294 + uses the Library", as object code and/or source code, so that the
4.295 + user can modify the Library and then relink to produce a modified
4.296 + executable containing the modified Library. (It is understood
4.297 + that the user who changes the contents of definitions files in the
4.298 + Library will not necessarily be able to recompile the application
4.299 + to use the modified definitions.)
4.300 +
4.301 + b) Use a suitable shared library mechanism for linking with the
4.302 + Library. A suitable mechanism is one that (1) uses at run time a
4.303 + copy of the library already present on the user's computer system,
4.304 + rather than copying library functions into the executable, and (2)
4.305 + will operate properly with a modified version of the library, if
4.306 + the user installs one, as long as the modified version is
4.307 + interface-compatible with the version that the work was made with.
4.308 +
4.309 + c) Accompany the work with a written offer, valid for at
4.310 + least three years, to give the same user the materials
4.311 + specified in Subsection 6a, above, for a charge no more
4.312 + than the cost of performing this distribution.
4.313 +
4.314 + d) If distribution of the work is made by offering access to copy
4.315 + from a designated place, offer equivalent access to copy the above
4.316 + specified materials from the same place.
4.317 +
4.318 + e) Verify that the user has already received a copy of these
4.319 + materials or that you have already sent this user a copy.
4.320 +
4.321 + For an executable, the required form of the "work that uses the
4.322 +Library" must include any data and utility programs needed for
4.323 +reproducing the executable from it. However, as a special exception,
4.324 +the materials to be distributed need not include anything that is
4.325 +normally distributed (in either source or binary form) with the major
4.326 +components (compiler, kernel, and so on) of the operating system on
4.327 +which the executable runs, unless that component itself accompanies
4.328 +the executable.
4.329 +
4.330 + It may happen that this requirement contradicts the license
4.331 +restrictions of other proprietary libraries that do not normally
4.332 +accompany the operating system. Such a contradiction means you cannot
4.333 +use both them and the Library together in an executable that you
4.334 +distribute.
4.335 +
4.336 + 7. You may place library facilities that are a work based on the
4.337 +Library side-by-side in a single library together with other library
4.338 +facilities not covered by this License, and distribute such a combined
4.339 +library, provided that the separate distribution of the work based on
4.340 +the Library and of the other library facilities is otherwise
4.341 +permitted, and provided that you do these two things:
4.342 +
4.343 + a) Accompany the combined library with a copy of the same work
4.344 + based on the Library, uncombined with any other library
4.345 + facilities. This must be distributed under the terms of the
4.346 + Sections above.
4.347 +
4.348 + b) Give prominent notice with the combined library of the fact
4.349 + that part of it is a work based on the Library, and explaining
4.350 + where to find the accompanying uncombined form of the same work.
4.351 +
4.352 + 8. You may not copy, modify, sublicense, link with, or distribute
4.353 +the Library except as expressly provided under this License. Any
4.354 +attempt otherwise to copy, modify, sublicense, link with, or
4.355 +distribute the Library is void, and will automatically terminate your
4.356 +rights under this License. However, parties who have received copies,
4.357 +or rights, from you under this License will not have their licenses
4.358 +terminated so long as such parties remain in full compliance.
4.359 +
4.360 + 9. You are not required to accept this License, since you have not
4.361 +signed it. However, nothing else grants you permission to modify or
4.362 +distribute the Library or its derivative works. These actions are
4.363 +prohibited by law if you do not accept this License. Therefore, by
4.364 +modifying or distributing the Library (or any work based on the
4.365 +Library), you indicate your acceptance of this License to do so, and
4.366 +all its terms and conditions for copying, distributing or modifying
4.367 +the Library or works based on it.
4.368 +
4.369 + 10. Each time you redistribute the Library (or any work based on the
4.370 +Library), the recipient automatically receives a license from the
4.371 +original licensor to copy, distribute, link with or modify the Library
4.372 +subject to these terms and conditions. You may not impose any further
4.373 +restrictions on the recipients' exercise of the rights granted herein.
4.374 +You are not responsible for enforcing compliance by third parties with
4.375 +this License.
4.376 +
4.377 + 11. If, as a consequence of a court judgment or allegation of patent
4.378 +infringement or for any other reason (not limited to patent issues),
4.379 +conditions are imposed on you (whether by court order, agreement or
4.380 +otherwise) that contradict the conditions of this License, they do not
4.381 +excuse you from the conditions of this License. If you cannot
4.382 +distribute so as to satisfy simultaneously your obligations under this
4.383 +License and any other pertinent obligations, then as a consequence you
4.384 +may not distribute the Library at all. For example, if a patent
4.385 +license would not permit royalty-free redistribution of the Library by
4.386 +all those who receive copies directly or indirectly through you, then
4.387 +the only way you could satisfy both it and this License would be to
4.388 +refrain entirely from distribution of the Library.
4.389 +
4.390 +If any portion of this section is held invalid or unenforceable under any
4.391 +particular circumstance, the balance of the section is intended to apply,
4.392 +and the section as a whole is intended to apply in other circumstances.
4.393 +
4.394 +It is not the purpose of this section to induce you to infringe any
4.395 +patents or other property right claims or to contest validity of any
4.396 +such claims; this section has the sole purpose of protecting the
4.397 +integrity of the free software distribution system which is
4.398 +implemented by public license practices. Many people have made
4.399 +generous contributions to the wide range of software distributed
4.400 +through that system in reliance on consistent application of that
4.401 +system; it is up to the author/donor to decide if he or she is willing
4.402 +to distribute software through any other system and a licensee cannot
4.403 +impose that choice.
4.404 +
4.405 +This section is intended to make thoroughly clear what is believed to
4.406 +be a consequence of the rest of this License.
4.407 +
4.408 + 12. If the distribution and/or use of the Library is restricted in
4.409 +certain countries either by patents or by copyrighted interfaces, the
4.410 +original copyright holder who places the Library under this License may add
4.411 +an explicit geographical distribution limitation excluding those countries,
4.412 +so that distribution is permitted only in or among countries not thus
4.413 +excluded. In such case, this License incorporates the limitation as if
4.414 +written in the body of this License.
4.415 +
4.416 + 13. The Free Software Foundation may publish revised and/or new
4.417 +versions of the Lesser General Public License from time to time.
4.418 +Such new versions will be similar in spirit to the present version,
4.419 +but may differ in detail to address new problems or concerns.
4.420 +
4.421 +Each version is given a distinguishing version number. If the Library
4.422 +specifies a version number of this License which applies to it and
4.423 +"any later version", you have the option of following the terms and
4.424 +conditions either of that version or of any later version published by
4.425 +the Free Software Foundation. If the Library does not specify a
4.426 +license version number, you may choose any version ever published by
4.427 +the Free Software Foundation.
4.428 +
4.429 + 14. If you wish to incorporate parts of the Library into other free
4.430 +programs whose distribution conditions are incompatible with these,
4.431 +write to the author to ask for permission. For software which is
4.432 +copyrighted by the Free Software Foundation, write to the Free
4.433 +Software Foundation; we sometimes make exceptions for this. Our
4.434 +decision will be guided by the two goals of preserving the free status
4.435 +of all derivatives of our free software and of promoting the sharing
4.436 +and reuse of software generally.
4.437 +
4.438 + NO WARRANTY
4.439 +
4.440 + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
4.441 +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
4.442 +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
4.443 +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
4.444 +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
4.445 +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
4.446 +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
4.447 +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
4.448 +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
4.449 +
4.450 + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
4.451 +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
4.452 +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
4.453 +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
4.454 +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
4.455 +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
4.456 +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
4.457 +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
4.458 +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
4.459 +DAMAGES.
4.460 +
4.461 + END OF TERMS AND CONDITIONS
4.462 +
4.463 + How to Apply These Terms to Your New Libraries
4.464 +
4.465 + If you develop a new library, and you want it to be of the greatest
4.466 +possible use to the public, we recommend making it free software that
4.467 +everyone can redistribute and change. You can do so by permitting
4.468 +redistribution under these terms (or, alternatively, under the terms of the
4.469 +ordinary General Public License).
4.470 +
4.471 + To apply these terms, attach the following notices to the library. It is
4.472 +safest to attach them to the start of each source file to most effectively
4.473 +convey the exclusion of warranty; and each file should have at least the
4.474 +"copyright" line and a pointer to where the full notice is found.
4.475 +
4.476 + <one line to give the library's name and a brief idea of what it does.>
4.477 + Copyright (C) <year> <name of author>
4.478 +
4.479 + This library is free software; you can redistribute it and/or
4.480 + modify it under the terms of the GNU Lesser General Public
4.481 + License as published by the Free Software Foundation; either
4.482 + version 2.1 of the License, or (at your option) any later version.
4.483 +
4.484 + This library is distributed in the hope that it will be useful,
4.485 + but WITHOUT ANY WARRANTY; without even the implied warranty of
4.486 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4.487 + Lesser General Public License for more details.
4.488 +
4.489 + You should have received a copy of the GNU Lesser General Public
4.490 + License along with this library; if not, write to the Free Software
4.491 + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
4.492 +
4.493 +Also add information on how to contact you by electronic and paper mail.
4.494 +
4.495 +You should also get your employer (if you work as a programmer) or your
4.496 +school, if any, to sign a "copyright disclaimer" for the library, if
4.497 +necessary. Here is a sample; alter the names:
4.498 +
4.499 + Yoyodyne, Inc., hereby disclaims all copyright interest in the
4.500 + library `Frob' (a library for tweaking knobs) written by James Random Hacker.
4.501 +
4.502 + <signature of Ty Coon>, 1 April 1990
4.503 + Ty Coon, President of Vice
4.504 +
4.505 +That's all there is to it!
4.506 +
4.507 +
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/gmyth-upnp/m4/ChangeLog Wed Jan 10 20:35:17 2007 +0000
5.3 @@ -0,0 +1,24 @@
5.4 +2006-08-17 Rosfran Borges <rosfran.borges@indt.org.br>
5.5 + * Added the correct gstreamer-base package (GSTBASE) at the configure.ac;
5.6 + GSTBASE_CFLAGS and GSTBASE_LIBS variables had the same values from
5.7 + the GST_CFLAGS/GST_LIBS.
5.8 +
5.9 +2006-08-16 Rosfran Borges <rosfran.borges@indt.org.br>
5.10 + * Fixed some installation issues, regarding lib-installing to the
5.11 + correct directory, and copying the header files to the destination
5.12 + dir (make install).
5.13 + * Put 'pkg-config' resource to the Maemo Myth library. The name of the
5.14 + PKG-CONFIG resource is 'maemo-myth', plus the minor and major version.
5.15 + Actually, the version is '0.1', so the library config file is:
5.16 + 'maemo-myth-0.1.pc'. You can type: 'pkg-config --cflags --libs
5.17 + maemo-myth-0.1'.
5.18 + * Many adjustments in the automake/autoconf configuration files
5.19 + (configure.ac, Makefile.am) - some autotools misusage fixed.
5.20 + * Added the MythURI structure, and the URI parsing utility functions
5.21 + (missing in the GLib).
5.22 + * Some functions were exported (myth_socket, mmyth_context), that's
5.23 + why many ther modules need to use them.
5.24 + * Fixed some library dependencies.
5.25 + * Prepared to be used inside the GStreamer (linking with the MythTV
5.26 + plug-in).
5.27 +
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/gmyth-upnp/m4/INSTALL Wed Jan 10 20:35:17 2007 +0000
6.3 @@ -0,0 +1,236 @@
6.4 +Installation Instructions
6.5 +*************************
6.6 +
6.7 +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
6.8 +Software Foundation, Inc.
6.9 +
6.10 +This file is free documentation; the Free Software Foundation gives
6.11 +unlimited permission to copy, distribute and modify it.
6.12 +
6.13 +Basic Installation
6.14 +==================
6.15 +
6.16 +These are generic installation instructions.
6.17 +
6.18 + The `configure' shell script attempts to guess correct values for
6.19 +various system-dependent variables used during compilation. It uses
6.20 +those values to create a `Makefile' in each directory of the package.
6.21 +It may also create one or more `.h' files containing system-dependent
6.22 +definitions. Finally, it creates a shell script `config.status' that
6.23 +you can run in the future to recreate the current configuration, and a
6.24 +file `config.log' containing compiler output (useful mainly for
6.25 +debugging `configure').
6.26 +
6.27 + It can also use an optional file (typically called `config.cache'
6.28 +and enabled with `--cache-file=config.cache' or simply `-C') that saves
6.29 +the results of its tests to speed up reconfiguring. (Caching is
6.30 +disabled by default to prevent problems with accidental use of stale
6.31 +cache files.)
6.32 +
6.33 + If you need to do unusual things to compile the package, please try
6.34 +to figure out how `configure' could check whether to do them, and mail
6.35 +diffs or instructions to the address given in the `README' so they can
6.36 +be considered for the next release. If you are using the cache, and at
6.37 +some point `config.cache' contains results you don't want to keep, you
6.38 +may remove or edit it.
6.39 +
6.40 + The file `configure.ac' (or `configure.in') is used to create
6.41 +`configure' by a program called `autoconf'. You only need
6.42 +`configure.ac' if you want to change it or regenerate `configure' using
6.43 +a newer version of `autoconf'.
6.44 +
6.45 +The simplest way to compile this package is:
6.46 +
6.47 + 1. `cd' to the directory containing the package's source code and type
6.48 + `./configure' to configure the package for your system. If you're
6.49 + using `csh' on an old version of System V, you might need to type
6.50 + `sh ./configure' instead to prevent `csh' from trying to execute
6.51 + `configure' itself.
6.52 +
6.53 + Running `configure' takes awhile. While running, it prints some
6.54 + messages telling which features it is checking for.
6.55 +
6.56 + 2. Type `make' to compile the package.
6.57 +
6.58 + 3. Optionally, type `make check' to run any self-tests that come with
6.59 + the package.
6.60 +
6.61 + 4. Type `make install' to install the programs and any data files and
6.62 + documentation.
6.63 +
6.64 + 5. You can remove the program binaries and object files from the
6.65 + source code directory by typing `make clean'. To also remove the
6.66 + files that `configure' created (so you can compile the package for
6.67 + a different kind of computer), type `make distclean'. There is
6.68 + also a `make maintainer-clean' target, but that is intended mainly
6.69 + for the package's developers. If you use it, you may have to get
6.70 + all sorts of other programs in order to regenerate files that came
6.71 + with the distribution.
6.72 +
6.73 +Compilers and Options
6.74 +=====================
6.75 +
6.76 +Some systems require unusual options for compilation or linking that the
6.77 +`configure' script does not know about. Run `./configure --help' for
6.78 +details on some of the pertinent environment variables.
6.79 +
6.80 + You can give `configure' initial values for configuration parameters
6.81 +by setting variables in the command line or in the environment. Here
6.82 +is an example:
6.83 +
6.84 + ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
6.85 +
6.86 + *Note Defining Variables::, for more details.
6.87 +
6.88 +Compiling For Multiple Architectures
6.89 +====================================
6.90 +
6.91 +You can compile the package for more than one kind of computer at the
6.92 +same time, by placing the object files for each architecture in their
6.93 +own directory. To do this, you must use a version of `make' that
6.94 +supports the `VPATH' variable, such as GNU `make'. `cd' to the
6.95 +directory where you want the object files and executables to go and run
6.96 +the `configure' script. `configure' automatically checks for the
6.97 +source code in the directory that `configure' is in and in `..'.
6.98 +
6.99 + If you have to use a `make' that does not support the `VPATH'
6.100 +variable, you have to compile the package for one architecture at a
6.101 +time in the source code directory. After you have installed the
6.102 +package for one architecture, use `make distclean' before reconfiguring
6.103 +for another architecture.
6.104 +
6.105 +Installation Names
6.106 +==================
6.107 +
6.108 +By default, `make install' installs the package's commands under
6.109 +`/usr/local/bin', include files under `/usr/local/include', etc. You
6.110 +can specify an installation prefix other than `/usr/local' by giving
6.111 +`configure' the option `--prefix=PREFIX'.
6.112 +
6.113 + You can specify separate installation prefixes for
6.114 +architecture-specific files and architecture-independent files. If you
6.115 +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
6.116 +PREFIX as the prefix for installing programs and libraries.
6.117 +Documentation and other data files still use the regular prefix.
6.118 +
6.119 + In addition, if you use an unusual directory layout you can give
6.120 +options like `--bindir=DIR' to specify different values for particular
6.121 +kinds of files. Run `configure --help' for a list of the directories
6.122 +you can set and what kinds of files go in them.
6.123 +
6.124 + If the package supports it, you can cause programs to be installed
6.125 +with an extra prefix or suffix on their names by giving `configure' the
6.126 +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
6.127 +
6.128 +Optional Features
6.129 +=================
6.130 +
6.131 +Some packages pay attention to `--enable-FEATURE' options to
6.132 +`configure', where FEATURE indicates an optional part of the package.
6.133 +They may also pay attention to `--with-PACKAGE' options, where PACKAGE
6.134 +is something like `gnu-as' or `x' (for the X Window System). The
6.135 +`README' should mention any `--enable-' and `--with-' options that the
6.136 +package recognizes.
6.137 +
6.138 + For packages that use the X Window System, `configure' can usually
6.139 +find the X include and library files automatically, but if it doesn't,
6.140 +you can use the `configure' options `--x-includes=DIR' and
6.141 +`--x-libraries=DIR' to specify their locations.
6.142 +
6.143 +Specifying the System Type
6.144 +==========================
6.145 +
6.146 +There may be some features `configure' cannot figure out automatically,
6.147 +but needs to determine by the type of machine the package will run on.
6.148 +Usually, assuming the package is built to be run on the _same_
6.149 +architectures, `configure' can figure that out, but if it prints a
6.150 +message saying it cannot guess the machine type, give it the
6.151 +`--build=TYPE' option. TYPE can either be a short name for the system
6.152 +type, such as `sun4', or a canonical name which has the form:
6.153 +
6.154 + CPU-COMPANY-SYSTEM
6.155 +
6.156 +where SYSTEM can have one of these forms:
6.157 +
6.158 + OS KERNEL-OS
6.159 +
6.160 + See the file `config.sub' for the possible values of each field. If
6.161 +`config.sub' isn't included in this package, then this package doesn't
6.162 +need to know the machine type.
6.163 +
6.164 + If you are _building_ compiler tools for cross-compiling, you should
6.165 +use the option `--target=TYPE' to select the type of system they will
6.166 +produce code for.
6.167 +
6.168 + If you want to _use_ a cross compiler, that generates code for a
6.169 +platform different from the build platform, you should specify the
6.170 +"host" platform (i.e., that on which the generated programs will
6.171 +eventually be run) with `--host=TYPE'.
6.172 +
6.173 +Sharing Defaults
6.174 +================
6.175 +
6.176 +If you want to set default values for `configure' scripts to share, you
6.177 +can create a site shell script called `config.site' that gives default
6.178 +values for variables like `CC', `cache_file', and `prefix'.
6.179 +`configure' looks for `PREFIX/share/config.site' if it exists, then
6.180 +`PREFIX/etc/config.site' if it exists. Or, you can set the
6.181 +`CONFIG_SITE' environment variable to the location of the site script.
6.182 +A warning: not all `configure' scripts look for a site script.
6.183 +
6.184 +Defining Variables
6.185 +==================
6.186 +
6.187 +Variables not defined in a site shell script can be set in the
6.188 +environment passed to `configure'. However, some packages may run
6.189 +configure again during the build, and the customized values of these
6.190 +variables may be lost. In order to avoid this problem, you should set
6.191 +them in the `configure' command line, using `VAR=value'. For example:
6.192 +
6.193 + ./configure CC=/usr/local2/bin/gcc
6.194 +
6.195 +causes the specified `gcc' to be used as the C compiler (unless it is
6.196 +overridden in the site shell script). Here is a another example:
6.197 +
6.198 + /bin/bash ./configure CONFIG_SHELL=/bin/bash
6.199 +
6.200 +Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
6.201 +configuration-related scripts to be executed by `/bin/bash'.
6.202 +
6.203 +`configure' Invocation
6.204 +======================
6.205 +
6.206 +`configure' recognizes the following options to control how it operates.
6.207 +
6.208 +`--help'
6.209 +`-h'
6.210 + Print a summary of the options to `configure', and exit.
6.211 +
6.212 +`--version'
6.213 +`-V'
6.214 + Print the version of Autoconf used to generate the `configure'
6.215 + script, and exit.
6.216 +
6.217 +`--cache-file=FILE'
6.218 + Enable the cache: use and save the results of the tests in FILE,
6.219 + traditionally `config.cache'. FILE defaults to `/dev/null' to
6.220 + disable caching.
6.221 +
6.222 +`--config-cache'
6.223 +`-C'
6.224 + Alias for `--cache-file=config.cache'.
6.225 +
6.226 +`--quiet'
6.227 +`--silent'
6.228 +`-q'
6.229 + Do not print messages saying which checks are being made. To
6.230 + suppress all normal output, redirect it to `/dev/null' (any error
6.231 + messages will still be shown).
6.232 +
6.233 +`--srcdir=DIR'
6.234 + Look for the package's source code in directory DIR. Usually
6.235 + `configure' can determine that directory automatically.
6.236 +
6.237 +`configure' also accepts some other, not widely useful, options. Run
6.238 +`configure --help' for more details.
6.239 +
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
7.2 +++ b/gmyth-upnp/m4/Makefile.am Wed Jan 10 20:35:17 2007 +0000
7.3 @@ -0,0 +1,10 @@
7.4 +SUBDIRS= src pixmaps
7.5 +
7.6 +include aminclude.am
7.7 +
7.8 +EXTRA_DIST = \
7.9 + autogen.sh \
7.10 + AUTHORS \
7.11 + COPYING \
7.12 + README
7.13 +
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
8.2 +++ b/gmyth-upnp/m4/ac_doxygen.m4 Wed Jan 10 20:35:17 2007 +0000
8.3 @@ -0,0 +1,312 @@
8.4 +# This file is part of Autoconf. -*- Autoconf -*-
8.5 +
8.6 +# Copyright (C) 2004 Oren Ben-Kiki
8.7 +# This file is distributed under the same terms as the Autoconf macro files.
8.8 +
8.9 +# Generate automatic documentation using Doxygen. Works in concert with the
8.10 +# aminclude.m4 file and a compatible doxygen configuration file. Defines the
8.11 +# following public macros:
8.12 +#
8.13 +# DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature.
8.14 +# Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
8.15 +# 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
8.16 +# for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF',
8.17 +# 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
8.18 +# variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
8.19 +# paper size.
8.20 +#
8.21 +# By default, HTML, PDF and PS documentation is generated as this seems to be
8.22 +# the most popular and portable combination. MAN pages created by Doxygen are
8.23 +# usually problematic, though by picking an appropriate subset and doing some
8.24 +# massaging they might be better than nothing. CHM and RTF are specific for MS
8.25 +# (note that you can't generate both HTML and CHM at the same time). The XML is
8.26 +# rather useless unless you apply specialized post-processing to it.
8.27 +#
8.28 +# The macro mainly controls the default state of the feature. The use can
8.29 +# override the default by specifying --enable or --disable. The macros ensure
8.30 +# that contradictory flags are not given (e.g., --enable-doxygen-html and
8.31 +# --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
8.32 +# Finally, each feature will be automatically disabled (with a warning) if the
8.33 +# required programs are missing.
8.34 +#
8.35 +# Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
8.36 +# the following parameters: a one-word name for the project for use as a
8.37 +# filename base etc., an optional configuration file name (the default is
8.38 +# 'Doxyfile', the same as Doxygen's default), and an optional output directory
8.39 +# name (the default is 'doxygen-doc').
8.40 +
8.41 +## ----------##
8.42 +## Defaults. ##
8.43 +## ----------##
8.44 +
8.45 +DX_ENV=""
8.46 +AC_DEFUN([DX_FEATURE_doc], ON)
8.47 +AC_DEFUN([DX_FEATURE_dot], ON)
8.48 +AC_DEFUN([DX_FEATURE_man], OFF)
8.49 +AC_DEFUN([DX_FEATURE_html], ON)
8.50 +AC_DEFUN([DX_FEATURE_chm], OFF)
8.51 +AC_DEFUN([DX_FEATURE_chi], OFF)
8.52 +AC_DEFUN([DX_FEATURE_rtf], OFF)
8.53 +AC_DEFUN([DX_FEATURE_xml], OFF)
8.54 +AC_DEFUN([DX_FEATURE_pdf], ON)
8.55 +AC_DEFUN([DX_FEATURE_ps], ON)
8.56 +
8.57 +## --------------- ##
8.58 +## Private macros. ##
8.59 +## --------------- ##
8.60 +
8.61 +# DX_ENV_APPEND(VARIABLE, VALUE)
8.62 +# ------------------------------
8.63 +# Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
8.64 +AC_DEFUN([DX_ENV_APPEND], [AC_SUBST([DX_ENV], ["$DX_ENV $1='$2'"])])
8.65 +
8.66 +# DX_DIRNAME_EXPR
8.67 +# ---------------
8.68 +# Expand into a shell expression prints the directory part of a path.
8.69 +AC_DEFUN([DX_DIRNAME_EXPR],
8.70 + [[expr ".$1" : '\(\.\)[^/]*$' \| "x$1" : 'x\(.*\)/[^/]*$']])
8.71 +
8.72 +# DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
8.73 +# -------------------------------------
8.74 +# Expands according to the M4 (static) status of the feature.
8.75 +AC_DEFUN([DX_IF_FEATURE], [ifelse(DX_FEATURE_$1, ON, [$2], [$3])])
8.76 +
8.77 +# DX_REQUIRE_PROG(VARIABLE, PROGRAM)
8.78 +# ----------------------------------
8.79 +# Require the specified program to be found for the DX_CURRENT_FEATURE to work.
8.80 +AC_DEFUN([DX_REQUIRE_PROG], [
8.81 +AC_PATH_TOOL([$1], [$2])
8.82 +if test "$DX_FLAG_[]DX_CURRENT_FEATURE$$1" = 1; then
8.83 + AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION])
8.84 + AC_SUBST([DX_FLAG_[]DX_CURRENT_FEATURE], 0)
8.85 +fi
8.86 +])
8.87 +
8.88 +# DX_TEST_FEATURE(FEATURE)
8.89 +# ------------------------
8.90 +# Expand to a shell expression testing whether the feature is active.
8.91 +AC_DEFUN([DX_TEST_FEATURE], [test "$DX_FLAG_$1" = 1])
8.92 +
8.93 +# DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
8.94 +# -------------------------------------------------
8.95 +# Verify that a required features has the right state before trying to turn on
8.96 +# the DX_CURRENT_FEATURE.
8.97 +AC_DEFUN([DX_CHECK_DEPEND], [
8.98 +test "$DX_FLAG_$1" = "$2" \
8.99 +|| AC_MSG_ERROR([doxygen-DX_CURRENT_FEATURE ifelse([$2], 1,
8.100 + requires, contradicts) doxygen-DX_CURRENT_FEATURE])
8.101 +])
8.102 +
8.103 +# DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
8.104 +# ----------------------------------------------------------
8.105 +# Turn off the DX_CURRENT_FEATURE if the required feature is off.
8.106 +AC_DEFUN([DX_CLEAR_DEPEND], [
8.107 +test "$DX_FLAG_$1" = "$2" || AC_SUBST([DX_FLAG_[]DX_CURRENT_FEATURE], 0)
8.108 +])
8.109 +
8.110 +# DX_FEATURE_ARG(FEATURE, DESCRIPTION,
8.111 +# CHECK_DEPEND, CLEAR_DEPEND,
8.112 +# REQUIRE, DO-IF-ON, DO-IF-OFF)
8.113 +# --------------------------------------------
8.114 +# Parse the command-line option controlling a feature. CHECK_DEPEND is called
8.115 +# if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
8.116 +# otherwise CLEAR_DEPEND is called to turn off the default state if a required
8.117 +# feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
8.118 +# requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
8.119 +# DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
8.120 +AC_DEFUN([DX_ARG_ABLE], [
8.121 + AC_DEFUN([DX_CURRENT_FEATURE], [$1])
8.122 + AC_DEFUN([DX_CURRENT_DESCRIPTION], [$2])
8.123 + AC_ARG_ENABLE(doxygen-$1,
8.124 + [AS_HELP_STRING(DX_IF_FEATURE([$1], [--disable-doxygen-$1],
8.125 + [--enable-doxygen-$1]),
8.126 + DX_IF_FEATURE([$1], [don't $2], [$2]))],
8.127 + [
8.128 +case "$enableval" in
8.129 +#(
8.130 +y|Y|yes|Yes|YES)
8.131 + AC_SUBST([DX_FLAG_$1], 1)
8.132 + $3
8.133 +;; #(
8.134 +n|N|no|No|NO)
8.135 + AC_SUBST([DX_FLAG_$1], 0)
8.136 +;; #(
8.137 +*)
8.138 + AC_MSG_ERROR([invalid value '$enableval' given to doxygen-$1])
8.139 +;;
8.140 +esac
8.141 +], [
8.142 +AC_SUBST([DX_FLAG_$1], [DX_IF_FEATURE([$1], 1, 0)])
8.143 +$4
8.144 +])
8.145 +if DX_TEST_FEATURE([$1]); then
8.146 + $5
8.147 + :
8.148 +fi
8.149 +if DX_TEST_FEATURE([$1]); then
8.150 + AM_CONDITIONAL(DX_COND_$1, :)
8.151 + $6
8.152 + :
8.153 +else
8.154 + AM_CONDITIONAL(DX_COND_$1, false)
8.155 + $7
8.156 + :
8.157 +fi
8.158 +])
8.159 +
8.160 +## -------------- ##
8.161 +## Public macros. ##
8.162 +## -------------- ##
8.163 +
8.164 +# DX_XXX_FEATURE(DEFAULT_STATE)
8.165 +# -----------------------------
8.166 +AC_DEFUN([DX_DOXYGEN_FEATURE], [AC_DEFUN([DX_FEATURE_doc], [$1])])
8.167 +AC_DEFUN([DX_MAN_FEATURE], [AC_DEFUN([DX_FEATURE_man], [$1])])
8.168 +AC_DEFUN([DX_HTML_FEATURE], [AC_DEFUN([DX_FEATURE_html], [$1])])
8.169 +AC_DEFUN([DX_CHM_FEATURE], [AC_DEFUN([DX_FEATURE_chm], [$1])])
8.170 +AC_DEFUN([DX_CHI_FEATURE], [AC_DEFUN([DX_FEATURE_chi], [$1])])
8.171 +AC_DEFUN([DX_RTF_FEATURE], [AC_DEFUN([DX_FEATURE_rtf], [$1])])
8.172 +AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
8.173 +AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
8.174 +AC_DEFUN([DX_PDF_FEATURE], [AC_DEFUN([DX_FEATURE_pdf], [$1])])
8.175 +AC_DEFUN([DX_PS_FEATURE], [AC_DEFUN([DX_FEATURE_ps], [$1])])
8.176 +
8.177 +# DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
8.178 +# ---------------------------------------------------------
8.179 +# PROJECT also serves as the base name for the documentation files.
8.180 +# The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
8.181 +AC_DEFUN([DX_INIT_DOXYGEN], [
8.182 +
8.183 +# Files:
8.184 +AC_SUBST([DX_PROJECT], [$1])
8.185 +AC_SUBST([DX_CONFIG], [ifelse([$2], [], Doxyfile, [$2])])
8.186 +AC_SUBST([DX_DOCDIR], [ifelse([$3], [], doxygen-doc, [$3])])
8.187 +
8.188 +# Environment variables used inside doxygen.cfg:
8.189 +DX_ENV_APPEND(SRCDIR, $srcdir)
8.190 +DX_ENV_APPEND(PROJECT, $DX_PROJECT)
8.191 +DX_ENV_APPEND(DOCDIR, $DX_DOCDIR)
8.192 +DX_ENV_APPEND(VERSION, $PACKAGE_VERSION)
8.193 +
8.194 +# Doxygen itself:
8.195 +DX_ARG_ABLE(doc, [generate any doxygen documentation],
8.196 + [],
8.197 + [],
8.198 + [DX_REQUIRE_PROG([DX_DOXYGEN], doxygen)
8.199 + DX_REQUIRE_PROG([DX_PERL], perl)],
8.200 + [DX_ENV_APPEND(PERL_PATH, $DX_PERL)])
8.201 +
8.202 +# Dot for graphics:
8.203 +DX_ARG_ABLE(dot, [generate graphics for doxygen documentation],
8.204 + [DX_CHECK_DEPEND(doc, 1)],
8.205 + [DX_CLEAR_DEPEND(doc, 1)],
8.206 + [DX_REQUIRE_PROG([DX_DOT], dot)],
8.207 + [DX_ENV_APPEND(HAVE_DOT, YES)
8.208 + DX_ENV_APPEND(DOT_PATH, [`DX_DIRNAME_EXPR($DX_DOT)`])],
8.209 + [DX_ENV_APPEND(HAVE_DOT, NO)])
8.210 +
8.211 +# Man pages generation:
8.212 +DX_ARG_ABLE(man, [generate doxygen manual pages],
8.213 + [DX_CHECK_DEPEND(doc, 1)],
8.214 + [DX_CLEAR_DEPEND(doc, 1)],
8.215 + [],
8.216 + [DX_ENV_APPEND(GENERATE_MAN, YES)],
8.217 + [DX_ENV_APPEND(GENERATE_MAN, NO)])
8.218 +
8.219 +# RTF file generation:
8.220 +DX_ARG_ABLE(rtf, [generate doxygen RTF documentation],
8.221 + [DX_CHECK_DEPEND(doc, 1)],
8.222 + [DX_CLEAR_DEPEND(doc, 1)],
8.223 + [],
8.224 + [DX_ENV_APPEND(GENERATE_RTF, YES)],
8.225 + [DX_ENV_APPEND(GENERATE_RTF, NO)])
8.226 +
8.227 +# XML file generation:
8.228 +DX_ARG_ABLE(xml, [generate doxygen XML documentation],
8.229 + [DX_CHECK_DEPEND(doc, 1)],
8.230 + [DX_CLEAR_DEPEND(doc, 1)],
8.231 + [],
8.232 + [DX_ENV_APPEND(GENERATE_XML, YES)],
8.233 + [DX_ENV_APPEND(GENERATE_XML, NO)])
8.234 +
8.235 +# (Compressed) HTML help generation:
8.236 +DX_ARG_ABLE(chm, [generate doxygen compressed HTML help documentation],
8.237 + [DX_CHECK_DEPEND(doc, 1)],
8.238 + [DX_CLEAR_DEPEND(doc, 1)],
8.239 + [DX_REQUIRE_PROG([DX_HHC], hhc)],
8.240 + [DX_ENV_APPEND(HHC_PATH, $DX_HHC)
8.241 + DX_ENV_APPEND(GENERATE_HTML, YES)
8.242 + DX_ENV_APPEND(GENERATE_HTMLHELP, YES)],
8.243 + [DX_ENV_APPEND(GENERATE_HTMLHELP, NO)])
8.244 +
8.245 +# Seperate CHI file generation.
8.246 +DX_ARG_ABLE(chi, [generate doxygen seperate compressed HTML help index file],
8.247 + [DX_CHECK_DEPEND(chm, 1)],
8.248 + [DX_CLEAR_DEPEND(chm, 1)],
8.249 + [],
8.250 + [DX_ENV_APPEND(GENERATE_CHI, YES)],
8.251 + [DX_ENV_APPEND(GENERATE_CHI, NO)])
8.252 +
8.253 +# Plain HTML pages generation:
8.254 +DX_ARG_ABLE(html, [generate doxygen plain HTML documentation],
8.255 + [DX_CHECK_DEPEND(doc, 1) DX_CHECK_DEPEND(chm, 0)],
8.256 + [DX_CLEAR_DEPEND(doc, 1) DX_CLEAR_DEPEND(chm, 0)],
8.257 + [],
8.258 + [DX_ENV_APPEND(GENERATE_HTML, YES)],
8.259 + [DX_TEST_FEATURE(chm) || DX_ENV_APPEND(GENERATE_HTML, NO)])
8.260 +
8.261 +# PostScript file generation:
8.262 +DX_ARG_ABLE(ps, [generate doxygen PostScript documentation],
8.263 + [DX_CHECK_DEPEND(doc, 1)],
8.264 + [DX_CLEAR_DEPEND(doc, 1)],
8.265 + [DX_REQUIRE_PROG([DX_LATEX], latex)
8.266 + DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
8.267 + DX_REQUIRE_PROG([DX_DVIPS], dvips)
8.268 + DX_REQUIRE_PROG([DX_EGREP], egrep)])
8.269 +
8.270 +# PDF file generation:
8.271 +DX_ARG_ABLE(pdf, [generate doxygen PDF documentation],
8.272 + [DX_CHECK_DEPEND(doc, 1)],
8.273 + [DX_CLEAR_DEPEND(doc, 1)],
8.274 + [DX_REQUIRE_PROG([DX_PDFLATEX], pdflatex)
8.275 + DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
8.276 + DX_REQUIRE_PROG([DX_EGREP], egrep)])
8.277 +
8.278 +# LaTeX generation for PS and/or PDF:
8.279 +if DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf); then
8.280 + AM_CONDITIONAL(DX_COND_latex, :)
8.281 + DX_ENV_APPEND(GENERATE_LATEX, YES)
8.282 +else
8.283 + AM_CONDITIONAL(DX_COND_latex, false)
8.284 + DX_ENV_APPEND(GENERATE_LATEX, NO)
8.285 +fi
8.286 +
8.287 +# Paper size for PS and/or PDF:
8.288 +AC_ARG_VAR(DOXYGEN_PAPER_SIZE,
8.289 + [a4wide (default), a4, letter, legal or executive])
8.290 +case "$DOXYGEN_PAPER_SIZE" in
8.291 +#(
8.292 +"")
8.293 + AC_SUBST(DOXYGEN_PAPER_SIZE, "")
8.294 +;; #(
8.295 +a4wide|a4|letter|legal|executive)
8.296 + DX_ENV_APPEND(PAPER_SIZE, $DOXYGEN_PAPER_SIZE)
8.297 +;; #(
8.298 +*)
8.299 + AC_MSG_ERROR([unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'])
8.300 +;;
8.301 +esac
8.302 +
8.303 +#For debugging:
8.304 +#echo DX_FLAG_doc=$DX_FLAG_doc
8.305 +#echo DX_FLAG_dot=$DX_FLAG_dot
8.306 +#echo DX_FLAG_man=$DX_FLAG_man
8.307 +#echo DX_FLAG_html=$DX_FLAG_html
8.308 +#echo DX_FLAG_chm=$DX_FLAG_chm
8.309 +#echo DX_FLAG_chi=$DX_FLAG_chi
8.310 +#echo DX_FLAG_rtf=$DX_FLAG_rtf
8.311 +#echo DX_FLAG_xml=$DX_FLAG_xml
8.312 +#echo DX_FLAG_pdf=$DX_FLAG_pdf
8.313 +#echo DX_FLAG_ps=$DX_FLAG_ps
8.314 +#echo DX_ENV=$DX_ENV
8.315 +])
9.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
9.2 +++ b/gmyth-upnp/m4/as-compiler-flag.m4 Wed Jan 10 20:35:17 2007 +0000
9.3 @@ -0,0 +1,33 @@
9.4 +dnl as-compiler-flag.m4 0.1.0
9.5 +
9.6 +dnl autostars m4 macro for detection of compiler flags
9.7 +
9.8 +dnl David Schleef <ds@schleef.org>
9.9 +
9.10 +dnl $Id: as-compiler-flag.m4,v 1.1.1.1 2005/08/26 00:42:44 andrunko Exp $
9.11 +
9.12 +dnl AS_COMPILER_FLAG(CFLAGS, ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED])
9.13 +dnl Tries to compile with the given CFLAGS.
9.14 +dnl Runs ACTION-IF-ACCEPTED if the compiler can compile with the flags,
9.15 +dnl and ACTION-IF-NOT-ACCEPTED otherwise.
9.16 +
9.17 +AC_DEFUN([AS_COMPILER_FLAG],
9.18 +[
9.19 + AC_MSG_CHECKING([to see if compiler understands $1])
9.20 +
9.21 + save_CFLAGS="$CFLAGS"
9.22 + CFLAGS="$CFLAGS $1"
9.23 +
9.24 + AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no])
9.25 + CFLAGS="$save_CFLAGS"
9.26 +
9.27 + if test "X$flag_ok" = Xyes ; then
9.28 + $2
9.29 + true
9.30 + else
9.31 + $3
9.32 + true
9.33 + fi
9.34 + AC_MSG_RESULT([$flag_ok])
9.35 +])
9.36 +
10.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
10.2 +++ b/gmyth-upnp/m4/as-expand.m4 Wed Jan 10 20:35:17 2007 +0000
10.3 @@ -0,0 +1,40 @@
10.4 +dnl AS_AC_EXPAND(VAR, CONFIGURE_VAR)
10.5 +dnl
10.6 +dnl example
10.7 +dnl AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
10.8 +dnl will set SYSCONFDIR to /usr/local/etc if prefix=/usr/local
10.9 +
10.10 +AC_DEFUN([AS_AC_EXPAND],
10.11 +[
10.12 + EXP_VAR=[$1]
10.13 + FROM_VAR=[$2]
10.14 +
10.15 + dnl first expand prefix and exec_prefix if necessary
10.16 + prefix_save=$prefix
10.17 + exec_prefix_save=$exec_prefix
10.18 +
10.19 + dnl if no prefix given, then use /usr/local, the default prefix
10.20 + if test "x$prefix" = "xNONE"; then
10.21 + prefix=$ac_default_prefix
10.22 + fi
10.23 + dnl if no exec_prefix given, then use prefix
10.24 + if test "x$exec_prefix" = "xNONE"; then
10.25 + exec_prefix=$prefix
10.26 + fi
10.27 +
10.28 + full_var="$FROM_VAR"
10.29 + dnl loop until it doesn't change anymore
10.30 + while true; do
10.31 + new_full_var="`eval echo $full_var`"
10.32 + if test "x$new_full_var"="x$full_var"; then break; fi
10.33 + full_var=$new_full_var
10.34 + done
10.35 +
10.36 + dnl clean up
10.37 + full_var=$new_full_var
10.38 + AC_SUBST([$1], "$full_var")
10.39 +
10.40 + dnl restore prefix and exec_prefix
10.41 + prefix=$prefix_save
10.42 + exec_prefix=$exec_prefix_save
10.43 +])
11.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
11.2 +++ b/gmyth-upnp/m4/as-version.m4 Wed Jan 10 20:35:17 2007 +0000
11.3 @@ -0,0 +1,59 @@
11.4 +dnl version.m4 0.0.5
11.5 +dnl autostars m4 macro for versioning
11.6 +dnl thomas@apestaart.org
11.7 +dnl
11.8 +dnl AS_VERSION(PACKAGE, PREFIX, MAJOR, MINOR, MICRO, NANO, ACTION_IF_NO_NANO, ACTION_IF_NANO)
11.9 +dnl example
11.10 +dnl AS_VERSION(gstreamer, GST_VERSION, 0, 3, 2,)
11.11 +dnl for a 0.3.2 release version
11.12 +dnl
11.13 +dnl this macro
11.14 +dnl - defines [$PREFIX]_MAJOR, MINOR and MICRO
11.15 +dnl - if NANO is empty, then we're in release mode, else in cvs/dev mode
11.16 +dnl - defines [$PREFIX], VERSION, and [$PREFIX]_RELEASE
11.17 +dnl - executes the relevant action
11.18 +dnl - AC_SUBST's PACKAGE, VERSION, [$PREFIX] and [$PREFIX]_RELEASE
11.19 +dnl as well as the little ones
11.20 +dnl - doesn't call AM_INIT_AUTOMAKE anymore because it prevents
11.21 +dnl maintainer mode from running ok
11.22 +dnl
11.23 +dnl don't forget to put #undef [$2] and [$2]_RELEASE in acconfig.h
11.24 +
11.25 +AC_DEFUN([AS_VERSION],
11.26 +[
11.27 + PACKAGE=[$1]
11.28 + [$2]_MAJOR_VERSION=[$3]
11.29 + [$2]_MINOR_VERSION=[$4]
11.30 + [$2]_MICRO_VERSION=[$5]
11.31 + NANO=[$6]
11.32 + [$2]_NANO_VERSION=$NANO
11.33 + if test "x$NANO" = "x" || test "x$NANO" = "x0";
11.34 + then
11.35 + AC_MSG_NOTICE(configuring [$1] for release)
11.36 + VERSION=[$3].[$4].[$5]
11.37 + [$2]_RELEASE=1
11.38 + dnl execute action
11.39 + ifelse([$7], , :, [$7])
11.40 + else
11.41 + AC_MSG_NOTICE(configuring [$1] for development with nano $NANO)
11.42 + VERSION=[$3].[$4].[$5].$NANO
11.43 + [$2]_RELEASE=`date +%Y%m%d_%H%M%S`
11.44 + dnl execute action
11.45 + ifelse([$8], , :, [$8])
11.46 + fi
11.47 +
11.48 + [$2]_VERSION=$VERSION
11.49 + AC_DEFINE_UNQUOTED([$2]_VERSION, "$[$2]_VERSION", [Define the version])
11.50 + AC_SUBST([$2]_VERSION)
11.51 +
11.52 + AC_SUBST([$2]_RELEASE)
11.53 +
11.54 + AC_SUBST([$2]_MAJOR_VERSION)
11.55 + AC_SUBST([$2]_MINOR_VERSION)
11.56 + AC_SUBST([$2]_MICRO_VERSION)
11.57 + AC_SUBST([$2]_NANO_VERSION)
11.58 + AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Define the package name])
11.59 + AC_SUBST(PACKAGE)
11.60 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Define the version])
11.61 + AC_SUBST(VERSION)
11.62 +])
12.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
12.2 +++ b/gmyth-upnp/m4/configure.ac Wed Jan 10 20:35:17 2007 +0000
12.3 @@ -0,0 +1,234 @@
12.4 +# -*- Autoconf -*-
12.5 +# Process this file with autoconf to produce a configure script.
12.6 +
12.7 +AC_PREREQ(2.50)
12.8 +
12.9 +AC_INIT([gmyth],[0.1])
12.10 +
12.11 +dnl AC_CONFIG_SRCDIR([src/mmyth_main.c])
12.12 +AC_CONFIG_HEADER(config.h)
12.13 +
12.14 +dnl when going to/from release please set the nano (fourth number) right !
12.15 +dnl releases only do Wall, SVN and prerelease does Werror too
12.16 +AS_VERSION(gmyth, GMYTH, 0, 1, 0, 3, GMYTH_SVN="no", GMYTH_SVN="yes")
12.17 +
12.18 +GMYTH_MAJORMINOR=$GMYTH_MAJOR_VERSION.$GMYTH_MINOR_VERSION
12.19 +
12.20 +AC_SUBST(GMYTH_MAJORMINOR)
12.21 +
12.22 +dnl AM_MAINTAINER_MODE provides the option to enable maintainer mode
12.23 +AM_MAINTAINER_MODE
12.24 +dnl make aclocal work in maintainer mode
12.25 +AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
12.26 +
12.27 +# Checks for programs.
12.28 +# check for tools
12.29 +# Make sure CFLAGS is defined to stop AC_PROC_CC adding -g
12.30 +CFLAGS="$CFLAGS -Wall"
12.31 +AC_PROG_CC
12.32 +AC_PROG_LIBTOOL
12.33 +
12.34 +dnl Generate doxygen documentation
12.35 +DX_HTML_FEATURE(ON)
12.36 +DX_CHM_FEATURE(OFF)
12.37 +DX_CHI_FEATURE(OFF)
12.38 +DX_MAN_FEATURE(OFF)
12.39 +DX_RTF_FEATURE(OFF)
12.40 +DX_XML_FEATURE(OFF)
12.41 +DX_PDF_FEATURE(OFF)
12.42 +DX_PS_FEATURE(OFF)
12.43 +DX_INIT_DOXYGEN(gmyth, doxygen.cfg, docs)
12.44 +
12.45 +
12.46 +# Checks for libraries.
12.47 +
12.48 +# Checks for header files.
12.49 +AC_HEADER_STDC
12.50 +AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h])
12.51 +
12.52 +# Checks for typedefs, structures, and compiler characteristics.
12.53 +AC_C_CONST
12.54 +AC_TYPE_PID_T
12.55 +AC_STRUCT_TM
12.56 +
12.57 +# Checks for library functions.
12.58 +AC_FUNC_FORK
12.59 +AC_PROG_GCC_TRADITIONAL
12.60 +AC_FUNC_MALLOC
12.61 +AC_FUNC_MKTIME
12.62 +AC_FUNC_VPRINTF
12.63 +AC_CHECK_FUNCS([memset socket stime strstr strtoul])
12.64 +
12.65 +AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
12.66 +
12.67 +# Checks required packages
12.68 +
12.69 +dnl Test if --disable-debug given
12.70 +AC_ARG_ENABLE(debug,
12.71 + [AC_HELP_STRING([--disable-debug], [disable debugging mode])],
12.72 + enable_debug="$enableval",
12.73 + enable_debug=yes)
12.74 +
12.75 +if test "x$enable_debug" = "xyes" ; then
12.76 + CFLAGS="$CFLAGS -g"
12.77 +else
12.78 + AC_DEFINE( NDEBUG, 1, [disable debug messages] )
12.79 + CFLAGS="$CFLAGS -O2 -DG_DISABLE_CHECKS -DNDEBUG"
12.80 +fi
12.81 +
12.82 +AM_CONDITIONAL( NDEBUG, test "x$enable_debug" = "xyes" )
12.83 +
12.84 +# Check for pkgconfig
12.85 +AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
12.86 +# Give error and exit if we don't have pkgconfig
12.87 +if test "x$HAVE_PKGCONFIG" = "xno"; then
12.88 + AC_MSG_ERROR(you need to have pkgconfig installed !)
12.89 +fi
12.90 +
12.91 +# Check for Glib2.0
12.92 +PKG_CHECK_MODULES(GLIB, glib-2.0, HAVE_GLIB=yes,HAVE_GLIB=no)
12.93 +
12.94 +# Give error and exit if we don't have glib
12.95 +if test "x$HAVE_GLIB" = "xno"; then
12.96 + AC_MSG_ERROR(you need glib-2.0 installed)
12.97 +fi
12.98 +
12.99 +# make GLIB_CFLAGS and GLIB_LIBS available
12.100 +AC_SUBST(GLIB_CFLAGS)
12.101 +AC_SUBST(GLIB_LIBS)
12.102 +
12.103 +# Check for GObject2.0
12.104 +PKG_CHECK_MODULES(GOBJECT,
12.105 + gobject-2.0,
12.106 + HAVE_GOBJECT=yes, HAVE_GOBJECT=no)
12.107 +
12.108 +# Give error and exit if we don't have gobject
12.109 +if test "x$HAVE_GOBJECT" = "xno"; then
12.110 + AC_MSG_ERROR(you need gobject-2.0 installed)
12.111 +fi
12.112 +
12.113 +# make GOBJECT_CFLAGS and GOBJECT_LIBS available
12.114 +AC_SUBST(GOBJECT_CFLAGS)
12.115 +AC_SUBST(GOBJECT_LIBS)
12.116 +
12.117 +# Check for GTK+-2.0
12.118 +PKG_CHECK_MODULES(GTK, gtk+-2.0, HAVE_GTK=yes,HAVE_GTK=no)
12.119 +
12.120 +# Give error and exit if we don't have gtk
12.121 +if test "x$HAVE_GTK" = "xyes"; then
12.122 + AC_DEFINE(WITH_GTK, 1, [build with GTK+ related stuff])
12.123 + dnl AC_MSG_ERROR(you need gtk+-2.0 installed)
12.124 +else
12.125 + AC_MSG_RESULT(no)
12.126 +fi
12.127 +
12.128 +AM_CONDITIONAL(WITH_GTK, test "x$HAVE_GTK" = "xyes" )
12.129 +
12.130 +# make GTK_CFLAGS and GTK_LIBS available
12.131 +AC_SUBST(GTK_CFLAGS)
12.132 +AC_SUBST(GTK_LIBS)
12.133 +
12.134 +dnl ========== Check for Hildon Libraries
12.135 +PKG_CHECK_MODULES(HILDON,
12.136 + hildon-lgpl libosso hildon-status-bar-lib libhildonmenu hildon-base-lib hildon-control-panel hildon-libs,
12.137 + HAVE_HILDON=yes, HAVE_HILDON=no)
12.138 +
12.139 +if test "x$HAVE_HILDON" = "xyes"; then
12.140 + AC_DEFINE(MAEMO_PLATFORM, 1, [build with hildon libs])
12.141 + HILDON_CFLAGS="$HILDON_CFLAGS -DMAEMO_PLATFORM=1"
12.142 +else
12.143 + AC_MSG_RESULT(no)
12.144 +fi
12.145 +
12.146 +AM_CONDITIONAL(MAEMO_PLATFORM, test "x$HAVE_HILDON" = "xyes")
12.147 +
12.148 +dnl make HILDON_CFLAGS and HILDON_LIBS available
12.149 +AC_SUBST(HILDON_CFLAGS)
12.150 +AC_SUBST(HILDON_LIBS)
12.151 +
12.152 +# Check for libxml-2.0
12.153 +PKG_CHECK_MODULES(LIBXML, libxml-2.0, HAVE_LIBXML=yes,HAVE_LIBXML=no)
12.154 +
12.155 +# Give error and exit if we don't have libxml
12.156 +if test "x$HAVE_LIBXML" = "xno"; then
12.157 + AC_MSG_ERROR(you need libxml-2.0 installed)
12.158 +fi
12.159 +
12.160 +# make LIBXML_CFLAGS and LIBXML_LIBS available
12.161 +AC_SUBST(LIBXML_CFLAGS)
12.162 +AC_SUBST(LIBXML_LIBS)
12.163 +
12.164 +
12.165 +# check for gstreamer development files
12.166 +GST_REQUIRED=0.10
12.167 +GST_MAJORMINOR=0.10
12.168 +PKG_CHECK_MODULES(GST, \
12.169 + gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED,
12.170 + HAVE_GST=yes, HAVE_GST=no)
12.171 +
12.172 +# Give error and exit if we don't have gstreamer
12.173 +if test "x$HAVE_GST" = "xno"; then
12.174 + AC_MSG_ERROR(you need gstreamer development packages installed !)
12.175 +fi
12.176 +
12.177 +# make GST_CFLAGS and GST_LIBS available
12.178 +AC_SUBST(GST_CFLAGS)
12.179 +AC_SUBST(GST_LIBS)
12.180 +
12.181 +# check for gstreamer-base plugins (xoverlay interface)
12.182 +GSTBASE_REQUIRED=0.10
12.183 +GSTBASE_MAJORMINOR=0.10
12.184 +PKG_CHECK_MODULES(GSTBASE, \
12.185 + gstreamer-base-$GSTBASE_MAJORMINOR >= $GSTBASE_REQUIRED,
12.186 + HAVE_GSTBASE=yes, HAVE_GSTBASE=no)
12.187 +
12.188 +# Give error and exit if we don't have gstreamer base libraries
12.189 +if test "x$HAVE_GSTBASE" = "xno"; then
12.190 + AC_MSG_ERROR(you need gstreamer base development packages installed !)
12.191 +fi
12.192 +
12.193 +# make GSTBASE_CFLAGS and GSTBASE_LIBS available
12.194 +AC_SUBST(GSTBASE_CFLAGS)
12.195 +AC_SUBST(GSTBASE_LIBS)
12.196 +
12.197 +
12.198 +# make GST_MAJORMINOR available in Makefile.am
12.199 +AC_SUBST(GST_MAJORMINOR)
12.200 +
12.201 +#
12.202 +# mysql libraries
12.203 +#
12.204 +AC_CHECK_PROG(MYSQL_CFLAGS,mysql_config,`mysql_config --cflags`)
12.205 +if test -z "$MYSQL_CFLAGS"; then
12.206 + AC_MSG_ERROR([Could not find mysql_config script. Make sure the mysql client libraries are installed])
12.207 +fi
12.208 +AC_SUBST(MYSQL_CFLAGS)
12.209 +
12.210 +
12.211 +AC_CHECK_PROG(MYSQL_LIBS,mysql_config,`mysql_config --libs`)
12.212 +if test -z "$MYSQL_LIBS"; then
12.213 + AC_MSG_ERROR([Could not find mysql_config script. Make sure the mysql client libraries are installed])
12.214 +fi
12.215 +AC_SUBST(MYSQL_LIBS)
12.216 +
12.217 +## Check for gmyth-0.1
12.218 +
12.219 +PKG_CHECK_MODULES(LIBGMYTH, gmyth-0.1, HAVE_LIBGMYTH=yes,HAVE_LIBGMYTH=no)
12.220 +
12.221 +# Give error and exit if we don't have gmyth-0.1
12.222 +if test "x$HAVE_LIBGMYTH" = "xno"; then
12.223 + AC_MSG_ERROR(you need gmyth-0.1 installed)
12.224 +fi
12.225 +
12.226 +# make LIBXML_CFLAGS and LIBXML_LIBS available
12.227 +AC_SUBST(LIBGMYTH_CFLAGS)
12.228 +AC_SUBST(LIBGMYTH_LIBS)
12.229 +
12.230 +#dnl Enable gtk-doc
12.231 +#GTK_DOC_CHECK(1.4)
12.232 +
12.233 +
12.234 +AC_CONFIG_FILES([Makefile
12.235 + src/Makefile
12.236 + pixmaps/Makefile])
12.237 +AC_OUTPUT