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

« back to all changes in this revision

Viewing changes to m4/argp.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
# argp.m4 serial 11
 
2
dnl Copyright (C) 2003-2010 Free Software Foundation, Inc.
 
3
dnl This file is free software; the Free Software Foundation
 
4
dnl gives unlimited permission to copy and/or distribute it,
 
5
dnl with or without modifications, as long as this notice is preserved.
 
6
 
 
7
AC_DEFUN([gl_ARGP],
 
8
[
 
9
  AC_REQUIRE([AC_C_INLINE])
 
10
  AC_REQUIRE([AC_C_RESTRICT])
 
11
  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
 
12
  dnl argp-parse.c depends on GNU getopt internals, therefore use GNU getopt
 
13
  dnl always.
 
14
  gl_REPLACE_GETOPT
 
15
  dnl Note: gl_REPLACE_GETOPT does AC_LIBOBJ([getopt]), AC_LIBOBJ([getopt1]).
 
16
 
 
17
  AC_CHECK_DECL([program_invocation_name],
 
18
                [AC_DEFINE([HAVE_DECL_PROGRAM_INVOCATION_NAME], [1],
 
19
                           [Define if program_invocation_name is declared])],
 
20
                [AC_DEFINE([GNULIB_PROGRAM_INVOCATION_NAME], [1],
 
21
                           [Define to 1 to add extern declaration of program_invocation_name to argp.h])],
 
22
                [#include <errno.h>])
 
23
  AC_CHECK_DECL([program_invocation_short_name],
 
24
                [AC_DEFINE([HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME], [1],
 
25
                           [Define if program_invocation_short_name is declared])],
 
26
                [AC_DEFINE([GNULIB_PROGRAM_INVOCATION_SHORT_NAME], [1],
 
27
                           [Define to 1 to add extern declaration of program_invocation_short_name to argp.h])],
 
28
                [#include <errno.h>])
 
29
 
 
30
  # Check if program_invocation_name and program_invocation_short_name
 
31
  # are defined elsewhere. It is improbable that only one of them will
 
32
  # be defined and other not, I prefer to stay on the safe side and to
 
33
  # test each one separately.
 
34
  AC_MSG_CHECKING([whether program_invocation_name is defined])
 
35
  AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <argp.h>]],
 
36
                                  [[program_invocation_name = "test";]])],
 
37
                 [AC_DEFINE([HAVE_PROGRAM_INVOCATION_NAME], [1],
 
38
                            [Define if program_invocation_name is defined])
 
39
                  AC_MSG_RESULT([yes])],
 
40
                 [AC_MSG_RESULT([no])])
 
41
 
 
42
  AC_MSG_CHECKING([whether program_invocation_short_name is defined])
 
43
  AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <argp.h>]],
 
44
                                  [[program_invocation_short_name = "test";]])],
 
45
                 [AC_DEFINE([HAVE_PROGRAM_INVOCATION_SHORT_NAME], [1],
 
46
                            [Define if program_invocation_short_name is defined])
 
47
                  AC_MSG_RESULT([yes])],
 
48
                 [AC_MSG_RESULT([no])])
 
49
 
 
50
  AC_CHECK_DECLS_ONCE([clearerr_unlocked])
 
51
  AC_CHECK_DECLS_ONCE([feof_unlocked])
 
52
  AC_CHECK_DECLS_ONCE([ferror_unlocked])
 
53
  AC_CHECK_DECLS_ONCE([fflush_unlocked])
 
54
  AC_CHECK_DECLS_ONCE([fgets_unlocked])
 
55
  AC_CHECK_DECLS_ONCE([fputc_unlocked])
 
56
  AC_CHECK_DECLS_ONCE([fputs_unlocked])
 
57
  AC_CHECK_DECLS_ONCE([fread_unlocked])
 
58
  AC_CHECK_DECLS_ONCE([fwrite_unlocked])
 
59
  AC_CHECK_DECLS_ONCE([getc_unlocked])
 
60
  AC_CHECK_DECLS_ONCE([getchar_unlocked])
 
61
  AC_CHECK_DECLS_ONCE([putc_unlocked])
 
62
  AC_CHECK_DECLS_ONCE([putchar_unlocked])
 
63
  AC_CHECK_FUNCS_ONCE([flockfile funlockfile])
 
64
  AC_CHECK_HEADERS_ONCE([features.h linewrap.h])
 
65
])