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

« back to all changes in this revision

Viewing changes to m4/errno_h.m4

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Evan Broder, Mario Limonciello
  • Date: 2010-11-24 13:59:55 UTC
  • mfrom: (1.17.6 upstream) (17.6.15 experimental)
  • Revision ID: james.westby@ubuntu.com-20101124135955-r6ii5sepayr7jt53
Tags: 1.99~20101124-1ubuntu1
[ Colin Watson ]
* Resynchronise with Debian experimental.  Remaining changes:
  - Adjust for default Ubuntu boot options ("quiet splash").
  - Default to hiding the menu; holding down Shift at boot will show it.
  - Set a monochromatic theme for Ubuntu.
  - Apply Ubuntu GRUB Legacy changes to legacy update-grub script: title,
    recovery mode, quiet option, tweak how memtest86+ is displayed, and
    use UUIDs where appropriate.
  - Fix backslash-escaping in merge_debconf_into_conf.
  - Remove "GNU/Linux" from default distributor string.
  - Add crashkernel= options if kdump and makedumpfile are available.
  - If other operating systems are installed, then automatically unhide
    the menu.  Otherwise, if GRUB_HIDDEN_TIMEOUT is 0, then use keystatus
    if available to check whether Shift is pressed.  If it is, show the
    menu, otherwise boot immediately.  If keystatus is not available, then
    fall back to a short delay interruptible with Escape.
  - Allow Shift to interrupt 'sleep --interruptible'.
  - Don't display introductory message about line editing unless we're
    actually offering a shell prompt.  Don't clear the screen just before
    booting if we never drew the menu in the first place.
  - Remove some verbose messages printed before reading the configuration
    file.
  - Suppress progress messages as the kernel and initrd load for
    non-recovery kernel menu entries.
  - Change prepare_grub_to_access_device to handle filesystems
    loop-mounted on file images.
  - Ignore devices loop-mounted from files in 10_linux.
  - Show the boot menu if the previous boot failed, that is if it failed
    to get to the end of one of the normal runlevels.
  - Don't generate /boot/grub/device.map during grub-install or
    grub-mkconfig by default.
  - Adjust upgrade version checks for Ubuntu.
  - Don't display "GRUB loading" unless Shift is held down.
  - Adjust versions of grub-doc and grub-legacy-doc conflicts to tolerate
    our backport of the grub-doc split.
  - Fix LVM/RAID probing in the absence of /boot/grub/device.map.
  - Look for .mo files in /usr/share/locale-langpack as well, in
    preference.
  - Make sure GRUB_TIMEOUT isn't quoted unnecessarily.
  - Probe all devices in 'grub-probe --target=drive' if
    /boot/grub/device.map is missing.
  - Build-depend on qemu-kvm rather than qemu-system for grub-pc tests.
  - Use qemu rather than qemu-system-i386.
  - Program vesafb on BIOS systems rather than efifb.
  - Add a grub-rescue-efi-amd64 package containing a rescue CD-ROM image
    for EFI-AMD64.
  - On Wubi, don't ask for an install device, but just update wubildr
    using the diverted grub-install.
  - When embedding the core image in a post-MBR gap, check for and avoid
    sectors matching any of a list of known signatures.
  - Disable video_bochs and video_cirrus on PC BIOS systems, as probing
    PCI space seems to break on some systems.
* Downgrade "ACPI shutdown failed" error to a debug message, since it can
  cause spurious test failures.

[ Evan Broder ]
* Enable lua from grub-extras.
* Incorporate the bitop library into lua.
* Add enum_pci function to grub module in lua.
* Switch back to gfxpayload=keep by default, unless the video hardware
  is known to not support it.

[ Mario Limonciello ]
* Built part_msdos and vfat into bootx64.efi (LP: #677758)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# errno_h.m4 serial 6
 
2
dnl Copyright (C) 2004, 2006, 2008, 2009, 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_ONCE([gl_HEADER_ERRNO_H],
 
8
[
 
9
  AC_REQUIRE([AC_PROG_CC])
 
10
  AC_CACHE_CHECK([for complete errno.h], [gl_cv_header_errno_h_complete], [
 
11
    AC_EGREP_CPP([booboo],[
 
12
#include <errno.h>
 
13
#if !defined ENOMSG
 
14
booboo
 
15
#endif
 
16
#if !defined EIDRM
 
17
booboo
 
18
#endif
 
19
#if !defined ENOLINK
 
20
booboo
 
21
#endif
 
22
#if !defined EPROTO
 
23
booboo
 
24
#endif
 
25
#if !defined EMULTIHOP
 
26
booboo
 
27
#endif
 
28
#if !defined EBADMSG
 
29
booboo
 
30
#endif
 
31
#if !defined EOVERFLOW
 
32
booboo
 
33
#endif
 
34
#if !defined ENOTSUP
 
35
booboo
 
36
#endif
 
37
#if !defined ESTALE
 
38
booboo
 
39
#endif
 
40
#if !defined ECANCELED
 
41
booboo
 
42
#endif
 
43
      ],
 
44
      [gl_cv_header_errno_h_complete=no],
 
45
      [gl_cv_header_errno_h_complete=yes])
 
46
  ])
 
47
  if test $gl_cv_header_errno_h_complete = yes; then
 
48
    ERRNO_H=''
 
49
  else
 
50
    gl_CHECK_NEXT_HEADERS([errno.h])
 
51
    ERRNO_H='errno.h'
 
52
  fi
 
53
  AC_SUBST([ERRNO_H])
 
54
  gl_REPLACE_ERRNO_VALUE([EMULTIHOP])
 
55
  gl_REPLACE_ERRNO_VALUE([ENOLINK])
 
56
  gl_REPLACE_ERRNO_VALUE([EOVERFLOW])
 
57
])
 
58
 
 
59
# Assuming $1 = EOVERFLOW.
 
60
# The EOVERFLOW errno value ought to be defined in <errno.h>, according to
 
61
# POSIX.  But some systems (like OpenBSD 4.0 or AIX 3) don't define it, and
 
62
# some systems (like OSF/1) define it when _XOPEN_SOURCE_EXTENDED is defined.
 
63
# Check for the value of EOVERFLOW.
 
64
# Set the variables EOVERFLOW_HIDDEN and EOVERFLOW_VALUE.
 
65
AC_DEFUN([gl_REPLACE_ERRNO_VALUE],
 
66
[
 
67
  if test -n "$ERRNO_H"; then
 
68
    AC_CACHE_CHECK([for ]$1[ value], [gl_cv_header_errno_h_]$1, [
 
69
      AC_EGREP_CPP([yes],[
 
70
#include <errno.h>
 
71
#ifdef ]$1[
 
72
yes
 
73
#endif
 
74
      ],
 
75
      [gl_cv_header_errno_h_]$1[=yes],
 
76
      [gl_cv_header_errno_h_]$1[=no])
 
77
      if test $gl_cv_header_errno_h_]$1[ = no; then
 
78
        AC_EGREP_CPP([yes],[
 
79
#define _XOPEN_SOURCE_EXTENDED 1
 
80
#include <errno.h>
 
81
#ifdef ]$1[
 
82
yes
 
83
#endif
 
84
          ], [gl_cv_header_errno_h_]$1[=hidden])
 
85
        if test $gl_cv_header_errno_h_]$1[ = hidden; then
 
86
          dnl The macro exists but is hidden.
 
87
          dnl Define it to the same value.
 
88
          AC_COMPUTE_INT([gl_cv_header_errno_h_]$1, $1, [
 
89
#define _XOPEN_SOURCE_EXTENDED 1
 
90
#include <errno.h>
 
91
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
92
#include <stdio.h>
 
93
#include <stdlib.h>
 
94
])
 
95
        fi
 
96
      fi
 
97
    ])
 
98
    case $gl_cv_header_errno_h_]$1[ in
 
99
      yes | no)
 
100
        ]$1[_HIDDEN=0; ]$1[_VALUE=
 
101
        ;;
 
102
      *)
 
103
        ]$1[_HIDDEN=1; ]$1[_VALUE="$gl_cv_header_errno_h_]$1["
 
104
        ;;
 
105
    esac
 
106
    AC_SUBST($1[_HIDDEN])
 
107
    AC_SUBST($1[_VALUE])
 
108
  fi
 
109
])
 
110
 
 
111
dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in.
 
112
dnl Remove this when we can assume autoconf >= 2.61.
 
113
m4_ifdef([AC_COMPUTE_INT], [], [
 
114
  AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])])
 
115
])