> -----Original Message-----
> From: Caolan McNamara [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 07, 2000 9:21 AM
> To: [EMAIL PROTECTED]
> Subject: Re: AC_C_BIGENDIAN add a default if failed parameter
> 
> 
> On Thu, 7 Sep 2000, Guido Draheim wrote:
> > This case of [AC_C_BIGENDIAN failure] would enforce the 
> autoconf'ed package 
> > installer to go without autoconf'ed configure, whereas that 
> is the case 
> > we have now for *everyone* trying to cross-compile packages 
> containing 
> > AC_C_BIGENDIAN.
> > 
> 
> Mind you just additionally
> a) adding a default case to AC_C_BIGENDIAN would fix the 
> problem entirely
> for what I use it for, i.e when on little endian platforms 
> then seeing as
> the data I deal with it always little endian I can do some speedups, 
> otherwise If I don't know what the endianess or if its 
> bigendian it makes
> no difference to me so my own cloned bigeendian test just 
> provides a default
> all the way down to the cross compile test inside the 
> endianess test and Im 
> happy
> 
> b) making the ability to set the endianness from the 
> commandline options of
> the configure script would allow cross-compiling to continue, 
> just feed the
> commandline argument as a paramater into AC_C_BIGENDIAN, 
> though perhaps 
> there are already far too many options, but endianness always crops
> up with autoconf
> 

BTW, having such an automatic default option shoudl be nice for almost all
tests; I know I can just "ac_c_bigendian=yes ./configure" but I never knows
the name of the config.cache variables, so "./configure --set-bigendian=yes"
coudl do the same.

Anyway in both cases what would *really* be needed is when a test like that
fails would be to add a disgnostic line like "If you know the answer, just
rerun configure witn option '--set-bigendian=yes'" or "... by typing
'ac_c_bigendian=yes ./configure'".

This should not be too hard to do (disclaimer: I'm *not* an M4 programmer)
and will make the life of cross-compiler-based installers a lot easier :-)

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:    +33 (0) 1 47 68 80 80
Fax:    +33 (0) 1 47 88 97 85
e-mail: [EMAIL PROTECTED]
                [EMAIL PROTECTED]
-------------------------------------------- 

Reply via email to