annotate m4/arpa_inet_h.m4 @ 14473:acd1454e6a45

New module 'unictype/category-LC'. * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value. (UC_CATEGORY_LC): New declaration. (UC_CASED_LETTER): New macro. * lib/gen-uni-tables.c (is_category_LC): New function. (output_categories): Also handle category LC. (UC_CATEGORY_MASK_LC): New enumeration value. (general_category_byname): Also handle category LC. * lib/unictype/categ_LC.c: New file. * lib/unictype/categ_LC.h: New file, automatically generated. * lib/unictype/categ_name.c (uc_general_category_name): Also handle category LC. * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise. * modules/unictype/category-LC: New file. * modules/unictype/category-all (Depends-on): Add unictype/category-LC.
author Bruno Haible <bruno@clisp.org>
date Fri, 25 Mar 2011 20:23:43 +0100
parents 97fc9a21a8fb
children f7f11056a86e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14037
3f2c77c8adb8 inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
1 # arpa_inet_h.m4 serial 11
14079
97fc9a21a8fb maint: update almost all copyright ranges to include 2011
Jim Meyering <meyering@redhat.com>
parents: 14037
diff changeset
2 dnl Copyright (C) 2006, 2008-2011 Free Software Foundation, Inc.
6937
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
6
10010
d26ac8a528f7 Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.
Bruno Haible <bruno@clisp.org>
parents: 10007
diff changeset
7 dnl Written by Simon Josefsson and Bruno Haible
6937
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
8
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
9 AC_DEFUN([gl_HEADER_ARPA_INET],
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
10 [
9964
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
11 dnl Use AC_REQUIRE here, so that the default behavior below is expanded
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
12 dnl once only, before all statements that occur in other macros.
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
13 AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS])
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
14
6937
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
15 AC_CHECK_HEADERS_ONCE([arpa/inet.h])
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
16 if test $ac_cv_header_arpa_inet_h = yes; then
10010
d26ac8a528f7 Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.
Bruno Haible <bruno@clisp.org>
parents: 10007
diff changeset
17 HAVE_ARPA_INET_H=1
6937
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
18 else
10010
d26ac8a528f7 Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.
Bruno Haible <bruno@clisp.org>
parents: 10007
diff changeset
19 HAVE_ARPA_INET_H=0
6937
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
20 fi
10010
d26ac8a528f7 Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.
Bruno Haible <bruno@clisp.org>
parents: 10007
diff changeset
21 AC_SUBST([HAVE_ARPA_INET_H])
12547
6d50d2a81c7d Further updates, following today's commits.
Bruno Haible <bruno@clisp.org>
parents: 12536
diff changeset
22 dnl <arpa/inet.h> is always overridden, because of GNULIB_POSIXCHECK.
10010
d26ac8a528f7 Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.
Bruno Haible <bruno@clisp.org>
parents: 10007
diff changeset
23 gl_CHECK_NEXT_HEADERS([arpa/inet.h])
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
24
13887
ff73aa93842c Ensure that <features.h> is included before __GLIBC__ is tested.
Bruno Haible <bruno@clisp.org>
parents: 13885
diff changeset
25 AC_REQUIRE([gl_FEATURES_H])
ff73aa93842c Ensure that <features.h> is included before __GLIBC__ is tested.
Bruno Haible <bruno@clisp.org>
parents: 13885
diff changeset
26
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
27 dnl Check for declarations of anything we want to poison if the
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
28 dnl corresponding gnulib module is not in use.
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
29 gl_WARN_ON_USE_PREPARE([[
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
30 /* On some systems, this header is not self-consistent. */
13885
87a95303747f Port to uClibc.
Bruno Haible <bruno@clisp.org>
parents: 13066
diff changeset
31 #if !(defined __GLIBC__ || defined __UCLIBC__)
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
32 # include <sys/socket.h>
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
33 #endif
14037
3f2c77c8adb8 inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
34 #ifdef __TANDEM
3f2c77c8adb8 inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
35 # include <netdb.h>
3f2c77c8adb8 inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
36 #endif
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
37 #include <arpa/inet.h>
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
38 ]], [inet_ntop inet_pton])
6937
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
39 ])
9964
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
40
10536
397ef6c67ada Avoid assigning ARPA_INET_H in different .m4 files.
Bruno Haible <bruno@clisp.org>
parents: 10012
diff changeset
41 dnl Unconditionally enables the replacement of <arpa/inet.h>.
397ef6c67ada Avoid assigning ARPA_INET_H in different .m4 files.
Bruno Haible <bruno@clisp.org>
parents: 10012
diff changeset
42 AC_DEFUN([gl_REPLACE_ARPA_INET_H],
397ef6c67ada Avoid assigning ARPA_INET_H in different .m4 files.
Bruno Haible <bruno@clisp.org>
parents: 10012
diff changeset
43 [
12547
6d50d2a81c7d Further updates, following today's commits.
Bruno Haible <bruno@clisp.org>
parents: 12536
diff changeset
44 dnl This is a no-op, because <arpa/inet.h> is always overridden.
12536
cd64e80f94e4 link-warning: always build headers with link warnings
Eric Blake <ebb9@byu.net>
parents: 12518
diff changeset
45 :
10543
5c338d1c4d7b arpa_inet_h.m4: fix typo in previous patch
Eric Blake <ebb9@byu.net>
parents: 10536
diff changeset
46 ])
10536
397ef6c67ada Avoid assigning ARPA_INET_H in different .m4 files.
Bruno Haible <bruno@clisp.org>
parents: 10012
diff changeset
47
9964
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
48 AC_DEFUN([gl_ARPA_INET_MODULE_INDICATOR],
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
49 [
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
50 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
51 AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS])
13066
fc8c984b0733 Factorize common .m4 code.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
52 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
9964
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
53 ])
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
54
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
55 AC_DEFUN([gl_ARPA_INET_H_DEFAULTS],
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
56 [
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
57 GNULIB_INET_NTOP=0; AC_SUBST([GNULIB_INET_NTOP])
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
58 GNULIB_INET_PTON=0; AC_SUBST([GNULIB_INET_PTON])
10007
bef830fad24f Make arpa/inet module build under MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 9964
diff changeset
59 dnl Assume proper GNU behavior unless another module says otherwise.
bef830fad24f Make arpa/inet module build under MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 9964
diff changeset
60 HAVE_DECL_INET_NTOP=1; AC_SUBST([HAVE_DECL_INET_NTOP])
bef830fad24f Make arpa/inet module build under MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 9964
diff changeset
61 HAVE_DECL_INET_PTON=1; AC_SUBST([HAVE_DECL_INET_PTON])
9964
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 6937
diff changeset
62 ])