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

« back to all changes in this revision

Viewing changes to m4/lib-ld.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
# lib-ld.m4 serial 5 (gettext-0.18.2)
 
2
dnl Copyright (C) 1996-2003, 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
dnl Subroutines of libtool.m4,
 
8
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
 
9
dnl with libtool.m4.
 
10
 
 
11
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
 
12
AC_DEFUN([AC_LIB_PROG_LD_GNU],
 
13
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld],
 
14
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
15
case `$LD -v 2>&1 </dev/null` in
 
16
*GNU* | *'with BFD'*)
 
17
  acl_cv_prog_gnu_ld=yes ;;
 
18
*)
 
19
  acl_cv_prog_gnu_ld=no ;;
 
20
esac])
 
21
with_gnu_ld=$acl_cv_prog_gnu_ld
 
22
])
 
23
 
 
24
dnl From libtool-1.4. Sets the variable LD.
 
25
AC_DEFUN([AC_LIB_PROG_LD],
 
26
[AC_ARG_WITH([gnu-ld],
 
27
[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
 
28
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
 
29
AC_REQUIRE([AC_PROG_CC])dnl
 
30
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
31
# Prepare PATH_SEPARATOR.
 
32
# The user is always right.
 
33
if test "${PATH_SEPARATOR+set}" != set; then
 
34
  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
 
35
  # contains only /bin. Note that ksh looks also at the FPATH variable,
 
36
  # so we have to set that as well for the test.
 
37
  PATH_SEPARATOR=:
 
38
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
39
    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
40
           || PATH_SEPARATOR=';'
 
41
       }
 
42
fi
 
43
ac_prog=ld
 
44
if test "$GCC" = yes; then
 
45
  # Check if gcc -print-prog-name=ld gives a path.
 
46
  AC_MSG_CHECKING([for ld used by GCC])
 
47
  case $host in
 
48
  *-*-mingw*)
 
49
    # gcc leaves a trailing carriage return which upsets mingw
 
50
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
51
  *)
 
52
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
53
  esac
 
54
  case $ac_prog in
 
55
    # Accept absolute paths.
 
56
    [[\\/]* | [A-Za-z]:[\\/]*)]
 
57
      [re_direlt='/[^/][^/]*/\.\./']
 
58
      # Canonicalize the path of ld
 
59
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
60
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
61
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
62
      done
 
63
      test -z "$LD" && LD="$ac_prog"
 
64
      ;;
 
65
  "")
 
66
    # If it fails, then pretend we aren't using GCC.
 
67
    ac_prog=ld
 
68
    ;;
 
69
  *)
 
70
    # If it is relative, then search for the first ld in PATH.
 
71
    with_gnu_ld=unknown
 
72
    ;;
 
73
  esac
 
74
elif test "$with_gnu_ld" = yes; then
 
75
  AC_MSG_CHECKING([for GNU ld])
 
76
else
 
77
  AC_MSG_CHECKING([for non-GNU ld])
 
78
fi
 
79
AC_CACHE_VAL([acl_cv_path_LD],
 
80
[if test -z "$LD"; then
 
81
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
82
  for ac_dir in $PATH; do
 
83
    test -z "$ac_dir" && ac_dir=.
 
84
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
85
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
86
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
87
      # but apparently some GNU ld's only accept -v.
 
88
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
89
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
90
      *GNU* | *'with BFD'*)
 
91
        test "$with_gnu_ld" != no && break ;;
 
92
      *)
 
93
        test "$with_gnu_ld" != yes && break ;;
 
94
      esac
 
95
    fi
 
96
  done
 
97
  IFS="$ac_save_ifs"
 
98
else
 
99
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
100
fi])
 
101
LD="$acl_cv_path_LD"
 
102
if test -n "$LD"; then
 
103
  AC_MSG_RESULT([$LD])
 
104
else
 
105
  AC_MSG_RESULT([no])
 
106
fi
 
107
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 
108
AC_LIB_PROG_LD_GNU
 
109
])