~ubuntu-branches/ubuntu/vivid/parted/vivid

« back to all changes in this revision

Viewing changes to m4/getcwd.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-07-30 13:16:15 UTC
  • mfrom: (7.2.34 sid)
  • Revision ID: package-import@ubuntu.com-20140730131615-6uy87mosal6722s6
Tags: 3.2-1
* New upstream release.
* Drop currently-unused build-dependency on po4a (thanks, Johannes
  Schauer).

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-2014 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