~darkmuggle-deactivatedaccount/ubuntu/quantal/grub2/fix-872244

« back to all changes in this revision

Viewing changes to m4/unistd_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
# unistd_h.m4 serial 46
 
2
dnl Copyright (C) 2006-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
dnl Written by Simon Josefsson, Bruno Haible.
 
8
 
 
9
AC_DEFUN([gl_UNISTD_H],
 
10
[
 
11
  dnl Use AC_REQUIRE here, so that the default behavior below is expanded
 
12
  dnl once only, before all statements that occur in other macros.
 
13
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
 
14
  AC_REQUIRE([AC_C_INLINE])
 
15
 
 
16
  gl_CHECK_NEXT_HEADERS([unistd.h])
 
17
 
 
18
  AC_CHECK_HEADERS_ONCE([unistd.h])
 
19
  if test $ac_cv_header_unistd_h = yes; then
 
20
    HAVE_UNISTD_H=1
 
21
  else
 
22
    HAVE_UNISTD_H=0
 
23
  fi
 
24
  AC_SUBST([HAVE_UNISTD_H])
 
25
 
 
26
  dnl Check for declarations of anything we want to poison if the
 
27
  dnl corresponding gnulib module is not in use.
 
28
  gl_WARN_ON_USE_PREPARE([[#include <unistd.h>
 
29
/* Some systems declare various items in the wrong headers.  */
 
30
#ifndef __GLIBC__
 
31
# include <fcntl.h>
 
32
# include <stdio.h>
 
33
# include <stdlib.h>
 
34
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
 
35
#  include <io.h>
 
36
# endif
 
37
#endif
 
38
    ]], [chown dup2 dup3 environ euidaccess faccessat fchdir fchownat
 
39
    fsync ftruncate getcwd getdomainname getdtablesize getgroups
 
40
    gethostname getlogin getlogin_r getpagesize getusershell setusershell
 
41
    endusershell lchown link linkat lseek pipe2 pread pwrite readlink
 
42
    readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat
 
43
    usleep])
 
44
])
 
45
 
 
46
AC_DEFUN([gl_UNISTD_MODULE_INDICATOR],
 
47
[
 
48
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
 
49
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
 
50
  gl_MODULE_INDICATOR_SET_VARIABLE([$1])
 
51
  dnl Define it also as a C macro, for the benefit of the unit tests.
 
52
  gl_MODULE_INDICATOR_FOR_TESTS([$1])
 
53
])
 
54
 
 
55
AC_DEFUN([gl_UNISTD_H_DEFAULTS],
 
56
[
 
57
  GNULIB_CHOWN=0;            AC_SUBST([GNULIB_CHOWN])
 
58
  GNULIB_CLOSE=0;            AC_SUBST([GNULIB_CLOSE])
 
59
  GNULIB_DUP2=0;             AC_SUBST([GNULIB_DUP2])
 
60
  GNULIB_DUP3=0;             AC_SUBST([GNULIB_DUP3])
 
61
  GNULIB_ENVIRON=0;          AC_SUBST([GNULIB_ENVIRON])
 
62
  GNULIB_EUIDACCESS=0;       AC_SUBST([GNULIB_EUIDACCESS])
 
63
  GNULIB_FACCESSAT=0;        AC_SUBST([GNULIB_FACCESSAT])
 
64
  GNULIB_FCHDIR=0;           AC_SUBST([GNULIB_FCHDIR])
 
65
  GNULIB_FCHOWNAT=0;         AC_SUBST([GNULIB_FCHOWNAT])
 
66
  GNULIB_FSYNC=0;            AC_SUBST([GNULIB_FSYNC])
 
67
  GNULIB_FTRUNCATE=0;        AC_SUBST([GNULIB_FTRUNCATE])
 
68
  GNULIB_GETCWD=0;           AC_SUBST([GNULIB_GETCWD])
 
69
  GNULIB_GETDOMAINNAME=0;    AC_SUBST([GNULIB_GETDOMAINNAME])
 
70
  GNULIB_GETDTABLESIZE=0;    AC_SUBST([GNULIB_GETDTABLESIZE])
 
71
  GNULIB_GETGROUPS=0;        AC_SUBST([GNULIB_GETGROUPS])
 
72
  GNULIB_GETHOSTNAME=0;      AC_SUBST([GNULIB_GETHOSTNAME])
 
73
  GNULIB_GETLOGIN=0;         AC_SUBST([GNULIB_GETLOGIN])
 
74
  GNULIB_GETLOGIN_R=0;       AC_SUBST([GNULIB_GETLOGIN_R])
 
75
  GNULIB_GETPAGESIZE=0;      AC_SUBST([GNULIB_GETPAGESIZE])
 
76
  GNULIB_GETUSERSHELL=0;     AC_SUBST([GNULIB_GETUSERSHELL])
 
77
  GNULIB_LCHOWN=0;           AC_SUBST([GNULIB_LCHOWN])
 
78
  GNULIB_LINK=0;             AC_SUBST([GNULIB_LINK])
 
79
  GNULIB_LINKAT=0;           AC_SUBST([GNULIB_LINKAT])
 
80
  GNULIB_LSEEK=0;            AC_SUBST([GNULIB_LSEEK])
 
81
  GNULIB_PIPE2=0;            AC_SUBST([GNULIB_PIPE2])
 
82
  GNULIB_PREAD=0;            AC_SUBST([GNULIB_PREAD])
 
83
  GNULIB_PWRITE=0;           AC_SUBST([GNULIB_PWRITE])
 
84
  GNULIB_READLINK=0;         AC_SUBST([GNULIB_READLINK])
 
85
  GNULIB_READLINKAT=0;       AC_SUBST([GNULIB_READLINKAT])
 
86
  GNULIB_RMDIR=0;            AC_SUBST([GNULIB_RMDIR])
 
87
  GNULIB_SLEEP=0;            AC_SUBST([GNULIB_SLEEP])
 
88
  GNULIB_SYMLINK=0;          AC_SUBST([GNULIB_SYMLINK])
 
89
  GNULIB_SYMLINKAT=0;        AC_SUBST([GNULIB_SYMLINKAT])
 
90
  GNULIB_TTYNAME_R=0;        AC_SUBST([GNULIB_TTYNAME_R])
 
91
  GNULIB_UNISTD_H_GETOPT=0;  AC_SUBST([GNULIB_UNISTD_H_GETOPT])
 
92
  GNULIB_UNISTD_H_SIGPIPE=0; AC_SUBST([GNULIB_UNISTD_H_SIGPIPE])
 
93
  GNULIB_UNLINK=0;           AC_SUBST([GNULIB_UNLINK])
 
94
  GNULIB_UNLINKAT=0;         AC_SUBST([GNULIB_UNLINKAT])
 
95
  GNULIB_USLEEP=0;           AC_SUBST([GNULIB_USLEEP])
 
96
  GNULIB_WRITE=0;            AC_SUBST([GNULIB_WRITE])
 
97
  dnl Assume proper GNU behavior unless another module says otherwise.
 
98
  HAVE_CHOWN=1;           AC_SUBST([HAVE_CHOWN])
 
99
  HAVE_DUP2=1;            AC_SUBST([HAVE_DUP2])
 
100
  HAVE_DUP3=1;            AC_SUBST([HAVE_DUP3])
 
101
  HAVE_EUIDACCESS=1;      AC_SUBST([HAVE_EUIDACCESS])
 
102
  HAVE_FACCESSAT=1;       AC_SUBST([HAVE_FACCESSAT])
 
103
  HAVE_FCHDIR=1;          AC_SUBST([HAVE_FCHDIR])
 
104
  HAVE_FCHOWNAT=1;        AC_SUBST([HAVE_FCHOWNAT])
 
105
  HAVE_FSYNC=1;           AC_SUBST([HAVE_FSYNC])
 
106
  HAVE_FTRUNCATE=1;       AC_SUBST([HAVE_FTRUNCATE])
 
107
  HAVE_GETDOMAINNAME=1;   AC_SUBST([HAVE_GETDOMAINNAME])
 
108
  HAVE_GETDTABLESIZE=1;   AC_SUBST([HAVE_GETDTABLESIZE])
 
109
  HAVE_GETGROUPS=1;       AC_SUBST([HAVE_GETGROUPS])
 
110
  HAVE_GETHOSTNAME=1;     AC_SUBST([HAVE_GETHOSTNAME])
 
111
  HAVE_GETLOGIN=1;        AC_SUBST([HAVE_GETLOGIN])
 
112
  HAVE_GETPAGESIZE=1;     AC_SUBST([HAVE_GETPAGESIZE])
 
113
  HAVE_LCHOWN=1;          AC_SUBST([HAVE_LCHOWN])
 
114
  HAVE_LINK=1;            AC_SUBST([HAVE_LINK])
 
115
  HAVE_LINKAT=1;          AC_SUBST([HAVE_LINKAT])
 
116
  HAVE_PIPE2=1;           AC_SUBST([HAVE_PIPE2])
 
117
  HAVE_PREAD=1;           AC_SUBST([HAVE_PREAD])
 
118
  HAVE_PWRITE=1;          AC_SUBST([HAVE_PWRITE])
 
119
  HAVE_READLINK=1;        AC_SUBST([HAVE_READLINK])
 
120
  HAVE_READLINKAT=1;      AC_SUBST([HAVE_READLINKAT])
 
121
  HAVE_SLEEP=1;           AC_SUBST([HAVE_SLEEP])
 
122
  HAVE_SYMLINK=1;         AC_SUBST([HAVE_SYMLINK])
 
123
  HAVE_SYMLINKAT=1;       AC_SUBST([HAVE_SYMLINKAT])
 
124
  HAVE_TTYNAME_R=1;       AC_SUBST([HAVE_TTYNAME_R])
 
125
  HAVE_UNLINKAT=1;        AC_SUBST([HAVE_UNLINKAT])
 
126
  HAVE_USLEEP=1;          AC_SUBST([HAVE_USLEEP])
 
127
  HAVE_DECL_ENVIRON=1;    AC_SUBST([HAVE_DECL_ENVIRON])
 
128
  HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R])
 
129
  HAVE_DECL_GETPAGESIZE=1; AC_SUBST([HAVE_DECL_GETPAGESIZE])
 
130
  HAVE_DECL_GETUSERSHELL=1; AC_SUBST([HAVE_DECL_GETUSERSHELL])
 
131
  HAVE_OS_H=0;            AC_SUBST([HAVE_OS_H])
 
132
  HAVE_SYS_PARAM_H=0;     AC_SUBST([HAVE_SYS_PARAM_H])
 
133
  REPLACE_CHOWN=0;        AC_SUBST([REPLACE_CHOWN])
 
134
  REPLACE_CLOSE=0;        AC_SUBST([REPLACE_CLOSE])
 
135
  REPLACE_DUP=0;          AC_SUBST([REPLACE_DUP])
 
136
  REPLACE_DUP2=0;         AC_SUBST([REPLACE_DUP2])
 
137
  REPLACE_FCHOWNAT=0;     AC_SUBST([REPLACE_FCHOWNAT])
 
138
  REPLACE_GETCWD=0;       AC_SUBST([REPLACE_GETCWD])
 
139
  REPLACE_GETGROUPS=0;    AC_SUBST([REPLACE_GETGROUPS])
 
140
  REPLACE_GETPAGESIZE=0;  AC_SUBST([REPLACE_GETPAGESIZE])
 
141
  REPLACE_LCHOWN=0;       AC_SUBST([REPLACE_LCHOWN])
 
142
  REPLACE_LINK=0;         AC_SUBST([REPLACE_LINK])
 
143
  REPLACE_LINKAT=0;       AC_SUBST([REPLACE_LINKAT])
 
144
  REPLACE_LSEEK=0;        AC_SUBST([REPLACE_LSEEK])
 
145
  REPLACE_PREAD=0;        AC_SUBST([REPLACE_PREAD])
 
146
  REPLACE_PWRITE=0;       AC_SUBST([REPLACE_PWRITE])
 
147
  REPLACE_READLINK=0;     AC_SUBST([REPLACE_READLINK])
 
148
  REPLACE_RMDIR=0;        AC_SUBST([REPLACE_RMDIR])
 
149
  REPLACE_SLEEP=0;        AC_SUBST([REPLACE_SLEEP])
 
150
  REPLACE_SYMLINK=0;      AC_SUBST([REPLACE_SYMLINK])
 
151
  REPLACE_TTYNAME_R=0;    AC_SUBST([REPLACE_TTYNAME_R])
 
152
  REPLACE_UNLINK=0;       AC_SUBST([REPLACE_UNLINK])
 
153
  REPLACE_UNLINKAT=0;     AC_SUBST([REPLACE_UNLINKAT])
 
154
  REPLACE_USLEEP=0;       AC_SUBST([REPLACE_USLEEP])
 
155
  REPLACE_WRITE=0;        AC_SUBST([REPLACE_WRITE])
 
156
  UNISTD_H_HAVE_WINSOCK2_H=0; AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H])
 
157
  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
 
158
                           AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS])
 
159
])