~ubuntu-branches/ubuntu/trusty/libprelude/trusty

« back to all changes in this revision

Viewing changes to libmissing/m4/vasnprintf.m4

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Chifflier
  • Date: 2008-04-28 15:23:30 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080428152330-su7zlfscjjeh30ig
Tags: 0.9.17.1-1
New upstream release (remove debug output)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# vasnprintf.m4 serial 23
2
 
dnl Copyright (C) 2002-2004, 2006-2007 Free Software Foundation, Inc.
 
1
# vasnprintf.m4 serial 25
 
2
dnl Copyright (C) 2002-2004, 2006-2008 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
7
AC_DEFUN([gl_FUNC_VASNPRINTF],
8
8
[
9
 
  AC_REQUIRE([gl_EOVERFLOW])
10
9
  AC_CHECK_FUNCS_ONCE([vasnprintf])
11
10
  if test $ac_cv_func_vasnprintf = no; then
12
11
    gl_REPLACE_VASNPRINTF
166
165
  esac
167
166
])
168
167
 
 
168
# Extra prerequisites of lib/vasnprintf.c for supporting the '-' flag.
 
169
AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST],
 
170
[
 
171
  AC_REQUIRE([gl_PRINTF_FLAG_LEFTADJUST])
 
172
  case "$gl_cv_func_printf_flag_leftadjust" in
 
173
    *yes)
 
174
      ;;
 
175
    *)
 
176
      AC_DEFINE([NEED_PRINTF_FLAG_LEFTADJUST], 1,
 
177
        [Define if the vasnprintf implementation needs special code for the
 
178
         '-' flag.])
 
179
      ;;
 
180
  esac
 
181
])
 
182
 
169
183
# Extra prerequisites of lib/vasnprintf.c for supporting the 0 flag.
170
184
AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_ZERO],
171
185
[
234
248
  gl_PREREQ_VASNPRINTF_DIRECTIVE_A
235
249
  gl_PREREQ_VASNPRINTF_DIRECTIVE_F
236
250
  gl_PREREQ_VASNPRINTF_FLAG_GROUPING
 
251
  gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST
237
252
  gl_PREREQ_VASNPRINTF_FLAG_ZERO
238
253
  gl_PREREQ_VASNPRINTF_PRECISION
239
254
  gl_PREREQ_VASNPRINTF_ENOMEM