On Sun, 2003-10-26 at 13:54, Austin wrote: > On Sun, 2003-10-26 at 15:59, [EMAIL PROTECTED] wrote: > > But why do you need it? A program probably already uses this in > > configure if it matters? > > Stupid package. It asks you to define it manually in the makefile. > Makes it tricky for rpm builders... > > Thanks Danny, > Austin > --
I don't know of any way to do it bash, either. But, if you know that Perl is installed (via other dependencies, or whatever), you could run a little Perl script from bash to tell you which endian is in use. E.g., endian=`perl -e 'if (unpack("V", pack "L", 0x1234) == 0x1234) {print "l";}else{print "b";}'` will assign either 'l' or 'b' to $endian. -Bill