~ubuntu-branches/ubuntu/lucid/mpop/lucid

« back to all changes in this revision

Viewing changes to gnulib/m4/unistd_h.m4

  • Committer: Bazaar Package Importer
  • Author(s): Julien Louis
  • Date: 2007-04-22 11:10:07 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070422111007-zxauoipdhkj9lasp
Tags: 1.0.9-1
New upstream release which include a fix for for CVE2007-1558.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# unistd_h.m4 serial 2
2
 
dnl Copyright (C) 2006 Free Software Foundation, Inc.
 
1
# unistd_h.m4 serial 5
 
2
dnl Copyright (C) 2006-2007 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,
5
5
dnl with or without modifications, as long as this notice is preserved.
6
6
 
7
 
dnl Written by Simon Josefsson
8
 
 
9
 
AC_DEFUN([gl_HEADER_UNISTD],
10
 
[
11
 
  dnl Prerequisites of lib/unistd.h.
12
 
  AC_CHECK_HEADERS([unistd.h], [
13
 
    UNISTD_H=''
14
 
  ], [
15
 
    UNISTD_H='unistd.h'
16
 
  ])
17
 
  AC_SUBST(UNISTD_H)
 
7
dnl Written by Simon Josefsson, Bruno Haible.
 
8
 
 
9
AC_DEFUN([gl_UNISTD_H],
 
10
[
 
11
  dnl Use AC_REQUIRE here, so that the default behavior below is expanded
 
12
  dnl once only, before all statements that occur in other macros.
 
13
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
 
14
 
 
15
  AC_CHECK_HEADERS_ONCE([unistd.h])
 
16
  if test $ac_cv_header_unistd_h = yes; then
 
17
    HAVE_UNISTD_H=1
 
18
    gl_ABSOLUTE_HEADER([unistd.h])
 
19
    ABSOLUTE_UNISTD_H=\"$gl_cv_absolute_unistd_h\"
 
20
  else
 
21
    HAVE_UNISTD_H=0
 
22
  fi
 
23
  AC_SUBST([HAVE_UNISTD_H])
 
24
  AC_SUBST([ABSOLUTE_UNISTD_H])
 
25
])
 
26
 
 
27
AC_DEFUN([gl_UNISTD_MODULE_INDICATOR],
 
28
[
 
29
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
 
30
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
 
31
  GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
 
32
])
 
33
 
 
34
AC_DEFUN([gl_UNISTD_H_DEFAULTS],
 
35
[
 
36
  GNULIB_CHOWN=0;         AC_SUBST([GNULIB_CHOWN])
 
37
  GNULIB_DUP2=0;          AC_SUBST([GNULIB_DUP2])
 
38
  GNULIB_FCHDIR=0;        AC_SUBST([GNULIB_FCHDIR])
 
39
  GNULIB_FTRUNCATE=0;     AC_SUBST([GNULIB_FTRUNCATE])
 
40
  GNULIB_GETCWD=0;        AC_SUBST([GNULIB_GETCWD])
 
41
  GNULIB_GETLOGIN_R=0;    AC_SUBST([GNULIB_GETLOGIN_R])
 
42
  GNULIB_READLINK=0;      AC_SUBST([GNULIB_READLINK])
 
43
  dnl Assume proper GNU behavior unless another module says otherwise.
 
44
  HAVE_DUP2=1;            AC_SUBST([HAVE_DUP2])
 
45
  HAVE_FTRUNCATE=1;       AC_SUBST([HAVE_FTRUNCATE])
 
46
  HAVE_READLINK=1;        AC_SUBST([HAVE_READLINK])
 
47
  HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R])
 
48
  REPLACE_CHOWN=0;        AC_SUBST([REPLACE_CHOWN])
 
49
  REPLACE_FCHDIR=0;       AC_SUBST([REPLACE_FCHDIR])
 
50
  REPLACE_GETCWD=0;       AC_SUBST([REPLACE_GETCWD])
18
51
])