272
|
1 # stdlib_h.m4 serial 13
|
|
2 dnl Copyright (C) 2007, 2008 Free Software Foundation, Inc.
|
|
3 dnl This file is free software; the Free Software Foundation
|
|
4 dnl gives unlimited permission to copy and/or distribute it,
|
|
5 dnl with or without modifications, as long as this notice is preserved.
|
|
6
|
|
7 AC_DEFUN([gl_STDLIB_H],
|
|
8 [
|
|
9 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
|
|
10 gl_CHECK_NEXT_HEADERS([stdlib.h])
|
|
11 AC_CHECK_TYPES([struct random_data],
|
|
12 [], [HAVE_STRUCT_RANDOM_DATA=0],
|
|
13 [[#include <stdlib.h>]])
|
|
14 ])
|
|
15
|
|
16 AC_DEFUN([gl_STDLIB_MODULE_INDICATOR],
|
|
17 [
|
|
18 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
|
|
19 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
|
|
20 GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
|
|
21 ])
|
|
22
|
|
23 AC_DEFUN([gl_STDLIB_H_DEFAULTS],
|
|
24 [
|
|
25 GNULIB_MALLOC_POSIX=0; AC_SUBST([GNULIB_MALLOC_POSIX])
|
|
26 GNULIB_REALLOC_POSIX=0; AC_SUBST([GNULIB_REALLOC_POSIX])
|
|
27 GNULIB_CALLOC_POSIX=0; AC_SUBST([GNULIB_CALLOC_POSIX])
|
|
28 GNULIB_ATOLL=0; AC_SUBST([GNULIB_ATOLL])
|
|
29 GNULIB_GETLOADAVG=0; AC_SUBST([GNULIB_GETLOADAVG])
|
|
30 GNULIB_GETSUBOPT=0; AC_SUBST([GNULIB_GETSUBOPT])
|
|
31 GNULIB_MKDTEMP=0; AC_SUBST([GNULIB_MKDTEMP])
|
|
32 GNULIB_MKSTEMP=0; AC_SUBST([GNULIB_MKSTEMP])
|
|
33 GNULIB_PUTENV=0; AC_SUBST([GNULIB_PUTENV])
|
|
34 GNULIB_RANDOM_R=0; AC_SUBST([GNULIB_RANDOM_R])
|
|
35 GNULIB_RPMATCH=0; AC_SUBST([GNULIB_RPMATCH])
|
|
36 GNULIB_SETENV=0; AC_SUBST([GNULIB_SETENV])
|
|
37 GNULIB_STRTOD=0; AC_SUBST([GNULIB_STRTOD])
|
|
38 GNULIB_STRTOLL=0; AC_SUBST([GNULIB_STRTOLL])
|
|
39 GNULIB_STRTOULL=0; AC_SUBST([GNULIB_STRTOULL])
|
|
40 GNULIB_UNSETENV=0; AC_SUBST([GNULIB_UNSETENV])
|
|
41 dnl Assume proper GNU behavior unless another module says otherwise.
|
|
42 HAVE_ATOLL=1; AC_SUBST([HAVE_ATOLL])
|
|
43 HAVE_CALLOC_POSIX=1; AC_SUBST([HAVE_CALLOC_POSIX])
|
|
44 HAVE_GETSUBOPT=1; AC_SUBST([HAVE_GETSUBOPT])
|
|
45 HAVE_MALLOC_POSIX=1; AC_SUBST([HAVE_MALLOC_POSIX])
|
|
46 HAVE_MKDTEMP=1; AC_SUBST([HAVE_MKDTEMP])
|
|
47 HAVE_REALLOC_POSIX=1; AC_SUBST([HAVE_REALLOC_POSIX])
|
|
48 HAVE_RANDOM_R=1; AC_SUBST([HAVE_RANDOM_R])
|
|
49 HAVE_RPMATCH=1; AC_SUBST([HAVE_RPMATCH])
|
|
50 HAVE_SETENV=1; AC_SUBST([HAVE_SETENV])
|
|
51 HAVE_STRTOD=1; AC_SUBST([HAVE_STRTOD])
|
|
52 HAVE_STRTOLL=1; AC_SUBST([HAVE_STRTOLL])
|
|
53 HAVE_STRTOULL=1; AC_SUBST([HAVE_STRTOULL])
|
|
54 HAVE_STRUCT_RANDOM_DATA=1; AC_SUBST([HAVE_STRUCT_RANDOM_DATA])
|
|
55 HAVE_SYS_LOADAVG_H=0; AC_SUBST([HAVE_SYS_LOADAVG_H])
|
|
56 HAVE_UNSETENV=1; AC_SUBST([HAVE_UNSETENV])
|
|
57 HAVE_DECL_GETLOADAVG=1; AC_SUBST([HAVE_DECL_GETLOADAVG])
|
|
58 REPLACE_MKSTEMP=0; AC_SUBST([REPLACE_MKSTEMP])
|
|
59 REPLACE_PUTENV=0; AC_SUBST([REPLACE_PUTENV])
|
|
60 REPLACE_STRTOD=0; AC_SUBST([REPLACE_STRTOD])
|
|
61 VOID_UNSETENV=0; AC_SUBST([VOID_UNSETENV])
|
|
62 ])
|