~ubuntu-branches/ubuntu/maverick/hello/maverick

« back to all changes in this revision

Viewing changes to gnulib/m4/string_h.m4

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2009-08-03 23:34:18 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090803233418-e1zshrjd3oqhmrrb
Tags: 2.4-1
* New upstream release. License is now GPLv3 or later.
* Manual is included again, as it's now GFDL without invariant sections.
* Clarified manual: If more than one of the greeting options is specified
  (`-g', `-n', `-t', and their long-named equivalents), whichever comes
  last takes precedence. Closes: #457941.
* Don't pass -isp to dpkg-gencontrol, as it's deprecated. Closes: #508833.
* Changed source URL in copyright file to use http, not ftp.
* Standards-Version: 3.8.2 (no changes for this).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Configure a GNU-like replacement for <string.h>.
 
2
 
 
3
# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
 
4
# This file is free software; the Free Software Foundation
 
5
# gives unlimited permission to copy and/or distribute it,
 
6
# with or without modifications, as long as this notice is preserved.
 
7
 
 
8
# serial 6
 
9
 
 
10
# Written by Paul Eggert.
 
11
 
 
12
AC_DEFUN([gl_HEADER_STRING_H],
 
13
[
 
14
  dnl Use AC_REQUIRE here, so that the default behavior below is expanded
 
15
  dnl once only, before all statements that occur in other macros.
 
16
  AC_REQUIRE([gl_HEADER_STRING_H_BODY])
 
17
])
 
18
 
 
19
AC_DEFUN([gl_HEADER_STRING_H_BODY],
 
20
[
 
21
  AC_REQUIRE([AC_C_RESTRICT])
 
22
  AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
 
23
  gl_CHECK_NEXT_HEADERS([string.h])
 
24
])
 
25
 
 
26
AC_DEFUN([gl_STRING_MODULE_INDICATOR],
 
27
[
 
28
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
 
29
  AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
 
30
  GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
 
31
])
 
32
 
 
33
AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS],
 
34
[
 
35
  GNULIB_MEMMEM=0;      AC_SUBST([GNULIB_MEMMEM])
 
36
  GNULIB_MEMPCPY=0;     AC_SUBST([GNULIB_MEMPCPY])
 
37
  GNULIB_MEMRCHR=0;     AC_SUBST([GNULIB_MEMRCHR])
 
38
  GNULIB_RAWMEMCHR=0;   AC_SUBST([GNULIB_RAWMEMCHR])
 
39
  GNULIB_STPCPY=0;      AC_SUBST([GNULIB_STPCPY])
 
40
  GNULIB_STPNCPY=0;     AC_SUBST([GNULIB_STPNCPY])
 
41
  GNULIB_STRCHRNUL=0;   AC_SUBST([GNULIB_STRCHRNUL])
 
42
  GNULIB_STRDUP=0;      AC_SUBST([GNULIB_STRDUP])
 
43
  GNULIB_STRNDUP=0;     AC_SUBST([GNULIB_STRNDUP])
 
44
  GNULIB_STRNLEN=0;     AC_SUBST([GNULIB_STRNLEN])
 
45
  GNULIB_STRPBRK=0;     AC_SUBST([GNULIB_STRPBRK])
 
46
  GNULIB_STRSEP=0;      AC_SUBST([GNULIB_STRSEP])
 
47
  GNULIB_STRSTR=0;      AC_SUBST([GNULIB_STRSTR])
 
48
  GNULIB_STRCASESTR=0;  AC_SUBST([GNULIB_STRCASESTR])
 
49
  GNULIB_STRTOK_R=0;    AC_SUBST([GNULIB_STRTOK_R])
 
50
  GNULIB_MBSLEN=0;      AC_SUBST([GNULIB_MBSLEN])
 
51
  GNULIB_MBSNLEN=0;     AC_SUBST([GNULIB_MBSNLEN])
 
52
  GNULIB_MBSCHR=0;      AC_SUBST([GNULIB_MBSCHR])
 
53
  GNULIB_MBSRCHR=0;     AC_SUBST([GNULIB_MBSRCHR])
 
54
  GNULIB_MBSSTR=0;      AC_SUBST([GNULIB_MBSSTR])
 
55
  GNULIB_MBSCASECMP=0;  AC_SUBST([GNULIB_MBSCASECMP])
 
56
  GNULIB_MBSNCASECMP=0; AC_SUBST([GNULIB_MBSNCASECMP])
 
57
  GNULIB_MBSPCASECMP=0; AC_SUBST([GNULIB_MBSPCASECMP])
 
58
  GNULIB_MBSCASESTR=0;  AC_SUBST([GNULIB_MBSCASESTR])
 
59
  GNULIB_MBSCSPN=0;     AC_SUBST([GNULIB_MBSCSPN])
 
60
  GNULIB_MBSPBRK=0;     AC_SUBST([GNULIB_MBSPBRK])
 
61
  GNULIB_MBSSPN=0;      AC_SUBST([GNULIB_MBSSPN])
 
62
  GNULIB_MBSSEP=0;      AC_SUBST([GNULIB_MBSSEP])
 
63
  GNULIB_MBSTOK_R=0;    AC_SUBST([GNULIB_MBSTOK_R])
 
64
  GNULIB_STRERROR=0;    AC_SUBST([GNULIB_STRERROR])
 
65
  GNULIB_STRSIGNAL=0;   AC_SUBST([GNULIB_STRSIGNAL])
 
66
  GNULIB_STRVERSCMP=0;   AC_SUBST([GNULIB_STRVERSCMP])
 
67
  dnl Assume proper GNU behavior unless another module says otherwise.
 
68
  HAVE_DECL_MEMMEM=1;           AC_SUBST([HAVE_DECL_MEMMEM])
 
69
  HAVE_MEMPCPY=1;               AC_SUBST([HAVE_MEMPCPY])
 
70
  HAVE_DECL_MEMRCHR=1;          AC_SUBST([HAVE_DECL_MEMRCHR])
 
71
  HAVE_RAWMEMCHR=1;             AC_SUBST([HAVE_RAWMEMCHR])
 
72
  HAVE_STPCPY=1;                AC_SUBST([HAVE_STPCPY])
 
73
  HAVE_STPNCPY=1;               AC_SUBST([HAVE_STPNCPY])
 
74
  HAVE_STRCHRNUL=1;             AC_SUBST([HAVE_STRCHRNUL])
 
75
  HAVE_DECL_STRDUP=1;           AC_SUBST([HAVE_DECL_STRDUP])
 
76
  HAVE_STRNDUP=1;               AC_SUBST([HAVE_STRNDUP])
 
77
  HAVE_DECL_STRNDUP=1;          AC_SUBST([HAVE_DECL_STRNDUP])
 
78
  HAVE_DECL_STRNLEN=1;          AC_SUBST([HAVE_DECL_STRNLEN])
 
79
  HAVE_STRPBRK=1;               AC_SUBST([HAVE_STRPBRK])
 
80
  HAVE_STRSEP=1;                AC_SUBST([HAVE_STRSEP])
 
81
  HAVE_STRCASESTR=1;            AC_SUBST([HAVE_STRCASESTR])
 
82
  HAVE_DECL_STRTOK_R=1;         AC_SUBST([HAVE_DECL_STRTOK_R])
 
83
  HAVE_DECL_STRERROR=1;         AC_SUBST([HAVE_DECL_STRERROR])
 
84
  HAVE_DECL_STRSIGNAL=1;        AC_SUBST([HAVE_DECL_STRSIGNAL])
 
85
  HAVE_STRVERSCMP=1;            AC_SUBST([HAVE_STRVERSCMP])
 
86
  REPLACE_MEMMEM=0;             AC_SUBST([REPLACE_MEMMEM])
 
87
  REPLACE_STRDUP=0;             AC_SUBST([REPLACE_STRDUP])
 
88
  REPLACE_STRSTR=0;             AC_SUBST([REPLACE_STRSTR])
 
89
  REPLACE_STRCASESTR=0;         AC_SUBST([REPLACE_STRCASESTR])
 
90
  REPLACE_STRERROR=0;           AC_SUBST([REPLACE_STRERROR])
 
91
  REPLACE_STRSIGNAL=0;          AC_SUBST([REPLACE_STRSIGNAL])
 
92
])