~ubuntu-branches/ubuntu/utopic/gettext/utopic

« back to all changes in this revision

Viewing changes to gettext-runtime/gnulib-m4/lstat.m4

  • Committer: Colin Watson
  • Date: 2010-08-01 21:36:08 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: cjwatson@canonical.com-20100801213608-yy7vkm8lpatep3ci
merge from Debian 0.18.1.1-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# serial 20
 
2
 
 
3
# Copyright (C) 1997-2001, 2003-2010 Free Software Foundation, Inc.
 
4
#
 
5
# This file is free software; the Free Software Foundation
 
6
# gives unlimited permission to copy and/or distribute it,
 
7
# with or without modifications, as long as this notice is preserved.
 
8
 
 
9
dnl From Jim Meyering.
 
10
 
 
11
AC_DEFUN([gl_FUNC_LSTAT],
 
12
[
 
13
  AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
 
14
  dnl If lstat does not exist, the replacement <sys/stat.h> does
 
15
  dnl "#define lstat stat", and lstat.c is a no-op.
 
16
  AC_CHECK_FUNCS_ONCE([lstat])
 
17
  if test $ac_cv_func_lstat = yes; then
 
18
    AC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])
 
19
    if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
 
20
      dnl Note: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK does AC_LIBOBJ([lstat]).
 
21
      REPLACE_LSTAT=1
 
22
    fi
 
23
    # Prerequisites of lib/lstat.c.
 
24
    AC_REQUIRE([AC_C_INLINE])
 
25
  else
 
26
    HAVE_LSTAT=0
 
27
  fi
 
28
])