source: trunk/coreutils/m4/xstrtol.m4@ 2747

Last change on this file since 2747 was 2554, checked in by bird, 20 years ago

coretuils-5.94

File size: 946 bytes
Line 
1#serial 7
2dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved.
6
7AC_DEFUN([gl_XSTRTOL],
8[
9 AC_LIBSOURCES([xstrtol.c, xstrtol.h, xstrtoul.c, intprops.h])
10 AC_LIBOBJ([xstrtol])
11 AC_LIBOBJ([xstrtoul])
12
13 AC_REQUIRE([gl_PREREQ_XSTRTOL])
14 AC_REQUIRE([gl_PREREQ_XSTRTOUL])
15])
16
17# Prerequisites of lib/xstrtol.h.
18AC_DEFUN([gl_PREREQ_XSTRTOL_H],
19[
20 AC_REQUIRE([gl_AC_TYPE_INTMAX_T])
21 AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
22])
23
24# Prerequisites of lib/xstrtol.c.
25AC_DEFUN([gl_PREREQ_XSTRTOL],
26[
27 AC_REQUIRE([gl_PREREQ_XSTRTOL_H])
28 AC_REQUIRE([AC_HEADER_STDC])
29 AC_CHECK_FUNCS_ONCE(isascii)
30 AC_CHECK_DECLS([strtoimax, strtoumax])
31])
32
33# Prerequisites of lib/xstrtoul.c.
34AC_DEFUN([gl_PREREQ_XSTRTOUL],
35[
36 AC_REQUIRE([gl_PREREQ_XSTRTOL])
37])
Note: See TracBrowser for help on using the repository browser.