On Wed, Jul 29, 2009 at 5:16 PM, Chris Packham<judge.pack...@gmail.com> wrote:
> On Thu, Jul 30, 2009 at 9:57 AM, Chris Packham<judge.pack...@gmail.com> wrote:
>> A bit of googling turned up some guideance on how to handle this [1].
>> Looks like there is an optional argument to AC_RUN_IFELSE that can be
>> used for an action-if-cross-compiling. The cache manipulation trick is
>> also mentioned. I'll post a patch shortly.
>
> Turned out to be easy enough after I figured out the autoconf syntax.
>
> The changes are basically to 1) allow the tests that execute code to
> be skipped if cross compiling and 2) turn the libpcap_version into a
> cached variable so that we can tell tcpreplay which version of libpcap
> is used in our target environment.
>
> With my patch applied the typical usage is
>
> autoreconf    # this won't be necessary once my patch is accepted upstream
>
> tr_cv_libpcap_version=">= 0.7.0" \
> ./configure --target=powerpc-linux \
>                --host=powerpc-linux \
>                --build=i386-pc-linux-gnu \
>                --program-prefix="" \
>                --with-libpcap=<path-to-libpcap>
>

What is the output of:

 grep ALIGN src/config.h

I'm curious if FORCE_ALIGN was set (needs to be for PPC builds).

-- 
Aaron Turner
http://synfin.net/
http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
    -- Benjamin Franklin

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcpreplay-users mailing list
Tcpreplay-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

Reply via email to