~serge-hallyn/ubuntu/raring/libvirt/libvirt-hugepages

« back to all changes in this revision

Viewing changes to gnulib/m4/dup2.m4

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-07-11 12:37:49 UTC
  • mfrom: (1.2.14)
  • Revision ID: package-import@ubuntu.com-20120711123749-gt314clvb7840c6p
Tags: 0.9.13-0ubuntu1
* New upstream version: 
* debian/rules: Remove .la files
* debian/control: Dropped debian vcs info.
* Dropped:
  - debian/paches/9022-pass-the-virt-driver-name-into-security-drivers:
    Already applied upstream.
  - debian/patches/9023-dont-enable-apparmor-driver-with-lxc
    Already applied upstream.
  - debian/patches/9024-initialize-random-generator-in-lxc:
    Already applied upstream.
* Re-diffed:
  - debian/patches/9002-better_default_uri_virsh.patch
* Added:
  - debian/patches/add-libvirt-highbank-support.patch: Add highbank 
    CPU detection support.
  - debian/patches/fix-lxc-container-unmounting.patch: Fix container
    mounting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#serial 17
 
1
#serial 18
2
2
dnl Copyright (C) 2002, 2005, 2007, 2009-2012 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,
45
45
        [gl_cv_func_dup2_works=yes], [gl_cv_func_dup2_works=no],
46
46
        [case "$host_os" in
47
47
           mingw*) # on this platform, dup2 always returns 0 for success
48
 
             gl_cv_func_dup2_works=no;;
 
48
             gl_cv_func_dup2_works="guessing no" ;;
49
49
           cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
50
 
             gl_cv_func_dup2_works=no;;
 
50
             gl_cv_func_dup2_works="guessing no" ;;
51
51
           linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
52
52
                   # closed fd may yield -EBADF instead of -1 / errno=EBADF.
53
 
             gl_cv_func_dup2_works=no;;
 
53
             gl_cv_func_dup2_works="guessing no" ;;
54
54
           freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
55
 
             gl_cv_func_dup2_works=no;;
 
55
             gl_cv_func_dup2_works="guessing no" ;;
56
56
           haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
57
 
             gl_cv_func_dup2_works=no;;
58
 
           *) gl_cv_func_dup2_works=yes;;
 
57
             gl_cv_func_dup2_works="guessing no" ;;
 
58
           *) gl_cv_func_dup2_works="guessing yes" ;;
59
59
         esac])
60
60
      ])
61
 
    if test "$gl_cv_func_dup2_works" = no; then
62
 
      REPLACE_DUP2=1
63
 
    fi
 
61
    case "$gl_cv_func_dup2_works" in
 
62
      *yes) ;;
 
63
      *)
 
64
        REPLACE_DUP2=1
 
65
        ;;
 
66
    esac
64
67
  fi
65
68
  dnl Replace dup2() for supporting the gnulib-defined fchdir() function,
66
69
  dnl to keep fchdir's bookkeeping up-to-date.