-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

the Gentoo automake wrapper scripts are quite nice...

basically you can set WANT_AUTOMAKE  to the version you want and it works
everything else out for you... this has no effect unless your system knows to
set WANT_AUTOMAKE.

or it looks to see if it can figure it out from Makefile.in, or the aclocal.m4

i will put the head of the wrapper script from my machine onto the tail of this
email, as they say it more clearly!

        HTH

        Joe



#!/bin/bash
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
/var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/files/am-wrapper-3.sh,v 1.3
2006/11/05 10:22:00 vapier Exp $

# Based on the am-wrapper.pl script provided by MandrakeSoft
# Rewritten in bash by Gregorio Guidi
#
# Executes the correct automake version.
#
# - defaults to newest version available (hopefully automake-1.10)
# - runs automake-1.9 if:
#   - envvar WANT_AUTOMAKE is set to `1.9'
#     -or-
#   - `Makefile.in' was generated by automake-1.9
#     -or-
#   - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.9
# - runs automake-1.8 if:
#   - envvar WANT_AUTOMAKE is set to `1.8'
#     -or-
#   - `Makefile.in' was generated by automake-1.8
#     -or-
#   - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.8
# - runs automake-1.7 if:
#   - envvar WANT_AUTOMAKE is set to `1.7'
#     -or-
#   - `Makefile.in' was generated by automake-1.7
#     -or-
#   - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.7
# - runs automake-1.6 if:
#   - envvar WANT_AUTOMAKE is set to `1.6'
#     -or-
#   - `Makefile.in'
#     -or-
#   - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.6
# - runs automake-1.5 if:
#   - envvar WANT_AUTOMAKE is set to `1.5'
#     -or-
#   - `Makefile.in' was generated by automake-1.5
#     -or-
#   - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.5
# - runs automake-1.4 if:
#   - envvar WANT_AUTOMAKE is set to `1.4'
#     -or-
#   - `Makefile.in' was generated by automake-1.4
#     -or-
#   - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.4


Pavel Sanda wrote:
>> The policy is to only allow autotools versions which are known to work.
>> Seems that nobody has tried automake 1.10 so far.
> 
> FYI: i have tried it now with 1.10 and the whole compilation proceeds 
> without problem.
> (gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3))
> 
> however, autotools throw these warnings:
> acinclude.m4:721: the serial number must appear before any macro definition
> /usr/share/aclocal/pth.m4:43: warning: underquoted definition of _AC_PTH_ERROR
> /usr/share/aclocal/pth.m4:43:   run info '(automake)Extending aclocal'
> /usr/share/aclocal/pth.m4:43:   or see 
> http://sources.redhat.com/automake/automake.html#Extending-aclocal
> 
> 
> after compilation it gives the following error:
>  $ ./lyx
> terminate called after throwing an instance of 'std::logic_error'
> what():  basic_string::_S_construct NULL not valid
> Aborted
> 
> but this is likely the result of something else because
> running with automake-1.9 it gives similar:
> 
> /usr/share/aclocal/pth.m4:43: warning: underquoted definition of _AC_PTH_ERROR
> run info '(automake)Extending aclocal'
> or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
> /usr/share/aclocal/pth.m4:55: warning: underquoted definition of 
> _AC_PTH_VERBOSE
> /usr/share/aclocal/pth.m4:61: warning: underquoted definition of AC_CHECK_PTH
> /usr/share/aclocal/gsl.m4:5: warning: underquoted definition of AM_PATH_GSL
>     
> ....
>  $ ./lyx
> terminate called after throwing an instance of 'std::logic_error'
> what():  basic_string::_S_construct NULL not valid
> Aborted
> 
> 
> pavel
> 


- --
- ---------------------------------------------------------------------
tel :-                       office 474-1157
email:- [EMAIL PROTECTED]  [EMAIL PROTECTED]  [EMAIL PROTECTED]
affiliation :-        ASF.... AVO.... GI.... UAF.....
                         106 A1 WRRB. Fairbanks, AK
- ---------------------------------------------------------------------
There are 10 types of people in the world, those who understand binary
                       and those that do not.
        Never trust a man who can count to 1023 on his fingers


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF0r6DQxP6ubLbR2kRApWiAJ9H1b3VAlRrk1SwLqiHD1/fV6hPFACgunBW
GwfJfBOc2PTcRyryavzZtHo=
=dpKR
-----END PGP SIGNATURE-----

Reply via email to