[vorbis-dev] Re: [xiph-cvs] cvs commit: ogg/include/ogg Makefile.am

gtgbr at gmx.net gtgbr at gmx.net
Mon Nov 10 07:40:23 PST 2003



Ralph Giles wrote:
> > I have only automake 1.7.8 installed and the check complains that it
> > can't find 1.6.x and bails out. My previous makes worked fine with 1.7.x
> > ... is it possible to improve this so it works with "or later"?
> 
> I'd like to, but haven't been able to come up with anything spiffy. See
> http://xiph.org/archives/cvs/4078.html Suggestions welcome.

The attached suggestion "works for me". Someone with better regexp
knowledge than me might check whether mine is correct ... at least it
works.

> Can anyone comment on the general backward compatibility of 1.7 with 1.6
> files?

This is just anecdotal, but I haven't had any problems whatsoever ... at
least not with the source code I mess around with most, which happens to
be from Xiph. :)

<p>Moritz



--- autogen.sh.orig	Mon Nov 10 16:19:51 2003
+++ autogen.sh	Mon Nov 10 16:33:06 2003
@@ -21,6 +21,7 @@
 }
 
 VERSIONGREP="sed -e s/.*[^0-9\.]\([0-9]\.[0-9]\).*/\1/"
+VERSIONMKINT="sed -e s/[^0-9]//"
                                                                                 
 # do we need automake?
 if test -r Makefile.am; then
@@ -39,8 +40,9 @@
     echo -n "checking for automake $AM_NEEDED or later... "
     for am in automake-$AM_NEEDED automake$AM_NEEDED automake; do
       ($am --version < /dev/null > /dev/null 2>&1) || continue
-      ver=`$am --version < /dev/null | head -1 | $VERSIONGREP`
-      if test $ver = $AM_NEEDED; then
+      ver=`$am --version < /dev/null | head -1 | $VERSIONGREP | $VERSIONMKINT`
+      verneeded=`echo $AM_NEEDED | $VERSIONMKINT`
+      if test $ver -gt $verneeded; then
         AUTOMAKE=$am
         echo $AUTOMAKE
         break
@@ -50,8 +52,9 @@
     echo -n "checking for aclocal $AM_NEEDED or later... "
     for ac in aclocal-$AM_NEEDED aclocal$AM_NEEDED aclocal; do
       ($ac --version < /dev/null > /dev/null 2>&1) || continue
-      ver=`$ac --version < /dev/null | head -1 | $VERSIONGREP`
-      if test $ver = $AM_NEEDED; then
+      ver=`$ac --version < /dev/null | head -1 | $VERSIONGREP | $VERSIONMKINT`
+      verneeded=`echo $AM_NEEDED | $VERSIONMKINT`
+      if test $ver -gt $verneeded; then
         ACLOCAL=$ac
         echo $ACLOCAL
         break

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list