From: serassio <> Date: Sat, 2 Sep 2006 19:55:56 +0000 (+0000) Subject: Windows port: merge remaining MinGW configure "glue" X-Git-Tag: SQUID_3_0_PRE5~145 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08caf8c693d78525c414a62d7b070386d59516d3;p=thirdparty%2Fsquid.git Windows port: merge remaining MinGW configure "glue" --- diff --git a/configure.in b/configure.in index c56eb5c7eb..0f1a69d48c 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl Configuration input file for Squid dnl -dnl $Id: configure.in,v 1.430 2006/08/20 18:30:28 serassio Exp $ +dnl $Id: configure.in,v 1.431 2006/09/02 13:55:56 serassio Exp $ dnl dnl dnl @@ -11,7 +11,7 @@ AM_CONFIG_HEADER(include/autoconf.h) AC_CONFIG_AUX_DIR(cfgaux) AC_CONFIG_SRCDIR([src/main.cc]) AM_INIT_AUTOMAKE([tar-ustar]) -AC_REVISION($Revision: 1.430 $)dnl +AC_REVISION($Revision: 1.431 $)dnl AC_PREFIX_DEFAULT(/usr/local/squid) AM_MAINTAINER_MODE @@ -2005,13 +2005,23 @@ AC_CHECK_MEMBERS([struct mallinfo.mxfast],,,[ #include #endif]) -AC_CHECK_TYPE(struct rusage,AC_DEFINE(HAVE_STRUCT_RUSAGE,1,[The system provides struct rusage]),,[ +dnl Override rusage() detect on MinGW because is emulated in source code +case "$host_os" in + mingw|mingw32) + AC_DEFINE(HAVE_STRUCT_RUSAGE) + ac_cv_func_getrusage='yes' + echo "Using own rusage." + ;; + *) + AC_CHECK_TYPE(struct rusage,AC_DEFINE(HAVE_STRUCT_RUSAGE,1,[The system provides struct rusage]),,[ #if HAVE_SYS_TIME_H #include #endif #if HAVE_SYS_RESOURCE_H #include #endif]) + ;; +esac AC_CHECK_MEMBERS([struct iphdr.ip_hl],,,[ #if HAVE_SYS_TYPES_H @@ -2281,7 +2291,14 @@ if test $ac_cv_lib_bind_gethostbyname = "no" ; then ;; esac fi -AC_CHECK_LIB(m, main) +case "$host_os" in +mingw|mingw32) + echo "Use MSVCRT for math functions." + ;; + *) + AC_CHECK_LIB(m, main) + ;; +esac dnl Check for libcrypt dnl Some of our helpers use crypt(3) which may be in libc, or in @@ -2489,6 +2506,13 @@ if test -z "$ac_cv_func_poll"; then esac fi +dnl Override statfs() detect on MinGW becasue is emulated in source code +case "$host_os" in +mingw|mingw32) + ac_cv_func_statfs='yes' + ;; +esac + dnl Check for library functions AC_CHECK_FUNCS(\ backtrace_symbols_fd \