~ubuntu-branches/ubuntu/lucid/man-db/lucid-updates

« back to all changes in this revision

Viewing changes to gnulib/m4/wchar.m4

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-08-26 11:38:46 UTC
  • mfrom: (1.1.9 upstream) (5.2.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090826113846-2702k94p5epik9ht
Tags: 2.5.6-1
* New upstream release:
  - Implement 'man -K', which was the last major remaining missing feature
    when comparing man-db with the man package (closes: #135926, LP:
    #390575).
  - Note that the exact rendering of (e.g.) italic text may vary depending
    on the output device (closes: #516808).
  - Don't create unnecessary database directories (closes: #472919).
  - Explicitly state that -P/$PAGER/$MANPAGER identifies a single command
    with no pipes (closes: #363250).
  - Make whatis/apropos only display any given manual page, or pointers to
    it, once (LP: #27113).
  - Map CP1251 encoding to LESSCHARSET=windows, per less(1) (closes:
    #539690).
  - Loop through semicolon-separated coding tags in the first line of
    manual pages, and convert Emacs coding tags to ones that libiconv
    understands (closes: #496604).
  - Convert text to UTF-8 and then (if necessary) to the target encoding.
    This allows us to distinguish between "text not in input encoding" and
    "characters not representable in output encoding" (closes: #514963).
  - Replace database entries if the mtime of the new data is newer than
    that of the old data, even if the new data represents a symlink rather
    than a regular file (closes: #490582).
  - Increase limit on NAME sections from 2048 bytes to 8192, since some
    pages exceeding the previous limit have been observed in the wild
    (closes: #489907).
  - Cope with some more cases of database corruption (closes: #187750).
  - By default, man will now try to interpret pairs of manual page names
    given on the command line as equivalent to a single manual page name
    containing a hyphen (e.g. 'man foo bar' => foo-bar(1)). This supports
    the common pattern of programs that implement a number of subcommands,
    allowing them to provide manual pages for each that can be accessed
    using similar syntax as would be used to invoke the subcommands
    themselves.
* Upgrade to debhelper v7.
* Reverse the direction of the man and mandb symlinks, and migrate any
  statoverrides referring to the old locations in /usr/lib/man-db/.
* Run cron jobs at idle I/O priority if dpkg 1.15.0 or newer is installed
  (closes: #448400).
* Policy version 3.8.2: no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl A placeholder for ISO C99 <wchar.h>, for platforms that have issues.
2
2
 
3
 
dnl Copyright (C) 2007 Free Software Foundation, Inc.
 
3
dnl Copyright (C) 2007-2009 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.
7
7
 
8
8
dnl Written by Eric Blake.
9
9
 
10
 
# wchar.m4 serial 4
 
10
# wchar.m4 serial 23
11
11
 
12
12
AC_DEFUN([gl_WCHAR_H],
13
13
[
18
18
wchar_t w;]],
19
19
      [gl_cv_header_wchar_h_standalone=yes],
20
20
      [gl_cv_header_wchar_h_standalone=no])])
21
 
  if test $gl_cv_header_wchar_h_standalone != yes; then
 
21
 
 
22
  AC_REQUIRE([gt_TYPE_WINT_T])
 
23
  if test $gt_cv_c_wint_t = yes; then
 
24
    HAVE_WINT_T=1
 
25
  else
 
26
    HAVE_WINT_T=0
 
27
  fi
 
28
  AC_SUBST([HAVE_WINT_T])
 
29
 
 
30
  if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
22
31
    WCHAR_H=wchar.h
23
32
  fi
24
33
 
36
45
  gl_CHECK_NEXT_HEADERS([wchar.h])
37
46
])
38
47
 
 
48
dnl Unconditionally enables the replacement of <wchar.h>.
 
49
AC_DEFUN([gl_REPLACE_WCHAR_H],
 
50
[
 
51
  AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
 
52
  WCHAR_H=wchar.h
 
53
])
 
54
 
39
55
AC_DEFUN([gl_WCHAR_MODULE_INDICATOR],
40
56
[
41
57
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
45
61
 
46
62
AC_DEFUN([gl_WCHAR_H_DEFAULTS],
47
63
[
48
 
  GNULIB_WCWIDTH=0; AC_SUBST([GNULIB_WCWIDTH])
 
64
  GNULIB_BTOWC=0;      AC_SUBST([GNULIB_BTOWC])
 
65
  GNULIB_WCTOB=0;      AC_SUBST([GNULIB_WCTOB])
 
66
  GNULIB_MBSINIT=0;    AC_SUBST([GNULIB_MBSINIT])
 
67
  GNULIB_MBRTOWC=0;    AC_SUBST([GNULIB_MBRTOWC])
 
68
  GNULIB_MBRLEN=0;     AC_SUBST([GNULIB_MBRLEN])
 
69
  GNULIB_MBSRTOWCS=0;  AC_SUBST([GNULIB_MBSRTOWCS])
 
70
  GNULIB_MBSNRTOWCS=0; AC_SUBST([GNULIB_MBSNRTOWCS])
 
71
  GNULIB_WCRTOMB=0;    AC_SUBST([GNULIB_WCRTOMB])
 
72
  GNULIB_WCSRTOMBS=0;  AC_SUBST([GNULIB_WCSRTOMBS])
 
73
  GNULIB_WCSNRTOMBS=0; AC_SUBST([GNULIB_WCSNRTOMBS])
 
74
  GNULIB_WCWIDTH=0;    AC_SUBST([GNULIB_WCWIDTH])
49
75
  dnl Assume proper GNU behavior unless another module says otherwise.
50
 
  HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH])
51
 
  REPLACE_WCWIDTH=0;   AC_SUBST([REPLACE_WCWIDTH])
52
 
  WCHAR_H=
53
 
  AC_SUBST([WCHAR_H])
 
76
  HAVE_BTOWC=1;         AC_SUBST([HAVE_BTOWC])
 
77
  HAVE_MBSINIT=1;       AC_SUBST([HAVE_MBSINIT])
 
78
  HAVE_MBRTOWC=1;       AC_SUBST([HAVE_MBRTOWC])
 
79
  HAVE_MBRLEN=1;        AC_SUBST([HAVE_MBRLEN])
 
80
  HAVE_MBSRTOWCS=1;     AC_SUBST([HAVE_MBSRTOWCS])
 
81
  HAVE_MBSNRTOWCS=1;    AC_SUBST([HAVE_MBSNRTOWCS])
 
82
  HAVE_WCRTOMB=1;       AC_SUBST([HAVE_WCRTOMB])
 
83
  HAVE_WCSRTOMBS=1;     AC_SUBST([HAVE_WCSRTOMBS])
 
84
  HAVE_WCSNRTOMBS=1;    AC_SUBST([HAVE_WCSNRTOMBS])
 
85
  HAVE_DECL_WCTOB=1;    AC_SUBST([HAVE_DECL_WCTOB])
 
86
  HAVE_DECL_WCWIDTH=1;  AC_SUBST([HAVE_DECL_WCWIDTH])
 
87
  REPLACE_MBSTATE_T=0;  AC_SUBST([REPLACE_MBSTATE_T])
 
88
  REPLACE_BTOWC=0;      AC_SUBST([REPLACE_BTOWC])
 
89
  REPLACE_WCTOB=0;      AC_SUBST([REPLACE_WCTOB])
 
90
  REPLACE_MBSINIT=0;    AC_SUBST([REPLACE_MBSINIT])
 
91
  REPLACE_MBRTOWC=0;    AC_SUBST([REPLACE_MBRTOWC])
 
92
  REPLACE_MBRLEN=0;     AC_SUBST([REPLACE_MBRLEN])
 
93
  REPLACE_MBSRTOWCS=0;  AC_SUBST([REPLACE_MBSRTOWCS])
 
94
  REPLACE_MBSNRTOWCS=0; AC_SUBST([REPLACE_MBSNRTOWCS])
 
95
  REPLACE_WCRTOMB=0;    AC_SUBST([REPLACE_WCRTOMB])
 
96
  REPLACE_WCSRTOMBS=0;  AC_SUBST([REPLACE_WCSRTOMBS])
 
97
  REPLACE_WCSNRTOMBS=0; AC_SUBST([REPLACE_WCSNRTOMBS])
 
98
  REPLACE_WCWIDTH=0;    AC_SUBST([REPLACE_WCWIDTH])
 
99
  WCHAR_H='';           AC_SUBST([WCHAR_H])
54
100
])