Re: [patch 12/15] add autogen script for libffi

ktreichel-S0/[email protected] Sun, 18 Feb 2007 14:43:11 +0100
Newsgroups gmane.comp.gnu.dotgnu.developer
Organization http://freemail.web.de/
Message-ID <[email protected]>
> -----Urspr=FCngliche Nachricht-----
> Von: "Aleksey Demakov" <[email protected]>
> Gesendet: 18.02.07 12:27:09
> An: "[email protected]" <[email protected]>
> CC: [email protected]
> Betreff: Re: [DotGNU] [patch 12/15] add autogen script for libffi


> 2007/2/12, [email protected] <[email protected]>:
> > This patch adds an autogen.sh script for libffi. As this patch should
> > probably go upstream but pnet doesn't survive 'make distcheck' without=

> > it, I sugest that we apply it anyway, but put it into a
> > "patches-for-upstream" (invent a better name, please) directory.
>=20
>=20
> As far as I know gcc tree does not include autogen.sh scripts.
> So perhaps there is no chance to push it upstream. I think that
> in such cases we should minimize the changes we do to a package
> so we will have less work to merge with their newer versions. Then
> perhaps it might make sense to to run libtoolize, etc in the libffi
> dir from within the top level auto=5Fgen.sh=3F What do you think=3F
>=20

The autogen files are never distributed because they are used by the devel=
opers/maintainers only.
So we have to put our own autogen files the the subdirs.

Klaus

> >
> > Signed-off-by: Robert Schwebel <[email protected]>
> >
> >  libffi/autogen.sh |   48 ++++++++++++++++++++++++++++++++++++++++++++=
++++
> >  1 file changed, 48 insertions(+)
> >
> > Index: libffi/autogen.sh
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > --- /dev/null
> > +++ libffi/autogen.sh
> > @@ -0,0 +1,48 @@
> > +#!/bin/bash
> > +
> > +#
> > +# usage:
> > +#
> > +# banner <target name>
> > +#
> > +banner() {
> > +       echo
> > +       TG=3D`echo $1 | sed -e "s,/.*/,,g"`
> > +       LINE=3D`echo $TG |sed -e "s/./-/g"`
> > +       echo $LINE
> > +       echo $TG
> > +       echo $LINE
> > +       echo
> > +}
> > +
> > +
> > +ACLOCAL=3D${ACLOCAL:=3Daclocal}
> > +AUTOHEADER=3D${AUTOHEADER:=3Dautoheader}
> > +AUTOMAKE=3D${AUTOMAKE:=3Dautomake}
> > +AUTOCONF=3D${AUTOCONF:=3Dautoconf}
> > +
> > +#$ACLOCAL --version | \
> > +#   awk -vPROG=3D"aclocal" -vVERS=3D1.7\
> > +#   '{if ($1 =3D=3D PROG) {gsub ("-.*","",$4); if ($4 < VERS) print PROG"=
 < version "VERS"\nThis may result in errors\n"}}'
> > +
> > +#$AUTOMAKE --version | \
> > +#   awk -vPROG=3D"automake" -vVERS=3D1.7\
> > +#   '{if ($1 =3D=3D PROG) {gsub ("-.*","",$4); if ($4 < VERS) print PROG"=
 < version "VERS"\nThis may result in errors\n"}}'
> > +
> > +
> > +banner "running libtoolize"
> > +libtoolize --force --copy || exit
> > +
> > +banner "running aclocal"
> > +$ACLOCAL || exit
> > +
> > +banner "running autoheader"
> > +$AUTOHEADER || exit
> > +
> > +banner "running automake"
> > +$AUTOMAKE --gnu --add-missing --copy -Wall || exit
> > +
> > +banner "running autoconf"
> > +$AUTOCONF -Wall || exit
> > +
> > +banner "Finished"
> >
> > --
> >  Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
> >  Pengutronix - Linux Solutions for Science and Industry
> >    Handelsregister:  Amtsgericht Hildesheim, HRA 2686
> >      Hannoversche Str. 2, 31134 Hildesheim, Germany
> >    Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9
> >
> > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
> > Developers mailing list
> > [email protected]
> > http://dotgnu.org/mailman/listinfo/developers
> >
> =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
> Developers mailing list
> [email protected]
> http://dotgnu.org/mailman/listinfo/developers
>=20


=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/=3Fmc=3D100071&distributionid=3D000000000066