~ubuntu-branches/ubuntu/oneiric/texinfo/oneiric

« back to all changes in this revision

Viewing changes to gnulib/m4/argz.m4

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2009-03-09 15:50:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090309155003-3k9a07mt2jqnuudg
Tags: 4.13a.dfsg.1-1
* new upstream releases (Closes: #500301)
  - fix (wrongly) added leading spaces in direntries (Closes: #457741)
  -  work with ~ in th epath (Closes: #495577)
  - disable the patch fix-direntry and fix-texi2dvi-bashism, 
    included upstream
* update the list of files to be installed (new translations, pdftexi2dvi)
* mange version in the watch file to remove the .dfsg.N part
* use quilt.make (first step in direction of source format 3.0, but that
  is broken)
* add README.Debian to info package (Closes: #513187)
* add README.source, bump standards version to 3.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Portability macros for glibc argz.                    -*- Autoconf -*-
 
2
#
 
3
#   Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
4
#   Written by Gary V. Vaughan <gary@gnu.org>
 
5
#
 
6
# This file is free software; the Free Software Foundation gives
 
7
# unlimited permission to copy and/or distribute it, with or without
 
8
# modifications, as long as this notice is preserved.
 
9
 
 
10
# serial 6 argz.m4
 
11
 
 
12
AC_DEFUN([gl_FUNC_ARGZ],
 
13
[gl_PREREQ_ARGZ
 
14
 
 
15
AC_REQUIRE([AC_C_RESTRICT])
 
16
 
 
17
AC_CHECK_HEADERS([argz.h], [], [], [AC_INCLUDES_DEFAULT])
 
18
 
 
19
AC_CHECK_TYPES([error_t],
 
20
  [],
 
21
  [AC_DEFINE([error_t], [int],
 
22
   [Define to a type to use for `error_t' if it is not otherwise available.])
 
23
   AC_DEFINE([__error_t_defined], [1], [Define so that glibc/gnulib argp.h
 
24
    does not typedef error_t.])],
 
25
  [#if defined(HAVE_ARGZ_H)
 
26
#  include <argz.h>
 
27
#endif])
 
28
 
 
29
ARGZ_H=
 
30
AC_CHECK_FUNC([argz_replace], [], [ARGZ_H=argz.h; AC_LIBOBJ([argz])])
 
31
 
 
32
dnl if have system argz functions, allow forced use of
 
33
dnl libltdl-supplied implementation (and default to do so
 
34
dnl on "known bad" systems). Could use a runtime check, but
 
35
dnl (a) detecting malloc issues is notoriously unreliable
 
36
dnl (b) only known system that declares argz functions,
 
37
dnl     provides them, yet they are broken, is cygwin
 
38
dnl     releases prior to 5-May-2007 (1.5.24 and earlier)
 
39
dnl So, it's more straightforward simply to special case
 
40
dnl this for known bad systems.
 
41
AS_IF([test -z "$ARGZ_H"],
 
42
    [AC_CACHE_CHECK(
 
43
        [if argz actually works],
 
44
        [lt_cv_sys_argz_works],
 
45
        [[case $host_os in #(
 
46
         *cygwin*)
 
47
           lt_cv_sys_argz_works=no
 
48
           if test "$cross_compiling" != no; then
 
49
             lt_cv_sys_argz_works="guessing no"
 
50
           else
 
51
             lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
 
52
             save_IFS=$IFS
 
53
             IFS=-.
 
54
             set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
 
55
             IFS=$save_IFS
 
56
             lt_os_major=${2-0}
 
57
             lt_os_minor=${3-0}
 
58
             lt_os_micro=${4-0}
 
59
             if test "$lt_os_major" -gt 1 \
 
60
                || { test "$lt_os_major" -eq 1 \
 
61
                  && { test "$lt_os_minor" -gt 5 \
 
62
                    || { test "$lt_os_minor" -eq 5 \
 
63
                      && test "$lt_os_micro" -gt 24; }; }; }; then
 
64
               lt_cv_sys_argz_works=yes
 
65
             fi
 
66
           fi
 
67
           ;; #(
 
68
         *) lt_cv_sys_argz_works=yes ;;
 
69
         esac]])
 
70
     AS_IF([test $lt_cv_sys_argz_works = yes],
 
71
        [AC_DEFINE([HAVE_WORKING_ARGZ], 1,
 
72
                   [This value is set to 1 to indicate that the system argz facility works])],
 
73
        [ARGZ_H=argz.h
 
74
        AC_LIBOBJ([argz])])])
 
75
 
 
76
AC_SUBST([ARGZ_H])
 
77
])
 
78
 
 
79
# Prerequisites of lib/argz.c.
 
80
AC_DEFUN([gl_PREREQ_ARGZ], [:])