~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to m4/intmax_t.m4

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Robert Millan, Updated translations
  • Date: 2010-11-22 12:24:56 UTC
  • mfrom: (1.26.4 upstream) (17.3.36 sid)
  • mto: (17.3.43 sid)
  • mto: This revision was merged to the branch mainline in revision 89.
  • Revision ID: james.westby@ubuntu.com-20101122122456-y82z3sfb7k4zfdcc
Tags: 1.99~20101122-1
[ Colin Watson ]
* New Bazaar snapshot.  Too many changes to list in full, but some of the
  more user-visible ones are as follows:
  - GRUB script:
    + Function parameters, "break", "continue", "shift", "setparams",
      "return", and "!".
    + "export" command supports multiple variable names.
    + Multi-line quoted strings support.
    + Wildcard expansion.
  - sendkey support.
  - USB hotunplugging and USB serial support.
  - Rename CD-ROM to cd on BIOS.
  - Add new --boot-directory option to grub-install, grub-reboot, and
    grub-set-default; the old --root-directory option is still accepted
    but was often confusing.
  - Basic btrfs detection/UUID support (but no file reading yet).
  - bash-completion for utilities.
  - If a device is listed in device.map, always assume that it is
    BIOS-visible rather than using extra layers such as LVM or RAID.
  - Add grub-mknetdir script (closes: #550658).
  - Remove deprecated "root" command.
  - Handle RAID devices containing virtio components.
  - GRUB Legacy configuration file support (via grub-menulst2cfg).
  - Keyboard layout support (via grub-mklayout and grub-kbdcomp).
  - Check generated grub.cfg for syntax errors before saving.
  - Pause execution for at most ten seconds if any errors are displayed,
    so that the user has a chance to see them.
  - Support submenus.
  - Write embedding zone using Reed-Solomon, so that it's robust against
    being partially overwritten (closes: #550702, #591416, #593347).
  - GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY merged
    into a single GRUB_DISABLE_RECOVERY variable.
  - Fix loader memory allocation failure (closes: #551627).
  - Don't call savedefault on recovery entries (closes: #589325).
  - Support triple-indirect blocks on ext2 (closes: #543924).
  - Recognise DDF1 fake RAID (closes: #603354).

[ Robert Millan ]
* Use dpkg architecture wildcards.

[ Updated translations ]
* Slovenian (Vanja Cvelbar).  Closes: #604003
* Dzongkha (dawa pemo via Tenzin Dendup).  Closes: #604102

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# intmax_t.m4 serial 8
 
2
dnl Copyright (C) 1997-2004, 2006-2007, 2009-2010 Free Software Foundation,
 
3
dnl Inc.
 
4
dnl This file is free software; the Free Software Foundation
 
5
dnl gives unlimited permission to copy and/or distribute it,
 
6
dnl with or without modifications, as long as this notice is preserved.
 
7
 
 
8
dnl From Paul Eggert.
 
9
 
 
10
AC_PREREQ([2.53])
 
11
 
 
12
# Define intmax_t to 'long' or 'long long'
 
13
# if it is not already defined in <stdint.h> or <inttypes.h>.
 
14
 
 
15
AC_DEFUN([gl_AC_TYPE_INTMAX_T],
 
16
[
 
17
  dnl For simplicity, we assume that a header file defines 'intmax_t' if and
 
18
  dnl only if it defines 'uintmax_t'.
 
19
  AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
 
20
  AC_REQUIRE([gl_AC_HEADER_STDINT_H])
 
21
  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
 
22
    AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
 
23
    test $ac_cv_type_long_long_int = yes \
 
24
      && ac_type='long long' \
 
25
      || ac_type='long'
 
26
    AC_DEFINE_UNQUOTED([intmax_t], [$ac_type],
 
27
     [Define to long or long long if <inttypes.h> and <stdint.h> don't define.])
 
28
  else
 
29
    AC_DEFINE([HAVE_INTMAX_T], [1],
 
30
      [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])
 
31
  fi
 
32
])
 
33
 
 
34
dnl An alternative would be to explicitly test for 'intmax_t'.
 
35
 
 
36
AC_DEFUN([gt_AC_TYPE_INTMAX_T],
 
37
[
 
38
  AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
 
39
  AC_REQUIRE([gl_AC_HEADER_STDINT_H])
 
40
  AC_CACHE_CHECK([for intmax_t], [gt_cv_c_intmax_t],
 
41
    [AC_COMPILE_IFELSE(
 
42
       [AC_LANG_PROGRAM(
 
43
          [[
 
44
#include <stddef.h>
 
45
#include <stdlib.h>
 
46
#if HAVE_STDINT_H_WITH_UINTMAX
 
47
#include <stdint.h>
 
48
#endif
 
49
#if HAVE_INTTYPES_H_WITH_UINTMAX
 
50
#include <inttypes.h>
 
51
#endif
 
52
          ]],
 
53
          [[intmax_t x = -1; return !x;]])],
 
54
       [gt_cv_c_intmax_t=yes],
 
55
       [gt_cv_c_intmax_t=no])])
 
56
  if test $gt_cv_c_intmax_t = yes; then
 
57
    AC_DEFINE([HAVE_INTMAX_T], [1],
 
58
      [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])
 
59
  else
 
60
    AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
 
61
    test $ac_cv_type_long_long_int = yes \
 
62
      && ac_type='long long' \
 
63
      || ac_type='long'
 
64
    AC_DEFINE_UNQUOTED([intmax_t], [$ac_type],
 
65
     [Define to long or long long if <stdint.h> and <inttypes.h> don't define.])
 
66
  fi
 
67
])