• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-m4/
1# stdlib_h.m4 serial 4
2dnl Copyright (C) 2007 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_STDLIB_H],
8[
9  AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
10  gl_CHECK_NEXT_HEADERS([stdlib.h])
11])
12
13AC_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
20AC_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  dnl Assume proper GNU behavior unless another module says otherwise.
30  HAVE_CALLOC_POSIX=1;    AC_SUBST([HAVE_CALLOC_POSIX])
31  HAVE_GETSUBOPT=1;       AC_SUBST([HAVE_GETSUBOPT])
32  HAVE_MALLOC_POSIX=1;    AC_SUBST([HAVE_MALLOC_POSIX])
33  HAVE_MKDTEMP=1;         AC_SUBST([HAVE_MKDTEMP])
34  HAVE_REALLOC_POSIX=1;   AC_SUBST([HAVE_REALLOC_POSIX])
35  REPLACE_MKSTEMP=0;      AC_SUBST([REPLACE_MKSTEMP])
36  REPLACE_PUTENV=0;       AC_SUBST([REPLACE_PUTENV])
37])
38