Re: memcmp and cross-compilation

2008-05-21 Thread Simon Josefsson
Jim Meyering <[EMAIL PROTECTED]> writes: > Simon Josefsson <[EMAIL PROTECTED]> wrote: > MinGW apparently needs gnulib's memcmp module That was rather surprising to me, so I started investigating why that is the case. >>> >>> The reason was that Autoconf's AC_FUNC_MEMCMP uses AC_

Re: memcmp and cross-compilation

2008-05-21 Thread Jim Meyering
Simon Josefsson <[EMAIL PROTECTED]> wrote: MinGW apparently needs gnulib's memcmp module >>> >>> That was rather surprising to me, so I started investigating why that is >>> the case. >> >> The reason was that Autoconf's AC_FUNC_MEMCMP uses AC_RUN_IFELSE with a >> cross-compile default of no.

Re: memcmp and cross-compilation

2008-05-20 Thread Bruno Haible
Simon Josefsson wrote: > The patch below works in the sense that, for cross-compilations only, it > will assume that memcmp works when it is declared. This works better > for MinGW. This is good. It's the usual approach we take for cross-compiles in gnulib: Put in the known cases into the autocon

Re: memcmp and cross-compilation

2008-05-20 Thread Simon Josefsson
Simon Josefsson <[EMAIL PROTECTED]> writes: > Simon Josefsson <[EMAIL PROTECTED]> writes: > >> Simon Josefsson <[EMAIL PROTECTED]> writes: >> >>> MinGW apparently needs gnulib's memcmp module >> >> That was rather surprising to me, so I started investigating why that is >> the case. > > The reason

memcmp and cross-compilation (was: Re: memcmp-tests module)

2008-05-20 Thread Simon Josefsson
Simon Josefsson <[EMAIL PROTECTED]> writes: > Simon Josefsson <[EMAIL PROTECTED]> writes: > >> MinGW apparently needs gnulib's memcmp module > > That was rather surprising to me, so I started investigating why that is > the case. The reason was that Autoconf's AC_FUNC_MEMCMP uses AC_RUN_IFELSE wi