[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patches] autoconf AC_PREREQ
- To: "Yann E. MORIN" <yann.morin.1998@xxxxxxxxxxxxxxx>
- Subject: Re: [patches] autoconf AC_PREREQ
- From: "Khem Raj" <raj.khem@xxxxxxxxx>
- Date: Mon, 22 Sep 2008 21:44:09 -0700
Hi Yann,
I think you can run this patch by glibc mailing list as well.
Thanks
-Khem
On Mon, Sep 22, 2008 at 2:46 PM, Yann E. MORIN
<yann.morin.1998@xxxxxxxxxxxxxxx> wrote:
> Hello All!
>
> I'm trying to X-build the eglibc 2_8 branch on my Debian. The target is
> PowerPC 8548 with spe extensions: powerpc-unknown-linux-gnuspe.
>
> The build procedure was copied from the libc/EGLIBC.cross-building and adapted
> to fit in crosstool-NG: http://ymorin.is-a-geek.org/dokuwiki/projects/crosstool
>
> Now to my problem:
>
> There are some configure.in files throughout the eglibc tree that are used to
> generate configure scripts. Those configure.in require autoconf-2.50, but
> plain autoconf is called from the eglibc Makefiles.
>
> Unfortunately, on my Debian, autoconf is a wrapper script that calls either
> autoconf2.13 or autoconf2.50 based on some heuristics (*). Those heuristics
> are caught out here because the files are named configure.in, as per
> autoconf2.13 conventions, but are in fact autoconf2.50 files.
>
> The attached patch solves the issue for the PowerPC build (which is the only
> one I attempted so far), but the problem may arise for other architectures,
> as well as for other PowerPC variants.
>
> What are your opinion on the subject?
>
> Regards,
> Yann E. MORIN.
>
> PS. I'm not subscribed, could you keep me CC:ed, please?
>
> (*) The following heuristics are used to choose an Autoconf version (extract
> from the autoconf man page on my Debian):
> ----8<----
> * If file configure.ac exists, Autoconf 2.50 is used. Autoconf 2.13 used the
> name configure.in instead, but version 2.50 supports both.
> (Usually autoconf is run without nonoption arguments. If a filename is
> supplied on the command line, then version 2.50 is used if the filename
> ends in .ac.)
>
> * Otherwise, configure.in (or the file specified on the command line, if
> any) is read. It is checked for the presence of an AC_PREREQ directive. If
> it specifies a minimum version higher than 2.13, Autoconf 2.50 is used.
> aclocal.m4, if present, is also scanned.
>
> * Otherwise, Autoconf 2.13 is used.
> ----8<----
> YEM.
>
> --
> .-----------------.--------------------.------------------.--------------------.
> | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +0/33 662376056 | Software Designer | \ / CAMPAIGN | ___ |
> | --==< ^_^ >==-- `------------.-------: X AGAINST | \e/ There is no |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
> `------------------------------^-------^------------------^--------------------'
>