~ubuntu-branches/ubuntu/wily/man-db/wily-proposed

« back to all changes in this revision

Viewing changes to gnulib/m4/sys_time_h.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-06-24 11:34:02 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20130624113402-6xdn53l2p9qu8yus
Tags: 2.6.4-1
* New upstream release:
  - Document default section list in manual pages (closes: #611007).
  - Quieten most warnings from compiling Gnulib (closes: #668429).
  - The MANLESS environment variable is now treated as if it were a
    default value for the -r option to man: occurrences of the text
    "$MAN_PN" are expanded, and explicitly using the -r option overrides
    the default (closes: #690831).
* Use 'set -e' rather than '#! /bin/sh -e' in maintainer scripts.
* Remove maintainer script support for direct upgrades from pre-etch
  (three releases before current stable).
* Breaks/Replaces manpages-zh (<< 1.5.2-1.1); man-db now ships zh_CN
  translations formerly included there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Configure a replacement for <sys/time.h>.
2
2
# serial 8
3
3
 
4
 
# Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc.
 
4
# Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
52
52
    dnl (in <sys/time.h> and <winsock2.h> for mingw64, in <winsock2.h> only
53
53
    dnl for MSVC) with a tv_sec field of type 'long' (32-bit!), which is
54
54
    dnl smaller than the 'time_t' type mandated by POSIX.
55
 
    AC_CACHE_CHECK([for correct struct timeval.tv_sec member],
 
55
    dnl On OpenBSD 5.1 amd64, tv_sec is 64 bits and time_t 32 bits, but
 
56
    dnl that is good enough.
 
57
    AC_CACHE_CHECK([for wide-enough struct timeval.tv_sec member],
56
58
      [gl_cv_sys_struct_timeval_tv_sec],
57
59
      [AC_COMPILE_IFELSE(
58
60
         [AC_LANG_PROGRAM(
65
67
              #endif
66
68
            ]],
67
69
            [[static struct timeval x;
68
 
              typedef int verify_tv_sec_type[sizeof (x.tv_sec) == sizeof (time_t) ? 1 : -1];
 
70
              typedef int verify_tv_sec_type[
 
71
                sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
 
72
              ];
69
73
            ]])],
70
74
         [gl_cv_sys_struct_timeval_tv_sec=yes],
71
75
         [gl_cv_sys_struct_timeval_tv_sec=no])