Codebase list protobuf-c / f79eb65
Import upstream version 1.4.0 Debian Janitor 2 years ago
56 changed file(s) with 5310 addition(s) and 3915 deletion(s). Raw diff Collapse all Expand all
0 protobuf-c (1.4.0)
1
2 [ Robert Edmonds ]
3 * Release 1.4.0.
4
5 [ Ilya Lipnitsky ]
6 * c_message.cc: Resolve name conflict between certain enums and oneofs
7 (#427).
8 * protobuf-c.h: Fix Windows DLL export issue with the
9 protobuf_c_empty_string symbol (#428).
10 * Standardize pkg-config for use by autotools and cmake, fix cmake tests
11 (#425).
12 * protobuf-c.c: Cast %lu args to unsigned long int (#429).
13 * protoc-c: Remove leading underscores from structs (#430).
14 * protoc-c: Fix shared lib build on windows, migrate from Travis CI to
15 GitHub Actions (#459).
16 * protobuf-c: Don't use ProtobufCWireType internally (#463).
17 * protoc-c: Add custom options support (#466).
18 * protobuf-c.c: Fix packed repeated bool parsing (#467).
19
20 [ Markus Engel ]
21 * Pack nested messages inline (#431).
22
23 [ Daniel Axtens ]
24 * Travis CI: Test on other platforms (#438).
25
26 [ Adam Cozzette ]
27 * Update the generator to fully qualify std::string (#443).
28
29 [ Piotr Pietraszkiewicz ]
30 * Install MSVC debug symbols alongside the protobuf-c.lib file (#456).
31
32 [ ihsinme ]
33 * Fix invalid unsigned arithmetic (#455).
34
35 [ Wolfram Rösler ]
36 * Avoid "unused function parameter" compiler warning (#453).
37
038 protobuf-c (1.3.3)
139
240 [ Robert Edmonds ]
4141 protobuf-c/libprotobuf-c.la
4242
4343 nobase_include_HEADERS += \
44 protobuf-c/protobuf-c.h
44 protobuf-c/protobuf-c.h \
45 protobuf-c/protobuf-c.proto
4546
4647 protobuf_c_libprotobuf_c_la_SOURCES = \
4748 protobuf-c/protobuf-c.c \
9899 protoc-c/c_service.h \
99100 protoc-c/c_string_field.cc \
100101 protoc-c/c_string_field.h \
102 protobuf-c/protobuf-c.pb.cc \
103 protobuf-c/protobuf-c.pb.h \
101104 protoc-c/main.cc
102105 protoc_c_protoc_gen_c_CXXFLAGS = \
103106 $(AM_CXXFLAGS) \
106109 $(protobuf_LIBS) \
107110 -lprotoc
108111
112 protobuf-c/protobuf-c.pb.cc protobuf-c/protobuf-c.pb.h: @PROTOC@ $(top_srcdir)/protobuf-c/protobuf-c.proto
113 $(AM_V_GEN)@PROTOC@ -I$(top_srcdir) --cpp_out=$(top_builddir) $(top_srcdir)/protobuf-c/protobuf-c.proto
114
115 BUILT_SOURCES += \
116 protobuf-c/protobuf-c.pb.cc \
117 protobuf-c/protobuf-c.pb.h
109118 #
110119 # protoc-c compat link
111120 #
154163
155164 t_generated_code2_cxx_generate_packed_data_SOURCES = \
156165 t/generated-code2/cxx-generate-packed-data.cc \
157 t/test-full.pb.cc
166 t/test-full.pb.cc \
167 protobuf-c/protobuf-c.pb.cc
158168 $(t_generated_code2_cxx_generate_packed_data_OBJECTS): t/test-full.pb.h
159169 t_generated_code2_cxx_generate_packed_data_CXXFLAGS = \
160170 $(AM_CXXFLAGS) \
215225 t_version_version_LDADD = \
216226 protobuf-c/libprotobuf-c.la
217227
228 # Issue #204
229 check_PROGRAMS += \
230 t/issue204/issue204
231 TESTS += \
232 t/issue204/issue204
233 t_issue204_issue204_SOURCES = \
234 t/issue204/issue204.c \
235 t/issue204/issue204.pb-c.c
236 t_issue204_issue204_LDADD = \
237 protobuf-c/libprotobuf-c.la
238 t/issue204/issue204.pb-c.c t/issue204/issue204.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue204/issue204.proto
239 $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue204/issue204.proto
240 BUILT_SOURCES += \
241 t/issue204/issue204.pb-c.c t/issue204/issue204.pb-c.h
242 EXTRA_DIST += \
243 t/issue204/issue204.proto
244
218245 # Issue #220
219246 check_PROGRAMS += \
220247 t/issue220/issue220
264291 $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue330/issue330.proto
265292 BUILT_SOURCES += \
266293 t/issue330/issue330.pb-c.c t/issue330/issue330.pb-c.h
294
295 t_issue330_issue330_SOURCES += \
296 t/issue389/issue389.pb-c.c # Tack onto issue330 since there is no need for a separate binary here
297 t/issue389/issue389.pb-c.c t/issue389/issue389.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue389/issue389.proto
298 $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue389/issue389.proto
299 BUILT_SOURCES += \
300 t/issue389/issue389.pb-c.c t/issue389/issue389.pb-c.h
301 EXTRA_DIST += \
302 t/issue389/issue389.proto
303
304 check_PROGRAMS += \
305 t/issue440/issue440
306 TESTS += \
307 t/issue440/issue440
308 t_issue440_issue440_SOURCES = \
309 t/issue440/issue440.c \
310 t/issue440/issue440.pb-c.c
311 t_issue440_issue440_LDADD = \
312 protobuf-c/libprotobuf-c.la
313 t/issue440/issue440.pb-c.c t/issue440/issue440.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue440/issue440.proto
314 $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue440/issue440.proto
315 BUILT_SOURCES += \
316 t/issue440/issue440.pb-c.c t/issue440/issue440.pb-c.h
317 EXTRA_DIST += \
318 t/issue440/issue440.proto
267319 endif # BUILD_PROTO3
268320 EXTRA_DIST += \
269321 t/issue330/issue330.proto
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
107107 # protoc-gen-c
108108 #
109109 @BUILD_COMPILER_TRUE@am__append_3 = protoc-c/protoc-gen-c
110 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_4 = \
111 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code/test-generated-code \
112 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code2/test-generated-code2 \
113 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/version/version
110 @BUILD_COMPILER_TRUE@am__append_4 = \
111 @BUILD_COMPILER_TRUE@ protobuf-c/protobuf-c.pb.cc \
112 @BUILD_COMPILER_TRUE@ protobuf-c/protobuf-c.pb.h
114113
115114 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_5 = \
116115 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code/test-generated-code \
118117 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/version/version
119118
120119 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_6 = \
120 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code/test-generated-code \
121 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code2/test-generated-code2 \
122 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/version/version
123
124 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_7 = \
121125 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code2/cxx-generate-packed-data
122126
123 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_7 = \
127 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_8 = \
124128 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/test.pb-c.c t/test.pb-c.h \
125129 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/test-full.pb-c.c t/test-full.pb-c.h \
126130 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/test-optimized.pb-c.c t/test-optimized.pb-c.h \
127131 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/test-full.pb.cc t/test-full.pb.h \
128132 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code2/test-full-cxx-output.inc
129133
130 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_8 = \
131 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code3/test-generated-code3
132
133134 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_9 = \
134135 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code3/test-generated-code3
135136
136137 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_10 = \
138 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code3/test-generated-code3
139
140 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_11 = \
137141 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/test-proto3.pb-c.c t/test-proto3.pb-c.h
138142
139143
144 # Issue #204
145
140146 # Issue #220
141147
142148 # Issue #251
143 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_11 = t/issue220/issue220 \
149 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_12 = t/issue204/issue204 \
150 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220 \
144151 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251
145 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_12 = t/issue220/issue220 \
152 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_13 = t/issue204/issue204 \
153 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220 \
146154 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251
147 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_13 = t/issue220/issue220.pb-c.c \
155 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_14 = t/issue204/issue204.pb-c.c \
156 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue204/issue204.pb-c.h \
157 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220.pb-c.c \
148158 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220.pb-c.h \
149159 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251.pb-c.c \
150160 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251.pb-c.h
151 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_14 = t/issue220/issue220.proto \
152 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251.proto \
153 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.proto \
161 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_15 = t/issue204/issue204.proto \
162 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220.proto \
163 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251.proto
164
165 # Issue #330
166 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_16 = t/issue330/issue330 \
167 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440
168 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_17 = t/issue330/issue330 \
169 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440
170 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_18 = t/issue330/issue330.pb-c.c \
171 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.h \
172 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue389/issue389.pb-c.c \
173 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue389/issue389.pb-c.h \
174 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440.pb-c.c \
175 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440.pb-c.h
176 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_19 = t/issue389/issue389.proto \
177 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440.proto
178 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_20 = t/issue330/issue330.proto \
154179 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375.proto
155180
156 # Issue #330
157 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_15 = \
158 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330
159
160 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_16 = \
161 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330
162
163 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_17 = \
164 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.c t/issue330/issue330.pb-c.h
165
166
167181 # Issue #375
168 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_18 = \
182 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_21 = \
169183 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375
170184
171 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_19 = \
185 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_22 = \
172186 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375
173187
174 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_20 = \
188 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_23 = \
175189 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375.pb-c.c t/issue375/issue375.pb-c.h
176190
177191 subdir = .
202216 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code2/test-generated-code2$(EXEEXT) \
203217 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/version/version$(EXEEXT)
204218 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_3 = t/generated-code3/test-generated-code3$(EXEEXT)
205 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_4 = t/issue220/issue220$(EXEEXT) \
219 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_4 = t/issue204/issue204$(EXEEXT) \
220 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220$(EXEEXT) \
206221 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251$(EXEEXT)
207 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_5 = t/issue330/issue330$(EXEEXT)
222 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_5 = t/issue330/issue330$(EXEEXT) \
223 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440$(EXEEXT)
208224 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_6 = t/issue375/issue375$(EXEEXT)
209225 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_7 = t/generated-code2/cxx-generate-packed-data$(EXEEXT)
210226 PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
261277 protoc-c/c_message_field.h protoc-c/c_primitive_field.cc \
262278 protoc-c/c_primitive_field.h protoc-c/c_service.cc \
263279 protoc-c/c_service.h protoc-c/c_string_field.cc \
264 protoc-c/c_string_field.h protoc-c/main.cc
280 protoc-c/c_string_field.h protobuf-c/protobuf-c.pb.cc \
281 protobuf-c/protobuf-c.pb.h protoc-c/main.cc
265282 @BUILD_COMPILER_TRUE@am_protoc_c_protoc_gen_c_OBJECTS = protoc-c/protoc_gen_c-c_bytes_field.$(OBJEXT) \
266283 @BUILD_COMPILER_TRUE@ protoc-c/protoc_gen_c-c_enum.$(OBJEXT) \
267284 @BUILD_COMPILER_TRUE@ protoc-c/protoc_gen_c-c_enum_field.$(OBJEXT) \
275292 @BUILD_COMPILER_TRUE@ protoc-c/protoc_gen_c-c_primitive_field.$(OBJEXT) \
276293 @BUILD_COMPILER_TRUE@ protoc-c/protoc_gen_c-c_service.$(OBJEXT) \
277294 @BUILD_COMPILER_TRUE@ protoc-c/protoc_gen_c-c_string_field.$(OBJEXT) \
295 @BUILD_COMPILER_TRUE@ protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.$(OBJEXT) \
278296 @BUILD_COMPILER_TRUE@ protoc-c/protoc_gen_c-main.$(OBJEXT)
279297 protoc_c_protoc_gen_c_OBJECTS = $(am_protoc_c_protoc_gen_c_OBJECTS)
280298 am__DEPENDENCIES_1 =
293311 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_generated_code_test_generated_code_DEPENDENCIES = protobuf-c/libprotobuf-c.la
294312 am__t_generated_code2_cxx_generate_packed_data_SOURCES_DIST = \
295313 t/generated-code2/cxx-generate-packed-data.cc \
296 t/test-full.pb.cc
314 t/test-full.pb.cc protobuf-c/protobuf-c.pb.cc
297315 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am_t_generated_code2_cxx_generate_packed_data_OBJECTS = t/generated-code2/cxx_generate_packed_data-cxx-generate-packed-data.$(OBJEXT) \
298 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated_code2_cxx_generate_packed_data-test-full.pb.$(OBJEXT)
316 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated_code2_cxx_generate_packed_data-test-full.pb.$(OBJEXT) \
317 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.$(OBJEXT)
299318 t_generated_code2_cxx_generate_packed_data_OBJECTS = \
300319 $(am_t_generated_code2_cxx_generate_packed_data_OBJECTS)
301320 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_generated_code2_cxx_generate_packed_data_DEPENDENCIES = $(am__DEPENDENCIES_1)
320339 t_generated_code3_test_generated_code3_OBJECTS = \
321340 $(am_t_generated_code3_test_generated_code3_OBJECTS)
322341 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_generated_code3_test_generated_code3_DEPENDENCIES = protobuf-c/libprotobuf-c.la
342 am__t_issue204_issue204_SOURCES_DIST = t/issue204/issue204.c \
343 t/issue204/issue204.pb-c.c
344 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am_t_issue204_issue204_OBJECTS = t/issue204/issue204.$(OBJEXT) \
345 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue204/issue204.pb-c.$(OBJEXT)
346 t_issue204_issue204_OBJECTS = $(am_t_issue204_issue204_OBJECTS)
347 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue204_issue204_DEPENDENCIES = protobuf-c/libprotobuf-c.la
323348 am__t_issue220_issue220_SOURCES_DIST = t/issue220/issue220.c \
324349 t/issue220/issue220.pb-c.c
325350 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am_t_issue220_issue220_OBJECTS = t/issue220/issue220.$(OBJEXT) \
333358 t_issue251_issue251_OBJECTS = $(am_t_issue251_issue251_OBJECTS)
334359 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue251_issue251_DEPENDENCIES = protobuf-c/libprotobuf-c.la
335360 am__t_issue330_issue330_SOURCES_DIST = t/issue330/issue330.c \
336 t/issue330/issue330.pb-c.c
361 t/issue330/issue330.pb-c.c t/issue389/issue389.pb-c.c
337362 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am_t_issue330_issue330_OBJECTS = t/issue330/issue330.$(OBJEXT) \
338 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.$(OBJEXT)
363 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.$(OBJEXT) \
364 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue389/issue389.pb-c.$(OBJEXT)
339365 t_issue330_issue330_OBJECTS = $(am_t_issue330_issue330_OBJECTS)
340366 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_issue330_issue330_DEPENDENCIES = protobuf-c/libprotobuf-c.la
341367 am__t_issue375_issue375_SOURCES_DIST = t/issue375/issue375.c \
344370 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375.pb-c.$(OBJEXT)
345371 t_issue375_issue375_OBJECTS = $(am_t_issue375_issue375_OBJECTS)
346372 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue375_issue375_DEPENDENCIES = protobuf-c/libprotobuf-c.la
373 am__t_issue440_issue440_SOURCES_DIST = t/issue440/issue440.c \
374 t/issue440/issue440.pb-c.c
375 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am_t_issue440_issue440_OBJECTS = t/issue440/issue440.$(OBJEXT) \
376 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440.pb-c.$(OBJEXT)
377 t_issue440_issue440_OBJECTS = $(am_t_issue440_issue440_OBJECTS)
378 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_issue440_issue440_DEPENDENCIES = protobuf-c/libprotobuf-c.la
347379 am__t_version_version_SOURCES_DIST = t/version/version.c
348380 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am_t_version_version_OBJECTS = t/version/version.$(OBJEXT)
349381 t_version_version_OBJECTS = $(am_t_version_version_OBJECTS)
364396 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
365397 am__maybe_remake_depfiles = depfiles
366398 am__depfiles_remade = protobuf-c/$(DEPDIR)/protobuf-c.Plo \
399 protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Po \
400 protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Po \
367401 protoc-c/$(DEPDIR)/protoc_gen_c-c_bytes_field.Po \
368402 protoc-c/$(DEPDIR)/protoc_gen_c-c_enum.Po \
369403 protoc-c/$(DEPDIR)/protoc_gen_c-c_enum_field.Po \
386420 t/generated-code/$(DEPDIR)/test-generated-code.Po \
387421 t/generated-code2/$(DEPDIR)/cxx_generate_packed_data-cxx-generate-packed-data.Po \
388422 t/generated-code2/$(DEPDIR)/test-generated-code2.Po \
423 t/issue204/$(DEPDIR)/issue204.Po \
424 t/issue204/$(DEPDIR)/issue204.pb-c.Po \
389425 t/issue220/$(DEPDIR)/issue220.Po \
390426 t/issue220/$(DEPDIR)/issue220.pb-c.Po \
391427 t/issue251/$(DEPDIR)/issue251.Po \
394430 t/issue330/$(DEPDIR)/issue330.pb-c.Po \
395431 t/issue375/$(DEPDIR)/issue375.Po \
396432 t/issue375/$(DEPDIR)/issue375.pb-c.Po \
433 t/issue389/$(DEPDIR)/issue389.pb-c.Po \
434 t/issue440/$(DEPDIR)/issue440.Po \
435 t/issue440/$(DEPDIR)/issue440.pb-c.Po \
397436 t/version/$(DEPDIR)/version.Po
398437 am__mv = mv -f
399438 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
438477 $(t_generated_code2_cxx_generate_packed_data_SOURCES) \
439478 $(t_generated_code2_test_generated_code2_SOURCES) \
440479 $(t_generated_code3_test_generated_code3_SOURCES) \
441 $(t_issue220_issue220_SOURCES) $(t_issue251_issue251_SOURCES) \
442 $(t_issue330_issue330_SOURCES) $(t_issue375_issue375_SOURCES) \
480 $(t_issue204_issue204_SOURCES) $(t_issue220_issue220_SOURCES) \
481 $(t_issue251_issue251_SOURCES) $(t_issue330_issue330_SOURCES) \
482 $(t_issue375_issue375_SOURCES) $(t_issue440_issue440_SOURCES) \
443483 $(t_version_version_SOURCES)
444484 DIST_SOURCES = $(protobuf_c_libprotobuf_c_la_SOURCES) \
445485 $(am__protoc_c_protoc_gen_c_SOURCES_DIST) \
447487 $(am__t_generated_code2_cxx_generate_packed_data_SOURCES_DIST) \
448488 $(am__t_generated_code2_test_generated_code2_SOURCES_DIST) \
449489 $(am__t_generated_code3_test_generated_code3_SOURCES_DIST) \
490 $(am__t_issue204_issue204_SOURCES_DIST) \
450491 $(am__t_issue220_issue220_SOURCES_DIST) \
451492 $(am__t_issue251_issue251_SOURCES_DIST) \
452493 $(am__t_issue330_issue330_SOURCES_DIST) \
453494 $(am__t_issue375_issue375_SOURCES_DIST) \
495 $(am__t_issue440_issue440_SOURCES_DIST) \
454496 $(am__t_version_version_SOURCES_DIST)
455497 am__can_run_installinfo = \
456498 case $$AM_UPDATE_INFO_DIR in \
459501 esac
460502 DATA = $(pkgconfig_DATA)
461503 HEADERS = $(nobase_include_HEADERS)
462 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
463 $(LISP)config.h.in
504 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
505 config.h.in
464506 # Read a list of newline-separated strings from the standard input,
465507 # and print each of them once, without duplicates. Input order is
466508 # *not* preserved.
477519 unique=`for i in $$list; do \
478520 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
479521 done | $(am__uniquify_input)`
480 ETAGS = etags
481 CTAGS = ctags
482 CSCOPE = cscope
483522 AM_RECURSIVE_TARGETS = cscope check recheck
484523 am__tty_colors_dummy = \
485524 mgn= red= grn= lgn= blu= brg= std=; \
636675 bases='$(TEST_LOGS)'; \
637676 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
638677 bases=`echo $$bases`
678 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
639679 RECHECK_LOGS = $(TEST_LOGS)
640680 TEST_SUITE_LOG = test-suite.log
641681 TEST_EXTENSIONS = @EXEEXT@ .test
666706 $(top_srcdir)/build-aux/ltmain.sh \
667707 $(top_srcdir)/build-aux/missing \
668708 $(top_srcdir)/build-aux/test-driver \
669 $(top_srcdir)/protobuf-c/libprotobuf-c.pc.in ChangeLog TODO \
670 build-aux/compile build-aux/config.guess build-aux/config.sub \
671 build-aux/depcomp build-aux/install-sh build-aux/ltmain.sh \
672 build-aux/missing
709 $(top_srcdir)/protobuf-c/libprotobuf-c.pc.in ChangeLog \
710 README.md TODO build-aux/compile build-aux/config.guess \
711 build-aux/config.sub build-aux/depcomp build-aux/install-sh \
712 build-aux/ltmain.sh build-aux/missing
673713 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
674714 distdir = $(PACKAGE)-$(VERSION)
675715 top_distdir = $(distdir)
683723 DIST_ARCHIVES = $(distdir).tar.gz
684724 GZIP_ENV = --best
685725 DIST_TARGETS = dist-gzip
726 # Exists only to be overridden by the user if desired.
727 AM_DISTCHECK_DVI_TARGET = dvi
686728 distuninstallcheck_listfiles = find . -type f -print
687729 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
688730 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
701743 CODE_COVERAGE_CFLAGS = @CODE_COVERAGE_CFLAGS@
702744 CODE_COVERAGE_ENABLED = @CODE_COVERAGE_ENABLED@
703745 CODE_COVERAGE_LDFLAGS = @CODE_COVERAGE_LDFLAGS@
704 CPP = @CPP@
705746 CPPFLAGS = @CPPFLAGS@
747 CSCOPE = @CSCOPE@
748 CTAGS = @CTAGS@
706749 CXX = @CXX@
707750 CXXCPP = @CXXCPP@
708751 CXXDEPMODE = @CXXDEPMODE@
719762 ECHO_N = @ECHO_N@
720763 ECHO_T = @ECHO_T@
721764 EGREP = @EGREP@
765 ETAGS = @ETAGS@
722766 EXEEXT = @EXEEXT@
723767 FGREP = @FGREP@
724768 GENHTML = @GENHTML@
827871 top_builddir = @top_builddir@
828872 top_srcdir = @top_srcdir@
829873 lib_LTLIBRARIES = protobuf-c/libprotobuf-c.la
830 nobase_include_HEADERS = protobuf-c/protobuf-c.h
874 nobase_include_HEADERS = protobuf-c/protobuf-c.h \
875 protobuf-c/protobuf-c.proto
831876 pkgconfig_DATA = protobuf-c/libprotobuf-c.pc
832 BUILT_SOURCES = $(am__append_7) $(am__append_10) $(am__append_13) \
833 $(am__append_17) $(am__append_20)
877 BUILT_SOURCES = $(am__append_4) $(am__append_8) $(am__append_11) \
878 $(am__append_14) $(am__append_18) $(am__append_23)
834879
835880 #
836881 #
838883 CLEANFILES = protobuf-c/libprotobuf-c.pc $(BUILT_SOURCES)
839884 DISTCLEANFILES =
840885 EXTRA_DIST = LICENSE README.md protobuf-c/libprotobuf-c.sym \
841 protobuf-c/libprotobuf-c.pc.in $(am__append_14) t/test.proto \
886 protobuf-c/libprotobuf-c.pc.in $(am__append_15) \
887 $(am__append_19) $(am__append_20) t/test.proto \
842888 t/test-full.proto t/test-optimized.proto t/test-proto3.proto \
843889 t/generated-code2/common-test-arrays.h Doxyfile.in \
844890 DoxygenLayout.xml build-cmake/CMakeLists.txt
896942 @BUILD_COMPILER_TRUE@ protoc-c/c_service.h \
897943 @BUILD_COMPILER_TRUE@ protoc-c/c_string_field.cc \
898944 @BUILD_COMPILER_TRUE@ protoc-c/c_string_field.h \
945 @BUILD_COMPILER_TRUE@ protobuf-c/protobuf-c.pb.cc \
946 @BUILD_COMPILER_TRUE@ protobuf-c/protobuf-c.pb.h \
899947 @BUILD_COMPILER_TRUE@ protoc-c/main.cc
900948
901949 @BUILD_COMPILER_TRUE@protoc_c_protoc_gen_c_CXXFLAGS = \
932980
933981 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_generated_code2_cxx_generate_packed_data_SOURCES = \
934982 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code2/cxx-generate-packed-data.cc \
935 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/test-full.pb.cc
983 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/test-full.pb.cc \
984 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/protobuf-c.pb.cc
936985
937986 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_generated_code2_cxx_generate_packed_data_CXXFLAGS = \
938987 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ $(AM_CXXFLAGS) \
9571006 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_version_version_LDADD = \
9581007 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/libprotobuf-c.la
9591008
1009 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue204_issue204_SOURCES = \
1010 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue204/issue204.c \
1011 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue204/issue204.pb-c.c
1012
1013 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue204_issue204_LDADD = \
1014 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/libprotobuf-c.la
1015
9601016 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue220_issue220_SOURCES = \
9611017 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220.c \
9621018 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220.pb-c.c
9711027 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue251_issue251_LDADD = \
9721028 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/libprotobuf-c.la
9731029
974 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_issue330_issue330_SOURCES = \
975 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.c \
976 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.c
977
1030 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_issue330_issue330_SOURCES = t/issue330/issue330.c \
1031 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.c \
1032 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue389/issue389.pb-c.c \
1033 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ # \
1034 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ Tack \
1035 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ onto \
1036 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ issue330 \
1037 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ since \
1038 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ there \
1039 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ is \
1040 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ no \
1041 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ need \
1042 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ for \
1043 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ a \
1044 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ separate \
1045 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ binary \
1046 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ here
9781047 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_issue330_issue330_LDADD = \
1048 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/libprotobuf-c.la
1049
1050 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_issue440_issue440_SOURCES = \
1051 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440.c \
1052 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440.pb-c.c
1053
1054 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_issue440_issue440_LDADD = \
9791055 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/libprotobuf-c.la
9801056
9811057 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue375_issue375_SOURCES = \
11871263 protoc-c/$(DEPDIR)/$(am__dirstamp)
11881264 protoc-c/protoc_gen_c-c_string_field.$(OBJEXT): \
11891265 protoc-c/$(am__dirstamp) protoc-c/$(DEPDIR)/$(am__dirstamp)
1266 protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.$(OBJEXT): \
1267 protobuf-c/$(am__dirstamp) \
1268 protobuf-c/$(DEPDIR)/$(am__dirstamp)
11901269 protoc-c/protoc_gen_c-main.$(OBJEXT): protoc-c/$(am__dirstamp) \
11911270 protoc-c/$(DEPDIR)/$(am__dirstamp)
11921271
12241303 t/generated-code2/$(DEPDIR)/$(am__dirstamp)
12251304 t/generated_code2_cxx_generate_packed_data-test-full.pb.$(OBJEXT): \
12261305 t/$(am__dirstamp) t/$(DEPDIR)/$(am__dirstamp)
1306 protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.$(OBJEXT): \
1307 protobuf-c/$(am__dirstamp) \
1308 protobuf-c/$(DEPDIR)/$(am__dirstamp)
12271309
12281310 t/generated-code2/cxx-generate-packed-data$(EXEEXT): $(t_generated_code2_cxx_generate_packed_data_OBJECTS) $(t_generated_code2_cxx_generate_packed_data_DEPENDENCIES) $(EXTRA_t_generated_code2_cxx_generate_packed_data_DEPENDENCIES) t/generated-code2/$(am__dirstamp)
12291311 @rm -f t/generated-code2/cxx-generate-packed-data$(EXEEXT)
12511333 t/generated-code3/test-generated-code3$(EXEEXT): $(t_generated_code3_test_generated_code3_OBJECTS) $(t_generated_code3_test_generated_code3_DEPENDENCIES) $(EXTRA_t_generated_code3_test_generated_code3_DEPENDENCIES) t/generated-code3/$(am__dirstamp)
12521334 @rm -f t/generated-code3/test-generated-code3$(EXEEXT)
12531335 $(AM_V_CCLD)$(LINK) $(t_generated_code3_test_generated_code3_OBJECTS) $(t_generated_code3_test_generated_code3_LDADD) $(LIBS)
1336 t/issue204/$(am__dirstamp):
1337 @$(MKDIR_P) t/issue204
1338 @: > t/issue204/$(am__dirstamp)
1339 t/issue204/$(DEPDIR)/$(am__dirstamp):
1340 @$(MKDIR_P) t/issue204/$(DEPDIR)
1341 @: > t/issue204/$(DEPDIR)/$(am__dirstamp)
1342 t/issue204/issue204.$(OBJEXT): t/issue204/$(am__dirstamp) \
1343 t/issue204/$(DEPDIR)/$(am__dirstamp)
1344 t/issue204/issue204.pb-c.$(OBJEXT): t/issue204/$(am__dirstamp) \
1345 t/issue204/$(DEPDIR)/$(am__dirstamp)
1346
1347 t/issue204/issue204$(EXEEXT): $(t_issue204_issue204_OBJECTS) $(t_issue204_issue204_DEPENDENCIES) $(EXTRA_t_issue204_issue204_DEPENDENCIES) t/issue204/$(am__dirstamp)
1348 @rm -f t/issue204/issue204$(EXEEXT)
1349 $(AM_V_CCLD)$(LINK) $(t_issue204_issue204_OBJECTS) $(t_issue204_issue204_LDADD) $(LIBS)
12541350 t/issue220/$(am__dirstamp):
12551351 @$(MKDIR_P) t/issue220
12561352 @: > t/issue220/$(am__dirstamp)
12891385 t/issue330/$(DEPDIR)/$(am__dirstamp)
12901386 t/issue330/issue330.pb-c.$(OBJEXT): t/issue330/$(am__dirstamp) \
12911387 t/issue330/$(DEPDIR)/$(am__dirstamp)
1388 t/issue389/$(am__dirstamp):
1389 @$(MKDIR_P) t/issue389
1390 @: > t/issue389/$(am__dirstamp)
1391 t/issue389/$(DEPDIR)/$(am__dirstamp):
1392 @$(MKDIR_P) t/issue389/$(DEPDIR)
1393 @: > t/issue389/$(DEPDIR)/$(am__dirstamp)
1394 t/issue389/issue389.pb-c.$(OBJEXT): t/issue389/$(am__dirstamp) \
1395 t/issue389/$(DEPDIR)/$(am__dirstamp)
12921396
12931397 t/issue330/issue330$(EXEEXT): $(t_issue330_issue330_OBJECTS) $(t_issue330_issue330_DEPENDENCIES) $(EXTRA_t_issue330_issue330_DEPENDENCIES) t/issue330/$(am__dirstamp)
12941398 @rm -f t/issue330/issue330$(EXEEXT)
13071411 t/issue375/issue375$(EXEEXT): $(t_issue375_issue375_OBJECTS) $(t_issue375_issue375_DEPENDENCIES) $(EXTRA_t_issue375_issue375_DEPENDENCIES) t/issue375/$(am__dirstamp)
13081412 @rm -f t/issue375/issue375$(EXEEXT)
13091413 $(AM_V_CCLD)$(LINK) $(t_issue375_issue375_OBJECTS) $(t_issue375_issue375_LDADD) $(LIBS)
1414 t/issue440/$(am__dirstamp):
1415 @$(MKDIR_P) t/issue440
1416 @: > t/issue440/$(am__dirstamp)
1417 t/issue440/$(DEPDIR)/$(am__dirstamp):
1418 @$(MKDIR_P) t/issue440/$(DEPDIR)
1419 @: > t/issue440/$(DEPDIR)/$(am__dirstamp)
1420 t/issue440/issue440.$(OBJEXT): t/issue440/$(am__dirstamp) \
1421 t/issue440/$(DEPDIR)/$(am__dirstamp)
1422 t/issue440/issue440.pb-c.$(OBJEXT): t/issue440/$(am__dirstamp) \
1423 t/issue440/$(DEPDIR)/$(am__dirstamp)
1424
1425 t/issue440/issue440$(EXEEXT): $(t_issue440_issue440_OBJECTS) $(t_issue440_issue440_DEPENDENCIES) $(EXTRA_t_issue440_issue440_DEPENDENCIES) t/issue440/$(am__dirstamp)
1426 @rm -f t/issue440/issue440$(EXEEXT)
1427 $(AM_V_CCLD)$(LINK) $(t_issue440_issue440_OBJECTS) $(t_issue440_issue440_LDADD) $(LIBS)
13101428 t/version/$(am__dirstamp):
13111429 @$(MKDIR_P) t/version
13121430 @: > t/version/$(am__dirstamp)
13281446 -rm -f t/*.$(OBJEXT)
13291447 -rm -f t/generated-code/*.$(OBJEXT)
13301448 -rm -f t/generated-code2/*.$(OBJEXT)
1449 -rm -f t/issue204/*.$(OBJEXT)
13311450 -rm -f t/issue220/*.$(OBJEXT)
13321451 -rm -f t/issue251/*.$(OBJEXT)
13331452 -rm -f t/issue330/*.$(OBJEXT)
13341453 -rm -f t/issue375/*.$(OBJEXT)
1454 -rm -f t/issue389/*.$(OBJEXT)
1455 -rm -f t/issue440/*.$(OBJEXT)
13351456 -rm -f t/version/*.$(OBJEXT)
13361457
13371458 distclean-compile:
13381459 -rm -f *.tab.c
13391460
13401461 @AMDEP_TRUE@@am__include@ @am__quote@protobuf-c/$(DEPDIR)/protobuf-c.Plo@am__quote@ # am--include-marker
1462 @AMDEP_TRUE@@am__include@ @am__quote@protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Po@am__quote@ # am--include-marker
1463 @AMDEP_TRUE@@am__include@ @am__quote@protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Po@am__quote@ # am--include-marker
13411464 @AMDEP_TRUE@@am__include@ @am__quote@protoc-c/$(DEPDIR)/protoc_gen_c-c_bytes_field.Po@am__quote@ # am--include-marker
13421465 @AMDEP_TRUE@@am__include@ @am__quote@protoc-c/$(DEPDIR)/protoc_gen_c-c_enum.Po@am__quote@ # am--include-marker
13431466 @AMDEP_TRUE@@am__include@ @am__quote@protoc-c/$(DEPDIR)/protoc_gen_c-c_enum_field.Po@am__quote@ # am--include-marker
13611484 @AMDEP_TRUE@@am__include@ @am__quote@t/generated-code/$(DEPDIR)/test-generated-code.Po@am__quote@ # am--include-marker
13621485 @AMDEP_TRUE@@am__include@ @am__quote@t/generated-code2/$(DEPDIR)/cxx_generate_packed_data-cxx-generate-packed-data.Po@am__quote@ # am--include-marker
13631486 @AMDEP_TRUE@@am__include@ @am__quote@t/generated-code2/$(DEPDIR)/test-generated-code2.Po@am__quote@ # am--include-marker
1487 @AMDEP_TRUE@@am__include@ @am__quote@t/issue204/$(DEPDIR)/issue204.Po@am__quote@ # am--include-marker
1488 @AMDEP_TRUE@@am__include@ @am__quote@t/issue204/$(DEPDIR)/issue204.pb-c.Po@am__quote@ # am--include-marker
13641489 @AMDEP_TRUE@@am__include@ @am__quote@t/issue220/$(DEPDIR)/issue220.Po@am__quote@ # am--include-marker
13651490 @AMDEP_TRUE@@am__include@ @am__quote@t/issue220/$(DEPDIR)/issue220.pb-c.Po@am__quote@ # am--include-marker
13661491 @AMDEP_TRUE@@am__include@ @am__quote@t/issue251/$(DEPDIR)/issue251.Po@am__quote@ # am--include-marker
13691494 @AMDEP_TRUE@@am__include@ @am__quote@t/issue330/$(DEPDIR)/issue330.pb-c.Po@am__quote@ # am--include-marker
13701495 @AMDEP_TRUE@@am__include@ @am__quote@t/issue375/$(DEPDIR)/issue375.Po@am__quote@ # am--include-marker
13711496 @AMDEP_TRUE@@am__include@ @am__quote@t/issue375/$(DEPDIR)/issue375.pb-c.Po@am__quote@ # am--include-marker
1497 @AMDEP_TRUE@@am__include@ @am__quote@t/issue389/$(DEPDIR)/issue389.pb-c.Po@am__quote@ # am--include-marker
1498 @AMDEP_TRUE@@am__include@ @am__quote@t/issue440/$(DEPDIR)/issue440.Po@am__quote@ # am--include-marker
1499 @AMDEP_TRUE@@am__include@ @am__quote@t/issue440/$(DEPDIR)/issue440.pb-c.Po@am__quote@ # am--include-marker
13721500 @AMDEP_TRUE@@am__include@ @am__quote@t/version/$(DEPDIR)/version.Po@am__quote@ # am--include-marker
13731501
13741502 $(am__depfiles_remade):
16351763 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
16361764 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(protoc_c_protoc_gen_c_CXXFLAGS) $(CXXFLAGS) -c -o protoc-c/protoc_gen_c-c_string_field.obj `if test -f 'protoc-c/c_string_field.cc'; then $(CYGPATH_W) 'protoc-c/c_string_field.cc'; else $(CYGPATH_W) '$(srcdir)/protoc-c/c_string_field.cc'; fi`
16371765
1766 protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.o: protobuf-c/protobuf-c.pb.cc
1767 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(protoc_c_protoc_gen_c_CXXFLAGS) $(CXXFLAGS) -MT protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.o -MD -MP -MF protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Tpo -c -o protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.o `test -f 'protobuf-c/protobuf-c.pb.cc' || echo '$(srcdir)/'`protobuf-c/protobuf-c.pb.cc
1768 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Tpo protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Po
1769 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='protobuf-c/protobuf-c.pb.cc' object='protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.o' libtool=no @AMDEPBACKSLASH@
1770 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1771 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(protoc_c_protoc_gen_c_CXXFLAGS) $(CXXFLAGS) -c -o protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.o `test -f 'protobuf-c/protobuf-c.pb.cc' || echo '$(srcdir)/'`protobuf-c/protobuf-c.pb.cc
1772
1773 protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.obj: protobuf-c/protobuf-c.pb.cc
1774 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(protoc_c_protoc_gen_c_CXXFLAGS) $(CXXFLAGS) -MT protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.obj -MD -MP -MF protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Tpo -c -o protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.obj `if test -f 'protobuf-c/protobuf-c.pb.cc'; then $(CYGPATH_W) 'protobuf-c/protobuf-c.pb.cc'; else $(CYGPATH_W) '$(srcdir)/protobuf-c/protobuf-c.pb.cc'; fi`
1775 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Tpo protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Po
1776 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='protobuf-c/protobuf-c.pb.cc' object='protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.obj' libtool=no @AMDEPBACKSLASH@
1777 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1778 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(protoc_c_protoc_gen_c_CXXFLAGS) $(CXXFLAGS) -c -o protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.obj `if test -f 'protobuf-c/protobuf-c.pb.cc'; then $(CYGPATH_W) 'protobuf-c/protobuf-c.pb.cc'; else $(CYGPATH_W) '$(srcdir)/protobuf-c/protobuf-c.pb.cc'; fi`
1779
16381780 protoc-c/protoc_gen_c-main.o: protoc-c/main.cc
16391781 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(protoc_c_protoc_gen_c_CXXFLAGS) $(CXXFLAGS) -MT protoc-c/protoc_gen_c-main.o -MD -MP -MF protoc-c/$(DEPDIR)/protoc_gen_c-main.Tpo -c -o protoc-c/protoc_gen_c-main.o `test -f 'protoc-c/main.cc' || echo '$(srcdir)/'`protoc-c/main.cc
16401782 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) protoc-c/$(DEPDIR)/protoc_gen_c-main.Tpo protoc-c/$(DEPDIR)/protoc_gen_c-main.Po
16761818 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='t/test-full.pb.cc' object='t/generated_code2_cxx_generate_packed_data-test-full.pb.obj' libtool=no @AMDEPBACKSLASH@
16771819 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
16781820 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(t_generated_code2_cxx_generate_packed_data_CXXFLAGS) $(CXXFLAGS) -c -o t/generated_code2_cxx_generate_packed_data-test-full.pb.obj `if test -f 't/test-full.pb.cc'; then $(CYGPATH_W) 't/test-full.pb.cc'; else $(CYGPATH_W) '$(srcdir)/t/test-full.pb.cc'; fi`
1821
1822 protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.o: protobuf-c/protobuf-c.pb.cc
1823 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(t_generated_code2_cxx_generate_packed_data_CXXFLAGS) $(CXXFLAGS) -MT protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.o -MD -MP -MF protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Tpo -c -o protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.o `test -f 'protobuf-c/protobuf-c.pb.cc' || echo '$(srcdir)/'`protobuf-c/protobuf-c.pb.cc
1824 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Tpo protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Po
1825 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='protobuf-c/protobuf-c.pb.cc' object='protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.o' libtool=no @AMDEPBACKSLASH@
1826 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1827 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(t_generated_code2_cxx_generate_packed_data_CXXFLAGS) $(CXXFLAGS) -c -o protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.o `test -f 'protobuf-c/protobuf-c.pb.cc' || echo '$(srcdir)/'`protobuf-c/protobuf-c.pb.cc
1828
1829 protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.obj: protobuf-c/protobuf-c.pb.cc
1830 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(t_generated_code2_cxx_generate_packed_data_CXXFLAGS) $(CXXFLAGS) -MT protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.obj -MD -MP -MF protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Tpo -c -o protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.obj `if test -f 'protobuf-c/protobuf-c.pb.cc'; then $(CYGPATH_W) 'protobuf-c/protobuf-c.pb.cc'; else $(CYGPATH_W) '$(srcdir)/protobuf-c/protobuf-c.pb.cc'; fi`
1831 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Tpo protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Po
1832 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='protobuf-c/protobuf-c.pb.cc' object='protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.obj' libtool=no @AMDEPBACKSLASH@
1833 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1834 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(t_generated_code2_cxx_generate_packed_data_CXXFLAGS) $(CXXFLAGS) -c -o protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.obj `if test -f 'protobuf-c/protobuf-c.pb.cc'; then $(CYGPATH_W) 'protobuf-c/protobuf-c.pb.cc'; else $(CYGPATH_W) '$(srcdir)/protobuf-c/protobuf-c.pb.cc'; fi`
16791835
16801836 mostlyclean-libtool:
16811837 -rm -f *.lo
16871843 -rm -rf t/generated-code/.libs t/generated-code/_libs
16881844 -rm -rf t/generated-code2/.libs t/generated-code2/_libs
16891845 -rm -rf t/generated-code3/.libs t/generated-code3/_libs
1846 -rm -rf t/issue204/.libs t/issue204/_libs
16901847 -rm -rf t/issue220/.libs t/issue220/_libs
16911848 -rm -rf t/issue251/.libs t/issue251/_libs
16921849 -rm -rf t/issue330/.libs t/issue330/_libs
16931850 -rm -rf t/issue375/.libs t/issue375/_libs
1851 -rm -rf t/issue440/.libs t/issue440/_libs
16941852 -rm -rf t/version/.libs t/version/_libs
16951853
16961854 distclean-libtool:
19072065 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
19082066 fi; \
19092067 echo "$${col}$$br$${std}"; \
1910 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
2068 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
19112069 echo "$${col}$$br$${std}"; \
19122070 create_testsuite_report --maybe-color; \
19132071 echo "$$col$$br$$std"; \
19692127 --log-file $$b.log --trs-file $$b.trs \
19702128 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
19712129 "$$tst" $(AM_TESTS_FD_REDIRECT)
2130 t/issue204/issue204.log: t/issue204/issue204$(EXEEXT)
2131 @p='t/issue204/issue204$(EXEEXT)'; \
2132 b='t/issue204/issue204'; \
2133 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
2134 --log-file $$b.log --trs-file $$b.trs \
2135 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
2136 "$$tst" $(AM_TESTS_FD_REDIRECT)
19722137 t/issue220/issue220.log: t/issue220/issue220$(EXEEXT)
19732138 @p='t/issue220/issue220$(EXEEXT)'; \
19742139 b='t/issue220/issue220'; \
19862151 t/issue330/issue330.log: t/issue330/issue330$(EXEEXT)
19872152 @p='t/issue330/issue330$(EXEEXT)'; \
19882153 b='t/issue330/issue330'; \
2154 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
2155 --log-file $$b.log --trs-file $$b.trs \
2156 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
2157 "$$tst" $(AM_TESTS_FD_REDIRECT)
2158 t/issue440/issue440.log: t/issue440/issue440$(EXEEXT)
2159 @p='t/issue440/issue440$(EXEEXT)'; \
2160 b='t/issue440/issue440'; \
19892161 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
19902162 --log-file $$b.log --trs-file $$b.trs \
19912163 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
20112183 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
20122184 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
20132185 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
2014
20152186 distdir: $(BUILT_SOURCES)
20162187 $(MAKE) $(AM_MAKEFLAGS) distdir-am
20172188
20732244 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
20742245 $(am__post_remove_distdir)
20752246
2247 dist-zstd: distdir
2248 tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
2249 $(am__post_remove_distdir)
2250
20762251 dist-tarZ: distdir
20772252 @echo WARNING: "Support for distribution archives compressed with" \
20782253 "legacy program 'compress' is deprecated." >&2
21152290 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
21162291 *.zip*) \
21172292 unzip $(distdir).zip ;;\
2293 *.tar.zst*) \
2294 zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
21182295 esac
21192296 chmod -R a-w $(distdir)
21202297 chmod u+w $(distdir)
21302307 $(DISTCHECK_CONFIGURE_FLAGS) \
21312308 --srcdir=../.. --prefix="$$dc_install_base" \
21322309 && $(MAKE) $(AM_MAKEFLAGS) \
2133 && $(MAKE) $(AM_MAKEFLAGS) dvi \
2310 && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
21342311 && $(MAKE) $(AM_MAKEFLAGS) check \
21352312 && $(MAKE) $(AM_MAKEFLAGS) install \
21362313 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
21902367 config.h
21912368 install-binPROGRAMS: install-libLTLIBRARIES
21922369
2370 install-checkPROGRAMS: install-libLTLIBRARIES
2371
21932372 installdirs:
21942373 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(includedir)"; do \
21952374 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
21962375 done
21972376 install: $(BUILT_SOURCES)
21982377 $(MAKE) $(AM_MAKEFLAGS) install-am
2199 install-exec: install-exec-am
2378 install-exec: $(BUILT_SOURCES)
2379 $(MAKE) $(AM_MAKEFLAGS) install-exec-am
22002380 install-data: install-data-am
22012381 uninstall: uninstall-am
22022382
22362416 -rm -f t/generated-code2/$(DEPDIR)/$(am__dirstamp)
22372417 -rm -f t/generated-code2/$(am__dirstamp)
22382418 -rm -f t/generated-code3/$(am__dirstamp)
2419 -rm -f t/issue204/$(DEPDIR)/$(am__dirstamp)
2420 -rm -f t/issue204/$(am__dirstamp)
22392421 -rm -f t/issue220/$(DEPDIR)/$(am__dirstamp)
22402422 -rm -f t/issue220/$(am__dirstamp)
22412423 -rm -f t/issue251/$(DEPDIR)/$(am__dirstamp)
22442426 -rm -f t/issue330/$(am__dirstamp)
22452427 -rm -f t/issue375/$(DEPDIR)/$(am__dirstamp)
22462428 -rm -f t/issue375/$(am__dirstamp)
2429 -rm -f t/issue389/$(DEPDIR)/$(am__dirstamp)
2430 -rm -f t/issue389/$(am__dirstamp)
2431 -rm -f t/issue440/$(DEPDIR)/$(am__dirstamp)
2432 -rm -f t/issue440/$(am__dirstamp)
22472433 -rm -f t/version/$(DEPDIR)/$(am__dirstamp)
22482434 -rm -f t/version/$(am__dirstamp)
22492435 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
22642450 distclean: distclean-am
22652451 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
22662452 -rm -f protobuf-c/$(DEPDIR)/protobuf-c.Plo
2453 -rm -f protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Po
2454 -rm -f protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Po
22672455 -rm -f protoc-c/$(DEPDIR)/protoc_gen_c-c_bytes_field.Po
22682456 -rm -f protoc-c/$(DEPDIR)/protoc_gen_c-c_enum.Po
22692457 -rm -f protoc-c/$(DEPDIR)/protoc_gen_c-c_enum_field.Po
22872475 -rm -f t/generated-code/$(DEPDIR)/test-generated-code.Po
22882476 -rm -f t/generated-code2/$(DEPDIR)/cxx_generate_packed_data-cxx-generate-packed-data.Po
22892477 -rm -f t/generated-code2/$(DEPDIR)/test-generated-code2.Po
2478 -rm -f t/issue204/$(DEPDIR)/issue204.Po
2479 -rm -f t/issue204/$(DEPDIR)/issue204.pb-c.Po
22902480 -rm -f t/issue220/$(DEPDIR)/issue220.Po
22912481 -rm -f t/issue220/$(DEPDIR)/issue220.pb-c.Po
22922482 -rm -f t/issue251/$(DEPDIR)/issue251.Po
22952485 -rm -f t/issue330/$(DEPDIR)/issue330.pb-c.Po
22962486 -rm -f t/issue375/$(DEPDIR)/issue375.Po
22972487 -rm -f t/issue375/$(DEPDIR)/issue375.pb-c.Po
2488 -rm -f t/issue389/$(DEPDIR)/issue389.pb-c.Po
2489 -rm -f t/issue440/$(DEPDIR)/issue440.Po
2490 -rm -f t/issue440/$(DEPDIR)/issue440.pb-c.Po
22982491 -rm -f t/version/$(DEPDIR)/version.Po
22992492 -rm -f Makefile
23002493 distclean-am: clean-am distclean-compile distclean-generic \
23462539 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
23472540 -rm -rf $(top_srcdir)/autom4te.cache
23482541 -rm -f protobuf-c/$(DEPDIR)/protobuf-c.Plo
2542 -rm -f protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Po
2543 -rm -f protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Po
23492544 -rm -f protoc-c/$(DEPDIR)/protoc_gen_c-c_bytes_field.Po
23502545 -rm -f protoc-c/$(DEPDIR)/protoc_gen_c-c_enum.Po
23512546 -rm -f protoc-c/$(DEPDIR)/protoc_gen_c-c_enum_field.Po
23692564 -rm -f t/generated-code/$(DEPDIR)/test-generated-code.Po
23702565 -rm -f t/generated-code2/$(DEPDIR)/cxx_generate_packed_data-cxx-generate-packed-data.Po
23712566 -rm -f t/generated-code2/$(DEPDIR)/test-generated-code2.Po
2567 -rm -f t/issue204/$(DEPDIR)/issue204.Po
2568 -rm -f t/issue204/$(DEPDIR)/issue204.pb-c.Po
23722569 -rm -f t/issue220/$(DEPDIR)/issue220.Po
23732570 -rm -f t/issue220/$(DEPDIR)/issue220.pb-c.Po
23742571 -rm -f t/issue251/$(DEPDIR)/issue251.Po
23772574 -rm -f t/issue330/$(DEPDIR)/issue330.pb-c.Po
23782575 -rm -f t/issue375/$(DEPDIR)/issue375.Po
23792576 -rm -f t/issue375/$(DEPDIR)/issue375.pb-c.Po
2577 -rm -f t/issue389/$(DEPDIR)/issue389.pb-c.Po
2578 -rm -f t/issue440/$(DEPDIR)/issue440.Po
2579 -rm -f t/issue440/$(DEPDIR)/issue440.pb-c.Po
23802580 -rm -f t/version/$(DEPDIR)/version.Po
23812581 -rm -f Makefile
23822582 maintainer-clean-am: distclean-am maintainer-clean-generic
23982598 uninstall-nobase_includeHEADERS uninstall-pkgconfigDATA
23992599
24002600 .MAKE: all check check-am install install-am install-data-am \
2401 install-exec-am install-strip
2601 install-exec install-exec-am install-strip
24022602
24032603 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles am--refresh check \
24042604 check-TESTS check-am clean clean-binPROGRAMS \
24062606 clean-libLTLIBRARIES clean-libtool clean-local \
24072607 clean-noinstPROGRAMS cscope cscopelist-am ctags ctags-am dist \
24082608 dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \
2409 dist-tarZ dist-xz dist-zip distcheck distclean \
2609 dist-tarZ dist-xz dist-zip dist-zstd distcheck distclean \
24102610 distclean-compile distclean-generic distclean-hdr \
24112611 distclean-libtool distclean-tags distcleancheck distdir \
24122612 distuninstallcheck dvi dvi-am html html-am html-local info \
24282628
24292629 @CODE_COVERAGE_RULES@
24302630
2631 @BUILD_COMPILER_TRUE@protobuf-c/protobuf-c.pb.cc protobuf-c/protobuf-c.pb.h: @PROTOC@ $(top_srcdir)/protobuf-c/protobuf-c.proto
2632 @BUILD_COMPILER_TRUE@ $(AM_V_GEN)@PROTOC@ -I$(top_srcdir) --cpp_out=$(top_builddir) $(top_srcdir)/protobuf-c/protobuf-c.proto
24312633 #
24322634 # protoc-c compat link
24332635 #
24542656
24552657 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t/test-proto3.pb-c.c t/test-proto3.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/test-proto3.proto
24562658 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/test-proto3.proto
2659 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t/issue204/issue204.pb-c.c t/issue204/issue204.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue204/issue204.proto
2660 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue204/issue204.proto
24572661 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t/issue220/issue220.pb-c.c t/issue220/issue220.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue220/issue220.proto
24582662 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue220/issue220.proto
24592663 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t/issue251/issue251.pb-c.c t/issue251/issue251.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue251/issue251.proto
24602664 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue251/issue251.proto
24612665 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t/issue330/issue330.pb-c.c t/issue330/issue330.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue330/issue330.proto
24622666 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue330/issue330.proto
2667 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t/issue389/issue389.pb-c.c t/issue389/issue389.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue389/issue389.proto
2668 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue389/issue389.proto
2669 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t/issue440/issue440.pb-c.c t/issue440/issue440.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue440/issue440.proto
2670 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue440/issue440.proto
24632671 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t/issue375/issue375.pb-c.c t/issue375/issue375.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue375/issue375.proto
24642672 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue375/issue375.proto
24652673
0 [![Build Status](https://travis-ci.org/protobuf-c/protobuf-c.png?branch=master)](https://travis-ci.org/protobuf-c/protobuf-c) [![Coverage Status](https://coveralls.io/repos/protobuf-c/protobuf-c/badge.png)](https://coveralls.io/r/protobuf-c/protobuf-c)
0 [![Build Status](https://github.com/protobuf-c/protobuf-c/actions/workflows/build.yml/badge.svg)](https://github.com/protobuf-c/protobuf-c/actions) [![Coverage Status](https://coveralls.io/repos/protobuf-c/protobuf-c/badge.png)](https://coveralls.io/r/protobuf-c/protobuf-c)
11
22 ## Overview
33
1919
2020 ./autogen.sh && ./configure && make && make install
2121
22 ## Test
23
24 If you want to execute test cases individually, please run the following command after running `./configure` once:
25
26 make check
27
2228 ## Documentation
2329
24 See the [online Doxygen documentation here](http://lib.protobuf-c.io) or [the Wiki](https://github.com/protobuf-c/protobuf-c/wiki) for a detailed reference. The Doxygen documentation can be built from the source tree by running:
30 See the [online Doxygen documentation here](https://protobuf-c.github.io/protobuf-c) or [the Wiki](https://github.com/protobuf-c/protobuf-c/wiki) for a detailed reference. The Doxygen documentation can be built from the source tree by running:
2531
2632 make html
2733
0 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.16.5 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1313 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1414 m4_ifndef([AC_AUTOCONF_VERSION],
1515 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],,
17 [m4_warning([this file was generated for autoconf 2.71.
1818 You have another version of autoconf. It may work, but is not guaranteed to.
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2121
22 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
22 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
2323 #
2424 # This file is free software; the Free Software Foundation
2525 # gives unlimited permission to copy and/or distribute it,
3434 [am__api_version='1.16'
3535 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3636 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.16.1], [],
37 m4_if([$1], [1.16.5], [],
3838 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
3939 ])
4040
5050 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5151 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5252 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.16.1])dnl
53 [AM_AUTOMAKE_VERSION([1.16.5])dnl
5454 m4_ifndef([AC_AUTOCONF_VERSION],
5555 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5656 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
5757
5858 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
5959
60 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
60 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
6161 #
6262 # This file is free software; the Free Software Foundation
6363 # gives unlimited permission to copy and/or distribute it,
109109
110110 # AM_COND_IF -*- Autoconf -*-
111111
112 # Copyright (C) 2008-2018 Free Software Foundation, Inc.
112 # Copyright (C) 2008-2021 Free Software Foundation, Inc.
113113 #
114114 # This file is free software; the Free Software Foundation
115115 # gives unlimited permission to copy and/or distribute it,
146146
147147 # AM_CONDITIONAL -*- Autoconf -*-
148148
149 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
149 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
150150 #
151151 # This file is free software; the Free Software Foundation
152152 # gives unlimited permission to copy and/or distribute it,
177177 Usually this means the macro was only invoked conditionally.]])
178178 fi])])
179179
180 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
180 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
181181 #
182182 # This file is free software; the Free Software Foundation
183183 # gives unlimited permission to copy and/or distribute it,
368368
369369 # Generate code to set up dependency tracking. -*- Autoconf -*-
370370
371 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
371 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
372372 #
373373 # This file is free software; the Free Software Foundation
374374 # gives unlimited permission to copy and/or distribute it,
407407 done
408408 if test $am_rc -ne 0; then
409409 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
410 for automatic dependency tracking. Try re-running configure with the
410 for automatic dependency tracking. If GNU make was not used, consider
411 re-running the configure script with MAKE="gmake" (or whatever is
412 necessary). You can also try re-running configure with the
411413 '--disable-dependency-tracking' option to at least be able to build
412414 the package (albeit without support for automatic dependency tracking).])
413415 fi
434436
435437 # Do all the work for Automake. -*- Autoconf -*-
436438
437 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
439 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
438440 #
439441 # This file is free software; the Free Software Foundation
440442 # gives unlimited permission to copy and/or distribute it,
462464 # release and drop the old call support.
463465 AC_DEFUN([AM_INIT_AUTOMAKE],
464466 [AC_PREREQ([2.65])dnl
467 m4_ifdef([_$0_ALREADY_INIT],
468 [m4_fatal([$0 expanded multiple times
469 ]m4_defn([_$0_ALREADY_INIT]))],
470 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
465471 dnl Autoconf wants to disallow AM_ names. We explicitly allow
466472 dnl the ones we care about.
467473 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
498504 [_AM_SET_OPTIONS([$1])dnl
499505 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
500506 m4_if(
501 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
507 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
502508 [ok:ok],,
503509 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
504510 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
550556 [m4_define([AC_PROG_OBJCXX],
551557 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
552558 ])
559 # Variables for tags utilities; see am/tags.am
560 if test -z "$CTAGS"; then
561 CTAGS=ctags
562 fi
563 AC_SUBST([CTAGS])
564 if test -z "$ETAGS"; then
565 ETAGS=etags
566 fi
567 AC_SUBST([ETAGS])
568 if test -z "$CSCOPE"; then
569 CSCOPE=cscope
570 fi
571 AC_SUBST([CSCOPE])
572
553573 AC_REQUIRE([AM_SILENT_RULES])dnl
554574 dnl The testsuite driver may need to know about EXEEXT, so add the
555575 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
631651 done
632652 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
633653
634 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
654 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
635655 #
636656 # This file is free software; the Free Software Foundation
637657 # gives unlimited permission to copy and/or distribute it,
652672 fi
653673 AC_SUBST([install_sh])])
654674
655 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
675 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
656676 #
657677 # This file is free software; the Free Software Foundation
658678 # gives unlimited permission to copy and/or distribute it,
673693
674694 # Check to see how 'make' treats includes. -*- Autoconf -*-
675695
676 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
696 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
677697 #
678698 # This file is free software; the Free Software Foundation
679699 # gives unlimited permission to copy and/or distribute it,
716736
717737 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
718738
719 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
739 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
720740 #
721741 # This file is free software; the Free Software Foundation
722742 # gives unlimited permission to copy and/or distribute it,
737757 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
738758 AC_REQUIRE_AUX_FILE([missing])dnl
739759 if test x"${MISSING+set}" != xset; then
740 case $am_aux_dir in
741 *\ * | *\ *)
742 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
743 *)
744 MISSING="\${SHELL} $am_aux_dir/missing" ;;
745 esac
760 MISSING="\${SHELL} '$am_aux_dir/missing'"
746761 fi
747762 # Use eval to expand $SHELL
748763 if eval "$MISSING --is-lightweight"; then
755770
756771 # Helper functions for option handling. -*- Autoconf -*-
757772
758 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
773 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
759774 #
760775 # This file is free software; the Free Software Foundation
761776 # gives unlimited permission to copy and/or distribute it,
784799 AC_DEFUN([_AM_IF_OPTION],
785800 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
786801
787 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
802 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
788803 #
789804 # This file is free software; the Free Software Foundation
790805 # gives unlimited permission to copy and/or distribute it,
831846 # For backward compatibility.
832847 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
833848
834 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
849 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
835850 #
836851 # This file is free software; the Free Software Foundation
837852 # gives unlimited permission to copy and/or distribute it,
850865
851866 # Check to make sure that the build environment is sane. -*- Autoconf -*-
852867
853 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
868 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
854869 #
855870 # This file is free software; the Free Software Foundation
856871 # gives unlimited permission to copy and/or distribute it,
931946 rm -f conftest.file
932947 ])
933948
934 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
949 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
935950 #
936951 # This file is free software; the Free Software Foundation
937952 # gives unlimited permission to copy and/or distribute it,
9911006 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9921007 ])
9931008
994 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1009 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
9951010 #
9961011 # This file is free software; the Free Software Foundation
9971012 # gives unlimited permission to copy and/or distribute it,
10191034 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10201035 AC_SUBST([INSTALL_STRIP_PROGRAM])])
10211036
1022 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
1037 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
10231038 #
10241039 # This file is free software; the Free Software Foundation
10251040 # gives unlimited permission to copy and/or distribute it,
10381053
10391054 # Check how to create a tarball. -*- Autoconf -*-
10401055
1041 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
1056 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
10421057 #
10431058 # This file is free software; the Free Software Foundation
10441059 # gives unlimited permission to copy and/or distribute it,
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
5252 MINGW*)
5353 file_conv=mingw
5454 ;;
55 CYGWIN*)
55 CYGWIN* | MSYS*)
5656 file_conv=cygwin
5757 ;;
5858 *)
6666 mingw/*)
6767 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
6868 ;;
69 cygwin/*)
69 cygwin/* | msys/*)
7070 file=`cygpath -m "$file" || echo "$file"`
7171 ;;
7272 wine/*)
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2018-03-11.20; # UTC
3 scriptversion=2020-11-14.01; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
6868 # Desired mode of installed file.
6969 mode=0755
7070
71 # Create dirs (including intermediate dirs) using mode 755.
72 # This is like GNU 'install' as of coreutils 8.32 (2020).
73 mkdir_umask=22
74
75 backupsuffix=
7176 chgrpcmd=
7277 chmodcmd=$chmodprog
7378 chowncmd=
98103 --version display version info and exit.
99104
100105 -c (ignored)
101 -C install only if different (preserve the last data modification time)
106 -C install only if different (preserve data modification time)
102107 -d create directories instead of installing files.
103108 -g GROUP $chgrpprog installed files to GROUP.
104109 -m MODE $chmodprog installed files to MODE.
105110 -o USER $chownprog installed files to USER.
111 -p pass -p to $cpprog.
106112 -s $stripprog installed files.
113 -S SUFFIX attempt to back up existing files, with suffix SUFFIX.
107114 -t DIRECTORY install into DIRECTORY.
108115 -T report an error if DSTFILE is a directory.
109116
110117 Environment variables override the default commands:
111118 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
112119 RMPROG STRIPPROG
120
121 By default, rm is invoked with -f; when overridden with RMPROG,
122 it's up to you to specify -f if you want it.
123
124 If -S is not specified, no backups are attempted.
125
126 Email bug reports to bug-automake@gnu.org.
127 Automake home page: https://www.gnu.org/software/automake/
113128 "
114129
115130 while test $# -ne 0; do
136151 -o) chowncmd="$chownprog $2"
137152 shift;;
138153
154 -p) cpprog="$cpprog -p";;
155
139156 -s) stripcmd=$stripprog;;
157
158 -S) backupsuffix="$2"
159 shift;;
140160
141161 -t)
142162 is_target_a_directory=always
254274 dstdir=$dst
255275 test -d "$dstdir"
256276 dstdir_status=$?
277 # Don't chown directories that already exist.
278 if test $dstdir_status = 0; then
279 chowncmd=""
280 fi
257281 else
258282
259283 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
300324 if test $dstdir_status != 0; then
301325 case $posix_mkdir in
302326 '')
303 # Create intermediate dirs using mode 755 as modified by the umask.
304 # This is like FreeBSD 'install' as of 1997-10-28.
305 umask=`umask`
306 case $stripcmd.$umask in
307 # Optimize common cases.
308 *[2367][2367]) mkdir_umask=$umask;;
309 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
310
311 *[0-7])
312 mkdir_umask=`expr $umask + 22 \
313 - $umask % 100 % 40 + $umask % 20 \
314 - $umask % 10 % 4 + $umask % 2
315 `;;
316 *) mkdir_umask=$umask,go-w;;
317 esac
318
319327 # With -d, create the new directory with the user-specified mode.
320328 # Otherwise, rely on $mkdir_umask.
321329 if test -n "$dir_arg"; then
325333 fi
326334
327335 posix_mkdir=false
328 case $umask in
329 *[123567][0-7][0-7])
330 # POSIX mkdir -p sets u+wx bits regardless of umask, which
331 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
332 ;;
333 *)
334 # Note that $RANDOM variable is not portable (e.g. dash); Use it
335 # here however when possible just to lower collision chance.
336 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
337
338 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
339
340 # Because "mkdir -p" follows existing symlinks and we likely work
341 # directly in world-writeable /tmp, make sure that the '$tmpdir'
342 # directory is successfully created first before we actually test
343 # 'mkdir -p' feature.
344 if (umask $mkdir_umask &&
345 $mkdirprog $mkdir_mode "$tmpdir" &&
346 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
347 then
348 if test -z "$dir_arg" || {
349 # Check for POSIX incompatibilities with -m.
350 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
351 # other-writable bit of parent directory when it shouldn't.
352 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
353 test_tmpdir="$tmpdir/a"
354 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
355 case $ls_ld_tmpdir in
356 d????-?r-*) different_mode=700;;
357 d????-?--*) different_mode=755;;
358 *) false;;
359 esac &&
360 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
361 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
362 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
363 }
364 }
365 then posix_mkdir=:
366 fi
367 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
368 else
369 # Remove any dirs left behind by ancient mkdir implementations.
370 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
371 fi
372 trap '' 0;;
373 esac;;
336 # The $RANDOM variable is not portable (e.g., dash). Use it
337 # here however when possible just to lower collision chance.
338 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
339
340 trap '
341 ret=$?
342 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null
343 exit $ret
344 ' 0
345
346 # Because "mkdir -p" follows existing symlinks and we likely work
347 # directly in world-writeable /tmp, make sure that the '$tmpdir'
348 # directory is successfully created first before we actually test
349 # 'mkdir -p'.
350 if (umask $mkdir_umask &&
351 $mkdirprog $mkdir_mode "$tmpdir" &&
352 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
353 then
354 if test -z "$dir_arg" || {
355 # Check for POSIX incompatibilities with -m.
356 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
357 # other-writable bit of parent directory when it shouldn't.
358 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
359 test_tmpdir="$tmpdir/a"
360 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
361 case $ls_ld_tmpdir in
362 d????-?r-*) different_mode=700;;
363 d????-?--*) different_mode=755;;
364 *) false;;
365 esac &&
366 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
367 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
368 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
369 }
370 }
371 then posix_mkdir=:
372 fi
373 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
374 else
375 # Remove any dirs left behind by ancient mkdir implementations.
376 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
377 fi
378 trap '' 0;;
374379 esac
375380
376381 if
381386 then :
382387 else
383388
384 # The umask is ridiculous, or mkdir does not conform to POSIX,
389 # mkdir does not conform to POSIX,
385390 # or it failed possibly due to a race condition. Create the
386391 # directory the slow way, step by step, checking for races as we go.
387392
410415 prefixes=
411416 else
412417 if $posix_mkdir; then
413 (umask=$mkdir_umask &&
418 (umask $mkdir_umask &&
414419 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
415420 # Don't fail if two instances are running concurrently.
416421 test -d "$prefix" || exit 1
450455 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
451456
452457 # Copy the file name to the temp name.
453 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
458 (umask $cp_umask &&
459 { test -z "$stripcmd" || {
460 # Create $dsttmp read-write so that cp doesn't create it read-only,
461 # which would cause strip to fail.
462 if test -z "$doit"; then
463 : >"$dsttmp" # No need to fork-exec 'touch'.
464 else
465 $doit touch "$dsttmp"
466 fi
467 }
468 } &&
469 $doit_exec $cpprog "$src" "$dsttmp") &&
454470
455471 # and set any options; do chmod last to preserve setuid bits.
456472 #
476492 then
477493 rm -f "$dsttmp"
478494 else
495 # If $backupsuffix is set, and the file being installed
496 # already exists, attempt a backup. Don't worry if it fails,
497 # e.g., if mv doesn't support -f.
498 if test -n "$backupsuffix" && test -f "$dst"; then
499 $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null
500 fi
501
479502 # Rename the file to the real destination.
480503 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
481504
490513 # file should still install successfully.
491514 {
492515 test ! -f "$dst" ||
493 $doit $rmcmd -f "$dst" 2>/dev/null ||
516 $doit $rmcmd "$dst" 2>/dev/null ||
494517 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
495 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
518 { $doit $rmcmd "$rmtmp" 2>/dev/null; :; }
496519 } ||
497520 { echo "$0: cannot unlink or rename $dst" >&2
498521 (exit 1); exit 1
3030
3131 PROGRAM=libtool
3232 PACKAGE=libtool
33 VERSION="2.4.6 Debian-2.4.6-12"
33 VERSION="2.4.6 Debian-2.4.6-15"
3434 package_revision=2.4.6
3535
3636
21402140 compiler: $LTCC
21412141 compiler flags: $LTCFLAGS
21422142 linker: $LD (gnu? $with_gnu_ld)
2143 version: $progname $scriptversion Debian-2.4.6-12
2143 version: $progname $scriptversion Debian-2.4.6-15
21442144 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
21452145 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
21462146
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
5 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
66 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
77
88 # This program is free software; you can redistribute it and/or modify
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 2011-2018 Free Software Foundation, Inc.
5 # Copyright (C) 2011-2021 Free Software Foundation, Inc.
66 #
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
4141 {
4242 cat <<END
4343 Usage:
44 test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
45 [--expect-failure={yes|no}] [--color-tests={yes|no}]
46 [--enable-hard-errors={yes|no}] [--]
44 test-driver --test-name NAME --log-file PATH --trs-file PATH
45 [--expect-failure {yes|no}] [--color-tests {yes|no}]
46 [--enable-hard-errors {yes|no}] [--]
4747 TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
48
4849 The '--test-name', '--log-file' and '--trs-file' options are mandatory.
50 See the GNU Automake documentation for information.
4951 END
5052 }
5153
102104 trap "st=141; $do_exit" 13
103105 trap "st=143; $do_exit" 15
104106
105 # Test script is run here.
106 "$@" >$log_file 2>&1
107 # Test script is run here. We create the file first, then append to it,
108 # to ameliorate tests themselves also writing to the log file. Our tests
109 # don't, but others can (automake bug#35762).
110 : >"$log_file"
111 "$@" >>"$log_file" 2>&1
107112 estatus=$?
108113
109114 if test $enable_hard_errors = no && test $estatus -eq 99; then
125130 # know whether the test passed or failed simply by looking at the '.log'
126131 # file, without the need of also peaking into the corresponding '.trs'
127132 # file (automake bug#11814).
128 echo "$res $test_name (exit status: $estatus)" >>$log_file
133 echo "$res $test_name (exit status: $estatus)" >>"$log_file"
129134
130135 # Report outcome to console.
131136 echo "${col}${res}${std}: $test_name"
00 SET(PACKAGE protobuf-c)
11 SET(PACKAGE_NAME protobuf-c)
2 SET(PACKAGE_VERSION 1.3.3)
3
4
5 CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
2 SET(PACKAGE_VERSION 1.4.0)
3 SET(PACKAGE_URL https://github.com/protobuf-c/protobuf-c)
4 SET(PACKAGE_DESCRIPTION "Protocol Buffers implementation in C")
5
6 CMAKE_MINIMUM_REQUIRED(VERSION 3.10 FATAL_ERROR)
67
78 PROJECT(protobuf-c)
89
910 #options
10 option(MSVC_STATIC_BUILD "MSVC_STATIC_BUILD" OFF)
1111 option(BUILD_PROTO3 "BUILD_PROTO3" ON)
12 option(BUILD_PROTOC "Build protoc-gen-c" ON)
13 if(CMAKE_BUILD_TYPE MATCHES Debug)
14 option(BUILD_TESTS "Build tests" ON)
15 else()
16 option(BUILD_TESTS "Build tests" OFF)
17 endif()
1218
1319 INCLUDE(TestBigEndian)
1420 TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
2026 ADD_DEFINITIONS(-DWORDS_BIGENDIAN)
2127 endif()
2228
29 IF (MSVC AND BUILD_SHARED_LIBS)
30 ADD_DEFINITIONS(-DPROTOBUF_C_USE_SHARED_LIB)
31 ENDIF (MSVC AND BUILD_SHARED_LIBS)
32
2333 if(MSVC)
2434 # using Visual Studio C++
2535 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4267 /wd4244")
3646 ${MAIN_DIR}/protobuf-c/protobuf-c.h)
3747
3848 ADD_LIBRARY(protobuf-c ${PC_SOURCES})
49 set_target_properties(protobuf-c PROPERTIES COMPILE_PDB_NAME protobuf-c)
50 IF (MSVC AND BUILD_SHARED_LIBS)
51 TARGET_COMPILE_DEFINITIONS(protobuf-c PRIVATE -DPROTOBUF_C_EXPORT)
52 ENDIF (MSVC AND BUILD_SHARED_LIBS)
3953
4054 INCLUDE_DIRECTORIES(${MAIN_DIR})
4155 INCLUDE_DIRECTORIES(${MAIN_DIR}/protobuf-c)
56
57 IF(BUILD_PROTOC)
4258 INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}) # for generated files
59
60 if (MSVC AND NOT BUILD_SHARED_LIBS)
61 SET(Protobuf_USE_STATIC_LIBS ON)
62 endif (MSVC AND NOT BUILD_SHARED_LIBS)
4363
4464 FIND_PACKAGE(Protobuf REQUIRED)
4565 INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIR})
4767 if (BUILD_PROTO3)
4868 ADD_DEFINITIONS(-DHAVE_PROTO3)
4969 endif()
50
51 if (MSVC AND MSVC_STATIC_BUILD)
70 ENDIF()
71
72 if (MSVC AND NOT BUILD_SHARED_LIBS)
5273 # In case we are building static libraries, link also the runtime library statically
5374 # so that MSVCR*.DLL is not required at runtime.
5475 # https://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx
6384 string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
6485 endif(${flag_var} MATCHES "/MD")
6586 endforeach(flag_var)
66 endif (MSVC AND MSVC_STATIC_BUILD)
87 endif (MSVC AND NOT BUILD_SHARED_LIBS)
88
89 IF(BUILD_PROTOC)
90 SET(CMAKE_CXX_STANDARD 11)
91 SET(CMAKE_CXX_STANDARD_REQUIRED ON)
92 SET(CMAKE_CXX_EXTENSIONS OFF)
93 ADD_CUSTOM_COMMAND(OUTPUT protobuf-c/protobuf-c.pb.cc protobuf-c/protobuf-c.pb.h
94 COMMAND ${PROTOBUF_PROTOC_EXECUTABLE}
95 ARGS --cpp_out ${CMAKE_BINARY_DIR} -I${MAIN_DIR} ${MAIN_DIR}/protobuf-c/protobuf-c.proto)
6796 FILE(GLOB PROTOC_GEN_C_SRC ${MAIN_DIR}/protoc-c/*.h ${MAIN_DIR}/protoc-c/*.cc )
68 ADD_EXECUTABLE(protoc-gen-c ${PROTOC_GEN_C_SRC})
97 ADD_EXECUTABLE(protoc-gen-c ${PROTOC_GEN_C_SRC} protobuf-c/protobuf-c.pb.cc protobuf-c/protobuf-c.pb.h)
6998
7099 TARGET_LINK_LIBRARIES(protoc-gen-c ${PROTOBUF_PROTOC_LIBRARY} ${PROTOBUF_LIBRARY})
100
101 IF (MSVC AND BUILD_SHARED_LIBS)
102 TARGET_COMPILE_DEFINITIONS(protoc-gen-c PRIVATE -DPROTOBUF_USE_DLLS)
103 GET_FILENAME_COMPONENT(PROTOBUF_DLL_DIR ${PROTOBUF_PROTOC_EXECUTABLE} DIRECTORY)
104 FILE(GLOB PROTOBUF_DLLS ${PROTOBUF_DLL_DIR}/*.dll)
105 FILE(COPY ${PROTOBUF_DLLS} DESTINATION ${CMAKE_BINARY_DIR})
106 ENDIF (MSVC AND BUILD_SHARED_LIBS)
71107
72108 IF(CMAKE_HOST_UNIX)
73109 ADD_CUSTOM_COMMAND(TARGET ${PROJECT_NAME} POST_BUILD
83119 ENDFUNCTION()
84120
85121
86 IF(CMAKE_BUILD_TYPE MATCHES Debug)
122 IF(BUILD_TESTS)
87123 ENABLE_TESTING()
88124
89125 GENERATE_TEST_SOURCES(${TEST_DIR}/test.proto t/test.pb-c.c t/test.pb-c.h)
98134
99135 GENERATE_TEST_SOURCES(${TEST_DIR}/test-full.proto t/test-full.pb-c.c t/test-full.pb-c.h)
100136
101 ADD_EXECUTABLE(cxx-generate-packed-data ${TEST_DIR}/generated-code2/cxx-generate-packed-data.cc t/test-full.pb.h t/test-full.pb.cc)
137 ADD_EXECUTABLE(cxx-generate-packed-data ${TEST_DIR}/generated-code2/cxx-generate-packed-data.cc t/test-full.pb.h t/test-full.pb.cc protobuf-c/protobuf-c.pb.cc protobuf-c/protobuf-c.pb.h)
102138 TARGET_LINK_LIBRARIES(cxx-generate-packed-data ${PROTOBUF_LIBRARY})
139 IF (MSVC AND BUILD_SHARED_LIBS)
140 TARGET_COMPILE_DEFINITIONS(cxx-generate-packed-data PRIVATE -DPROTOBUF_USE_DLLS)
141 ENDIF (MSVC AND BUILD_SHARED_LIBS)
103142
104143 FILE(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/t/generated-code2)
105144 ADD_CUSTOM_COMMAND(OUTPUT t/generated-code2/test-full-cxx-output.inc
130169 TARGET_COMPILE_DEFINITIONS(test-generated-code3 PUBLIC -DPROTO3)
131170 TARGET_LINK_LIBRARIES(test-generated-code3 protobuf-c)
132171
133 ENDIF()
134
135 INSTALL(TARGETS protoc-gen-c protobuf-c RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
136 INSTALL(FILES ${MAIN_DIR}/protobuf-c/protobuf-c.h DESTINATION include/protobuf-c)
172 ENDIF() # BUILD_TESTS
173
174 # https://github.com/protocolbuffers/protobuf/issues/5107
175 IF(CMAKE_HOST_UNIX)
176 FIND_PACKAGE(Threads REQUIRED)
177 TARGET_LINK_LIBRARIES(protoc-gen-c ${CMAKE_THREAD_LIBS_INIT})
178 IF(BUILD_TESTS)
179 TARGET_LINK_LIBRARIES(cxx-generate-packed-data ${CMAKE_THREAD_LIBS_INIT})
180 ENDIF()
181 ENDIF()
182
183 INSTALL(TARGETS protoc-gen-c RUNTIME DESTINATION bin)
184 ENDIF() # BUILD_PROTOC
185
186 INSTALL(TARGETS protobuf-c LIBRARY DESTINATION lib ARCHIVE DESTINATION lib RUNTIME DESTINATION bin)
187 INSTALL(FILES ${MAIN_DIR}/protobuf-c/protobuf-c.h ${MAIN_DIR}/protobuf-c/protobuf-c.proto DESTINATION include/protobuf-c)
137188 INSTALL(FILES ${MAIN_DIR}/protobuf-c/protobuf-c.h DESTINATION include)
189 INSTALL(FILES ${CMAKE_BINARY_DIR}/protobuf-c.pdb DESTINATION lib OPTIONAL)
138190
139191 IF(CMAKE_HOST_UNIX)
140192 INSTALL(CODE "EXECUTE_PROCESS (COMMAND ln -sf protoc-gen-c protoc-c WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)")
141193 ENDIF()
142194
195 INCLUDE(GNUInstallDirs)
196 SET(prefix ${CMAKE_INSTALL_PREFIX})
197 SET(exec_prefix \${prefix})
198 SET(bindir \${exec_prefix}/${CMAKE_INSTALL_BINDIR})
199 SET(libdir \${exec_prefix}/${CMAKE_INSTALL_LIBDIR})
200 SET(includedir \${prefix}/${CMAKE_INSTALL_INCLUDEDIR})
201 CONFIGURE_FILE(${MAIN_DIR}/protobuf-c/libprotobuf-c.pc.in libprotobuf-c.pc @ONLY)
202 INSTALL(FILES ${CMAKE_BINARY_DIR}/libprotobuf-c.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
203
204 IF(BUILD_TESTS)
143205 INCLUDE(Dart)
144206
145207 SET(DART_TESTING_TIMEOUT 5)
149211 ADD_TEST(test-issue220 test-issue220)
150212 ADD_TEST(test-issue251 test-issue251)
151213 ADD_TEST(test-version test-version)
214 ENDIF()
152215
153216
154217 INCLUDE(CPack)
1515 /* Define to 1 if you have the <inttypes.h> header file. */
1616 #undef HAVE_INTTYPES_H
1717
18 /* Define to 1 if you have the <memory.h> header file. */
19 #undef HAVE_MEMORY_H
18 /* Define to 1 if you have the <minix/config.h> header file. */
19 #undef HAVE_MINIX_CONFIG_H
2020
2121 /* Support proto3 syntax */
2222 #undef HAVE_PROTO3
2323
2424 /* Define to 1 if you have the <stdint.h> header file. */
2525 #undef HAVE_STDINT_H
26
27 /* Define to 1 if you have the <stdio.h> header file. */
28 #undef HAVE_STDIO_H
2629
2730 /* Define to 1 if you have the <stdlib.h> header file. */
2831 #undef HAVE_STDLIB_H
4144
4245 /* Define to 1 if you have the <unistd.h> header file. */
4346 #undef HAVE_UNISTD_H
47
48 /* Define to 1 if you have the <wchar.h> header file. */
49 #undef HAVE_WCHAR_H
4450
4551 /* Define to the sub-directory where libtool stores uninstalled libraries. */
4652 #undef LT_OBJDIR
6672 /* Define to the version of this package. */
6773 #undef PACKAGE_VERSION
6874
69 /* Define to 1 if you have the ANSI C header files. */
75 /* Define to 1 if all of the C90 standard headers exist (not just the ones
76 required in a freestanding environment). This macro is provided for
77 backward compatibility; new code need not use it. */
7078 #undef STDC_HEADERS
7179
7280 /* Enable extensions on AIX 3, Interix. */
7381 #ifndef _ALL_SOURCE
7482 # undef _ALL_SOURCE
7583 #endif
84 /* Enable general extensions on macOS. */
85 #ifndef _DARWIN_C_SOURCE
86 # undef _DARWIN_C_SOURCE
87 #endif
88 /* Enable general extensions on Solaris. */
89 #ifndef __EXTENSIONS__
90 # undef __EXTENSIONS__
91 #endif
7692 /* Enable GNU extensions on systems that have them. */
7793 #ifndef _GNU_SOURCE
7894 # undef _GNU_SOURCE
7995 #endif
80 /* Enable threading extensions on Solaris. */
96 /* Enable X/Open compliant socket functions that do not require linking
97 with -lxnet on HP-UX 11.11. */
98 #ifndef _HPUX_ALT_XOPEN_SOCKET_API
99 # undef _HPUX_ALT_XOPEN_SOCKET_API
100 #endif
101 /* Identify the host operating system as Minix.
102 This macro does not affect the system headers' behavior.
103 A future release of Autoconf may stop defining this macro. */
104 #ifndef _MINIX
105 # undef _MINIX
106 #endif
107 /* Enable general extensions on NetBSD.
108 Enable NetBSD compatibility extensions on Minix. */
109 #ifndef _NETBSD_SOURCE
110 # undef _NETBSD_SOURCE
111 #endif
112 /* Enable OpenBSD compatibility extensions on NetBSD.
113 Oddly enough, this does nothing on OpenBSD. */
114 #ifndef _OPENBSD_SOURCE
115 # undef _OPENBSD_SOURCE
116 #endif
117 /* Define to 1 if needed for POSIX-compatible behavior. */
118 #ifndef _POSIX_SOURCE
119 # undef _POSIX_SOURCE
120 #endif
121 /* Define to 2 if needed for POSIX-compatible behavior. */
122 #ifndef _POSIX_1_SOURCE
123 # undef _POSIX_1_SOURCE
124 #endif
125 /* Enable POSIX-compatible threading on Solaris. */
81126 #ifndef _POSIX_PTHREAD_SEMANTICS
82127 # undef _POSIX_PTHREAD_SEMANTICS
128 #endif
129 /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */
130 #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
131 # undef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
132 #endif
133 /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */
134 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
135 # undef __STDC_WANT_IEC_60559_BFP_EXT__
136 #endif
137 /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */
138 #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
139 # undef __STDC_WANT_IEC_60559_DFP_EXT__
140 #endif
141 /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
142 #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
143 # undef __STDC_WANT_IEC_60559_FUNCS_EXT__
144 #endif
145 /* Enable extensions specified by ISO/IEC TS 18661-3:2015. */
146 #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
147 # undef __STDC_WANT_IEC_60559_TYPES_EXT__
148 #endif
149 /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */
150 #ifndef __STDC_WANT_LIB_EXT2__
151 # undef __STDC_WANT_LIB_EXT2__
152 #endif
153 /* Enable extensions specified by ISO/IEC 24747:2009. */
154 #ifndef __STDC_WANT_MATH_SPEC_FUNCS__
155 # undef __STDC_WANT_MATH_SPEC_FUNCS__
83156 #endif
84157 /* Enable extensions on HP NonStop. */
85158 #ifndef _TANDEM_SOURCE
86159 # undef _TANDEM_SOURCE
87160 #endif
88 /* Enable general extensions on Solaris. */
89 #ifndef __EXTENSIONS__
90 # undef __EXTENSIONS__
161 /* Enable X/Open extensions. Define to 500 only if necessary
162 to make mbstate_t available. */
163 #ifndef _XOPEN_SOURCE
164 # undef _XOPEN_SOURCE
91165 #endif
92166
93167
106180 # endif
107181 #endif
108182
109 /* Enable large inode numbers on Mac OS X 10.5. */
110 #ifndef _DARWIN_USE_64_BIT_INODE
111 # define _DARWIN_USE_64_BIT_INODE 1
112 #endif
113
114183 /* Number of bits in a file offset, on hosts where this is settable. */
115184 #undef _FILE_OFFSET_BITS
116185
117186 /* Define for large files, on AIX-style hosts. */
118187 #undef _LARGE_FILES
119
120 /* Define to 1 if on MINIX. */
121 #undef _MINIX
122
123 /* Define to 2 if the system does not provide POSIX.1 features except with
124 this defined. */
125 #undef _POSIX_1_SOURCE
126
127 /* Define to 1 if you need to in order for `stat' and other things to work. */
128 #undef _POSIX_SOURCE
+3926
-3305
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for protobuf-c 1.3.3.
2 # Generated by GNU Autoconf 2.71 for protobuf-c 1.4.0.
33 #
44 # Report bugs to <https://github.com/protobuf-c/protobuf-c/issues>.
55 #
66 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
8 # Inc.
89 #
910 #
1011 # This configure script is free software; the Free Software Foundation
1516
1617 # Be more Bourne compatible
1718 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 as_nop=:
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
1922 emulate sh
2023 NULLCMD=:
2124 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2225 # is contrary to our usage. Disable this feature.
2326 alias -g '${1+"$@"}'='"$@"'
2427 setopt NO_GLOB_SUBST
25 else
28 else $as_nop
2629 case `(set -o) 2>/dev/null` in #(
2730 *posix*) :
2831 set -o posix ;; #(
3235 fi
3336
3437
38
39 # Reset variables that may have inherited troublesome values from
40 # the environment.
41
42 # IFS needs to be set, to space, tab, and newline, in precisely that order.
43 # (If _AS_PATH_WALK were called with IFS unset, it would have the
44 # side effect of setting IFS to empty, thus disabling word splitting.)
45 # Quoting is to prevent editors from complaining about space-tab.
3546 as_nl='
3647 '
3748 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
49 IFS=" "" $as_nl"
50
51 PS1='$ '
52 PS2='> '
53 PS4='+ '
54
55 # Ensure predictable behavior from utilities with locale-dependent output.
56 LC_ALL=C
57 export LC_ALL
58 LANGUAGE=C
59 export LANGUAGE
60
61 # We cannot yet rely on "unset" to work, but we need these variables
62 # to be unset--not just set to an empty or harmless value--now, to
63 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
64 # also avoids known problems related to "unset" and subshell syntax
65 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
66 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
67 do eval test \${$as_var+y} \
68 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
69 done
70
71 # Ensure that fds 0, 1, and 2 are open.
72 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
73 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
74 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7275
7376 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
77 if ${PATH_SEPARATOR+false} :; then
7578 PATH_SEPARATOR=:
7679 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7780 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7982 }
8083 fi
8184
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
8985
9086 # Find who we are. Look in the path if we contain no directory separator.
9187 as_myself=
9591 for as_dir in $PATH
9692 do
9793 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
94 case $as_dir in #(((
95 '') as_dir=./ ;;
96 */) ;;
97 *) as_dir=$as_dir/ ;;
98 esac
99 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
100100 done
101101 IFS=$as_save_IFS
102102
108108 as_myself=$0
109109 fi
110110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112112 exit 1
113113 fi
114114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135115
136116 # Use a proper internal environment variable to ensure we don't fall
137117 # into an infinite loop, continuously re-executing ourselves.
153133 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154134 # Admittedly, this is quite paranoid, since all the known shells bail
155135 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
136 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
137 exit 255
158138 fi
159139 # We don't want this to propagate to other subprocesses.
160140 { _as_can_reexec=; unset _as_can_reexec;}
161141 if test "x$CONFIG_SHELL" = x; then
162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 as_bourne_compatible="as_nop=:
143 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
163145 emulate sh
164146 NULLCMD=:
165147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166148 # is contrary to our usage. Disable this feature.
167149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
168150 setopt NO_GLOB_SUBST
169 else
151 else \$as_nop
170152 case \`(set -o) 2>/dev/null\` in #(
171153 *posix*) :
172154 set -o posix ;; #(
186168 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187169 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188170 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
171 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
172 then :
173
174 else \$as_nop
192175 exitcode=1; echo positional parameters were not saved.
193176 fi
194177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
195180 test -x / || exit 1"
196181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test \$(( 1 + 1 )) = 2 || exit 1
201185
202186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206190 PATH=/empty FPATH=/empty; export PATH FPATH
207191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
209 if (eval "$as_required") 2>/dev/null; then :
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
210196 as_have_required=yes
211 else
197 else $as_nop
212198 as_have_required=no
213199 fi
214 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215
216 else
200 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
201 then :
202
203 else $as_nop
217204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218205 as_found=false
219206 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220207 do
221208 IFS=$as_save_IFS
222 test -z "$as_dir" && as_dir=.
209 case $as_dir in #(((
210 '') as_dir=./ ;;
211 */) ;;
212 *) as_dir=$as_dir/ ;;
213 esac
223214 as_found=:
224215 case $as_dir in #(
225216 /*)
226217 for as_base in sh bash ksh sh5; do
227218 # Try only shells that exist, to save several forks.
228 as_shell=$as_dir/$as_base
219 as_shell=$as_dir$as_base
229220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
230 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
222 then :
231223 CONFIG_SHELL=$as_shell as_have_required=yes
232 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
225 then :
233226 break 2
234227 fi
235228 fi
237230 esac
238231 as_found=false
239232 done
240 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
241 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 IFS=$as_save_IFS
234 if $as_found
235 then :
236
237 else $as_nop
238 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
239 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
240 then :
242241 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi; }
244 IFS=$as_save_IFS
245
246
247 if test "x$CONFIG_SHELL" != x; then :
242 fi
243 fi
244
245
246 if test "x$CONFIG_SHELL" != x
247 then :
248248 export CONFIG_SHELL
249249 # We cannot yet assume a decent shell, so we have to provide a
250250 # neutralization value for shells without unset; and this also
262262 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
263263 # Admittedly, this is quite paranoid, since all the known shells bail
264264 # out after a failed `exec'.
265 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
266266 exit 255
267267 fi
268268
269 if test x$as_have_required = xno; then :
270 $as_echo "$0: This script requires a shell more modern than all"
271 $as_echo "$0: the shells that I found on your system."
272 if test x${ZSH_VERSION+set} = xset ; then
273 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 if test x$as_have_required = xno
270 then :
271 printf "%s\n" "$0: This script requires a shell more modern than all"
272 printf "%s\n" "$0: the shells that I found on your system."
273 if test ${ZSH_VERSION+y} ; then
274 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275276 else
276 $as_echo "$0: Please tell bug-autoconf@gnu.org and
277 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
277278 $0: https://github.com/protobuf-c/protobuf-c/issues about
278279 $0: your system, including any error possibly output before
279280 $0: this message. Then install a modern shell, or manually
301302 }
302303 as_unset=as_fn_unset
303304
305
304306 # as_fn_set_status STATUS
305307 # -----------------------
306308 # Set $? to STATUS, without forking.
318320 as_fn_set_status $1
319321 exit $1
320322 } # as_fn_exit
323 # as_fn_nop
324 # ---------
325 # Do nothing but, unlike ":", preserve the value of $?.
326 as_fn_nop ()
327 {
328 return $?
329 }
330 as_nop=as_fn_nop
321331
322332 # as_fn_mkdir_p
323333 # -------------
332342 as_dirs=
333343 while :; do
334344 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
345 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336346 *) as_qdir=$as_dir;;
337347 esac
338348 as_dirs="'$as_qdir' $as_dirs"
341351 X"$as_dir" : 'X\(//\)[^/]' \| \
342352 X"$as_dir" : 'X\(//\)$' \| \
343353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
354 printf "%s\n" X"$as_dir" |
345355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346356 s//\1/
347357 q
380390 # advantage of any shell optimizations that allow amortized linear growth over
381391 # repeated appends, instead of the typical quadratic growth present in naive
382392 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
393 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
394 then :
384395 eval 'as_fn_append ()
385396 {
386397 eval $1+=\$2
387398 }'
388 else
399 else $as_nop
389400 as_fn_append ()
390401 {
391402 eval $1=\$$1\$2
397408 # Perform arithmetic evaluation on the ARGs, and store the result in the
398409 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399410 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
411 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
412 then :
401413 eval 'as_fn_arith ()
402414 {
403415 as_val=$(( $* ))
404416 }'
405 else
417 else $as_nop
406418 as_fn_arith ()
407419 {
408420 as_val=`expr "$@" || test $? -eq 1`
409421 }
410422 fi # as_fn_arith
411423
424 # as_fn_nop
425 # ---------
426 # Do nothing but, unlike ":", preserve the value of $?.
427 as_fn_nop ()
428 {
429 return $?
430 }
431 as_nop=as_fn_nop
412432
413433 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414434 # ----------------------------------------
420440 as_status=$1; test $as_status -eq 0 && as_status=1
421441 if test "$4"; then
422442 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424444 fi
425 $as_echo "$as_me: error: $2" >&2
445 printf "%s\n" "$as_me: error: $2" >&2
426446 as_fn_exit $as_status
427447 } # as_fn_error
428448
449469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450470 X"$0" : 'X\(//\)$' \| \
451471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 $as_echo X/"$0" |
472 printf "%s\n" X/"$0" |
453473 sed '/^.*\/\([^/][^/]*\)\/*$/{
454474 s//\1/
455475 q
493513 s/-\n.*//
494514 ' >$as_me.lineno &&
495515 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
516 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497517
498518 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499519 # already done that, so ensure we don't try to do so again and fall
507527 exit
508528 }
509529
530
531 # Determine whether it's possible to make 'echo' print without a newline.
532 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
533 # for compatibility with existing Makefiles.
510534 ECHO_C= ECHO_N= ECHO_T=
511535 case `echo -n x` in #(((((
512536 -n*)
519543 *)
520544 ECHO_N='-n';;
521545 esac
546
547 # For backward compatibility with old third-party macros, we provide
548 # the shell variables $as_echo and $as_echo_n. New code should use
549 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
550 as_echo='printf %s\n'
551 as_echo_n='printf %s'
552
522553
523554 rm -f conf$$ conf$$.exe conf$$.file
524555 if test -d conf$$.dir; then
589620 # Identity of this package.
590621 PACKAGE_NAME='protobuf-c'
591622 PACKAGE_TARNAME='protobuf-c'
592 PACKAGE_VERSION='1.3.3'
593 PACKAGE_STRING='protobuf-c 1.3.3'
623 PACKAGE_VERSION='1.4.0'
624 PACKAGE_STRING='protobuf-c 1.4.0'
594625 PACKAGE_BUGREPORT='https://github.com/protobuf-c/protobuf-c/issues'
595626 PACKAGE_URL='https://github.com/protobuf-c/protobuf-c'
596627
597628 ac_unique_file="protobuf-c/protobuf-c.c"
598629 # Factoring default headers for most tests.
599630 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
603634 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
635 #ifdef HAVE_STDLIB_H
608636 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614637 #endif
615638 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619639 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623640 #endif
624641 #ifdef HAVE_INTTYPES_H
625642 # include <inttypes.h>
627644 #ifdef HAVE_STDINT_H
628645 # include <stdint.h>
629646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
630656 #ifdef HAVE_UNISTD_H
631657 # include <unistd.h>
632658 #endif"
633659
660 ac_header_c_list=
634661 ac_subst_vars='am__EXEEXT_FALSE
635662 am__EXEEXT_TRUE
636663 LTLIBOBJS
683710 DUMPBIN
684711 LD
685712 FGREP
713 EGREP
714 GREP
686715 SED
687716 host_os
688717 host_vendor
693722 build_cpu
694723 build
695724 LIBTOOL
696 EGREP
697 GREP
698 CPP
699725 LN_S
700726 am__fastdepCXX_FALSE
701727 am__fastdepCXX_TRUE
723749 AM_DEFAULT_VERBOSITY
724750 AM_DEFAULT_V
725751 AM_V
752 CSCOPE
753 ETAGS
754 CTAGS
726755 am__untar
727756 am__tar
728757 AMTAR
818847 CXX
819848 CXXFLAGS
820849 CCC
821 CPP
822850 LT_SYS_LIBRARY_PATH
823851 CXXCPP
824852 PKG_CONFIG
895923 *) ac_optarg=yes ;;
896924 esac
897925
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
900926 case $ac_dashdash$ac_option in
901927 --)
902928 ac_dashdash=yes ;;
937963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938964 # Reject names that are not valid shell variable names.
939965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
966 as_fn_error $? "invalid feature name: \`$ac_useropt'"
941967 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
943969 case $ac_user_opts in
944970 *"
945971 "enable_$ac_useropt"
963989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964990 # Reject names that are not valid shell variable names.
965991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
992 as_fn_error $? "invalid feature name: \`$ac_useropt'"
967993 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
969995 case $ac_user_opts in
970996 *"
971997 "enable_$ac_useropt"
11761202 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11771203 # Reject names that are not valid shell variable names.
11781204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error $? "invalid package name: $ac_useropt"
1205 as_fn_error $? "invalid package name: \`$ac_useropt'"
11801206 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11821208 case $ac_user_opts in
11831209 *"
11841210 "with_$ac_useropt"
11921218 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11931219 # Reject names that are not valid shell variable names.
11941220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: $ac_useropt"
1221 as_fn_error $? "invalid package name: \`$ac_useropt'"
11961222 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11981224 case $ac_user_opts in
11991225 *"
12001226 "with_$ac_useropt"
12381264
12391265 *)
12401266 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
12421268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
12441270 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12451271 ;;
12461272
12561282 case $enable_option_checking in
12571283 no) ;;
12581284 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12601286 esac
12611287 fi
12621288
13201346 X"$as_myself" : 'X\(//\)[^/]' \| \
13211347 X"$as_myself" : 'X\(//\)$' \| \
13221348 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1349 printf "%s\n" X"$as_myself" |
13241350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13251351 s//\1/
13261352 q
13771403 # Omit some internal or obsolete options to make the list less imposing.
13781404 # This message is too long to be a string in the A/UX 3.1 sh.
13791405 cat <<_ACEOF
1380 \`configure' configures protobuf-c 1.3.3 to adapt to many kinds of systems.
1406 \`configure' configures protobuf-c 1.4.0 to adapt to many kinds of systems.
13811407
13821408 Usage: $0 [OPTION]... [VAR=VALUE]...
13831409
14481474
14491475 if test -n "$ac_init_help"; then
14501476 case $ac_init_help in
1451 short | recursive ) echo "Configuration of protobuf-c 1.3.3:";;
1477 short | recursive ) echo "Configuration of protobuf-c 1.4.0:";;
14521478 esac
14531479 cat <<\_ACEOF
14541480
14991525 you have headers in a nonstandard directory <include dir>
15001526 CXX C++ compiler command
15011527 CXXFLAGS C++ compiler flags
1502 CPP C preprocessor
15031528 LT_SYS_LIBRARY_PATH
15041529 User-defined run-time library search path.
15051530 CXXCPP C++ preprocessor
15341559 case "$ac_dir" in
15351560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15361561 *)
1537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1562 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15381563 # A ".." for each directory in $ac_dir_suffix.
1539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1564 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15401565 case $ac_top_builddir_sub in
15411566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15421567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15641589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15651590
15661591 cd "$ac_dir" || { ac_status=$?; continue; }
1567 # Check for guested configure.
1592 # Check for configure.gnu first; this name is used for a wrapper for
1593 # Metaconfig's "Configure" on case-insensitive file systems.
15681594 if test -f "$ac_srcdir/configure.gnu"; then
15691595 echo &&
15701596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
15721598 echo &&
15731599 $SHELL "$ac_srcdir/configure" --help=recursive
15741600 else
1575 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15761602 fi || ac_status=$?
15771603 cd "$ac_pwd" || { ac_status=$?; break; }
15781604 done
15811607 test -n "$ac_init_help" && exit $ac_status
15821608 if $ac_init_version; then
15831609 cat <<\_ACEOF
1584 protobuf-c configure 1.3.3
1585 generated by GNU Autoconf 2.69
1586
1587 Copyright (C) 2012 Free Software Foundation, Inc.
1610 protobuf-c configure 1.4.0
1611 generated by GNU Autoconf 2.71
1612
1613 Copyright (C) 2021 Free Software Foundation, Inc.
15881614 This configure script is free software; the Free Software Foundation
15891615 gives unlimited permission to copy, distribute and modify it.
15901616 _ACEOF
16011627 ac_fn_c_try_compile ()
16021628 {
16031629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext
1630 rm -f conftest.$ac_objext conftest.beam
16051631 if { { ac_try="$ac_compile"
16061632 case "(($ac_try" in
16071633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081634 *) ac_try_echo=$ac_try;;
16091635 esac
16101636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1637 printf "%s\n" "$ac_try_echo"; } >&5
16121638 (eval "$ac_compile") 2>conftest.err
16131639 ac_status=$?
16141640 if test -s conftest.err; then
16161642 cat conftest.er1 >&5
16171643 mv -f conftest.er1 conftest.err
16181644 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16201646 test $ac_status = 0; } && {
16211647 test -z "$ac_c_werror_flag" ||
16221648 test ! -s conftest.err
1623 } && test -s conftest.$ac_objext; then :
1649 } && test -s conftest.$ac_objext
1650 then :
16241651 ac_retval=0
1625 else
1626 $as_echo "$as_me: failed program was:" >&5
1652 else $as_nop
1653 printf "%s\n" "$as_me: failed program was:" >&5
16271654 sed 's/^/| /' conftest.$ac_ext >&5
16281655
16291656 ac_retval=1
16391666 ac_fn_cxx_try_compile ()
16401667 {
16411668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext
1669 rm -f conftest.$ac_objext conftest.beam
16431670 if { { ac_try="$ac_compile"
16441671 case "(($ac_try" in
16451672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461673 *) ac_try_echo=$ac_try;;
16471674 esac
16481675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1676 printf "%s\n" "$ac_try_echo"; } >&5
16501677 (eval "$ac_compile") 2>conftest.err
16511678 ac_status=$?
16521679 if test -s conftest.err; then
16541681 cat conftest.er1 >&5
16551682 mv -f conftest.er1 conftest.err
16561683 fi
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16581685 test $ac_status = 0; } && {
16591686 test -z "$ac_cxx_werror_flag" ||
16601687 test ! -s conftest.err
1661 } && test -s conftest.$ac_objext; then :
1688 } && test -s conftest.$ac_objext
1689 then :
16621690 ac_retval=0
1663 else
1664 $as_echo "$as_me: failed program was:" >&5
1691 else $as_nop
1692 printf "%s\n" "$as_me: failed program was:" >&5
16651693 sed 's/^/| /' conftest.$ac_ext >&5
16661694
16671695 ac_retval=1
16701698 as_fn_set_status $ac_retval
16711699
16721700 } # ac_fn_cxx_try_compile
1673
1674 # ac_fn_c_try_cpp LINENO
1675 # ----------------------
1676 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_cpp ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } > conftest.i && {
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705 fi
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1708
1709 } # ac_fn_c_try_cpp
1710
1711 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714 # the include files in INCLUDES and setting the cache variable VAR
1715 # accordingly.
1716 ac_fn_c_check_header_mongrel ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if eval \${$3+:} false; then :
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1724 fi
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 else
1729 # Is the header compilable?
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731 $as_echo_n "checking $2 usability... " >&6; }
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 $4
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_header_compiler=yes
1739 else
1740 ac_header_compiler=no
1741 fi
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744 $as_echo "$ac_header_compiler" >&6; }
1745
1746 # Is the header present?
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748 $as_echo_n "checking $2 presence... " >&6; }
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_cpp "$LINENO"; then :
1754 ac_header_preproc=yes
1755 else
1756 ac_header_preproc=no
1757 fi
1758 rm -f conftest.err conftest.i conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760 $as_echo "$ac_header_preproc" >&6; }
1761
1762 # So? What about this header?
1763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 yes:no: )
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769 ;;
1770 no:yes:* )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781 ( $as_echo "## -------------------------------------------------------------- ##
1782 ## Report this to https://github.com/protobuf-c/protobuf-c/issues ##
1783 ## -------------------------------------------------------------- ##"
1784 ) | sed "s/^/$as_me: WARNING: /" >&2
1785 ;;
1786 esac
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 $as_echo_n "checking for $2... " >&6; }
1789 if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1791 else
1792 eval "$3=\$ac_header_compiler"
1793 fi
1794 eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 fi
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_header_mongrel
1801
1802 # ac_fn_c_try_run LINENO
1803 # ----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1805 # that executables *can* be run.
1806 ac_fn_c_try_run ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_link"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>&5
1817 ac_status=$?
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1820 { { case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_try") 2>&5
1827 ac_status=$?
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; }; }; then :
1830 ac_retval=0
1831 else
1832 $as_echo "$as_me: program exited with status $ac_status" >&5
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836 ac_retval=$ac_status
1837 fi
1838 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_run
18431701
18441702 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
18451703 # -------------------------------------------------------
18481706 ac_fn_c_check_header_compile ()
18491707 {
18501708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1855 else
1709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 printf %s "checking for $2... " >&6; }
1711 if eval test \${$3+y}
1712 then :
1713 printf %s "(cached) " >&6
1714 else $as_nop
18561715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571716 /* end confdefs.h. */
18581717 $4
18591718 #include <$2>
18601719 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1720 if ac_fn_c_try_compile "$LINENO"
1721 then :
18621722 eval "$3=yes"
1863 else
1723 else $as_nop
18641724 eval "$3=no"
18651725 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18671727 fi
18681728 eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 printf "%s\n" "$ac_res" >&6; }
18711731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18721732
18731733 } # ac_fn_c_check_header_compile
18781738 ac_fn_c_try_link ()
18791739 {
18801740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1741 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
18821742 if { { ac_try="$ac_link"
18831743 case "(($ac_try" in
18841744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851745 *) ac_try_echo=$ac_try;;
18861746 esac
18871747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1748 printf "%s\n" "$ac_try_echo"; } >&5
18891749 (eval "$ac_link") 2>conftest.err
18901750 ac_status=$?
18911751 if test -s conftest.err; then
18931753 cat conftest.er1 >&5
18941754 mv -f conftest.er1 conftest.err
18951755 fi
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18971757 test $ac_status = 0; } && {
18981758 test -z "$ac_c_werror_flag" ||
18991759 test ! -s conftest.err
19001760 } && test -s conftest$ac_exeext && {
19011761 test "$cross_compiling" = yes ||
19021762 test -x conftest$ac_exeext
1903 }; then :
1763 }
1764 then :
19041765 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1766 else $as_nop
1767 printf "%s\n" "$as_me: failed program was:" >&5
19071768 sed 's/^/| /' conftest.$ac_ext >&5
19081769
19091770 ac_retval=1
19241785 ac_fn_c_check_func ()
19251786 {
19261787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 printf %s "checking for $2... " >&6; }
1790 if eval test \${$3+y}
1791 then :
1792 printf %s "(cached) " >&6
1793 else $as_nop
19321794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331795 /* end confdefs.h. */
19341796 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
19361798 #define $2 innocuous_$2
19371799
19381800 /* System header to define __stub macros and hopefully few prototypes,
1939 which can conflict with char $2 (); below.
1940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941 <limits.h> exists even on freestanding compilers. */
1942
1943 #ifdef __STDC__
1944 # include <limits.h>
1945 #else
1946 # include <assert.h>
1947 #endif
1948
1801 which can conflict with char $2 (); below. */
1802
1803 #include <limits.h>
19491804 #undef $2
19501805
19511806 /* Override any GCC internal prototype to avoid an error.
19631818 #endif
19641819
19651820 int
1966 main ()
1821 main (void)
19671822 {
19681823 return $2 ();
19691824 ;
19701825 return 0;
19711826 }
19721827 _ACEOF
1973 if ac_fn_c_try_link "$LINENO"; then :
1828 if ac_fn_c_try_link "$LINENO"
1829 then :
19741830 eval "$3=yes"
1975 else
1831 else $as_nop
19761832 eval "$3=no"
19771833 fi
1978 rm -f core conftest.err conftest.$ac_objext \
1834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19791835 conftest$ac_exeext conftest.$ac_ext
19801836 fi
19811837 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 printf "%s\n" "$ac_res" >&6; }
19841840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19851841
19861842 } # ac_fn_c_check_func
19971853 *) ac_try_echo=$ac_try;;
19981854 esac
19991855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
1856 printf "%s\n" "$ac_try_echo"; } >&5
20011857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
20021858 ac_status=$?
20031859 if test -s conftest.err; then
20051861 cat conftest.er1 >&5
20061862 mv -f conftest.er1 conftest.err
20071863 fi
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20091865 test $ac_status = 0; } > conftest.i && {
20101866 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20111867 test ! -s conftest.err
2012 }; then :
1868 }
1869 then :
20131870 ac_retval=0
2014 else
2015 $as_echo "$as_me: failed program was:" >&5
1871 else $as_nop
1872 printf "%s\n" "$as_me: failed program was:" >&5
20161873 sed 's/^/| /' conftest.$ac_ext >&5
20171874
20181875 ac_retval=1
20281885 ac_fn_cxx_try_link ()
20291886 {
20301887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 rm -f conftest.$ac_objext conftest$ac_exeext
1888 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
20321889 if { { ac_try="$ac_link"
20331890 case "(($ac_try" in
20341891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20351892 *) ac_try_echo=$ac_try;;
20361893 esac
20371894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
1895 printf "%s\n" "$ac_try_echo"; } >&5
20391896 (eval "$ac_link") 2>conftest.err
20401897 ac_status=$?
20411898 if test -s conftest.err; then
20431900 cat conftest.er1 >&5
20441901 mv -f conftest.er1 conftest.err
20451902 fi
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20471904 test $ac_status = 0; } && {
20481905 test -z "$ac_cxx_werror_flag" ||
20491906 test ! -s conftest.err
20501907 } && test -s conftest$ac_exeext && {
20511908 test "$cross_compiling" = yes ||
20521909 test -x conftest$ac_exeext
2053 }; then :
1910 }
1911 then :
20541912 ac_retval=0
2055 else
2056 $as_echo "$as_me: failed program was:" >&5
1913 else $as_nop
1914 printf "%s\n" "$as_me: failed program was:" >&5
20571915 sed 's/^/| /' conftest.$ac_ext >&5
20581916
20591917 ac_retval=1
20681926
20691927 } # ac_fn_cxx_try_link
20701928
2071 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1929 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
20721930 # ---------------------------------------------------------
2073 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2074 # the include files in INCLUDES and setting the cache variable VAR
2075 # accordingly.
2076 ac_fn_cxx_check_header_mongrel ()
1931 # Tests whether HEADER exists and can be compiled using the include files in
1932 # INCLUDES, setting the cache variable VAR accordingly.
1933 ac_fn_cxx_check_header_compile ()
20771934 {
20781935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 if eval \${$3+:} false; then :
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081 $as_echo_n "checking for $2... " >&6; }
2082 if eval \${$3+:} false; then :
2083 $as_echo_n "(cached) " >&6
2084 fi
2085 eval ac_res=\$$3
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 else
2089 # Is the header compilable?
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2091 $as_echo_n "checking $2 usability... " >&6; }
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 printf %s "checking for $2... " >&6; }
1938 if eval test \${$3+y}
1939 then :
1940 printf %s "(cached) " >&6
1941 else $as_nop
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20931943 /* end confdefs.h. */
20941944 $4
20951945 #include <$2>
20961946 _ACEOF
2097 if ac_fn_cxx_try_compile "$LINENO"; then :
2098 ac_header_compiler=yes
2099 else
2100 ac_header_compiler=no
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2104 $as_echo "$ac_header_compiler" >&6; }
2105
2106 # Is the header present?
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2108 $as_echo_n "checking $2 presence... " >&6; }
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2111 #include <$2>
2112 _ACEOF
2113 if ac_fn_cxx_try_cpp "$LINENO"; then :
2114 ac_header_preproc=yes
2115 else
2116 ac_header_preproc=no
2117 fi
2118 rm -f conftest.err conftest.i conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2120 $as_echo "$ac_header_preproc" >&6; }
2121
2122 # So? What about this header?
2123 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2124 yes:no: )
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2126 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2128 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2129 ;;
2130 no:yes:* )
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2132 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2134 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2136 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2138 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2140 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2141 ( $as_echo "## -------------------------------------------------------------- ##
2142 ## Report this to https://github.com/protobuf-c/protobuf-c/issues ##
2143 ## -------------------------------------------------------------- ##"
2144 ) | sed "s/^/$as_me: WARNING: /" >&2
2145 ;;
2146 esac
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2148 $as_echo_n "checking for $2... " >&6; }
2149 if eval \${$3+:} false; then :
2150 $as_echo_n "(cached) " >&6
2151 else
2152 eval "$3=\$ac_header_compiler"
1947 if ac_fn_cxx_try_compile "$LINENO"
1948 then :
1949 eval "$3=yes"
1950 else $as_nop
1951 eval "$3=no"
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21531954 fi
21541955 eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 fi
1956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 printf "%s\n" "$ac_res" >&6; }
21581958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21591959
2160 } # ac_fn_cxx_check_header_mongrel
1960 } # ac_fn_cxx_check_header_compile
21611961
21621962 # ac_fn_cxx_try_run LINENO
21631963 # ------------------------
2164 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2165 # that executables *can* be run.
1964 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1965 # executables *can* be run.
21661966 ac_fn_cxx_try_run ()
21671967 {
21681968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21721972 *) ac_try_echo=$ac_try;;
21731973 esac
21741974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
1975 printf "%s\n" "$ac_try_echo"; } >&5
21761976 (eval "$ac_link") 2>&5
21771977 ac_status=$?
2178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21791979 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
21801980 { { case "(($ac_try" in
21811981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821982 *) ac_try_echo=$ac_try;;
21831983 esac
21841984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2185 $as_echo "$ac_try_echo"; } >&5
1985 printf "%s\n" "$ac_try_echo"; } >&5
21861986 (eval "$ac_try") 2>&5
21871987 ac_status=$?
2188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2189 test $ac_status = 0; }; }; then :
1988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; }; }
1990 then :
21901991 ac_retval=0
2191 else
2192 $as_echo "$as_me: program exited with status $ac_status" >&5
2193 $as_echo "$as_me: failed program was:" >&5
1992 else $as_nop
1993 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1994 printf "%s\n" "$as_me: failed program was:" >&5
21941995 sed 's/^/| /' conftest.$ac_ext >&5
21951996
21961997 ac_retval=$ac_status
22002001 as_fn_set_status $ac_retval
22012002
22022003 } # ac_fn_cxx_try_run
2004 ac_configure_args_raw=
2005 for ac_arg
2006 do
2007 case $ac_arg in
2008 *\'*)
2009 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2010 esac
2011 as_fn_append ac_configure_args_raw " '$ac_arg'"
2012 done
2013
2014 case $ac_configure_args_raw in
2015 *$as_nl*)
2016 ac_safe_unquote= ;;
2017 *)
2018 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2019 ac_unsafe_a="$ac_unsafe_z#~"
2020 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2021 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2022 esac
2023
22032024 cat >config.log <<_ACEOF
22042025 This file contains any messages produced by compilers while
22052026 running configure, to aid debugging if configure makes a mistake.
22062027
2207 It was created by protobuf-c $as_me 1.3.3, which was
2208 generated by GNU Autoconf 2.69. Invocation command line was
2209
2210 $ $0 $@
2028 It was created by protobuf-c $as_me 1.4.0, which was
2029 generated by GNU Autoconf 2.71. Invocation command line was
2030
2031 $ $0$ac_configure_args_raw
22112032
22122033 _ACEOF
22132034 exec 5>>config.log
22402061 for as_dir in $PATH
22412062 do
22422063 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 $as_echo "PATH: $as_dir"
2064 case $as_dir in #(((
2065 '') as_dir=./ ;;
2066 */) ;;
2067 *) as_dir=$as_dir/ ;;
2068 esac
2069 printf "%s\n" "PATH: $as_dir"
22452070 done
22462071 IFS=$as_save_IFS
22472072
22762101 | -silent | --silent | --silen | --sile | --sil)
22772102 continue ;;
22782103 *\'*)
2279 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2104 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22802105 esac
22812106 case $ac_pass in
22822107 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
23112136 # WARNING: Use '\'' to represent an apostrophe within the trap.
23122137 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
23132138 trap 'exit_status=$?
2139 # Sanitize IFS.
2140 IFS=" "" $as_nl"
23142141 # Save into config.log some information that might help in debugging.
23152142 {
23162143 echo
23172144
2318 $as_echo "## ---------------- ##
2145 printf "%s\n" "## ---------------- ##
23192146 ## Cache variables. ##
23202147 ## ---------------- ##"
23212148 echo
23262153 case $ac_val in #(
23272154 *${as_nl}*)
23282155 case $ac_var in #(
2329 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2156 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2157 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23312158 esac
23322159 case $ac_var in #(
23332160 _ | IFS | as_nl) ;; #(
23512178 )
23522179 echo
23532180
2354 $as_echo "## ----------------- ##
2181 printf "%s\n" "## ----------------- ##
23552182 ## Output variables. ##
23562183 ## ----------------- ##"
23572184 echo
23592186 do
23602187 eval ac_val=\$$ac_var
23612188 case $ac_val in
2362 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
23632190 esac
2364 $as_echo "$ac_var='\''$ac_val'\''"
2191 printf "%s\n" "$ac_var='\''$ac_val'\''"
23652192 done | sort
23662193 echo
23672194
23682195 if test -n "$ac_subst_files"; then
2369 $as_echo "## ------------------- ##
2196 printf "%s\n" "## ------------------- ##
23702197 ## File substitutions. ##
23712198 ## ------------------- ##"
23722199 echo
23742201 do
23752202 eval ac_val=\$$ac_var
23762203 case $ac_val in
2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
23782205 esac
2379 $as_echo "$ac_var='\''$ac_val'\''"
2206 printf "%s\n" "$ac_var='\''$ac_val'\''"
23802207 done | sort
23812208 echo
23822209 fi
23832210
23842211 if test -s confdefs.h; then
2385 $as_echo "## ----------- ##
2212 printf "%s\n" "## ----------- ##
23862213 ## confdefs.h. ##
23872214 ## ----------- ##"
23882215 echo
23902217 echo
23912218 fi
23922219 test "$ac_signal" != 0 &&
2393 $as_echo "$as_me: caught signal $ac_signal"
2394 $as_echo "$as_me: exit $exit_status"
2220 printf "%s\n" "$as_me: caught signal $ac_signal"
2221 printf "%s\n" "$as_me: exit $exit_status"
23952222 } >&5
23962223 rm -f core *.core core.conftest.* &&
23972224 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
24052232 # confdefs.h avoids OS command line length limits that DEFS can exceed.
24062233 rm -f -r conftest* confdefs.h
24072234
2408 $as_echo "/* confdefs.h */" > confdefs.h
2235 printf "%s\n" "/* confdefs.h */" > confdefs.h
24092236
24102237 # Predefined preprocessor variables.
24112238
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_NAME "$PACKAGE_NAME"
2414 _ACEOF
2415
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2418 _ACEOF
2419
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2422 _ACEOF
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_STRING "$PACKAGE_STRING"
2426 _ACEOF
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_URL "$PACKAGE_URL"
2434 _ACEOF
2239 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2240
2241 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2242
2243 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2244
2245 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2246
2247 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2248
2249 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
24352250
24362251
24372252 # Let the site file select an alternate cache file if it wants to.
24382253 # Prefer an explicitly selected file to automatically selected ones.
2439 ac_site_file1=NONE
2440 ac_site_file2=NONE
24412254 if test -n "$CONFIG_SITE"; then
2442 # We do not want a PATH search for config.site.
2443 case $CONFIG_SITE in #((
2444 -*) ac_site_file1=./$CONFIG_SITE;;
2445 */*) ac_site_file1=$CONFIG_SITE;;
2446 *) ac_site_file1=./$CONFIG_SITE;;
2447 esac
2255 ac_site_files="$CONFIG_SITE"
24482256 elif test "x$prefix" != xNONE; then
2449 ac_site_file1=$prefix/share/config.site
2450 ac_site_file2=$prefix/etc/config.site
2257 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
24512258 else
2452 ac_site_file1=$ac_default_prefix/share/config.site
2453 ac_site_file2=$ac_default_prefix/etc/config.site
2454 fi
2455 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2259 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2260 fi
2261
2262 for ac_site_file in $ac_site_files
24562263 do
2457 test "x$ac_site_file" = xNONE && continue
2458 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2460 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2264 case $ac_site_file in #(
2265 */*) :
2266 ;; #(
2267 *) :
2268 ac_site_file=./$ac_site_file ;;
2269 esac
2270 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2272 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
24612273 sed 's/^/| /' "$ac_site_file" >&5
24622274 . "$ac_site_file" \
2463 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2276 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24652277 as_fn_error $? "failed to load site script $ac_site_file
24662278 See \`config.log' for more details" "$LINENO" 5; }
24672279 fi
24712283 # Some versions of bash will fail to source /dev/null (special files
24722284 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
24732285 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2475 $as_echo "$as_me: loading cache $cache_file" >&6;}
2286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2287 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
24762288 case $cache_file in
24772289 [\\/]* | ?:[\\/]* ) . "$cache_file";;
24782290 *) . "./$cache_file";;
24792291 esac
24802292 fi
24812293 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2483 $as_echo "$as_me: creating cache $cache_file" >&6;}
2294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2295 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
24842296 >$cache_file
2297 fi
2298
2299 # Test code for whether the C compiler supports C89 (global declarations)
2300 ac_c_conftest_c89_globals='
2301 /* Does the compiler advertise C89 conformance?
2302 Do not test the value of __STDC__, because some compilers set it to 0
2303 while being otherwise adequately conformant. */
2304 #if !defined __STDC__
2305 # error "Compiler does not advertise C89 conformance"
2306 #endif
2307
2308 #include <stddef.h>
2309 #include <stdarg.h>
2310 struct stat;
2311 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2312 struct buf { int x; };
2313 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2314 static char *e (p, i)
2315 char **p;
2316 int i;
2317 {
2318 return p[i];
2319 }
2320 static char *f (char * (*g) (char **, int), char **p, ...)
2321 {
2322 char *s;
2323 va_list v;
2324 va_start (v,p);
2325 s = g (p, va_arg (v,int));
2326 va_end (v);
2327 return s;
2328 }
2329
2330 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2331 function prototypes and stuff, but not \xHH hex character constants.
2332 These do not provoke an error unfortunately, instead are silently treated
2333 as an "x". The following induces an error, until -std is added to get
2334 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2335 array size at least. It is necessary to write \x00 == 0 to get something
2336 that is true only with -std. */
2337 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2338
2339 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2340 inside strings and character constants. */
2341 #define FOO(x) '\''x'\''
2342 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2343
2344 int test (int i, double x);
2345 struct s1 {int (*f) (int a);};
2346 struct s2 {int (*f) (double a);};
2347 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2348 int, int);'
2349
2350 # Test code for whether the C compiler supports C89 (body of main).
2351 ac_c_conftest_c89_main='
2352 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2353 '
2354
2355 # Test code for whether the C compiler supports C99 (global declarations)
2356 ac_c_conftest_c99_globals='
2357 // Does the compiler advertise C99 conformance?
2358 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2359 # error "Compiler does not advertise C99 conformance"
2360 #endif
2361
2362 #include <stdbool.h>
2363 extern int puts (const char *);
2364 extern int printf (const char *, ...);
2365 extern int dprintf (int, const char *, ...);
2366 extern void *malloc (size_t);
2367
2368 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2369 // dprintf is used instead of fprintf to avoid needing to declare
2370 // FILE and stderr.
2371 #define debug(...) dprintf (2, __VA_ARGS__)
2372 #define showlist(...) puts (#__VA_ARGS__)
2373 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2374 static void
2375 test_varargs_macros (void)
2376 {
2377 int x = 1234;
2378 int y = 5678;
2379 debug ("Flag");
2380 debug ("X = %d\n", x);
2381 showlist (The first, second, and third items.);
2382 report (x>y, "x is %d but y is %d", x, y);
2383 }
2384
2385 // Check long long types.
2386 #define BIG64 18446744073709551615ull
2387 #define BIG32 4294967295ul
2388 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2389 #if !BIG_OK
2390 #error "your preprocessor is broken"
2391 #endif
2392 #if BIG_OK
2393 #else
2394 #error "your preprocessor is broken"
2395 #endif
2396 static long long int bignum = -9223372036854775807LL;
2397 static unsigned long long int ubignum = BIG64;
2398
2399 struct incomplete_array
2400 {
2401 int datasize;
2402 double data[];
2403 };
2404
2405 struct named_init {
2406 int number;
2407 const wchar_t *name;
2408 double average;
2409 };
2410
2411 typedef const char *ccp;
2412
2413 static inline int
2414 test_restrict (ccp restrict text)
2415 {
2416 // See if C++-style comments work.
2417 // Iterate through items via the restricted pointer.
2418 // Also check for declarations in for loops.
2419 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2420 continue;
2421 return 0;
2422 }
2423
2424 // Check varargs and va_copy.
2425 static bool
2426 test_varargs (const char *format, ...)
2427 {
2428 va_list args;
2429 va_start (args, format);
2430 va_list args_copy;
2431 va_copy (args_copy, args);
2432
2433 const char *str = "";
2434 int number = 0;
2435 float fnumber = 0;
2436
2437 while (*format)
2438 {
2439 switch (*format++)
2440 {
2441 case '\''s'\'': // string
2442 str = va_arg (args_copy, const char *);
2443 break;
2444 case '\''d'\'': // int
2445 number = va_arg (args_copy, int);
2446 break;
2447 case '\''f'\'': // float
2448 fnumber = va_arg (args_copy, double);
2449 break;
2450 default:
2451 break;
2452 }
2453 }
2454 va_end (args_copy);
2455 va_end (args);
2456
2457 return *str && number && fnumber;
2458 }
2459 '
2460
2461 # Test code for whether the C compiler supports C99 (body of main).
2462 ac_c_conftest_c99_main='
2463 // Check bool.
2464 _Bool success = false;
2465 success |= (argc != 0);
2466
2467 // Check restrict.
2468 if (test_restrict ("String literal") == 0)
2469 success = true;
2470 char *restrict newvar = "Another string";
2471
2472 // Check varargs.
2473 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2474 test_varargs_macros ();
2475
2476 // Check flexible array members.
2477 struct incomplete_array *ia =
2478 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2479 ia->datasize = 10;
2480 for (int i = 0; i < ia->datasize; ++i)
2481 ia->data[i] = i * 1.234;
2482
2483 // Check named initializers.
2484 struct named_init ni = {
2485 .number = 34,
2486 .name = L"Test wide string",
2487 .average = 543.34343,
2488 };
2489
2490 ni.number = 58;
2491
2492 int dynamic_array[ni.number];
2493 dynamic_array[0] = argv[0][0];
2494 dynamic_array[ni.number - 1] = 543;
2495
2496 // work around unused variable warnings
2497 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2498 || dynamic_array[ni.number - 1] != 543);
2499 '
2500
2501 # Test code for whether the C compiler supports C11 (global declarations)
2502 ac_c_conftest_c11_globals='
2503 // Does the compiler advertise C11 conformance?
2504 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2505 # error "Compiler does not advertise C11 conformance"
2506 #endif
2507
2508 // Check _Alignas.
2509 char _Alignas (double) aligned_as_double;
2510 char _Alignas (0) no_special_alignment;
2511 extern char aligned_as_int;
2512 char _Alignas (0) _Alignas (int) aligned_as_int;
2513
2514 // Check _Alignof.
2515 enum
2516 {
2517 int_alignment = _Alignof (int),
2518 int_array_alignment = _Alignof (int[100]),
2519 char_alignment = _Alignof (char)
2520 };
2521 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2522
2523 // Check _Noreturn.
2524 int _Noreturn does_not_return (void) { for (;;) continue; }
2525
2526 // Check _Static_assert.
2527 struct test_static_assert
2528 {
2529 int x;
2530 _Static_assert (sizeof (int) <= sizeof (long int),
2531 "_Static_assert does not work in struct");
2532 long int y;
2533 };
2534
2535 // Check UTF-8 literals.
2536 #define u8 syntax error!
2537 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2538
2539 // Check duplicate typedefs.
2540 typedef long *long_ptr;
2541 typedef long int *long_ptr;
2542 typedef long_ptr long_ptr;
2543
2544 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2545 struct anonymous
2546 {
2547 union {
2548 struct { int i; int j; };
2549 struct { int k; long int l; } w;
2550 };
2551 int m;
2552 } v1;
2553 '
2554
2555 # Test code for whether the C compiler supports C11 (body of main).
2556 ac_c_conftest_c11_main='
2557 _Static_assert ((offsetof (struct anonymous, i)
2558 == offsetof (struct anonymous, w.k)),
2559 "Anonymous union alignment botch");
2560 v1.i = 2;
2561 v1.w.k = 5;
2562 ok |= v1.i != 5;
2563 '
2564
2565 # Test code for whether the C compiler supports C11 (complete).
2566 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2567 ${ac_c_conftest_c99_globals}
2568 ${ac_c_conftest_c11_globals}
2569
2570 int
2571 main (int argc, char **argv)
2572 {
2573 int ok = 0;
2574 ${ac_c_conftest_c89_main}
2575 ${ac_c_conftest_c99_main}
2576 ${ac_c_conftest_c11_main}
2577 return ok;
2578 }
2579 "
2580
2581 # Test code for whether the C compiler supports C99 (complete).
2582 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2583 ${ac_c_conftest_c99_globals}
2584
2585 int
2586 main (int argc, char **argv)
2587 {
2588 int ok = 0;
2589 ${ac_c_conftest_c89_main}
2590 ${ac_c_conftest_c99_main}
2591 return ok;
2592 }
2593 "
2594
2595 # Test code for whether the C compiler supports C89 (complete).
2596 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2597
2598 int
2599 main (int argc, char **argv)
2600 {
2601 int ok = 0;
2602 ${ac_c_conftest_c89_main}
2603 return ok;
2604 }
2605 "
2606
2607 # Test code for whether the C++ compiler supports C++98 (global declarations)
2608 ac_cxx_conftest_cxx98_globals='
2609 // Does the compiler advertise C++98 conformance?
2610 #if !defined __cplusplus || __cplusplus < 199711L
2611 # error "Compiler does not advertise C++98 conformance"
2612 #endif
2613
2614 // These inclusions are to reject old compilers that
2615 // lack the unsuffixed header files.
2616 #include <cstdlib>
2617 #include <exception>
2618
2619 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2620 extern void assert (int);
2621 namespace std {
2622 extern int strcmp (const char *, const char *);
2623 }
2624
2625 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2626 using std::exception;
2627 using std::strcmp;
2628
2629 namespace {
2630
2631 void test_exception_syntax()
2632 {
2633 try {
2634 throw "test";
2635 } catch (const char *s) {
2636 // Extra parentheses suppress a warning when building autoconf itself,
2637 // due to lint rules shared with more typical C programs.
2638 assert (!(strcmp) (s, "test"));
2639 }
2640 }
2641
2642 template <typename T> struct test_template
2643 {
2644 T const val;
2645 explicit test_template(T t) : val(t) {}
2646 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2647 };
2648
2649 } // anonymous namespace
2650 '
2651
2652 # Test code for whether the C++ compiler supports C++98 (body of main)
2653 ac_cxx_conftest_cxx98_main='
2654 assert (argc);
2655 assert (! argv[0]);
2656 {
2657 test_exception_syntax ();
2658 test_template<double> tt (2.0);
2659 assert (tt.add (4) == 6.0);
2660 assert (true && !false);
2661 }
2662 '
2663
2664 # Test code for whether the C++ compiler supports C++11 (global declarations)
2665 ac_cxx_conftest_cxx11_globals='
2666 // Does the compiler advertise C++ 2011 conformance?
2667 #if !defined __cplusplus || __cplusplus < 201103L
2668 # error "Compiler does not advertise C++11 conformance"
2669 #endif
2670
2671 namespace cxx11test
2672 {
2673 constexpr int get_val() { return 20; }
2674
2675 struct testinit
2676 {
2677 int i;
2678 double d;
2679 };
2680
2681 class delegate
2682 {
2683 public:
2684 delegate(int n) : n(n) {}
2685 delegate(): delegate(2354) {}
2686
2687 virtual int getval() { return this->n; };
2688 protected:
2689 int n;
2690 };
2691
2692 class overridden : public delegate
2693 {
2694 public:
2695 overridden(int n): delegate(n) {}
2696 virtual int getval() override final { return this->n * 2; }
2697 };
2698
2699 class nocopy
2700 {
2701 public:
2702 nocopy(int i): i(i) {}
2703 nocopy() = default;
2704 nocopy(const nocopy&) = delete;
2705 nocopy & operator=(const nocopy&) = delete;
2706 private:
2707 int i;
2708 };
2709
2710 // for testing lambda expressions
2711 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2712 {
2713 return f(v);
2714 }
2715
2716 // for testing variadic templates and trailing return types
2717 template <typename V> auto sum(V first) -> V
2718 {
2719 return first;
2720 }
2721 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2722 {
2723 return first + sum(rest...);
2724 }
2725 }
2726 '
2727
2728 # Test code for whether the C++ compiler supports C++11 (body of main)
2729 ac_cxx_conftest_cxx11_main='
2730 {
2731 // Test auto and decltype
2732 auto a1 = 6538;
2733 auto a2 = 48573953.4;
2734 auto a3 = "String literal";
2735
2736 int total = 0;
2737 for (auto i = a3; *i; ++i) { total += *i; }
2738
2739 decltype(a2) a4 = 34895.034;
2740 }
2741 {
2742 // Test constexpr
2743 short sa[cxx11test::get_val()] = { 0 };
2744 }
2745 {
2746 // Test initializer lists
2747 cxx11test::testinit il = { 4323, 435234.23544 };
2748 }
2749 {
2750 // Test range-based for
2751 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2752 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2753 for (auto &x : array) { x += 23; }
2754 }
2755 {
2756 // Test lambda expressions
2757 using cxx11test::eval;
2758 assert (eval ([](int x) { return x*2; }, 21) == 42);
2759 double d = 2.0;
2760 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2761 assert (d == 5.0);
2762 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2763 assert (d == 5.0);
2764 }
2765 {
2766 // Test use of variadic templates
2767 using cxx11test::sum;
2768 auto a = sum(1);
2769 auto b = sum(1, 2);
2770 auto c = sum(1.0, 2.0, 3.0);
2771 }
2772 {
2773 // Test constructor delegation
2774 cxx11test::delegate d1;
2775 cxx11test::delegate d2();
2776 cxx11test::delegate d3(45);
2777 }
2778 {
2779 // Test override and final
2780 cxx11test::overridden o1(55464);
2781 }
2782 {
2783 // Test nullptr
2784 char *c = nullptr;
2785 }
2786 {
2787 // Test template brackets
2788 test_template<::test_template<int>> v(test_template<int>(12));
2789 }
2790 {
2791 // Unicode literals
2792 char const *utf8 = u8"UTF-8 string \u2500";
2793 char16_t const *utf16 = u"UTF-8 string \u2500";
2794 char32_t const *utf32 = U"UTF-32 string \u2500";
2795 }
2796 '
2797
2798 # Test code for whether the C compiler supports C++11 (complete).
2799 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2800 ${ac_cxx_conftest_cxx11_globals}
2801
2802 int
2803 main (int argc, char **argv)
2804 {
2805 int ok = 0;
2806 ${ac_cxx_conftest_cxx98_main}
2807 ${ac_cxx_conftest_cxx11_main}
2808 return ok;
2809 }
2810 "
2811
2812 # Test code for whether the C compiler supports C++98 (complete).
2813 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2814 int
2815 main (int argc, char **argv)
2816 {
2817 int ok = 0;
2818 ${ac_cxx_conftest_cxx98_main}
2819 return ok;
2820 }
2821 "
2822
2823 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2824 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2825 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2826 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2827 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2828 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2829 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2830 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2831 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2832 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2833 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2834
2835 # Auxiliary files required by this configure script.
2836 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2837
2838 # Locations in which to look for auxiliary files.
2839 ac_aux_dir_candidates="${srcdir}/build-aux"
2840
2841 # Search for a directory containing all of the required auxiliary files,
2842 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2843 # If we don't find one directory that contains all the files we need,
2844 # we report the set of missing files from the *first* directory in
2845 # $ac_aux_dir_candidates and give up.
2846 ac_missing_aux_files=""
2847 ac_first_candidate=:
2848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 as_found=false
2851 for as_dir in $ac_aux_dir_candidates
2852 do
2853 IFS=$as_save_IFS
2854 case $as_dir in #(((
2855 '') as_dir=./ ;;
2856 */) ;;
2857 *) as_dir=$as_dir/ ;;
2858 esac
2859 as_found=:
2860
2861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2862 ac_aux_dir_found=yes
2863 ac_install_sh=
2864 for ac_aux in $ac_aux_files
2865 do
2866 # As a special case, if "install-sh" is required, that requirement
2867 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2868 # and $ac_install_sh is set appropriately for whichever one is found.
2869 if test x"$ac_aux" = x"install-sh"
2870 then
2871 if test -f "${as_dir}install-sh"; then
2872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2873 ac_install_sh="${as_dir}install-sh -c"
2874 elif test -f "${as_dir}install.sh"; then
2875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2876 ac_install_sh="${as_dir}install.sh -c"
2877 elif test -f "${as_dir}shtool"; then
2878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2879 ac_install_sh="${as_dir}shtool install -c"
2880 else
2881 ac_aux_dir_found=no
2882 if $ac_first_candidate; then
2883 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2884 else
2885 break
2886 fi
2887 fi
2888 else
2889 if test -f "${as_dir}${ac_aux}"; then
2890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2891 else
2892 ac_aux_dir_found=no
2893 if $ac_first_candidate; then
2894 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2895 else
2896 break
2897 fi
2898 fi
2899 fi
2900 done
2901 if test "$ac_aux_dir_found" = yes; then
2902 ac_aux_dir="$as_dir"
2903 break
2904 fi
2905 ac_first_candidate=false
2906
2907 as_found=false
2908 done
2909 IFS=$as_save_IFS
2910 if $as_found
2911 then :
2912
2913 else $as_nop
2914 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2915 fi
2916
2917
2918 # These three variables are undocumented and unsupported,
2919 # and are intended to be withdrawn in a future Autoconf release.
2920 # They can cause serious problems if a builder's source tree is in a directory
2921 # whose full name contains unusual characters.
2922 if test -f "${ac_aux_dir}config.guess"; then
2923 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2924 fi
2925 if test -f "${ac_aux_dir}config.sub"; then
2926 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2927 fi
2928 if test -f "$ac_aux_dir/configure"; then
2929 ac_configure="$SHELL ${ac_aux_dir}configure"
24852930 fi
24862931
24872932 # Check that the precious variables saved in the cache have kept the same
24942939 eval ac_new_val=\$ac_env_${ac_var}_value
24952940 case $ac_old_set,$ac_new_set in
24962941 set,)
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2498 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2943 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
24992944 ac_cache_corrupted=: ;;
25002945 ,set)
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2502 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2947 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
25032948 ac_cache_corrupted=: ;;
25042949 ,);;
25052950 *)
25082953 ac_old_val_w=`echo x $ac_old_val`
25092954 ac_new_val_w=`echo x $ac_new_val`
25102955 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2512 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2957 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
25132958 ac_cache_corrupted=:
25142959 else
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2516 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2961 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
25172962 eval $ac_var=\$ac_old_val
25182963 fi
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2520 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2522 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2965 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2967 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
25232968 fi;;
25242969 esac
25252970 # Pass precious variables to config.status.
25262971 if test "$ac_new_set" = set; then
25272972 case $ac_new_val in
2528 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2973 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
25292974 *) ac_arg=$ac_var=$ac_new_val ;;
25302975 esac
25312976 case " $ac_configure_args " in
25352980 fi
25362981 done
25372982 if $ac_cache_corrupted; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2541 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2542 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2986 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2987 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2988 and start over" "$LINENO" 5
25432989 fi
25442990 ## -------------------- ##
25452991 ## Main body of script. ##
25563002
25573003
25583004
2559 ac_aux_dir=
2560 for ac_dir in build-aux "$srcdir"/build-aux; do
2561 if test -f "$ac_dir/install-sh"; then
2562 ac_aux_dir=$ac_dir
2563 ac_install_sh="$ac_aux_dir/install-sh -c"
2564 break
2565 elif test -f "$ac_dir/install.sh"; then
2566 ac_aux_dir=$ac_dir
2567 ac_install_sh="$ac_aux_dir/install.sh -c"
2568 break
2569 elif test -f "$ac_dir/shtool"; then
2570 ac_aux_dir=$ac_dir
2571 ac_install_sh="$ac_aux_dir/shtool install -c"
2572 break
2573 fi
2574 done
2575 if test -z "$ac_aux_dir"; then
2576 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2577 fi
2578
2579 # These three variables are undocumented and unsupported,
2580 # and are intended to be withdrawn in a future Autoconf release.
2581 # They can cause serious problems if a builder's source tree is in a directory
2582 # whose full name contains unusual characters.
2583 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2584 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2585 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2586
25873005
25883006 am__api_version='1.16'
25893007
2590 # Find a good install program. We prefer a C program (faster),
3008
3009
3010 # Find a good install program. We prefer a C program (faster),
25913011 # so one script is as good as another. But avoid the broken or
25923012 # incompatible versions:
25933013 # SysV /etc/install, /usr/sbin/install
26013021 # OS/2's system install, which has a completely different semantic
26023022 # ./install, which can be erroneously created by make from ./install.sh.
26033023 # Reject install programs that cannot install multiple files.
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2605 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3025 printf %s "checking for a BSD-compatible install... " >&6; }
26063026 if test -z "$INSTALL"; then
2607 if ${ac_cv_path_install+:} false; then :
2608 $as_echo_n "(cached) " >&6
2609 else
3027 if test ${ac_cv_path_install+y}
3028 then :
3029 printf %s "(cached) " >&6
3030 else $as_nop
26103031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26113032 for as_dir in $PATH
26123033 do
26133034 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 # Account for people who put trailing slashes in PATH elements.
2616 case $as_dir/ in #((
2617 ./ | .// | /[cC]/* | \
3035 case $as_dir in #(((
3036 '') as_dir=./ ;;
3037 */) ;;
3038 *) as_dir=$as_dir/ ;;
3039 esac
3040 # Account for fact that we put trailing slashes in our PATH walk.
3041 case $as_dir in #((
3042 ./ | /[cC]/* | \
26183043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
26193044 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
26203045 /usr/ucb/* ) ;;
26243049 # by default.
26253050 for ac_prog in ginstall scoinst install; do
26263051 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3052 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
26283053 if test $ac_prog = install &&
2629 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3054 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
26303055 # AIX install. It has an incompatible calling convention.
26313056 :
26323057 elif test $ac_prog = install &&
2633 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3058 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
26343059 # program-specific install script used by HP pwplus--don't use.
26353060 :
26363061 else
26383063 echo one > conftest.one
26393064 echo two > conftest.two
26403065 mkdir conftest.dir
2641 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3066 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
26423067 test -s conftest.one && test -s conftest.two &&
26433068 test -s conftest.dir/conftest.one &&
26443069 test -s conftest.dir/conftest.two
26453070 then
2646 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3071 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
26473072 break 3
26483073 fi
26493074 fi
26593084 rm -rf conftest.one conftest.two conftest.dir
26603085
26613086 fi
2662 if test "${ac_cv_path_install+set}" = set; then
3087 if test ${ac_cv_path_install+y}; then
26633088 INSTALL=$ac_cv_path_install
26643089 else
26653090 # As a last resort, use the slow shell script. Don't cache a
26693094 INSTALL=$ac_install_sh
26703095 fi
26713096 fi
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2673 $as_echo "$INSTALL" >&6; }
3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3098 printf "%s\n" "$INSTALL" >&6; }
26743099
26753100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
26763101 # It thinks the first close brace ends the variable substitution.
26803105
26813106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
26823107
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2684 $as_echo_n "checking whether build environment is sane... " >&6; }
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3109 printf %s "checking whether build environment is sane... " >&6; }
26853110 # Reject unsafe characters in $srcdir or the absolute working directory
26863111 # name. Accept space and tab only in the latter.
26873112 am_lf='
27353160 as_fn_error $? "newly created file is older than distributed files!
27363161 Check your system clock" "$LINENO" 5
27373162 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2739 $as_echo "yes" >&6; }
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164 printf "%s\n" "yes" >&6; }
27403165 # If we didn't sleep, we still need to ensure time stamps of config.status and
27413166 # generated files are strictly newer.
27423167 am_sleep_pid=
27553180 # Double any \ or $.
27563181 # By default was `s,x,x', remove it if useless.
27573182 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2758 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3183 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3184
27593185
27603186 # Expand $ac_aux_dir to an absolute path.
27613187 am_aux_dir=`cd "$ac_aux_dir" && pwd`
27623188
2763 if test x"${MISSING+set}" != xset; then
2764 case $am_aux_dir in
2765 *\ * | *\ *)
2766 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2767 *)
2768 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2769 esac
3189
3190 if test x"${MISSING+set}" != xset; then
3191 MISSING="\${SHELL} '$am_aux_dir/missing'"
27703192 fi
27713193 # Use eval to expand $SHELL
27723194 if eval "$MISSING --is-lightweight"; then
27733195 am_missing_run="$MISSING "
27743196 else
27753197 am_missing_run=
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2777 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3199 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
27783200 fi
27793201
27803202 if test x"${install_sh+set}" != xset; then
27943216 if test -n "$ac_tool_prefix"; then
27953217 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
27963218 set dummy ${ac_tool_prefix}strip; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_STRIP+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
3219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 printf %s "checking for $ac_word... " >&6; }
3221 if test ${ac_cv_prog_STRIP+y}
3222 then :
3223 printf %s "(cached) " >&6
3224 else $as_nop
28023225 if test -n "$STRIP"; then
28033226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
28043227 else
28063229 for as_dir in $PATH
28073230 do
28083231 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
3232 case $as_dir in #(((
3233 '') as_dir=./ ;;
3234 */) ;;
3235 *) as_dir=$as_dir/ ;;
3236 esac
28103237 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28123239 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28143241 break 2
28153242 fi
28163243 done
28213248 fi
28223249 STRIP=$ac_cv_prog_STRIP
28233250 if test -n "$STRIP"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2825 $as_echo "$STRIP" >&6; }
3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3252 printf "%s\n" "$STRIP" >&6; }
28263253 else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 printf "%s\n" "no" >&6; }
28293256 fi
28303257
28313258
28343261 ac_ct_STRIP=$STRIP
28353262 # Extract the first word of "strip", so it can be a program name with args.
28363263 set dummy strip; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 printf %s "checking for $ac_word... " >&6; }
3266 if test ${ac_cv_prog_ac_ct_STRIP+y}
3267 then :
3268 printf %s "(cached) " >&6
3269 else $as_nop
28423270 if test -n "$ac_ct_STRIP"; then
28433271 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
28443272 else
28463274 for as_dir in $PATH
28473275 do
28483276 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
3277 case $as_dir in #(((
3278 '') as_dir=./ ;;
3279 */) ;;
3280 *) as_dir=$as_dir/ ;;
3281 esac
28503282 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28523284 ac_cv_prog_ac_ct_STRIP="strip"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28543286 break 2
28553287 fi
28563288 done
28613293 fi
28623294 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
28633295 if test -n "$ac_ct_STRIP"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2865 $as_echo "$ac_ct_STRIP" >&6; }
3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3297 printf "%s\n" "$ac_ct_STRIP" >&6; }
28663298 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 printf "%s\n" "no" >&6; }
28693301 fi
28703302
28713303 if test "x$ac_ct_STRIP" = x; then
28733305 else
28743306 case $cross_compiling:$ac_tool_warned in
28753307 yes:)
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3309 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28783310 ac_tool_warned=yes ;;
28793311 esac
28803312 STRIP=$ac_ct_STRIP
28863318 fi
28873319 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
28883320
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2890 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3321
3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3323 printf %s "checking for a race-free mkdir -p... " >&6; }
28913324 if test -z "$MKDIR_P"; then
2892 if ${ac_cv_path_mkdir+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894 else
3325 if test ${ac_cv_path_mkdir+y}
3326 then :
3327 printf %s "(cached) " >&6
3328 else $as_nop
28953329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28963330 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
28973331 do
28983332 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
3333 case $as_dir in #(((
3334 '') as_dir=./ ;;
3335 */) ;;
3336 *) as_dir=$as_dir/ ;;
3337 esac
29003338 for ac_prog in mkdir gmkdir; do
29013339 for ac_exec_ext in '' $ac_executable_extensions; do
2902 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2903 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2904 'mkdir (GNU coreutils) '* | \
2905 'mkdir (coreutils) '* | \
3340 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3341 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3342 'mkdir ('*'coreutils) '* | \
3343 'BusyBox '* | \
29063344 'mkdir (fileutils) '4.1*)
2907 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3345 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
29083346 break 3;;
29093347 esac
29103348 done
29153353 fi
29163354
29173355 test -d ./--version && rmdir ./--version
2918 if test "${ac_cv_path_mkdir+set}" = set; then
3356 if test ${ac_cv_path_mkdir+y}; then
29193357 MKDIR_P="$ac_cv_path_mkdir -p"
29203358 else
29213359 # As a last resort, use the slow shell script. Don't cache a
29253363 MKDIR_P="$ac_install_sh -d"
29263364 fi
29273365 fi
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2929 $as_echo "$MKDIR_P" >&6; }
3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3367 printf "%s\n" "$MKDIR_P" >&6; }
29303368
29313369 for ac_prog in gawk mawk nawk awk
29323370 do
29333371 # Extract the first word of "$ac_prog", so it can be a program name with args.
29343372 set dummy $ac_prog; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_AWK+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 printf %s "checking for $ac_word... " >&6; }
3375 if test ${ac_cv_prog_AWK+y}
3376 then :
3377 printf %s "(cached) " >&6
3378 else $as_nop
29403379 if test -n "$AWK"; then
29413380 ac_cv_prog_AWK="$AWK" # Let the user override the test.
29423381 else
29443383 for as_dir in $PATH
29453384 do
29463385 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
3386 case $as_dir in #(((
3387 '') as_dir=./ ;;
3388 */) ;;
3389 *) as_dir=$as_dir/ ;;
3390 esac
29483391 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29503393 ac_cv_prog_AWK="$ac_prog"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29523395 break 2
29533396 fi
29543397 done
29593402 fi
29603403 AWK=$ac_cv_prog_AWK
29613404 if test -n "$AWK"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2963 $as_echo "$AWK" >&6; }
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3406 printf "%s\n" "$AWK" >&6; }
29643407 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 printf "%s\n" "no" >&6; }
29673410 fi
29683411
29693412
29703413 test -n "$AWK" && break
29713414 done
29723415
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2974 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3417 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
29753418 set x ${MAKE-make}
2976 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2977 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
3419 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3420 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3421 then :
3422 printf %s "(cached) " >&6
3423 else $as_nop
29803424 cat >conftest.make <<\_ACEOF
29813425 SHELL = /bin/sh
29823426 all:
29923436 rm -f conftest.make
29933437 fi
29943438 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2996 $as_echo "yes" >&6; }
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3440 printf "%s\n" "yes" >&6; }
29973441 SET_MAKE=
29983442 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 printf "%s\n" "no" >&6; }
30013445 SET_MAKE="MAKE=${MAKE-make}"
30023446 fi
30033447
30113455 rmdir .tst 2>/dev/null
30123456
30133457 # Check whether --enable-silent-rules was given.
3014 if test "${enable_silent_rules+set}" = set; then :
3458 if test ${enable_silent_rules+y}
3459 then :
30153460 enableval=$enable_silent_rules;
30163461 fi
30173462
30213466 *) AM_DEFAULT_VERBOSITY=1;;
30223467 esac
30233468 am_make=${MAKE-make}
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3025 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3026 if ${am_cv_make_support_nested_variables+:} false; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 if $as_echo 'TRUE=$(BAR$(V))
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3470 printf %s "checking whether $am_make supports nested variables... " >&6; }
3471 if test ${am_cv_make_support_nested_variables+y}
3472 then :
3473 printf %s "(cached) " >&6
3474 else $as_nop
3475 if printf "%s\n" 'TRUE=$(BAR$(V))
30303476 BAR0=false
30313477 BAR1=true
30323478 V=1
30383484 am_cv_make_support_nested_variables=no
30393485 fi
30403486 fi
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3042 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3488 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
30433489 if test $am_cv_make_support_nested_variables = yes; then
30443490 AM_V='$(V)'
30453491 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
30713517
30723518 # Define the identity of the package.
30733519 PACKAGE='protobuf-c'
3074 VERSION='1.3.3'
3075
3076
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE "$PACKAGE"
3079 _ACEOF
3080
3081
3082 cat >>confdefs.h <<_ACEOF
3083 #define VERSION "$VERSION"
3084 _ACEOF
3520 VERSION='1.4.0'
3521
3522
3523 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3524
3525
3526 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
30853527
30863528 # Some tools Automake needs.
30873529
31193561
31203562
31213563
3564
3565
3566 # Variables for tags utilities; see am/tags.am
3567 if test -z "$CTAGS"; then
3568 CTAGS=ctags
3569 fi
3570
3571 if test -z "$ETAGS"; then
3572 ETAGS=etags
3573 fi
3574
3575 if test -z "$CSCOPE"; then
3576 CSCOPE=cscope
3577 fi
31223578
31233579
31243580
31643620 fi
31653621 fi
31663622
3623
3624
3625
3626
3627
3628
3629
3630
3631
31673632 DEPDIR="${am__leading_dot}deps"
31683633
31693634 ac_config_commands="$ac_config_commands depfiles"
31703635
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3172 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3637 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
31733638 cat > confinc.mk << 'END'
31743639 am__doit:
31753640 @echo this is the am__doit target >confinc.out
32053670 fi
32063671 done
32073672 rm -f confinc.* confmf.*
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3209 $as_echo "${_am_result}" >&6; }
3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3674 printf "%s\n" "${_am_result}" >&6; }
32103675
32113676 # Check whether --enable-dependency-tracking was given.
3212 if test "${enable_dependency_tracking+set}" = set; then :
3677 if test ${enable_dependency_tracking+y}
3678 then :
32133679 enableval=$enable_dependency_tracking;
32143680 fi
32153681
32353701 if test -n "$ac_tool_prefix"; then
32363702 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
32373703 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_CC+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705 printf %s "checking for $ac_word... " >&6; }
3706 if test ${ac_cv_prog_CC+y}
3707 then :
3708 printf %s "(cached) " >&6
3709 else $as_nop
32433710 if test -n "$CC"; then
32443711 ac_cv_prog_CC="$CC" # Let the user override the test.
32453712 else
32473714 for as_dir in $PATH
32483715 do
32493716 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3717 case $as_dir in #(((
3718 '') as_dir=./ ;;
3719 */) ;;
3720 *) as_dir=$as_dir/ ;;
3721 esac
32513722 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32533724 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32553726 break 2
32563727 fi
32573728 done
32623733 fi
32633734 CC=$ac_cv_prog_CC
32643735 if test -n "$CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 printf "%s\n" "$CC" >&6; }
32673738 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 printf "%s\n" "no" >&6; }
32703741 fi
32713742
32723743
32753746 ac_ct_CC=$CC
32763747 # Extract the first word of "gcc", so it can be a program name with args.
32773748 set dummy gcc; ac_word=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3281 $as_echo_n "(cached) " >&6
3282 else
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 printf %s "checking for $ac_word... " >&6; }
3751 if test ${ac_cv_prog_ac_ct_CC+y}
3752 then :
3753 printf %s "(cached) " >&6
3754 else $as_nop
32833755 if test -n "$ac_ct_CC"; then
32843756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
32853757 else
32873759 for as_dir in $PATH
32883760 do
32893761 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3762 case $as_dir in #(((
3763 '') as_dir=./ ;;
3764 */) ;;
3765 *) as_dir=$as_dir/ ;;
3766 esac
32913767 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32933769 ac_cv_prog_ac_ct_CC="gcc"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32953771 break 2
32963772 fi
32973773 done
33023778 fi
33033779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
33043780 if test -n "$ac_ct_CC"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3306 $as_echo "$ac_ct_CC" >&6; }
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3782 printf "%s\n" "$ac_ct_CC" >&6; }
33073783 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 printf "%s\n" "no" >&6; }
33103786 fi
33113787
33123788 if test "x$ac_ct_CC" = x; then
33143790 else
33153791 case $cross_compiling:$ac_tool_warned in
33163792 yes:)
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3794 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33193795 ac_tool_warned=yes ;;
33203796 esac
33213797 CC=$ac_ct_CC
33283804 if test -n "$ac_tool_prefix"; then
33293805 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
33303806 set dummy ${ac_tool_prefix}cc; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_CC+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808 printf %s "checking for $ac_word... " >&6; }
3809 if test ${ac_cv_prog_CC+y}
3810 then :
3811 printf %s "(cached) " >&6
3812 else $as_nop
33363813 if test -n "$CC"; then
33373814 ac_cv_prog_CC="$CC" # Let the user override the test.
33383815 else
33403817 for as_dir in $PATH
33413818 do
33423819 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3820 case $as_dir in #(((
3821 '') as_dir=./ ;;
3822 */) ;;
3823 *) as_dir=$as_dir/ ;;
3824 esac
33443825 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33463827 ac_cv_prog_CC="${ac_tool_prefix}cc"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33483829 break 2
33493830 fi
33503831 done
33553836 fi
33563837 CC=$ac_cv_prog_CC
33573838 if test -n "$CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840 printf "%s\n" "$CC" >&6; }
33603841 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 printf "%s\n" "no" >&6; }
33633844 fi
33643845
33653846
33683849 if test -z "$CC"; then
33693850 # Extract the first word of "cc", so it can be a program name with args.
33703851 set dummy cc; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_CC+:} false; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 printf %s "checking for $ac_word... " >&6; }
3854 if test ${ac_cv_prog_CC+y}
3855 then :
3856 printf %s "(cached) " >&6
3857 else $as_nop
33763858 if test -n "$CC"; then
33773859 ac_cv_prog_CC="$CC" # Let the user override the test.
33783860 else
33813863 for as_dir in $PATH
33823864 do
33833865 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3866 case $as_dir in #(((
3867 '') as_dir=./ ;;
3868 */) ;;
3869 *) as_dir=$as_dir/ ;;
3870 esac
33853871 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3873 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
33883874 ac_prog_rejected=yes
33893875 continue
33903876 fi
33913877 ac_cv_prog_CC="cc"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33933879 break 2
33943880 fi
33953881 done
34053891 # However, it has the same basename, so the bogon will be chosen
34063892 # first if we set CC to just the basename; use the full file name.
34073893 shift
3408 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3894 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
34093895 fi
34103896 fi
34113897 fi
34123898 fi
34133899 CC=$ac_cv_prog_CC
34143900 if test -n "$CC"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416 $as_echo "$CC" >&6; }
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3902 printf "%s\n" "$CC" >&6; }
34173903 else
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 printf "%s\n" "no" >&6; }
34203906 fi
34213907
34223908
34273913 do
34283914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
34293915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if ${ac_cv_prog_CC+:} false; then :
3433 $as_echo_n "(cached) " >&6
3434 else
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 printf %s "checking for $ac_word... " >&6; }
3918 if test ${ac_cv_prog_CC+y}
3919 then :
3920 printf %s "(cached) " >&6
3921 else $as_nop
34353922 if test -n "$CC"; then
34363923 ac_cv_prog_CC="$CC" # Let the user override the test.
34373924 else
34393926 for as_dir in $PATH
34403927 do
34413928 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=.
3929 case $as_dir in #(((
3930 '') as_dir=./ ;;
3931 */) ;;
3932 *) as_dir=$as_dir/ ;;
3933 esac
34433934 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
34453936 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
34473938 break 2
34483939 fi
34493940 done
34543945 fi
34553946 CC=$ac_cv_prog_CC
34563947 if test -n "$CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3949 printf "%s\n" "$CC" >&6; }
34593950 else
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 printf "%s\n" "no" >&6; }
34623953 fi
34633954
34643955
34713962 do
34723963 # Extract the first word of "$ac_prog", so it can be a program name with args.
34733964 set dummy $ac_prog; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 printf %s "checking for $ac_word... " >&6; }
3967 if test ${ac_cv_prog_ac_ct_CC+y}
3968 then :
3969 printf %s "(cached) " >&6
3970 else $as_nop
34793971 if test -n "$ac_ct_CC"; then
34803972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
34813973 else
34833975 for as_dir in $PATH
34843976 do
34853977 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3978 case $as_dir in #(((
3979 '') as_dir=./ ;;
3980 */) ;;
3981 *) as_dir=$as_dir/ ;;
3982 esac
34873983 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
34893985 ac_cv_prog_ac_ct_CC="$ac_prog"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
34913987 break 2
34923988 fi
34933989 done
34983994 fi
34993995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
35003996 if test -n "$ac_ct_CC"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3502 $as_echo "$ac_ct_CC" >&6; }
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3998 printf "%s\n" "$ac_ct_CC" >&6; }
35033999 else
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 printf "%s\n" "no" >&6; }
35064002 fi
35074003
35084004
35144010 else
35154011 case $cross_compiling:$ac_tool_warned in
35164012 yes:)
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4014 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
35194015 ac_tool_warned=yes ;;
35204016 esac
35214017 CC=$ac_ct_CC
35234019 fi
35244020
35254021 fi
3526
3527
3528 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 if test -z "$CC"; then
4023 if test -n "$ac_tool_prefix"; then
4024 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4025 set dummy ${ac_tool_prefix}clang; ac_word=$2
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 printf %s "checking for $ac_word... " >&6; }
4028 if test ${ac_cv_prog_CC+y}
4029 then :
4030 printf %s "(cached) " >&6
4031 else $as_nop
4032 if test -n "$CC"; then
4033 ac_cv_prog_CC="$CC" # Let the user override the test.
4034 else
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038 IFS=$as_save_IFS
4039 case $as_dir in #(((
4040 '') as_dir=./ ;;
4041 */) ;;
4042 *) as_dir=$as_dir/ ;;
4043 esac
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4046 ac_cv_prog_CC="${ac_tool_prefix}clang"
4047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4048 break 2
4049 fi
4050 done
4051 done
4052 IFS=$as_save_IFS
4053
4054 fi
4055 fi
4056 CC=$ac_cv_prog_CC
4057 if test -n "$CC"; then
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4059 printf "%s\n" "$CC" >&6; }
4060 else
4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 printf "%s\n" "no" >&6; }
4063 fi
4064
4065
4066 fi
4067 if test -z "$ac_cv_prog_CC"; then
4068 ac_ct_CC=$CC
4069 # Extract the first word of "clang", so it can be a program name with args.
4070 set dummy clang; ac_word=$2
4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072 printf %s "checking for $ac_word... " >&6; }
4073 if test ${ac_cv_prog_ac_ct_CC+y}
4074 then :
4075 printf %s "(cached) " >&6
4076 else $as_nop
4077 if test -n "$ac_ct_CC"; then
4078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4082 do
4083 IFS=$as_save_IFS
4084 case $as_dir in #(((
4085 '') as_dir=./ ;;
4086 */) ;;
4087 *) as_dir=$as_dir/ ;;
4088 esac
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4091 ac_cv_prog_ac_ct_CC="clang"
4092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4093 break 2
4094 fi
4095 done
4096 done
4097 IFS=$as_save_IFS
4098
4099 fi
4100 fi
4101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4102 if test -n "$ac_ct_CC"; then
4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4104 printf "%s\n" "$ac_ct_CC" >&6; }
4105 else
4106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107 printf "%s\n" "no" >&6; }
4108 fi
4109
4110 if test "x$ac_ct_CC" = x; then
4111 CC=""
4112 else
4113 case $cross_compiling:$ac_tool_warned in
4114 yes:)
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4116 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4117 ac_tool_warned=yes ;;
4118 esac
4119 CC=$ac_ct_CC
4120 fi
4121 else
4122 CC="$ac_cv_prog_CC"
4123 fi
4124
4125 fi
4126
4127
4128 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
35304130 as_fn_error $? "no acceptable C compiler found in \$PATH
35314131 See \`config.log' for more details" "$LINENO" 5; }
35324132
35334133 # Provide some information about the compiler.
3534 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
35354135 set X $ac_compile
35364136 ac_compiler=$2
3537 for ac_option in --version -v -V -qversion; do
4137 for ac_option in --version -v -V -qversion -version; do
35384138 { { ac_try="$ac_compiler $ac_option >&5"
35394139 case "(($ac_try" in
35404140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35414141 *) ac_try_echo=$ac_try;;
35424142 esac
35434143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
4144 printf "%s\n" "$ac_try_echo"; } >&5
35454145 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
35464146 ac_status=$?
35474147 if test -s conftest.err; then
35514151 cat conftest.er1 >&5
35524152 fi
35534153 rm -f conftest.er1 conftest.err
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35554155 test $ac_status = 0; }
35564156 done
35574157
35594159 /* end confdefs.h. */
35604160
35614161 int
3562 main ()
4162 main (void)
35634163 {
35644164
35654165 ;
35714171 # Try to create an executable without -o first, disregard a.out.
35724172 # It will help us diagnose broken compilers, and finding out an intuition
35734173 # of exeext.
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3575 $as_echo_n "checking whether the C compiler works... " >&6; }
3576 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4175 printf %s "checking whether the C compiler works... " >&6; }
4176 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
35774177
35784178 # The possible output files:
35794179 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
35944194 *) ac_try_echo=$ac_try;;
35954195 esac
35964196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
4197 printf "%s\n" "$ac_try_echo"; } >&5
35984198 (eval "$ac_link_default") 2>&5
35994199 ac_status=$?
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; then :
4200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201 test $ac_status = 0; }
4202 then :
36024203 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
36034204 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
36044205 # in a Makefile. We should not override ac_cv_exeext if it was cached,
36154216 # certainly right.
36164217 break;;
36174218 *.* )
3618 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4219 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
36194220 then :; else
36204221 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
36214222 fi
36314232 done
36324233 test "$ac_cv_exeext" = no && ac_cv_exeext=
36334234
3634 else
4235 else $as_nop
36354236 ac_file=''
36364237 fi
3637 if test -z "$ac_file"; then :
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3640 $as_echo "$as_me: failed program was:" >&5
4238 if test -z "$ac_file"
4239 then :
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 printf "%s\n" "no" >&6; }
4242 printf "%s\n" "$as_me: failed program was:" >&5
36414243 sed 's/^/| /' conftest.$ac_ext >&5
36424244
3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4246 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
36454247 as_fn_error 77 "C compiler cannot create executables
36464248 See \`config.log' for more details" "$LINENO" 5; }
3647 else
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649 $as_echo "yes" >&6; }
3650 fi
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3652 $as_echo_n "checking for C compiler default output file name... " >&6; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3654 $as_echo "$ac_file" >&6; }
4249 else $as_nop
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4251 printf "%s\n" "yes" >&6; }
4252 fi
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4254 printf %s "checking for C compiler default output file name... " >&6; }
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4256 printf "%s\n" "$ac_file" >&6; }
36554257 ac_exeext=$ac_cv_exeext
36564258
36574259 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
36584260 ac_clean_files=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3660 $as_echo_n "checking for suffix of executables... " >&6; }
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4262 printf %s "checking for suffix of executables... " >&6; }
36614263 if { { ac_try="$ac_link"
36624264 case "(($ac_try" in
36634265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36644266 *) ac_try_echo=$ac_try;;
36654267 esac
36664268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
4269 printf "%s\n" "$ac_try_echo"; } >&5
36684270 (eval "$ac_link") 2>&5
36694271 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
4272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273 test $ac_status = 0; }
4274 then :
36724275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
36734276 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
36744277 # work properly (i.e., refer to `conftest.exe'), while it won't with
36824285 * ) break;;
36834286 esac
36844287 done
3685 else
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4288 else $as_nop
4289 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4290 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
36884291 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
36894292 See \`config.log' for more details" "$LINENO" 5; }
36904293 fi
36914294 rm -f conftest conftest$ac_cv_exeext
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3693 $as_echo "$ac_cv_exeext" >&6; }
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4296 printf "%s\n" "$ac_cv_exeext" >&6; }
36944297
36954298 rm -f conftest.$ac_ext
36964299 EXEEXT=$ac_cv_exeext
36994302 /* end confdefs.h. */
37004303 #include <stdio.h>
37014304 int
3702 main ()
4305 main (void)
37034306 {
37044307 FILE *f = fopen ("conftest.out", "w");
37054308 return ferror (f) || fclose (f) != 0;
37114314 ac_clean_files="$ac_clean_files conftest.out"
37124315 # Check that the compiler produces executables we can run. If not, either
37134316 # the compiler is broken, or we cross compile.
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3715 $as_echo_n "checking whether we are cross compiling... " >&6; }
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4318 printf %s "checking whether we are cross compiling... " >&6; }
37164319 if test "$cross_compiling" != yes; then
37174320 { { ac_try="$ac_link"
37184321 case "(($ac_try" in
37204323 *) ac_try_echo=$ac_try;;
37214324 esac
37224325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
4326 printf "%s\n" "$ac_try_echo"; } >&5
37244327 (eval "$ac_link") 2>&5
37254328 ac_status=$?
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37274330 test $ac_status = 0; }
37284331 if { ac_try='./conftest$ac_cv_exeext'
37294332 { { case "(($ac_try" in
37314334 *) ac_try_echo=$ac_try;;
37324335 esac
37334336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
4337 printf "%s\n" "$ac_try_echo"; } >&5
37354338 (eval "$ac_try") 2>&5
37364339 ac_status=$?
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37384341 test $ac_status = 0; }; }; then
37394342 cross_compiling=no
37404343 else
37414344 if test "$cross_compiling" = maybe; then
37424345 cross_compiling=yes
37434346 else
3744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error $? "cannot run C compiled programs.
4347 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4348 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4349 as_fn_error 77 "cannot run C compiled programs.
37474350 If you meant to cross compile, use \`--host'.
37484351 See \`config.log' for more details" "$LINENO" 5; }
37494352 fi
37504353 fi
37514354 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3753 $as_echo "$cross_compiling" >&6; }
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4356 printf "%s\n" "$cross_compiling" >&6; }
37544357
37554358 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
37564359 ac_clean_files=$ac_clean_files_save
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3758 $as_echo_n "checking for suffix of object files... " >&6; }
3759 if ${ac_cv_objext+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761 else
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4361 printf %s "checking for suffix of object files... " >&6; }
4362 if test ${ac_cv_objext+y}
4363 then :
4364 printf %s "(cached) " >&6
4365 else $as_nop
37624366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37634367 /* end confdefs.h. */
37644368
37654369 int
3766 main ()
4370 main (void)
37674371 {
37684372
37694373 ;
37774381 *) ac_try_echo=$ac_try;;
37784382 esac
37794383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
4384 printf "%s\n" "$ac_try_echo"; } >&5
37814385 (eval "$ac_compile") 2>&5
37824386 ac_status=$?
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; then :
4387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388 test $ac_status = 0; }
4389 then :
37854390 for ac_file in conftest.o conftest.obj conftest.*; do
37864391 test -f "$ac_file" || continue;
37874392 case $ac_file in
37904395 break;;
37914396 esac
37924397 done
3793 else
3794 $as_echo "$as_me: failed program was:" >&5
4398 else $as_nop
4399 printf "%s\n" "$as_me: failed program was:" >&5
37954400 sed 's/^/| /' conftest.$ac_ext >&5
37964401
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4402 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4403 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37994404 as_fn_error $? "cannot compute suffix of object files: cannot compile
38004405 See \`config.log' for more details" "$LINENO" 5; }
38014406 fi
38024407 rm -f conftest.$ac_cv_objext conftest.$ac_ext
38034408 fi
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3805 $as_echo "$ac_cv_objext" >&6; }
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4410 printf "%s\n" "$ac_cv_objext" >&6; }
38064411 OBJEXT=$ac_cv_objext
38074412 ac_objext=$OBJEXT
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3809 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3810 if ${ac_cv_c_compiler_gnu+:} false; then :
3811 $as_echo_n "(cached) " >&6
3812 else
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4414 printf %s "checking whether the compiler supports GNU C... " >&6; }
4415 if test ${ac_cv_c_compiler_gnu+y}
4416 then :
4417 printf %s "(cached) " >&6
4418 else $as_nop
38134419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38144420 /* end confdefs.h. */
38154421
38164422 int
3817 main ()
4423 main (void)
38184424 {
38194425 #ifndef __GNUC__
38204426 choke me
38244430 return 0;
38254431 }
38264432 _ACEOF
3827 if ac_fn_c_try_compile "$LINENO"; then :
4433 if ac_fn_c_try_compile "$LINENO"
4434 then :
38284435 ac_compiler_gnu=yes
3829 else
4436 else $as_nop
38304437 ac_compiler_gnu=no
38314438 fi
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38334440 ac_cv_c_compiler_gnu=$ac_compiler_gnu
38344441
38354442 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3837 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4444 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446
38384447 if test $ac_compiler_gnu = yes; then
38394448 GCC=yes
38404449 else
38414450 GCC=
38424451 fi
3843 ac_test_CFLAGS=${CFLAGS+set}
4452 ac_test_CFLAGS=${CFLAGS+y}
38444453 ac_save_CFLAGS=$CFLAGS
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3846 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3847 if ${ac_cv_prog_cc_g+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4455 printf %s "checking whether $CC accepts -g... " >&6; }
4456 if test ${ac_cv_prog_cc_g+y}
4457 then :
4458 printf %s "(cached) " >&6
4459 else $as_nop
38504460 ac_save_c_werror_flag=$ac_c_werror_flag
38514461 ac_c_werror_flag=yes
38524462 ac_cv_prog_cc_g=no
38554465 /* end confdefs.h. */
38564466
38574467 int
3858 main ()
4468 main (void)
38594469 {
38604470
38614471 ;
38624472 return 0;
38634473 }
38644474 _ACEOF
3865 if ac_fn_c_try_compile "$LINENO"; then :
4475 if ac_fn_c_try_compile "$LINENO"
4476 then :
38664477 ac_cv_prog_cc_g=yes
3867 else
4478 else $as_nop
38684479 CFLAGS=""
38694480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38704481 /* end confdefs.h. */
38714482
38724483 int
3873 main ()
4484 main (void)
38744485 {
38754486
38764487 ;
38774488 return 0;
38784489 }
38794490 _ACEOF
3880 if ac_fn_c_try_compile "$LINENO"; then :
3881
3882 else
4491 if ac_fn_c_try_compile "$LINENO"
4492 then :
4493
4494 else $as_nop
38834495 ac_c_werror_flag=$ac_save_c_werror_flag
38844496 CFLAGS="-g"
38854497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38864498 /* end confdefs.h. */
38874499
38884500 int
3889 main ()
4501 main (void)
38904502 {
38914503
38924504 ;
38934505 return 0;
38944506 }
38954507 _ACEOF
3896 if ac_fn_c_try_compile "$LINENO"; then :
4508 if ac_fn_c_try_compile "$LINENO"
4509 then :
38974510 ac_cv_prog_cc_g=yes
38984511 fi
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 fi
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 fi
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4513 fi
4514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39044517 ac_c_werror_flag=$ac_save_c_werror_flag
39054518 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3907 $as_echo "$ac_cv_prog_cc_g" >&6; }
3908 if test "$ac_test_CFLAGS" = set; then
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4520 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4521 if test $ac_test_CFLAGS; then
39094522 CFLAGS=$ac_save_CFLAGS
39104523 elif test $ac_cv_prog_cc_g = yes; then
39114524 if test "$GCC" = yes; then
39204533 CFLAGS=
39214534 fi
39224535 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3924 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3925 if ${ac_cv_prog_cc_c89+:} false; then :
3926 $as_echo_n "(cached) " >&6
3927 else
4536 ac_prog_cc_stdc=no
4537 if test x$ac_prog_cc_stdc = xno
4538 then :
4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4540 printf %s "checking for $CC option to enable C11 features... " >&6; }
4541 if test ${ac_cv_prog_cc_c11+y}
4542 then :
4543 printf %s "(cached) " >&6
4544 else $as_nop
4545 ac_cv_prog_cc_c11=no
4546 ac_save_CC=$CC
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4549 $ac_c_conftest_c11_program
4550 _ACEOF
4551 for ac_arg in '' -std=gnu11
4552 do
4553 CC="$ac_save_CC $ac_arg"
4554 if ac_fn_c_try_compile "$LINENO"
4555 then :
4556 ac_cv_prog_cc_c11=$ac_arg
4557 fi
4558 rm -f core conftest.err conftest.$ac_objext conftest.beam
4559 test "x$ac_cv_prog_cc_c11" != "xno" && break
4560 done
4561 rm -f conftest.$ac_ext
4562 CC=$ac_save_CC
4563 fi
4564
4565 if test "x$ac_cv_prog_cc_c11" = xno
4566 then :
4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4568 printf "%s\n" "unsupported" >&6; }
4569 else $as_nop
4570 if test "x$ac_cv_prog_cc_c11" = x
4571 then :
4572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4573 printf "%s\n" "none needed" >&6; }
4574 else $as_nop
4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4576 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4577 CC="$CC $ac_cv_prog_cc_c11"
4578 fi
4579 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4580 ac_prog_cc_stdc=c11
4581 fi
4582 fi
4583 if test x$ac_prog_cc_stdc = xno
4584 then :
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4586 printf %s "checking for $CC option to enable C99 features... " >&6; }
4587 if test ${ac_cv_prog_cc_c99+y}
4588 then :
4589 printf %s "(cached) " >&6
4590 else $as_nop
4591 ac_cv_prog_cc_c99=no
4592 ac_save_CC=$CC
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595 $ac_c_conftest_c99_program
4596 _ACEOF
4597 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4598 do
4599 CC="$ac_save_CC $ac_arg"
4600 if ac_fn_c_try_compile "$LINENO"
4601 then :
4602 ac_cv_prog_cc_c99=$ac_arg
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext conftest.beam
4605 test "x$ac_cv_prog_cc_c99" != "xno" && break
4606 done
4607 rm -f conftest.$ac_ext
4608 CC=$ac_save_CC
4609 fi
4610
4611 if test "x$ac_cv_prog_cc_c99" = xno
4612 then :
4613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4614 printf "%s\n" "unsupported" >&6; }
4615 else $as_nop
4616 if test "x$ac_cv_prog_cc_c99" = x
4617 then :
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4619 printf "%s\n" "none needed" >&6; }
4620 else $as_nop
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4622 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4623 CC="$CC $ac_cv_prog_cc_c99"
4624 fi
4625 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4626 ac_prog_cc_stdc=c99
4627 fi
4628 fi
4629 if test x$ac_prog_cc_stdc = xno
4630 then :
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4632 printf %s "checking for $CC option to enable C89 features... " >&6; }
4633 if test ${ac_cv_prog_cc_c89+y}
4634 then :
4635 printf %s "(cached) " >&6
4636 else $as_nop
39284637 ac_cv_prog_cc_c89=no
39294638 ac_save_CC=$CC
39304639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39314640 /* end confdefs.h. */
3932 #include <stdarg.h>
3933 #include <stdio.h>
3934 struct stat;
3935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3936 struct buf { int x; };
3937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3938 static char *e (p, i)
3939 char **p;
3940 int i;
3941 {
3942 return p[i];
3943 }
3944 static char *f (char * (*g) (char **, int), char **p, ...)
3945 {
3946 char *s;
3947 va_list v;
3948 va_start (v,p);
3949 s = g (p, va_arg (v,int));
3950 va_end (v);
3951 return s;
3952 }
3953
3954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3955 function prototypes and stuff, but not '\xHH' hex character constants.
3956 These don't provoke an error unfortunately, instead are silently treated
3957 as 'x'. The following induces an error, until -std is added to get
3958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3959 array size at least. It's necessary to write '\x00'==0 to get something
3960 that's true only with -std. */
3961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3962
3963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3964 inside strings and character constants. */
3965 #define FOO(x) 'x'
3966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3967
3968 int test (int i, double x);
3969 struct s1 {int (*f) (int a);};
3970 struct s2 {int (*f) (double a);};
3971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3972 int argc;
3973 char **argv;
3974 int
3975 main ()
3976 {
3977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3978 ;
3979 return 0;
3980 }
4641 $ac_c_conftest_c89_program
39814642 _ACEOF
3982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4643 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
39844644 do
39854645 CC="$ac_save_CC $ac_arg"
3986 if ac_fn_c_try_compile "$LINENO"; then :
4646 if ac_fn_c_try_compile "$LINENO"
4647 then :
39874648 ac_cv_prog_cc_c89=$ac_arg
39884649 fi
3989 rm -f core conftest.err conftest.$ac_objext
4650 rm -f core conftest.err conftest.$ac_objext conftest.beam
39904651 test "x$ac_cv_prog_cc_c89" != "xno" && break
39914652 done
39924653 rm -f conftest.$ac_ext
39934654 CC=$ac_save_CC
3994
3995 fi
3996 # AC_CACHE_VAL
3997 case "x$ac_cv_prog_cc_c89" in
3998 x)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4000 $as_echo "none needed" >&6; } ;;
4001 xno)
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4003 $as_echo "unsupported" >&6; } ;;
4004 *)
4005 CC="$CC $ac_cv_prog_cc_c89"
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4008 esac
4009 if test "x$ac_cv_prog_cc_c89" != xno; then :
4010
4655 fi
4656
4657 if test "x$ac_cv_prog_cc_c89" = xno
4658 then :
4659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4660 printf "%s\n" "unsupported" >&6; }
4661 else $as_nop
4662 if test "x$ac_cv_prog_cc_c89" = x
4663 then :
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4665 printf "%s\n" "none needed" >&6; }
4666 else $as_nop
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4668 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4669 CC="$CC $ac_cv_prog_cc_c89"
4670 fi
4671 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4672 ac_prog_cc_stdc=c89
4673 fi
40114674 fi
40124675
40134676 ac_ext=c
40164679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40174680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40184681
4019 ac_ext=c
4682
4683 ac_ext=c
40204684 ac_cpp='$CPP $CPPFLAGS'
40214685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40224686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40234687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4025 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4026 if ${am_cv_prog_cc_c_o+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4689 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4690 if test ${am_cv_prog_cc_c_o+y}
4691 then :
4692 printf %s "(cached) " >&6
4693 else $as_nop
40294694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40304695 /* end confdefs.h. */
40314696
40324697 int
4033 main ()
4698 main (void)
40344699 {
40354700
40364701 ;
40584723 rm -f core conftest*
40594724 unset am_i
40604725 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4062 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4727 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
40634728 if test "$am_cv_prog_cc_c_o" != yes; then
40644729 # Losing compiler, so override with the script.
40654730 # FIXME: It is wrong to rewrite CC.
40774742
40784743 depcc="$CC" am_compiler_list=
40794744
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4081 $as_echo_n "checking dependency style of $depcc... " >&6; }
4082 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4746 printf %s "checking dependency style of $depcc... " >&6; }
4747 if test ${am_cv_CC_dependencies_compiler_type+y}
4748 then :
4749 printf %s "(cached) " >&6
4750 else $as_nop
40854751 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
40864752 # We make a subdir and do the tests there. Otherwise we can end up
40874753 # making bogus files that we don't know about and never remove. For
41884854 fi
41894855
41904856 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4192 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4858 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
41934859 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
41944860
41954861 if
42034869 fi
42044870
42054871
4206 case $ac_cv_prog_cc_stdc in #(
4207 no) :
4208 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4209 *) :
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4211 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4212 if ${ac_cv_prog_cc_c99+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 ac_cv_prog_cc_c99=no
4216 ac_save_CC=$CC
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <stdarg.h>
4220 #include <stdbool.h>
4221 #include <stdlib.h>
4222 #include <wchar.h>
4223 #include <stdio.h>
4224
4225 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4226 #define debug(...) fprintf (stderr, __VA_ARGS__)
4227 #define showlist(...) puts (#__VA_ARGS__)
4228 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4229 static void
4230 test_varargs_macros (void)
4231 {
4232 int x = 1234;
4233 int y = 5678;
4234 debug ("Flag");
4235 debug ("X = %d\n", x);
4236 showlist (The first, second, and third items.);
4237 report (x>y, "x is %d but y is %d", x, y);
4238 }
4239
4240 // Check long long types.
4241 #define BIG64 18446744073709551615ull
4242 #define BIG32 4294967295ul
4243 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4244 #if !BIG_OK
4245 your preprocessor is broken;
4246 #endif
4247 #if BIG_OK
4248 #else
4249 your preprocessor is broken;
4250 #endif
4251 static long long int bignum = -9223372036854775807LL;
4252 static unsigned long long int ubignum = BIG64;
4253
4254 struct incomplete_array
4255 {
4256 int datasize;
4257 double data[];
4258 };
4259
4260 struct named_init {
4261 int number;
4262 const wchar_t *name;
4263 double average;
4264 };
4265
4266 typedef const char *ccp;
4267
4268 static inline int
4269 test_restrict (ccp restrict text)
4270 {
4271 // See if C++-style comments work.
4272 // Iterate through items via the restricted pointer.
4273 // Also check for declarations in for loops.
4274 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4275 continue;
4276 return 0;
4277 }
4278
4279 // Check varargs and va_copy.
4280 static void
4281 test_varargs (const char *format, ...)
4282 {
4283 va_list args;
4284 va_start (args, format);
4285 va_list args_copy;
4286 va_copy (args_copy, args);
4287
4288 const char *str;
4289 int number;
4290 float fnumber;
4291
4292 while (*format)
4293 {
4294 switch (*format++)
4295 {
4296 case 's': // string
4297 str = va_arg (args_copy, const char *);
4298 break;
4299 case 'd': // int
4300 number = va_arg (args_copy, int);
4301 break;
4302 case 'f': // float
4303 fnumber = va_arg (args_copy, double);
4304 break;
4305 default:
4306 break;
4307 }
4308 }
4309 va_end (args_copy);
4310 va_end (args);
4311 }
4312
4313 int
4314 main ()
4315 {
4316
4317 // Check bool.
4318 _Bool success = false;
4319
4320 // Check restrict.
4321 if (test_restrict ("String literal") == 0)
4322 success = true;
4323 char *restrict newvar = "Another string";
4324
4325 // Check varargs.
4326 test_varargs ("s, d' f .", "string", 65, 34.234);
4327 test_varargs_macros ();
4328
4329 // Check flexible array members.
4330 struct incomplete_array *ia =
4331 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4332 ia->datasize = 10;
4333 for (int i = 0; i < ia->datasize; ++i)
4334 ia->data[i] = i * 1.234;
4335
4336 // Check named initializers.
4337 struct named_init ni = {
4338 .number = 34,
4339 .name = L"Test wide string",
4340 .average = 543.34343,
4341 };
4342
4343 ni.number = 58;
4344
4345 int dynamic_array[ni.number];
4346 dynamic_array[ni.number - 1] = 543;
4347
4348 // work around unused variable warnings
4349 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4350 || dynamic_array[ni.number - 1] != 543);
4351
4352 ;
4353 return 0;
4354 }
4355 _ACEOF
4356 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4357 do
4358 CC="$ac_save_CC $ac_arg"
4359 if ac_fn_c_try_compile "$LINENO"; then :
4360 ac_cv_prog_cc_c99=$ac_arg
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext
4363 test "x$ac_cv_prog_cc_c99" != "xno" && break
4364 done
4365 rm -f conftest.$ac_ext
4366 CC=$ac_save_CC
4367
4368 fi
4369 # AC_CACHE_VAL
4370 case "x$ac_cv_prog_cc_c99" in
4371 x)
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4373 $as_echo "none needed" >&6; } ;;
4374 xno)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4376 $as_echo "unsupported" >&6; } ;;
4377 *)
4378 CC="$CC $ac_cv_prog_cc_c99"
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4380 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4381 esac
4382 if test "x$ac_cv_prog_cc_c99" != xno; then :
4383 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4384 else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4386 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4387 if ${ac_cv_prog_cc_c89+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 ac_cv_prog_cc_c89=no
4391 ac_save_CC=$CC
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #include <stdarg.h>
4395 #include <stdio.h>
4396 struct stat;
4397 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4398 struct buf { int x; };
4399 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4400 static char *e (p, i)
4401 char **p;
4402 int i;
4403 {
4404 return p[i];
4405 }
4406 static char *f (char * (*g) (char **, int), char **p, ...)
4407 {
4408 char *s;
4409 va_list v;
4410 va_start (v,p);
4411 s = g (p, va_arg (v,int));
4412 va_end (v);
4413 return s;
4414 }
4415
4416 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4417 function prototypes and stuff, but not '\xHH' hex character constants.
4418 These don't provoke an error unfortunately, instead are silently treated
4419 as 'x'. The following induces an error, until -std is added to get
4420 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4421 array size at least. It's necessary to write '\x00'==0 to get something
4422 that's true only with -std. */
4423 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4424
4425 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4426 inside strings and character constants. */
4427 #define FOO(x) 'x'
4428 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4429
4430 int test (int i, double x);
4431 struct s1 {int (*f) (int a);};
4432 struct s2 {int (*f) (double a);};
4433 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4434 int argc;
4435 char **argv;
4436 int
4437 main ()
4438 {
4439 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4440 ;
4441 return 0;
4442 }
4443 _ACEOF
4444 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4445 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4446 do
4447 CC="$ac_save_CC $ac_arg"
4448 if ac_fn_c_try_compile "$LINENO"; then :
4449 ac_cv_prog_cc_c89=$ac_arg
4450 fi
4451 rm -f core conftest.err conftest.$ac_objext
4452 test "x$ac_cv_prog_cc_c89" != "xno" && break
4453 done
4454 rm -f conftest.$ac_ext
4455 CC=$ac_save_CC
4456
4457 fi
4458 # AC_CACHE_VAL
4459 case "x$ac_cv_prog_cc_c89" in
4460 x)
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4462 $as_echo "none needed" >&6; } ;;
4463 xno)
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4465 $as_echo "unsupported" >&6; } ;;
4466 *)
4467 CC="$CC $ac_cv_prog_cc_c89"
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4469 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4470 esac
4471 if test "x$ac_cv_prog_cc_c89" != xno; then :
4472 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4473 else
4474 ac_cv_prog_cc_stdc=no
4475 fi
4476
4477 fi
4478 ;;
4479 esac
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4481 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4482 if ${ac_cv_prog_cc_stdc+:} false; then :
4483 $as_echo_n "(cached) " >&6
4484 fi
4485
4486 case $ac_cv_prog_cc_stdc in #(
4487 no) :
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4489 $as_echo "unsupported" >&6; } ;; #(
4490 '') :
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4492 $as_echo "none needed" >&6; } ;; #(
4493 *) :
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4495 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4496 esac
4872
4873
4874
4875
4876
4877
44974878
44984879 ac_ext=cpp
44994880 ac_cpp='$CXXCPP $CPPFLAGS'
45054886 CXX=$CCC
45064887 else
45074888 if test -n "$ac_tool_prefix"; then
4508 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4889 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
45094890 do
45104891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
45114892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if ${ac_cv_prog_CXX+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 printf %s "checking for $ac_word... " >&6; }
4895 if test ${ac_cv_prog_CXX+y}
4896 then :
4897 printf %s "(cached) " >&6
4898 else $as_nop
45174899 if test -n "$CXX"; then
45184900 ac_cv_prog_CXX="$CXX" # Let the user override the test.
45194901 else
45214903 for as_dir in $PATH
45224904 do
45234905 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4906 case $as_dir in #(((
4907 '') as_dir=./ ;;
4908 */) ;;
4909 *) as_dir=$as_dir/ ;;
4910 esac
45254911 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
45274913 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45294915 break 2
45304916 fi
45314917 done
45364922 fi
45374923 CXX=$ac_cv_prog_CXX
45384924 if test -n "$CXX"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4540 $as_echo "$CXX" >&6; }
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4926 printf "%s\n" "$CXX" >&6; }
45414927 else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 printf "%s\n" "no" >&6; }
45444930 fi
45454931
45464932
45494935 fi
45504936 if test -z "$CXX"; then
45514937 ac_ct_CXX=$CXX
4552 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4938 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
45534939 do
45544940 # Extract the first word of "$ac_prog", so it can be a program name with args.
45554941 set dummy $ac_prog; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 printf %s "checking for $ac_word... " >&6; }
4944 if test ${ac_cv_prog_ac_ct_CXX+y}
4945 then :
4946 printf %s "(cached) " >&6
4947 else $as_nop
45614948 if test -n "$ac_ct_CXX"; then
45624949 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
45634950 else
45654952 for as_dir in $PATH
45664953 do
45674954 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4955 case $as_dir in #(((
4956 '') as_dir=./ ;;
4957 */) ;;
4958 *) as_dir=$as_dir/ ;;
4959 esac
45694960 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
45714962 ac_cv_prog_ac_ct_CXX="$ac_prog"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45734964 break 2
45744965 fi
45754966 done
45804971 fi
45814972 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
45824973 if test -n "$ac_ct_CXX"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4584 $as_echo "$ac_ct_CXX" >&6; }
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4975 printf "%s\n" "$ac_ct_CXX" >&6; }
45854976 else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 printf "%s\n" "no" >&6; }
45884979 fi
45894980
45904981
45964987 else
45974988 case $cross_compiling:$ac_tool_warned in
45984989 yes:)
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46014992 ac_tool_warned=yes ;;
46024993 esac
46034994 CXX=$ac_ct_CXX
46074998 fi
46084999 fi
46095000 # Provide some information about the compiler.
4610 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
46115002 set X $ac_compile
46125003 ac_compiler=$2
46135004 for ac_option in --version -v -V -qversion; do
46175008 *) ac_try_echo=$ac_try;;
46185009 esac
46195010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4620 $as_echo "$ac_try_echo"; } >&5
5011 printf "%s\n" "$ac_try_echo"; } >&5
46215012 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
46225013 ac_status=$?
46235014 if test -s conftest.err; then
46275018 cat conftest.er1 >&5
46285019 fi
46295020 rm -f conftest.er1 conftest.err
4630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46315022 test $ac_status = 0; }
46325023 done
46335024
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4635 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4636 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
5025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5026 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5027 if test ${ac_cv_cxx_compiler_gnu+y}
5028 then :
5029 printf %s "(cached) " >&6
5030 else $as_nop
46395031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46405032 /* end confdefs.h. */
46415033
46425034 int
4643 main ()
5035 main (void)
46445036 {
46455037 #ifndef __GNUC__
46465038 choke me
46505042 return 0;
46515043 }
46525044 _ACEOF
4653 if ac_fn_cxx_try_compile "$LINENO"; then :
5045 if ac_fn_cxx_try_compile "$LINENO"
5046 then :
46545047 ac_compiler_gnu=yes
4655 else
5048 else $as_nop
46565049 ac_compiler_gnu=no
46575050 fi
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
46595052 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
46605053
46615054 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4663 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5056 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5058
46645059 if test $ac_compiler_gnu = yes; then
46655060 GXX=yes
46665061 else
46675062 GXX=
46685063 fi
4669 ac_test_CXXFLAGS=${CXXFLAGS+set}
5064 ac_test_CXXFLAGS=${CXXFLAGS+y}
46705065 ac_save_CXXFLAGS=$CXXFLAGS
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4672 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4673 if ${ac_cv_prog_cxx_g+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5067 printf %s "checking whether $CXX accepts -g... " >&6; }
5068 if test ${ac_cv_prog_cxx_g+y}
5069 then :
5070 printf %s "(cached) " >&6
5071 else $as_nop
46765072 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
46775073 ac_cxx_werror_flag=yes
46785074 ac_cv_prog_cxx_g=no
46815077 /* end confdefs.h. */
46825078
46835079 int
4684 main ()
5080 main (void)
46855081 {
46865082
46875083 ;
46885084 return 0;
46895085 }
46905086 _ACEOF
4691 if ac_fn_cxx_try_compile "$LINENO"; then :
5087 if ac_fn_cxx_try_compile "$LINENO"
5088 then :
46925089 ac_cv_prog_cxx_g=yes
4693 else
5090 else $as_nop
46945091 CXXFLAGS=""
46955092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46965093 /* end confdefs.h. */
46975094
46985095 int
4699 main ()
5096 main (void)
47005097 {
47015098
47025099 ;
47035100 return 0;
47045101 }
47055102 _ACEOF
4706 if ac_fn_cxx_try_compile "$LINENO"; then :
4707
4708 else
5103 if ac_fn_cxx_try_compile "$LINENO"
5104 then :
5105
5106 else $as_nop
47095107 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
47105108 CXXFLAGS="-g"
47115109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47125110 /* end confdefs.h. */
47135111
47145112 int
4715 main ()
5113 main (void)
47165114 {
47175115
47185116 ;
47195117 return 0;
47205118 }
47215119 _ACEOF
4722 if ac_fn_cxx_try_compile "$LINENO"; then :
5120 if ac_fn_cxx_try_compile "$LINENO"
5121 then :
47235122 ac_cv_prog_cxx_g=yes
47245123 fi
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 fi
4727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5125 fi
5126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5127 fi
5128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
47305129 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
47315130 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4733 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4734 if test "$ac_test_CXXFLAGS" = set; then
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5132 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5133 if test $ac_test_CXXFLAGS; then
47355134 CXXFLAGS=$ac_save_CXXFLAGS
47365135 elif test $ac_cv_prog_cxx_g = yes; then
47375136 if test "$GXX" = yes; then
47465145 CXXFLAGS=
47475146 fi
47485147 fi
5148 ac_prog_cxx_stdcxx=no
5149 if test x$ac_prog_cxx_stdcxx = xno
5150 then :
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5152 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5153 if test ${ac_cv_prog_cxx_11+y}
5154 then :
5155 printf %s "(cached) " >&6
5156 else $as_nop
5157 ac_cv_prog_cxx_11=no
5158 ac_save_CXX=$CXX
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5161 $ac_cxx_conftest_cxx11_program
5162 _ACEOF
5163 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5164 do
5165 CXX="$ac_save_CXX $ac_arg"
5166 if ac_fn_cxx_try_compile "$LINENO"
5167 then :
5168 ac_cv_prog_cxx_cxx11=$ac_arg
5169 fi
5170 rm -f core conftest.err conftest.$ac_objext conftest.beam
5171 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5172 done
5173 rm -f conftest.$ac_ext
5174 CXX=$ac_save_CXX
5175 fi
5176
5177 if test "x$ac_cv_prog_cxx_cxx11" = xno
5178 then :
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5180 printf "%s\n" "unsupported" >&6; }
5181 else $as_nop
5182 if test "x$ac_cv_prog_cxx_cxx11" = x
5183 then :
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5185 printf "%s\n" "none needed" >&6; }
5186 else $as_nop
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5188 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5189 CXX="$CXX $ac_cv_prog_cxx_cxx11"
5190 fi
5191 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5192 ac_prog_cxx_stdcxx=cxx11
5193 fi
5194 fi
5195 if test x$ac_prog_cxx_stdcxx = xno
5196 then :
5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5198 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5199 if test ${ac_cv_prog_cxx_98+y}
5200 then :
5201 printf %s "(cached) " >&6
5202 else $as_nop
5203 ac_cv_prog_cxx_98=no
5204 ac_save_CXX=$CXX
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5207 $ac_cxx_conftest_cxx98_program
5208 _ACEOF
5209 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5210 do
5211 CXX="$ac_save_CXX $ac_arg"
5212 if ac_fn_cxx_try_compile "$LINENO"
5213 then :
5214 ac_cv_prog_cxx_cxx98=$ac_arg
5215 fi
5216 rm -f core conftest.err conftest.$ac_objext conftest.beam
5217 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5218 done
5219 rm -f conftest.$ac_ext
5220 CXX=$ac_save_CXX
5221 fi
5222
5223 if test "x$ac_cv_prog_cxx_cxx98" = xno
5224 then :
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5226 printf "%s\n" "unsupported" >&6; }
5227 else $as_nop
5228 if test "x$ac_cv_prog_cxx_cxx98" = x
5229 then :
5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5231 printf "%s\n" "none needed" >&6; }
5232 else $as_nop
5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5234 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5235 CXX="$CXX $ac_cv_prog_cxx_cxx98"
5236 fi
5237 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5238 ac_prog_cxx_stdcxx=cxx98
5239 fi
5240 fi
5241
47495242 ac_ext=c
47505243 ac_cpp='$CPP $CPPFLAGS'
47515244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47545247
47555248 depcc="$CXX" am_compiler_list=
47565249
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4758 $as_echo_n "checking dependency style of $depcc... " >&6; }
4759 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761 else
5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5251 printf %s "checking dependency style of $depcc... " >&6; }
5252 if test ${am_cv_CXX_dependencies_compiler_type+y}
5253 then :
5254 printf %s "(cached) " >&6
5255 else $as_nop
47625256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
47635257 # We make a subdir and do the tests there. Otherwise we can end up
47645258 # making bogus files that we don't know about and never remove. For
48655359 fi
48665360
48675361 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4869 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5363 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
48705364 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
48715365
48725366 if
48805374 fi
48815375
48825376
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4884 $as_echo_n "checking whether ln -s works... " >&6; }
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5378 printf %s "checking whether ln -s works... " >&6; }
48855379 LN_S=$as_ln_s
48865380 if test "$LN_S" = "ln -s"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4888 $as_echo "yes" >&6; }
5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5382 printf "%s\n" "yes" >&6; }
48895383 else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4891 $as_echo "no, using $LN_S" >&6; }
4892 fi
4893
4894
4895
4896 ac_ext=c
4897 ac_cpp='$CPP $CPPFLAGS'
4898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4902 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4903 # On Suns, sometimes $CPP names a directory.
4904 if test -n "$CPP" && test -d "$CPP"; then
4905 CPP=
4906 fi
4907 if test -z "$CPP"; then
4908 if ${ac_cv_prog_CPP+:} false; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 # Double quotes because CPP needs to be expanded
4912 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4913 do
4914 ac_preproc_ok=false
4915 for ac_c_preproc_warn_flag in '' yes
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5385 printf "%s\n" "no, using $LN_S" >&6; }
5386 fi
5387
5388
5389
5390 ac_header= ac_cache=
5391 for ac_item in $ac_header_c_list
49165392 do
4917 # Use a header file that comes with gcc, so configuring glibc
4918 # with a fresh cross-compiler works.
4919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4920 # <limits.h> exists even on freestanding compilers.
4921 # On the NeXT, cc -E runs the code through the compiler's parser,
4922 # not just through cpp. "Syntax error" is here to catch this case.
5393 if test $ac_cache; then
5394 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5395 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5396 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5397 fi
5398 ac_header= ac_cache=
5399 elif test $ac_header; then
5400 ac_cache=$ac_item
5401 else
5402 ac_header=$ac_item
5403 fi
5404 done
5405
5406
5407
5408
5409
5410
5411
5412
5413 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5414 then :
5415
5416 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5417
5418 fi
5419
5420
5421
5422
5423
5424
5425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5426 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5427 if test ${ac_cv_safe_to_define___extensions__+y}
5428 then :
5429 printf %s "(cached) " >&6
5430 else $as_nop
49235431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49245432 /* end confdefs.h. */
4925 #ifdef __STDC__
4926 # include <limits.h>
4927 #else
4928 # include <assert.h>
4929 #endif
4930 Syntax error
4931 _ACEOF
4932 if ac_fn_c_try_cpp "$LINENO"; then :
4933
4934 else
4935 # Broken: fails on valid input.
4936 continue
4937 fi
4938 rm -f conftest.err conftest.i conftest.$ac_ext
4939
4940 # OK, works on sane cases. Now check whether nonexistent headers
4941 # can be detected and how.
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 #include <ac_nonexistent.h>
4945 _ACEOF
4946 if ac_fn_c_try_cpp "$LINENO"; then :
4947 # Broken: success on invalid input.
4948 continue
4949 else
4950 # Passes both tests.
4951 ac_preproc_ok=:
4952 break
4953 fi
4954 rm -f conftest.err conftest.i conftest.$ac_ext
4955
4956 done
4957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4958 rm -f conftest.i conftest.err conftest.$ac_ext
4959 if $ac_preproc_ok; then :
4960 break
4961 fi
4962
4963 done
4964 ac_cv_prog_CPP=$CPP
4965
4966 fi
4967 CPP=$ac_cv_prog_CPP
4968 else
4969 ac_cv_prog_CPP=$CPP
4970 fi
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4972 $as_echo "$CPP" >&6; }
4973 ac_preproc_ok=false
4974 for ac_c_preproc_warn_flag in '' yes
4975 do
4976 # Use a header file that comes with gcc, so configuring glibc
4977 # with a fresh cross-compiler works.
4978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4979 # <limits.h> exists even on freestanding compilers.
4980 # On the NeXT, cc -E runs the code through the compiler's parser,
4981 # not just through cpp. "Syntax error" is here to catch this case.
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984 #ifdef __STDC__
4985 # include <limits.h>
4986 #else
4987 # include <assert.h>
4988 #endif
4989 Syntax error
4990 _ACEOF
4991 if ac_fn_c_try_cpp "$LINENO"; then :
4992
4993 else
4994 # Broken: fails on valid input.
4995 continue
4996 fi
4997 rm -f conftest.err conftest.i conftest.$ac_ext
4998
4999 # OK, works on sane cases. Now check whether nonexistent headers
5000 # can be detected and how.
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 #include <ac_nonexistent.h>
5004 _ACEOF
5005 if ac_fn_c_try_cpp "$LINENO"; then :
5006 # Broken: success on invalid input.
5007 continue
5008 else
5009 # Passes both tests.
5010 ac_preproc_ok=:
5011 break
5012 fi
5013 rm -f conftest.err conftest.i conftest.$ac_ext
5014
5015 done
5016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5017 rm -f conftest.i conftest.err conftest.$ac_ext
5018 if $ac_preproc_ok; then :
5019
5020 else
5021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5023 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5024 See \`config.log' for more details" "$LINENO" 5; }
5025 fi
5026
5027 ac_ext=c
5028 ac_cpp='$CPP $CPPFLAGS'
5029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5032
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5035 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5036 if ${ac_cv_path_GREP+:} false; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 if test -z "$GREP"; then
5040 ac_path_GREP_found=false
5041 # Loop through the user's path and test for each of PROGNAME-LIST
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5044 do
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_prog in grep ggrep; do
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5050 as_fn_executable_p "$ac_path_GREP" || continue
5051 # Check for GNU ac_path_GREP and select it if it is found.
5052 # Check for GNU $ac_path_GREP
5053 case `"$ac_path_GREP" --version 2>&1` in
5054 *GNU*)
5055 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5056 *)
5057 ac_count=0
5058 $as_echo_n 0123456789 >"conftest.in"
5059 while :
5060 do
5061 cat "conftest.in" "conftest.in" >"conftest.tmp"
5062 mv "conftest.tmp" "conftest.in"
5063 cp "conftest.in" "conftest.nl"
5064 $as_echo 'GREP' >> "conftest.nl"
5065 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5067 as_fn_arith $ac_count + 1 && ac_count=$as_val
5068 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5069 # Best one so far, save it but keep looking for a better one
5070 ac_cv_path_GREP="$ac_path_GREP"
5071 ac_path_GREP_max=$ac_count
5072 fi
5073 # 10*(2^10) chars as input seems more than enough
5074 test $ac_count -gt 10 && break
5075 done
5076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5077 esac
5078
5079 $ac_path_GREP_found && break 3
5080 done
5081 done
5082 done
5083 IFS=$as_save_IFS
5084 if test -z "$ac_cv_path_GREP"; then
5085 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5086 fi
5087 else
5088 ac_cv_path_GREP=$GREP
5089 fi
5090
5091 fi
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5093 $as_echo "$ac_cv_path_GREP" >&6; }
5094 GREP="$ac_cv_path_GREP"
5095
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5098 $as_echo_n "checking for egrep... " >&6; }
5099 if ${ac_cv_path_EGREP+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5103 then ac_cv_path_EGREP="$GREP -E"
5104 else
5105 if test -z "$EGREP"; then
5106 ac_path_EGREP_found=false
5107 # Loop through the user's path and test for each of PROGNAME-LIST
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5110 do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_prog in egrep; do
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5116 as_fn_executable_p "$ac_path_EGREP" || continue
5117 # Check for GNU ac_path_EGREP and select it if it is found.
5118 # Check for GNU $ac_path_EGREP
5119 case `"$ac_path_EGREP" --version 2>&1` in
5120 *GNU*)
5121 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5122 *)
5123 ac_count=0
5124 $as_echo_n 0123456789 >"conftest.in"
5125 while :
5126 do
5127 cat "conftest.in" "conftest.in" >"conftest.tmp"
5128 mv "conftest.tmp" "conftest.in"
5129 cp "conftest.in" "conftest.nl"
5130 $as_echo 'EGREP' >> "conftest.nl"
5131 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5133 as_fn_arith $ac_count + 1 && ac_count=$as_val
5134 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5135 # Best one so far, save it but keep looking for a better one
5136 ac_cv_path_EGREP="$ac_path_EGREP"
5137 ac_path_EGREP_max=$ac_count
5138 fi
5139 # 10*(2^10) chars as input seems more than enough
5140 test $ac_count -gt 10 && break
5141 done
5142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5143 esac
5144
5145 $ac_path_EGREP_found && break 3
5146 done
5147 done
5148 done
5149 IFS=$as_save_IFS
5150 if test -z "$ac_cv_path_EGREP"; then
5151 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5152 fi
5153 else
5154 ac_cv_path_EGREP=$EGREP
5155 fi
5156
5157 fi
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5160 $as_echo "$ac_cv_path_EGREP" >&6; }
5161 EGREP="$ac_cv_path_EGREP"
5162
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5165 $as_echo_n "checking for ANSI C header files... " >&6; }
5166 if ${ac_cv_header_stdc+:} false; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5171 #include <stdlib.h>
5172 #include <stdarg.h>
5173 #include <string.h>
5174 #include <float.h>
5175
5433
5434 # define __EXTENSIONS__ 1
5435 $ac_includes_default
51765436 int
5177 main ()
5437 main (void)
51785438 {
51795439
51805440 ;
51815441 return 0;
51825442 }
51835443 _ACEOF
5184 if ac_fn_c_try_compile "$LINENO"; then :
5185 ac_cv_header_stdc=yes
5186 else
5187 ac_cv_header_stdc=no
5188 fi
5189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5190
5191 if test $ac_cv_header_stdc = yes; then
5192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5444 if ac_fn_c_try_compile "$LINENO"
5445 then :
5446 ac_cv_safe_to_define___extensions__=yes
5447 else $as_nop
5448 ac_cv_safe_to_define___extensions__=no
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5451 fi
5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5453 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5454
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5456 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5457 if test ${ac_cv_should_define__xopen_source+y}
5458 then :
5459 printf %s "(cached) " >&6
5460 else $as_nop
5461 ac_cv_should_define__xopen_source=no
5462 if test $ac_cv_header_wchar_h = yes
5463 then :
51935464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51945465 /* end confdefs.h. */
5195 #include <string.h>
5196
5197 _ACEOF
5198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5199 $EGREP "memchr" >/dev/null 2>&1; then :
5200
5201 else
5202 ac_cv_header_stdc=no
5203 fi
5204 rm -f conftest*
5205
5206 fi
5207
5208 if test $ac_cv_header_stdc = yes; then
5209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 #include <stdlib.h>
5213
5214 _ACEOF
5215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5216 $EGREP "free" >/dev/null 2>&1; then :
5217
5218 else
5219 ac_cv_header_stdc=no
5220 fi
5221 rm -f conftest*
5222
5223 fi
5224
5225 if test $ac_cv_header_stdc = yes; then
5226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5227 if test "$cross_compiling" = yes; then :
5228 :
5229 else
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 #include <ctype.h>
5233 #include <stdlib.h>
5234 #if ((' ' & 0x0FF) == 0x020)
5235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5237 #else
5238 # define ISLOWER(c) \
5239 (('a' <= (c) && (c) <= 'i') \
5240 || ('j' <= (c) && (c) <= 'r') \
5241 || ('s' <= (c) && (c) <= 'z'))
5242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5243 #endif
5244
5245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5466
5467 #include <wchar.h>
5468 mbstate_t x;
52465469 int
5247 main ()
5248 {
5249 int i;
5250 for (i = 0; i < 256; i++)
5251 if (XOR (islower (i), ISLOWER (i))
5252 || toupper (i) != TOUPPER (i))
5253 return 2;
5254 return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_run "$LINENO"; then :
5258
5259 else
5260 ac_cv_header_stdc=no
5261 fi
5262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5263 conftest.$ac_objext conftest.beam conftest.$ac_ext
5264 fi
5265
5266 fi
5267 fi
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5269 $as_echo "$ac_cv_header_stdc" >&6; }
5270 if test $ac_cv_header_stdc = yes; then
5271
5272 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5273
5274 fi
5275
5276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5277 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5278 inttypes.h stdint.h unistd.h
5279 do :
5280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5281 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5282 "
5283 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5284 cat >>confdefs.h <<_ACEOF
5285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5286 _ACEOF
5287
5288 fi
5289
5290 done
5291
5292
5293
5294 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5295 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5296 MINIX=yes
5297 else
5298 MINIX=
5299 fi
5300
5301
5302 if test "$MINIX" = yes; then
5303
5304 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5305
5306
5307 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5308
5309
5310 $as_echo "#define _MINIX 1" >>confdefs.h
5311
5312 fi
5313
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5316 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5317 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322
5323 # define __EXTENSIONS__ 1
5324 $ac_includes_default
5325 int
5326 main ()
5470 main (void)
53275471 {
53285472
53295473 ;
53305474 return 0;
53315475 }
53325476 _ACEOF
5333 if ac_fn_c_try_compile "$LINENO"; then :
5334 ac_cv_safe_to_define___extensions__=yes
5335 else
5336 ac_cv_safe_to_define___extensions__=no
5337 fi
5338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5341 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5342 test $ac_cv_safe_to_define___extensions__ = yes &&
5343 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5344
5345 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5346
5347 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5348
5349 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5350
5351 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5352
5477 if ac_fn_c_try_compile "$LINENO"
5478 then :
5479
5480 else $as_nop
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5483
5484 #define _XOPEN_SOURCE 500
5485 #include <wchar.h>
5486 mbstate_t x;
5487 int
5488 main (void)
5489 {
5490
5491 ;
5492 return 0;
5493 }
5494 _ACEOF
5495 if ac_fn_c_try_compile "$LINENO"
5496 then :
5497 ac_cv_should_define__xopen_source=yes
5498 fi
5499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5500 fi
5501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5502 fi
5503 fi
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5505 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5506
5507 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5508
5509 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5510
5511 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5512
5513 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5514
5515 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5516
5517 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5518
5519 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5520
5521 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5522
5523 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5524
5525 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5526
5527 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5528
5529 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5530
5531 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5532
5533 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5534
5535 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5536
5537 if test $ac_cv_header_minix_config_h = yes
5538 then :
5539 MINIX=yes
5540 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5541
5542 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5543
5544 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5545
5546 else $as_nop
5547 MINIX=
5548 fi
5549 if test $ac_cv_safe_to_define___extensions__ = yes
5550 then :
5551 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5552
5553 fi
5554 if test $ac_cv_should_define__xopen_source = yes
5555 then :
5556 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5557
5558 fi
53535559
53545560 # Check whether --enable-largefile was given.
5355 if test "${enable_largefile+set}" = set; then :
5561 if test ${enable_largefile+y}
5562 then :
53565563 enableval=$enable_largefile;
53575564 fi
53585565
53595566 if test "$enable_largefile" != no; then
53605567
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5362 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5363 if ${ac_cv_sys_largefile_CC+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5569 printf %s "checking for special C compiler options needed for large files... " >&6; }
5570 if test ${ac_cv_sys_largefile_CC+y}
5571 then :
5572 printf %s "(cached) " >&6
5573 else $as_nop
53665574 ac_cv_sys_largefile_CC=no
53675575 if test "$GCC" != yes; then
53685576 ac_save_CC=$CC
53765584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
53775585 since some C++ compilers masquerading as C compilers
53785586 incorrectly reject 9223372036854775807. */
5379 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5587 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
53805588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
53815589 && LARGE_OFF_T % 2147483647 == 1)
53825590 ? 1 : -1];
53835591 int
5384 main ()
5592 main (void)
53855593 {
53865594
53875595 ;
53885596 return 0;
53895597 }
53905598 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5599 if ac_fn_c_try_compile "$LINENO"
5600 then :
53925601 break
53935602 fi
5394 rm -f core conftest.err conftest.$ac_objext
5603 rm -f core conftest.err conftest.$ac_objext conftest.beam
53955604 CC="$CC -n32"
5396 if ac_fn_c_try_compile "$LINENO"; then :
5605 if ac_fn_c_try_compile "$LINENO"
5606 then :
53975607 ac_cv_sys_largefile_CC=' -n32'; break
53985608 fi
5399 rm -f core conftest.err conftest.$ac_objext
5609 rm -f core conftest.err conftest.$ac_objext conftest.beam
54005610 break
54015611 done
54025612 CC=$ac_save_CC
54035613 rm -f conftest.$ac_ext
54045614 fi
54055615 fi
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5407 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5617 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
54085618 if test "$ac_cv_sys_largefile_CC" != no; then
54095619 CC=$CC$ac_cv_sys_largefile_CC
54105620 fi
54115621
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5413 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5414 if ${ac_cv_sys_file_offset_bits+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5623 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5624 if test ${ac_cv_sys_file_offset_bits+y}
5625 then :
5626 printf %s "(cached) " >&6
5627 else $as_nop
54175628 while :; do
54185629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54195630 /* end confdefs.h. */
54225633 We can't simply define LARGE_OFF_T to be 9223372036854775807,
54235634 since some C++ compilers masquerading as C compilers
54245635 incorrectly reject 9223372036854775807. */
5425 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5636 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
54265637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
54275638 && LARGE_OFF_T % 2147483647 == 1)
54285639 ? 1 : -1];
54295640 int
5430 main ()
5641 main (void)
54315642 {
54325643
54335644 ;
54345645 return 0;
54355646 }
54365647 _ACEOF
5437 if ac_fn_c_try_compile "$LINENO"; then :
5648 if ac_fn_c_try_compile "$LINENO"
5649 then :
54385650 ac_cv_sys_file_offset_bits=no; break
54395651 fi
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
54415653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54425654 /* end confdefs.h. */
54435655 #define _FILE_OFFSET_BITS 64
54465658 We can't simply define LARGE_OFF_T to be 9223372036854775807,
54475659 since some C++ compilers masquerading as C compilers
54485660 incorrectly reject 9223372036854775807. */
5449 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5661 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
54505662 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
54515663 && LARGE_OFF_T % 2147483647 == 1)
54525664 ? 1 : -1];
54535665 int
5454 main ()
5666 main (void)
54555667 {
54565668
54575669 ;
54585670 return 0;
54595671 }
54605672 _ACEOF
5461 if ac_fn_c_try_compile "$LINENO"; then :
5673 if ac_fn_c_try_compile "$LINENO"
5674 then :
54625675 ac_cv_sys_file_offset_bits=64; break
54635676 fi
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
54655678 ac_cv_sys_file_offset_bits=unknown
54665679 break
54675680 done
54685681 fi
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5470 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5683 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
54715684 case $ac_cv_sys_file_offset_bits in #(
54725685 no | unknown) ;;
54735686 *)
5474 cat >>confdefs.h <<_ACEOF
5475 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5476 _ACEOF
5687 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
54775688 ;;
54785689 esac
54795690 rm -rf conftest*
54805691 if test $ac_cv_sys_file_offset_bits = unknown; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5482 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5483 if ${ac_cv_sys_large_files+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5693 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5694 if test ${ac_cv_sys_large_files+y}
5695 then :
5696 printf %s "(cached) " >&6
5697 else $as_nop
54865698 while :; do
54875699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54885700 /* end confdefs.h. */
54915703 We can't simply define LARGE_OFF_T to be 9223372036854775807,
54925704 since some C++ compilers masquerading as C compilers
54935705 incorrectly reject 9223372036854775807. */
5494 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5706 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
54955707 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
54965708 && LARGE_OFF_T % 2147483647 == 1)
54975709 ? 1 : -1];
54985710 int
5499 main ()
5711 main (void)
55005712 {
55015713
55025714 ;
55035715 return 0;
55045716 }
55055717 _ACEOF
5506 if ac_fn_c_try_compile "$LINENO"; then :
5718 if ac_fn_c_try_compile "$LINENO"
5719 then :
55075720 ac_cv_sys_large_files=no; break
55085721 fi
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55105723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55115724 /* end confdefs.h. */
55125725 #define _LARGE_FILES 1
55155728 We can't simply define LARGE_OFF_T to be 9223372036854775807,
55165729 since some C++ compilers masquerading as C compilers
55175730 incorrectly reject 9223372036854775807. */
5518 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5731 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
55195732 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
55205733 && LARGE_OFF_T % 2147483647 == 1)
55215734 ? 1 : -1];
55225735 int
5523 main ()
5736 main (void)
55245737 {
55255738
55265739 ;
55275740 return 0;
55285741 }
55295742 _ACEOF
5530 if ac_fn_c_try_compile "$LINENO"; then :
5743 if ac_fn_c_try_compile "$LINENO"
5744 then :
55315745 ac_cv_sys_large_files=1; break
55325746 fi
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55345748 ac_cv_sys_large_files=unknown
55355749 break
55365750 done
55375751 fi
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5539 $as_echo "$ac_cv_sys_large_files" >&6; }
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5753 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
55405754 case $ac_cv_sys_large_files in #(
55415755 no | unknown) ;;
55425756 *)
5543 cat >>confdefs.h <<_ACEOF
5544 #define _LARGE_FILES $ac_cv_sys_large_files
5545 _ACEOF
5757 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
55465758 ;;
55475759 esac
55485760 rm -rf conftest*
55495761 fi
5550
5551
55525762 fi
55535763
55545764
55555765 # Check whether --enable-silent-rules was given.
5556 if test "${enable_silent_rules+set}" = set; then :
5766 if test ${enable_silent_rules+y}
5767 then :
55575768 enableval=$enable_silent_rules;
55585769 fi
55595770
55635774 *) AM_DEFAULT_VERBOSITY=0;;
55645775 esac
55655776 am_make=${MAKE-make}
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5567 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5568 if ${am_cv_make_support_nested_variables+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if $as_echo 'TRUE=$(BAR$(V))
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5778 printf %s "checking whether $am_make supports nested variables... " >&6; }
5779 if test ${am_cv_make_support_nested_variables+y}
5780 then :
5781 printf %s "(cached) " >&6
5782 else $as_nop
5783 if printf "%s\n" 'TRUE=$(BAR$(V))
55725784 BAR0=false
55735785 BAR1=true
55745786 V=1
55805792 am_cv_make_support_nested_variables=no
55815793 fi
55825794 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5584 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5796 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
55855797 if test $am_cv_make_support_nested_variables = yes; then
55865798 AM_V='$(V)'
55875799 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
55935805
55945806 case `pwd` in
55955807 *\ * | *\ *)
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5597 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5809 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
55985810 esac
55995811
56005812
56145826
56155827
56165828
5829
56175830 ltmain=$ac_aux_dir/ltmain.sh
56185831
5619 # Make sure we can run config.sub.
5620 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5621 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5622
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5624 $as_echo_n "checking build system type... " >&6; }
5625 if ${ac_cv_build+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5832
5833
5834 # Make sure we can run config.sub.
5835 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5836 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5837
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5839 printf %s "checking build system type... " >&6; }
5840 if test ${ac_cv_build+y}
5841 then :
5842 printf %s "(cached) " >&6
5843 else $as_nop
56285844 ac_build_alias=$build_alias
56295845 test "x$ac_build_alias" = x &&
5630 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5846 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
56315847 test "x$ac_build_alias" = x &&
56325848 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5633 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5634 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5635
5636 fi
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5638 $as_echo "$ac_cv_build" >&6; }
5849 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5850 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5851
5852 fi
5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5854 printf "%s\n" "$ac_cv_build" >&6; }
56395855 case $ac_cv_build in
56405856 *-*-*) ;;
56415857 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
56545870 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
56555871
56565872
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5658 $as_echo_n "checking host system type... " >&6; }
5659 if ${ac_cv_host+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5874 printf %s "checking host system type... " >&6; }
5875 if test ${ac_cv_host+y}
5876 then :
5877 printf %s "(cached) " >&6
5878 else $as_nop
56625879 if test "x$host_alias" = x; then
56635880 ac_cv_host=$ac_cv_build
56645881 else
5665 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5666 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5667 fi
5668
5669 fi
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5671 $as_echo "$ac_cv_host" >&6; }
5882 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5883 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5884 fi
5885
5886 fi
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5888 printf "%s\n" "$ac_cv_host" >&6; }
56725889 case $ac_cv_host in
56735890 *-*-*) ;;
56745891 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
57085925 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
57095926 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
57105927
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5712 $as_echo_n "checking how to print strings... " >&6; }
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5929 printf %s "checking how to print strings... " >&6; }
57135930 # Test print first, because it will be a builtin if present.
57145931 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
57155932 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
57355952 }
57365953
57375954 case $ECHO in
5738 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5739 $as_echo "printf" >&6; } ;;
5740 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5741 $as_echo "print -r" >&6; } ;;
5742 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5743 $as_echo "cat" >&6; } ;;
5955 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5956 printf "%s\n" "printf" >&6; } ;;
5957 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5958 printf "%s\n" "print -r" >&6; } ;;
5959 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5960 printf "%s\n" "cat" >&6; } ;;
57445961 esac
57455962
57465963
57565973
57575974
57585975
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5760 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5761 if ${ac_cv_path_SED+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5977 printf %s "checking for a sed that does not truncate output... " >&6; }
5978 if test ${ac_cv_path_SED+y}
5979 then :
5980 printf %s "(cached) " >&6
5981 else $as_nop
57645982 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
57655983 for ac_i in 1 2 3 4 5 6 7; do
57665984 ac_script="$ac_script$as_nl$ac_script"
57745992 for as_dir in $PATH
57755993 do
57765994 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_prog in sed gsed; do
5995 case $as_dir in #(((
5996 '') as_dir=./ ;;
5997 */) ;;
5998 *) as_dir=$as_dir/ ;;
5999 esac
6000 for ac_prog in sed gsed
6001 do
57796002 for ac_exec_ext in '' $ac_executable_extensions; do
5780 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6003 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
57816004 as_fn_executable_p "$ac_path_SED" || continue
57826005 # Check for GNU ac_path_SED and select it if it is found.
57836006 # Check for GNU $ac_path_SED
57866009 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
57876010 *)
57886011 ac_count=0
5789 $as_echo_n 0123456789 >"conftest.in"
6012 printf %s 0123456789 >"conftest.in"
57906013 while :
57916014 do
57926015 cat "conftest.in" "conftest.in" >"conftest.tmp"
57936016 mv "conftest.tmp" "conftest.in"
57946017 cp "conftest.in" "conftest.nl"
5795 $as_echo '' >> "conftest.nl"
6018 printf "%s\n" '' >> "conftest.nl"
57966019 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
57976020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
57986021 as_fn_arith $ac_count + 1 && ac_count=$as_val
58206043 fi
58216044
58226045 fi
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5824 $as_echo "$ac_cv_path_SED" >&6; }
6046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6047 printf "%s\n" "$ac_cv_path_SED" >&6; }
58256048 SED="$ac_cv_path_SED"
58266049 rm -f conftest.sed
58276050
58386061
58396062
58406063
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5842 $as_echo_n "checking for fgrep... " >&6; }
5843 if ${ac_cv_path_FGREP+:} false; then :
5844 $as_echo_n "(cached) " >&6
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6065 printf %s "checking for grep that handles long lines and -e... " >&6; }
6066 if test ${ac_cv_path_GREP+y}
6067 then :
6068 printf %s "(cached) " >&6
6069 else $as_nop
6070 if test -z "$GREP"; then
6071 ac_path_GREP_found=false
6072 # Loop through the user's path and test for each of PROGNAME-LIST
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6075 do
6076 IFS=$as_save_IFS
6077 case $as_dir in #(((
6078 '') as_dir=./ ;;
6079 */) ;;
6080 *) as_dir=$as_dir/ ;;
6081 esac
6082 for ac_prog in grep ggrep
6083 do
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6086 as_fn_executable_p "$ac_path_GREP" || continue
6087 # Check for GNU ac_path_GREP and select it if it is found.
6088 # Check for GNU $ac_path_GREP
6089 case `"$ac_path_GREP" --version 2>&1` in
6090 *GNU*)
6091 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6092 *)
6093 ac_count=0
6094 printf %s 0123456789 >"conftest.in"
6095 while :
6096 do
6097 cat "conftest.in" "conftest.in" >"conftest.tmp"
6098 mv "conftest.tmp" "conftest.in"
6099 cp "conftest.in" "conftest.nl"
6100 printf "%s\n" 'GREP' >> "conftest.nl"
6101 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6103 as_fn_arith $ac_count + 1 && ac_count=$as_val
6104 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6105 # Best one so far, save it but keep looking for a better one
6106 ac_cv_path_GREP="$ac_path_GREP"
6107 ac_path_GREP_max=$ac_count
6108 fi
6109 # 10*(2^10) chars as input seems more than enough
6110 test $ac_count -gt 10 && break
6111 done
6112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6113 esac
6114
6115 $ac_path_GREP_found && break 3
6116 done
6117 done
6118 done
6119 IFS=$as_save_IFS
6120 if test -z "$ac_cv_path_GREP"; then
6121 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6122 fi
58456123 else
6124 ac_cv_path_GREP=$GREP
6125 fi
6126
6127 fi
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6129 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6130 GREP="$ac_cv_path_GREP"
6131
6132
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6134 printf %s "checking for egrep... " >&6; }
6135 if test ${ac_cv_path_EGREP+y}
6136 then :
6137 printf %s "(cached) " >&6
6138 else $as_nop
6139 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6140 then ac_cv_path_EGREP="$GREP -E"
6141 else
6142 if test -z "$EGREP"; then
6143 ac_path_EGREP_found=false
6144 # Loop through the user's path and test for each of PROGNAME-LIST
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6147 do
6148 IFS=$as_save_IFS
6149 case $as_dir in #(((
6150 '') as_dir=./ ;;
6151 */) ;;
6152 *) as_dir=$as_dir/ ;;
6153 esac
6154 for ac_prog in egrep
6155 do
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6158 as_fn_executable_p "$ac_path_EGREP" || continue
6159 # Check for GNU ac_path_EGREP and select it if it is found.
6160 # Check for GNU $ac_path_EGREP
6161 case `"$ac_path_EGREP" --version 2>&1` in
6162 *GNU*)
6163 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6164 *)
6165 ac_count=0
6166 printf %s 0123456789 >"conftest.in"
6167 while :
6168 do
6169 cat "conftest.in" "conftest.in" >"conftest.tmp"
6170 mv "conftest.tmp" "conftest.in"
6171 cp "conftest.in" "conftest.nl"
6172 printf "%s\n" 'EGREP' >> "conftest.nl"
6173 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6175 as_fn_arith $ac_count + 1 && ac_count=$as_val
6176 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6177 # Best one so far, save it but keep looking for a better one
6178 ac_cv_path_EGREP="$ac_path_EGREP"
6179 ac_path_EGREP_max=$ac_count
6180 fi
6181 # 10*(2^10) chars as input seems more than enough
6182 test $ac_count -gt 10 && break
6183 done
6184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6185 esac
6186
6187 $ac_path_EGREP_found && break 3
6188 done
6189 done
6190 done
6191 IFS=$as_save_IFS
6192 if test -z "$ac_cv_path_EGREP"; then
6193 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6194 fi
6195 else
6196 ac_cv_path_EGREP=$EGREP
6197 fi
6198
6199 fi
6200 fi
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6202 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6203 EGREP="$ac_cv_path_EGREP"
6204
6205
6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6207 printf %s "checking for fgrep... " >&6; }
6208 if test ${ac_cv_path_FGREP+y}
6209 then :
6210 printf %s "(cached) " >&6
6211 else $as_nop
58466212 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
58476213 then ac_cv_path_FGREP="$GREP -F"
58486214 else
58536219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
58546220 do
58556221 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
5857 for ac_prog in fgrep; do
6222 case $as_dir in #(((
6223 '') as_dir=./ ;;
6224 */) ;;
6225 *) as_dir=$as_dir/ ;;
6226 esac
6227 for ac_prog in fgrep
6228 do
58586229 for ac_exec_ext in '' $ac_executable_extensions; do
5859 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6230 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
58606231 as_fn_executable_p "$ac_path_FGREP" || continue
58616232 # Check for GNU ac_path_FGREP and select it if it is found.
58626233 # Check for GNU $ac_path_FGREP
58656236 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
58666237 *)
58676238 ac_count=0
5868 $as_echo_n 0123456789 >"conftest.in"
6239 printf %s 0123456789 >"conftest.in"
58696240 while :
58706241 do
58716242 cat "conftest.in" "conftest.in" >"conftest.tmp"
58726243 mv "conftest.tmp" "conftest.in"
58736244 cp "conftest.in" "conftest.nl"
5874 $as_echo 'FGREP' >> "conftest.nl"
6245 printf "%s\n" 'FGREP' >> "conftest.nl"
58756246 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
58766247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
58776248 as_fn_arith $ac_count + 1 && ac_count=$as_val
59006271
59016272 fi
59026273 fi
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5904 $as_echo "$ac_cv_path_FGREP" >&6; }
6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6275 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
59056276 FGREP="$ac_cv_path_FGREP"
59066277
59076278
59266297
59276298
59286299 # Check whether --with-gnu-ld was given.
5929 if test "${with_gnu_ld+set}" = set; then :
6300 if test ${with_gnu_ld+y}
6301 then :
59306302 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5931 else
6303 else $as_nop
59326304 with_gnu_ld=no
59336305 fi
59346306
59356307 ac_prog=ld
59366308 if test yes = "$GCC"; then
59376309 # Check if gcc -print-prog-name=ld gives a path.
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5939 $as_echo_n "checking for ld used by $CC... " >&6; }
6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6311 printf %s "checking for ld used by $CC... " >&6; }
59406312 case $host in
59416313 *-*-mingw*)
59426314 # gcc leaves a trailing carriage return, which upsets mingw
59656337 ;;
59666338 esac
59676339 elif test yes = "$with_gnu_ld"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5969 $as_echo_n "checking for GNU ld... " >&6; }
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6341 printf %s "checking for GNU ld... " >&6; }
59706342 else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5972 $as_echo_n "checking for non-GNU ld... " >&6; }
5973 fi
5974 if ${lt_cv_path_LD+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976 else
6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6344 printf %s "checking for non-GNU ld... " >&6; }
6345 fi
6346 if test ${lt_cv_path_LD+y}
6347 then :
6348 printf %s "(cached) " >&6
6349 else $as_nop
59776350 if test -z "$LD"; then
59786351 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
59796352 for ac_dir in $PATH; do
60026375
60036376 LD=$lt_cv_path_LD
60046377 if test -n "$LD"; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6006 $as_echo "$LD" >&6; }
6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6379 printf "%s\n" "$LD" >&6; }
60076380 else
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 printf "%s\n" "no" >&6; }
60106383 fi
60116384 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6013 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6014 if ${lt_cv_prog_gnu_ld+:} false; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6386 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6387 if test ${lt_cv_prog_gnu_ld+y}
6388 then :
6389 printf %s "(cached) " >&6
6390 else $as_nop
60176391 # I'd rather use --version here, but apparently some GNU lds only accept -v.
60186392 case `$LD -v 2>&1 </dev/null` in
60196393 *GNU* | *'with BFD'*)
60246398 ;;
60256399 esac
60266400 fi
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6028 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6402 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
60296403 with_gnu_ld=$lt_cv_prog_gnu_ld
60306404
60316405
60366410
60376411
60386412
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6040 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6041 if ${lt_cv_path_NM+:} false; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6414 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6415 if test ${lt_cv_path_NM+y}
6416 then :
6417 printf %s "(cached) " >&6
6418 else $as_nop
60446419 if test -n "$NM"; then
60456420 # Let the user override the test.
60466421 lt_cv_path_NM=$NM
60906465 : ${lt_cv_path_NM=no}
60916466 fi
60926467 fi
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6094 $as_echo "$lt_cv_path_NM" >&6; }
6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6469 printf "%s\n" "$lt_cv_path_NM" >&6; }
60956470 if test no != "$lt_cv_path_NM"; then
60966471 NM=$lt_cv_path_NM
60976472 else
61046479 do
61056480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
61066481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if ${ac_cv_prog_DUMPBIN+:} false; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 printf %s "checking for $ac_word... " >&6; }
6484 if test ${ac_cv_prog_DUMPBIN+y}
6485 then :
6486 printf %s "(cached) " >&6
6487 else $as_nop
61126488 if test -n "$DUMPBIN"; then
61136489 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
61146490 else
61166492 for as_dir in $PATH
61176493 do
61186494 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
6495 case $as_dir in #(((
6496 '') as_dir=./ ;;
6497 */) ;;
6498 *) as_dir=$as_dir/ ;;
6499 esac
61206500 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
61226502 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
61246504 break 2
61256505 fi
61266506 done
61316511 fi
61326512 DUMPBIN=$ac_cv_prog_DUMPBIN
61336513 if test -n "$DUMPBIN"; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6135 $as_echo "$DUMPBIN" >&6; }
6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6515 printf "%s\n" "$DUMPBIN" >&6; }
61366516 else
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 $as_echo "no" >&6; }
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 printf "%s\n" "no" >&6; }
61396519 fi
61406520
61416521
61486528 do
61496529 # Extract the first word of "$ac_prog", so it can be a program name with args.
61506530 set dummy $ac_prog; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532 printf %s "checking for $ac_word... " >&6; }
6533 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6534 then :
6535 printf %s "(cached) " >&6
6536 else $as_nop
61566537 if test -n "$ac_ct_DUMPBIN"; then
61576538 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
61586539 else
61606541 for as_dir in $PATH
61616542 do
61626543 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6544 case $as_dir in #(((
6545 '') as_dir=./ ;;
6546 */) ;;
6547 *) as_dir=$as_dir/ ;;
6548 esac
61646549 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
61666551 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
61686553 break 2
61696554 fi
61706555 done
61756560 fi
61766561 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
61776562 if test -n "$ac_ct_DUMPBIN"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6179 $as_echo "$ac_ct_DUMPBIN" >&6; }
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6564 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
61806565 else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 printf "%s\n" "no" >&6; }
61836568 fi
61846569
61856570
61916576 else
61926577 case $cross_compiling:$ac_tool_warned in
61936578 yes:)
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
61966581 ac_tool_warned=yes ;;
61976582 esac
61986583 DUMPBIN=$ac_ct_DUMPBIN
62206605
62216606
62226607
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6224 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6225 if ${lt_cv_nm_interface+:} false; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6609 printf %s "checking the name lister ($NM) interface... " >&6; }
6610 if test ${lt_cv_nm_interface+y}
6611 then :
6612 printf %s "(cached) " >&6
6613 else $as_nop
62286614 lt_cv_nm_interface="BSD nm"
62296615 echo "int some_variable = 0;" > conftest.$ac_ext
62306616 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
62406626 fi
62416627 rm -f conftest*
62426628 fi
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6244 $as_echo "$lt_cv_nm_interface" >&6; }
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6630 printf "%s\n" "$lt_cv_nm_interface" >&6; }
62456631
62466632 # find the maximum length of command line arguments
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6248 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6249 if ${lt_cv_sys_max_cmd_len+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6634 printf %s "checking the maximum length of command line arguments... " >&6; }
6635 if test ${lt_cv_sys_max_cmd_len+y}
6636 then :
6637 printf %s "(cached) " >&6
6638 else $as_nop
62526639 i=0
62536640 teststring=ABCD
62546641
63756762 fi
63766763
63776764 if test -n "$lt_cv_sys_max_cmd_len"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6379 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6766 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
63806767 else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6382 $as_echo "none" >&6; }
6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6769 printf "%s\n" "none" >&6; }
63836770 fi
63846771 max_cmd_len=$lt_cv_sys_max_cmd_len
63856772
64236810
64246811
64256812
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6427 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6428 if ${lt_cv_to_host_file_cmd+:} false; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6814 printf %s "checking how to convert $build file names to $host format... " >&6; }
6815 if test ${lt_cv_to_host_file_cmd+y}
6816 then :
6817 printf %s "(cached) " >&6
6818 else $as_nop
64316819 case $host in
64326820 *-*-mingw* )
64336821 case $build in
64636851 fi
64646852
64656853 to_host_file_cmd=$lt_cv_to_host_file_cmd
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6467 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6468
6469
6470
6471
6472
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6474 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6475 if ${lt_cv_to_tool_file_cmd+:} false; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6855 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6856
6857
6858
6859
6860
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6862 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6863 if test ${lt_cv_to_tool_file_cmd+y}
6864 then :
6865 printf %s "(cached) " >&6
6866 else $as_nop
64786867 #assume ordinary cross tools, or native build.
64796868 lt_cv_to_tool_file_cmd=func_convert_file_noop
64806869 case $host in
64906879 fi
64916880
64926881 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6494 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6495
6496
6497
6498
6499
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6501 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6502 if ${lt_cv_ld_reload_flag+:} false; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6883 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6884
6885
6886
6887
6888
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6890 printf %s "checking for $LD option to reload object files... " >&6; }
6891 if test ${lt_cv_ld_reload_flag+y}
6892 then :
6893 printf %s "(cached) " >&6
6894 else $as_nop
65056895 lt_cv_ld_reload_flag='-r'
65066896 fi
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6508 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6898 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
65096899 reload_flag=$lt_cv_ld_reload_flag
65106900 case $reload_flag in
65116901 "" | " "*) ;;
65386928 if test -n "$ac_tool_prefix"; then
65396929 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
65406930 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if ${ac_cv_prog_OBJDUMP+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 printf %s "checking for $ac_word... " >&6; }
6933 if test ${ac_cv_prog_OBJDUMP+y}
6934 then :
6935 printf %s "(cached) " >&6
6936 else $as_nop
65466937 if test -n "$OBJDUMP"; then
65476938 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
65486939 else
65506941 for as_dir in $PATH
65516942 do
65526943 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6944 case $as_dir in #(((
6945 '') as_dir=./ ;;
6946 */) ;;
6947 *) as_dir=$as_dir/ ;;
6948 esac
65546949 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
65566951 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
65586953 break 2
65596954 fi
65606955 done
65656960 fi
65666961 OBJDUMP=$ac_cv_prog_OBJDUMP
65676962 if test -n "$OBJDUMP"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6569 $as_echo "$OBJDUMP" >&6; }
6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6964 printf "%s\n" "$OBJDUMP" >&6; }
65706965 else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 printf "%s\n" "no" >&6; }
65736968 fi
65746969
65756970
65786973 ac_ct_OBJDUMP=$OBJDUMP
65796974 # Extract the first word of "objdump", so it can be a program name with args.
65806975 set dummy objdump; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 printf %s "checking for $ac_word... " >&6; }
6978 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6979 then :
6980 printf %s "(cached) " >&6
6981 else $as_nop
65866982 if test -n "$ac_ct_OBJDUMP"; then
65876983 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
65886984 else
65906986 for as_dir in $PATH
65916987 do
65926988 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6989 case $as_dir in #(((
6990 '') as_dir=./ ;;
6991 */) ;;
6992 *) as_dir=$as_dir/ ;;
6993 esac
65946994 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
65966996 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
65986998 break 2
65996999 fi
66007000 done
66057005 fi
66067006 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
66077007 if test -n "$ac_ct_OBJDUMP"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6609 $as_echo "$ac_ct_OBJDUMP" >&6; }
7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7009 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
66107010 else
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 printf "%s\n" "no" >&6; }
66137013 fi
66147014
66157015 if test "x$ac_ct_OBJDUMP" = x; then
66177017 else
66187018 case $cross_compiling:$ac_tool_warned in
66197019 yes:)
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
66227022 ac_tool_warned=yes ;;
66237023 esac
66247024 OBJDUMP=$ac_ct_OBJDUMP
66377037
66387038
66397039
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6641 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6642 if ${lt_cv_deplibs_check_method+:} false; then :
6643 $as_echo_n "(cached) " >&6
6644 else
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7041 printf %s "checking how to recognize dependent libraries... " >&6; }
7042 if test ${lt_cv_deplibs_check_method+y}
7043 then :
7044 printf %s "(cached) " >&6
7045 else $as_nop
66457046 lt_cv_file_magic_cmd='$MAGIC_CMD'
66467047 lt_cv_file_magic_test_file=
66477048 lt_cv_deplibs_check_method='unknown'
68377238 esac
68387239
68397240 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6841 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7242 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
68427243
68437244 file_magic_glob=
68447245 want_nocaseglob=no
68827283 if test -n "$ac_tool_prefix"; then
68837284 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
68847285 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_DLLTOOL+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
7286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 printf %s "checking for $ac_word... " >&6; }
7288 if test ${ac_cv_prog_DLLTOOL+y}
7289 then :
7290 printf %s "(cached) " >&6
7291 else $as_nop
68907292 if test -n "$DLLTOOL"; then
68917293 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
68927294 else
68947296 for as_dir in $PATH
68957297 do
68967298 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
7299 case $as_dir in #(((
7300 '') as_dir=./ ;;
7301 */) ;;
7302 *) as_dir=$as_dir/ ;;
7303 esac
68987304 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
69007306 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
69027308 break 2
69037309 fi
69047310 done
69097315 fi
69107316 DLLTOOL=$ac_cv_prog_DLLTOOL
69117317 if test -n "$DLLTOOL"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6913 $as_echo "$DLLTOOL" >&6; }
7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7319 printf "%s\n" "$DLLTOOL" >&6; }
69147320 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 printf "%s\n" "no" >&6; }
69177323 fi
69187324
69197325
69227328 ac_ct_DLLTOOL=$DLLTOOL
69237329 # Extract the first word of "dlltool", so it can be a program name with args.
69247330 set dummy dlltool; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6928 $as_echo_n "(cached) " >&6
6929 else
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332 printf %s "checking for $ac_word... " >&6; }
7333 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7334 then :
7335 printf %s "(cached) " >&6
7336 else $as_nop
69307337 if test -n "$ac_ct_DLLTOOL"; then
69317338 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
69327339 else
69347341 for as_dir in $PATH
69357342 do
69367343 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
7344 case $as_dir in #(((
7345 '') as_dir=./ ;;
7346 */) ;;
7347 *) as_dir=$as_dir/ ;;
7348 esac
69387349 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
69407351 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
69427353 break 2
69437354 fi
69447355 done
69497360 fi
69507361 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
69517362 if test -n "$ac_ct_DLLTOOL"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6953 $as_echo "$ac_ct_DLLTOOL" >&6; }
7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7364 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
69547365 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 printf "%s\n" "no" >&6; }
69577368 fi
69587369
69597370 if test "x$ac_ct_DLLTOOL" = x; then
69617372 else
69627373 case $cross_compiling:$ac_tool_warned in
69637374 yes:)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
69667377 ac_tool_warned=yes ;;
69677378 esac
69687379 DLLTOOL=$ac_ct_DLLTOOL
69827393
69837394
69847395
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6986 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6987 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989 else
7396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7397 printf %s "checking how to associate runtime and link libraries... " >&6; }
7398 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7399 then :
7400 printf %s "(cached) " >&6
7401 else $as_nop
69907402 lt_cv_sharedlib_from_linklib_cmd='unknown'
69917403
69927404 case $host_os in
70097421 esac
70107422
70117423 fi
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7013 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7425 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
70147426 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
70157427 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
70167428
70257437 do
70267438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
70277439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_AR+:} false; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441 printf %s "checking for $ac_word... " >&6; }
7442 if test ${ac_cv_prog_AR+y}
7443 then :
7444 printf %s "(cached) " >&6
7445 else $as_nop
70337446 if test -n "$AR"; then
70347447 ac_cv_prog_AR="$AR" # Let the user override the test.
70357448 else
70377450 for as_dir in $PATH
70387451 do
70397452 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7453 case $as_dir in #(((
7454 '') as_dir=./ ;;
7455 */) ;;
7456 *) as_dir=$as_dir/ ;;
7457 esac
70417458 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
70437460 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
70457462 break 2
70467463 fi
70477464 done
70527469 fi
70537470 AR=$ac_cv_prog_AR
70547471 if test -n "$AR"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7056 $as_echo "$AR" >&6; }
7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7473 printf "%s\n" "$AR" >&6; }
70577474 else
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 printf "%s\n" "no" >&6; }
70607477 fi
70617478
70627479
70697486 do
70707487 # Extract the first word of "$ac_prog", so it can be a program name with args.
70717488 set dummy $ac_prog; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 printf %s "checking for $ac_word... " >&6; }
7491 if test ${ac_cv_prog_ac_ct_AR+y}
7492 then :
7493 printf %s "(cached) " >&6
7494 else $as_nop
70777495 if test -n "$ac_ct_AR"; then
70787496 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
70797497 else
70817499 for as_dir in $PATH
70827500 do
70837501 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7502 case $as_dir in #(((
7503 '') as_dir=./ ;;
7504 */) ;;
7505 *) as_dir=$as_dir/ ;;
7506 esac
70857507 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
70877509 ac_cv_prog_ac_ct_AR="$ac_prog"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
70897511 break 2
70907512 fi
70917513 done
70967518 fi
70977519 ac_ct_AR=$ac_cv_prog_ac_ct_AR
70987520 if test -n "$ac_ct_AR"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7100 $as_echo "$ac_ct_AR" >&6; }
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7522 printf "%s\n" "$ac_ct_AR" >&6; }
71017523 else
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103 $as_echo "no" >&6; }
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 printf "%s\n" "no" >&6; }
71047526 fi
71057527
71067528
71127534 else
71137535 case $cross_compiling:$ac_tool_warned in
71147536 yes:)
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
71177539 ac_tool_warned=yes ;;
71187540 esac
71197541 AR=$ac_ct_AR
71337555
71347556
71357557
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7137 $as_echo_n "checking for archiver @FILE support... " >&6; }
7138 if ${lt_cv_ar_at_file+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7559 printf %s "checking for archiver @FILE support... " >&6; }
7560 if test ${lt_cv_ar_at_file+y}
7561 then :
7562 printf %s "(cached) " >&6
7563 else $as_nop
71417564 lt_cv_ar_at_file=no
71427565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71437566 /* end confdefs.h. */
71447567
71457568 int
7146 main ()
7569 main (void)
71477570 {
71487571
71497572 ;
71507573 return 0;
71517574 }
71527575 _ACEOF
7153 if ac_fn_c_try_compile "$LINENO"; then :
7576 if ac_fn_c_try_compile "$LINENO"
7577 then :
71547578 echo conftest.$ac_objext > conftest.lst
71557579 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
71567580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
71577581 (eval $lt_ar_try) 2>&5
71587582 ac_status=$?
7159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71607584 test $ac_status = 0; }
71617585 if test 0 -eq "$ac_status"; then
71627586 # Ensure the archiver fails upon bogus file names.
71647588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
71657589 (eval $lt_ar_try) 2>&5
71667590 ac_status=$?
7167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71687592 test $ac_status = 0; }
71697593 if test 0 -ne "$ac_status"; then
71707594 lt_cv_ar_at_file=@
71737597 rm -f conftest.* libconftest.a
71747598
71757599 fi
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177
7178 fi
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7180 $as_echo "$lt_cv_ar_at_file" >&6; }
7600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7601
7602 fi
7603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7604 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
71817605
71827606 if test no = "$lt_cv_ar_at_file"; then
71837607 archiver_list_spec=
71947618 if test -n "$ac_tool_prefix"; then
71957619 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
71967620 set dummy ${ac_tool_prefix}strip; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_STRIP+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622 printf %s "checking for $ac_word... " >&6; }
7623 if test ${ac_cv_prog_STRIP+y}
7624 then :
7625 printf %s "(cached) " >&6
7626 else $as_nop
72027627 if test -n "$STRIP"; then
72037628 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
72047629 else
72067631 for as_dir in $PATH
72077632 do
72087633 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7634 case $as_dir in #(((
7635 '') as_dir=./ ;;
7636 */) ;;
7637 *) as_dir=$as_dir/ ;;
7638 esac
72107639 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
72127641 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
72147643 break 2
72157644 fi
72167645 done
72217650 fi
72227651 STRIP=$ac_cv_prog_STRIP
72237652 if test -n "$STRIP"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7225 $as_echo "$STRIP" >&6; }
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7654 printf "%s\n" "$STRIP" >&6; }
72267655 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 printf "%s\n" "no" >&6; }
72297658 fi
72307659
72317660
72347663 ac_ct_STRIP=$STRIP
72357664 # Extract the first word of "strip", so it can be a program name with args.
72367665 set dummy strip; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 printf %s "checking for $ac_word... " >&6; }
7668 if test ${ac_cv_prog_ac_ct_STRIP+y}
7669 then :
7670 printf %s "(cached) " >&6
7671 else $as_nop
72427672 if test -n "$ac_ct_STRIP"; then
72437673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
72447674 else
72467676 for as_dir in $PATH
72477677 do
72487678 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7679 case $as_dir in #(((
7680 '') as_dir=./ ;;
7681 */) ;;
7682 *) as_dir=$as_dir/ ;;
7683 esac
72507684 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
72527686 ac_cv_prog_ac_ct_STRIP="strip"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
72547688 break 2
72557689 fi
72567690 done
72617695 fi
72627696 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
72637697 if test -n "$ac_ct_STRIP"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7265 $as_echo "$ac_ct_STRIP" >&6; }
7698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7699 printf "%s\n" "$ac_ct_STRIP" >&6; }
72667700 else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 printf "%s\n" "no" >&6; }
72697703 fi
72707704
72717705 if test "x$ac_ct_STRIP" = x; then
72737707 else
72747708 case $cross_compiling:$ac_tool_warned in
72757709 yes:)
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
72787712 ac_tool_warned=yes ;;
72797713 esac
72807714 STRIP=$ac_ct_STRIP
72937727 if test -n "$ac_tool_prefix"; then
72947728 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
72957729 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_RANLIB+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 printf %s "checking for $ac_word... " >&6; }
7732 if test ${ac_cv_prog_RANLIB+y}
7733 then :
7734 printf %s "(cached) " >&6
7735 else $as_nop
73017736 if test -n "$RANLIB"; then
73027737 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
73037738 else
73057740 for as_dir in $PATH
73067741 do
73077742 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7743 case $as_dir in #(((
7744 '') as_dir=./ ;;
7745 */) ;;
7746 *) as_dir=$as_dir/ ;;
7747 esac
73097748 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
73117750 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
73137752 break 2
73147753 fi
73157754 done
73207759 fi
73217760 RANLIB=$ac_cv_prog_RANLIB
73227761 if test -n "$RANLIB"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7324 $as_echo "$RANLIB" >&6; }
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7763 printf "%s\n" "$RANLIB" >&6; }
73257764 else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 printf "%s\n" "no" >&6; }
73287767 fi
73297768
73307769
73337772 ac_ct_RANLIB=$RANLIB
73347773 # Extract the first word of "ranlib", so it can be a program name with args.
73357774 set dummy ranlib; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 printf %s "checking for $ac_word... " >&6; }
7777 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7778 then :
7779 printf %s "(cached) " >&6
7780 else $as_nop
73417781 if test -n "$ac_ct_RANLIB"; then
73427782 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
73437783 else
73457785 for as_dir in $PATH
73467786 do
73477787 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7788 case $as_dir in #(((
7789 '') as_dir=./ ;;
7790 */) ;;
7791 *) as_dir=$as_dir/ ;;
7792 esac
73497793 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
73517795 ac_cv_prog_ac_ct_RANLIB="ranlib"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
73537797 break 2
73547798 fi
73557799 done
73607804 fi
73617805 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
73627806 if test -n "$ac_ct_RANLIB"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7364 $as_echo "$ac_ct_RANLIB" >&6; }
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7808 printf "%s\n" "$ac_ct_RANLIB" >&6; }
73657809 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 printf "%s\n" "no" >&6; }
73687812 fi
73697813
73707814 if test "x$ac_ct_RANLIB" = x; then
73727816 else
73737817 case $cross_compiling:$ac_tool_warned in
73747818 yes:)
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7820 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
73777821 ac_tool_warned=yes ;;
73787822 esac
73797823 RANLIB=$ac_ct_RANLIB
74627906
74637907
74647908 # Check for command to grab the raw symbol name followed by C symbol from nm.
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7466 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7467 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7910 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7911 if test ${lt_cv_sys_global_symbol_pipe+y}
7912 then :
7913 printf %s "(cached) " >&6
7914 else $as_nop
74707915
74717916 # These are sane defaults that work on at least a few old systems.
74727917 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
76188063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
76198064 (eval $ac_compile) 2>&5
76208065 ac_status=$?
7621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76228067 test $ac_status = 0; }; then
76238068 # Now try to grab the symbols.
76248069 nlist=conftest.nm
76918136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
76928137 (eval $ac_link) 2>&5
76938138 ac_status=$?
7694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76958140 test $ac_status = 0; } && test -s conftest$ac_exeext; then
76968141 pipe_works=yes
76978142 fi
77268171 lt_cv_sys_global_symbol_to_cdecl=
77278172 fi
77288173 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7730 $as_echo "failed" >&6; }
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8175 printf "%s\n" "failed" >&6; }
77318176 else
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7733 $as_echo "ok" >&6; }
8177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8178 printf "%s\n" "ok" >&6; }
77348179 fi
77358180
77368181 # Response file support.
77768221
77778222
77788223
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7780 $as_echo_n "checking for sysroot... " >&6; }
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8225 printf %s "checking for sysroot... " >&6; }
77818226
77828227 # Check whether --with-sysroot was given.
7783 if test "${with_sysroot+set}" = set; then :
8228 if test ${with_sysroot+y}
8229 then :
77848230 withval=$with_sysroot;
7785 else
8231 else $as_nop
77868232 with_sysroot=no
77878233 fi
77888234
78008246 no|'')
78018247 ;; #(
78028248 *)
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7804 $as_echo "$with_sysroot" >&6; }
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8250 printf "%s\n" "$with_sysroot" >&6; }
78058251 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
78068252 ;;
78078253 esac
78088254
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7810 $as_echo "${lt_sysroot:-no}" >&6; }
7811
7812
7813
7814
7815
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7817 $as_echo_n "checking for a working dd... " >&6; }
7818 if ${ac_cv_path_lt_DD+:} false; then :
7819 $as_echo_n "(cached) " >&6
7820 else
8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8256 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8257
8258
8259
8260
8261
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8263 printf %s "checking for a working dd... " >&6; }
8264 if test ${ac_cv_path_lt_DD+y}
8265 then :
8266 printf %s "(cached) " >&6
8267 else $as_nop
78218268 printf 0123456789abcdef0123456789abcdef >conftest.i
78228269 cat conftest.i conftest.i >conftest2.i
78238270 : ${lt_DD:=$DD}
78288275 for as_dir in $PATH
78298276 do
78308277 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_prog in dd; do
8278 case $as_dir in #(((
8279 '') as_dir=./ ;;
8280 */) ;;
8281 *) as_dir=$as_dir/ ;;
8282 esac
8283 for ac_prog in dd
8284 do
78338285 for ac_exec_ext in '' $ac_executable_extensions; do
7834 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8286 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
78358287 as_fn_executable_p "$ac_path_lt_DD" || continue
78368288 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
78378289 cmp -s conftest.i conftest.out \
78518303
78528304 rm -f conftest.i conftest2.i conftest.out
78538305 fi
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7855 $as_echo "$ac_cv_path_lt_DD" >&6; }
7856
7857
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7859 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7860 if ${lt_cv_truncate_bin+:} false; then :
7861 $as_echo_n "(cached) " >&6
7862 else
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8307 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8308
8309
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8311 printf %s "checking how to truncate binary pipes... " >&6; }
8312 if test ${lt_cv_truncate_bin+y}
8313 then :
8314 printf %s "(cached) " >&6
8315 else $as_nop
78638316 printf 0123456789abcdef0123456789abcdef >conftest.i
78648317 cat conftest.i conftest.i >conftest2.i
78658318 lt_cv_truncate_bin=
78708323 rm -f conftest.i conftest2.i conftest.out
78718324 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
78728325 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7874 $as_echo "$lt_cv_truncate_bin" >&6; }
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8327 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
78758328
78768329
78778330
78948347 }
78958348
78968349 # Check whether --enable-libtool-lock was given.
7897 if test "${enable_libtool_lock+set}" = set; then :
8350 if test ${enable_libtool_lock+y}
8351 then :
78988352 enableval=$enable_libtool_lock;
78998353 fi
79008354
79108364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
79118365 (eval $ac_compile) 2>&5
79128366 ac_status=$?
7913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79148368 test $ac_status = 0; }; then
79158369 case `/usr/bin/file conftest.$ac_objext` in
79168370 *ELF-32*)
79308384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
79318385 (eval $ac_compile) 2>&5
79328386 ac_status=$?
7933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79348388 test $ac_status = 0; }; then
79358389 if test yes = "$lt_cv_prog_gnu_ld"; then
79368390 case `/usr/bin/file conftest.$ac_objext` in
79688422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
79698423 (eval $ac_compile) 2>&5
79708424 ac_status=$?
7971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79728426 test $ac_status = 0; }; then
79738427 emul=elf
79748428 case `/usr/bin/file conftest.$ac_objext` in
80098463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
80108464 (eval $ac_compile) 2>&5
80118465 ac_status=$?
8012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80138467 test $ac_status = 0; }; then
80148468 case `/usr/bin/file conftest.o` in
80158469 *32-bit*)
80728526 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
80738527 SAVE_CFLAGS=$CFLAGS
80748528 CFLAGS="$CFLAGS -belf"
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8076 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8077 if ${lt_cv_cc_needs_belf+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8530 printf %s "checking whether the C compiler needs -belf... " >&6; }
8531 if test ${lt_cv_cc_needs_belf+y}
8532 then :
8533 printf %s "(cached) " >&6
8534 else $as_nop
80808535 ac_ext=c
80818536 ac_cpp='$CPP $CPPFLAGS'
80828537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
80878542 /* end confdefs.h. */
80888543
80898544 int
8090 main ()
8545 main (void)
80918546 {
80928547
80938548 ;
80948549 return 0;
80958550 }
80968551 _ACEOF
8097 if ac_fn_c_try_link "$LINENO"; then :
8552 if ac_fn_c_try_link "$LINENO"
8553 then :
80988554 lt_cv_cc_needs_belf=yes
8099 else
8555 else $as_nop
81008556 lt_cv_cc_needs_belf=no
81018557 fi
8102 rm -f core conftest.err conftest.$ac_objext \
8558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
81038559 conftest$ac_exeext conftest.$ac_ext
81048560 ac_ext=c
81058561 ac_cpp='$CPP $CPPFLAGS'
81088564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
81098565
81108566 fi
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8112 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8568 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
81138569 if test yes != "$lt_cv_cc_needs_belf"; then
81148570 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
81158571 CFLAGS=$SAVE_CFLAGS
81228578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
81238579 (eval $ac_compile) 2>&5
81248580 ac_status=$?
8125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81268582 test $ac_status = 0; }; then
81278583 case `/usr/bin/file conftest.o` in
81288584 *64-bit*)
81598615 if test -n "$ac_tool_prefix"; then
81608616 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
81618617 set dummy ${ac_tool_prefix}mt; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619 printf %s "checking for $ac_word... " >&6; }
8620 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8621 then :
8622 printf %s "(cached) " >&6
8623 else $as_nop
81678624 if test -n "$MANIFEST_TOOL"; then
81688625 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
81698626 else
81718628 for as_dir in $PATH
81728629 do
81738630 IFS=$as_save_IFS
8174 test -z "$as_dir" && as_dir=.
8631 case $as_dir in #(((
8632 '') as_dir=./ ;;
8633 */) ;;
8634 *) as_dir=$as_dir/ ;;
8635 esac
81758636 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
81778638 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
81798640 break 2
81808641 fi
81818642 done
81868647 fi
81878648 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
81888649 if test -n "$MANIFEST_TOOL"; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8190 $as_echo "$MANIFEST_TOOL" >&6; }
8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8651 printf "%s\n" "$MANIFEST_TOOL" >&6; }
81918652 else
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 $as_echo "no" >&6; }
8653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 printf "%s\n" "no" >&6; }
81948655 fi
81958656
81968657
81998660 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
82008661 # Extract the first word of "mt", so it can be a program name with args.
82018662 set dummy mt; ac_word=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664 printf %s "checking for $ac_word... " >&6; }
8665 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8666 then :
8667 printf %s "(cached) " >&6
8668 else $as_nop
82078669 if test -n "$ac_ct_MANIFEST_TOOL"; then
82088670 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
82098671 else
82118673 for as_dir in $PATH
82128674 do
82138675 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
8676 case $as_dir in #(((
8677 '') as_dir=./ ;;
8678 */) ;;
8679 *) as_dir=$as_dir/ ;;
8680 esac
82158681 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
82178683 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
82198685 break 2
82208686 fi
82218687 done
82268692 fi
82278693 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
82288694 if test -n "$ac_ct_MANIFEST_TOOL"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8230 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8696 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
82318697 else
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233 $as_echo "no" >&6; }
8698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699 printf "%s\n" "no" >&6; }
82348700 fi
82358701
82368702 if test "x$ac_ct_MANIFEST_TOOL" = x; then
82388704 else
82398705 case $cross_compiling:$ac_tool_warned in
82408706 yes:)
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8708 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
82438709 ac_tool_warned=yes ;;
82448710 esac
82458711 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
82498715 fi
82508716
82518717 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8253 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8254 if ${lt_cv_path_mainfest_tool+:} false; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8719 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8720 if test ${lt_cv_path_mainfest_tool+y}
8721 then :
8722 printf %s "(cached) " >&6
8723 else $as_nop
82578724 lt_cv_path_mainfest_tool=no
82588725 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
82598726 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
82638730 fi
82648731 rm -f conftest*
82658732 fi
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8267 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8734 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
82688735 if test yes != "$lt_cv_path_mainfest_tool"; then
82698736 MANIFEST_TOOL=:
82708737 fi
82798746 if test -n "$ac_tool_prefix"; then
82808747 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
82818748 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8750 printf %s "checking for $ac_word... " >&6; }
8751 if test ${ac_cv_prog_DSYMUTIL+y}
8752 then :
8753 printf %s "(cached) " >&6
8754 else $as_nop
82878755 if test -n "$DSYMUTIL"; then
82888756 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
82898757 else
82918759 for as_dir in $PATH
82928760 do
82938761 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
8762 case $as_dir in #(((
8763 '') as_dir=./ ;;
8764 */) ;;
8765 *) as_dir=$as_dir/ ;;
8766 esac
82958767 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
82978769 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
82998771 break 2
83008772 fi
83018773 done
83068778 fi
83078779 DSYMUTIL=$ac_cv_prog_DSYMUTIL
83088780 if test -n "$DSYMUTIL"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8310 $as_echo "$DSYMUTIL" >&6; }
8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8782 printf "%s\n" "$DSYMUTIL" >&6; }
83118783 else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785 printf "%s\n" "no" >&6; }
83148786 fi
83158787
83168788
83198791 ac_ct_DSYMUTIL=$DSYMUTIL
83208792 # Extract the first word of "dsymutil", so it can be a program name with args.
83218793 set dummy dsymutil; ac_word=$2
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323 $as_echo_n "checking for $ac_word... " >&6; }
8324 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795 printf %s "checking for $ac_word... " >&6; }
8796 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8797 then :
8798 printf %s "(cached) " >&6
8799 else $as_nop
83278800 if test -n "$ac_ct_DSYMUTIL"; then
83288801 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
83298802 else
83318804 for as_dir in $PATH
83328805 do
83338806 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
8807 case $as_dir in #(((
8808 '') as_dir=./ ;;
8809 */) ;;
8810 *) as_dir=$as_dir/ ;;
8811 esac
83358812 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
83378814 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
83398816 break 2
83408817 fi
83418818 done
83468823 fi
83478824 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
83488825 if test -n "$ac_ct_DSYMUTIL"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8350 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8827 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
83518828 else
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 printf "%s\n" "no" >&6; }
83548831 fi
83558832
83568833 if test "x$ac_ct_DSYMUTIL" = x; then
83588835 else
83598836 case $cross_compiling:$ac_tool_warned in
83608837 yes:)
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8839 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
83638840 ac_tool_warned=yes ;;
83648841 esac
83658842 DSYMUTIL=$ac_ct_DSYMUTIL
83718848 if test -n "$ac_tool_prefix"; then
83728849 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
83738850 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if ${ac_cv_prog_NMEDIT+:} false; then :
8377 $as_echo_n "(cached) " >&6
8378 else
8851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8852 printf %s "checking for $ac_word... " >&6; }
8853 if test ${ac_cv_prog_NMEDIT+y}
8854 then :
8855 printf %s "(cached) " >&6
8856 else $as_nop
83798857 if test -n "$NMEDIT"; then
83808858 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
83818859 else
83838861 for as_dir in $PATH
83848862 do
83858863 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
8864 case $as_dir in #(((
8865 '') as_dir=./ ;;
8866 */) ;;
8867 *) as_dir=$as_dir/ ;;
8868 esac
83878869 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8870 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
83898871 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
83918873 break 2
83928874 fi
83938875 done
83988880 fi
83998881 NMEDIT=$ac_cv_prog_NMEDIT
84008882 if test -n "$NMEDIT"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8402 $as_echo "$NMEDIT" >&6; }
8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8884 printf "%s\n" "$NMEDIT" >&6; }
84038885 else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 printf "%s\n" "no" >&6; }
84068888 fi
84078889
84088890
84118893 ac_ct_NMEDIT=$NMEDIT
84128894 # Extract the first word of "nmedit", so it can be a program name with args.
84138895 set dummy nmedit; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 printf %s "checking for $ac_word... " >&6; }
8898 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8899 then :
8900 printf %s "(cached) " >&6
8901 else $as_nop
84198902 if test -n "$ac_ct_NMEDIT"; then
84208903 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
84218904 else
84238906 for as_dir in $PATH
84248907 do
84258908 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
8909 case $as_dir in #(((
8910 '') as_dir=./ ;;
8911 */) ;;
8912 *) as_dir=$as_dir/ ;;
8913 esac
84278914 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
84298916 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
84318918 break 2
84328919 fi
84338920 done
84388925 fi
84398926 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
84408927 if test -n "$ac_ct_NMEDIT"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8442 $as_echo "$ac_ct_NMEDIT" >&6; }
8928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8929 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
84438930 else
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 printf "%s\n" "no" >&6; }
84468933 fi
84478934
84488935 if test "x$ac_ct_NMEDIT" = x; then
84508937 else
84518938 case $cross_compiling:$ac_tool_warned in
84528939 yes:)
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8941 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
84558942 ac_tool_warned=yes ;;
84568943 esac
84578944 NMEDIT=$ac_ct_NMEDIT
84638950 if test -n "$ac_tool_prefix"; then
84648951 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
84658952 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if ${ac_cv_prog_LIPO+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8954 printf %s "checking for $ac_word... " >&6; }
8955 if test ${ac_cv_prog_LIPO+y}
8956 then :
8957 printf %s "(cached) " >&6
8958 else $as_nop
84718959 if test -n "$LIPO"; then
84728960 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
84738961 else
84758963 for as_dir in $PATH
84768964 do
84778965 IFS=$as_save_IFS
8478 test -z "$as_dir" && as_dir=.
8966 case $as_dir in #(((
8967 '') as_dir=./ ;;
8968 */) ;;
8969 *) as_dir=$as_dir/ ;;
8970 esac
84798971 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
84818973 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
84838975 break 2
84848976 fi
84858977 done
84908982 fi
84918983 LIPO=$ac_cv_prog_LIPO
84928984 if test -n "$LIPO"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8494 $as_echo "$LIPO" >&6; }
8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8986 printf "%s\n" "$LIPO" >&6; }
84958987 else
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 printf "%s\n" "no" >&6; }
84988990 fi
84998991
85008992
85038995 ac_ct_LIPO=$LIPO
85048996 # Extract the first word of "lipo", so it can be a program name with args.
85058997 set dummy lipo; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8999 printf %s "checking for $ac_word... " >&6; }
9000 if test ${ac_cv_prog_ac_ct_LIPO+y}
9001 then :
9002 printf %s "(cached) " >&6
9003 else $as_nop
85119004 if test -n "$ac_ct_LIPO"; then
85129005 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
85139006 else
85159008 for as_dir in $PATH
85169009 do
85179010 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
9011 case $as_dir in #(((
9012 '') as_dir=./ ;;
9013 */) ;;
9014 *) as_dir=$as_dir/ ;;
9015 esac
85199016 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
85219018 ac_cv_prog_ac_ct_LIPO="lipo"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
85239020 break 2
85249021 fi
85259022 done
85309027 fi
85319028 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
85329029 if test -n "$ac_ct_LIPO"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8534 $as_echo "$ac_ct_LIPO" >&6; }
9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9031 printf "%s\n" "$ac_ct_LIPO" >&6; }
85359032 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034 printf "%s\n" "no" >&6; }
85389035 fi
85399036
85409037 if test "x$ac_ct_LIPO" = x; then
85429039 else
85439040 case $cross_compiling:$ac_tool_warned in
85449041 yes:)
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9043 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
85479044 ac_tool_warned=yes ;;
85489045 esac
85499046 LIPO=$ac_ct_LIPO
85559052 if test -n "$ac_tool_prefix"; then
85569053 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
85579054 set dummy ${ac_tool_prefix}otool; ac_word=$2
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 $as_echo_n "checking for $ac_word... " >&6; }
8560 if ${ac_cv_prog_OTOOL+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562 else
9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056 printf %s "checking for $ac_word... " >&6; }
9057 if test ${ac_cv_prog_OTOOL+y}
9058 then :
9059 printf %s "(cached) " >&6
9060 else $as_nop
85639061 if test -n "$OTOOL"; then
85649062 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
85659063 else
85679065 for as_dir in $PATH
85689066 do
85699067 IFS=$as_save_IFS
8570 test -z "$as_dir" && as_dir=.
9068 case $as_dir in #(((
9069 '') as_dir=./ ;;
9070 */) ;;
9071 *) as_dir=$as_dir/ ;;
9072 esac
85719073 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
85739075 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
85759077 break 2
85769078 fi
85779079 done
85829084 fi
85839085 OTOOL=$ac_cv_prog_OTOOL
85849086 if test -n "$OTOOL"; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8586 $as_echo "$OTOOL" >&6; }
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9088 printf "%s\n" "$OTOOL" >&6; }
85879089 else
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 printf "%s\n" "no" >&6; }
85909092 fi
85919093
85929094
85959097 ac_ct_OTOOL=$OTOOL
85969098 # Extract the first word of "otool", so it can be a program name with args.
85979099 set dummy otool; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602 else
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9101 printf %s "checking for $ac_word... " >&6; }
9102 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9103 then :
9104 printf %s "(cached) " >&6
9105 else $as_nop
86039106 if test -n "$ac_ct_OTOOL"; then
86049107 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
86059108 else
86079110 for as_dir in $PATH
86089111 do
86099112 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
9113 case $as_dir in #(((
9114 '') as_dir=./ ;;
9115 */) ;;
9116 *) as_dir=$as_dir/ ;;
9117 esac
86119118 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
86139120 ac_cv_prog_ac_ct_OTOOL="otool"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
86159122 break 2
86169123 fi
86179124 done
86229129 fi
86239130 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
86249131 if test -n "$ac_ct_OTOOL"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8626 $as_echo "$ac_ct_OTOOL" >&6; }
9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9133 printf "%s\n" "$ac_ct_OTOOL" >&6; }
86279134 else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9136 printf "%s\n" "no" >&6; }
86309137 fi
86319138
86329139 if test "x$ac_ct_OTOOL" = x; then
86349141 else
86359142 case $cross_compiling:$ac_tool_warned in
86369143 yes:)
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9145 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
86399146 ac_tool_warned=yes ;;
86409147 esac
86419148 OTOOL=$ac_ct_OTOOL
86479154 if test -n "$ac_tool_prefix"; then
86489155 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
86499156 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if ${ac_cv_prog_OTOOL64+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654 else
9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 printf %s "checking for $ac_word... " >&6; }
9159 if test ${ac_cv_prog_OTOOL64+y}
9160 then :
9161 printf %s "(cached) " >&6
9162 else $as_nop
86559163 if test -n "$OTOOL64"; then
86569164 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
86579165 else
86599167 for as_dir in $PATH
86609168 do
86619169 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
9170 case $as_dir in #(((
9171 '') as_dir=./ ;;
9172 */) ;;
9173 *) as_dir=$as_dir/ ;;
9174 esac
86639175 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
86659177 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
86679179 break 2
86689180 fi
86699181 done
86749186 fi
86759187 OTOOL64=$ac_cv_prog_OTOOL64
86769188 if test -n "$OTOOL64"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8678 $as_echo "$OTOOL64" >&6; }
9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9190 printf "%s\n" "$OTOOL64" >&6; }
86799191 else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193 printf "%s\n" "no" >&6; }
86829194 fi
86839195
86849196
86879199 ac_ct_OTOOL64=$OTOOL64
86889200 # Extract the first word of "otool64", so it can be a program name with args.
86899201 set dummy otool64; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
9202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203 printf %s "checking for $ac_word... " >&6; }
9204 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9205 then :
9206 printf %s "(cached) " >&6
9207 else $as_nop
86959208 if test -n "$ac_ct_OTOOL64"; then
86969209 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
86979210 else
86999212 for as_dir in $PATH
87009213 do
87019214 IFS=$as_save_IFS
8702 test -z "$as_dir" && as_dir=.
9215 case $as_dir in #(((
9216 '') as_dir=./ ;;
9217 */) ;;
9218 *) as_dir=$as_dir/ ;;
9219 esac
87039220 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
87059222 ac_cv_prog_ac_ct_OTOOL64="otool64"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
87079224 break 2
87089225 fi
87099226 done
87149231 fi
87159232 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
87169233 if test -n "$ac_ct_OTOOL64"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8718 $as_echo "$ac_ct_OTOOL64" >&6; }
9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9235 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
87199236 else
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
9237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238 printf "%s\n" "no" >&6; }
87229239 fi
87239240
87249241 if test "x$ac_ct_OTOOL64" = x; then
87269243 else
87279244 case $cross_compiling:$ac_tool_warned in
87289245 yes:)
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9247 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
87319248 ac_tool_warned=yes ;;
87329249 esac
87339250 OTOOL64=$ac_ct_OTOOL64
87629279
87639280
87649281
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8766 $as_echo_n "checking for -single_module linker flag... " >&6; }
8767 if ${lt_cv_apple_cc_single_mod+:} false; then :
8768 $as_echo_n "(cached) " >&6
8769 else
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9283 printf %s "checking for -single_module linker flag... " >&6; }
9284 if test ${lt_cv_apple_cc_single_mod+y}
9285 then :
9286 printf %s "(cached) " >&6
9287 else $as_nop
87709288 lt_cv_apple_cc_single_mod=no
87719289 if test -z "$LT_MULTI_MODULE"; then
87729290 # By default we will add the -single_module flag. You can override
87959313 rm -f conftest.*
87969314 fi
87979315 fi
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8799 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8800
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8802 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8803 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8804 $as_echo_n "(cached) " >&6
8805 else
9316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9317 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9318
9319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9320 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9321 if test ${lt_cv_ld_exported_symbols_list+y}
9322 then :
9323 printf %s "(cached) " >&6
9324 else $as_nop
88069325 lt_cv_ld_exported_symbols_list=no
88079326 save_LDFLAGS=$LDFLAGS
88089327 echo "_main" > conftest.sym
88119330 /* end confdefs.h. */
88129331
88139332 int
8814 main ()
9333 main (void)
88159334 {
88169335
88179336 ;
88189337 return 0;
88199338 }
88209339 _ACEOF
8821 if ac_fn_c_try_link "$LINENO"; then :
9340 if ac_fn_c_try_link "$LINENO"
9341 then :
88229342 lt_cv_ld_exported_symbols_list=yes
8823 else
9343 else $as_nop
88249344 lt_cv_ld_exported_symbols_list=no
88259345 fi
8826 rm -f core conftest.err conftest.$ac_objext \
9346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
88279347 conftest$ac_exeext conftest.$ac_ext
88289348 LDFLAGS=$save_LDFLAGS
88299349
88309350 fi
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8832 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8833
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8835 $as_echo_n "checking for -force_load linker flag... " >&6; }
8836 if ${lt_cv_ld_force_load+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838 else
9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9352 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9353
9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9355 printf %s "checking for -force_load linker flag... " >&6; }
9356 if test ${lt_cv_ld_force_load+y}
9357 then :
9358 printf %s "(cached) " >&6
9359 else $as_nop
88399360 lt_cv_ld_force_load=no
88409361 cat > conftest.c << _LT_EOF
88419362 int forced_loaded() { return 2;}
88639384 rm -rf conftest.dSYM
88649385
88659386 fi
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8867 $as_echo "$lt_cv_ld_force_load" >&6; }
9387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9388 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
88689389 case $host_os in
88699390 rhapsody* | darwin1.[012])
88709391 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
88759396 # to the OS version, if on x86, and 10.4, the deployment
88769397 # target defaults to 10.4. Don't you love it?
88779398 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8878 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9399 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
88799400 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
88809401 10.[012][,.]*)
88819402 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8882 10.*)
9403 10.*|11.*)
88839404 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
88849405 esac
88859406 ;;
89359456 esac
89369457 }
89379458
8938 for ac_header in dlfcn.h
8939 do :
8940 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9459 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
89419460 "
8942 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8943 cat >>confdefs.h <<_ACEOF
8944 #define HAVE_DLFCN_H 1
8945 _ACEOF
8946
8947 fi
8948
8949 done
9461 if test "x$ac_cv_header_dlfcn_h" = xyes
9462 then :
9463 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9464
9465 fi
89509466
89519467
89529468
89749490
89759491
89769492 # Check whether --enable-shared was given.
8977 if test "${enable_shared+set}" = set; then :
9493 if test ${enable_shared+y}
9494 then :
89789495 enableval=$enable_shared; p=${PACKAGE-default}
89799496 case $enableval in
89809497 yes) enable_shared=yes ;;
89929509 IFS=$lt_save_ifs
89939510 ;;
89949511 esac
8995 else
9512 else $as_nop
89969513 enable_shared=yes
89979514 fi
89989515
90059522
90069523
90079524 # Check whether --enable-static was given.
9008 if test "${enable_static+set}" = set; then :
9525 if test ${enable_static+y}
9526 then :
90099527 enableval=$enable_static; p=${PACKAGE-default}
90109528 case $enableval in
90119529 yes) enable_static=yes ;;
90239541 IFS=$lt_save_ifs
90249542 ;;
90259543 esac
9026 else
9544 else $as_nop
90279545 enable_static=yes
90289546 fi
90299547
90379555
90389556
90399557 # Check whether --with-pic was given.
9040 if test "${with_pic+set}" = set; then :
9558 if test ${with_pic+y}
9559 then :
90419560 withval=$with_pic; lt_p=${PACKAGE-default}
90429561 case $withval in
90439562 yes|no) pic_mode=$withval ;;
90549573 IFS=$lt_save_ifs
90559574 ;;
90569575 esac
9057 else
9576 else $as_nop
90589577 pic_mode=default
90599578 fi
90609579
90669585
90679586
90689587 # Check whether --enable-fast-install was given.
9069 if test "${enable_fast_install+set}" = set; then :
9588 if test ${enable_fast_install+y}
9589 then :
90709590 enableval=$enable_fast_install; p=${PACKAGE-default}
90719591 case $enableval in
90729592 yes) enable_fast_install=yes ;;
90849604 IFS=$lt_save_ifs
90859605 ;;
90869606 esac
9087 else
9607 else $as_nop
90889608 enable_fast_install=yes
90899609 fi
90909610
90989618 shared_archive_member_spec=
90999619 case $host,$enable_shared in
91009620 power*-*-aix[5-9]*,yes)
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9102 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9622 printf %s "checking which variant of shared library versioning to provide... " >&6; }
91039623
91049624 # Check whether --with-aix-soname was given.
9105 if test "${with_aix_soname+set}" = set; then :
9625 if test ${with_aix_soname+y}
9626 then :
91069627 withval=$with_aix_soname; case $withval in
91079628 aix|svr4|both)
91089629 ;;
91119632 ;;
91129633 esac
91139634 lt_cv_with_aix_soname=$with_aix_soname
9114 else
9115 if ${lt_cv_with_aix_soname+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9635 else $as_nop
9636 if test ${lt_cv_with_aix_soname+y}
9637 then :
9638 printf %s "(cached) " >&6
9639 else $as_nop
91189640 lt_cv_with_aix_soname=aix
91199641 fi
91209642
91219643 with_aix_soname=$lt_cv_with_aix_soname
91229644 fi
91239645
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9125 $as_echo "$with_aix_soname" >&6; }
9646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9647 printf "%s\n" "$with_aix_soname" >&6; }
91269648 if test aix != "$with_aix_soname"; then
91279649 # For the AIX way of multilib, we name the shared archive member
91289650 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
92049726 setopt NO_GLOB_SUBST
92059727 fi
92069728
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9208 $as_echo_n "checking for objdir... " >&6; }
9209 if ${lt_cv_objdir+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9730 printf %s "checking for objdir... " >&6; }
9731 if test ${lt_cv_objdir+y}
9732 then :
9733 printf %s "(cached) " >&6
9734 else $as_nop
92129735 rm -f .libs 2>/dev/null
92139736 mkdir .libs 2>/dev/null
92149737 if test -d .libs; then
92199742 fi
92209743 rmdir .libs 2>/dev/null
92219744 fi
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9223 $as_echo "$lt_cv_objdir" >&6; }
9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9746 printf "%s\n" "$lt_cv_objdir" >&6; }
92249747 objdir=$lt_cv_objdir
92259748
92269749
92279750
92289751
92299752
9230 cat >>confdefs.h <<_ACEOF
9231 #define LT_OBJDIR "$lt_cv_objdir/"
9232 _ACEOF
9753 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
92339754
92349755
92359756
92759796 case $deplibs_check_method in
92769797 file_magic*)
92779798 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9279 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9280 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9281 $as_echo_n "(cached) " >&6
9282 else
9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9800 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9801 if test ${lt_cv_path_MAGIC_CMD+y}
9802 then :
9803 printf %s "(cached) " >&6
9804 else $as_nop
92839805 case $MAGIC_CMD in
92849806 [\\/*] | ?:[\\/]*)
92859807 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
93289850
93299851 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
93309852 if test -n "$MAGIC_CMD"; then
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9332 $as_echo "$MAGIC_CMD" >&6; }
9853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9854 printf "%s\n" "$MAGIC_CMD" >&6; }
93339855 else
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335 $as_echo "no" >&6; }
9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 printf "%s\n" "no" >&6; }
93369858 fi
93379859
93389860
93419863
93429864 if test -z "$lt_cv_path_MAGIC_CMD"; then
93439865 if test -n "$ac_tool_prefix"; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9345 $as_echo_n "checking for file... " >&6; }
9346 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9347 $as_echo_n "(cached) " >&6
9348 else
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9867 printf %s "checking for file... " >&6; }
9868 if test ${lt_cv_path_MAGIC_CMD+y}
9869 then :
9870 printf %s "(cached) " >&6
9871 else $as_nop
93499872 case $MAGIC_CMD in
93509873 [\\/*] | ?:[\\/]*)
93519874 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
93949917
93959918 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
93969919 if test -n "$MAGIC_CMD"; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9398 $as_echo "$MAGIC_CMD" >&6; }
9920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9921 printf "%s\n" "$MAGIC_CMD" >&6; }
93999922 else
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 $as_echo "no" >&6; }
9923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9924 printf "%s\n" "no" >&6; }
94029925 fi
94039926
94049927
948310006 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
948410007 esac
948510008
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9487 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9488 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9489 $as_echo_n "(cached) " >&6
9490 else
10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10010 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10011 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10012 then :
10013 printf %s "(cached) " >&6
10014 else $as_nop
949110015 lt_cv_prog_compiler_rtti_exceptions=no
949210016 ac_outfile=conftest.$ac_objext
949310017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
951810042 $RM conftest*
951910043
952010044 fi
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9522 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10046 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
952310047
952410048 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
952510049 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
988210406 ;;
988310407 esac
988410408
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9886 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9887 if ${lt_cv_prog_compiler_pic+:} false; then :
9888 $as_echo_n "(cached) " >&6
9889 else
10409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10410 printf %s "checking for $compiler option to produce PIC... " >&6; }
10411 if test ${lt_cv_prog_compiler_pic+y}
10412 then :
10413 printf %s "(cached) " >&6
10414 else $as_nop
989010415 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
989110416 fi
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9893 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10418 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
989410419 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
989510420
989610421 #
989710422 # Check to make sure the PIC flag actually works.
989810423 #
989910424 if test -n "$lt_prog_compiler_pic"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9901 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9902 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9903 $as_echo_n "(cached) " >&6
9904 else
10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10426 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10427 if test ${lt_cv_prog_compiler_pic_works+y}
10428 then :
10429 printf %s "(cached) " >&6
10430 else $as_nop
990510431 lt_cv_prog_compiler_pic_works=no
990610432 ac_outfile=conftest.$ac_objext
990710433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
993210458 $RM conftest*
993310459
993410460 fi
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9936 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10462 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
993710463
993810464 if test yes = "$lt_cv_prog_compiler_pic_works"; then
993910465 case $lt_prog_compiler_pic in
996110487 # Check to make sure the static flag actually works.
996210488 #
996310489 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9965 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9966 if ${lt_cv_prog_compiler_static_works+:} false; then :
9967 $as_echo_n "(cached) " >&6
9968 else
10490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10491 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10492 if test ${lt_cv_prog_compiler_static_works+y}
10493 then :
10494 printf %s "(cached) " >&6
10495 else $as_nop
996910496 lt_cv_prog_compiler_static_works=no
997010497 save_LDFLAGS=$LDFLAGS
997110498 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
998910516 LDFLAGS=$save_LDFLAGS
999010517
999110518 fi
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9993 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10520 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
999410521
999510522 if test yes = "$lt_cv_prog_compiler_static_works"; then
999610523 :
1000410531
1000510532
1000610533
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10008 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10009 if ${lt_cv_prog_compiler_c_o+:} false; then :
10010 $as_echo_n "(cached) " >&6
10011 else
10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10535 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10536 if test ${lt_cv_prog_compiler_c_o+y}
10537 then :
10538 printf %s "(cached) " >&6
10539 else $as_nop
1001210540 lt_cv_prog_compiler_c_o=no
1001310541 $RM -r conftest 2>/dev/null
1001410542 mkdir conftest
1005110579 $RM conftest*
1005210580
1005310581 fi
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10055 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10056
10057
10058
10059
10060
10061
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10064 if ${lt_cv_prog_compiler_c_o+:} false; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10583 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10584
10585
10586
10587
10588
10589
10590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10591 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10592 if test ${lt_cv_prog_compiler_c_o+y}
10593 then :
10594 printf %s "(cached) " >&6
10595 else $as_nop
1006710596 lt_cv_prog_compiler_c_o=no
1006810597 $RM -r conftest 2>/dev/null
1006910598 mkdir conftest
1010610635 $RM conftest*
1010710636
1010810637 fi
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10110 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10639 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1011110640
1011210641
1011310642
1011510644 hard_links=nottested
1011610645 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
1011710646 # do not overwrite the value of need_locks provided by the user
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10119 $as_echo_n "checking if we can lock with hard links... " >&6; }
10647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10648 printf %s "checking if we can lock with hard links... " >&6; }
1012010649 hard_links=yes
1012110650 $RM conftest*
1012210651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1012310652 touch conftest.a
1012410653 ln conftest.a conftest.b 2>&5 || hard_links=no
1012510654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10127 $as_echo "$hard_links" >&6; }
10655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10656 printf "%s\n" "$hard_links" >&6; }
1012810657 if test no = "$hard_links"; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10130 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10659 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1013110660 need_locks=warn
1013210661 fi
1013310662 else
1013910668
1014010669
1014110670
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10143 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10672 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1014410673
1014510674 runpath_var=
1014610675 allow_undefined_flag=
1069811227 if test set = "${lt_cv_aix_libpath+set}"; then
1069911228 aix_libpath=$lt_cv_aix_libpath
1070011229 else
10701 if ${lt_cv_aix_libpath_+:} false; then :
10702 $as_echo_n "(cached) " >&6
10703 else
11230 if test ${lt_cv_aix_libpath_+y}
11231 then :
11232 printf %s "(cached) " >&6
11233 else $as_nop
1070411234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1070511235 /* end confdefs.h. */
1070611236
1070711237 int
10708 main ()
11238 main (void)
1070911239 {
1071011240
1071111241 ;
1071211242 return 0;
1071311243 }
1071411244 _ACEOF
10715 if ac_fn_c_try_link "$LINENO"; then :
11245 if ac_fn_c_try_link "$LINENO"
11246 then :
1071611247
1071711248 lt_aix_libpath_sed='
1071811249 /Import File Strings/,/^$/ {
1072711258 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1072811259 fi
1072911260 fi
10730 rm -f core conftest.err conftest.$ac_objext \
11261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1073111262 conftest$ac_exeext conftest.$ac_ext
1073211263 if test -z "$lt_cv_aix_libpath_"; then
1073311264 lt_cv_aix_libpath_=/usr/lib:/lib
1075111282 if test set = "${lt_cv_aix_libpath+set}"; then
1075211283 aix_libpath=$lt_cv_aix_libpath
1075311284 else
10754 if ${lt_cv_aix_libpath_+:} false; then :
10755 $as_echo_n "(cached) " >&6
10756 else
11285 if test ${lt_cv_aix_libpath_+y}
11286 then :
11287 printf %s "(cached) " >&6
11288 else $as_nop
1075711289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1075811290 /* end confdefs.h. */
1075911291
1076011292 int
10761 main ()
11293 main (void)
1076211294 {
1076311295
1076411296 ;
1076511297 return 0;
1076611298 }
1076711299 _ACEOF
10768 if ac_fn_c_try_link "$LINENO"; then :
11300 if ac_fn_c_try_link "$LINENO"
11301 then :
1076911302
1077011303 lt_aix_libpath_sed='
1077111304 /Import File Strings/,/^$/ {
1078011313 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1078111314 fi
1078211315 fi
10783 rm -f core conftest.err conftest.$ac_objext \
11316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1078411317 conftest$ac_exeext conftest.$ac_ext
1078511318 if test -z "$lt_cv_aix_libpath_"; then
1078611319 lt_cv_aix_libpath_=/usr/lib:/lib
1103111564
1103211565 # Older versions of the 11.00 compiler do not understand -b yet
1103311566 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11035 $as_echo_n "checking if $CC understands -b... " >&6; }
11036 if ${lt_cv_prog_compiler__b+:} false; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11568 printf %s "checking if $CC understands -b... " >&6; }
11569 if test ${lt_cv_prog_compiler__b+y}
11570 then :
11571 printf %s "(cached) " >&6
11572 else $as_nop
1103911573 lt_cv_prog_compiler__b=no
1104011574 save_LDFLAGS=$LDFLAGS
1104111575 LDFLAGS="$LDFLAGS -b"
1105911593 LDFLAGS=$save_LDFLAGS
1106011594
1106111595 fi
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11063 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11597 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
1106411598
1106511599 if test yes = "$lt_cv_prog_compiler__b"; then
1106611600 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1110011634 # work, assume that -exports_file does not work either and
1110111635 # implicitly export all symbols.
1110211636 # This should be the same for all languages, so no per-tag cache variable.
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11104 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11105 if ${lt_cv_irix_exported_symbol+:} false; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11638 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11639 if test ${lt_cv_irix_exported_symbol+y}
11640 then :
11641 printf %s "(cached) " >&6
11642 else $as_nop
1110811643 save_LDFLAGS=$LDFLAGS
1110911644 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
1111011645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1111111646 /* end confdefs.h. */
1111211647 int foo (void) { return 0; }
1111311648 _ACEOF
11114 if ac_fn_c_try_link "$LINENO"; then :
11649 if ac_fn_c_try_link "$LINENO"
11650 then :
1111511651 lt_cv_irix_exported_symbol=yes
11116 else
11652 else $as_nop
1111711653 lt_cv_irix_exported_symbol=no
1111811654 fi
11119 rm -f core conftest.err conftest.$ac_objext \
11655 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1112011656 conftest$ac_exeext conftest.$ac_ext
1112111657 LDFLAGS=$save_LDFLAGS
1112211658 fi
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11124 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11660 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
1112511661 if test yes = "$lt_cv_irix_exported_symbol"; then
1112611662 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
1112711663 fi
1140211938 fi
1140311939 fi
1140411940
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11406 $as_echo "$ld_shlibs" >&6; }
11941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11942 printf "%s\n" "$ld_shlibs" >&6; }
1140711943 test no = "$ld_shlibs" && can_build_shared=no
1140811944
1140911945 with_gnu_ld=$with_gnu_ld
1143911975 # Test whether the compiler implicitly links with -lc since on some
1144011976 # systems, -lgcc has to come before -lc. If gcc already passes -lc
1144111977 # to ld, don't add -lc before -lgcc.
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11443 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11444 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11445 $as_echo_n "(cached) " >&6
11446 else
11978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11979 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11980 if test ${lt_cv_archive_cmds_need_lc+y}
11981 then :
11982 printf %s "(cached) " >&6
11983 else $as_nop
1144711984 $RM conftest*
1144811985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1144911986
1145011987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1145111988 (eval $ac_compile) 2>&5
1145211989 ac_status=$?
11453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1145411991 test $ac_status = 0; } 2>conftest.err; then
1145511992 soname=conftest
1145611993 lib=conftest
1146812005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1146912006 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1147012007 ac_status=$?
11471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1147212009 test $ac_status = 0; }
1147312010 then
1147412011 lt_cv_archive_cmds_need_lc=no
1148212019 $RM conftest*
1148312020
1148412021 fi
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11486 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12023 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
1148712024 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1148812025 ;;
1148912026 esac
1164212179
1164312180
1164412181
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11646 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12183 printf %s "checking dynamic linker characteristics... " >&6; }
1164712184
1164812185 if test yes = "$GCC"; then
1164912186 case $host_os in
1220412741 shlibpath_overrides_runpath=no
1220512742
1220612743 # Some binutils ld are patched to set DT_RUNPATH
12207 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12744 if test ${lt_cv_shlibpath_overrides_runpath+y}
12745 then :
12746 printf %s "(cached) " >&6
12747 else $as_nop
1221012748 lt_cv_shlibpath_overrides_runpath=no
1221112749 save_LDFLAGS=$LDFLAGS
1221212750 save_libdir=$libdir
1221612754 /* end confdefs.h. */
1221712755
1221812756 int
12219 main ()
12757 main (void)
1222012758 {
1222112759
1222212760 ;
1222312761 return 0;
1222412762 }
1222512763 _ACEOF
12226 if ac_fn_c_try_link "$LINENO"; then :
12227 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12764 if ac_fn_c_try_link "$LINENO"
12765 then :
12766 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12767 then :
1222812768 lt_cv_shlibpath_overrides_runpath=yes
1222912769 fi
1223012770 fi
12231 rm -f core conftest.err conftest.$ac_objext \
12771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1223212772 conftest$ac_exeext conftest.$ac_ext
1223312773 LDFLAGS=$save_LDFLAGS
1223412774 libdir=$save_libdir
1247213012 dynamic_linker=no
1247313013 ;;
1247413014 esac
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12476 $as_echo "$dynamic_linker" >&6; }
13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13016 printf "%s\n" "$dynamic_linker" >&6; }
1247713017 test no = "$dynamic_linker" && can_build_shared=no
1247813018
1247913019 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1259413134
1259513135
1259613136
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12598 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13138 printf %s "checking how to hardcode library paths into programs... " >&6; }
1259913139 hardcode_action=
1260013140 if test -n "$hardcode_libdir_flag_spec" ||
1260113141 test -n "$runpath_var" ||
1261913159 # directories.
1262013160 hardcode_action=unsupported
1262113161 fi
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12623 $as_echo "$hardcode_action" >&6; }
13162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13163 printf "%s\n" "$hardcode_action" >&6; }
1262413164
1262513165 if test relink = "$hardcode_action" ||
1262613166 test yes = "$inherit_rpath"; then
1266413204
1266513205 darwin*)
1266613206 # if libdl is installed we need to link against it
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12668 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12669 if ${ac_cv_lib_dl_dlopen+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
13207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13208 printf %s "checking for dlopen in -ldl... " >&6; }
13209 if test ${ac_cv_lib_dl_dlopen+y}
13210 then :
13211 printf %s "(cached) " >&6
13212 else $as_nop
1267213213 ac_check_lib_save_LIBS=$LIBS
1267313214 LIBS="-ldl $LIBS"
1267413215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1267713218 /* Override any GCC internal prototype to avoid an error.
1267813219 Use char because int might match the return type of a GCC
1267913220 builtin and then its argument prototype would still apply. */
12680 #ifdef __cplusplus
12681 extern "C"
12682 #endif
1268313221 char dlopen ();
1268413222 int
12685 main ()
13223 main (void)
1268613224 {
1268713225 return dlopen ();
1268813226 ;
1268913227 return 0;
1269013228 }
1269113229 _ACEOF
12692 if ac_fn_c_try_link "$LINENO"; then :
13230 if ac_fn_c_try_link "$LINENO"
13231 then :
1269313232 ac_cv_lib_dl_dlopen=yes
12694 else
13233 else $as_nop
1269513234 ac_cv_lib_dl_dlopen=no
1269613235 fi
12697 rm -f core conftest.err conftest.$ac_objext \
13236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1269813237 conftest$ac_exeext conftest.$ac_ext
1269913238 LIBS=$ac_check_lib_save_LIBS
1270013239 fi
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12702 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12703 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13241 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13242 if test "x$ac_cv_lib_dl_dlopen" = xyes
13243 then :
1270413244 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12705 else
13245 else $as_nop
1270613246
1270713247 lt_cv_dlopen=dyld
1270813248 lt_cv_dlopen_libs=
1272213262
1272313263 *)
1272413264 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12725 if test "x$ac_cv_func_shl_load" = xyes; then :
13265 if test "x$ac_cv_func_shl_load" = xyes
13266 then :
1272613267 lt_cv_dlopen=shl_load
12727 else
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12729 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12730 if ${ac_cv_lib_dld_shl_load+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732 else
13268 else $as_nop
13269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13270 printf %s "checking for shl_load in -ldld... " >&6; }
13271 if test ${ac_cv_lib_dld_shl_load+y}
13272 then :
13273 printf %s "(cached) " >&6
13274 else $as_nop
1273313275 ac_check_lib_save_LIBS=$LIBS
1273413276 LIBS="-ldld $LIBS"
1273513277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1273813280 /* Override any GCC internal prototype to avoid an error.
1273913281 Use char because int might match the return type of a GCC
1274013282 builtin and then its argument prototype would still apply. */
12741 #ifdef __cplusplus
12742 extern "C"
12743 #endif
1274413283 char shl_load ();
1274513284 int
12746 main ()
13285 main (void)
1274713286 {
1274813287 return shl_load ();
1274913288 ;
1275013289 return 0;
1275113290 }
1275213291 _ACEOF
12753 if ac_fn_c_try_link "$LINENO"; then :
13292 if ac_fn_c_try_link "$LINENO"
13293 then :
1275413294 ac_cv_lib_dld_shl_load=yes
12755 else
13295 else $as_nop
1275613296 ac_cv_lib_dld_shl_load=no
1275713297 fi
12758 rm -f core conftest.err conftest.$ac_objext \
13298 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1275913299 conftest$ac_exeext conftest.$ac_ext
1276013300 LIBS=$ac_check_lib_save_LIBS
1276113301 fi
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12763 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12764 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13303 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13304 if test "x$ac_cv_lib_dld_shl_load" = xyes
13305 then :
1276513306 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12766 else
13307 else $as_nop
1276713308 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12768 if test "x$ac_cv_func_dlopen" = xyes; then :
13309 if test "x$ac_cv_func_dlopen" = xyes
13310 then :
1276913311 lt_cv_dlopen=dlopen
12770 else
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12772 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12773 if ${ac_cv_lib_dl_dlopen+:} false; then :
12774 $as_echo_n "(cached) " >&6
12775 else
13312 else $as_nop
13313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13314 printf %s "checking for dlopen in -ldl... " >&6; }
13315 if test ${ac_cv_lib_dl_dlopen+y}
13316 then :
13317 printf %s "(cached) " >&6
13318 else $as_nop
1277613319 ac_check_lib_save_LIBS=$LIBS
1277713320 LIBS="-ldl $LIBS"
1277813321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1278113324 /* Override any GCC internal prototype to avoid an error.
1278213325 Use char because int might match the return type of a GCC
1278313326 builtin and then its argument prototype would still apply. */
12784 #ifdef __cplusplus
12785 extern "C"
12786 #endif
1278713327 char dlopen ();
1278813328 int
12789 main ()
13329 main (void)
1279013330 {
1279113331 return dlopen ();
1279213332 ;
1279313333 return 0;
1279413334 }
1279513335 _ACEOF
12796 if ac_fn_c_try_link "$LINENO"; then :
13336 if ac_fn_c_try_link "$LINENO"
13337 then :
1279713338 ac_cv_lib_dl_dlopen=yes
12798 else
13339 else $as_nop
1279913340 ac_cv_lib_dl_dlopen=no
1280013341 fi
12801 rm -f core conftest.err conftest.$ac_objext \
13342 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1280213343 conftest$ac_exeext conftest.$ac_ext
1280313344 LIBS=$ac_check_lib_save_LIBS
1280413345 fi
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12806 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12807 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13347 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13348 if test "x$ac_cv_lib_dl_dlopen" = xyes
13349 then :
1280813350 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12809 else
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12811 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12812 if ${ac_cv_lib_svld_dlopen+:} false; then :
12813 $as_echo_n "(cached) " >&6
12814 else
13351 else $as_nop
13352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13353 printf %s "checking for dlopen in -lsvld... " >&6; }
13354 if test ${ac_cv_lib_svld_dlopen+y}
13355 then :
13356 printf %s "(cached) " >&6
13357 else $as_nop
1281513358 ac_check_lib_save_LIBS=$LIBS
1281613359 LIBS="-lsvld $LIBS"
1281713360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1282013363 /* Override any GCC internal prototype to avoid an error.
1282113364 Use char because int might match the return type of a GCC
1282213365 builtin and then its argument prototype would still apply. */
12823 #ifdef __cplusplus
12824 extern "C"
12825 #endif
1282613366 char dlopen ();
1282713367 int
12828 main ()
13368 main (void)
1282913369 {
1283013370 return dlopen ();
1283113371 ;
1283213372 return 0;
1283313373 }
1283413374 _ACEOF
12835 if ac_fn_c_try_link "$LINENO"; then :
13375 if ac_fn_c_try_link "$LINENO"
13376 then :
1283613377 ac_cv_lib_svld_dlopen=yes
12837 else
13378 else $as_nop
1283813379 ac_cv_lib_svld_dlopen=no
1283913380 fi
12840 rm -f core conftest.err conftest.$ac_objext \
13381 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1284113382 conftest$ac_exeext conftest.$ac_ext
1284213383 LIBS=$ac_check_lib_save_LIBS
1284313384 fi
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12845 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12846 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13386 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13387 if test "x$ac_cv_lib_svld_dlopen" = xyes
13388 then :
1284713389 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12848 else
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12850 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12851 if ${ac_cv_lib_dld_dld_link+:} false; then :
12852 $as_echo_n "(cached) " >&6
12853 else
13390 else $as_nop
13391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13392 printf %s "checking for dld_link in -ldld... " >&6; }
13393 if test ${ac_cv_lib_dld_dld_link+y}
13394 then :
13395 printf %s "(cached) " >&6
13396 else $as_nop
1285413397 ac_check_lib_save_LIBS=$LIBS
1285513398 LIBS="-ldld $LIBS"
1285613399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1285913402 /* Override any GCC internal prototype to avoid an error.
1286013403 Use char because int might match the return type of a GCC
1286113404 builtin and then its argument prototype would still apply. */
12862 #ifdef __cplusplus
12863 extern "C"
12864 #endif
1286513405 char dld_link ();
1286613406 int
12867 main ()
13407 main (void)
1286813408 {
1286913409 return dld_link ();
1287013410 ;
1287113411 return 0;
1287213412 }
1287313413 _ACEOF
12874 if ac_fn_c_try_link "$LINENO"; then :
13414 if ac_fn_c_try_link "$LINENO"
13415 then :
1287513416 ac_cv_lib_dld_dld_link=yes
12876 else
13417 else $as_nop
1287713418 ac_cv_lib_dld_dld_link=no
1287813419 fi
12879 rm -f core conftest.err conftest.$ac_objext \
13420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1288013421 conftest$ac_exeext conftest.$ac_ext
1288113422 LIBS=$ac_check_lib_save_LIBS
1288213423 fi
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12884 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12885 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13425 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13426 if test "x$ac_cv_lib_dld_dld_link" = xyes
13427 then :
1288613428 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1288713429 fi
1288813430
1292113463 save_LIBS=$LIBS
1292213464 LIBS="$lt_cv_dlopen_libs $LIBS"
1292313465
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12925 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12926 if ${lt_cv_dlopen_self+:} false; then :
12927 $as_echo_n "(cached) " >&6
12928 else
13466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13467 printf %s "checking whether a program can dlopen itself... " >&6; }
13468 if test ${lt_cv_dlopen_self+y}
13469 then :
13470 printf %s "(cached) " >&6
13471 else $as_nop
1292913472 if test yes = "$cross_compiling"; then :
1293013473 lt_cv_dlopen_self=cross
1293113474 else
1300413547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1300513548 (eval $ac_link) 2>&5
1300613549 ac_status=$?
13007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1300813551 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1300913552 (./conftest; exit; ) >&5 2>/dev/null
1301013553 lt_status=$?
1302213565
1302313566
1302413567 fi
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13026 $as_echo "$lt_cv_dlopen_self" >&6; }
13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13569 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
1302713570
1302813571 if test yes = "$lt_cv_dlopen_self"; then
1302913572 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13031 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13032 if ${lt_cv_dlopen_self_static+:} false; then :
13033 $as_echo_n "(cached) " >&6
13034 else
13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13574 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13575 if test ${lt_cv_dlopen_self_static+y}
13576 then :
13577 printf %s "(cached) " >&6
13578 else $as_nop
1303513579 if test yes = "$cross_compiling"; then :
1303613580 lt_cv_dlopen_self_static=cross
1303713581 else
1311013654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1311113655 (eval $ac_link) 2>&5
1311213656 ac_status=$?
13113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1311413658 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1311513659 (./conftest; exit; ) >&5 2>/dev/null
1311613660 lt_status=$?
1312813672
1312913673
1313013674 fi
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13132 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13676 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
1313313677 fi
1313413678
1313513679 CPPFLAGS=$save_CPPFLAGS
1316713711
1316813712 striplib=
1316913713 old_striplib=
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13171 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13715 printf %s "checking whether stripping libraries is possible... " >&6; }
1317213716 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1317313717 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1317413718 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13176 $as_echo "yes" >&6; }
13719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13720 printf "%s\n" "yes" >&6; }
1317713721 else
1317813722 # FIXME - insert some real tests, host_os isn't really good enough
1317913723 case $host_os in
1318113725 if test -n "$STRIP"; then
1318213726 striplib="$STRIP -x"
1318313727 old_striplib="$STRIP -S"
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13185 $as_echo "yes" >&6; }
13728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13729 printf "%s\n" "yes" >&6; }
1318613730 else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13732 printf "%s\n" "no" >&6; }
1318913733 fi
1319013734 ;;
1319113735 *)
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193 $as_echo "no" >&6; }
13736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737 printf "%s\n" "no" >&6; }
1319413738 ;;
1319513739 esac
1319613740 fi
1320713751
1320813752
1320913753 # Report what library types will actually be built
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13211 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13213 $as_echo "$can_build_shared" >&6; }
13214
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13216 $as_echo_n "checking whether to build shared libraries... " >&6; }
13754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13755 printf %s "checking if libtool supports shared libraries... " >&6; }
13756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13757 printf "%s\n" "$can_build_shared" >&6; }
13758
13759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13760 printf %s "checking whether to build shared libraries... " >&6; }
1321713761 test no = "$can_build_shared" && enable_shared=no
1321813762
1321913763 # On AIX, shared libraries and static libraries use the same namespace, and
1323713781 fi
1323813782 ;;
1323913783 esac
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13241 $as_echo "$enable_shared" >&6; }
13242
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13244 $as_echo_n "checking whether to build static libraries... " >&6; }
13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13785 printf "%s\n" "$enable_shared" >&6; }
13786
13787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13788 printf %s "checking whether to build static libraries... " >&6; }
1324513789 # Make sure either enable_shared or enable_static is yes.
1324613790 test yes = "$enable_shared" || enable_static=yes
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13248 $as_echo "$enable_static" >&6; }
13791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13792 printf "%s\n" "$enable_static" >&6; }
1324913793
1325013794
1325113795
1326713811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1326813812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326913813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13271 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13815 printf %s "checking how to run the C++ preprocessor... " >&6; }
1327213816 if test -z "$CXXCPP"; then
13273 if ${ac_cv_prog_CXXCPP+:} false; then :
13274 $as_echo_n "(cached) " >&6
13275 else
13276 # Double quotes because CXXCPP needs to be expanded
13277 for CXXCPP in "$CXX -E" "/lib/cpp"
13817 if test ${ac_cv_prog_CXXCPP+y}
13818 then :
13819 printf %s "(cached) " >&6
13820 else $as_nop
13821 # Double quotes because $CXX needs to be expanded
13822 for CXXCPP in "$CXX -E" cpp /lib/cpp
1327813823 do
1327913824 ac_preproc_ok=false
1328013825 for ac_cxx_preproc_warn_flag in '' yes
1328113826 do
1328213827 # Use a header file that comes with gcc, so configuring glibc
1328313828 # with a fresh cross-compiler works.
13284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13285 # <limits.h> exists even on freestanding compilers.
1328613829 # On the NeXT, cc -E runs the code through the compiler's parser,
1328713830 # not just through cpp. "Syntax error" is here to catch this case.
1328813831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1328913832 /* end confdefs.h. */
13290 #ifdef __STDC__
13291 # include <limits.h>
13292 #else
13293 # include <assert.h>
13294 #endif
13833 #include <limits.h>
1329513834 Syntax error
1329613835 _ACEOF
13297 if ac_fn_cxx_try_cpp "$LINENO"; then :
13298
13299 else
13836 if ac_fn_cxx_try_cpp "$LINENO"
13837 then :
13838
13839 else $as_nop
1330013840 # Broken: fails on valid input.
1330113841 continue
1330213842 fi
1330813848 /* end confdefs.h. */
1330913849 #include <ac_nonexistent.h>
1331013850 _ACEOF
13311 if ac_fn_cxx_try_cpp "$LINENO"; then :
13851 if ac_fn_cxx_try_cpp "$LINENO"
13852 then :
1331213853 # Broken: success on invalid input.
1331313854 continue
13314 else
13855 else $as_nop
1331513856 # Passes both tests.
1331613857 ac_preproc_ok=:
1331713858 break
1332113862 done
1332213863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1332313864 rm -f conftest.i conftest.err conftest.$ac_ext
13324 if $ac_preproc_ok; then :
13865 if $ac_preproc_ok
13866 then :
1332513867 break
1332613868 fi
1332713869
1333313875 else
1333413876 ac_cv_prog_CXXCPP=$CXXCPP
1333513877 fi
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13337 $as_echo "$CXXCPP" >&6; }
13878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13879 printf "%s\n" "$CXXCPP" >&6; }
1333813880 ac_preproc_ok=false
1333913881 for ac_cxx_preproc_warn_flag in '' yes
1334013882 do
1334113883 # Use a header file that comes with gcc, so configuring glibc
1334213884 # with a fresh cross-compiler works.
13343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13344 # <limits.h> exists even on freestanding compilers.
1334513885 # On the NeXT, cc -E runs the code through the compiler's parser,
1334613886 # not just through cpp. "Syntax error" is here to catch this case.
1334713887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1334813888 /* end confdefs.h. */
13349 #ifdef __STDC__
13350 # include <limits.h>
13351 #else
13352 # include <assert.h>
13353 #endif
13889 #include <limits.h>
1335413890 Syntax error
1335513891 _ACEOF
13356 if ac_fn_cxx_try_cpp "$LINENO"; then :
13357
13358 else
13892 if ac_fn_cxx_try_cpp "$LINENO"
13893 then :
13894
13895 else $as_nop
1335913896 # Broken: fails on valid input.
1336013897 continue
1336113898 fi
1336713904 /* end confdefs.h. */
1336813905 #include <ac_nonexistent.h>
1336913906 _ACEOF
13370 if ac_fn_cxx_try_cpp "$LINENO"; then :
13907 if ac_fn_cxx_try_cpp "$LINENO"
13908 then :
1337113909 # Broken: success on invalid input.
1337213910 continue
13373 else
13911 else $as_nop
1337413912 # Passes both tests.
1337513913 ac_preproc_ok=:
1337613914 break
1338013918 done
1338113919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1338213920 rm -f conftest.i conftest.err conftest.$ac_ext
13383 if $ac_preproc_ok; then :
13384
13385 else
13386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13921 if $ac_preproc_ok
13922 then :
13923
13924 else $as_nop
13925 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13926 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1338813927 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
1338913928 See \`config.log' for more details" "$LINENO" 5; }
1339013929 fi
1352014059
1352114060
1352214061 # Check whether --with-gnu-ld was given.
13523 if test "${with_gnu_ld+set}" = set; then :
14062 if test ${with_gnu_ld+y}
14063 then :
1352414064 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13525 else
14065 else $as_nop
1352614066 with_gnu_ld=no
1352714067 fi
1352814068
1352914069 ac_prog=ld
1353014070 if test yes = "$GCC"; then
1353114071 # Check if gcc -print-prog-name=ld gives a path.
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13533 $as_echo_n "checking for ld used by $CC... " >&6; }
14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14073 printf %s "checking for ld used by $CC... " >&6; }
1353414074 case $host in
1353514075 *-*-mingw*)
1353614076 # gcc leaves a trailing carriage return, which upsets mingw
1355914099 ;;
1356014100 esac
1356114101 elif test yes = "$with_gnu_ld"; then
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13563 $as_echo_n "checking for GNU ld... " >&6; }
14102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14103 printf %s "checking for GNU ld... " >&6; }
1356414104 else
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13566 $as_echo_n "checking for non-GNU ld... " >&6; }
13567 fi
13568 if ${lt_cv_path_LD+:} false; then :
13569 $as_echo_n "(cached) " >&6
13570 else
14105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14106 printf %s "checking for non-GNU ld... " >&6; }
14107 fi
14108 if test ${lt_cv_path_LD+y}
14109 then :
14110 printf %s "(cached) " >&6
14111 else $as_nop
1357114112 if test -z "$LD"; then
1357214113 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1357314114 for ac_dir in $PATH; do
1359614137
1359714138 LD=$lt_cv_path_LD
1359814139 if test -n "$LD"; then
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13600 $as_echo "$LD" >&6; }
14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14141 printf "%s\n" "$LD" >&6; }
1360114142 else
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13603 $as_echo "no" >&6; }
14143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14144 printf "%s\n" "no" >&6; }
1360414145 fi
1360514146 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13607 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13608 if ${lt_cv_prog_gnu_ld+:} false; then :
13609 $as_echo_n "(cached) " >&6
13610 else
14147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14148 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14149 if test ${lt_cv_prog_gnu_ld+y}
14150 then :
14151 printf %s "(cached) " >&6
14152 else $as_nop
1361114153 # I'd rather use --version here, but apparently some GNU lds only accept -v.
1361214154 case `$LD -v 2>&1 </dev/null` in
1361314155 *GNU* | *'with BFD'*)
1361814160 ;;
1361914161 esac
1362014162 fi
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13622 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14164 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
1362314165 with_gnu_ld=$lt_cv_prog_gnu_ld
1362414166
1362514167
1367314215 fi
1367414216
1367514217 # PORTME: fill in a description of your system's C++ link characteristics
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13677 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14219 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1367814220 ld_shlibs_CXX=yes
1367914221 case $host_os in
1368014222 aix3*)
1381214354 if test set = "${lt_cv_aix_libpath+set}"; then
1381314355 aix_libpath=$lt_cv_aix_libpath
1381414356 else
13815 if ${lt_cv_aix_libpath__CXX+:} false; then :
13816 $as_echo_n "(cached) " >&6
13817 else
14357 if test ${lt_cv_aix_libpath__CXX+y}
14358 then :
14359 printf %s "(cached) " >&6
14360 else $as_nop
1381814361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1381914362 /* end confdefs.h. */
1382014363
1382114364 int
13822 main ()
14365 main (void)
1382314366 {
1382414367
1382514368 ;
1382614369 return 0;
1382714370 }
1382814371 _ACEOF
13829 if ac_fn_cxx_try_link "$LINENO"; then :
14372 if ac_fn_cxx_try_link "$LINENO"
14373 then :
1383014374
1383114375 lt_aix_libpath_sed='
1383214376 /Import File Strings/,/^$/ {
1384114385 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1384214386 fi
1384314387 fi
13844 rm -f core conftest.err conftest.$ac_objext \
14388 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1384514389 conftest$ac_exeext conftest.$ac_ext
1384614390 if test -z "$lt_cv_aix_libpath__CXX"; then
1384714391 lt_cv_aix_libpath__CXX=/usr/lib:/lib
1386614410 if test set = "${lt_cv_aix_libpath+set}"; then
1386714411 aix_libpath=$lt_cv_aix_libpath
1386814412 else
13869 if ${lt_cv_aix_libpath__CXX+:} false; then :
13870 $as_echo_n "(cached) " >&6
13871 else
14413 if test ${lt_cv_aix_libpath__CXX+y}
14414 then :
14415 printf %s "(cached) " >&6
14416 else $as_nop
1387214417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1387314418 /* end confdefs.h. */
1387414419
1387514420 int
13876 main ()
14421 main (void)
1387714422 {
1387814423
1387914424 ;
1388014425 return 0;
1388114426 }
1388214427 _ACEOF
13883 if ac_fn_cxx_try_link "$LINENO"; then :
14428 if ac_fn_cxx_try_link "$LINENO"
14429 then :
1388414430
1388514431 lt_aix_libpath_sed='
1388614432 /Import File Strings/,/^$/ {
1389514441 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1389614442 fi
1389714443 fi
13898 rm -f core conftest.err conftest.$ac_objext \
14444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1389914445 conftest$ac_exeext conftest.$ac_ext
1390014446 if test -z "$lt_cv_aix_libpath__CXX"; then
1390114447 lt_cv_aix_libpath__CXX=/usr/lib:/lib
1474615292 ;;
1474715293 esac
1474815294
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14750 $as_echo "$ld_shlibs_CXX" >&6; }
15295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15296 printf "%s\n" "$ld_shlibs_CXX" >&6; }
1475115297 test no = "$ld_shlibs_CXX" && can_build_shared=no
1475215298
1475315299 GCC_CXX=$GXX
1478515331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1478615332 (eval $ac_compile) 2>&5
1478715333 ac_status=$?
14788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1478915335 test $ac_status = 0; }; then
1479015336 # Parse the compiler output and extract the necessary
1479115337 # objects, libraries and library flags.
1526615812 ;;
1526715813 esac
1526815814
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15270 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15271 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15272 $as_echo_n "(cached) " >&6
15273 else
15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15816 printf %s "checking for $compiler option to produce PIC... " >&6; }
15817 if test ${lt_cv_prog_compiler_pic_CXX+y}
15818 then :
15819 printf %s "(cached) " >&6
15820 else $as_nop
1527415821 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
1527515822 fi
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15277 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15824 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
1527815825 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
1527915826
1528015827 #
1528115828 # Check to make sure the PIC flag actually works.
1528215829 #
1528315830 if test -n "$lt_prog_compiler_pic_CXX"; then
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15285 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15286 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15287 $as_echo_n "(cached) " >&6
15288 else
15831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15832 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15833 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15834 then :
15835 printf %s "(cached) " >&6
15836 else $as_nop
1528915837 lt_cv_prog_compiler_pic_works_CXX=no
1529015838 ac_outfile=conftest.$ac_objext
1529115839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1531615864 $RM conftest*
1531715865
1531815866 fi
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15320 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15868 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1532115869
1532215870 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
1532315871 case $lt_prog_compiler_pic_CXX in
1533915887 # Check to make sure the static flag actually works.
1534015888 #
1534115889 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15343 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15344 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15345 $as_echo_n "(cached) " >&6
15346 else
15890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15891 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15892 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15893 then :
15894 printf %s "(cached) " >&6
15895 else $as_nop
1534715896 lt_cv_prog_compiler_static_works_CXX=no
1534815897 save_LDFLAGS=$LDFLAGS
1534915898 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1536715916 LDFLAGS=$save_LDFLAGS
1536815917
1536915918 fi
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15371 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15920 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1537215921
1537315922 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
1537415923 :
1537915928
1538015929
1538115930
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15383 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15384 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15385 $as_echo_n "(cached) " >&6
15386 else
15931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15932 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15933 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15934 then :
15935 printf %s "(cached) " >&6
15936 else $as_nop
1538715937 lt_cv_prog_compiler_c_o_CXX=no
1538815938 $RM -r conftest 2>/dev/null
1538915939 mkdir conftest
1542615976 $RM conftest*
1542715977
1542815978 fi
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15430 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15431
15432
15433
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15435 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15436 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15437 $as_echo_n "(cached) " >&6
15438 else
15979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15980 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15981
15982
15983
15984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15985 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15986 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15987 then :
15988 printf %s "(cached) " >&6
15989 else $as_nop
1543915990 lt_cv_prog_compiler_c_o_CXX=no
1544015991 $RM -r conftest 2>/dev/null
1544115992 mkdir conftest
1547816029 $RM conftest*
1547916030
1548016031 fi
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15482 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16033 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1548316034
1548416035
1548516036
1548716038 hard_links=nottested
1548816039 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
1548916040 # do not overwrite the value of need_locks provided by the user
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15491 $as_echo_n "checking if we can lock with hard links... " >&6; }
16041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16042 printf %s "checking if we can lock with hard links... " >&6; }
1549216043 hard_links=yes
1549316044 $RM conftest*
1549416045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1549516046 touch conftest.a
1549616047 ln conftest.a conftest.b 2>&5 || hard_links=no
1549716048 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15499 $as_echo "$hard_links" >&6; }
16049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16050 printf "%s\n" "$hard_links" >&6; }
1550016051 if test no = "$hard_links"; then
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15502 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16053 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1550316054 need_locks=warn
1550416055 fi
1550516056 else
1550816059
1550916060
1551016061
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15512 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16063 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1551316064
1551416065 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1551516066 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1555116102 ;;
1555216103 esac
1555316104
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15555 $as_echo "$ld_shlibs_CXX" >&6; }
16105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16106 printf "%s\n" "$ld_shlibs_CXX" >&6; }
1555616107 test no = "$ld_shlibs_CXX" && can_build_shared=no
1555716108
1555816109 with_gnu_ld_CXX=$with_gnu_ld
1557916130 # Test whether the compiler implicitly links with -lc since on some
1558016131 # systems, -lgcc has to come before -lc. If gcc already passes -lc
1558116132 # to ld, don't add -lc before -lgcc.
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15583 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15584 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15585 $as_echo_n "(cached) " >&6
15586 else
16133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16134 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16135 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16136 then :
16137 printf %s "(cached) " >&6
16138 else $as_nop
1558716139 $RM conftest*
1558816140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1558916141
1559016142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1559116143 (eval $ac_compile) 2>&5
1559216144 ac_status=$?
15593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559416146 test $ac_status = 0; } 2>conftest.err; then
1559516147 soname=conftest
1559616148 lib=conftest
1560816160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1560916161 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1561016162 ac_status=$?
15611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561216164 test $ac_status = 0; }
1561316165 then
1561416166 lt_cv_archive_cmds_need_lc_CXX=no
1562216174 $RM conftest*
1562316175
1562416176 fi
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15626 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16178 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1562716179 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
1562816180 ;;
1562916181 esac
1569216244
1569316245
1569416246
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15696 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16248 printf %s "checking dynamic linker characteristics... " >&6; }
1569716249
1569816250 library_names_spec=
1569916251 libname_spec='lib$name'
1618116733 shlibpath_overrides_runpath=no
1618216734
1618316735 # Some binutils ld are patched to set DT_RUNPATH
16184 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16185 $as_echo_n "(cached) " >&6
16186 else
16736 if test ${lt_cv_shlibpath_overrides_runpath+y}
16737 then :
16738 printf %s "(cached) " >&6
16739 else $as_nop
1618716740 lt_cv_shlibpath_overrides_runpath=no
1618816741 save_LDFLAGS=$LDFLAGS
1618916742 save_libdir=$libdir
1619316746 /* end confdefs.h. */
1619416747
1619516748 int
16196 main ()
16749 main (void)
1619716750 {
1619816751
1619916752 ;
1620016753 return 0;
1620116754 }
1620216755 _ACEOF
16203 if ac_fn_cxx_try_link "$LINENO"; then :
16204 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16756 if ac_fn_cxx_try_link "$LINENO"
16757 then :
16758 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16759 then :
1620516760 lt_cv_shlibpath_overrides_runpath=yes
1620616761 fi
1620716762 fi
16208 rm -f core conftest.err conftest.$ac_objext \
16763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1620916764 conftest$ac_exeext conftest.$ac_ext
1621016765 LDFLAGS=$save_LDFLAGS
1621116766 libdir=$save_libdir
1644917004 dynamic_linker=no
1645017005 ;;
1645117006 esac
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16453 $as_echo "$dynamic_linker" >&6; }
17007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17008 printf "%s\n" "$dynamic_linker" >&6; }
1645417009 test no = "$dynamic_linker" && can_build_shared=no
1645517010
1645617011 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1651417069
1651517070
1651617071
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16518 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17073 printf %s "checking how to hardcode library paths into programs... " >&6; }
1651917074 hardcode_action_CXX=
1652017075 if test -n "$hardcode_libdir_flag_spec_CXX" ||
1652117076 test -n "$runpath_var_CXX" ||
1653917094 # directories.
1654017095 hardcode_action_CXX=unsupported
1654117096 fi
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16543 $as_echo "$hardcode_action_CXX" >&6; }
17097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17098 printf "%s\n" "$hardcode_action_CXX" >&6; }
1654417099
1654517100 if test relink = "$hardcode_action_CXX" ||
1654617101 test yes = "$inherit_rpath_CXX"; then
1662217177 "
1662317178 #AX_CHECK_COMPILE_FLAG(["-Wc90-c99-compat"],
1662417179 # [my_CFLAGS="$my_CFLAGS -Wc90-c99-compat"])
16625 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__"-Wc99-c11-compat"" | $as_tr_sh`
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Wc99-c11-compat\"" >&5
16627 $as_echo_n "checking whether C compiler accepts \"-Wc99-c11-compat\"... " >&6; }
16628 if eval \${$as_CACHEVAR+:} false; then :
16629 $as_echo_n "(cached) " >&6
16630 else
17180 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__"-Wc99-c11-compat"" | $as_tr_sh`
17181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Wc99-c11-compat\"" >&5
17182 printf %s "checking whether C compiler accepts \"-Wc99-c11-compat\"... " >&6; }
17183 if eval test \${$as_CACHEVAR+y}
17184 then :
17185 printf %s "(cached) " >&6
17186 else $as_nop
1663117187
1663217188 ax_check_save_flags=$CFLAGS
1663317189 CFLAGS="$CFLAGS "-Wc99-c11-compat""
1663517191 /* end confdefs.h. */
1663617192
1663717193 int
16638 main ()
17194 main (void)
1663917195 {
1664017196
1664117197 ;
1664217198 return 0;
1664317199 }
1664417200 _ACEOF
16645 if ac_fn_c_try_compile "$LINENO"; then :
17201 if ac_fn_c_try_compile "$LINENO"
17202 then :
1664617203 eval "$as_CACHEVAR=yes"
16647 else
17204 else $as_nop
1664817205 eval "$as_CACHEVAR=no"
1664917206 fi
16650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1665117208 CFLAGS=$ax_check_save_flags
1665217209 fi
1665317210 eval ac_res=\$$as_CACHEVAR
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16655 $as_echo "$ac_res" >&6; }
16656 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17212 printf "%s\n" "$ac_res" >&6; }
17213 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17214 then :
1665717215 my_CFLAGS="$my_CFLAGS -Wc99-c11-compat"
16658 else
17216 else $as_nop
1665917217 :
1666017218 fi
1666117219
16662 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__"-Werror=incompatible-pointer-types"" | $as_tr_sh`
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Werror=incompatible-pointer-types\"" >&5
16664 $as_echo_n "checking whether C compiler accepts \"-Werror=incompatible-pointer-types\"... " >&6; }
16665 if eval \${$as_CACHEVAR+:} false; then :
16666 $as_echo_n "(cached) " >&6
16667 else
17220 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__"-Werror=incompatible-pointer-types"" | $as_tr_sh`
17221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Werror=incompatible-pointer-types\"" >&5
17222 printf %s "checking whether C compiler accepts \"-Werror=incompatible-pointer-types\"... " >&6; }
17223 if eval test \${$as_CACHEVAR+y}
17224 then :
17225 printf %s "(cached) " >&6
17226 else $as_nop
1666817227
1666917228 ax_check_save_flags=$CFLAGS
1667017229 CFLAGS="$CFLAGS "-Werror=incompatible-pointer-types""
1667217231 /* end confdefs.h. */
1667317232
1667417233 int
16675 main ()
17234 main (void)
1667617235 {
1667717236
1667817237 ;
1667917238 return 0;
1668017239 }
1668117240 _ACEOF
16682 if ac_fn_c_try_compile "$LINENO"; then :
17241 if ac_fn_c_try_compile "$LINENO"
17242 then :
1668317243 eval "$as_CACHEVAR=yes"
16684 else
17244 else $as_nop
1668517245 eval "$as_CACHEVAR=no"
1668617246 fi
16687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1668817248 CFLAGS=$ax_check_save_flags
1668917249 fi
1669017250 eval ac_res=\$$as_CACHEVAR
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16692 $as_echo "$ac_res" >&6; }
16693 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17252 printf "%s\n" "$ac_res" >&6; }
17253 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17254 then :
1669417255 my_CFLAGS="$my_CFLAGS -Werror=incompatible-pointer-types"
16695 else
17256 else $as_nop
1669617257 :
1669717258 fi
1669817259
16699 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__"-Werror=int-conversion"" | $as_tr_sh`
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Werror=int-conversion\"" >&5
16701 $as_echo_n "checking whether C compiler accepts \"-Werror=int-conversion\"... " >&6; }
16702 if eval \${$as_CACHEVAR+:} false; then :
16703 $as_echo_n "(cached) " >&6
16704 else
17260 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__"-Werror=int-conversion"" | $as_tr_sh`
17261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Werror=int-conversion\"" >&5
17262 printf %s "checking whether C compiler accepts \"-Werror=int-conversion\"... " >&6; }
17263 if eval test \${$as_CACHEVAR+y}
17264 then :
17265 printf %s "(cached) " >&6
17266 else $as_nop
1670517267
1670617268 ax_check_save_flags=$CFLAGS
1670717269 CFLAGS="$CFLAGS "-Werror=int-conversion""
1670917271 /* end confdefs.h. */
1671017272
1671117273 int
16712 main ()
17274 main (void)
1671317275 {
1671417276
1671517277 ;
1671617278 return 0;
1671717279 }
1671817280 _ACEOF
16719 if ac_fn_c_try_compile "$LINENO"; then :
17281 if ac_fn_c_try_compile "$LINENO"
17282 then :
1672017283 eval "$as_CACHEVAR=yes"
16721 else
17284 else $as_nop
1672217285 eval "$as_CACHEVAR=no"
1672317286 fi
16724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1672517288 CFLAGS=$ax_check_save_flags
1672617289 fi
1672717290 eval ac_res=\$$as_CACHEVAR
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16729 $as_echo "$ac_res" >&6; }
16730 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17292 printf "%s\n" "$ac_res" >&6; }
17293 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17294 then :
1673117295 my_CFLAGS="$my_CFLAGS -Werror=int-conversion"
16732 else
17296 else $as_nop
1673317297 :
1673417298 fi
1673517299
16736 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__"-Wnull-dereference"" | $as_tr_sh`
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Wnull-dereference\"" >&5
16738 $as_echo_n "checking whether C compiler accepts \"-Wnull-dereference\"... " >&6; }
16739 if eval \${$as_CACHEVAR+:} false; then :
16740 $as_echo_n "(cached) " >&6
16741 else
17300 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__"-Wnull-dereference"" | $as_tr_sh`
17301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Wnull-dereference\"" >&5
17302 printf %s "checking whether C compiler accepts \"-Wnull-dereference\"... " >&6; }
17303 if eval test \${$as_CACHEVAR+y}
17304 then :
17305 printf %s "(cached) " >&6
17306 else $as_nop
1674217307
1674317308 ax_check_save_flags=$CFLAGS
1674417309 CFLAGS="$CFLAGS "-Wnull-dereference""
1674617311 /* end confdefs.h. */
1674717312
1674817313 int
16749 main ()
17314 main (void)
1675017315 {
1675117316
1675217317 ;
1675317318 return 0;
1675417319 }
1675517320 _ACEOF
16756 if ac_fn_c_try_compile "$LINENO"; then :
17321 if ac_fn_c_try_compile "$LINENO"
17322 then :
1675717323 eval "$as_CACHEVAR=yes"
16758 else
17324 else $as_nop
1675917325 eval "$as_CACHEVAR=no"
1676017326 fi
16761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1676217328 CFLAGS=$ax_check_save_flags
1676317329 fi
1676417330 eval ac_res=\$$as_CACHEVAR
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16766 $as_echo "$ac_res" >&6; }
16767 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17332 printf "%s\n" "$ac_res" >&6; }
17333 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17334 then :
1676817335 my_CFLAGS="$my_CFLAGS -Wnull-dereference"
16769 else
17336 else $as_nop
1677017337 :
1677117338 fi
1677217339
1677617343 do
1677717344 # Extract the first word of "$ac_prog", so it can be a program name with args.
1677817345 set dummy $ac_prog; ac_word=$2
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16780 $as_echo_n "checking for $ac_word... " >&6; }
16781 if ${ac_cv_prog_DOXYGEN+:} false; then :
16782 $as_echo_n "(cached) " >&6
16783 else
17346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17347 printf %s "checking for $ac_word... " >&6; }
17348 if test ${ac_cv_prog_DOXYGEN+y}
17349 then :
17350 printf %s "(cached) " >&6
17351 else $as_nop
1678417352 if test -n "$DOXYGEN"; then
1678517353 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
1678617354 else
1678817356 for as_dir in $PATH
1678917357 do
1679017358 IFS=$as_save_IFS
16791 test -z "$as_dir" && as_dir=.
17359 case $as_dir in #(((
17360 '') as_dir=./ ;;
17361 */) ;;
17362 *) as_dir=$as_dir/ ;;
17363 esac
1679217364 for ac_exec_ext in '' $ac_executable_extensions; do
16793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1679417366 ac_cv_prog_DOXYGEN="$ac_prog"
16795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1679617368 break 2
1679717369 fi
1679817370 done
1680317375 fi
1680417376 DOXYGEN=$ac_cv_prog_DOXYGEN
1680517377 if test -n "$DOXYGEN"; then
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16807 $as_echo "$DOXYGEN" >&6; }
17378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
17379 printf "%s\n" "$DOXYGEN" >&6; }
1680817380 else
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16810 $as_echo "no" >&6; }
17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17382 printf "%s\n" "no" >&6; }
1681117383 fi
1681217384
1681317385
1684117413 if test -n "$ac_tool_prefix"; then
1684217414 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
1684317415 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16845 $as_echo_n "checking for $ac_word... " >&6; }
16846 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16847 $as_echo_n "(cached) " >&6
16848 else
17416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17417 printf %s "checking for $ac_word... " >&6; }
17418 if test ${ac_cv_path_PKG_CONFIG+y}
17419 then :
17420 printf %s "(cached) " >&6
17421 else $as_nop
1684917422 case $PKG_CONFIG in
1685017423 [\\/]* | ?:[\\/]*)
1685117424 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1685517428 for as_dir in $PATH
1685617429 do
1685717430 IFS=$as_save_IFS
16858 test -z "$as_dir" && as_dir=.
17431 case $as_dir in #(((
17432 '') as_dir=./ ;;
17433 */) ;;
17434 *) as_dir=$as_dir/ ;;
17435 esac
1685917436 for ac_exec_ext in '' $ac_executable_extensions; do
16860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16861 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17438 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1686317440 break 2
1686417441 fi
1686517442 done
1687117448 fi
1687217449 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1687317450 if test -n "$PKG_CONFIG"; then
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16875 $as_echo "$PKG_CONFIG" >&6; }
17451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17452 printf "%s\n" "$PKG_CONFIG" >&6; }
1687617453 else
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16878 $as_echo "no" >&6; }
17454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17455 printf "%s\n" "no" >&6; }
1687917456 fi
1688017457
1688117458
1688417461 ac_pt_PKG_CONFIG=$PKG_CONFIG
1688517462 # Extract the first word of "pkg-config", so it can be a program name with args.
1688617463 set dummy pkg-config; ac_word=$2
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16888 $as_echo_n "checking for $ac_word... " >&6; }
16889 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16890 $as_echo_n "(cached) " >&6
16891 else
17464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17465 printf %s "checking for $ac_word... " >&6; }
17466 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
17467 then :
17468 printf %s "(cached) " >&6
17469 else $as_nop
1689217470 case $ac_pt_PKG_CONFIG in
1689317471 [\\/]* | ?:[\\/]*)
1689417472 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
1689817476 for as_dir in $PATH
1689917477 do
1690017478 IFS=$as_save_IFS
16901 test -z "$as_dir" && as_dir=.
17479 case $as_dir in #(((
17480 '') as_dir=./ ;;
17481 */) ;;
17482 *) as_dir=$as_dir/ ;;
17483 esac
1690217484 for ac_exec_ext in '' $ac_executable_extensions; do
16903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16904 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17486 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1690617488 break 2
1690717489 fi
1690817490 done
1691417496 fi
1691517497 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
1691617498 if test -n "$ac_pt_PKG_CONFIG"; then
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16918 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17500 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
1691917501 else
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16921 $as_echo "no" >&6; }
17502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17503 printf "%s\n" "no" >&6; }
1692217504 fi
1692317505
1692417506 if test "x$ac_pt_PKG_CONFIG" = x; then
1692617508 else
1692717509 case $cross_compiling:$ac_tool_warned in
1692817510 yes:)
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17512 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1693117513 ac_tool_warned=yes ;;
1693217514 esac
1693317515 PKG_CONFIG=$ac_pt_PKG_CONFIG
1693917521 fi
1694017522 if test -n "$PKG_CONFIG"; then
1694117523 _pkg_min_version=0.9.0
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16943 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17525 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
1694417526 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16946 $as_echo "yes" >&6; }
17527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17528 printf "%s\n" "yes" >&6; }
1694717529 else
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16949 $as_echo "no" >&6; }
17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17531 printf "%s\n" "no" >&6; }
1695017532 PKG_CONFIG=""
1695117533 fi
1695217534 fi
1695717539
1695817540
1695917541 # Check whether --with-pkgconfigdir was given.
16960 if test "${with_pkgconfigdir+set}" = set; then :
17542 if test ${with_pkgconfigdir+y}
17543 then :
1696117544 withval=$with_pkgconfigdir;
16962 else
17545 else $as_nop
1696317546 with_pkgconfigdir='${prefix}/libdata/pkgconfig'
1696417547 fi
1696517548
1697317556
1697417557
1697517558 # Check whether --with-pkgconfigdir was given.
16976 if test "${with_pkgconfigdir+set}" = set; then :
17559 if test ${with_pkgconfigdir+y}
17560 then :
1697717561 withval=$with_pkgconfigdir;
16978 else
17562 else $as_nop
1697917563 with_pkgconfigdir='${libdir}/pkgconfig'
1698017564 fi
1698117565
1699017574 proto3_supported="no"
1699117575
1699217576 # Check whether --enable-protoc was given.
16993 if test "${enable_protoc+set}" = set; then :
17577 if test ${enable_protoc+y}
17578 then :
1699417579 enableval=$enable_protoc;
1699517580 fi
1699617581
1701517600 if test x$ac_success = xno; then
1701617601 for alternative in ${ax_cxx_compile_alternatives}; do
1701717602 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
17018 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17020 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17021 if eval \${$cachevar+:} false; then :
17022 $as_echo_n "(cached) " >&6
17023 else
17603 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17605 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
17606 if eval test \${$cachevar+y}
17607 then :
17608 printf %s "(cached) " >&6
17609 else $as_nop
1702417610 ac_save_CXX="$CXX"
1702517611 CXX="$CXX $switch"
1702617612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731217898
1731317899
1731417900 _ACEOF
17315 if ac_fn_cxx_try_compile "$LINENO"; then :
17901 if ac_fn_cxx_try_compile "$LINENO"
17902 then :
1731617903 eval $cachevar=yes
17317 else
17904 else $as_nop
1731817905 eval $cachevar=no
1731917906 fi
17320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1732117908 CXX="$ac_save_CXX"
1732217909 fi
1732317910 eval ac_res=\$$cachevar
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17325 $as_echo "$ac_res" >&6; }
17911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17912 printf "%s\n" "$ac_res" >&6; }
1732617913 if eval test x\$$cachevar = xyes; then
1732717914 CXX="$CXX $switch"
1732817915 if test -n "$CXXCPP" ; then
1735017937 fi
1735117938 if test x$ac_success = xno; then
1735217939 HAVE_CXX11=0
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
17354 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
17940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
17941 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
1735517942 else
1735617943 HAVE_CXX11=1
1735717944
17358 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
17945 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
1735917946
1736017947 fi
1736117948
1736317950
1736417951
1736517952 pkg_failed=no
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for protobuf" >&5
17367 $as_echo_n "checking for protobuf... " >&6; }
17953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for protobuf" >&5
17954 printf %s "checking for protobuf... " >&6; }
1736817955
1736917956 if test -n "$protobuf_CFLAGS"; then
1737017957 pkg_cv_protobuf_CFLAGS="$protobuf_CFLAGS"
1737117958 elif test -n "$PKG_CONFIG"; then
1737217959 if test -n "$PKG_CONFIG" && \
17373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 3.0.0\""; } >&5
17960 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 3.0.0\""; } >&5
1737417961 ($PKG_CONFIG --exists --print-errors "protobuf >= 3.0.0") 2>&5
1737517962 ac_status=$?
17376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737717964 test $ac_status = 0; }; then
1737817965 pkg_cv_protobuf_CFLAGS=`$PKG_CONFIG --cflags "protobuf >= 3.0.0" 2>/dev/null`
1737917966 test "x$?" != "x0" && pkg_failed=yes
1738717974 pkg_cv_protobuf_LIBS="$protobuf_LIBS"
1738817975 elif test -n "$PKG_CONFIG"; then
1738917976 if test -n "$PKG_CONFIG" && \
17390 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 3.0.0\""; } >&5
17977 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 3.0.0\""; } >&5
1739117978 ($PKG_CONFIG --exists --print-errors "protobuf >= 3.0.0") 2>&5
1739217979 ac_status=$?
17393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739417981 test $ac_status = 0; }; then
1739517982 pkg_cv_protobuf_LIBS=`$PKG_CONFIG --libs "protobuf >= 3.0.0" 2>/dev/null`
1739617983 test "x$?" != "x0" && pkg_failed=yes
1740417991
1740517992
1740617993 if test $pkg_failed = yes; then
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17408 $as_echo "no" >&6; }
17994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17995 printf "%s\n" "no" >&6; }
1740917996
1741017997 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1741117998 _pkg_short_errors_supported=yes
1742218009
1742318010
1742418011 pkg_failed=no
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for protobuf" >&5
17426 $as_echo_n "checking for protobuf... " >&6; }
18012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for protobuf" >&5
18013 printf %s "checking for protobuf... " >&6; }
1742718014
1742818015 if test -n "$protobuf_CFLAGS"; then
1742918016 pkg_cv_protobuf_CFLAGS="$protobuf_CFLAGS"
1743018017 elif test -n "$PKG_CONFIG"; then
1743118018 if test -n "$PKG_CONFIG" && \
17432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
18019 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
1743318020 ($PKG_CONFIG --exists --print-errors "protobuf >= 2.6.0") 2>&5
1743418021 ac_status=$?
17435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743618023 test $ac_status = 0; }; then
1743718024 pkg_cv_protobuf_CFLAGS=`$PKG_CONFIG --cflags "protobuf >= 2.6.0" 2>/dev/null`
1743818025 test "x$?" != "x0" && pkg_failed=yes
1744618033 pkg_cv_protobuf_LIBS="$protobuf_LIBS"
1744718034 elif test -n "$PKG_CONFIG"; then
1744818035 if test -n "$PKG_CONFIG" && \
17449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
18036 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
1745018037 ($PKG_CONFIG --exists --print-errors "protobuf >= 2.6.0") 2>&5
1745118038 ac_status=$?
17452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745318040 test $ac_status = 0; }; then
1745418041 pkg_cv_protobuf_LIBS=`$PKG_CONFIG --libs "protobuf >= 2.6.0" 2>/dev/null`
1745518042 test "x$?" != "x0" && pkg_failed=yes
1746318050
1746418051
1746518052 if test $pkg_failed = yes; then
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17467 $as_echo "no" >&6; }
18053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18054 printf "%s\n" "no" >&6; }
1746818055
1746918056 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1747018057 _pkg_short_errors_supported=yes
1749018077 and protobuf_LIBS to avoid the need to call pkg-config.
1749118078 See the pkg-config man page for more details." "$LINENO" 5
1749218079 elif test $pkg_failed = untried; then
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17494 $as_echo "no" >&6; }
17495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18081 printf "%s\n" "no" >&6; }
18082 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18083 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1749718084 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
1749818085 is in your PATH or set the PKG_CONFIG environment variable to the full
1749918086 path to pkg-config.
1750718094 else
1750818095 protobuf_CFLAGS=$pkg_cv_protobuf_CFLAGS
1750918096 protobuf_LIBS=$pkg_cv_protobuf_LIBS
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17511 $as_echo "yes" >&6; }
18097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18098 printf "%s\n" "yes" >&6; }
1751218099
1751318100 fi
1751418101
1751518102 elif test $pkg_failed = untried; then
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17517 $as_echo "no" >&6; }
18103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18104 printf "%s\n" "no" >&6; }
1751818105
1751918106 pkg_failed=no
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for protobuf" >&5
17521 $as_echo_n "checking for protobuf... " >&6; }
18107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for protobuf" >&5
18108 printf %s "checking for protobuf... " >&6; }
1752218109
1752318110 if test -n "$protobuf_CFLAGS"; then
1752418111 pkg_cv_protobuf_CFLAGS="$protobuf_CFLAGS"
1752518112 elif test -n "$PKG_CONFIG"; then
1752618113 if test -n "$PKG_CONFIG" && \
17527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
18114 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
1752818115 ($PKG_CONFIG --exists --print-errors "protobuf >= 2.6.0") 2>&5
1752918116 ac_status=$?
17530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753118118 test $ac_status = 0; }; then
1753218119 pkg_cv_protobuf_CFLAGS=`$PKG_CONFIG --cflags "protobuf >= 2.6.0" 2>/dev/null`
1753318120 test "x$?" != "x0" && pkg_failed=yes
1754118128 pkg_cv_protobuf_LIBS="$protobuf_LIBS"
1754218129 elif test -n "$PKG_CONFIG"; then
1754318130 if test -n "$PKG_CONFIG" && \
17544 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
18131 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
1754518132 ($PKG_CONFIG --exists --print-errors "protobuf >= 2.6.0") 2>&5
1754618133 ac_status=$?
17547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754818135 test $ac_status = 0; }; then
1754918136 pkg_cv_protobuf_LIBS=`$PKG_CONFIG --libs "protobuf >= 2.6.0" 2>/dev/null`
1755018137 test "x$?" != "x0" && pkg_failed=yes
1755818145
1755918146
1756018147 if test $pkg_failed = yes; then
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17562 $as_echo "no" >&6; }
18148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18149 printf "%s\n" "no" >&6; }
1756318150
1756418151 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1756518152 _pkg_short_errors_supported=yes
1758518172 and protobuf_LIBS to avoid the need to call pkg-config.
1758618173 See the pkg-config man page for more details." "$LINENO" 5
1758718174 elif test $pkg_failed = untried; then
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17589 $as_echo "no" >&6; }
17590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18176 printf "%s\n" "no" >&6; }
18177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18178 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1759218179 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
1759318180 is in your PATH or set the PKG_CONFIG environment variable to the full
1759418181 path to pkg-config.
1760218189 else
1760318190 protobuf_CFLAGS=$pkg_cv_protobuf_CFLAGS
1760418191 protobuf_LIBS=$pkg_cv_protobuf_LIBS
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17606 $as_echo "yes" >&6; }
18192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18193 printf "%s\n" "yes" >&6; }
1760718194
1760818195 fi
1760918196
1761018197 else
1761118198 protobuf_CFLAGS=$pkg_cv_protobuf_CFLAGS
1761218199 protobuf_LIBS=$pkg_cv_protobuf_LIBS
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17614 $as_echo "yes" >&6; }
18200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18201 printf "%s\n" "yes" >&6; }
1761518202 proto3_supported=yes
1761618203 fi
1761718204
1761818205 save_CPPFLAGS="$CPPFLAGS"
1761918206 CPPFLAGS="$save_CPPFLAGS $protobuf_CFLAGS"
17620
17621 for ac_header in google/protobuf/compiler/command_line_interface.h
18207 for ac_header in google/protobuf/compiler/command_line_interface.h
1762218208 do :
17623 ac_fn_cxx_check_header_mongrel "$LINENO" "google/protobuf/compiler/command_line_interface.h" "ac_cv_header_google_protobuf_compiler_command_line_interface_h" "$ac_includes_default"
17624 if test "x$ac_cv_header_google_protobuf_compiler_command_line_interface_h" = xyes; then :
17625 cat >>confdefs.h <<_ACEOF
17626 #define HAVE_GOOGLE_PROTOBUF_COMPILER_COMMAND_LINE_INTERFACE_H 1
17627 _ACEOF
17628
17629 else
18209 ac_fn_cxx_check_header_compile "$LINENO" "google/protobuf/compiler/command_line_interface.h" "ac_cv_header_google_protobuf_compiler_command_line_interface_h" "$ac_includes_default"
18210 if test "x$ac_cv_header_google_protobuf_compiler_command_line_interface_h" = xyes
18211 then :
18212 printf "%s\n" "#define HAVE_GOOGLE_PROTOBUF_COMPILER_COMMAND_LINE_INTERFACE_H 1" >>confdefs.h
18213
18214 else $as_nop
1763018215 as_fn_error $? "required protobuf header file not found" "$LINENO" 5
1763118216 fi
1763218217
1763318218 done
17634
1763518219 CPPFLAGS="$save_CPPFLAGS"
1763618220
1763718221
1763818222 # Extract the first word of "protoc", so it can be a program name with args.
1763918223 set dummy protoc; ac_word=$2
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17641 $as_echo_n "checking for $ac_word... " >&6; }
17642 if ${ac_cv_path_PROTOC+:} false; then :
17643 $as_echo_n "(cached) " >&6
17644 else
18224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18225 printf %s "checking for $ac_word... " >&6; }
18226 if test ${ac_cv_path_PROTOC+y}
18227 then :
18228 printf %s "(cached) " >&6
18229 else $as_nop
1764518230 case $PROTOC in
1764618231 [\\/]* | ?:[\\/]*)
1764718232 ac_cv_path_PROTOC="$PROTOC" # Let the user override the test with a path.
1765218237 for as_dir in $as_dummy
1765318238 do
1765418239 IFS=$as_save_IFS
17655 test -z "$as_dir" && as_dir=.
18240 case $as_dir in #(((
18241 '') as_dir=./ ;;
18242 */) ;;
18243 *) as_dir=$as_dir/ ;;
18244 esac
1765618245 for ac_exec_ext in '' $ac_executable_extensions; do
17657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17658 ac_cv_path_PROTOC="$as_dir/$ac_word$ac_exec_ext"
17659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18247 ac_cv_path_PROTOC="$as_dir$ac_word$ac_exec_ext"
18248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1766018249 break 2
1766118250 fi
1766218251 done
1766818257 fi
1766918258 PROTOC=$ac_cv_path_PROTOC
1767018259 if test -n "$PROTOC"; then
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC" >&5
17672 $as_echo "$PROTOC" >&6; }
18260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC" >&5
18261 printf "%s\n" "$PROTOC" >&6; }
1767318262 else
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17675 $as_echo "no" >&6; }
18263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18264 printf "%s\n" "no" >&6; }
1767618265 fi
1767718266
1767818267
1771318302
1771418303 if test -z "$BUILD_PROTO3_TRUE"; then :
1771518304
17716 $as_echo "#define HAVE_PROTO3 1" >>confdefs.h
18305 printf "%s\n" "#define HAVE_PROTO3 1" >>confdefs.h
1771718306
1771818307 fi
1771918308
1772018309
1772118310 # Check whether --enable-ld-version-script was given.
17722 if test "${enable_ld_version_script+set}" = set; then :
18311 if test ${enable_ld_version_script+y}
18312 then :
1772318313 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
1772418314 fi
1772518315
1772618316 if test -z "$have_ld_version_script"; then
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
17728 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
18317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
18318 printf %s "checking if LD -Wl,--version-script works... " >&6; }
1772918319 save_LDFLAGS="$LDFLAGS"
1773018320 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
1773118321 cat > conftest.map <<EOF
1773518325 /* end confdefs.h. */
1773618326
1773718327 int
17738 main ()
18328 main (void)
1773918329 {
1774018330
1774118331 ;
1774218332 return 0;
1774318333 }
1774418334 _ACEOF
17745 if ac_fn_cxx_try_link "$LINENO"; then :
18335 if ac_fn_cxx_try_link "$LINENO"
18336 then :
1774618337 accepts_syntax_errors=yes
17747 else
18338 else $as_nop
1774818339 accepts_syntax_errors=no
1774918340 fi
17750 rm -f core conftest.err conftest.$ac_objext \
18341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1775118342 conftest$ac_exeext conftest.$ac_ext
1775218343 if test "$accepts_syntax_errors" = no; then
1775318344 cat > conftest.map <<EOF
1776318354 /* end confdefs.h. */
1776418355
1776518356 int
17766 main ()
18357 main (void)
1776718358 {
1776818359
1776918360 ;
1777018361 return 0;
1777118362 }
1777218363 _ACEOF
17773 if ac_fn_cxx_try_link "$LINENO"; then :
18364 if ac_fn_cxx_try_link "$LINENO"
18365 then :
1777418366 have_ld_version_script=yes
17775 else
18367 else $as_nop
1777618368 have_ld_version_script=no
1777718369 fi
17778 rm -f core conftest.err conftest.$ac_objext \
18370 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1777918371 conftest$ac_exeext conftest.$ac_ext
1778018372 else
1778118373 have_ld_version_script=no
1778218374 fi
1778318375 rm -f conftest.map
1778418376 LDFLAGS="$save_LDFLAGS"
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
17786 $as_echo "$have_ld_version_script" >&6; }
18377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
18378 printf "%s\n" "$have_ld_version_script" >&6; }
1778718379 fi
1778818380 if test "$have_ld_version_script" = "yes"; then
1778918381 HAVE_LD_VERSION_SCRIPT_TRUE=
1779718389
1779818390
1779918391 # Check whether --enable-valgrind-tests was given.
17800 if test "${enable_valgrind_tests+set}" = set; then :
18392 if test ${enable_valgrind_tests+y}
18393 then :
1780118394 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
17802 else
18395 else $as_nop
1780318396 opt_valgrind_tests=no
1780418397 fi
1780518398
1781018403 do
1781118404 # Extract the first word of "$ac_prog", so it can be a program name with args.
1781218405 set dummy $ac_prog; ac_word=$2
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17814 $as_echo_n "checking for $ac_word... " >&6; }
17815 if ${ac_cv_prog_VALGRIND+:} false; then :
17816 $as_echo_n "(cached) " >&6
17817 else
18406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18407 printf %s "checking for $ac_word... " >&6; }
18408 if test ${ac_cv_prog_VALGRIND+y}
18409 then :
18410 printf %s "(cached) " >&6
18411 else $as_nop
1781818412 if test -n "$VALGRIND"; then
1781918413 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
1782018414 else
1782218416 for as_dir in $PATH
1782318417 do
1782418418 IFS=$as_save_IFS
17825 test -z "$as_dir" && as_dir=.
18419 case $as_dir in #(((
18420 '') as_dir=./ ;;
18421 */) ;;
18422 *) as_dir=$as_dir/ ;;
18423 esac
1782618424 for ac_exec_ext in '' $ac_executable_extensions; do
17827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18425 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1782818426 ac_cv_prog_VALGRIND="$ac_prog"
17829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1783018428 break 2
1783118429 fi
1783218430 done
1783718435 fi
1783818436 VALGRIND=$ac_cv_prog_VALGRIND
1783918437 if test -n "$VALGRIND"; then
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
17841 $as_echo "$VALGRIND" >&6; }
18438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
18439 printf "%s\n" "$VALGRIND" >&6; }
1784218440 else
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17844 $as_echo "no" >&6; }
18441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18442 printf "%s\n" "no" >&6; }
1784518443 fi
1784618444
1784718445
1785918457 VALGRIND=
1786018458 fi
1786118459
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
17863 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
17865 $as_echo "$opt_valgrind_tests" >&6; }
17866
17867
17868
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
17870 $as_echo_n "checking whether to build with code coverage support... " >&6; }
18460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
18461 printf %s "checking whether self tests are run under valgrind... " >&6; }
18462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
18463 printf "%s\n" "$opt_valgrind_tests" >&6; }
18464
18465
18466
18467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
18468 printf %s "checking whether to build with code coverage support... " >&6; }
1787118469 # Check whether --enable-code-coverage was given.
17872 if test "${enable_code_coverage+set}" = set; then :
18470 if test ${enable_code_coverage+y}
18471 then :
1787318472 enableval=$enable_code_coverage;
17874 else
18473 else $as_nop
1787518474 enable_code_coverage=no
1787618475 fi
1787718476
1788518484
1788618485 CODE_COVERAGE_ENABLED=$enable_code_coverage
1788718486
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
17889 $as_echo "$enable_code_coverage" >&6; }
17890
17891 if test "$enable_code_coverage" = "yes" ; then :
17892
17893 if test "$GCC" = "no" ; then :
18487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
18488 printf "%s\n" "$enable_code_coverage" >&6; }
18489
18490 if test "$enable_code_coverage" = "yes"
18491 then :
18492
18493 if test "$GCC" = "no"
18494 then :
1789418495
1789518496 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
1789618497
1789818499
1789918500 # Extract the first word of "lcov", so it can be a program name with args.
1790018501 set dummy lcov; ac_word=$2
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17902 $as_echo_n "checking for $ac_word... " >&6; }
17903 if ${ac_cv_prog_LCOV+:} false; then :
17904 $as_echo_n "(cached) " >&6
17905 else
18502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18503 printf %s "checking for $ac_word... " >&6; }
18504 if test ${ac_cv_prog_LCOV+y}
18505 then :
18506 printf %s "(cached) " >&6
18507 else $as_nop
1790618508 if test -n "$LCOV"; then
1790718509 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
1790818510 else
1791018512 for as_dir in $PATH
1791118513 do
1791218514 IFS=$as_save_IFS
17913 test -z "$as_dir" && as_dir=.
18515 case $as_dir in #(((
18516 '') as_dir=./ ;;
18517 */) ;;
18518 *) as_dir=$as_dir/ ;;
18519 esac
1791418520 for ac_exec_ext in '' $ac_executable_extensions; do
17915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1791618522 ac_cv_prog_LCOV="lcov"
17917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1791818524 break 2
1791918525 fi
1792018526 done
1792518531 fi
1792618532 LCOV=$ac_cv_prog_LCOV
1792718533 if test -n "$LCOV"; then
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
17929 $as_echo "$LCOV" >&6; }
18534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
18535 printf "%s\n" "$LCOV" >&6; }
1793018536 else
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17932 $as_echo "no" >&6; }
18537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18538 printf "%s\n" "no" >&6; }
1793318539 fi
1793418540
1793518541
1793618542 # Extract the first word of "genhtml", so it can be a program name with args.
1793718543 set dummy genhtml; ac_word=$2
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17939 $as_echo_n "checking for $ac_word... " >&6; }
17940 if ${ac_cv_prog_GENHTML+:} false; then :
17941 $as_echo_n "(cached) " >&6
17942 else
18544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18545 printf %s "checking for $ac_word... " >&6; }
18546 if test ${ac_cv_prog_GENHTML+y}
18547 then :
18548 printf %s "(cached) " >&6
18549 else $as_nop
1794318550 if test -n "$GENHTML"; then
1794418551 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
1794518552 else
1794718554 for as_dir in $PATH
1794818555 do
1794918556 IFS=$as_save_IFS
17950 test -z "$as_dir" && as_dir=.
18557 case $as_dir in #(((
18558 '') as_dir=./ ;;
18559 */) ;;
18560 *) as_dir=$as_dir/ ;;
18561 esac
1795118562 for ac_exec_ext in '' $ac_executable_extensions; do
17952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1795318564 ac_cv_prog_GENHTML="genhtml"
17954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1795518566 break 2
1795618567 fi
1795718568 done
1796218573 fi
1796318574 GENHTML=$ac_cv_prog_GENHTML
1796418575 if test -n "$GENHTML"; then
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
17966 $as_echo "$GENHTML" >&6; }
18576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
18577 printf "%s\n" "$GENHTML" >&6; }
1796718578 else
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17969 $as_echo "no" >&6; }
17970 fi
17971
17972
17973
17974 if test -z "$LCOV" ; then :
18579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18580 printf "%s\n" "no" >&6; }
18581 fi
18582
18583
18584
18585 if test -z "$LCOV"
18586 then :
1797518587
1797618588 as_fn_error $? "The lcov program was not found. Please install lcov!" "$LINENO" 5
1797718589
1797818590 fi
1797918591
17980 if test -z "$GENHTML" ; then :
18592 if test -z "$GENHTML"
18593 then :
1798118594
1798218595 as_fn_error $? "The genhtml program was not found. Please install lcov!" "$LINENO" 5
1798318596
1807418687
1807518688
1807618689
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18078 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18079 if ${ac_cv_c_bigendian+:} false; then :
18080 $as_echo_n "(cached) " >&6
18081 else
18690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18691 printf %s "checking whether byte ordering is bigendian... " >&6; }
18692 if test ${ac_cv_c_bigendian+y}
18693 then :
18694 printf %s "(cached) " >&6
18695 else $as_nop
1808218696 ac_cv_c_bigendian=unknown
1808318697 # See if we're dealing with a universal compiler.
1808418698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808918703 typedef int dummy;
1809018704
1809118705 _ACEOF
18092 if ac_fn_cxx_try_compile "$LINENO"; then :
18706 if ac_fn_cxx_try_compile "$LINENO"
18707 then :
1809318708
1809418709 # Check for potential -arch flags. It is not universal unless
1809518710 # there are at least two -arch flags with different values.
1811318728 fi
1811418729 done
1811518730 fi
18116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1811718732 if test $ac_cv_c_bigendian = unknown; then
1811818733 # See if sys/param.h defines the BYTE_ORDER macro.
1811918734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812218737 #include <sys/param.h>
1812318738
1812418739 int
18125 main ()
18740 main (void)
1812618741 {
1812718742 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
1812818743 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
1813418749 return 0;
1813518750 }
1813618751 _ACEOF
18137 if ac_fn_cxx_try_compile "$LINENO"; then :
18752 if ac_fn_cxx_try_compile "$LINENO"
18753 then :
1813818754 # It does; now see whether it defined to BIG_ENDIAN or not.
1813918755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814018756 /* end confdefs.h. */
1814218758 #include <sys/param.h>
1814318759
1814418760 int
18145 main ()
18761 main (void)
1814618762 {
1814718763 #if BYTE_ORDER != BIG_ENDIAN
1814818764 not big endian
1815218768 return 0;
1815318769 }
1815418770 _ACEOF
18155 if ac_fn_cxx_try_compile "$LINENO"; then :
18771 if ac_fn_cxx_try_compile "$LINENO"
18772 then :
1815618773 ac_cv_c_bigendian=yes
18157 else
18774 else $as_nop
1815818775 ac_cv_c_bigendian=no
1815918776 fi
18160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18161 fi
18162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18778 fi
18779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1816318780 fi
1816418781 if test $ac_cv_c_bigendian = unknown; then
1816518782 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
1816818785 #include <limits.h>
1816918786
1817018787 int
18171 main ()
18788 main (void)
1817218789 {
1817318790 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
1817418791 bogus endian macros
1817818795 return 0;
1817918796 }
1818018797 _ACEOF
18181 if ac_fn_cxx_try_compile "$LINENO"; then :
18798 if ac_fn_cxx_try_compile "$LINENO"
18799 then :
1818218800 # It does; now see whether it defined to _BIG_ENDIAN or not.
1818318801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818418802 /* end confdefs.h. */
1818518803 #include <limits.h>
1818618804
1818718805 int
18188 main ()
18806 main (void)
1818918807 {
1819018808 #ifndef _BIG_ENDIAN
1819118809 not big endian
1819518813 return 0;
1819618814 }
1819718815 _ACEOF
18198 if ac_fn_cxx_try_compile "$LINENO"; then :
18816 if ac_fn_cxx_try_compile "$LINENO"
18817 then :
1819918818 ac_cv_c_bigendian=yes
18200 else
18819 else $as_nop
1820118820 ac_cv_c_bigendian=no
1820218821 fi
18203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18204 fi
18205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18823 fi
18824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1820618825 fi
1820718826 if test $ac_cv_c_bigendian = unknown; then
1820818827 # Compile a test program.
18209 if test "$cross_compiling" = yes; then :
18828 if test "$cross_compiling" = yes
18829 then :
1821018830 # Try to guess by grepping values from an object file.
1821118831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821218832 /* end confdefs.h. */
18213 short int ascii_mm[] =
18833 unsigned short int ascii_mm[] =
1821418834 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18215 short int ascii_ii[] =
18835 unsigned short int ascii_ii[] =
1821618836 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
1821718837 int use_ascii (int i) {
1821818838 return ascii_mm[i] + ascii_ii[i];
1821918839 }
18220 short int ebcdic_ii[] =
18840 unsigned short int ebcdic_ii[] =
1822118841 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18222 short int ebcdic_mm[] =
18842 unsigned short int ebcdic_mm[] =
1822318843 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
1822418844 int use_ebcdic (int i) {
1822518845 return ebcdic_mm[i] + ebcdic_ii[i];
1822718847 extern int foo;
1822818848
1822918849 int
18230 main ()
18850 main (void)
1823118851 {
1823218852 return use_ascii (foo) == use_ebcdic (foo);
1823318853 ;
1823418854 return 0;
1823518855 }
1823618856 _ACEOF
18237 if ac_fn_cxx_try_compile "$LINENO"; then :
18857 if ac_fn_cxx_try_compile "$LINENO"
18858 then :
1823818859 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
1823918860 ac_cv_c_bigendian=yes
1824018861 fi
1824718868 fi
1824818869 fi
1824918870 fi
18250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18251 else
18871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18872 else $as_nop
1825218873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825318874 /* end confdefs.h. */
1825418875 $ac_includes_default
1825518876 int
18256 main ()
18877 main (void)
1825718878 {
1825818879
1825918880 /* Are we little or big endian? From Harbison&Steele. */
1826918890 return 0;
1827018891 }
1827118892 _ACEOF
18272 if ac_fn_cxx_try_run "$LINENO"; then :
18893 if ac_fn_cxx_try_run "$LINENO"
18894 then :
1827318895 ac_cv_c_bigendian=no
18274 else
18896 else $as_nop
1827518897 ac_cv_c_bigendian=yes
1827618898 fi
1827718899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1828018902
1828118903 fi
1828218904 fi
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18284 $as_echo "$ac_cv_c_bigendian" >&6; }
18905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18906 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
1828518907 case $ac_cv_c_bigendian in #(
1828618908 yes)
18287 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18909 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
1828818910 ;; #(
1828918911 no)
1829018912 ;; #(
1829118913 universal)
1829218914
18293 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18915 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1829418916
1829518917 ;; #(
1829618918 *)
1832618948 case $ac_val in #(
1832718949 *${as_nl}*)
1832818950 case $ac_var in #(
18329 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18951 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18952 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1833118953 esac
1833218954 case $ac_var in #(
1833318955 _ | IFS | as_nl) ;; #(
1835718979 /^ac_cv_env_/b end
1835818980 t clear
1835918981 :clear
18360 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18982 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1836118983 t end
1836218984 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1836318985 :end' >>confcache
1836418986 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1836518987 if test -w "$cache_file"; then
1836618988 if test "x$cache_file" != "x/dev/null"; then
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18368 $as_echo "$as_me: updating cache $cache_file" >&6;}
18989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18990 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1836918991 if test ! -f "$cache_file" || test -h "$cache_file"; then
1837018992 cat confcache >"$cache_file"
1837118993 else
1837919001 fi
1838019002 fi
1838119003 else
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18383 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19005 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1838419006 fi
1838519007 fi
1838619008 rm -f confcache
1839719019 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1839819020 # 1. Remove the extension, and $U if already installed.
1839919021 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18400 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19022 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1840119023 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
1840219024 # will be set to the directory where LIBOBJS objects are built.
1840319025 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1840819030 LTLIBOBJS=$ac_ltlibobjs
1840919031
1841019032
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18412 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19034 printf %s "checking that generated files are newer than configure... " >&6; }
1841319035 if test -n "$am_sleep_pid"; then
1841419036 # Hide warnings about reused PIDs.
1841519037 wait $am_sleep_pid 2>/dev/null
1841619038 fi
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18418 $as_echo "done" >&6; }
19039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19040 printf "%s\n" "done" >&6; }
1841919041 if test -n "$EXEEXT"; then
1842019042 am__EXEEXT_TRUE=
1842119043 am__EXEEXT_FALSE='#'
1846619088 ac_write_fail=0
1846719089 ac_clean_files_save=$ac_clean_files
1846819090 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18470 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19092 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1847119093 as_write_fail=0
1847219094 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1847319095 #! $SHELL
1849019112
1849119113 # Be more Bourne compatible
1849219114 DUALCASE=1; export DUALCASE # for MKS sh
18493 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19115 as_nop=:
19116 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19117 then :
1849419118 emulate sh
1849519119 NULLCMD=:
1849619120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1849719121 # is contrary to our usage. Disable this feature.
1849819122 alias -g '${1+"$@"}'='"$@"'
1849919123 setopt NO_GLOB_SUBST
18500 else
19124 else $as_nop
1850119125 case `(set -o) 2>/dev/null` in #(
1850219126 *posix*) :
1850319127 set -o posix ;; #(
1850719131 fi
1850819132
1850919133
19134
19135 # Reset variables that may have inherited troublesome values from
19136 # the environment.
19137
19138 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19139 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19140 # side effect of setting IFS to empty, thus disabling word splitting.)
19141 # Quoting is to prevent editors from complaining about space-tab.
1851019142 as_nl='
1851119143 '
1851219144 export as_nl
18513 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18514 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18515 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18516 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18517 # Prefer a ksh shell builtin over an external printf program on Solaris,
18518 # but without wasting forks for bash or zsh.
18519 if test -z "$BASH_VERSION$ZSH_VERSION" \
18520 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18521 as_echo='print -r --'
18522 as_echo_n='print -rn --'
18523 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18524 as_echo='printf %s\n'
18525 as_echo_n='printf %s'
18526 else
18527 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18528 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18529 as_echo_n='/usr/ucb/echo -n'
18530 else
18531 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18532 as_echo_n_body='eval
18533 arg=$1;
18534 case $arg in #(
18535 *"$as_nl"*)
18536 expr "X$arg" : "X\\(.*\\)$as_nl";
18537 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18538 esac;
18539 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18540 '
18541 export as_echo_n_body
18542 as_echo_n='sh -c $as_echo_n_body as_echo'
18543 fi
18544 export as_echo_body
18545 as_echo='sh -c $as_echo_body as_echo'
18546 fi
19145 IFS=" "" $as_nl"
19146
19147 PS1='$ '
19148 PS2='> '
19149 PS4='+ '
19150
19151 # Ensure predictable behavior from utilities with locale-dependent output.
19152 LC_ALL=C
19153 export LC_ALL
19154 LANGUAGE=C
19155 export LANGUAGE
19156
19157 # We cannot yet rely on "unset" to work, but we need these variables
19158 # to be unset--not just set to an empty or harmless value--now, to
19159 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19160 # also avoids known problems related to "unset" and subshell syntax
19161 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19162 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19163 do eval test \${$as_var+y} \
19164 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19165 done
19166
19167 # Ensure that fds 0, 1, and 2 are open.
19168 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19169 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19170 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1854719171
1854819172 # The user is always right.
18549 if test "${PATH_SEPARATOR+set}" != set; then
19173 if ${PATH_SEPARATOR+false} :; then
1855019174 PATH_SEPARATOR=:
1855119175 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
1855219176 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
1855419178 }
1855519179 fi
1855619180
18557
18558 # IFS
18559 # We need space, tab and new line, in precisely that order. Quoting is
18560 # there to prevent editors from complaining about space-tab.
18561 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18562 # splitting by setting IFS to empty value.)
18563 IFS=" "" $as_nl"
1856419181
1856519182 # Find who we are. Look in the path if we contain no directory separator.
1856619183 as_myself=
1857019187 for as_dir in $PATH
1857119188 do
1857219189 IFS=$as_save_IFS
18573 test -z "$as_dir" && as_dir=.
18574 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19190 case $as_dir in #(((
19191 '') as_dir=./ ;;
19192 */) ;;
19193 *) as_dir=$as_dir/ ;;
19194 esac
19195 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1857519196 done
1857619197 IFS=$as_save_IFS
1857719198
1858319204 as_myself=$0
1858419205 fi
1858519206 if test ! -f "$as_myself"; then
18586 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19207 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1858719208 exit 1
1858819209 fi
1858919210
18590 # Unset variables that we do not need and which cause bugs (e.g. in
18591 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18592 # suppresses any "Segmentation fault" message there. '((' could
18593 # trigger a bug in pdksh 5.2.14.
18594 for as_var in BASH_ENV ENV MAIL MAILPATH
18595 do eval test x\${$as_var+set} = xset \
18596 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18597 done
18598 PS1='$ '
18599 PS2='> '
18600 PS4='+ '
18601
18602 # NLS nuisances.
18603 LC_ALL=C
18604 export LC_ALL
18605 LANGUAGE=C
18606 export LANGUAGE
18607
18608 # CDPATH.
18609 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1861019211
1861119212
1861219213 # as_fn_error STATUS ERROR [LINENO LOG_FD]
1861919220 as_status=$1; test $as_status -eq 0 && as_status=1
1862019221 if test "$4"; then
1862119222 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18622 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1862319224 fi
18624 $as_echo "$as_me: error: $2" >&2
19225 printf "%s\n" "$as_me: error: $2" >&2
1862519226 as_fn_exit $as_status
1862619227 } # as_fn_error
19228
1862719229
1862819230
1862919231 # as_fn_set_status STATUS
1865219254 { eval $1=; unset $1;}
1865319255 }
1865419256 as_unset=as_fn_unset
19257
1865519258 # as_fn_append VAR VALUE
1865619259 # ----------------------
1865719260 # Append the text in VALUE to the end of the definition contained in VAR. Take
1865819261 # advantage of any shell optimizations that allow amortized linear growth over
1865919262 # repeated appends, instead of the typical quadratic growth present in naive
1866019263 # implementations.
18661 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19264 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19265 then :
1866219266 eval 'as_fn_append ()
1866319267 {
1866419268 eval $1+=\$2
1866519269 }'
18666 else
19270 else $as_nop
1866719271 as_fn_append ()
1866819272 {
1866919273 eval $1=\$$1\$2
1867519279 # Perform arithmetic evaluation on the ARGs, and store the result in the
1867619280 # global $as_val. Take advantage of shells that can avoid forks. The arguments
1867719281 # must be portable across $(()) and expr.
18678 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19282 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19283 then :
1867919284 eval 'as_fn_arith ()
1868019285 {
1868119286 as_val=$(( $* ))
1868219287 }'
18683 else
19288 else $as_nop
1868419289 as_fn_arith ()
1868519290 {
1868619291 as_val=`expr "$@" || test $? -eq 1`
1871119316 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1871219317 X"$0" : 'X\(//\)$' \| \
1871319318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18714 $as_echo X/"$0" |
19319 printf "%s\n" X/"$0" |
1871519320 sed '/^.*\/\([^/][^/]*\)\/*$/{
1871619321 s//\1/
1871719322 q
1873319338 as_cr_digits='0123456789'
1873419339 as_cr_alnum=$as_cr_Letters$as_cr_digits
1873519340
19341
19342 # Determine whether it's possible to make 'echo' print without a newline.
19343 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19344 # for compatibility with existing Makefiles.
1873619345 ECHO_C= ECHO_N= ECHO_T=
1873719346 case `echo -n x` in #(((((
1873819347 -n*)
1874519354 *)
1874619355 ECHO_N='-n';;
1874719356 esac
19357
19358 # For backward compatibility with old third-party macros, we provide
19359 # the shell variables $as_echo and $as_echo_n. New code should use
19360 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19361 as_echo='printf %s\n'
19362 as_echo_n='printf %s'
1874819363
1874919364 rm -f conf$$ conf$$.exe conf$$.file
1875019365 if test -d conf$$.dir; then
1878719402 as_dirs=
1878819403 while :; do
1878919404 case $as_dir in #(
18790 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19405 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1879119406 *) as_qdir=$as_dir;;
1879219407 esac
1879319408 as_dirs="'$as_qdir' $as_dirs"
1879619411 X"$as_dir" : 'X\(//\)[^/]' \| \
1879719412 X"$as_dir" : 'X\(//\)$' \| \
1879819413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18799 $as_echo X"$as_dir" |
19414 printf "%s\n" X"$as_dir" |
1880019415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1880119416 s//\1/
1880219417 q
1885819473 # report actual input values of CONFIG_FILES etc. instead of their
1885919474 # values after options handling.
1886019475 ac_log="
18861 This file was extended by protobuf-c $as_me 1.3.3, which was
18862 generated by GNU Autoconf 2.69. Invocation command line was
19476 This file was extended by protobuf-c $as_me 1.4.0, which was
19477 generated by GNU Autoconf 2.71. Invocation command line was
1886319478
1886419479 CONFIG_FILES = $CONFIG_FILES
1886519480 CONFIG_HEADERS = $CONFIG_HEADERS
1892219537 protobuf-c home page: <https://github.com/protobuf-c/protobuf-c>."
1892319538
1892419539 _ACEOF
19540 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19541 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1892519542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18926 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19543 ac_cs_config='$ac_cs_config_escaped'
1892719544 ac_cs_version="\\
18928 protobuf-c config.status 1.3.3
18929 configured by $0, generated by GNU Autoconf 2.69,
19545 protobuf-c config.status 1.4.0
19546 configured by $0, generated by GNU Autoconf 2.71,
1893019547 with options \\"\$ac_cs_config\\"
1893119548
18932 Copyright (C) 2012 Free Software Foundation, Inc.
19549 Copyright (C) 2021 Free Software Foundation, Inc.
1893319550 This config.status script is free software; the Free Software Foundation
1893419551 gives unlimited permission to copy, distribute and modify it."
1893519552
1896919586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1897019587 ac_cs_recheck=: ;;
1897119588 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18972 $as_echo "$ac_cs_version"; exit ;;
19589 printf "%s\n" "$ac_cs_version"; exit ;;
1897319590 --config | --confi | --conf | --con | --co | --c )
18974 $as_echo "$ac_cs_config"; exit ;;
19591 printf "%s\n" "$ac_cs_config"; exit ;;
1897519592 --debug | --debu | --deb | --de | --d | -d )
1897619593 debug=: ;;
1897719594 --file | --fil | --fi | --f )
1897819595 $ac_shift
1897919596 case $ac_optarg in
18980 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19597 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898119598 '') as_fn_error $? "missing file argument" ;;
1898219599 esac
1898319600 as_fn_append CONFIG_FILES " '$ac_optarg'"
1898519602 --header | --heade | --head | --hea )
1898619603 $ac_shift
1898719604 case $ac_optarg in
18988 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19605 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898919606 esac
1899019607 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1899119608 ac_need_defaults=false;;
1899419611 as_fn_error $? "ambiguous option: \`$1'
1899519612 Try \`$0 --help' for more information.";;
1899619613 --help | --hel | -h )
18997 $as_echo "$ac_cs_usage"; exit ;;
19614 printf "%s\n" "$ac_cs_usage"; exit ;;
1899819615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1899919616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
1900019617 ac_cs_silent=: ;;
1902219639 if \$ac_cs_recheck; then
1902319640 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1902419641 shift
19025 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19642 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1902619643 CONFIG_SHELL='$SHELL'
1902719644 export CONFIG_SHELL
1902819645 exec "\$@"
1903619653 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1903719654 ## Running $as_me. ##
1903819655 _ASBOX
19039 $as_echo "$ac_log"
19656 printf "%s\n" "$ac_log"
1904019657 } >&5
1904119658
1904219659 _ACEOF
1945220069 # We use the long form for the default assignment because of an extremely
1945320070 # bizarre bug on SunOS 4.1.3.
1945420071 if $ac_need_defaults; then
19455 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19456 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19457 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20072 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20073 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20074 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1945820075 fi
1945920076
1946020077 # Have a temporary directory for convenience. Make it in the build tree
1979020407 esac ||
1979120408 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1979220409 esac
19793 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20410 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1979420411 as_fn_append ac_file_inputs " '$ac_f'"
1979520412 done
1979620413
1979820415 # use $as_me), people would be surprised to read:
1979920416 # /* config.h. Generated by config.status. */
1980020417 configure_input='Generated from '`
19801 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20418 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1980220419 `' by configure.'
1980320420 if test x"$ac_file" != x-; then
1980420421 configure_input="$ac_file. $configure_input"
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19806 $as_echo "$as_me: creating $ac_file" >&6;}
20422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20423 printf "%s\n" "$as_me: creating $ac_file" >&6;}
1980720424 fi
1980820425 # Neutralize special characters interpreted by sed in replacement strings.
1980920426 case $configure_input in #(
1981020427 *\&* | *\|* | *\\* )
19811 ac_sed_conf_input=`$as_echo "$configure_input" |
20428 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1981220429 sed 's/[\\\\&|]/\\\\&/g'`;; #(
1981320430 *) ac_sed_conf_input=$configure_input;;
1981420431 esac
1982520442 X"$ac_file" : 'X\(//\)[^/]' \| \
1982620443 X"$ac_file" : 'X\(//\)$' \| \
1982720444 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19828 $as_echo X"$ac_file" |
20445 printf "%s\n" X"$ac_file" |
1982920446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1983020447 s//\1/
1983120448 q
1984920466 case "$ac_dir" in
1985020467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1985120468 *)
19852 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20469 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1985320470 # A ".." for each directory in $ac_dir_suffix.
19854 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20471 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1985520472 case $ac_top_builddir_sub in
1985620473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1985720474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1991320530 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1991420531 *datarootdir*) ac_datarootdir_seen=yes;;
1991520532 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19917 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20534 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1991820535 _ACEOF
1991920536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1992020537 ac_datarootdir_hack='
1995820575 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1995920576 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
1996020577 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1996220579 which seems to be undefined. Please make sure it is defined" >&5
19963 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20580 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1996420581 which seems to be undefined. Please make sure it is defined" >&2;}
1996520582
1996620583 rm -f "$ac_tmp/stdin"
1997620593 #
1997720594 if test x"$ac_file" != x-; then
1997820595 {
19979 $as_echo "/* $configure_input */" \
20596 printf "%s\n" "/* $configure_input */" >&1 \
1998020597 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1998120598 } >"$ac_tmp/config.h" \
1998220599 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1998320600 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19985 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20602 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1998620603 else
1998720604 rm -f "$ac_file"
1998820605 mv "$ac_tmp/config.h" "$ac_file" \
1998920606 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1999020607 fi
1999120608 else
19992 $as_echo "/* $configure_input */" \
20609 printf "%s\n" "/* $configure_input */" >&1 \
1999320610 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1999420611 || as_fn_error $? "could not create -" "$LINENO" 5
1999520612 fi
2000920626 X"$_am_arg" : 'X\(//\)[^/]' \| \
2001020627 X"$_am_arg" : 'X\(//\)$' \| \
2001120628 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20012 $as_echo X"$_am_arg" |
20629 printf "%s\n" X"$_am_arg" |
2001320630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2001420631 s//\1/
2001520632 q
2002920646 s/.*/./; q'`/stamp-h$_am_stamp_count
2003020647 ;;
2003120648
20032 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20033 $as_echo "$as_me: executing $ac_file commands" >&6;}
20649 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20650 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
2003420651 ;;
2003520652 esac
2003620653
2005620673 for am_mf
2005720674 do
2005820675 # Strip MF so we end up with the name of the file.
20059 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20676 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
2006020677 # Check whether this is an Automake generated Makefile which includes
2006120678 # dependency-tracking related rules and includes.
2006220679 # Grep'ing the whole file directly is not great: AIX grep has a line
2006820685 X"$am_mf" : 'X\(//\)[^/]' \| \
2006920686 X"$am_mf" : 'X\(//\)$' \| \
2007020687 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20071 $as_echo X"$am_mf" |
20688 printf "%s\n" X"$am_mf" |
2007220689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2007320690 s//\1/
2007420691 q
2009020707 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
2009120708 X"$am_mf" : 'X\(//\)$' \| \
2009220709 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20093 $as_echo X/"$am_mf" |
20710 printf "%s\n" X/"$am_mf" |
2009420711 sed '/^.*\/\([^/][^/]*\)\/*$/{
2009520712 s//\1/
2009620713 q
2011520732 (exit $ac_status); } || am_rc=$?
2011620733 done
2011720734 if test $am_rc -ne 0; then
20118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20735 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20736 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2012020737 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20121 for automatic dependency tracking. Try re-running configure with the
20738 for automatic dependency tracking. If GNU make was not used, consider
20739 re-running the configure script with MAKE=\"gmake\" (or whatever is
20740 necessary). You can also try re-running configure with the
2012220741 '--disable-dependency-tracking' option to at least be able to build
2012320742 the package (albeit without support for automatic dependency tracking).
2012420743 See \`config.log' for more details" "$LINENO" 5; }
2067121290 esac
2067221291
2067321292
21293
2067421294 ltmain=$ac_aux_dir/ltmain.sh
2067521295
2067621296
2087321493 $ac_cs_success || as_fn_exit 1
2087421494 fi
2087521495 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20877 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20878 fi
20879
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
21496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21497 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21498 fi
21499
21500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
2088121501 $PACKAGE $VERSION
2088221502
2088321503 CC: ${CC}
2089621516 bigendian: ${ac_cv_c_bigendian}
2089721517 protobuf version: ${PROTOBUF_VERSION}
2089821518 " >&5
20899 $as_echo "
21519 printf "%s\n" "
2090021520 $PACKAGE $VERSION
2090121521
2090221522 CC: ${CC}
2091521535 bigendian: ${ac_cv_c_bigendian}
2091621536 protobuf version: ${PROTOBUF_VERSION}
2091721537 " >&6; }
21538
00 AC_PREREQ(2.63)
11
22 AC_INIT([protobuf-c],
3 [1.3.3],
3 [1.4.0],
44 [https://github.com/protobuf-c/protobuf-c/issues],
55 [protobuf-c],
66 [https://github.com/protobuf-c/protobuf-c])
10701070 # to the OS version, if on x86, and 10.4, the deployment
10711071 # target defaults to 10.4. Don't you love it?
10721072 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1073 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1073 10.0,*86*-darwin8*|10.0,*-darwin[[912]]*)
10741074 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10751075 10.[[012]][[,.]]*)
10761076 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1077 10.*)
1077 10.*|11.*)
10781078 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10791079 esac
10801080 ;;
33 includedir=@includedir@
44 bindir=@bindir@
55
6 Name: libprotobuf-c
7 Description: Protocol Buffers C library
8 Version: @VERSION@
6 Name: @PACKAGE_NAME@
7 Description: @PACKAGE_DESCRIPTION@
8 Version: @PACKAGE_VERSION@
9 URL: @PACKAGE_URL@
910 Libs: -L${libdir} -lprotobuf-c
1011 Libs.private:
1112 Cflags: -I${includedir}
8383 # define PROTOBUF_C_UNPACK_ERROR(...)
8484 #endif
8585
86 #if !defined(_WIN32) || !defined(PROTOBUF_C_USE_SHARED_LIB)
8687 const char protobuf_c_empty_string[] = "";
88 #endif
8789
8890 /**
8991 * Internal `ProtobufCMessage` manipulation macro.
147149 static void *
148150 system_alloc(void *allocator_data, size_t size)
149151 {
152 (void)allocator_data;
150153 return malloc(size);
151154 }
152155
153156 static void
154157 system_free(void *allocator_data, void *data)
155158 {
159 (void)allocator_data;
156160 free(data);
157161 }
158162
16171621 break;
16181622 }
16191623 case PROTOBUF_C_TYPE_MESSAGE: {
1620 uint8_t simple_buffer_scratch[256];
1621 size_t sublen;
16221624 const ProtobufCMessage *msg = *(ProtobufCMessage * const *) member;
1623 ProtobufCBufferSimple simple_buffer =
1624 PROTOBUF_C_BUFFER_SIMPLE_INIT(simple_buffer_scratch);
1625
1625
16261626 scratch[0] |= PROTOBUF_C_WIRE_TYPE_LENGTH_PREFIXED;
1627 if (msg == NULL)
1628 sublen = 0;
1629 else
1630 sublen = protobuf_c_message_pack_to_buffer(msg, &simple_buffer.base);
1631 rv += uint32_pack(sublen, scratch + rv);
1632 buffer->append(buffer, rv, scratch);
1633 buffer->append(buffer, sublen, simple_buffer.data);
1634 rv += sublen;
1635 PROTOBUF_C_BUFFER_SIMPLE_CLEAR(&simple_buffer);
1627 if (msg == NULL) {
1628 rv += uint32_pack(0, scratch + rv);
1629 buffer->append(buffer, rv, scratch);
1630 } else {
1631 size_t sublen = protobuf_c_message_get_packed_size(msg);
1632 rv += uint32_pack(sublen, scratch + rv);
1633 buffer->append(buffer, rv, scratch);
1634 protobuf_c_message_pack_to_buffer(msg, buffer);
1635 rv += sublen;
1636 }
16361637 break;
16371638 }
16381639 default:
20622063 parse_tag_and_wiretype(size_t len,
20632064 const uint8_t *data,
20642065 uint32_t *tag_out,
2065 ProtobufCWireType *wiretype_out)
2066 uint8_t *wiretype_out)
20662067 {
20672068 unsigned max_rv = len > 5 ? 5 : len;
20682069 uint32_t tag = (data[0] & 0x7f) >> 3;
20942095
20952096 /* sizeof(ScannedMember) must be <= (1UL<<BOUND_SIZEOF_SCANNED_MEMBER_LOG2) */
20962097 #define BOUND_SIZEOF_SCANNED_MEMBER_LOG2 5
2097 typedef struct _ScannedMember ScannedMember;
2098 typedef struct ScannedMember ScannedMember;
20982099 /** Field as it's being read. */
2099 struct _ScannedMember {
2100 struct ScannedMember {
21002101 uint32_t tag; /**< Field tag. */
21012102 uint8_t wire_type; /**< Field type. */
21022103 uint8_t length_prefix_len; /**< Prefix length. */
21312132 // Protobuf messages should always be less than 2 GiB in size.
21322133 // We also want to return early here so that hdr_len + val does
21332134 // not overflow on 32-bit systems.
2134 PROTOBUF_C_UNPACK_ERROR("length prefix of %lu is too large", val);
2135 PROTOBUF_C_UNPACK_ERROR("length prefix of %lu is too large",
2136 (unsigned long int)val);
21352137 return 0;
21362138 }
21372139 if (hdr_len + val > len) {
2138 PROTOBUF_C_UNPACK_ERROR("data too short after length-prefix of %lu", val);
2140 PROTOBUF_C_UNPACK_ERROR("data too short after length-prefix of %lu",
2141 (unsigned long int)val);
21392142 return 0;
21402143 }
21412144 return hdr_len + val;
24972500 {
24982501 unsigned len = scanned_member->len;
24992502 const uint8_t *data = scanned_member->data;
2500 ProtobufCWireType wire_type = scanned_member->wire_type;
2503 uint8_t wire_type = scanned_member->wire_type;
25012504
25022505 switch (scanned_member->field->type) {
25032506 case PROTOBUF_C_TYPE_ENUM:
25782581 {
25792582 do_free(allocator, bd->data);
25802583 }
2581 if (len - pref_len > 0) {
2584 if (len > pref_len) {
25822585 bd->data = do_alloc(allocator, len - pref_len);
25832586 if (bd->data == NULL)
25842587 return FALSE;
27462749 const uint8_t *at = scanned_member->data + scanned_member->length_prefix_len;
27472750 size_t rem = scanned_member->len - scanned_member->length_prefix_len;
27482751 size_t count = 0;
2752 #if defined(WORDS_BIGENDIAN)
27492753 unsigned i;
2754 #endif
27502755
27512756 switch (field->type) {
27522757 case PROTOBUF_C_TYPE_SFIXED32:
28392844 }
28402845 break;
28412846 case PROTOBUF_C_TYPE_BOOL:
2842 count = rem;
2843 for (i = 0; i < count; i++) {
2844 if (at[i] > 1) {
2847 while (rem > 0) {
2848 unsigned s = scan_varint(rem, at);
2849 if (s == 0) {
28452850 PROTOBUF_C_UNPACK_ERROR("bad packed-repeated boolean value");
28462851 return FALSE;
28472852 }
2848 ((protobuf_c_boolean *) array)[i] = at[i];
2853 ((protobuf_c_boolean *) array)[count++] = parse_boolean(s, at);
2854 at += s;
2855 rem -= s;
28492856 }
28502857 break;
28512858 default:
30793086
30803087 while (rem > 0) {
30813088 uint32_t tag;
3082 ProtobufCWireType wire_type;
3089 uint8_t wire_type;
30833090 size_t used = parse_tag_and_wiretype(rem, at, &tag, &wire_type);
30843091 const ProtobufCFieldDescriptor *field;
30853092 ScannedMember tmp;
237237 #define PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC 0x114315af
238238
239239 /* Empty string used for initializers */
240 #if defined(_WIN32) && defined(PROTOBUF_C_USE_SHARED_LIB)
241 static const char protobuf_c_empty_string[] = "";
242 #else
240243 extern const char protobuf_c_empty_string[];
244 #endif
241245
242246 /**
243247 * \defgroup api Public API
789793 * The version of the protobuf-c headers, represented as a string using the same
790794 * format as protobuf_c_version().
791795 */
792 #define PROTOBUF_C_VERSION "1.3.3"
796 #define PROTOBUF_C_VERSION "1.4.0"
793797
794798 /**
795799 * The version of the protobuf-c headers, represented as an integer using the
796800 * same format as protobuf_c_version_number().
797801 */
798 #define PROTOBUF_C_VERSION_NUMBER 1003003
802 #define PROTOBUF_C_VERSION_NUMBER 1004000
799803
800804 /**
801805 * The minimum protoc-c version which works with the current version of the
0 /*
1 * Copyright (c) 2021, the protobuf-c authors.
2 * All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met:
7 *
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
11 * * Redistributions in binary form must reproduce the above
12 * copyright notice, this list of conditions and the following disclaimer
13 * in the documentation and/or other materials provided with the
14 * distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29 syntax = "proto2";
30 import "google/protobuf/descriptor.proto";
31
32 // We never need to generate protobuf-c.pb-c.{c,h}, the options are used
33 // only by protoc-gen-c, never by the protobuf-c runtime itself
34 option (pb_c_file).no_generate = true;
35
36 message ProtobufCFileOptions {
37 // Suppresses pb-c.{c,h} file output completely.
38 optional bool no_generate = 1 [default = false];
39
40 // Generate helper pack/unpack functions?
41 // For backwards compatibility, if this field is not explicitly set,
42 // only top-level message pack/unpack functions will be generated
43 optional bool gen_pack_helpers = 2 [default = true];
44
45 // Generate helper init message functions?
46 optional bool gen_init_helpers = 3 [default = true];
47
48 // Use const char * instead of char * for string fields
49 optional bool const_strings = 4 [default = false];
50
51 // For oneof fields, set ProtobufCFieldDescriptor name field to the
52 // name of the containing oneof, instead of the field name
53 optional bool use_oneof_field_name = 5 [default = false];
54
55 // Overrides the package name, if present
56 optional string c_package = 6;
57 }
58
59 extend google.protobuf.FileOptions {
60 optional ProtobufCFileOptions pb_c_file = 1019;
61 }
62
63 message ProtobufCMessageOptions {
64 // Overrides the parent setting only if present
65 optional bool gen_pack_helpers = 1 [default = false];
66
67 // Overrides the parent setting only if present
68 optional bool gen_init_helpers = 2 [default = true];
69
70 // Reserved base message field name
71 optional string base_field_name = 3 [default = "base"];
72 }
73
74 extend google.protobuf.MessageOptions {
75 optional ProtobufCMessageOptions pb_c_msg = 1019;
76 }
77
78 message ProtobufCFieldOptions {
79 // Treat string as bytes in generated code
80 optional bool string_as_bytes = 1 [default = false];
81 }
82
83 extend google.protobuf.FieldOptions {
84 optional ProtobufCFieldOptions pb_c_field = 1019;
85 }
6363 #include <protoc-c/c_helpers.h>
6464 #include <google/protobuf/io/printer.h>
6565 #include <google/protobuf/wire_format.h>
66 #include <google/protobuf/descriptor.pb.h>
66 #include <protobuf-c/protobuf-c.pb.h>
6767
6868 namespace google {
6969 namespace protobuf {
7373 using internal::WireFormat;
7474
7575 void SetBytesVariables(const FieldDescriptor* descriptor,
76 std::map<string, string>* variables) {
76 std::map<std::string, std::string>* variables) {
7777 (*variables)["name"] = FieldName(descriptor);
7878 (*variables)["default"] =
7979 "\"" + CEscape(descriptor->default_value_string()) + "\"";
8888 SetBytesVariables(descriptor, &variables_);
8989 variables_["default_value"] = descriptor->has_default_value()
9090 ? GetDefaultValue()
91 : string("{0,NULL}");
91 : std::string("{0,NULL}");
9292 }
9393
9494 BytesFieldGenerator::~BytesFieldGenerator() {}
112112 }
113113 void BytesFieldGenerator::GenerateDefaultValueDeclarations(io::Printer* printer) const
114114 {
115 std::map<string, string> vars;
116 vars["default_value_data"] = FullNameToLower(descriptor_->full_name())
115 std::map<std::string, std::string> vars;
116 vars["default_value_data"] = FullNameToLower(descriptor_->full_name(), descriptor_->file())
117117 + "__default_value_data";
118118 printer->Print(vars, "extern uint8_t $default_value_data$[];\n");
119119 }
120120
121121 void BytesFieldGenerator::GenerateDefaultValueImplementations(io::Printer* printer) const
122122 {
123 std::map<string, string> vars;
124 vars["default_value_data"] = FullNameToLower(descriptor_->full_name())
123 std::map<std::string, std::string> vars;
124 vars["default_value_data"] = FullNameToLower(descriptor_->full_name(), descriptor_->file())
125125 + "__default_value_data";
126126 vars["escaped"] = CEscape(descriptor_->default_value_string());
127127 printer->Print(vars, "uint8_t $default_value_data$[] = \"$escaped$\";\n");
128128 }
129 string BytesFieldGenerator::GetDefaultValue(void) const
129 std::string BytesFieldGenerator::GetDefaultValue(void) const
130130 {
131131 return "{ "
132132 + SimpleItoa(descriptor_->default_value_string().size())
133133 + ", "
134 + FullNameToLower(descriptor_->full_name())
134 + FullNameToLower(descriptor_->full_name(), descriptor_->file())
135135 + "__default_value_data }";
136136 }
137137 void BytesFieldGenerator::GenerateStaticInit(io::Printer* printer) const
8181 void GenerateDescriptorInitializer(io::Printer* printer) const;
8282 void GenerateDefaultValueDeclarations(io::Printer* printer) const;
8383 void GenerateDefaultValueImplementations(io::Printer* printer) const;
84 string GetDefaultValue(void) const;
84 std::string GetDefaultValue(void) const;
8585 void GenerateStaticInit(io::Printer* printer) const;
8686
8787 private:
88 std::map<string, string> variables_;
88 std::map<std::string, std::string> variables_;
8989
9090 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(BytesFieldGenerator);
9191 };
7272 namespace c {
7373
7474 EnumGenerator::EnumGenerator(const EnumDescriptor* descriptor,
75 const string& dllexport_decl)
75 const std::string& dllexport_decl)
7676 : descriptor_(descriptor),
7777 dllexport_decl_(dllexport_decl) {
7878 }
8080 EnumGenerator::~EnumGenerator() {}
8181
8282 void EnumGenerator::GenerateDefinition(io::Printer* printer) {
83 std::map<string, string> vars;
84 vars["classname"] = FullNameToC(descriptor_->full_name());
83 std::map<std::string, std::string> vars;
84 vars["classname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
8585 vars["shortname"] = descriptor_->name();
86 vars["uc_name"] = FullNameToUpper(descriptor_->full_name());
86 vars["uc_name"] = FullNameToUpper(descriptor_->full_name(), descriptor_->file());
8787
8888 SourceLocation sourceLoc;
8989 descriptor_->GetSourceLocation(&sourceLoc);
9797
9898
9999 vars["opt_comma"] = ",";
100 vars["prefix"] = FullNameToUpper(descriptor_->full_name()) + "__";
100 vars["prefix"] = FullNameToUpper(descriptor_->full_name(), descriptor_->file()) + "__";
101101 for (int i = 0; i < descriptor_->value_count(); i++) {
102102 vars["name"] = descriptor_->value(i)->name();
103103 vars["number"] = SimpleItoa(descriptor_->value(i)->number());
125125 }
126126
127127 void EnumGenerator::GenerateDescriptorDeclarations(io::Printer* printer) {
128 std::map<string, string> vars;
128 std::map<std::string, std::string> vars;
129129 if (dllexport_decl_.empty()) {
130130 vars["dllexport"] = "";
131131 } else {
132132 vars["dllexport"] = dllexport_decl_ + " ";
133133 }
134 vars["classname"] = FullNameToC(descriptor_->full_name());
135 vars["lcclassname"] = FullNameToLower(descriptor_->full_name());
134 vars["classname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
135 vars["lcclassname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file());
136136
137137 printer->Print(vars,
138138 "extern $dllexport$const ProtobufCEnumDescriptor $lcclassname$__descriptor;\n");
148148 void EnumGenerator::GenerateValueInitializer(io::Printer *printer, int index)
149149 {
150150 const EnumValueDescriptor *vd = descriptor_->value(index);
151 std::map<string, string> vars;
151 std::map<std::string, std::string> vars;
152152 bool optimize_code_size = descriptor_->file()->options().has_optimize_for() &&
153153 descriptor_->file()->options().optimize_for() ==
154154 FileOptions_OptimizeMode_CODE_SIZE;
155155 vars["enum_value_name"] = vd->name();
156 vars["c_enum_value_name"] = FullNameToUpper(descriptor_->full_name()) + "__" + vd->name();
156 vars["c_enum_value_name"] = FullNameToUpper(descriptor_->full_name(), descriptor_->file()) + "__" + vd->name();
157157 vars["value"] = SimpleItoa(vd->number());
158158 if (optimize_code_size)
159159 printer->Print(vars, " { NULL, NULL, $value$ }, /* CODE_SIZE */\n");
181181 }
182182
183183 void EnumGenerator::GenerateEnumDescriptor(io::Printer* printer) {
184 std::map<string, string> vars;
184 std::map<std::string, std::string> vars;
185185 vars["fullname"] = descriptor_->full_name();
186 vars["lcclassname"] = FullNameToLower(descriptor_->full_name());
187 vars["cname"] = FullNameToC(descriptor_->full_name());
186 vars["lcclassname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file());
187 vars["cname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
188188 vars["shortname"] = descriptor_->name();
189189 vars["packagename"] = descriptor_->file()->package();
190190 vars["value_count"] = SimpleItoa(descriptor_->value_count());
8080 public:
8181 // See generator.cc for the meaning of dllexport_decl.
8282 explicit EnumGenerator(const EnumDescriptor* descriptor,
83 const string& dllexport_decl);
83 const std::string& dllexport_decl);
8484 ~EnumGenerator();
8585
8686 // Header stuff.
104104
105105 private:
106106 const EnumDescriptor* descriptor_;
107 string dllexport_decl_;
107 std::string dllexport_decl_;
108108
109109 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EnumGenerator);
110110 };
7474 // TODO(kenton): Factor out a "SetCommonFieldVariables()" to get rid of
7575 // repeat code between this and the other field types.
7676 void SetEnumVariables(const FieldDescriptor* descriptor,
77 std::map<string, string>* variables) {
77 std::map<std::string, std::string>* variables) {
7878
7979 (*variables)["name"] = FieldName(descriptor);
80 (*variables)["type"] = FullNameToC(descriptor->enum_type()->full_name());
80 (*variables)["type"] = FullNameToC(descriptor->enum_type()->full_name(), descriptor->enum_type()->file());
8181 const EnumValueDescriptor* default_value = descriptor->default_value_enum();
82 (*variables)["default"] = FullNameToUpper(default_value->type()->full_name())
82 (*variables)["default"] = FullNameToUpper(default_value->type()->full_name(), default_value->type()->file())
8383 + "__" + default_value->name();
8484 (*variables)["deprecated"] = FieldDeprecated(descriptor);
8585 }
113113 }
114114 }
115115
116 string EnumFieldGenerator::GetDefaultValue(void) const
116 std::string EnumFieldGenerator::GetDefaultValue(void) const
117117 {
118118 return variables_.find("default")->second;
119119 }
137137
138138 void EnumFieldGenerator::GenerateDescriptorInitializer(io::Printer* printer) const
139139 {
140 string addr = "&" + FullNameToLower(descriptor_->enum_type()->full_name()) + "__descriptor";
140 std::string addr = "&" + FullNameToLower(descriptor_->enum_type()->full_name(), descriptor_->enum_type()->file()) + "__descriptor";
141141 GenerateDescriptorInitializerGeneric(printer, true, "ENUM", addr);
142142 }
143143
7979 // implements FieldGenerator ---------------------------------------
8080 void GenerateStructMembers(io::Printer* printer) const;
8181 void GenerateDescriptorInitializer(io::Printer* printer) const;
82 string GetDefaultValue(void) const;
82 std::string GetDefaultValue(void) const;
8383 void GenerateStaticInit(io::Printer* printer) const;
8484
8585 private:
86 std::map<string, string> variables_;
86 std::map<std::string, std::string> variables_;
8787
8888 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EnumFieldGenerator);
8989 };
6969 namespace c {
7070
7171 ExtensionGenerator::ExtensionGenerator(const FieldDescriptor* descriptor,
72 const string& dllexport_decl)
72 const std::string& dllexport_decl)
7373 : descriptor_(descriptor),
7474 dllexport_decl_(dllexport_decl) {
7575 }
8484 public:
8585 // See generator.cc for the meaning of dllexport_decl.
8686 explicit ExtensionGenerator(const FieldDescriptor* descriptor,
87 const string& dllexport_decl);
87 const std::string& dllexport_decl);
8888 ~ExtensionGenerator();
8989
9090 // Header stuff.
9595
9696 private:
9797 const FieldDescriptor* descriptor_;
98 string type_traits_;
99 string dllexport_decl_;
98 std::string type_traits_;
99 std::string dllexport_decl_;
100100
101101 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ExtensionGenerator);
102102 };
6666 #include <protoc-c/c_enum_field.h>
6767 #include <protoc-c/c_message_field.h>
6868 #include <protoc-c/c_helpers.h>
69 #include <google/protobuf/descriptor.pb.h>
69 #include <protobuf-c/protobuf-c.pb.h>
7070 #include <google/protobuf/stubs/common.h>
7171 #include <google/protobuf/io/printer.h>
7272
102102
103103 void FieldGenerator::GenerateDescriptorInitializerGeneric(io::Printer* printer,
104104 bool optional_uses_has,
105 const string &type_macro,
106 const string &descriptor_addr) const
105 const std::string &type_macro,
106 const std::string &descriptor_addr) const
107107 {
108 std::map<string, string> variables;
108 std::map<std::string, std::string> variables;
109 const OneofDescriptor *oneof = descriptor_->containing_oneof();
110 const ProtobufCFileOptions opt = descriptor_->file()->options().GetExtension(pb_c_file);
109111 variables["TYPE"] = type_macro;
110 variables["classname"] = FullNameToC(FieldScope(descriptor_)->full_name());
112 variables["classname"] = FullNameToC(FieldScope(descriptor_)->full_name(), FieldScope(descriptor_)->file());
111113 variables["name"] = FieldName(descriptor_);
112 variables["proto_name"] = descriptor_->name();
114 if (opt.use_oneof_field_name())
115 variables["proto_name"] = oneof->name();
116 else
117 variables["proto_name"] = descriptor_->name();
113118 variables["descriptor_addr"] = descriptor_addr;
114119 variables["value"] = SimpleItoa(descriptor_->number());
115 const OneofDescriptor *oneof = descriptor_->containing_oneof();
116120 if (oneof != NULL)
117 variables["oneofname"] = FullNameToLower(oneof->name());
121 variables["oneofname"] = CamelToLower(oneof->name());
118122
119123 if (FieldSyntax(descriptor_) == 3 &&
120124 descriptor_->label() == FieldDescriptor::LABEL_OPTIONAL) {
125129 }
126130
127131 if (descriptor_->has_default_value()) {
128 variables["default_value"] = string("&")
129 + FullNameToLower(descriptor_->full_name())
132 variables["default_value"] = std::string("&")
133 + FullNameToLower(descriptor_->full_name(), descriptor_->file())
130134 + "__default_value";
131135 } else if (FieldSyntax(descriptor_) == 3 &&
132136 descriptor_->type() == FieldDescriptor::TYPE_STRING) {
202206 }
203207
204208 FieldGenerator* FieldGeneratorMap::MakeGenerator(const FieldDescriptor* field) {
209 const ProtobufCFieldOptions opt = field->options().GetExtension(pb_c_field);
205210 switch (field->type()) {
206211 case FieldDescriptor::TYPE_MESSAGE:
207212 return new MessageFieldGenerator(field);
208213 case FieldDescriptor::TYPE_STRING:
209 return new StringFieldGenerator(field);
214 if (opt.string_as_bytes())
215 return new BytesFieldGenerator(field);
216 else
217 return new StringFieldGenerator(field);
210218 case FieldDescriptor::TYPE_BYTES:
211219 return new BytesFieldGenerator(field);
212220 case FieldDescriptor::TYPE_ENUM:
9090
9191 virtual void GenerateDefaultValueDeclarations(io::Printer* printer) const { }
9292 virtual void GenerateDefaultValueImplementations(io::Printer* printer) const { }
93 virtual string GetDefaultValue() const = 0;
93 virtual std::string GetDefaultValue() const = 0;
9494
9595 // Generate members to initialize this field from a static initializer
9696 virtual void GenerateStaticInit(io::Printer* printer) const = 0;
9999 protected:
100100 void GenerateDescriptorInitializerGeneric(io::Printer* printer,
101101 bool optional_uses_has,
102 const string &type_macro,
103 const string &descriptor_addr) const;
102 const std::string &type_macro,
103 const std::string &descriptor_addr) const;
104104 const FieldDescriptor *descriptor_;
105105
106106 private:
6767 #include <protoc-c/c_helpers.h>
6868 #include <protoc-c/c_message.h>
6969 #include <google/protobuf/io/printer.h>
70 #include <google/protobuf/descriptor.pb.h>
70 #include <protobuf-c/protobuf-c.pb.h>
7171
7272 #include "protobuf-c.h"
7373
7979 // ===================================================================
8080
8181 FileGenerator::FileGenerator(const FileDescriptor* file,
82 const string& dllexport_decl)
82 const std::string& dllexport_decl)
8383 : file_(file),
8484 message_generators_(
8585 new std::unique_ptr<MessageGenerator>[file->message_type_count()]),
109109 extension_generators_[i].reset(
110110 new ExtensionGenerator(file->extension(i), dllexport_decl));
111111 }
112
113 SplitStringUsing(file_->package(), ".", &package_parts_);
114112 }
115113
116114 FileGenerator::~FileGenerator() {}
117115
118116 void FileGenerator::GenerateHeader(io::Printer* printer) {
119 string filename_identifier = FilenameIdentifier(file_->name());
117 std::string filename_identifier = FilenameIdentifier(file_->name());
120118
121119 int min_header_version = 1000000;
122120 #if defined(HAVE_PROTO3)
156154 "protoc_version", SimpleItoa(PROTOBUF_C_VERSION_NUMBER));
157155
158156 for (int i = 0; i < file_->dependency_count(); i++) {
159 printer->Print(
160 "#include \"$dependency$.pb-c.h\"\n",
161 "dependency", StripProto(file_->dependency(i)->name()));
157 const ProtobufCFileOptions opt =
158 file_->dependency(i)->options().GetExtension(pb_c_file);
159 if (!opt.no_generate()) {
160 printer->Print(
161 "#include \"$dependency$.pb-c.h\"\n",
162 "dependency", StripProto(file_->dependency(i)->name()));
163 }
162164 }
163165
164166 printer->Print("\n");
186188 }
187189
188190 for (int i = 0; i < file_->message_type_count(); i++) {
189 message_generators_[i]->GenerateHelperFunctionDeclarations(printer, false);
191 const ProtobufCFileOptions opt = file_->options().GetExtension(pb_c_file);
192
193 message_generators_[i]->GenerateHelperFunctionDeclarations(
194 printer,
195 opt.has_gen_pack_helpers(),
196 opt.gen_pack_helpers(),
197 opt.gen_init_helpers());
190198 }
191199
192200 printer->Print("/* --- per-message closures --- */\n\n");
237245 "filename", file_->name(),
238246 "basename", StripProto(file_->name()));
239247
240 #if 0
241 // For each dependency, write a prototype for that dependency's
242 // BuildDescriptors() function. We don't expose these in the header because
243 // they are internal implementation details, and since this is generated code
244 // we don't have the usual risks involved with declaring external functions
245 // within a .cc file.
246 for (int i = 0; i < file_->dependency_count(); i++) {
247 const FileDescriptor* dependency = file_->dependency(i);
248 // Open the dependency's namespace.
249 vector<string> dependency_package_parts;
250 SplitStringUsing(dependency->package(), ".", &dependency_package_parts);
251 // Declare its BuildDescriptors() function.
252 printer->Print(
253 "void $function$();",
254 "function", GlobalBuildDescriptorsName(dependency->name()));
255 // Close the namespace.
256 for (int i = 0; i < dependency_package_parts.size(); i++) {
257 printer->Print(" }");
258 }
259 printer->Print("\n");
260 }
261 #endif
262
263 for (int i = 0; i < file_->message_type_count(); i++) {
264 message_generators_[i]->GenerateHelperFunctionDefinitions(printer, false);
265 }
266 for (int i = 0; i < file_->message_type_count(); i++) {
267 message_generators_[i]->GenerateMessageDescriptor(printer);
248 const ProtobufCFileOptions opt = file_->options().GetExtension(pb_c_file);
249
250 for (int i = 0; i < file_->message_type_count(); i++) {
251 message_generators_[i]->GenerateHelperFunctionDefinitions(
252 printer,
253 opt.has_gen_pack_helpers(),
254 opt.gen_pack_helpers(),
255 opt.gen_init_helpers());
256 }
257 for (int i = 0; i < file_->message_type_count(); i++) {
258 message_generators_[i]->GenerateMessageDescriptor(printer,
259 opt.gen_init_helpers());
268260 }
269261 for (int i = 0; i < file_->enum_type_count(); i++) {
270262 enum_generators_[i]->GenerateEnumDescriptor(printer);
8989 public:
9090 // See generator.cc for the meaning of dllexport_decl.
9191 explicit FileGenerator(const FileDescriptor* file,
92 const string& dllexport_decl);
92 const std::string& dllexport_decl);
9393 ~FileGenerator();
9494
9595 void GenerateHeader(io::Printer* printer);
103103 std::unique_ptr<std::unique_ptr<ServiceGenerator>[]> service_generators_;
104104 std::unique_ptr<std::unique_ptr<ExtensionGenerator>[]> extension_generators_;
105105
106 // E.g. if the package is foo.bar, package_parts_ is {"foo", "bar"}.
107 std::vector<string> package_parts_;
108
109106 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(FileGenerator);
110107 };
111108
6969 #include <protoc-c/c_helpers.h>
7070 #include <google/protobuf/io/printer.h>
7171 #include <google/protobuf/io/zero_copy_stream.h>
72 #include <google/protobuf/descriptor.pb.h>
72 #include <protobuf-c/protobuf-c.pb.h>
7373
7474 namespace google {
7575 namespace protobuf {
8080 // "foo=bar,baz,qux=corge"
8181 // parses to the pairs:
8282 // ("foo", "bar"), ("baz", ""), ("qux", "corge")
83 void ParseOptions(const string& text, std::vector<std::pair<string, string> >* output) {
84 std::vector<string> parts;
83 void ParseOptions(const std::string& text, std::vector<std::pair<std::string, std::string> >* output) {
84 std::vector<std::string> parts;
8585 SplitStringUsing(text, ",", &parts);
8686
8787 for (unsigned i = 0; i < parts.size(); i++) {
88 string::size_type equals_pos = parts[i].find_first_of('=');
89 std::pair<string, string> value;
90 if (equals_pos == string::npos) {
88 std::string::size_type equals_pos = parts[i].find_first_of('=');
89 std::pair<std::string, std::string> value;
90 if (equals_pos == std::string::npos) {
9191 value.first = parts[i];
9292 value.second = "";
9393 } else {
102102 CGenerator::~CGenerator() {}
103103
104104 bool CGenerator::Generate(const FileDescriptor* file,
105 const string& parameter,
105 const std::string& parameter,
106106 OutputDirectory* output_directory,
107 string* error) const {
108 std::vector<std::pair<string, string> > options;
107 std::string* error) const {
108 if (file->options().GetExtension(pb_c_file).no_generate())
109 return true;
110
111 std::vector<std::pair<std::string, std::string> > options;
109112 ParseOptions(parameter, &options);
110113
111114 // -----------------------------------------------------------------
128131 // }
129132 // FOO_EXPORT is a macro which should expand to __declspec(dllexport) or
130133 // __declspec(dllimport) depending on what is being compiled.
131 string dllexport_decl;
134 std::string dllexport_decl;
132135
133136 for (unsigned i = 0; i < options.size(); i++) {
134137 if (options[i].first == "dllexport_decl") {
142145 // -----------------------------------------------------------------
143146
144147
145 string basename = StripProto(file->name());
148 std::string basename = StripProto(file->name());
146149 basename.append(".pb-c");
147150
148151 FileGenerator file_generator(file, dllexport_decl);
6767 #include <string>
6868 #include <google/protobuf/compiler/code_generator.h>
6969
70 #if defined(_WIN32) && defined(PROTOBUF_C_USE_SHARED_LIB)
71 # define PROTOC_C_EXPORT __declspec(dllexport)
72 #else
73 # define PROTOC_C_EXPORT
74 #endif
75
7076 namespace google {
7177 namespace protobuf {
7278 namespace compiler {
7682 // header. If you create your own protocol compiler binary and you want
7783 // it to support C++ output, you can do so by registering an instance of this
7884 // CodeGenerator with the CommandLineInterface in your main() function.
79 class LIBPROTOC_EXPORT CGenerator : public CodeGenerator {
85 class PROTOC_C_EXPORT CGenerator : public CodeGenerator {
8086 public:
8187 CGenerator();
8288 ~CGenerator();
8389
8490 // implements CodeGenerator ----------------------------------------
8591 bool Generate(const FileDescriptor* file,
86 const string& parameter,
92 const std::string& parameter,
8793 OutputDirectory* output_directory,
88 string* error) const;
94 std::string* error) const;
8995
9096 private:
9197 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(CGenerator);
8686 #pragma warning(disable:4996)
8787 #endif
8888
89 string DotsToUnderscores(const string& name) {
89 std::string DotsToUnderscores(const std::string& name) {
9090 return StringReplace(name, ".", "_", true);
9191 }
9292
93 string DotsToColons(const string& name) {
93 std::string DotsToColons(const std::string& name) {
9494 return StringReplace(name, ".", "::", true);
9595 }
9696
97 string SimpleFtoa(float f) {
97 std::string SimpleFtoa(float f) {
9898 char buf[100];
9999 snprintf(buf,sizeof(buf),"%.*g", FLT_DIG, f);
100100 buf[sizeof(buf)-1] = 0; /* should NOT be necessary */
101101 return buf;
102102 }
103 string SimpleDtoa(double d) {
103 std::string SimpleDtoa(double d) {
104104 char buf[100];
105105 snprintf(buf,sizeof(buf),"%.*g", DBL_DIG, d);
106106 buf[sizeof(buf)-1] = 0; /* should NOT be necessary */
107107 return buf;
108108 }
109109
110 string CamelToUpper(const string &name) {
110 std::string CamelToUpper(const std::string &name) {
111111 bool was_upper = true; // suppress initial _
112 string rv = "";
112 std::string rv = "";
113113 int len = name.length();
114114 for (int i = 0; i < len; i++) {
115115 bool is_upper = isupper(name[i]);
124124 }
125125 return rv;
126126 }
127 string CamelToLower(const string &name) {
127 std::string CamelToLower(const std::string &name) {
128128 bool was_upper = true; // suppress initial _
129 string rv = "";
129 std::string rv = "";
130130 int len = name.length();
131131 for (int i = 0; i < len; i++) {
132132 bool is_upper = isupper(name[i]);
143143 }
144144
145145
146 string ToUpper(const string &name) {
147 string rv = "";
146 std::string ToUpper(const std::string &name) {
147 std::string rv = "";
148148 int len = name.length();
149149 for (int i = 0; i < len; i++) {
150150 rv += toupper(name[i]);
151151 }
152152 return rv;
153153 }
154 string ToLower(const string &name) {
155 string rv = "";
154 std::string ToLower(const std::string &name) {
155 std::string rv = "";
156156 int len = name.length();
157157 for (int i = 0; i < len; i++) {
158158 rv += tolower(name[i]);
159159 }
160160 return rv;
161161 }
162 string ToCamel(const string &name) {
163 string rv = "";
162 std::string ToCamel(const std::string &name) {
163 std::string rv = "";
164164 int len = name.length();
165165 bool next_is_upper = true;
166166 for (int i = 0; i < len; i++) {
176176 return rv;
177177 }
178178
179 string FullNameToLower(const string &full_name) {
180 std::vector<string> pieces;
181 SplitStringUsing(full_name, ".", &pieces);
182 string rv = "";
179 std::string OverrideFullName(const std::string &full_name,
180 const FileDescriptor *file) {
181 const ProtobufCFileOptions opt = file->options().GetExtension(pb_c_file);
182 if (!opt.has_c_package())
183 return full_name;
184
185 std::string new_name = opt.c_package();
186 if (file->package().empty())
187 new_name += ".";
188
189 return new_name + full_name.substr(file->package().length());
190 }
191
192 std::string FullNameToLower(const std::string &full_name,
193 const FileDescriptor *file) {
194 std::vector<std::string> pieces;
195 SplitStringUsing(OverrideFullName(full_name, file), ".", &pieces);
196 std::string rv = "";
183197 for (unsigned i = 0; i < pieces.size(); i++) {
184198 if (pieces[i] == "") continue;
185199 if (rv != "") rv += "__";
187201 }
188202 return rv;
189203 }
190 string FullNameToUpper(const string &full_name) {
191 std::vector<string> pieces;
192 SplitStringUsing(full_name, ".", &pieces);
193 string rv = "";
204 std::string FullNameToUpper(const std::string &full_name,
205 const FileDescriptor *file) {
206 std::vector<std::string> pieces;
207 SplitStringUsing(OverrideFullName(full_name, file), ".", &pieces);
208 std::string rv = "";
194209 for (unsigned i = 0; i < pieces.size(); i++) {
195210 if (pieces[i] == "") continue;
196211 if (rv != "") rv += "__";
198213 }
199214 return rv;
200215 }
201 string FullNameToC(const string &full_name) {
202 std::vector<string> pieces;
203 SplitStringUsing(full_name, ".", &pieces);
204 string rv = "";
216 std::string FullNameToC(const std::string &full_name,
217 const FileDescriptor *file) {
218 std::vector<std::string> pieces;
219 SplitStringUsing(OverrideFullName(full_name, file), ".", &pieces);
220 std::string rv = "";
205221 for (unsigned i = 0; i < pieces.size(); i++) {
206222 if (pieces[i] == "") continue;
207223 if (rv != "") rv += "__";
210226 return rv;
211227 }
212228
213 void PrintComment (io::Printer* printer, string comment)
229 void PrintComment (io::Printer* printer, std::string comment)
214230 {
215231 if (!comment.empty())
216232 {
217 std::vector<string> comment_lines;
233 std::vector<std::string> comment_lines;
218234 SplitStringUsing (comment, "\r\n", &comment_lines);
219235 printer->Print ("/*\n");
220236 for (int i = 0; i < comment_lines.size(); i++)
227243
228244 /* Or cause other compiler issues. */
229245 size_t delim_i;
230 while ((delim_i = comment_lines[i].find("/*")) != string::npos)
246 while ((delim_i = comment_lines[i].find("/*")) != std::string::npos)
231247 comment_lines[i][delim_i] = ' ';
232248
233 while ((delim_i = comment_lines[i].find("*/")) != string::npos)
249 while ((delim_i = comment_lines[i].find("*/")) != std::string::npos)
234250 comment_lines[i][delim_i + 1] = ' ';
235251
236252 printer->Print (" *$line$\n", "line", comment_lines[i]);
240256 }
241257 }
242258
243 string ConvertToSpaces(const string &input) {
244 return string(input.size(), ' ');
259 std::string ConvertToSpaces(const std::string &input) {
260 return std::string(input.size(), ' ');
245261 }
246262
247263 int compare_name_indices_by_name(const void *a, const void *b)
252268 }
253269
254270
255 string CEscape(const string& src);
271 std::string CEscape(const std::string& src);
256272
257273 const char* const kKeywordList[] = {
258274 "and", "and_eq", "asm", "auto", "bitand", "bitor", "bool", "break", "case",
267283 "void", "volatile", "wchar_t", "while", "xor", "xor_eq"
268284 };
269285
270 std::set<string> MakeKeywordsMap() {
271 std::set<string> result;
286 std::set<std::string> MakeKeywordsMap() {
287 std::set<std::string> result;
272288 for (int i = 0; i < GOOGLE_ARRAYSIZE(kKeywordList); i++) {
273289 result.insert(kKeywordList[i]);
274290 }
275291 return result;
276292 }
277293
278 std::set<string> kKeywords = MakeKeywordsMap();
279
280 string ClassName(const Descriptor* descriptor, bool qualified) {
281 // Find "outer", the descriptor of the top-level message in which
282 // "descriptor" is embedded.
283 const Descriptor* outer = descriptor;
284 while (outer->containing_type() != NULL) outer = outer->containing_type();
285
286 const string& outer_name = outer->full_name();
287 string inner_name = descriptor->full_name().substr(outer_name.size());
288
289 if (qualified) {
290 return "::" + DotsToColons(outer_name) + DotsToUnderscores(inner_name);
291 } else {
292 return outer->name() + DotsToUnderscores(inner_name);
293 }
294 }
295
296 string ClassName(const EnumDescriptor* enum_descriptor, bool qualified) {
297 if (enum_descriptor->containing_type() == NULL) {
298 if (qualified) {
299 return DotsToColons(enum_descriptor->full_name());
300 } else {
301 return enum_descriptor->name();
302 }
303 } else {
304 string result = ClassName(enum_descriptor->containing_type(), qualified);
305 result += '_';
306 result += enum_descriptor->name();
307 return result;
308 }
309 }
310
311 string FieldName(const FieldDescriptor* field) {
312 string result = ToLower(field->name());
294 std::set<std::string> kKeywords = MakeKeywordsMap();
295
296 std::string FieldName(const FieldDescriptor* field) {
297 std::string result = ToLower(field->name());
313298 if (kKeywords.count(result) > 0) {
314299 result.append("_");
315300 }
316301 return result;
317302 }
318303
319 string FieldDeprecated(const FieldDescriptor* field) {
304 std::string FieldDeprecated(const FieldDescriptor* field) {
320305 if (field->options().deprecated()) {
321306 return " PROTOBUF_C__DEPRECATED";
322307 }
323308 return "";
324309 }
325310
326 string StripProto(const string& filename) {
311 std::string StripProto(const std::string& filename) {
327312 if (HasSuffixString(filename, ".protodevel")) {
328313 return StripSuffixString(filename, ".protodevel");
329314 } else {
332317 }
333318
334319 // Convert a file name into a valid identifier.
335 string FilenameIdentifier(const string& filename) {
336 string result;
320 std::string FilenameIdentifier(const std::string& filename) {
321 std::string result;
337322 for (unsigned i = 0; i < filename.size(); i++) {
338323 if (isalnum(filename[i])) {
339324 result.push_back(filename[i]);
349334 }
350335
351336 // Return the name of the BuildDescriptors() function for a given file.
352 string GlobalBuildDescriptorsName(const string& filename) {
337 std::string GlobalBuildDescriptorsName(const std::string& filename) {
353338 return "proto_BuildDescriptors_" + FilenameIdentifier(filename);
354339 }
355340
356 string GetLabelName(FieldDescriptor::Label label) {
341 std::string GetLabelName(FieldDescriptor::Label label) {
357342 switch (label) {
358343 case FieldDescriptor::LABEL_OPTIONAL: return "optional";
359344 case FieldDescriptor::LABEL_REQUIRED: return "required";
363348 }
364349
365350 unsigned
366 WriteIntRanges(io::Printer* printer, int n_values, const int *values, const string &name)
351 WriteIntRanges(io::Printer* printer, int n_values, const int *values, const std::string &name)
367352 {
368 std::map<string, string> vars;
353 std::map<std::string, std::string> vars;
369354 vars["name"] = name;
370355 if (n_values > 0) {
371356 int n_ranges = 1;
419404 // it only replaces the first instance of "old."
420405 // ----------------------------------------------------------------------
421406
422 void StringReplace(const string& s, const string& oldsub,
423 const string& newsub, bool replace_all,
424 string* res) {
407 void StringReplace(const std::string& s, const std::string& oldsub,
408 const std::string& newsub, bool replace_all,
409 std::string* res) {
425410 if (oldsub.empty()) {
426411 res->append(s); // if empty, append the given string.
427412 return;
428413 }
429414
430 string::size_type start_pos = 0;
431 string::size_type pos;
415 std::string::size_type start_pos = 0;
416 std::string::size_type pos;
432417 do {
433418 pos = s.find(oldsub, start_pos);
434 if (pos == string::npos) {
419 if (pos == std::string::npos) {
435420 break;
436421 }
437422 res->append(s, start_pos, pos - start_pos);
451436 // happened or not.
452437 // ----------------------------------------------------------------------
453438
454 string StringReplace(const string& s, const string& oldsub,
455 const string& newsub, bool replace_all) {
456 string ret;
439 std::string StringReplace(const std::string& s, const std::string& oldsub,
440 const std::string& newsub, bool replace_all) {
441 std::string ret;
457442 StringReplace(s, oldsub, newsub, replace_all, &ret);
458443 return ret;
459444 }
468453 // ----------------------------------------------------------------------
469454 template <typename ITR>
470455 static inline
471 void SplitStringToIteratorUsing(const string& full,
456 void SplitStringToIteratorUsing(const std::string& full,
472457 const char* delim,
473458 ITR& result) {
474459 // Optimize the common case where delim is a single character.
482467 } else {
483468 const char* start = p;
484469 while (++p != end && *p != c);
485 *result++ = string(start, p - start);
470 *result++ = std::string(start, p - start);
486471 }
487472 }
488473 return;
489474 }
490475
491 string::size_type begin_index, end_index;
476 std::string::size_type begin_index, end_index;
492477 begin_index = full.find_first_not_of(delim);
493 while (begin_index != string::npos) {
478 while (begin_index != std::string::npos) {
494479 end_index = full.find_first_of(delim, begin_index);
495 if (end_index == string::npos) {
480 if (end_index == std::string::npos) {
496481 *result++ = full.substr(begin_index);
497482 return;
498483 }
501486 }
502487 }
503488
504 void SplitStringUsing(const string& full,
489 void SplitStringUsing(const std::string& full,
505490 const char* delim,
506 std::vector<string>* result) {
507 std::back_insert_iterator< std::vector<string> > it(*result);
491 std::vector<std::string>* result) {
492 std::back_insert_iterator< std::vector<std::string> > it(*result);
508493 SplitStringToIteratorUsing(full, delim, it);
509494 }
510495
557542 dest[used] = '\0'; // doesn't count towards return value though
558543 return used;
559544 }
560 string CEscape(const string& src) {
545 std::string CEscape(const std::string& src) {
561546 const int dest_length = src.size() * 4 + 1; // Maximum possible expansion
562547 std::unique_ptr<char[]> dest(new char[dest_length]);
563548 const int len = CEscapeInternal(src.data(), src.size(),
564549 dest.get(), dest_length, false);
565550 GOOGLE_DCHECK_GE(len, 0);
566 return string(dest.get(), len);
551 return std::string(dest.get(), len);
567552 }
568553
569554 } // namespace c
6666 #include <vector>
6767 #include <sstream>
6868 #include <google/protobuf/descriptor.h>
69 #include <google/protobuf/descriptor.pb.h>
69 #include <protobuf-c/protobuf-c.pb.h>
7070 #include <google/protobuf/io/printer.h>
7171
7272 namespace google {
7474 namespace compiler {
7575 namespace c {
7676
77 // Returns the non-nested type name for the given type. If "qualified" is
78 // true, prefix the type with the full namespace. For example, if you had:
79 // package foo.bar;
80 // message Baz { message Qux {} }
81 // Then the qualified ClassName for Qux would be:
82 // Foo__Bar__Baz_Qux
83 // While the non-qualified version would be:
84 // Baz_Qux
85 string ClassName(const Descriptor* descriptor, bool qualified);
86 string ClassName(const EnumDescriptor* enum_descriptor, bool qualified);
87
8877 // --- Borrowed from stubs. ---
89 template <typename T> string SimpleItoa(T n) {
78 template <typename T> std::string SimpleItoa(T n) {
9079 std::stringstream stream;
9180 stream << n;
9281 return stream.str();
9382 }
9483
95 string SimpleFtoa(float f);
96 string SimpleDtoa(double f);
97 void SplitStringUsing(const string &str, const char *delim, std::vector<string> *out);
98 string CEscape(const string& src);
99 string StringReplace(const string& s, const string& oldsub, const string& newsub, bool replace_all);
100 inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; }
101 inline string StripSuffixString(const string& str, const string& suffix) { if (HasSuffixString(str, suffix)) { return str.substr(0, str.size() - suffix.size()); } else { return str; } }
84 std::string SimpleFtoa(float f);
85 std::string SimpleDtoa(double f);
86 void SplitStringUsing(const std::string &str, const char *delim, std::vector<std::string> *out);
87 std::string CEscape(const std::string& src);
88 std::string StringReplace(const std::string& s, const std::string& oldsub, const std::string& newsub, bool replace_all);
89 inline bool HasSuffixString(const std::string& str, const std::string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; }
90 inline std::string StripSuffixString(const std::string& str, const std::string& suffix) { if (HasSuffixString(str, suffix)) { return str.substr(0, str.size() - suffix.size()); } else { return str; } }
10291 char* FastHexToBuffer(int i, char* buffer);
10392
10493
10695 // The name is coerced to lower-case to emulate proto1 behavior. People
10796 // should be using lowercase-with-underscores style for proto field names
10897 // anyway, so normally this just returns field->name().
109 string FieldName(const FieldDescriptor* field);
98 std::string FieldName(const FieldDescriptor* field);
11099
111100 // Get macro string for deprecated field
112 string FieldDeprecated(const FieldDescriptor* field);
101 std::string FieldDeprecated(const FieldDescriptor* field);
113102
114103 // Returns the scope where the field was defined (for extensions, this is
115104 // different from the message type to which the field applies).
120109
121110 // convert a CamelCase class name into an all uppercase affair
122111 // with underscores separating words, e.g. MyClass becomes MY_CLASS.
123 string CamelToUpper(const string &class_name);
124 string CamelToLower(const string &class_name);
112 std::string CamelToUpper(const std::string &class_name);
113 std::string CamelToLower(const std::string &class_name);
125114
126115 // lowercased, underscored name to camel case
127 string ToCamel(const string &name);
116 std::string ToCamel(const std::string &name);
128117
129118 // lowercase the string
130 string ToLower(const string &class_name);
131 string ToUpper(const string &class_name);
119 std::string ToLower(const std::string &class_name);
120 std::string ToUpper(const std::string &class_name);
132121
133122 // full_name() to lowercase with underscores
134 string FullNameToLower(const string &full_name);
135 string FullNameToUpper(const string &full_name);
123 std::string FullNameToLower(const std::string &full_name, const FileDescriptor *file);
124 std::string FullNameToUpper(const std::string &full_name, const FileDescriptor *file);
136125
137126 // full_name() to c-typename (with underscores for packages, otherwise camel case)
138 string FullNameToC(const string &class_name);
127 std::string FullNameToC(const std::string &class_name, const FileDescriptor *file);
139128
140129 // Splits, indents, formats, and prints comment lines
141 void PrintComment (io::Printer* printer, string comment);
130 void PrintComment (io::Printer* printer, std::string comment);
142131
143132 // make a string of spaces as long as input
144 string ConvertToSpaces(const string &input);
133 std::string ConvertToSpaces(const std::string &input);
145134
146135 // Strips ".proto" or ".protodevel" from the end of a filename.
147 string StripProto(const string& filename);
136 std::string StripProto(const std::string& filename);
148137
149138 // Get the C++ type name for a primitive type (e.g. "double", "::google::protobuf::int32", etc.).
150139 // Note: non-built-in type names will be qualified, meaning they will start
158147 const char* DeclaredTypeMethodName(FieldDescriptor::Type type);
159148
160149 // Convert a file name into a valid identifier.
161 string FilenameIdentifier(const string& filename);
150 std::string FilenameIdentifier(const std::string& filename);
162151
163152 // Return the name of the BuildDescriptors() function for a given file.
164 string GlobalBuildDescriptorsName(const string& filename);
153 std::string GlobalBuildDescriptorsName(const std::string& filename);
165154
166155 // return 'required', 'optional', or 'repeated'
167 string GetLabelName(FieldDescriptor::Label label);
156 std::string GetLabelName(FieldDescriptor::Label label);
168157
169158
170159 // write IntRanges entries for a bunch of sorted values.
171160 // returns the number of ranges there are to bsearch.
172 unsigned WriteIntRanges(io::Printer* printer, int n_values, const int *values, const string &name);
161 unsigned WriteIntRanges(io::Printer* printer, int n_values, const int *values, const std::string &name);
173162
174163 struct NameIndex
175164 {
6969 #include <google/protobuf/io/printer.h>
7070 #include <google/protobuf/io/coded_stream.h>
7171 #include <google/protobuf/wire_format.h>
72 #include <google/protobuf/descriptor.pb.h>
72 #include <protobuf-c/protobuf-c.pb.h>
7373
7474 namespace google {
7575 namespace protobuf {
7979 // ===================================================================
8080
8181 MessageGenerator::MessageGenerator(const Descriptor* descriptor,
82 const string& dllexport_decl)
82 const std::string& dllexport_decl)
8383 : descriptor_(descriptor),
8484 dllexport_decl_(dllexport_decl),
8585 field_generators_(descriptor),
110110
111111 void MessageGenerator::
112112 GenerateStructTypedef(io::Printer* printer) {
113 printer->Print("typedef struct _$classname$ $classname$;\n",
114 "classname", FullNameToC(descriptor_->full_name()));
113 printer->Print("typedef struct $classname$ $classname$;\n",
114 "classname", FullNameToC(descriptor_->full_name(), descriptor_->file()));
115115
116116 for (int i = 0; i < descriptor_->nested_type_count(); i++) {
117117 nested_generators_[i]->GenerateStructTypedef(printer);
136136 nested_generators_[i]->GenerateStructDefinition(printer);
137137 }
138138
139 std::map<string, string> vars;
140 vars["classname"] = FullNameToC(descriptor_->full_name());
141 vars["lcclassname"] = FullNameToLower(descriptor_->full_name());
142 vars["ucclassname"] = FullNameToUpper(descriptor_->full_name());
139 std::map<std::string, std::string> vars;
140 vars["classname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
141 vars["lcclassname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file());
142 vars["ucclassname"] = FullNameToUpper(descriptor_->full_name(), descriptor_->file());
143143 vars["field_count"] = SimpleItoa(descriptor_->field_count());
144144 if (dllexport_decl_.empty()) {
145145 vars["dllexport"] = "";
152152 const OneofDescriptor *oneof = descriptor_->oneof_decl(i);
153153 vars["opt_comma"] = ",";
154154
155 vars["oneofname"] = FullNameToUpper(oneof->name());
156 vars["foneofname"] = FullNameToC(oneof->full_name());
155 vars["oneofname"] = CamelToUpper(oneof->name());
156 vars["foneofname"] = FullNameToC(oneof->full_name(), oneof->file());
157157
158158 printer->Print("typedef enum {\n");
159159 printer->Indent();
160160 printer->Print(vars, "$ucclassname$__$oneofname$__NOT_SET = 0,\n");
161161 for (int j = 0; j < oneof->field_count(); j++) {
162162 const FieldDescriptor *field = oneof->field(j);
163 vars["fieldname"] = FullNameToUpper(field->name());
163 vars["fieldname"] = CamelToUpper(field->name());
164164 vars["fieldnum"] = SimpleItoa(field->number());
165165 bool isLast = j == oneof->field_count() - 1;
166166 if (isLast) {
168168 }
169169 printer->Print(vars, "$ucclassname$__$oneofname$_$fieldname$ = $fieldnum$$opt_comma$\n");
170170 }
171 printer->Print(vars, " PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE($ucclassname$__$oneofname$)\n");
171 printer->Print(vars, " PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE($ucclassname$__$oneofname$__CASE)\n");
172172 printer->Outdent();
173173 printer->Print(vars, "} $foneofname$Case;\n\n");
174174 }
177177 descriptor_->GetSourceLocation(&msgSourceLoc);
178178 PrintComment (printer, msgSourceLoc.leading_comments);
179179
180 printer->Print(vars,
181 "struct $dllexport$ _$classname$\n"
180 const ProtobufCMessageOptions opt =
181 descriptor_->options().GetExtension(pb_c_msg);
182 vars["base"] = opt.base_field_name();
183
184 printer->Print(vars,
185 "struct $dllexport$ $classname$\n"
182186 "{\n"
183 " ProtobufCMessage base;\n");
187 " ProtobufCMessage $base$;\n");
184188
185189 // Generate fields.
186190 printer->Indent();
199203 // Generate unions from oneofs.
200204 for (int i = 0; i < descriptor_->oneof_decl_count(); i++) {
201205 const OneofDescriptor *oneof = descriptor_->oneof_decl(i);
202 vars["oneofname"] = FullNameToLower(oneof->name());
203 vars["foneofname"] = FullNameToC(oneof->full_name());
206 vars["oneofname"] = CamelToLower(oneof->name());
207 vars["foneofname"] = FullNameToC(oneof->full_name(), oneof->file());
204208
205209 printer->Print(vars, "$foneofname$Case $oneofname$_case;\n");
206210
240244 }
241245 for (int i = 0; i < descriptor_->oneof_decl_count(); i++) {
242246 const OneofDescriptor *oneof = descriptor_->oneof_decl(i);
243 vars["foneofname"] = FullNameToUpper(oneof->full_name());
247 vars["foneofname"] = FullNameToUpper(oneof->full_name(), oneof->file());
244248 // Initialize the case enum
245249 printer->Print(vars, ", $foneofname$__NOT_SET");
246250 // Initialize the union
251255 }
252256
253257 void MessageGenerator::
254 GenerateHelperFunctionDeclarations(io::Printer* printer, bool is_submessage)
258 GenerateHelperFunctionDeclarations(io::Printer* printer,
259 bool is_pack_deep,
260 bool gen_pack,
261 bool gen_init)
255262 {
263 const ProtobufCMessageOptions opt =
264 descriptor_->options().GetExtension(pb_c_msg);
265
266 // Override parent settings, if needed
267 if (opt.has_gen_pack_helpers())
268 gen_pack = opt.gen_pack_helpers();
269 if (opt.has_gen_init_helpers())
270 gen_init = opt.gen_init_helpers();
271
256272 for (int i = 0; i < descriptor_->nested_type_count(); i++) {
257 nested_generators_[i]->GenerateHelperFunctionDeclarations(printer, true);
258 }
259
260 std::map<string, string> vars;
261 vars["classname"] = FullNameToC(descriptor_->full_name());
262 vars["lcclassname"] = FullNameToLower(descriptor_->full_name());
263 printer->Print(vars,
273 bool nested_pack = !is_pack_deep ? opt.gen_pack_helpers() : gen_pack;
274 nested_generators_[i]->GenerateHelperFunctionDeclarations(printer, true,
275 nested_pack,
276 gen_init);
277 }
278
279 std::map<std::string, std::string> vars;
280 vars["classname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
281 vars["lcclassname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file());
282 if (gen_init) {
283 printer->Print(vars,
264284 "/* $classname$ methods */\n"
265285 "void $lcclassname$__init\n"
266286 " ($classname$ *message);\n"
267287 );
268 if (!is_submessage) {
288 }
289 if (gen_pack) {
269290 printer->Print(vars,
270291 "size_t $lcclassname$__get_packed_size\n"
271292 " (const $classname$ *message);\n"
290311 void MessageGenerator::
291312 GenerateDescriptorDeclarations(io::Printer* printer) {
292313 printer->Print("extern const ProtobufCMessageDescriptor $name$__descriptor;\n",
293 "name", FullNameToLower(descriptor_->full_name()));
314 "name", FullNameToLower(descriptor_->full_name(), descriptor_->file()));
294315
295316 for (int i = 0; i < descriptor_->nested_type_count(); i++) {
296317 nested_generators_[i]->GenerateDescriptorDeclarations(printer);
305326 for (int i = 0; i < descriptor_->nested_type_count(); i++) {
306327 nested_generators_[i]->GenerateClosureTypedef(printer);
307328 }
308 std::map<string, string> vars;
309 vars["name"] = FullNameToC(descriptor_->full_name());
329 std::map<std::string, std::string> vars;
330 vars["name"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
310331 printer->Print(vars,
311332 "typedef void (*$name$_Closure)\n"
312333 " (const $name$ *message,\n"
324345 }
325346
326347 void MessageGenerator::
327 GenerateHelperFunctionDefinitions(io::Printer* printer, bool is_submessage)
348 GenerateHelperFunctionDefinitions(io::Printer* printer,
349 bool is_pack_deep,
350 bool gen_pack,
351 bool gen_init)
328352 {
353 const ProtobufCMessageOptions opt =
354 descriptor_->options().GetExtension(pb_c_msg);
355
356 // Override parent settings, if needed
357 if (opt.has_gen_pack_helpers())
358 gen_pack = opt.gen_pack_helpers();
359 if (opt.has_gen_init_helpers())
360 gen_init = opt.gen_init_helpers();
361
329362 for (int i = 0; i < descriptor_->nested_type_count(); i++) {
330 nested_generators_[i]->GenerateHelperFunctionDefinitions(printer, true);
331 }
332
333 std::map<string, string> vars;
334 vars["classname"] = FullNameToC(descriptor_->full_name());
335 vars["lcclassname"] = FullNameToLower(descriptor_->full_name());
336 vars["ucclassname"] = FullNameToUpper(descriptor_->full_name());
337 printer->Print(vars,
363 bool nested_pack = !is_pack_deep ? opt.gen_pack_helpers() : gen_pack;
364 nested_generators_[i]->GenerateHelperFunctionDefinitions(printer, true,
365 nested_pack,
366 gen_init);
367 }
368
369 std::map<std::string, std::string> vars;
370 vars["classname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
371 vars["lcclassname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file());
372 vars["ucclassname"] = FullNameToUpper(descriptor_->full_name(), descriptor_->file());
373 vars["base"] = opt.base_field_name();
374 if (gen_init) {
375 printer->Print(vars,
338376 "void $lcclassname$__init\n"
339377 " ($classname$ *message)\n"
340378 "{\n"
341379 " static const $classname$ init_value = $ucclassname$__INIT;\n"
342380 " *message = init_value;\n"
343381 "}\n");
344 if (!is_submessage) {
382 }
383 if (gen_pack) {
345384 printer->Print(vars,
346385 "size_t $lcclassname$__get_packed_size\n"
347386 " (const $classname$ *message)\n"
348387 "{\n"
349 " assert(message->base.descriptor == &$lcclassname$__descriptor);\n"
388 " assert(message->$base$.descriptor == &$lcclassname$__descriptor);\n"
350389 " return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));\n"
351390 "}\n"
352391 "size_t $lcclassname$__pack\n"
353392 " (const $classname$ *message,\n"
354393 " uint8_t *out)\n"
355394 "{\n"
356 " assert(message->base.descriptor == &$lcclassname$__descriptor);\n"
395 " assert(message->$base$.descriptor == &$lcclassname$__descriptor);\n"
357396 " return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);\n"
358397 "}\n"
359398 "size_t $lcclassname$__pack_to_buffer\n"
360399 " (const $classname$ *message,\n"
361400 " ProtobufCBuffer *buffer)\n"
362401 "{\n"
363 " assert(message->base.descriptor == &$lcclassname$__descriptor);\n"
402 " assert(message->$base$.descriptor == &$lcclassname$__descriptor);\n"
364403 " return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);\n"
365404 "}\n"
366405 "$classname$ *\n"
379418 "{\n"
380419 " if(!message)\n"
381420 " return;\n"
382 " assert(message->base.descriptor == &$lcclassname$__descriptor);\n"
421 " assert(message->$base$.descriptor == &$lcclassname$__descriptor);\n"
383422 " protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);\n"
384423 "}\n"
385424 );
387426 }
388427
389428 void MessageGenerator::
390 GenerateMessageDescriptor(io::Printer* printer) {
391 std::map<string, string> vars;
429 GenerateMessageDescriptor(io::Printer* printer, bool gen_init) {
430 std::map<std::string, std::string> vars;
392431 vars["fullname"] = descriptor_->full_name();
393 vars["classname"] = FullNameToC(descriptor_->full_name());
394 vars["lcclassname"] = FullNameToLower(descriptor_->full_name());
432 vars["classname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
433 vars["lcclassname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file());
395434 vars["shortname"] = ToCamel(descriptor_->name());
396435 vars["n_fields"] = SimpleItoa(descriptor_->field_count());
397436 vars["packagename"] = descriptor_->file()->package();
400439 descriptor_->file()->options().optimize_for() ==
401440 FileOptions_OptimizeMode_CODE_SIZE;
402441
442 const ProtobufCMessageOptions opt =
443 descriptor_->options().GetExtension(pb_c_msg);
444 // Override parent settings, if needed
445 if (opt.has_gen_init_helpers())
446 gen_init = opt.gen_init_helpers();
447
403448 for (int i = 0; i < descriptor_->nested_type_count(); i++) {
404 nested_generators_[i]->GenerateMessageDescriptor(printer);
449 nested_generators_[i]->GenerateMessageDescriptor(printer, gen_init);
405450 }
406451
407452 for (int i = 0; i < descriptor_->enum_type_count(); i++) {
417462
418463 for (int i = 0; i < descriptor_->field_count(); i++) {
419464 const FieldDescriptor *fd = descriptor_->field(i);
465 const ProtobufCFieldOptions opt = fd->options().GetExtension(pb_c_field);
420466 if (fd->has_default_value()) {
421467
422468 bool already_defined = false;
455501 GOOGLE_LOG(DFATAL) << "Messages can't have default values!";
456502 break;
457503 case FieldDescriptor::CPPTYPE_STRING:
458 if (fd->type() == FieldDescriptor::TYPE_BYTES)
504 if (fd->type() == FieldDescriptor::TYPE_BYTES || opt.string_as_bytes())
459505 {
460506 vars["field_dv_ctype"] = "ProtobufCBinaryData";
461507 }
470516 case FieldDescriptor::CPPTYPE_ENUM:
471517 {
472518 const EnumValueDescriptor *vd = fd->default_value_enum();
473 vars["field_dv_ctype"] = FullNameToC(vd->type()->full_name());
519 vars["field_dv_ctype"] = FullNameToC(vd->type()->full_name(), vd->type()->file());
474520 break;
475521 }
476522 default:
567613 }
568614 printer->Print(vars,
569615 " $n_ranges$,"
570 " $lcclassname$__number_ranges,\n"
571 " (ProtobufCMessageInit) $lcclassname$__init,\n"
616 " $lcclassname$__number_ranges,\n");
617 if (gen_init) {
618 printer->Print(vars,
619 " (ProtobufCMessageInit) $lcclassname$__init,\n");
620 } else {
621 printer->Print(vars,
622 " NULL, /* gen_init_helpers = false */\n");
623 }
624 printer->Print(vars,
572625 " NULL,NULL,NULL /* reserved[123] */\n"
573626 "};\n");
574627 }
8585 public:
8686 // See generator.cc for the meaning of dllexport_decl.
8787 explicit MessageGenerator(const Descriptor* descriptor,
88 const string& dllexport_decl);
88 const std::string& dllexport_decl);
8989 ~MessageGenerator();
9090
9191 // Header stuff.
110110 void GenerateStructStaticInitMacro(io::Printer* printer);
111111
112112 // Generate standard helper functions declarations for this message.
113 void GenerateHelperFunctionDeclarations(io::Printer* printer, bool is_submessage);
113 void GenerateHelperFunctionDeclarations(io::Printer* printer,
114 bool is_pack_deep,
115 bool gen_pack,
116 bool gen_init);
114117
115118 // Source file stuff.
116119
117120 // Generate code that initializes the global variable storing the message's
118121 // descriptor.
119 void GenerateMessageDescriptor(io::Printer* printer);
120 void GenerateHelperFunctionDefinitions(io::Printer* printer, bool is_submessage);
122 void GenerateMessageDescriptor(io::Printer* printer, bool gen_init);
123 void GenerateHelperFunctionDefinitions(io::Printer* printer,
124 bool is_pack_deep,
125 bool gen_pack,
126 bool gen_init);
121127
122128 private:
123129
124 string GetDefaultValueC(const FieldDescriptor *fd);
130 std::string GetDefaultValueC(const FieldDescriptor *fd);
125131
126132 const Descriptor* descriptor_;
127 string dllexport_decl_;
133 std::string dllexport_decl_;
128134 FieldGeneratorMap field_generators_;
129135 std::unique_ptr<std::unique_ptr<MessageGenerator>[]> nested_generators_;
130136 std::unique_ptr<std::unique_ptr<EnumGenerator>[]> enum_generators_;
8282
8383 void MessageFieldGenerator::GenerateStructMembers(io::Printer* printer) const
8484 {
85 std::map<string, string> vars;
85 std::map<std::string, std::string> vars;
8686 vars["name"] = FieldName(descriptor_);
87 vars["type"] = FullNameToC(descriptor_->message_type()->full_name());
87 vars["type"] = FullNameToC(descriptor_->message_type()->full_name(), descriptor_->message_type()->file());
8888 vars["deprecated"] = FieldDeprecated(descriptor_);
8989 switch (descriptor_->label()) {
9090 case FieldDescriptor::LABEL_REQUIRED:
9797 break;
9898 }
9999 }
100 string MessageFieldGenerator::GetDefaultValue(void) const
100 std::string MessageFieldGenerator::GetDefaultValue(void) const
101101 {
102102 /* XXX: update when protobuf gets support
103103 * for default-values of message fields.
118118 }
119119 void MessageFieldGenerator::GenerateDescriptorInitializer(io::Printer* printer) const
120120 {
121 string addr = "&" + FullNameToLower(descriptor_->message_type()->full_name()) + "__descriptor";
121 std::string addr = "&" + FullNameToLower(descriptor_->message_type()->full_name(), descriptor_->message_type()->file()) + "__descriptor";
122122 GenerateDescriptorInitializerGeneric(printer, false, "MESSAGE", addr);
123123 }
124124
7979 // implements FieldGenerator ---------------------------------------
8080 void GenerateStructMembers(io::Printer* printer) const;
8181 void GenerateDescriptorInitializer(io::Printer* printer) const;
82 string GetDefaultValue(void) const;
82 std::string GetDefaultValue(void) const;
8383 void GenerateStaticInit(io::Printer* printer) const;
8484
8585 private:
7878
7979 void PrimitiveFieldGenerator::GenerateStructMembers(io::Printer* printer) const
8080 {
81 string c_type;
82 std::map<string, string> vars;
81 std::string c_type;
82 std::map<std::string, std::string> vars;
8383 switch (descriptor_->type()) {
8484 case FieldDescriptor::TYPE_SINT32 :
8585 case FieldDescriptor::TYPE_SFIXED32:
122122 break;
123123 }
124124 }
125 string PrimitiveFieldGenerator::GetDefaultValue() const
125 std::string PrimitiveFieldGenerator::GetDefaultValue() const
126126 {
127127 /* XXX: SimpleItoa seems woefully inadequate for anything but int32,
128128 * but that's what protobuf uses. */
148148 }
149149 void PrimitiveFieldGenerator::GenerateStaticInit(io::Printer* printer) const
150150 {
151 std::map<string, string> vars;
151 std::map<std::string, std::string> vars;
152152 if (descriptor_->has_default_value()) {
153153 vars["default_value"] = GetDefaultValue();
154154 } else {
171171
172172 void PrimitiveFieldGenerator::GenerateDescriptorInitializer(io::Printer* printer) const
173173 {
174 string c_type_macro;
174 std::string c_type_macro;
175175 switch (descriptor_->type()) {
176176 #define WRITE_CASE(shortname) case FieldDescriptor::TYPE_##shortname: c_type_macro = #shortname; break;
177177 WRITE_CASE(INT32)
7979 // implements FieldGenerator ---------------------------------------
8080 void GenerateStructMembers(io::Printer* printer) const;
8181 void GenerateDescriptorInitializer(io::Printer* printer) const;
82 string GetDefaultValue(void) const;
82 std::string GetDefaultValue(void) const;
8383 void GenerateStaticInit(io::Printer* printer) const;
8484
8585 private:
6969 namespace c {
7070
7171 ServiceGenerator::ServiceGenerator(const ServiceDescriptor* descriptor,
72 const string& dllexport_decl)
72 const std::string& dllexport_decl)
7373 : descriptor_(descriptor) {
7474 vars_["name"] = descriptor_->name();
7575 vars_["fullname"] = descriptor_->full_name();
76 vars_["cname"] = FullNameToC(descriptor_->full_name());
77 vars_["lcfullname"] = FullNameToLower(descriptor_->full_name());
78 vars_["ucfullname"] = FullNameToUpper(descriptor_->full_name());
76 vars_["cname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
77 vars_["lcfullname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file());
78 vars_["ucfullname"] = FullNameToUpper(descriptor_->full_name(), descriptor_->file());
7979 vars_["lcfullpadd"] = ConvertToSpaces(vars_["lcfullname"]);
8080 vars_["package"] = descriptor_->file()->package();
8181 if (dllexport_decl.empty()) {
9797 void ServiceGenerator::GenerateVfuncs(io::Printer* printer)
9898 {
9999 printer->Print(vars_,
100 "typedef struct _$cname$_Service $cname$_Service;\n"
101 "struct _$cname$_Service\n"
100 "typedef struct $cname$_Service $cname$_Service;\n"
101 "struct $cname$_Service\n"
102102 "{\n"
103103 " ProtobufCService base;\n");
104104 for (int i = 0; i < descriptor_->method_count(); i++) {
105105 const MethodDescriptor *method = descriptor_->method(i);
106 string lcname = CamelToLower(method->name());
107 vars_["method"] = lcname;
108 vars_["metpad"] = ConvertToSpaces(lcname);
109 vars_["input_typename"] = FullNameToC(method->input_type()->full_name());
110 vars_["output_typename"] = FullNameToC(method->output_type()->full_name());
106 std::string lcname = CamelToLower(method->name());
107 vars_["method"] = lcname;
108 vars_["metpad"] = ConvertToSpaces(lcname);
109 vars_["input_typename"] = FullNameToC(method->input_type()->full_name(), method->input_type()->file());
110 vars_["output_typename"] = FullNameToC(method->output_type()->full_name(), method->output_type()->file());
111111 printer->Print(vars_,
112112 " void (*$method$)($cname$_Service *service,\n"
113113 " $metpad$ const $input_typename$ *input,\n"
130130 " { $ucfullname$__BASE_INIT");
131131 for (int i = 0; i < descriptor_->method_count(); i++) {
132132 const MethodDescriptor *method = descriptor_->method(i);
133 string lcname = CamelToLower(method->name());
133 std::string lcname = CamelToLower(method->name());
134134 vars_["method"] = lcname;
135135 vars_["metpad"] = ConvertToSpaces(lcname);
136136 printer->Print(vars_,
143143 {
144144 for (int i = 0; i < descriptor_->method_count(); i++) {
145145 const MethodDescriptor *method = descriptor_->method(i);
146 string lcname = CamelToLower(method->name());
147 string lcfullname = FullNameToLower(descriptor_->full_name());
148 vars_["method"] = lcname;
149 vars_["metpad"] = ConvertToSpaces(lcname);
150 vars_["input_typename"] = FullNameToC(method->input_type()->full_name());
151 vars_["output_typename"] = FullNameToC(method->output_type()->full_name());
146 std::string lcname = CamelToLower(method->name());
147 std::string lcfullname = FullNameToLower(descriptor_->full_name(), descriptor_->file());
148 vars_["method"] = lcname;
149 vars_["metpad"] = ConvertToSpaces(lcname);
150 vars_["input_typename"] = FullNameToC(method->input_type()->full_name(), method->input_type()->file());
151 vars_["output_typename"] = FullNameToC(method->output_type()->full_name(), method->output_type()->file());
152152 vars_["padddddddddddddddddd"] = ConvertToSpaces(lcfullname + "__" + lcname);
153153 printer->Print(vars_,
154154 "void $lcfullname$__$method$(ProtobufCService *service,\n"
207207 for (int i = 0; i < n_methods; i++) {
208208 const MethodDescriptor *method = descriptor_->method(i);
209209 vars_["method"] = method->name();
210 vars_["input_descriptor"] = "&" + FullNameToLower(method->input_type()->full_name()) + "__descriptor";
211 vars_["output_descriptor"] = "&" + FullNameToLower(method->output_type()->full_name()) + "__descriptor";
210 vars_["input_descriptor"] = "&" + FullNameToLower(method->input_type()->full_name(), method->input_type()->file()) + "__descriptor";
211 vars_["output_descriptor"] = "&" + FullNameToLower(method->output_type()->full_name(), method->output_type()->file()) + "__descriptor";
212212 if (optimize_code_size) {
213213 printer->Print(vars_,
214214 " { NULL, $input_descriptor$, $output_descriptor$ }, /* CODE_SIZE */\n");
265265 {
266266 for (int i = 0; i < descriptor_->method_count(); i++) {
267267 const MethodDescriptor *method = descriptor_->method(i);
268 string lcname = CamelToLower(method->name());
269 string lcfullname = FullNameToLower(descriptor_->full_name());
270 vars_["method"] = lcname;
271 vars_["metpad"] = ConvertToSpaces(lcname);
272 vars_["input_typename"] = FullNameToC(method->input_type()->full_name());
273 vars_["output_typename"] = FullNameToC(method->output_type()->full_name());
268 std::string lcname = CamelToLower(method->name());
269 std::string lcfullname = FullNameToLower(descriptor_->full_name(), descriptor_->file());
270 vars_["method"] = lcname;
271 vars_["metpad"] = ConvertToSpaces(lcname);
272 vars_["input_typename"] = FullNameToC(method->input_type()->full_name(), method->input_type()->file());
273 vars_["output_typename"] = FullNameToC(method->output_type()->full_name(), method->output_type()->file());
274274 vars_["padddddddddddddddddd"] = ConvertToSpaces(lcfullname + "__" + lcname);
275275 vars_["index"] = SimpleItoa(i);
276276
8181 public:
8282 // See generator.cc for the meaning of dllexport_decl.
8383 explicit ServiceGenerator(const ServiceDescriptor* descriptor,
84 const string& dllexport_decl);
84 const std::string& dllexport_decl);
8585 ~ServiceGenerator();
8686
8787 // Header stuff.
9898 void GenerateCallersImplementations(io::Printer* printer);
9999
100100 const ServiceDescriptor* descriptor_;
101 std::map<string, string> vars_;
101 std::map<std::string, std::string> vars_;
102102
103103 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ServiceGenerator);
104104 };
6363 #include <protoc-c/c_helpers.h>
6464 #include <google/protobuf/io/printer.h>
6565 #include <google/protobuf/wire_format.h>
66 #include <google/protobuf/descriptor.pb.h>
66 #include <protobuf-c/protobuf-c.pb.h>
6767
6868 namespace google {
6969 namespace protobuf {
7373 using internal::WireFormat;
7474
7575 void SetStringVariables(const FieldDescriptor* descriptor,
76 std::map<string, string>* variables) {
76 std::map<std::string, std::string>* variables) {
7777 (*variables)["name"] = FieldName(descriptor);
78 (*variables)["default"] = FullNameToLower(descriptor->full_name())
78 (*variables)["default"] = FullNameToLower(descriptor->full_name(), descriptor->file())
7979 + "__default_value";
8080 (*variables)["deprecated"] = FieldDeprecated(descriptor);
8181 }
9292
9393 void StringFieldGenerator::GenerateStructMembers(io::Printer* printer) const
9494 {
95 const ProtobufCFileOptions opt = descriptor_->file()->options().GetExtension(pb_c_file);
96
9597 switch (descriptor_->label()) {
9698 case FieldDescriptor::LABEL_REQUIRED:
9799 case FieldDescriptor::LABEL_OPTIONAL:
100 if (opt.const_strings())
101 printer->Print(variables_, "const ");
98102 printer->Print(variables_, "char *$name$$deprecated$;\n");
99103 break;
100104 case FieldDescriptor::LABEL_REPEATED:
101105 printer->Print(variables_, "size_t n_$name$$deprecated$;\n");
106 if (opt.const_strings())
107 printer->Print(variables_, "const ");
102108 printer->Print(variables_, "char **$name$$deprecated$;\n");
103109 break;
104110 }
109115 }
110116 void StringFieldGenerator::GenerateDefaultValueImplementations(io::Printer* printer) const
111117 {
112 std::map<string, string> vars;
118 std::map<std::string, std::string> vars;
113119 vars["default"] = variables_.find("default")->second;
114120 vars["escaped"] = CEscape(descriptor_->default_value_string());
115121 printer->Print(vars, "char $default$[] = \"$escaped$\";\n");
116122 }
117123
118 string StringFieldGenerator::GetDefaultValue(void) const
124 std::string StringFieldGenerator::GetDefaultValue(void) const
119125 {
120126 return variables_.find("default")->second;
121127 }
122128 void StringFieldGenerator::GenerateStaticInit(io::Printer* printer) const
123129 {
124 std::map<string, string> vars;
130 std::map<std::string, std::string> vars;
131 const ProtobufCFileOptions opt = descriptor_->file()->options().GetExtension(pb_c_file);
125132 if (descriptor_->has_default_value()) {
126133 vars["default"] = GetDefaultValue();
127134 } else if (FieldSyntax(descriptor_) == 2) {
128135 vars["default"] = "NULL";
136 } else if (opt.const_strings()) {
137 vars["default"] = "(const char *)protobuf_c_empty_string";
129138 } else {
130139 vars["default"] = "(char *)protobuf_c_empty_string";
131140 }
8181 void GenerateDescriptorInitializer(io::Printer* printer) const;
8282 void GenerateDefaultValueDeclarations(io::Printer* printer) const;
8383 void GenerateDefaultValueImplementations(io::Printer* printer) const;
84 string GetDefaultValue(void) const;
84 std::string GetDefaultValue(void) const;
8585 void GenerateStaticInit(io::Printer* printer) const;
8686
8787 private:
88 std::map<string, string> variables_;
88 std::map<std::string, std::string> variables_;
8989
9090 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(StringFieldGenerator);
9191 };
5555 T(0), T(2097152), T(268435455), T(127), T(16383), T(16384) };
5656 #undef T
5757
58 char *repeated_strings_0[] = { (char*)"onestring" };
59 char *repeated_strings_1[] = { (char*)"two", (char*)"string" };
60 char *repeated_strings_2[] = { (char*)"many", (char*)"tiny", (char*)"little", (char*)"strings", (char*)"should", (char*)"be", (char*)"handled" };
61 char *repeated_strings_3[] = { (char*)"one very long strings XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" };
58 const char *repeated_strings_0[] = { "onestring" };
59 const char *repeated_strings_1[] = { "two", "string" };
60 const char *repeated_strings_2[] = { "many", "tiny", "little", "strings", "should", "be", "handled" };
61 const char *repeated_strings_3[] = { "one very long strings XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" };
431431 #undef DO_TEST
432432 }
433433
434 static size_t foo__test_mess_optional__get_packed_size
435 (const Foo__TestMessOptional *message)
436 {
437 assert(message->base.descriptor == &foo__test_mess_optional__descriptor);
438 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
439 }
440 static size_t foo__test_mess_optional__pack
441 (const Foo__TestMessOptional *message,
442 uint8_t *out)
443 {
444 assert(message->base.descriptor == &foo__test_mess_optional__descriptor);
445 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
446 }
447 static Foo__TestMessOptional *
448 foo__test_mess_optional__unpack
449 (ProtobufCAllocator *allocator,
450 size_t len,
451 const uint8_t *data)
452 {
453 return (Foo__TestMessOptional *)
454 protobuf_c_message_unpack (&foo__test_mess_optional__descriptor,
455 allocator, len, data);
456 }
457 static void foo__test_mess_optional__free_unpacked
458 (Foo__TestMessOptional *message,
459 ProtobufCAllocator *allocator)
460 {
461 if(!message)
462 return;
463 assert(message->base.descriptor == &foo__test_mess_optional__descriptor);
464 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
465 }
466
434467 /* === Optional type fields === */
435468 static void test_empty_optional (void)
436469 {
12401273 {
12411274
12421275 #define DO_TEST(static_array, example_packed_data) \
1243 DO_TEST_REPEATED(test_string, (char **), \
1276 DO_TEST_REPEATED(test_string, (const char **), \
12441277 static_array, example_packed_data, \
12451278 STRING_EQUALS)
12461279
20752108 Foo__TestMessageCheck__SubMessage sm = FOO__TEST_MESSAGE_CHECK__SUB_MESSAGE__INIT;
20762109 Foo__TestMessageCheck__SubMessage sm2 = FOO__TEST_MESSAGE_CHECK__SUB_MESSAGE__INIT;
20772110 Foo__TestMessageCheck m = FOO__TEST_MESSAGE_CHECK__INIT;
2078 char *null = NULL;
2079 char *str = "";
2111 const char *null = NULL;
2112 const char *str = "";
20802113 Foo__TestMessageCheck__SubMessage *sm_p;
20812114 ProtobufCBinaryData bd;
20822115
0 #include <stdlib.h>
1
2 #include "t/issue251/issue251.pb-c.h"
3
4 int main(void)
5 {
6 TwoOneofs msg = TWO_ONEOFS__INIT;
7 const ProtobufCFieldDescriptor *field;
8 unsigned off1, off2, off_name;
9 field = protobuf_c_message_descriptor_get_field_by_name(
10 msg.base.descriptor,
11 "first_oneof");
12 assert (field);
13 off_name = field->offset;
14 field = protobuf_c_message_descriptor_get_field(
15 msg.base.descriptor,
16 10);
17 assert (field);
18 off1 = field->offset;
19 field = protobuf_c_message_descriptor_get_field(
20 msg.base.descriptor,
21 11);
22 assert (field);
23 off2 = field->offset;
24
25 assert (off_name == off1);
26 assert (off1 == off2);
27
28 field = protobuf_c_message_descriptor_get_field_by_name(
29 msg.base.descriptor,
30 "second_oneof");
31 assert (field);
32 off_name = field->offset;
33 field = protobuf_c_message_descriptor_get_field(
34 msg.base.descriptor,
35 20);
36 assert (field);
37 off1 = field->offset;
38 field = protobuf_c_message_descriptor_get_field(
39 msg.base.descriptor,
40 21);
41 assert (field);
42 off2 = field->offset;
43
44 assert (off_name == off1);
45 assert (off1 == off2);
46 return EXIT_SUCCESS;
47 }
0 import "protobuf-c/protobuf-c.proto";
1
2 option (pb_c_file).use_oneof_field_name = true;
3
4 message two_oneofs {
5 oneof first_oneof {
6 bool a = 10;
7 bool b = 11;
8 }
9
10 oneof second_oneof {
11 bool c = 20;
12 bool d = 21;
13 }
14 }
77 {
88 assert(_MESSAGE_TYPE1__FLAG_IS_INT_SIZE == INT_MAX);
99 assert(_MESSAGE_TYPE2__ANOTHER_FLAG_IS_INT_SIZE == INT_MAX);
10 assert(_TOP_LEVEL__SUBMESSAGES_IS_INT_SIZE == INT_MAX);
10 assert(_TOP_LEVEL__SUBMESSAGES__CASE_IS_INT_SIZE == INT_MAX);
1111 return EXIT_SUCCESS;
1212 }
0 syntax = "proto3";
1
2 message EnumIntTest {
3 enum Label {
4 LABEL_1 = 0;
5 LABEL_2 = 1;
6 }
7 oneof label {
8 Label label_label = 123;
9 uint64 label_uint64 = 124;
10 }
11 }
0 #include <stdlib.h>
1 #include <string.h>
2
3 #include "t/issue440/issue440.pb-c.h"
4
5 int main(void)
6 {
7 /* Output of $ echo "int: 1 int: -142342 int: 0 int: 423423222" | \
8 * protoc issue440.proto --encode=Int | xxd -i:
9 * 0x0a, 0x11, 0x01, 0xfa, 0xa7, 0xf7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
10 * 0x01, 0x00, 0xf6, 0xd9, 0xf3, 0xc9, 0x01
11 *
12 * Output of $ echo "int: 1 int: -142342 int: 0 int: 423423222" | \
13 * protoc issue440.proto --encode=Int | protoc issue440.proto \
14 * --decode=Boolean: boolean: true boolean: true boolean: false boolean: true
15 */
16 uint8_t protoc[] = {0x0a, 0x11, 0x01, 0xfa, 0xa7, 0xf7, 0xff, 0xff,
17 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0xf6, 0xd9, 0xf3, 0xc9,
18 0x01};
19 Boolean *msg = boolean__unpack (NULL, sizeof protoc, protoc);
20 assert(msg);
21 assert(msg->n_boolean == 4);
22 assert(msg->boolean[0] == 1);
23 assert(msg->boolean[1] == 1);
24 assert(msg->boolean[2] == 0);
25 assert(msg->boolean[3] == 1);
26 boolean__free_unpacked (msg, NULL);
27
28 return EXIT_SUCCESS;
29 }
0 syntax = "proto3";
1
2 message Int {
3 repeated int32 int = 1;
4 }
5
6 message Boolean {
7 repeated bool boolean = 1;
8 }
00 package foo;
1
2 import "protobuf-c/protobuf-c.proto";
3
4 option (pb_c_file).const_strings = true;
15
26 message SubMess {
37 required int32 test = 4;
1014 repeated int32 rep = 4;
1115 optional bytes bytes1 = 2 [default = "a \0 char"];
1216 optional string str1 = 3 [default = "hello world\n"];
17 optional string str2 = 5 [default = "hello\0world\n",
18 (pb_c_field).string_as_bytes = true];
1319 }
1420 optional SubSubMess sub1 = 9;
1521 optional SubSubMess sub2 = 10;
114120 }
115121
116122 message TestMessOptional {
123 option (pb_c_msg).gen_pack_helpers = false;
124 option (pb_c_msg).gen_init_helpers = false;
117125 optional int32 test_int32 = 1;
118126 optional sint32 test_sint32 = 2;
119127 optional sfixed32 test_sfixed32 = 3;
00 package foo;
1
2 import "protobuf-c/protobuf-c.proto";
3
4 option (pb_c_file).c_package = "foo";
15
26 message Person {
37 required string name = 1;