forwarding nowarn flags neccessary for interim contrib compilation with gcc-8.1.0...
[AROS.git] / config / features.in
blob918eb3d11bbbb4b01e331697788371efe22b347f
1 dnl Copyright © 1997-2018, The AROS Development Team. All rights reserved.
2 dnl $Id$
3 dnl
4 dnl Desc: Autoconf source for target compiler feature detection
5 dnl Lang: english 
7 # Note: After file changes, generate features anew and commit _both_ files.
8 -------------------------
10 AC_INIT(../mmakefile)
11 AC_PREREQ(2.61)
12 AC_CONFIG_AUX_DIR(../scripts/autoconf)
14 AROS_BUILDDIR=`${PWDCMD-pwd}`
15 AROS_BUILDDIR_UNIX=${PWD}
17 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
18 SRCDIR=${srcpwd}
20 NOLINKFLAGS="-nostdlib -nostartfiles"
21  LDFLAGS=$NOLINKFLAGS
22 # The first step is to find the binaries.
23 AC_PROG_CC
25 AC_MSG_CHECKING([target config location])
26 AC_ARG_WITH(config-dir,AC_HELP_STRING([--with-config-dir=VERSION],[Location of generated target config files]),targetcfg_dir="$withval",targetcfg_dir="")
27 if test "$targetcfg_dir" = ""; then
28     AC_MSG_ERROR([missing config directory!])
29 else
30     aros_targetcfg_dir="$targetcfg_dir"
32 AC_MSG_RESULT($aros_targetcfg_dir)
34 #-----------------------------------------------------------------------------
36 # Check if the target compiler supports some features:
37 #  -fexceptions
38 #  -fpermissive
39 #  -ffast-math
40 #  -fno-builtin-floor
41 #  -flto
42 #  -fwhole-program
43 #  -floop-block
44 #  -floop-interchange
45 #  -floop-strip-mine
46 #  -fpeel-loops
47 #  -fstrict-aliasing
48 #  -finline-small-functions
49 #  -fipa-cp
50 #  -funroll-loops
51 #  -fomit-frame-pointer
53 AC_MSG_CHECKING([whether ${CC} accepts -fexceptions])
54 CFLAGS=-fexceptions
55 AC_TRY_COMPILE(,, aros_exceptions="yes", aros_exceptions="no")
56 AC_MSG_RESULT($aros_exceptions)
57 if test "x-$aros_exceptions" = "x-yes" ; then
58     aros_cflags_exceptions=-fexceptions
59     aros_cflags_noexceptions=-fno-exceptions
62 AC_MSG_CHECKING([whether ${CC} accepts -fpermissive])
63 CFLAGS=-fpermissive
64 AC_TRY_COMPILE(,, aros_permissive="yes", aros_permissive="no")
65 AC_MSG_RESULT($aros_permissive)
66 if test "x-$aros_permissive" = "x-yes" ; then
67     aros_cflags_permissive=-fpermissive
70 AC_MSG_CHECKING([whether ${CC} accepts -ffast-math])
71 CFLAGS=-ffast-math
72 AC_TRY_COMPILE(,, aros_fast_math="yes", aros_fast_math="no")
73 AC_MSG_RESULT($aros_fast_math)
74 if test "x-$aros_fast_math" = "x-yes" ; then
75     aros_cflags_fast_math=-ffast-math
78 AC_MSG_CHECKING([whether ${CC} accepts -fno-builtin-floor])
79 CFLAGS=-fno-builtin-floor
80 AC_TRY_COMPILE(,, aros_no_builtin_floor="yes", aros_no_builtin_floor="no")
81 AC_MSG_RESULT($aros_no_builtin_floor)
82 if test "x-$aros_no_builtin_floor" = "x-yes" ; then
83     aros_cflags_no_builtin_floor=-fno-builtin-floor
86 AC_MSG_CHECKING([whether ${CC} accepts -flto])
87 CFLAGS=-flto
88 AC_TRY_COMPILE(,, aros_lto="yes", aros_lto="no")
89 AC_MSG_RESULT($aros_lto)
90 if test "x-$aros_lto" = "x-yes" ; then
91     aros_cflags_lto=-flto
92     aros_cflags_nolto=-fno-lto
93     
94     AC_MSG_CHECKING([whether ${CC} accepts -fwhole-program])
95     CFLAGS=-fwhole-program
96     AC_TRY_COMPILE(,, aros_whole_program="yes", aros_whole_program="no")
97     AC_MSG_RESULT($aros_whole_program)
98     if test "x-$aros_whole_program" = "x-yes" ; then
99         aros_cflags_whole_program=-fwhole-program
100     fi
101     
102     AC_MSG_CHECKING([whether ${CC} accepts -floop-block])
103     CFLAGS=-floop-block
104     AC_TRY_COMPILE(,, aros_loop_block="yes", aros_loop_block="no")
105     AC_MSG_RESULT($aros_loop_block)
106     if test "x-$aros_loop_block" = "x-yes" ; then
107         aros_cflags_loop_block=-floop-block
108     fi
109     
110     AC_MSG_CHECKING([whether ${CC} accepts -floop-interchange])
111     CFLAGS=-floop-interchange
112     AC_TRY_COMPILE(,, aros_loop_interchange="yes", aros_loop_interchange="no")
113     AC_MSG_RESULT($aros_loop_interchange)
114     if test "x-$aros_loop_interchange" = "x-yes" ; then
115         aros_cflags_loop_interchange=-floop-interchange
116     fi
117     
118     AC_MSG_CHECKING([whether ${CC} accepts -floop-strip-mine])
119     CFLAGS=-floop-strip-mine
120     AC_TRY_COMPILE(,, aros_loop_strip_mine="yes", aros_loop_strip_mine="no")
121     AC_MSG_RESULT($aros_loop_strip_mine)
122     if test "x-$aros_loop_strip_mine" = "x-yes" ; then
123         aros_cflags_loop_strip_mine=-floop-strip-mine
124     fi
127 AC_MSG_CHECKING([whether ${CC} accepts -fpeel-loops])
128 CFLAGS=-fpeel-loops
129 AC_TRY_COMPILE(,, aros_peel_loops="yes", aros_peel_loops="no")
130 AC_MSG_RESULT($aros_peel_loops)
131 if test "x-$aros_peel_loops" = "x-yes" ; then
132     aros_cflags_peel_loops=-fpeel-loops
135 AC_MSG_CHECKING([whether ${CC} accepts -funroll-loops])
136 CFLAGS=-funroll-loops
137 AC_TRY_COMPILE(,, aros_unroll_loops="yes", aros_unroll_loops="no")
138 AC_MSG_RESULT($aros_unroll_loops)
139 if test "x-$aros_unroll_loops" = "x-yes" ; then
140     aros_cflags_unroll_loops=-funroll-loops
143 AC_MSG_CHECKING([whether ${CC} accepts -fstrict-aliasing])
144 CFLAGS=-fstrict-aliasing
145 AC_TRY_COMPILE(,, aros_strict_aliasing="yes", aros_strict_aliasing="no")
146 AC_MSG_RESULT($aros_strict_aliasing)
147 if test "x-$aros_strict_aliasing" = "x-yes" ; then
148     aros_cflags_strictaliasing=-fstrict-aliasing
149     aros_cflags_nostrictaliasing=-fno-strict-aliasing
152 AC_MSG_CHECKING([whether ${CC} accepts -finline-small-functions])
153 CFLAGS=-finline-small-functions
154 AC_TRY_COMPILE(,, aros_inline_small_functions="yes", aros_inline_small_functions="no")
155 AC_MSG_RESULT($aros_inline_small_functions)
156 if test "x-$aros_inline_small_functions" = "x-yes" ; then
157     aros_cflags_inlinesmallfunctions=-finline-small-functions
158     aros_cflags_noinlinesmallfunctions=-fno-inline-small-functions
161 AC_MSG_CHECKING([whether ${CC} accepts -fipa-cp])
162 CFLAGS=-fipa-cp
163 AC_TRY_COMPILE(,, aros_ipa_cp="yes", aros_ipa_cp="no")
164 AC_MSG_RESULT($aros_ipa_cp)
165 if test "x-$aros_ipa_cp" = "x-yes" ; then
166     aros_cflags_ipacp=-fipa-cp
167     aros_cflags_noipacp=-fno-ipa-cp
170 AC_MSG_CHECKING([whether ${CC} accepts -fomit-frame-pointer])
171 CFLAGS=-fomit-frame-pointer
172 AC_TRY_COMPILE(,, aros_omit_frame_pointer="yes", aros_omit_frame_pointer="no")
173 AC_MSG_RESULT($aros_omit_frame_pointer)
174 if test "x-$aros_omit_frame_pointer" = "x-yes" ; then
175     aros_cflags_omitfp=-fomit-frame-pointer
176     aros_cflags_noomitfp=-fno-omit-frame-pointer
179 AC_MSG_CHECKING([whether ${CC} accepts -iquote])
180 CFLAGS="-iquote."
181 AC_TRY_COMPILE(,, has_iquote="yes", has_iquote="no")
182 AC_MSG_RESULT($has_iquote)
183 if test "x-$has_iquote" = "x-yes" ; then
184     aros_cflags_iquote=-iquote
185     aros_cflags_iquote_end=
186 else
187     aros_cflags_iquote=-I
188     aros_cflags_iquote_end=-I-
191 #-----------------------------------------------------------------------------
193 # Check if the target compiler supports some options:
194 #  -mno-red-zone
196 AC_MSG_CHECKING([whether ${CC} accepts -mno-red-zone])
197 CFLAGS=-mno-red-zone
198 AC_TRY_COMPILE(,, aros_no_red_zone="yes", aros_no_red_zone="no")
199 AC_MSG_RESULT($aros_no_red_zone)
200 if test "x-$aros_no_red_zone" = "x-yes" ; then
201     aros_cflags_no_red_zone=-mno-red-zone
204 #-----------------------------------------------------------------------------
206 # Check if the target compiler supports some options used for de-linting:
207 #  -Werror
208 #  -Wall
209 #  -Wrestrict
210 #  -Wunused-command-line-argument
211 #  -Wunknown-warning-option
212 #  -Wunused-but-set-variable
213 #  -Wstrict-aliasing
214 #  -Warray-bounds
215 #  -Wenum-compare
216 #  -Wstrict-prototypes
217 #  -Wstrict-overflow
218 #  -Wformat-security
219 #  -Wmisleading-indentation
220 #  -Wnonnull-compare
221 #  -Wunused
222 #  -Wunused-label
223 #  -Wunused-value
224 #  -Wunused-variable
225 #  -Wunused-function
226 #  -Wunused-parameter
227 #  -Wuninitialized
228 #  -Wmaybe-uninitialized
229 #  -Wimplicit-function-declaration
230 #  -Wformat
231 #  -Wparentheses
232 #  -Wchar-subscripts
233 #  -Wendif-labels
234 #  -Wformat-contains-nul
235 #  -Wimplicit-int
236 #  -Waggressive-loop-optimizations
237 #  -Wcpp
238 #  -Wswitch
239 #  -Wdiscarded-qualifiers
240 #  -Wsequence-point
241 #  -Wunknown-pragmas
242 #  -Wdiscarded-array-qualifiers
243 #  -Wint-conversion
244 #  -Wint-to-pointer-cast
245 #  -Wpointer-to-int-cast
246 #  -Wunused-const-variable
247 #  -Wwrite-strings 
248 #  -Wcomment
249 #  -Wincompatible-pointer-types
250 #  -Wbool-compare
251 #  -Wlogical-not-parentheses
252 #  -Wpointer-sign
253 #  -Wshift-overflow
254 #  -Wframe-address
255 #  -Wdeprecated-declarations
256 #  -Wsign-compare
257 #  -Wattributes
258 #  -Woverflow
259 #  -Wunused-local-typedefs
260 #  -Wmissing-braces
261 #  -Wconversion-null
262 #  -Wnarrowing
263 #  -Wvolatile-register-var
264 #  -Wsizeof-pointer-memaccess
265 #  -Wreturn-type
266 #  -Wformat-zero-length
267 #  -Wlto-type-mismatch
268 #  -Wtautological-compare
269 #  -Wempty-body
270 #  -Wformat-overflow
271 #  -Wstringop-overflow
272 #  -Wformat-truncation
273 #  -Wstringop-truncation
274 #  -Wshift-negative-value
275 #  -Wmissing-field-initializers
276 #  -Wimplicit-fallthrough
277 #  -Wmissing-prototypes
278 #  -Wclass-memaccess
279 #  -Wint-in-bool-context
281 AC_MSG_CHECKING([whether ${CC} accepts -Werror])
282 CFLAGS=-Werror
283 AC_TRY_COMPILE(,, aros_error="yes", aros_error="no")
284 AC_MSG_RESULT($aros_error)
285 if test "x-$aros_error" = "x-yes" ; then
286     aros_warnflags_error=-Werror
287     aros_nowarnflags_error=-Wno-error
290 AC_MSG_CHECKING([whether ${CC} accepts -Wall])
291 CFLAGS=-Wall
292 AC_TRY_COMPILE(,, aros_all="yes", aros_all="no")
293 AC_MSG_RESULT($aros_all)
294 if test "x-$aros_all" = "x-yes" ; then
295     aros_warnflags_all=-Wall
298 AC_MSG_CHECKING([whether ${CC} accepts -Wrestrict])
299 CFLAGS=-Wrestrict
300 AC_TRY_COMPILE(,, aros_restrict="yes", aros_restrict="no")
301 AC_MSG_RESULT($aros_restrict)
302 if test "x-$aros_restrict" = "x-yes" ; then
303     aros_warnflags_restrict=-Wrestrict
304     aros_nowarnflags_restrict=-Wno-restrict
307 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-command-line-argument])
308 CFLAGS=-Wunused-command-line-argument
309 AC_TRY_COMPILE(,, aros_unused_command_line_argument="yes", aros_unused_command_line_argument="no")
310 AC_MSG_RESULT($aros_unused_command_line_argument)
311 if test "x-$aros_unused_command_line_argument" = "x-yes" ; then
312     aros_warnflags_unused_command_line_argument=-Wunused-command-line-argument
313     aros_nowarnflags_unused_command_line_argument=-Wno-unused-command-line-argument
316 AC_MSG_CHECKING([whether ${CC} accepts -Wunknown-warning-option])
317 CFLAGS=-Wunknown-warning-option
318 AC_TRY_COMPILE(,, aros_unknown_warning_option="yes", aros_unknown_warning_option="no")
319 AC_MSG_RESULT($aros_unknown_warning_option)
320 if test "x-$aros_unknown_warning_option" = "x-yes" ; then
321     aros_warnflags_unknown_warning_option=-Wunknown-warning-option
322     aros_nowarnflags_unknown_warning_option=-Wno-unknown-warning-option
325 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-but-set-variable])
326 CFLAGS=-Wunused-but-set-variable
327 AC_TRY_COMPILE(,, aros_unused_but_set_variable="yes", aros_unused_but_set_variable="no")
328 AC_MSG_RESULT($aros_unused_but_set_variable)
329 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
330     aros_warnflags_unused_but_set_variable=-Wunused-but-set-variable
331     aros_nowarnflags_unused_but_set_variable=-Wno-unused-but-set-variable
334 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-aliasing])
335 CFLAGS=-Wstrict-aliasing
336 AC_TRY_COMPILE(,, aros_strict_aliasing="yes", aros_strict_aliasing="no")
337 AC_MSG_RESULT($aros_strict_aliasing)
338 if test "x-$aros_strict_aliasing" = "x-yes" ; then
339     aros_warnflags_strict_aliasing=-Wstrict-aliasing
340     aros_nowarnflags_strict_aliasing=-Wno-strict-aliasing
343 AC_MSG_CHECKING([whether ${CC} accepts -Warray-bounds])
344 CFLAGS=-Warray-bounds
345 AC_TRY_COMPILE(,, aros_array_bounds="yes", aros_array_bounds="no")
346 AC_MSG_RESULT($aros_array_bounds)
347 if test "x-$aros_array_bounds" = "x-yes" ; then
348     aros_warnflags_array_bounds=-Warray-bounds
349     aros_nowarnflags_array_bounds=-Wno-array-bounds
352 AC_MSG_CHECKING([whether ${CC} accepts -Wenum-compare])
353 CFLAGS=-Wenum-compare
354 AC_TRY_COMPILE(,, aros_enum_compare="yes", aros_enum_compare="no")
355 AC_MSG_RESULT($aros_enum_compare)
356 if test "x-$aros_enum_compare" = "x-yes" ; then
357     aros_warnflags_enum_compare=-Wenum-compare
358     aros_nowarnflags_enum_compare=-Wno-enum-compare
361 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-prototypes])
362 CFLAGS=-Wstrict-prototypes
363 AC_TRY_COMPILE(,, aros_strict_prototypes="yes", aros_strict_prototypes="no")
364 AC_MSG_RESULT($aros_strict_prototypes)
365 if test "x-$aros_strict_prototypes" = "x-yes" ; then
366     aros_warnflags_strict_prototypes=-Wstrict-prototypes
367     aros_nowarnflags_strict_prototypes=-Wno-strict-prototypes
370 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-overflow])
371 CFLAGS=-Wstrict-overflow
372 AC_TRY_COMPILE(,, aros_strict_overflow="yes", aros_strict_overflow="no")
373 AC_MSG_RESULT($aros_strict_overflow)
374 if test "x-$aros_strict_overflow" = "x-yes" ; then
375     aros_warnflags_strict_overflow=-Wstrict-overflow
376     aros_nowarnflags_strict_overflow=-Wno-strict-overflow
379 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-security])
380 CFLAGS=-Wformat-security
381 AC_TRY_COMPILE(,, aros_format_security="yes", aros_format_security="no")
382 AC_MSG_RESULT($aros_format_security)
383 if test "x-$aros_format_security" = "x-yes" ; then
384     aros_warnflags_format_security=-Wformat-security
385     aros_nowarnflags_format_security=-Wno-format-security
388 AC_MSG_CHECKING([whether ${CC} accepts -Wmisleading-indentation])
389 CFLAGS=-Wmisleading-indentation
390 AC_TRY_COMPILE(,, aros_misleading_indentation="yes", aros_misleading_indentation="no")
391 AC_MSG_RESULT($aros_misleading_indentation)
392 if test "x-$aros_misleading_indentation" = "x-yes" ; then
393     aros_warnflags_misleading_indentation=-Wmisleading-indentation
394     aros_nowarnflags_misleading_indentation=-Wno-misleading-indentation
397 AC_MSG_CHECKING([whether ${CC} accepts -Wnonnull-compare])
398 CFLAGS=-Wnonnull-compare
399 AC_TRY_COMPILE(,, aros_nonnull_compare="yes", aros_nonnull_compare="no")
400 AC_MSG_RESULT($aros_nonnull_compare)
401 if test "x-$aros_nonnull_compare" = "x-yes" ; then
402     aros_warnflags_nonnull_compare=-Wnonnull-compare
403     aros_nowarnflags_nonnull_compare=-Wno-nonnull-compare
406 AC_MSG_CHECKING([whether ${CC} accepts -Wunused])
407 CFLAGS=-Wunused
408 AC_TRY_COMPILE(,, aros_unused="yes", aros_unused="no")
409 AC_MSG_RESULT($aros_unused)
410 if test "x-$aros_unused" = "x-yes" ; then
411     aros_warnflags_unused=-Wunused
412     aros_nowarnflags_unused=-Wno-unused
415 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-label])
416 CFLAGS=-Wunused-label
417 AC_TRY_COMPILE(,, aros_unused_label="yes", aros_unused_label="no")
418 AC_MSG_RESULT($aros_unused_label)
419 if test "x-$aros_unused_label" = "x-yes" ; then
420     aros_warnflags_unused_label=-Wunused-label
421     aros_nowarnflags_unused_label=-Wno-unused-label
424 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-value])
425 CFLAGS=-Wunused-value
426 AC_TRY_COMPILE(,, aros_unused_value="yes", aros_unused_value="no")
427 AC_MSG_RESULT($aros_unused_value)
428 if test "x-$aros_unused_value" = "x-yes" ; then
429     aros_warnflags_unused_value=-Wunused-value
430     aros_nowarnflags_unused_value=-Wno-unused-value
433 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-variable])
434 CFLAGS=-Wunused-variable
435 AC_TRY_COMPILE(,, aros_unused_variable="yes", aros_unused_variable="no")
436 AC_MSG_RESULT($aros_unused_variable)
437 if test "x-$aros_unused_variable" = "x-yes" ; then
438     aros_warnflags_unused_variable=-Wunused-variable
439     aros_nowarnflags_unused_variable=-Wno-unused-variable
442 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-function])
443 CFLAGS=-Wunused-function
444 AC_TRY_COMPILE(,, aros_unused_function="yes", aros_unused_function="no")
445 AC_MSG_RESULT($aros_unused_function)
446 if test "x-$aros_unused_function" = "x-yes" ; then
447     aros_warnflags_unused_function=-Wunused-function
448     aros_nowarnflags_unused_function=-Wno-unused-function
451 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-parameter])
452 CFLAGS=-Wunused-parameter
453 AC_TRY_COMPILE(,, aros_unused_parameter="yes", aros_unused_parameter="no")
454 AC_MSG_RESULT($aros_unused_parameter)
455 if test "x-$aros_unused_parameter" = "x-yes" ; then
456     aros_warnflags_unused_parameter=-Wunused-parameter
457     aros_nowarnflags_unused_parameter=-Wno-unused-parameter
460 AC_MSG_CHECKING([whether ${CC} accepts -Wuninitialized])
461 CFLAGS=-Wuninitialized
462 AC_TRY_COMPILE(,, aros_uninitialized="yes", aros_uninitialized="no")
463 AC_MSG_RESULT($aros_uninitialized)
464 if test "x-$aros_uninitialized" = "x-yes" ; then
465     aros_warnflags_uninitialized=-Wuninitialized
466     aros_nowarnflags_uninitialized=-Wno-uninitialized
469 AC_MSG_CHECKING([whether ${CC} accepts -Wmaybe-uninitialized])
470 CFLAGS=-Wmaybe-uninitialized
471 AC_TRY_COMPILE(,, aros_maybe_uninitialized="yes", aros_maybe_uninitialized="no")
472 AC_MSG_RESULT($aros_maybe_uninitialized)
473 if test "x-$aros_maybe_uninitialized" = "x-yes" ; then
474     aros_warnflags_maybe_uninitialized=-Wmaybe-uninitialized
475     aros_nowarnflags_maybe_uninitialized=-Wno-maybe-uninitialized
476 else
477     aros_warnflags_maybe_uninitialized=$aros_warnflags_uninitialized
478     aros_nowarnflags_maybe_uninitialized=$aros_nowarnflags_uninitialized
481 AC_MSG_CHECKING([whether ${CC} accepts -Wimplicit-function-declaration])
482 CFLAGS=-Wimplicit-function-declaration
483 AC_TRY_COMPILE(,, aros_implicit_function_declaration="yes", aros_implicit_function_declaration="no")
484 AC_MSG_RESULT($aros_implicit_function_declaration)
485 if test "x-$aros_implicit_function_declaration" = "x-yes" ; then
486     aros_warnflags_implicit_function_declaration=-Wimplicit-function-declaration
487     aros_nowarnflags_implicit_function_declaration=-Wno-implicit-function-declaration
490 AC_MSG_CHECKING([whether ${CC} accepts -Wformat])
491 CFLAGS=-Wformat
492 AC_TRY_COMPILE(,, aros_format="yes", aros_format="no")
493 AC_MSG_RESULT($aros_format)
494 if test "x-$aros_format" = "x-yes" ; then
495     aros_warnflags_format=-Wformat
496     aros_nowarnflags_format=-Wno-format
499 AC_MSG_CHECKING([whether ${CC} accepts -Wparentheses])
500 CFLAGS=-Wparentheses
501 AC_TRY_COMPILE(,, aros_parentheses="yes", aros_parentheses="no")
502 AC_MSG_RESULT($aros_parentheses)
503 if test "x-$aros_parentheses" = "x-yes" ; then
504     aros_warnflags_parentheses=-Wparentheses
505     aros_nowarnflags_parentheses=-Wno-parentheses
508 AC_MSG_CHECKING([whether ${CC} accepts -Wchar-subscripts])
509 CFLAGS=-Wchar-subscripts
510 AC_TRY_COMPILE(,, aros_char_subscripts="yes", aros_char_subscripts="no")
511 AC_MSG_RESULT($aros_char_subscripts)
512 if test "x-$aros_char_subscripts" = "x-yes" ; then
513     aros_warnflags_char_subscripts=-Wchar-subscripts
514     aros_nowarnflags_char_subscripts=-Wno-char-subscripts
517 AC_MSG_CHECKING([whether ${CC} accepts -Wendif-labels])
518 CFLAGS=-Wendif-labels
519 AC_TRY_COMPILE(,, aros_endif_labels="yes", aros_endif_labels="no")
520 AC_MSG_RESULT($aros_endif_labels)
521 if test "x-$aros_endif_labels" = "x-yes" ; then
522     aros_warnflags_endif_labels=-Wendif-labels
523     aros_nowarnflags_endif_labels=-Wno-endif-labels
526 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-contains-nul])
527 CFLAGS=-Wformat-contains-nul
528 AC_TRY_COMPILE(,, aros_format_contains_nul="yes", aros_format_contains_nul="no")
529 AC_MSG_RESULT($aros_format_contains_nul)
530 if test "x-$aros_format_contains_nul" = "x-yes" ; then
531     aros_warnflags_format_contains_nul=-Wformat-contains-nul
532     aros_nowarnflags_format_contains_nul=-Wno-format-contains-nul
535 AC_MSG_CHECKING([whether ${CC} accepts -Wimplicit-int])
536 CFLAGS=-Wimplicit-int
537 AC_TRY_COMPILE(,, aros_implicit_int="yes", aros_implicit_int="no")
538 AC_MSG_RESULT($aros_implicit_int)
539 if test "x-$aros_implicit_int" = "x-yes" ; then
540     aros_warnflags_implicit_int=-Wimplicit-int
541     aros_nowarnflags_implicit_int=-Wno-implicit-int
544 AC_MSG_CHECKING([whether ${CC} accepts -Waggressive-loop-optimizations])
545 CFLAGS=-Waggressive-loop-optimizations
546 AC_TRY_COMPILE(,, aros_aggressive_loop_optimizations="yes", aros_aggressive_loop_optimizations="no")
547 AC_MSG_RESULT($aros_aggressive_loop_optimizations)
548 if test "x-$aros_aggressive_loop_optimizations" = "x-yes" ; then
549     aros_warnflags_aggressive_loop_optimizations=-Waggressive-loop-optimizations
550     aros_nowarnflags_aggressive_loop_optimizations=-Wno-aggressive-loop-optimizations
553 AC_MSG_CHECKING([whether ${CC} accepts -Wcpp])
554 CFLAGS=-Wcpp
555 AC_TRY_COMPILE(,, aros_cpp="yes", aros_cpp="no")
556 AC_MSG_RESULT($aros_cpp)
557 if test "x-$aros_cpp" = "x-yes" ; then
558     aros_warnflags_cpp=-Wcpp
559     aros_nowarnflags_cpp=-Wno-cpp
562 AC_MSG_CHECKING([whether ${CC} accepts -Wswitch])
563 CFLAGS=-Wswitch
564 AC_TRY_COMPILE(,, aros_switch="yes", aros_switch="no")
565 AC_MSG_RESULT($aros_switch)
566 if test "x-$aros_switch" = "x-yes" ; then
567     aros_warnflags_switch=-Wswitch
568     aros_nowarnflags_switch=-Wno-switch
571 AC_MSG_CHECKING([whether ${CC} accepts -Wdiscarded-qualifiers])
572 CFLAGS=-Wdiscarded-qualifiers
573 AC_TRY_COMPILE(,, aros_discarded_qualifiers="yes", aros_discarded_qualifiers="no")
574 AC_MSG_RESULT($aros_discarded_qualifiers)
575 if test "x-$aros_discarded_qualifiers" = "x-yes" ; then
576     aros_warnflags_discarded_qualifiers=-Wdiscarded-qualifiers
577     aros_nowarnflags_discarded_qualifiers=-Wno-discarded-qualifiers
580 AC_MSG_CHECKING([whether ${CC} accepts -Wsequence-point])
581 CFLAGS=-Wsequence-point
582 AC_TRY_COMPILE(,, aros_sequence_point="yes", aros_sequence_point="no")
583 AC_MSG_RESULT($aros_sequence_point)
584 if test "x-$aros_sequence_point" = "x-yes" ; then
585     aros_warnflags_sequence_point=-Wsequence-point
586     aros_nowarnflags_sequence_point=-Wno-sequence-point
589 AC_MSG_CHECKING([whether ${CC} accepts -Wunknown-pragmas])
590 CFLAGS=-Wunknown-pragmas
591 AC_TRY_COMPILE(,, aros_unknown_pragmas="yes", aros_unknown_pragmas="no")
592 AC_MSG_RESULT($aros_unknown_pragmas)
593 if test "x-$aros_unknown_pragmas" = "x-yes" ; then
594     aros_warnflags_unknown_pragmas=-Wunknown-pragmas
595     aros_nowarnflags_unknown_pragmas=-Wno-unknown-pragmas
598 AC_MSG_CHECKING([whether ${CC} accepts -Wdiscarded-array-qualifiers])
599 CFLAGS=-Wdiscarded-array-qualifiers
600 AC_TRY_COMPILE(,, aros_discarded_array_qualifiers="yes", aros_discarded_array_qualifiers="no")
601 AC_MSG_RESULT($aros_discarded_array_qualifiers)
602 if test "x-$aros_discarded_array_qualifiers" = "x-yes" ; then
603     aros_warnflags_discarded_array_qualifiers=-Wdiscarded-array-qualifiers
604     aros_nowarnflags_discarded_array_qualifiers=-Wno-discarded-array-qualifiers
607 AC_MSG_CHECKING([whether ${CC} accepts -Wint-conversion])
608 CFLAGS=-Wint-conversion
609 AC_TRY_COMPILE(,, aros_int_conversion="yes", aros_int_conversion="no")
610 AC_MSG_RESULT($aros_int_conversion)
611 if test "x-$aros_int_conversion" = "x-yes" ; then
612     aros_warnflags_int_conversion=-Wint-conversion
613     aros_nowarnflags_int_conversion=-Wno-int-conversion
616 AC_MSG_CHECKING([whether ${CC} accepts -Wint-to-pointer-cast])
617 CFLAGS=-Wint-to-pointer-cast
618 AC_TRY_COMPILE(,, aros_int_to_pointer_cast="yes", aros_int_to_pointer_cast="no")
619 AC_MSG_RESULT($aros_int_to_pointer_cast)
620 if test "x-$aros_int_to_pointer_cast" = "x-yes" ; then
621     aros_warnflags_int_to_pointer_cast=-Wint-to-pointer-cast
622     aros_nowarnflags_int_to_pointer_cast=-Wno-int-to-pointer-cast
625 AC_MSG_CHECKING([whether ${CC} accepts -Wpointer-to-int-cast])
626 CFLAGS=-Wpointer-to-int-cast
627 AC_TRY_COMPILE(,, aros_pointer_to_int_cast="yes", aros_pointer_to_int_cast="no")
628 AC_MSG_RESULT($aros_pointer_to_int_cast)
629 if test "x-$aros_pointer_to_int_cast" = "x-yes" ; then
630     aros_warnflags_pointer_to_int_cast=-Wpointer-to-int-cast
631     aros_nowarnflags_pointer_to_int_cast=-Wno-pointer-to-int-cast
634 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-const-variable])
635 CFLAGS=-Wunused-const-variable
636 AC_TRY_COMPILE(,, aros_unused_const_variable="yes", aros_unused_const_variable="no")
637 AC_MSG_RESULT($aros_unused_const_variable)
638 if test "x-$aros_unused_const_variable" = "x-yes" ; then
639     aros_warnflags_unused_const_variable=-Wunused-const-variable
640     aros_nowarnflags_unused_const_variable=-Wno-unused-const-variable
643 AC_MSG_CHECKING([whether ${CC} accepts -Wwrite-strings])
644 CFLAGS=-Wwrite-strings
645 AC_TRY_COMPILE(,, aros_write_strings="yes", aros_write_strings="no")
646 AC_MSG_RESULT($aros_write_strings)
647 if test "x-$aros_write_strings" = "x-yes" ; then
648     aros_warnflags_write_strings=-Wwrite-strings
649     aros_nowarnflags_write_strings=-Wno-write-strings
652 AC_MSG_CHECKING([whether ${CC} accepts -Wcomment])
653 CFLAGS=-Wcomment
654 AC_TRY_COMPILE(,, aros_comment="yes", aros_comment="no")
655 AC_MSG_RESULT($aros_comment)
656 if test "x-$aros_comment" = "x-yes" ; then
657     aros_warnflags_comment=-Wcomment
658     aros_nowarnflags_comment=-Wno-comment
661 AC_MSG_CHECKING([whether ${CC} accepts -Wincompatible-pointer-types])
662 CFLAGS=-Wincompatible-pointer-types
663 AC_TRY_COMPILE(,, aros_incompatible_pointer_types="yes", aros_incompatible_pointer_types="no")
664 AC_MSG_RESULT($aros_incompatible_pointer_types)
665 if test "x-$aros_incompatible_pointer_types" = "x-yes" ; then
666     aros_warnflags_incompatible_pointer_types=-Wincompatible-pointer-types
667     aros_nowarnflags_incompatible_pointer_types=-Wno-incompatible-pointer-types
670 AC_MSG_CHECKING([whether ${CC} accepts -Wbool-compare])
671 CFLAGS=-Wbool-compare
672 AC_TRY_COMPILE(,, aros_bool_compare="yes", aros_bool_compare="no")
673 AC_MSG_RESULT($aros_bool_compare)
674 if test "x-$aros_bool_compare" = "x-yes" ; then
675     aros_warnflags_bool_compare=-Wbool-compare
676     aros_nowarnflags_bool_compare=-Wno-bool-compare
679 AC_MSG_CHECKING([whether ${CC} accepts -Wlogical-not-parentheses])
680 CFLAGS=-Wlogical-not-parentheses
681 AC_TRY_COMPILE(,, aros_logical_not_parentheses="yes", aros_logical_not_parentheses="no")
682 AC_MSG_RESULT($aros_logical_not_parentheses)
683 if test "x-$aros_logical_not_parentheses" = "x-yes" ; then
684     aros_warnflags_logical_not_parentheses=-Wlogical-not-parentheses
685     aros_nowarnflags_logical_not_parentheses=-Wno-logical-not-parentheses
688 AC_MSG_CHECKING([whether ${CC} accepts -Wpointer-sign])
689 CFLAGS=-Wpointer-sign
690 AC_TRY_COMPILE(,, aros_pointer_sign="yes", aros_pointer_sign="no")
691 AC_MSG_RESULT($aros_pointer_sign)
692 if test "x-$aros_pointer_sign" = "x-yes" ; then
693     aros_warnflags_pointer_sign=-Wpointer-sign
694     aros_nowarnflags_pointer_sign=-Wno-pointer-sign
697 AC_MSG_CHECKING([whether ${CC} accepts -Wshift-overflow])
698 CFLAGS=-Wshift-overflow
699 AC_TRY_COMPILE(,, aros_shift_overflow="yes", aros_shift_overflow="no")
700 AC_MSG_RESULT($aros_shift_overflow)
701 if test "x-$aros_shift_overflow" = "x-yes" ; then
702     aros_warnflags_shift_overflow=-Wshift-overflow
703     aros_nowarnflags_shift_overflow=-Wno-shift-overflow
706 AC_MSG_CHECKING([whether ${CC} accepts -Wframe-address])
707 CFLAGS=-Wframe-address
708 AC_TRY_COMPILE(,, aros_frame_address="yes", aros_frame_address="no")
709 AC_MSG_RESULT($aros_frame_address)
710 if test "x-$aros_frame_address" = "x-yes" ; then
711     aros_warnflags_frame_address=-Wframe-address
712     aros_nowarnflags_frame_address=-Wno-frame-address
715 AC_MSG_CHECKING([whether ${CC} accepts -Wdeprecated-declarations])
716 CFLAGS=-Wdeprecated-declarations
717 AC_TRY_COMPILE(,, aros_deprecated_declarations="yes", aros_deprecated_declarations="no")
718 AC_MSG_RESULT($aros_deprecated_declarations)
719 if test "x-$aros_deprecated_declarations" = "x-yes" ; then
720     aros_warnflags_deprecated_declarations=-Wdeprecated-declarations
721     aros_nowarnflags_deprecated_declarations=-Wno-deprecated-declarations
724 AC_MSG_CHECKING([whether ${CC} accepts -Wsign-compare])
725 CFLAGS=-Wsign-compare
726 AC_TRY_COMPILE(,, aros_sign_compare="yes", aros_sign_compare="no")
727 AC_MSG_RESULT($aros_sign_compare)
728 if test "x-$aros_sign_compare" = "x-yes" ; then
729     aros_warnflags_sign_compare=-Wsign-compare
730     aros_nowarnflags_sign_compare=-Wno-sign-compare
733 AC_MSG_CHECKING([whether ${CC} accepts -Wattributes])
734 CFLAGS=-Wattributes
735 AC_TRY_COMPILE(,, aros_attributes="yes", aros_attributes="no")
736 AC_MSG_RESULT($aros_attributes)
737 if test "x-$aros_attributes" = "x-yes" ; then
738     aros_warnflags_attributes=-Wattributes
739     aros_nowarnflags_attributes=-Wno-attributes
742 AC_MSG_CHECKING([whether ${CC} accepts -Woverflow])
743 CFLAGS=-Woverflow
744 AC_TRY_COMPILE(,, aros_overflow="yes", aros_overflow="no")
745 AC_MSG_RESULT($aros_overflow)
746 if test "x-$aros_overflow" = "x-yes" ; then
747     aros_warnflags_overflow=-Woverflow
748     aros_nowarnflags_overflow=-Wno-overflow
751 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-local-typedefs])
752 CFLAGS=-Wunused-local-typedefs
753 AC_TRY_COMPILE(,, aros_unused_local_typedefs="yes", aros_unused_local_typedefs="no")
754 AC_MSG_RESULT($aros_unused_local_typedefs)
755 if test "x-$aros_unused_local_typedefs" = "x-yes" ; then
756     aros_warnflags_unused_local_typedefs=-Wunused-local-typedefs
757     aros_nowarnflags_unused_local_typedefs=-Wno-unused-local-typedefs
760 AC_MSG_CHECKING([whether ${CC} accepts -Wmissing-braces])
761 CFLAGS=-Wmissing-braces
762 AC_TRY_COMPILE(,, aros_missing_braces="yes", aros_missing_braces="no")
763 AC_MSG_RESULT($aros_missing_braces)
764 if test "x-$aros_missing_braces" = "x-yes" ; then
765     aros_warnflags_missing_braces=-Wmissing-braces
766     aros_nowarnflags_missing_braces=-Wno-missing-braces
769 AC_MSG_CHECKING([whether ${CC} accepts -Wconversion-null])
770 CFLAGS=-Wconversion-null
771 AC_TRY_COMPILE(,, aros_conversion_null="yes", aros_conversion_null="no")
772 AC_MSG_RESULT($aros_conversion_null)
773 if test "x-$aros_conversion_null" = "x-yes" ; then
774     aros_warnflags_conversion_null=-Wconversion-null
775     aros_nowarnflags_conversion_null=-Wno-conversion-null
778 AC_MSG_CHECKING([whether ${CC} accepts -Wnarrowing])
779 CFLAGS=-Wnarrowing
780 AC_TRY_COMPILE(,, aros_narrowing="yes", aros_narrowing="no")
781 AC_MSG_RESULT($aros_narrowing)
782 if test "x-$aros_narrowing" = "x-yes" ; then
783     aros_warnflags_narrowing=-Wnarrowing
784     aros_nowarnflags_narrowing=-Wno-narrowing
787 AC_MSG_CHECKING([whether ${CC} accepts -Wvolatile-register-var])
788 CFLAGS=-Wvolatile-register-var
789 AC_TRY_COMPILE(,, aros_volatile_register_var="yes", aros_volatile_register_var="no")
790 AC_MSG_RESULT($aros_volatile_register_var)
791 if test "x-$aros_volatile_register_var" = "x-yes" ; then
792     aros_warnflags_volatile_register_var=-Wvolatile-register-var
793     aros_nowarnflags_volatile_register_var=-Wno-volatile-register-var
796 AC_MSG_CHECKING([whether ${CC} accepts -Wsizeof-pointer-memaccess])
797 CFLAGS=-Wsizeof-pointer-memaccess
798 AC_TRY_COMPILE(,, aros_sizeof_pointer_memaccess="yes", aros_sizeof_pointer_memaccess="no")
799 AC_MSG_RESULT($aros_sizeof_pointer_memaccess)
800 if test "x-$aros_sizeof_pointer_memaccess" = "x-yes" ; then
801     aros_warnflags_sizeof_pointer_memaccess=-Wsizeof-pointer-memaccess
802     aros_nowarnflags_sizeof_pointer_memaccess=-Wno-sizeof-pointer-memaccess
805 AC_MSG_CHECKING([whether ${CC} accepts -Wreturn-type])
806 CFLAGS=-Wreturn-type
807 AC_TRY_COMPILE(,, aros_return_type="yes", aros_return_type="no")
808 AC_MSG_RESULT($aros_return_type)
809 if test "x-$aros_return_type" = "x-yes" ; then
810     aros_warnflags_return_type=-Wreturn-type
811     aros_nowarnflags_return_type=-Wno-return-type
814 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-zero-length])
815 CFLAGS=-Wformat-zero-length
816 AC_TRY_COMPILE(,, aros_format_zero_length="yes", aros_format_zero_length="no")
817 AC_MSG_RESULT($aros_format_zero_length)
818 if test "x-$aros_format_zero_length" = "x-yes" ; then
819     aros_warnflags_format_zero_length=-Wformat-zero-length
820     aros_nowarnflags_format_zero_length=-Wno-format-zero-length
823 AC_MSG_CHECKING([whether ${CC} accepts -Wlto-type-mismatch])
824 CFLAGS=-Wlto-type-mismatch
825 AC_TRY_COMPILE(,, aros_lto_type_mismatch="yes", aros_lto_type_mismatch="no")
826 AC_MSG_RESULT($aros_lto_type_mismatch)
827 if test "x-$aros_lto_type_mismatch" = "x-yes" ; then
828     aros_warnflags_lto_type_mismatch=-Wlto-type-mismatch
829     aros_nowarnflags_lto_type_mismatch=-Wno-lto-type-mismatch
832 AC_MSG_CHECKING([whether ${CC} accepts -Wtautological-compare])
833 CFLAGS=-Wtautological-compare
834 AC_TRY_COMPILE(,, aros_tautological_compare="yes", aros_tautological_compare="no")
835 AC_MSG_RESULT($aros_tautological_compare)
836 if test "x-$aros_tautological_compare" = "x-yes" ; then
837     aros_warnflags_tautological_compare=-Wtautological-compare
838     aros_nowarnflags_tautological_compare=-Wno-tautological-compare
841 AC_MSG_CHECKING([whether ${CC} accepts -Wempty-body])
842 CFLAGS=-Wempty-body
843 AC_TRY_COMPILE(,, aros_empty_body="yes", aros_empty_body="no")
844 AC_MSG_RESULT($aros_empty_body)
845 if test "x-$aros_empty_body" = "x-yes" ; then
846     aros_warnflags_empty_body=-Wempty-body
847     aros_nowarnflags_empty_body=-Wno-empty-body
850 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-overflow])
851 CFLAGS=-Wformat-overflow
852 AC_TRY_COMPILE(,, aros_format_overflow="yes", aros_format_overflow="no")
853 AC_MSG_RESULT($aros_format_overflow)
854 if test "x-$aros_format_overflow" = "x-yes" ; then
855     aros_warnflags_format_overflow=-Wformat-overflow
856     aros_nowarnflags_format_overflow=-Wno-format-overflow
859 AC_MSG_CHECKING([whether ${CC} accepts -Wstringop-overflow])
860 CFLAGS=-Wstringop-overflow
861 AC_TRY_COMPILE(,, aros_stringop_overflow="yes", aros_stringop_overflow="no")
862 AC_MSG_RESULT($aros_stringop_overflow)
863 if test "x-$aros_stringop_overflow" = "x-yes" ; then
864     aros_warnflags_stringop_overflow=-Wstringop-overflow
865     aros_nowarnflags_stringop_overflow=-Wno-stringop-overflow
868 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-truncation])
869 CFLAGS=-Wformat-truncation
870 AC_TRY_COMPILE(,, aros_format_truncation="yes", aros_format_truncation="no")
871 AC_MSG_RESULT($aros_format_truncation)
872 if test "x-$aros_format_truncation" = "x-yes" ; then
873     aros_warnflags_format_truncation=-Wformat-truncation
874     aros_nowarnflags_format_truncation=-Wno-format-truncation
877 AC_MSG_CHECKING([whether ${CC} accepts -Wstringop-truncation])
878 CFLAGS=-Wstringop-truncation
879 AC_TRY_COMPILE(,, aros_stringop_truncation="yes", aros_stringop_truncation="no")
880 AC_MSG_RESULT($aros_stringop_truncation)
881 if test "x-$aros_stringop_truncation" = "x-yes" ; then
882     aros_warnflags_stringop_truncation=-Wstringop-truncation
883     aros_nowarnflags_stringop_truncation=-Wno-stringop-truncation
886 AC_MSG_CHECKING([whether ${CC} accepts -Wshift-negative-value])
887 CFLAGS=-Wshift-negative-value
888 AC_TRY_COMPILE(,, aros_shift_negative_value="yes", aros_shift_negative_value="no")
889 AC_MSG_RESULT($aros_shift_negative_value)
890 if test "x-$aros_shift_negative_value" = "x-yes" ; then
891     aros_warnflags_shift_negative_value=-Wshift-negative-value
892     aros_nowarnflags_shift_negative_value=-Wno-shift-negative-value
895 AC_MSG_CHECKING([whether ${CC} accepts -Wmissing-field-initializers])
896 CFLAGS=-Wmissing-field-initializers
897 AC_TRY_COMPILE(,, aros_missing_field_initializers="yes", aros_missing_field_initializers="no")
898 AC_MSG_RESULT($aros_missing_field_initializers)
899 if test "x-$aros_missing_field_initializers" = "x-yes" ; then
900     aros_warnflags_missing_field_initializers=-Wmissing-field-initializers
901     aros_nowarnflags_missing_field_initializers=-Wno-missing-field-initializers
904 AC_MSG_CHECKING([whether ${CC} accepts -Wimplicit-fallthrough])
905 CFLAGS=-Wimplicit-fallthrough
906 AC_TRY_COMPILE(,, aros_implicit_fallthrough="yes", aros_implicit_fallthrough="no")
907 AC_MSG_RESULT($aros_implicit_fallthrough)
908 if test "x-$aros_implicit_fallthrough" = "x-yes" ; then
909     aros_warnflags_implicit_fallthrough=-Wimplicit-fallthrough
910     aros_nowarnflags_implicit_fallthrough=-Wno-implicit-fallthrough
913 AC_MSG_CHECKING([whether ${CC} accepts -Wmissing-prototypes])
914 CFLAGS=-Wmissing-prototypes
915 AC_TRY_COMPILE(,, aros_missing_prototypes="yes", aros_missing_prototypes="no")
916 AC_MSG_RESULT($aros_missing_prototypes)
917 if test "x-$aros_missing_prototypes" = "x-yes" ; then
918     aros_warnflags_missing_prototypes=-Wmissing-prototypes
919     aros_nowarnflags_missing_prototypes=-Wno-missing-prototypes
922 AC_MSG_CHECKING([whether ${CC} accepts -Wclass-memaccess])
923 CFLAGS=-Wclass-memaccess
924 AC_TRY_COMPILE(,, aros_class_memaccess="yes", aros_class_memaccess="no")
925 AC_MSG_RESULT($aros_class_memaccess)
926 if test "x-$aros_class_memaccess" = "x-yes" ; then
927     aros_warnflags_class_memaccess=-Wclass-memaccess
928     aros_nowarnflags_class_memaccess=-Wno-class-memaccess
931 AC_MSG_CHECKING([whether ${CC} accepts -Wint-in-bool-context])
932 CFLAGS=-Wint-in-bool-context
933 AC_TRY_COMPILE(,, aros_int_in_bool_context="yes", aros_int_in_bool_context="no")
934 AC_MSG_RESULT($aros_int_in_bool_context)
935 if test "x-$aros_int_in_bool_context" = "x-yes" ; then
936     aros_warnflags_int_in_bool_context=-Wint-in-bool-context
937     aros_nowarnflags_int_in_bool_context=-Wno-int-in-bool-context
941 # export the feature flags...
943 AC_SUBST(aros_cflags_exceptions)
944 AC_SUBST(aros_cflags_permissive)
945 AC_SUBST(aros_cflags_fast_math)
946 AC_SUBST(aros_cflags_no_builtin_floor)
947 AC_SUBST(aros_cflags_lto)
948 AC_SUBST(aros_cflags_nolto)
949 AC_SUBST(aros_cflags_whole_program)
950 AC_SUBST(aros_cflags_loop_block)
951 AC_SUBST(aros_cflags_loop_interchange)
952 AC_SUBST(aros_cflags_loop_strip_mine)
953 AC_SUBST(aros_cflags_peel_loops)
954 AC_SUBST(aros_cflags_unroll_loops)
956 AC_SUBST(aros_cflags_strictaliasing)
957 AC_SUBST(aros_cflags_nostrictaliasing)
959 AC_SUBST(aros_cflags_inlinesmallfunctions)
960 AC_SUBST(aros_cflags_noinlinesmallfunctions)
962 AC_SUBST(aros_cflags_ipacp)
963 AC_SUBST(aros_cflags_noipacp)
965 AC_SUBST(aros_cflags_omitfp)
966 AC_SUBST(aros_cflags_noomitfp)
968 AC_SUBST(aros_cflags_iquote)
969 AC_SUBST(aros_cflags_iquote_end)
972 # export the feature options...
974 AC_SUBST(aros_cflags_no_red_zone)
977 # ...and warning flags...
979 AC_SUBST(aros_warnflags_error)
980 AC_SUBST(aros_nowarnflags_error)
981 AC_SUBST(aros_warnflags_all)
982 AC_SUBST(aros_warnflags_restrict)
983 AC_SUBST(aros_nowarnflags_restrict)
984 AC_SUBST(aros_warnflags_unused_command_line_argument)
985 AC_SUBST(aros_nowarnflags_unused_command_line_argument)
986 AC_SUBST(aros_warnflags_unknown_warning_option)
987 AC_SUBST(aros_nowarnflags_unknown_warning_option)
988 AC_SUBST(aros_warnflags_unused_but_set_variable)
989 AC_SUBST(aros_nowarnflags_unused_but_set_variable)
990 AC_SUBST(aros_warnflags_strict_aliasing)
991 AC_SUBST(aros_nowarnflags_strict_aliasing)
992 AC_SUBST(aros_warnflags_array_bounds)
993 AC_SUBST(aros_nowarnflags_array_bounds)
994 AC_SUBST(aros_warnflags_enum_compare)
995 AC_SUBST(aros_nowarnflags_enum_compare)
996 AC_SUBST(aros_warnflags_strict_prototypes)
997 AC_SUBST(aros_nowarnflags_strict_prototypes)
998 AC_SUBST(aros_warnflags_strict_overflow)
999 AC_SUBST(aros_nowarnflags_strict_overflow)
1000 AC_SUBST(aros_warnflags_format_security)
1001 AC_SUBST(aros_nowarnflags_format_security)
1002 AC_SUBST(aros_warnflags_misleading_indentation)
1003 AC_SUBST(aros_nowarnflags_misleading_indentation)
1004 AC_SUBST(aros_warnflags_nonnull_compare)
1005 AC_SUBST(aros_nowarnflags_nonnull_compare)
1006 AC_SUBST(aros_warnflags_unused)
1007 AC_SUBST(aros_nowarnflags_unused)
1008 AC_SUBST(aros_warnflags_unused_label)
1009 AC_SUBST(aros_nowarnflags_unused_label)
1010 AC_SUBST(aros_warnflags_unused_value)
1011 AC_SUBST(aros_nowarnflags_unused_value)
1012 AC_SUBST(aros_warnflags_unused_variable)
1013 AC_SUBST(aros_nowarnflags_unused_variable)
1014 AC_SUBST(aros_warnflags_unused_function)
1015 AC_SUBST(aros_nowarnflags_unused_function)
1016 AC_SUBST(aros_warnflags_unused_parameter)
1017 AC_SUBST(aros_nowarnflags_unused_parameter)
1018 AC_SUBST(aros_warnflags_uninitialized)
1019 AC_SUBST(aros_nowarnflags_uninitialized)
1020 AC_SUBST(aros_warnflags_maybe_uninitialized)
1021 AC_SUBST(aros_nowarnflags_maybe_uninitialized)
1022 AC_SUBST(aros_warnflags_implicit_function_declaration)
1023 AC_SUBST(aros_nowarnflags_implicit_function_declaration)
1024 AC_SUBST(aros_warnflags_format)
1025 AC_SUBST(aros_nowarnflags_format)
1026 AC_SUBST(aros_warnflags_parentheses)
1027 AC_SUBST(aros_nowarnflags_parentheses)
1028 AC_SUBST(aros_warnflags_char_subscripts)
1029 AC_SUBST(aros_nowarnflags_char_subscripts)
1030 AC_SUBST(aros_warnflags_endif_labels)
1031 AC_SUBST(aros_nowarnflags_endif_labels)
1032 AC_SUBST(aros_warnflags_format_contains_nul)
1033 AC_SUBST(aros_nowarnflags_format_contains_nul)
1034 AC_SUBST(aros_warnflags_implicit_int)
1035 AC_SUBST(aros_nowarnflags_implicit_int)
1036 AC_SUBST(aros_warnflags_aggressive_loop_optimizations)
1037 AC_SUBST(aros_nowarnflags_aggressive_loop_optimizations)
1038 AC_SUBST(aros_warnflags_cpp)
1039 AC_SUBST(aros_nowarnflags_cpp)
1040 AC_SUBST(aros_warnflags_switch)
1041 AC_SUBST(aros_nowarnflags_switch)
1042 AC_SUBST(aros_warnflags_discarded_qualifiers)
1043 AC_SUBST(aros_nowarnflags_discarded_qualifiers)
1044 AC_SUBST(aros_warnflags_sequence_point)
1045 AC_SUBST(aros_nowarnflags_sequence_point)
1046 AC_SUBST(aros_warnflags_unknown_pragmas)
1047 AC_SUBST(aros_nowarnflags_unknown_pragmas)
1048 AC_SUBST(aros_warnflags_discarded_array_qualifiers)
1049 AC_SUBST(aros_nowarnflags_discarded_array_qualifiers)
1050 AC_SUBST(aros_warnflags_int_conversion)
1051 AC_SUBST(aros_nowarnflags_int_conversion)
1052 AC_SUBST(aros_warnflags_int_to_pointer_cast)
1053 AC_SUBST(aros_nowarnflags_int_to_pointer_cast)
1054 AC_SUBST(aros_warnflags_pointer_to_int_cast)
1055 AC_SUBST(aros_nowarnflags_pointer_to_int_cast)
1056 AC_SUBST(aros_warnflags_unused_const_variable)
1057 AC_SUBST(aros_nowarnflags_unused_const_variable)
1058 AC_SUBST(aros_warnflags_write_strings)
1059 AC_SUBST(aros_nowarnflags_write_strings)
1060 AC_SUBST(aros_warnflags_comment)
1061 AC_SUBST(aros_nowarnflags_comment)
1062 AC_SUBST(aros_warnflags_incompatible_pointer_types)
1063 AC_SUBST(aros_nowarnflags_incompatible_pointer_types)
1064 AC_SUBST(aros_warnflags_bool_compare)
1065 AC_SUBST(aros_nowarnflags_bool_compare)
1066 AC_SUBST(aros_warnflags_logical_not_parentheses)
1067 AC_SUBST(aros_nowarnflags_logical_not_parentheses)
1068 AC_SUBST(aros_warnflags_pointer_sign)
1069 AC_SUBST(aros_nowarnflags_pointer_sign)
1070 AC_SUBST(aros_warnflags_shift_overflow)
1071 AC_SUBST(aros_nowarnflags_shift_overflow)
1072 AC_SUBST(aros_warnflags_frame_address)
1073 AC_SUBST(aros_nowarnflags_frame_address)
1074 AC_SUBST(aros_warnflags_deprecated_declarations)
1075 AC_SUBST(aros_nowarnflags_deprecated_declarations)
1076 AC_SUBST(aros_warnflags_sign_compare)
1077 AC_SUBST(aros_nowarnflags_sign_compare)
1078 AC_SUBST(aros_warnflags_attributes)
1079 AC_SUBST(aros_nowarnflags_attributes)
1080 AC_SUBST(aros_warnflags_overflow)
1081 AC_SUBST(aros_nowarnflags_overflow)
1082 AC_SUBST(aros_warnflags_unused_local_typedefs)
1083 AC_SUBST(aros_nowarnflags_unused_local_typedefs)
1084 AC_SUBST(aros_warnflags_missing_braces)
1085 AC_SUBST(aros_nowarnflags_missing_braces)
1086 AC_SUBST(aros_warnflags_conversion_null)
1087 AC_SUBST(aros_nowarnflags_conversion_null)
1088 AC_SUBST(aros_warnflags_narrowing)
1089 AC_SUBST(aros_nowarnflags_narrowing)
1090 AC_SUBST(aros_warnflags_volatile_register_var)
1091 AC_SUBST(aros_nowarnflags_volatile_register_var)
1092 AC_SUBST(aros_warnflags_sizeof_pointer_memaccess)
1093 AC_SUBST(aros_nowarnflags_sizeof_pointer_memaccess)
1094 AC_SUBST(aros_warnflags_return_type)
1095 AC_SUBST(aros_nowarnflags_return_type)
1096 AC_SUBST(aros_warnflags_format_zero_length)
1097 AC_SUBST(aros_nowarnflags_format_zero_length)
1098 AC_SUBST(aros_warnflags_lto_type_mismatch)
1099 AC_SUBST(aros_nowarnflags_lto_type_mismatch)
1100 AC_SUBST(aros_warnflags_tautological_compare)
1101 AC_SUBST(aros_nowarnflags_tautological_compare)
1102 AC_SUBST(aros_warnflags_empty_body)
1103 AC_SUBST(aros_nowarnflags_empty_body)
1104 AC_SUBST(aros_warnflags_format_overflow)
1105 AC_SUBST(aros_nowarnflags_format_overflow)
1106 AC_SUBST(aros_warnflags_stringop_overflow)
1107 AC_SUBST(aros_nowarnflags_stringop_overflow)
1108 AC_SUBST(aros_warnflags_format_truncation)
1109 AC_SUBST(aros_nowarnflags_format_truncation)
1110 AC_SUBST(aros_warnflags_stringop_truncation)
1111 AC_SUBST(aros_nowarnflags_stringop_truncation)
1112 AC_SUBST(aros_warnflags_shift_negative_value)
1113 AC_SUBST(aros_nowarnflags_shift_negative_value)
1114 AC_SUBST(aros_warnflags_missing_field_initializers)
1115 AC_SUBST(aros_nowarnflags_missing_field_initializers)
1116 AC_SUBST(aros_warnflags_implicit_fallthrough)
1117 AC_SUBST(aros_nowarnflags_implicit_fallthrough)
1118 AC_SUBST(aros_warnflags_missing_prototypes)
1119 AC_SUBST(aros_nowarnflags_missing_prototypes)
1120 AC_SUBST(aros_warnflags_class_memaccess)
1121 AC_SUBST(aros_nowarnflags_class_memaccess)
1122 AC_SUBST(aros_warnflags_int_in_bool_context)
1123 AC_SUBST(aros_nowarnflags_int_in_bool_context)
1125 AC_CONFIG_FILES(
1126     ${aros_targetcfg_dir}/compiler.cfg:compiler.cfg.in
1129 AC_OUTPUT