~ubuntu-branches/ubuntu/hardy/prelude-manager/hardy

« back to all changes in this revision

Viewing changes to libmissing/m4/time_r.m4

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Chifflier
  • Date: 2007-03-22 18:09:27 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070322180927-tzvkkuk7yc5m0s9d
Tags: 0.9.7.2-2
* Fix permissions on configuration file (make sure it is not world-readable)
* Update my email address

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl Reentrant time functions like localtime_r.
2
2
 
3
 
dnl Copyright (C) 2003, 2006 Free Software Foundation, Inc.
 
3
dnl Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc.
4
4
dnl This file is free software; the Free Software Foundation
5
5
dnl gives unlimited permission to copy and/or distribute it,
6
6
dnl with or without modifications, as long as this notice is preserved.
9
9
 
10
10
AC_DEFUN([gl_TIME_R],
11
11
[
 
12
 dnl Persuade glibc and Solaris <time.h> to declare localtime_r.
12
13
  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
 
14
 
 
15
  AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS])
13
16
  AC_REQUIRE([AC_C_RESTRICT])
14
17
 
15
18
  AC_CACHE_CHECK([whether localtime_r is compatible with its POSIX signature],
24
27
       [gl_cv_time_r_posix=yes],
25
28
       [gl_cv_time_r_posix=no])])
26
29
  if test $gl_cv_time_r_posix = yes; then
27
 
    AC_DEFINE([HAVE_TIME_R_POSIX], 1,
28
 
      [Define to 1 if localtime_r, etc. have the type signatures that
29
 
       POSIX requires.])
 
30
    REPLACE_LOCALTIME_R=0
30
31
  else
 
32
    REPLACE_LOCALTIME_R=1
31
33
    AC_LIBOBJ([time_r])
32
34
    gl_PREREQ_TIME_R
33
35
  fi