Hi Akash,

> I am using Arch linux, cross-compiling with mingw-w64-gcc 7.1.1.
> ...
> Apparently the logic breaks when cross-compiling. I have 1 here.
>      configure:24258: checking whether gettimeofday clobbers localtime 
> buffer
>      configure:24307: result: guessing yes

Indeed; this explains it.

Cross-compilation to native Windows was not really tested so far.

> Maybe add more cases to m4/gettimeofday.m4 for 'action when
> cross-compiling'?

Yes, this is the required fix. I'll go through all ca. 280 cross-compilation
guesses that we have in m4/* and update them for native Windows...

As a workaround, in the mean time, please set the environment variables
  gl_cv_func_gettimeofday_clobber=no
  gl_cv_func_tzset_clobber=no
when running configure.

Bruno


Reply via email to