]> sjero.net Git - wget/blob - m4/stdlib_h.m4
Merge quote module stuff with current mainline.
[wget] / m4 / stdlib_h.m4
1 # stdlib_h.m4 serial 6
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 ])
12
13 AC_DEFUN([gl_STDLIB_MODULE_INDICATOR],
14 [
15   dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
16   AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
17   GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
18 ])
19
20 AC_DEFUN([gl_STDLIB_H_DEFAULTS],
21 [
22   GNULIB_MALLOC_POSIX=0;  AC_SUBST([GNULIB_MALLOC_POSIX])
23   GNULIB_REALLOC_POSIX=0; AC_SUBST([GNULIB_REALLOC_POSIX])
24   GNULIB_CALLOC_POSIX=0;  AC_SUBST([GNULIB_CALLOC_POSIX])
25   GNULIB_GETSUBOPT=0;     AC_SUBST([GNULIB_GETSUBOPT])
26   GNULIB_MKDTEMP=0;       AC_SUBST([GNULIB_MKDTEMP])
27   GNULIB_MKSTEMP=0;       AC_SUBST([GNULIB_MKSTEMP])
28   GNULIB_PUTENV=0;        AC_SUBST([GNULIB_PUTENV])
29   GNULIB_SETENV=0;        AC_SUBST([GNULIB_SETENV])
30   GNULIB_STRTOD=0;        AC_SUBST([GNULIB_STRTOD])
31   GNULIB_UNSETENV=0;      AC_SUBST([GNULIB_UNSETENV])
32   dnl Assume proper GNU behavior unless another module says otherwise.
33   HAVE_CALLOC_POSIX=1;    AC_SUBST([HAVE_CALLOC_POSIX])
34   HAVE_GETSUBOPT=1;       AC_SUBST([HAVE_GETSUBOPT])
35   HAVE_MALLOC_POSIX=1;    AC_SUBST([HAVE_MALLOC_POSIX])
36   HAVE_MKDTEMP=1;         AC_SUBST([HAVE_MKDTEMP])
37   HAVE_REALLOC_POSIX=1;   AC_SUBST([HAVE_REALLOC_POSIX])
38   HAVE_SETENV=1;          AC_SUBST([HAVE_SETENV])
39   HAVE_STRTOD=1;          AC_SUBST([HAVE_STRTOD])
40   HAVE_UNSETENV=1;        AC_SUBST([HAVE_UNSETENV])
41   REPLACE_MKSTEMP=0;      AC_SUBST([REPLACE_MKSTEMP])
42   REPLACE_PUTENV=0;       AC_SUBST([REPLACE_PUTENV])
43   REPLACE_STRTOD=0;       AC_SUBST([REPLACE_STRTOD])
44   VOID_UNSETENV=0;        AC_SUBST([VOID_UNSETENV])
45 ])