~ubuntu-branches/ubuntu/wily/man-db/wily-proposed

« back to all changes in this revision

Viewing changes to gnulib/m4/getcwd.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-06-24 11:34:02 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20130624113402-6xdn53l2p9qu8yus
Tags: 2.6.4-1
* New upstream release:
  - Document default section list in manual pages (closes: #611007).
  - Quieten most warnings from compiling Gnulib (closes: #668429).
  - The MANLESS environment variable is now treated as if it were a
    default value for the -r option to man: occurrences of the text
    "$MAN_PN" are expanded, and explicitly using the -r option overrides
    the default (closes: #690831).
* Use 'set -e' rather than '#! /bin/sh -e' in maintainer scripts.
* Remove maintainer script support for direct upgrades from pre-etch
  (three releases before current stable).
* Breaks/Replaces manpages-zh (<< 1.5.2-1.1); man-db now ships zh_CN
  translations formerly included there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# getcwd.m4 - check for working getcwd that is compatible with glibc
2
2
 
3
 
# Copyright (C) 2001, 2003-2007, 2009-2012 Free Software Foundation, Inc.
 
3
# Copyright (C) 2001, 2003-2007, 2009-2013 Free Software Foundation, Inc.
4
4
# This file is free software; the Free Software Foundation
5
5
# gives unlimited permission to copy and/or distribute it,
6
6
# with or without modifications, as long as this notice is preserved.
7
7
 
8
8
# Written by Paul Eggert.
9
 
# serial 11
 
9
# serial 12
10
10
 
11
11
AC_DEFUN([gl_FUNC_GETCWD_NULL],
12
12
  [
45
45
         ]])],
46
46
        [gl_cv_func_getcwd_null=yes],
47
47
        [gl_cv_func_getcwd_null=no],
48
 
        [[
49
 
       case "$host_os" in
50
 
                               # Guess yes on glibc systems.
51
 
         *-gnu*)               gl_cv_func_getcwd_null="guessing yes";;
52
 
                               # Guess yes on Cygwin.
53
 
         cygwin*)              gl_cv_func_getcwd_null="guessing yes";;
54
 
                               # If we don't know, assume the worst.
55
 
         *)                    gl_cv_func_getcwd_null="guessing no";;
56
 
       esac
 
48
        [[case "$host_os" in
 
49
                     # Guess yes on glibc systems.
 
50
            *-gnu*)  gl_cv_func_getcwd_null="guessing yes";;
 
51
                     # Guess yes on Cygwin.
 
52
            cygwin*) gl_cv_func_getcwd_null="guessing yes";;
 
53
                     # If we don't know, assume the worst.
 
54
            *)       gl_cv_func_getcwd_null="guessing no";;
 
55
          esac
57
56
        ]])])
58
57
])
59
58
 
124
123
  dnl Define HAVE_MINIMALLY_WORKING_GETCWD and HAVE_PARTLY_WORKING_GETCWD
125
124
  dnl if appropriate.
126
125
  case "$gl_cv_func_getcwd_path_max" in
127
 
    "no, it has the AIX bug") ;;
 
126
    "no"|"no, it has the AIX bug") ;;
128
127
    *)
129
128
      AC_DEFINE([HAVE_MINIMALLY_WORKING_GETCWD], [1],
130
129
        [Define to 1 if getcwd minimally works, that is, its result can be