comparison m4/stdlib_h.m4 @ 267:bec6d2480f08 2.6

Added add'l generated files for release
author lost
date Tue, 22 Dec 2009 05:33:32 +0000
parents
children
comparison
equal deleted inserted replaced
266:5f25e7afac21 267:bec6d2480f08
1 # stdlib_h.m4 serial 15
2 dnl Copyright (C) 2007-2009 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_HEADERS([random.h], [], [], [AC_INCLUDES_DEFAULT])
12 if test $ac_cv_header_random_h = yes; then
13 HAVE_RANDOM_H=1
14 else
15 HAVE_RANDOM_H=0
16 fi
17 AC_SUBST([HAVE_RANDOM_H])
18 AC_CHECK_TYPES([struct random_data],
19 [], [HAVE_STRUCT_RANDOM_DATA=0],
20 [[#include <stdlib.h>
21 #if HAVE_RANDOM_H
22 # include <random.h>
23 #endif
24 ]])
25 ])
26
27 AC_DEFUN([gl_STDLIB_MODULE_INDICATOR],
28 [
29 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
30 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
31 GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
32 ])
33
34 AC_DEFUN([gl_STDLIB_H_DEFAULTS],
35 [
36 GNULIB_MALLOC_POSIX=0; AC_SUBST([GNULIB_MALLOC_POSIX])
37 GNULIB_REALLOC_POSIX=0; AC_SUBST([GNULIB_REALLOC_POSIX])
38 GNULIB_CALLOC_POSIX=0; AC_SUBST([GNULIB_CALLOC_POSIX])
39 GNULIB_ATOLL=0; AC_SUBST([GNULIB_ATOLL])
40 GNULIB_GETLOADAVG=0; AC_SUBST([GNULIB_GETLOADAVG])
41 GNULIB_GETSUBOPT=0; AC_SUBST([GNULIB_GETSUBOPT])
42 GNULIB_MKDTEMP=0; AC_SUBST([GNULIB_MKDTEMP])
43 GNULIB_MKSTEMP=0; AC_SUBST([GNULIB_MKSTEMP])
44 GNULIB_PUTENV=0; AC_SUBST([GNULIB_PUTENV])
45 GNULIB_RANDOM_R=0; AC_SUBST([GNULIB_RANDOM_R])
46 GNULIB_RPMATCH=0; AC_SUBST([GNULIB_RPMATCH])
47 GNULIB_SETENV=0; AC_SUBST([GNULIB_SETENV])
48 GNULIB_STRTOD=0; AC_SUBST([GNULIB_STRTOD])
49 GNULIB_STRTOLL=0; AC_SUBST([GNULIB_STRTOLL])
50 GNULIB_STRTOULL=0; AC_SUBST([GNULIB_STRTOULL])
51 GNULIB_UNSETENV=0; AC_SUBST([GNULIB_UNSETENV])
52 dnl Assume proper GNU behavior unless another module says otherwise.
53 HAVE_ATOLL=1; AC_SUBST([HAVE_ATOLL])
54 HAVE_CALLOC_POSIX=1; AC_SUBST([HAVE_CALLOC_POSIX])
55 HAVE_GETSUBOPT=1; AC_SUBST([HAVE_GETSUBOPT])
56 HAVE_MALLOC_POSIX=1; AC_SUBST([HAVE_MALLOC_POSIX])
57 HAVE_MKDTEMP=1; AC_SUBST([HAVE_MKDTEMP])
58 HAVE_REALLOC_POSIX=1; AC_SUBST([HAVE_REALLOC_POSIX])
59 HAVE_RANDOM_R=1; AC_SUBST([HAVE_RANDOM_R])
60 HAVE_RPMATCH=1; AC_SUBST([HAVE_RPMATCH])
61 HAVE_SETENV=1; AC_SUBST([HAVE_SETENV])
62 HAVE_STRTOD=1; AC_SUBST([HAVE_STRTOD])
63 HAVE_STRTOLL=1; AC_SUBST([HAVE_STRTOLL])
64 HAVE_STRTOULL=1; AC_SUBST([HAVE_STRTOULL])
65 HAVE_STRUCT_RANDOM_DATA=1; AC_SUBST([HAVE_STRUCT_RANDOM_DATA])
66 HAVE_SYS_LOADAVG_H=0; AC_SUBST([HAVE_SYS_LOADAVG_H])
67 HAVE_UNSETENV=1; AC_SUBST([HAVE_UNSETENV])
68 HAVE_DECL_GETLOADAVG=1; AC_SUBST([HAVE_DECL_GETLOADAVG])
69 REPLACE_MKSTEMP=0; AC_SUBST([REPLACE_MKSTEMP])
70 REPLACE_PUTENV=0; AC_SUBST([REPLACE_PUTENV])
71 REPLACE_STRTOD=0; AC_SUBST([REPLACE_STRTOD])
72 VOID_UNSETENV=0; AC_SUBST([VOID_UNSETENV])
73 ])