~ubuntu-branches/ubuntu/trusty/gnutls26/trusty-security

« back to all changes in this revision

Viewing changes to gl/m4/stdio_h.m4

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2010-04-22 19:29:52 UTC
  • mto: (12.4.3 experimental) (1.5.1)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20100422192952-gbj6cvaan8e4ejck
Tags: upstream-2.9.10
ImportĀ upstreamĀ versionĀ 2.9.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# stdio_h.m4 serial 21
2
 
dnl Copyright (C) 2007-2009 Free Software Foundation, Inc.
 
1
# stdio_h.m4 serial 30
 
2
dnl Copyright (C) 2007-2010 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.
7
7
AC_DEFUN([gl_STDIO_H],
8
8
[
9
9
  AC_REQUIRE([gl_STDIO_H_DEFAULTS])
 
10
  AC_REQUIRE([AC_C_INLINE])
10
11
  gl_CHECK_NEXT_HEADERS([stdio.h])
11
12
  dnl No need to create extra modules for these functions. Everyone who uses
12
13
  dnl <stdio.h> likely needs them.
30
31
      AC_LIBOBJ([stdio-write])
31
32
    fi
32
33
  ])
 
34
 
 
35
  dnl Check for declarations of anything we want to poison if the
 
36
  dnl corresponding gnulib module is not in use, and which is not
 
37
  dnl guaranteed by C89.
 
38
  gl_WARN_ON_USE_PREPARE([[#include <stdio.h>
 
39
    ]], [dprintf fpurge fseeko ftello getdelim getline popen renameat
 
40
    snprintf tmpfile vdprintf vsnprintf])
33
41
])
34
42
 
35
43
AC_DEFUN([gl_STDIO_MODULE_INDICATOR],
36
44
[
37
45
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
38
46
  AC_REQUIRE([gl_STDIO_H_DEFAULTS])
39
 
  GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
 
47
  gl_MODULE_INDICATOR_SET_VARIABLE([$1])
 
48
  dnl Define it also as a C macro, for the benefit of the unit tests.
 
49
  gl_MODULE_INDICATOR_FOR_TESTS([$1])
40
50
])
41
51
 
42
52
AC_DEFUN([gl_STDIO_H_DEFAULTS],
73
83
  GNULIB_SNPRINTF=0;             AC_SUBST([GNULIB_SNPRINTF])
74
84
  GNULIB_SPRINTF_POSIX=0;        AC_SUBST([GNULIB_SPRINTF_POSIX])
75
85
  GNULIB_STDIO_H_SIGPIPE=0;      AC_SUBST([GNULIB_STDIO_H_SIGPIPE])
 
86
  GNULIB_TMPFILE=0;              AC_SUBST([GNULIB_TMPFILE])
76
87
  GNULIB_VASPRINTF=0;            AC_SUBST([GNULIB_VASPRINTF])
77
88
  GNULIB_VDPRINTF=0;             AC_SUBST([GNULIB_VDPRINTF])
78
89
  GNULIB_VFPRINTF=0;             AC_SUBST([GNULIB_VFPRINTF])
105
116
  REPLACE_FSEEKO=0;              AC_SUBST([REPLACE_FSEEKO])
106
117
  REPLACE_FTELL=0;               AC_SUBST([REPLACE_FTELL])
107
118
  REPLACE_FTELLO=0;              AC_SUBST([REPLACE_FTELLO])
 
119
  REPLACE_GETDELIM=0;            AC_SUBST([REPLACE_GETDELIM])
108
120
  REPLACE_GETLINE=0;             AC_SUBST([REPLACE_GETLINE])
109
121
  REPLACE_OBSTACK_PRINTF=0;      AC_SUBST([REPLACE_OBSTACK_PRINTF])
110
122
  REPLACE_PERROR=0;              AC_SUBST([REPLACE_PERROR])
116
128
  REPLACE_SNPRINTF=0;            AC_SUBST([REPLACE_SNPRINTF])
117
129
  REPLACE_SPRINTF=0;             AC_SUBST([REPLACE_SPRINTF])
118
130
  REPLACE_STDIO_WRITE_FUNCS=0;   AC_SUBST([REPLACE_STDIO_WRITE_FUNCS])
 
131
  REPLACE_TMPFILE=0;             AC_SUBST([REPLACE_TMPFILE])
119
132
  REPLACE_VASPRINTF=0;           AC_SUBST([REPLACE_VASPRINTF])
120
133
  REPLACE_VDPRINTF=0;            AC_SUBST([REPLACE_VDPRINTF])
121
134
  REPLACE_VFPRINTF=0;            AC_SUBST([REPLACE_VFPRINTF])
140
153
  choke me
141
154
# endif
142
155
#endif]])],
143
 
        [gl_cv_var_stdin_large_offset=yes],
144
 
        [gl_cv_var_stdin_large_offset=no])])
 
156
        [gl_cv_var_stdin_large_offset=yes],
 
157
        [gl_cv_var_stdin_large_offset=no])])
145
158
])