Debian Codegraph @

pc/config.sed

raw
1 # -config.sed-----------------------------------------------------------
2 # Configuration script for pc/config.h
3 # ----------------------------------------------------------------------
4
5 # Copyright (C) 2011, 2016-2019 the Free Software Foundation, Inc.
6
7 # This file is part of GAWK, the GNU implementation of the
8 # AWK Programming Language.
9
10 # GAWK is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; either version 3 of the License, or
13 # (at your option) any later version.
14
15 # GAWK is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
19
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23
24 # ----------------------------------------------------------------------
25
26 /configh\.in/a\
27 /* pc/config.h. Generated automatically by pc/config.sed. */
28
29 /^#undef DYNAMIC$/c\
30 #define DYNAMIC 1
31 s/^#undef GETPGRP_VOID *$/#define GETPGRP_VOID 1/
32 s/^#undef GETGROUPS_T *$/#define GETGROUPS_T gid_t/
33 s/^#undef HAVE_ALARM *$/#define HAVE_ALARM 1/
34 s/^#undef HAVE_ATEXIT *$/#define HAVE_ATEXIT 1/
35 /^#undef HAVE_BTOWC *$/c\
36 #define HAVE_BTOWC 1
37 /^#undef HAVE_DECL_TZNAME *$/c\
38 #define HAVE_DECL_TZNAME 1
39 s/^#undef HAVE_FCNTL_H *$/#define HAVE_FCNTL_H 1/
40 s/^#undef HAVE_FMOD *$/#define HAVE_FMOD 1/
41 /^#undef HAVE_GAI_STRERROR *$/c\
42 #define HAVE_GAI_STRERROR 1
43 /^#undef HAVE_GETADDRINFO *$/c\
44 #define HAVE_GETADDRINFO 1
45 /^#undef HAVE_INTMAX_T *$/c\
46 #define HAVE_INTMAX_T 1
47 /^#undef HAVE_INTTYPES_H *$/c\
48 #define HAVE_INTTYPES_H 1
49 /^#undef HAVE_INTTYPES_H_WITH_UINTMAX *$/c\
50 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
51 /^#undef HAVE_ISASCII *$/c\
52 #define HAVE_ISASCII 1
53 /^#undef HAVE_ISWCTYPE *$/c\
54 #define HAVE_ISWCTYPE 1
55 /^#undef HAVE_ISWLOWER *$/c\
56 #define HAVE_ISWLOWER 1
57 /^#undef HAVE_ISWUPPER *$/c\
58 #define HAVE_ISWUPPER 1
59 /^#undef HAVE_LANGINFO_CODESET *$/c\
60 #define HAVE_LANGINFO_CODESET 1
61 s/^#undef HAVE_LIBM *$/#define HAVE_LIBM 1/
62 /^#undef HAVE_LIBREADLINE *$/c\
63 /* #undef HAVE_LIBREADLINE */
64 s/^#undef HAVE_LIMITS_H *$/#define HAVE_LIMITS_H 1/
65 /^#undef HAVE_LOCALE_H *$/c\
66 #define HAVE_LOCALE_H 1
67 /^#undef HAVE_LONG_LONG *$/c\
68 #define HAVE_LONG_LONG 1
69 /^#undef HAVE_MBRLEN *$/c\
70 #define HAVE_MBRLEN 1
71 /^#undef HAVE_MBRTOWC *$/c\
72 #define HAVE_MBRTOWC 1
73 s/^#undef HAVE_MEMCMP *$/#define HAVE_MEMCMP 1/
74 s/^#undef HAVE_MEMCPY *$/#define HAVE_MEMCPY 1/
75 /^#undef HAVE_MEMMOVE *$/c\
76 #define HAVE_MEMMOVE 1
77 s/^#undef HAVE_MEMSET *$/#define HAVE_MEMSET 1/
78 s/^#undef HAVE_MKTIME *$/#define HAVE_MKTIME 1/
79 /^#undef HAVE_MPFR *$/c\
80 /* #undef HAVE_MPFR */
81 /^#undef HAVE_SETENV *$/c\
82 #define HAVE_SETENV 1
83 /^#undef HAVE_SETLOCALE *$/c\
84 #define HAVE_SETLOCALE 1
85 /^#undef HAVE_SNPRINTF *$/c\
86 #define HAVE_SNPRINTF 1
87 /^#undef HAVE_SOCKADDR_STORAGE *$/c\
88 #define HAVE_SOCKADDR_STORAGE 1
89 /^#undef HAVE_SOCKETS *$/c\
90 #define HAVE_SOCKETS 1
91 s/^#undef HAVE_STDARG_H *$/#define HAVE_STDARG_H 1/
92 /^#undef HAVE_STDBOOL_H *$/c\
93 #define HAVE_STDBOOL_H 1
94 /^#undef HAVE_STDDEF_H *$/c\
95 #ifdef __GNUC__\
96 #define HAVE_STDDEF_H 1\
97 #endif
98 /^#undef HAVE_STDINT_H *$/c\
99 #define HAVE_STDINT_H 1
100 /^#undef HAVE_STDLIB_H *$/c\
101 #define HAVE_STDLIB_H 1
102 s/^#undef HAVE_STRCHR *$/#define HAVE_STRCHR 1/
103 s/^#undef HAVE_STRERROR *$/#define HAVE_STRERROR 1/
104 /^#undef HAVE_STRFTIME *$/c\
105 /* MinGW uses the replacement from missing_d, to support the %e specifier. */\
106 #define strftime rpl_strftime
107 s/^#undef HAVE_STRINGIZE *$/#define HAVE_STRINGIZE 1/
108 s/^#undef HAVE_STRINGS_H *$/#define HAVE_STRINGS_H 1/
109 s/^#undef HAVE_STRING_H *$/#define HAVE_STRING_H 1/
110 /^#undef HAVE_STRNCASECMP *$/c\
111 #define HAVE_STRNCASECMP 1
112 s/^#undef HAVE_STRSIGNAL *$/#define HAVE_STRSIGNAL 1/
113 s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
114 /^#undef HAVE_STRTOUL *$/c\
115 #define HAVE_STRTOUL 1
116 /^#undef HAVE_STRUCT_STAT_ST_BLKSIZE *$/c\
117 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
118 s/^#undef HAVE_SYSTEM *$/#define HAVE_SYSTEM 1/
119 /^#undef HAVE_SYS_PARAM_H *$/c\
120 #define HAVE_SYS_PARAM_H 1
121 /^#undef HAVE_SYS_STAT_H *$/c\
122 #define HAVE_SYS_STAT_H 1
123 /^#undef HAVE_SYS_TIME_H *$/c\
124 #define HAVE_SYS_TIME_H 1
125 s/^#undef HAVE_SYS_TYPES_H *$/#define HAVE_SYS_TYPES_H 1/
126 /^#undef HAVE_TOWLOWER *$/c\
127 #define HAVE_TOWLOWER 1
128 /^#undef HAVE_TOWUPPER *$/c\
129 #define HAVE_TOWUPPER 1
130 s/^#undef HAVE_TZNAME *$/#define HAVE_TZNAME 1/
131 s/^#undef HAVE_TZSET *$/#define HAVE_TZSET 1/
132 /^#undef HAVE_UINTMAX_T *$/c\
133 #define HAVE_UINTMAX_T 1
134 /^#undef HAVE_UNISTD_H *$/c\
135 #define HAVE_UNISTD_H 1
136 s/^#undef HAVE_UNSIGNED_LONG_LONG *$/#define HAVE_UNSIGNED_LONG_LONG 1/
137 /^#undef HAVE_USLEEP *$/c\
138 #define HAVE_USLEEP 1
139 s/^#undef HAVE_VPRINTF *$/#define HAVE_VPRINTF 1/
140 /^#undef HAVE_WCHAR_H *$/c\
141 #define HAVE_WCHAR_H 1
142 /^#undef HAVE_WCRTOMB *$/c\
143 #define HAVE_WCRTOMB 1
144 /^#undef HAVE_WCSCOLL *$/c\
145 #define HAVE_WCSCOLL 1
146 /^#undef HAVE_WCTYPE *$/c\
147 #define HAVE_WCTYPE 1
148 /^#undef HAVE_WCTYPE_H *$/c\
149 #define HAVE_WCTYPE_H 1
150 /^#undef HAVE_WCTYPE_T *$/c\
151 #define HAVE_WCTYPE_T 1
152 /^#undef HAVE_WINT_T *$/c\
153 #define HAVE_WINT_T 1
154 /^#undef PRINTF_HAS_A_FORMAT *$/c\
155 #define PRINTF_HAS_A_FORMAT 1
156 s/^#undef PROTOTYPES *$/#define PROTOTYPES 1/
157 s/^#undef RETSIGTYPE *$/#define RETSIGTYPE void/
158 /^#.*RETSIGTYPE /a\
159 \
160 #include <limits.h>
161 s/^#undef SIZEOF_UNSIGNED_INT *$/#define SIZEOF_UNSIGNED_INT 4/
162 s/^#undef SIZEOF_UNSIGNED_LONG *$/#define SIZEOF_UNSIGNED_LONG 4/
163 s/^#undef STDC_HEADERS *$/#define STDC_HEADERS 1/
164 s/^#undef TIME_WITH_SYS_TIME *$/#define TIME_WITH_SYS_TIME 1/
165 /^#undef inline *$/c\
166 #ifdef __GNUC__\
167 #define inline __inline__\
168 #endif
169
170 /^\/\* Enable extensions on AIX 3, Interix. \*\//i\
171 /* This is required to compile Gnulib regex code. */\
172 #define _GNU_SOURCE 1
173
174 s|^#undef PACKAGE_URL *$|#define PACKAGE_URL "http://www.gnu.org/software/gawk/"|
175
176 $a\
177 \
178 #define HAVE_POPEN_H 1