~psusi/ubuntu/natty/parted/fix-dmraid

« back to all changes in this revision

Viewing changes to m4/btowc.m4

  • Committer: Colin Watson
  • Date: 2010-08-05 21:06:19 UTC
  • mfrom: (7.2.9 sid)
  • Revision ID: cjwatson@canonical.com-20100805210619-f9ld2tuntueagfeo
* Resynchronise with Debian.  Remaining changes:
  - gptsync.dpatch: On Intel Mac systems, write a synced MBR rather than a
    protective MBR.
  - Add -fno-stack-protector on sparc.
  - loop-partitions.dpatch: Loop devices can only have one partition, so
    don't generate device names such as "/dev/loop0p1".
  - udevadm-settle.dpatch: Run 'udevadm settle' either side of rereading
    the partition table, to avoid a variety of races.
  - dmraid.dpatch: Ensure that device-mapper devices for dmraid arrays do
    not have extra nodes created needlessly, as well as making sure that
    partition nodes for dmraid devices are not probed.
  - loop-limits.patch: Remove limits on loop labels.
  - fix-dmraid-regression.path: Reverse upstream change that broke
    installation on dmraid disks for lucid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# btowc.m4 serial 5
 
1
# btowc.m4 serial 6
2
2
dnl Copyright (C) 2008-2010 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
18
18
    HAVE_BTOWC=0
19
19
  else
20
20
 
21
 
    dnl IRIX 6.5 btowc(EOF) is 0xFF, not WEOF.
22
21
    AC_REQUIRE([AC_PROG_CC])
23
22
    AC_REQUIRE([gt_LOCALE_FR])
24
23
    AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
 
24
 
 
25
    dnl Cygwin 1.7.2 btowc('\0') is WEOF, not 0.
 
26
    AC_CACHE_CHECK([whether btowc(0) is correct],
 
27
      [gl_cv_func_btowc_nul],
 
28
      [
 
29
        AC_TRY_RUN([
 
30
#include <stdio.h>
 
31
#include <string.h>
 
32
#include <wchar.h>
 
33
int main ()
 
34
{
 
35
  if (btowc ('\0') != 0)
 
36
    return 1;
 
37
  return 0;
 
38
}],
 
39
          [gl_cv_func_btowc_nul=yes],
 
40
          [gl_cv_func_btowc_nul=no],
 
41
          [
 
42
changequote(,)dnl
 
43
           case "$host_os" in
 
44
                      # Guess no on Cygwin.
 
45
             cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
 
46
                      # Guess yes otherwise.
 
47
             *)       gl_cv_func_btowc_nul="guessing yes" ;;
 
48
           esac
 
49
changequote([,])dnl
 
50
          ])
 
51
      ])
 
52
 
 
53
    dnl IRIX 6.5 btowc(EOF) is 0xFF, not WEOF.
25
54
    AC_CACHE_CHECK([whether btowc(EOF) is correct],
26
55
      [gl_cv_func_btowc_eof],
27
56
      [
55
84
            [:])
56
85
        fi
57
86
      ])
 
87
 
 
88
    case "$gl_cv_func_btowc_nul" in
 
89
      *yes) ;;
 
90
      *) REPLACE_BTOWC=1 ;;
 
91
    esac
58
92
    case "$gl_cv_func_btowc_eof" in
59
93
      *yes) ;;
60
94
      *) REPLACE_BTOWC=1 ;;