~ubuntu-branches/ubuntu/breezy/findutils/breezy

« back to all changes in this revision

Viewing changes to gnulib/m4/strtoimax.m4

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2003-10-26 13:44:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20031026134421-nrjr43wpcpd03m91
Tags: 4.1.20-3
Don't ship /usr/share/info/dir.gz, change Makefile.in to use install-info
test from new automake. The bug only applied to the autobuilt versions,
because I don't have /usr/sbin in $PATH, thanks to Santiago Vila.
(Closes: #217627)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# strtoimax.m4 serial 2
 
2
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
 
3
dnl This file is free software, distributed under the terms of the GNU
 
4
dnl General Public License.  As a special exception to the GNU General
 
5
dnl Public License, this file may be distributed as part of a program
 
6
dnl that contains a configuration script generated by Autoconf, under
 
7
dnl the same distribution terms as the rest of that program.
 
8
 
 
9
AC_DEFUN([gl_FUNC_STRTOIMAX],
 
10
[
 
11
  dnl Work around a bug of AC_EGREP_CPP in autoconf-2.57.
 
12
  AC_REQUIRE([AC_PROG_CPP])
 
13
  AC_REQUIRE([AC_PROG_EGREP])
 
14
 
 
15
  AC_CACHE_CHECK([whether <inttypes.h> defines strtoimax as a macro],
 
16
    jm_cv_func_strtoimax_macro,
 
17
    [AC_EGREP_CPP([inttypes_h_defines_strtoimax], [#include <inttypes.h>
 
18
#ifdef strtoimax
 
19
 inttypes_h_defines_strtoimax
 
20
#endif],
 
21
       jm_cv_func_strtoimax_macro=yes,
 
22
       jm_cv_func_strtoimax_macro=no)])
 
23
 
 
24
  if test "$jm_cv_func_strtoimax_macro" != yes; then
 
25
    AC_REPLACE_FUNCS(strtoimax)
 
26
    if test $ac_cv_func_strtoimax = no; then
 
27
      gl_PREREQ_STRTOIMAX
 
28
    fi
 
29
  fi
 
30
])
 
31
 
 
32
# Prerequisites of lib/strtoimax.c.
 
33
AC_DEFUN([gl_PREREQ_STRTOIMAX], [
 
34
  jm_AC_TYPE_INTMAX_T
 
35
  AC_CHECK_HEADERS_ONCE(stdlib.h)
 
36
  AC_CHECK_DECLS_ONCE(strtol)
 
37
  AC_CHECK_DECLS(strtoll)
 
38
  AC_REQUIRE([jm_AC_TYPE_LONG_LONG])
 
39
])