~serge-hallyn/ubuntu/raring/libvirt/libvirt-hugepages

« back to all changes in this revision

Viewing changes to gnulib/m4/gettimeofday.m4

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-07-11 12:37:49 UTC
  • mfrom: (1.2.14)
  • Revision ID: package-import@ubuntu.com-20120711123749-gt314clvb7840c6p
Tags: 0.9.13-0ubuntu1
* New upstream version: 
* debian/rules: Remove .la files
* debian/control: Dropped debian vcs info.
* Dropped:
  - debian/paches/9022-pass-the-virt-driver-name-into-security-drivers:
    Already applied upstream.
  - debian/patches/9023-dont-enable-apparmor-driver-with-lxc
    Already applied upstream.
  - debian/patches/9024-initialize-random-generator-in-lxc:
    Already applied upstream.
* Re-diffed:
  - debian/patches/9002-better_default_uri_virsh.patch
* Added:
  - debian/patches/add-libvirt-highbank-support.patch: Add highbank 
    CPU detection support.
  - debian/patches/fix-lxc-container-unmounting.patch: Fix container
    mounting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# serial 18
 
1
# serial 20
2
2
 
3
3
# Copyright (C) 2001-2003, 2005, 2007, 2009-2012 Free Software Foundation, Inc.
4
4
# This file is free software; the Free Software Foundation
56
56
    fi
57
57
    m4_ifdef([gl_FUNC_TZSET_CLOBBER], [
58
58
      gl_FUNC_TZSET_CLOBBER
59
 
      if test $gl_cv_func_tzset_clobber = yes; then
60
 
        REPLACE_GETTIMEOFDAY=1
61
 
        gl_GETTIMEOFDAY_REPLACE_LOCALTIME
62
 
        AC_DEFINE([tzset], [rpl_tzset],
63
 
          [Define to rpl_tzset if the wrapper function should be used.])
64
 
        AC_DEFINE([TZSET_CLOBBERS_LOCALTIME], [1],
65
 
          [Define if tzset clobbers localtime's static buffer.])
66
 
      fi
 
59
      case "$gl_cv_func_tzset_clobber" in
 
60
        *yes)
 
61
          REPLACE_GETTIMEOFDAY=1
 
62
          gl_GETTIMEOFDAY_REPLACE_LOCALTIME
 
63
          AC_DEFINE([tzset], [rpl_tzset],
 
64
            [Define to rpl_tzset if the wrapper function should be used.])
 
65
          AC_DEFINE([TZSET_CLOBBERS_LOCALTIME], [1],
 
66
            [Define if tzset clobbers localtime's static buffer.])
 
67
          ;;
 
68
      esac
67
69
    ])
68
70
  fi
69
71
  AC_DEFINE_UNQUOTED([GETTIMEOFDAY_TIMEZONE], [$gl_gettimeofday_timezone],
82
84
AC_DEFUN([gl_FUNC_GETTIMEOFDAY_CLOBBER],
83
85
[
84
86
 AC_REQUIRE([gl_HEADER_SYS_TIME_H])
 
87
 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
85
88
 
86
89
 AC_CACHE_CHECK([whether gettimeofday clobbers localtime buffer],
87
90
  [gl_cv_func_gettimeofday_clobber],
104
107
        ]])],
105
108
     [gl_cv_func_gettimeofday_clobber=no],
106
109
     [gl_cv_func_gettimeofday_clobber=yes],
107
 
     dnl When crosscompiling, assume it is broken.
108
 
     [gl_cv_func_gettimeofday_clobber=yes])])
 
110
     [# When cross-compiling:
 
111
      case "$host_os" in
 
112
                # Guess all is fine on glibc systems.
 
113
        *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
 
114
                # If we don't know, assume the worst.
 
115
        *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
 
116
      esac
 
117
     ])])
109
118
 
110
 
 if test $gl_cv_func_gettimeofday_clobber = yes; then
111
 
   REPLACE_GETTIMEOFDAY=1
112
 
   gl_GETTIMEOFDAY_REPLACE_LOCALTIME
113
 
   AC_DEFINE([GETTIMEOFDAY_CLOBBERS_LOCALTIME], [1],
114
 
     [Define if gettimeofday clobbers the localtime buffer.])
115
 
 fi
 
119
 case "$gl_cv_func_gettimeofday_clobber" in
 
120
   *yes)
 
121
     REPLACE_GETTIMEOFDAY=1
 
122
     gl_GETTIMEOFDAY_REPLACE_LOCALTIME
 
123
     AC_DEFINE([GETTIMEOFDAY_CLOBBERS_LOCALTIME], [1],
 
124
       [Define if gettimeofday clobbers the localtime buffer.])
 
125
     ;;
 
126
 esac
116
127
])
117
128
 
118
129
AC_DEFUN([gl_GETTIMEOFDAY_REPLACE_LOCALTIME], [