On Thu, 2007-08-30 at 14:16 -0600, Charlie Savage wrote:

> Hi Mark,
> 
> Gah - I just checked in those changes so I broke your build.  Sorry 
> about that.  Want to upgrade mingw :)
> 
> Seems like an autoconf test is the way to go then.
> 
> Charlie


Hi Charlie,

Here's an experimental patch for this. It seems to work for me under
Linux when gettimeofday() is present, but I haven't had a chance to
check in a proper MingW environment. Hopefully this should not affect
your MingW build when applied - as before you'll need to re-run
autogen.sh.


ATB,

Mark.

-- 
ILande - Open Source Consultancy
http://www.ilande.co.uk

*** configure.in.patch	2007-08-31 07:05:41.000000000 +0100
--- configure.in	2007-08-31 07:08:15.000000000 +0100
***************
*** 55,61 ****
  AC_CHECK_HEADERS(unistd.h)
  AC_CHECK_HEADERS(ieeefp.h)
  AC_CHECK_HEADERS(sys/file.h)
! AC_CHECK_FUNCS(strchr memcpy)
  AC_HEADER_STAT
  AC_STRUCT_TM
  AC_TYPE_SIZE_T
--- 55,62 ----
  AC_CHECK_HEADERS(unistd.h)
  AC_CHECK_HEADERS(ieeefp.h)
  AC_CHECK_HEADERS(sys/file.h)
! AC_CHECK_HEADERS(sys/time.h)
! AC_CHECK_FUNCS(strchr memcpy gettimeofday)
  AC_HEADER_STAT
  AC_STRUCT_TM
  AC_TYPE_SIZE_T
*** source/headers/geos/profiler.h.orig	2007-08-31 07:47:30.000000000 +0100
--- source/headers/geos/profiler.h	2007-08-31 07:47:23.000000000 +0100
***************
*** 16,22 ****
  #ifndef GEOS_PROFILER_H
  #define GEOS_PROFILER_H
  
! #ifdef _MSC_VER
  #include <geos/timeval.h>
  #else
  #include <sys/time.h>
--- 16,25 ----
  #ifndef GEOS_PROFILER_H
  #define GEOS_PROFILER_H
  
! /* Allow us to check for presence of gettimeofday in MingW */ 
! #include <config.h>
! 
! #if defined(_MSC_VER) || defined(__MINGW32__) && !defined(HAVE_GETTIMEOFDAY)
  #include <geos/timeval.h>
  #else
  #include <sys/time.h>
_______________________________________________
geos-devel mailing list
geos-devel@geos.refractions.net
http://geos.refractions.net/mailman/listinfo/geos-devel

Reply via email to