[ expat-Patches-431342 ] Fix cross compile.

noreply@sourceforge.net noreply@sourceforge.net
Tue, 24 Jul 2001 14:09:29 -0700


Patches item #431342, was opened at 2001-06-08 01:26
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=310127&aid=431342&group_id=10127

Category: Build Control
Group: None
Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Mo DeJong (mdejong)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Fix cross compile.

Initial Comment:
Here is a patch to fix cross compiling of
expat. The problem is the AC_C_BIGENDIAN
macro. Instead of using AC_C_BIGENDIAN,
the AC_C_BIGENDIAN_CROSS macro from the
autoconf archive should be used. I am
going to attach the macro file here. Note
that you can also obtain this same file
from:

http://cryp.to/autoconf-archive/Cross_Compilation/ac_c_bigendian_cross.html

Also, I am not claiming this is the perfect
way to add .m4 files to aclocal.m4. I tried
to make it work like your existing buildconf.sh.
Note that the macro file should live in:

conftools/ac_c_bigendian_cross.m4

----------------------------------------------------------------------

>Comment By: Mo DeJong (mdejong)
Date: 2001-07-24 14:09

Message:
Logged In: YES 
user_id=90858

I just tested it out and it seems to be working
just fine.

Thanks
Mo

----------------------------------------------------------------------

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-07-24 12:55

Message:
Logged In: YES 
user_id=3066

Checked in as buildconf.sh revision 1.2 and configure.in revision 1.16.  I'm not able to test in a cross-compilation environment, but this doesn't break my x86 build.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=310127&aid=431342&group_id=10127