check for -Wshift-negative-value
[AROS.git] / config / features.in
blob1e3331236e8a88c41c10f0431a470f68964ad037
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
52 AC_MSG_CHECKING([whether ${CC} accepts -fexceptions])
53 CFLAGS=-fexceptions
54 AC_TRY_COMPILE(,, aros_exceptions="yes", aros_exceptions="no")
55 AC_MSG_RESULT($aros_exceptions)
56 if test "x-$aros_exceptions" = "x-yes" ; then
57     aros_cflags_exceptions=-fexceptions
60 AC_MSG_CHECKING([whether ${CC} accepts -fpermissive])
61 CFLAGS=-fpermissive
62 AC_TRY_COMPILE(,, aros_permissive="yes", aros_permissive="no")
63 AC_MSG_RESULT($aros_permissive)
64 if test "x-$aros_permissive" = "x-yes" ; then
65     aros_cflags_permissive=-fpermissive
68 AC_MSG_CHECKING([whether ${CC} accepts -ffast-math])
69 CFLAGS=-ffast-math
70 AC_TRY_COMPILE(,, aros_fast_math="yes", aros_fast_math="no")
71 AC_MSG_RESULT($aros_fast_math)
72 if test "x-$aros_fast_math" = "x-yes" ; then
73     aros_cflags_fast_math=-ffast-math
76 AC_MSG_CHECKING([whether ${CC} accepts -fno-builtin-floor])
77 CFLAGS=-fno-builtin-floor
78 AC_TRY_COMPILE(,, aros_no_builtin_floor="yes", aros_no_builtin_floor="no")
79 AC_MSG_RESULT($aros_no_builtin_floor)
80 if test "x-$aros_no_builtin_floor" = "x-yes" ; then
81     aros_cflags_no_builtin_floor=-fno-builtin-floor
84 AC_MSG_CHECKING([whether ${CC} accepts -flto])
85 CFLAGS=-flto
86 AC_TRY_COMPILE(,, aros_lto="yes", aros_lto="no")
87 AC_MSG_RESULT($aros_lto)
88 if test "x-$aros_lto" = "x-yes" ; then
89     aros_cflags_lto=-flto
90     aros_cflags_nolto=-fno-lto
91     
92     AC_MSG_CHECKING([whether ${CC} accepts -fwhole-program])
93     CFLAGS=-fwhole-program
94     AC_TRY_COMPILE(,, aros_whole_program="yes", aros_whole_program="no")
95     AC_MSG_RESULT($aros_whole_program)
96     if test "x-$aros_whole_program" = "x-yes" ; then
97         aros_cflags_whole_program=-fwhole-program
98     fi
99     
100     AC_MSG_CHECKING([whether ${CC} accepts -floop-block])
101     CFLAGS=-floop-block
102     AC_TRY_COMPILE(,, aros_loop_block="yes", aros_loop_block="no")
103     AC_MSG_RESULT($aros_loop_block)
104     if test "x-$aros_loop_block" = "x-yes" ; then
105         aros_cflags_loop_block=-floop-block
106     fi
107     
108     AC_MSG_CHECKING([whether ${CC} accepts -floop-interchange])
109     CFLAGS=-floop-interchange
110     AC_TRY_COMPILE(,, aros_loop_interchange="yes", aros_loop_interchange="no")
111     AC_MSG_RESULT($aros_loop_interchange)
112     if test "x-$aros_loop_interchange" = "x-yes" ; then
113         aros_cflags_loop_interchange=-floop-interchange
114     fi
115     
116     AC_MSG_CHECKING([whether ${CC} accepts -floop-strip-mine])
117     CFLAGS=-floop-strip-mine
118     AC_TRY_COMPILE(,, aros_loop_strip_mine="yes", aros_loop_strip_mine="no")
119     AC_MSG_RESULT($aros_loop_strip_mine)
120     if test "x-$aros_loop_strip_mine" = "x-yes" ; then
121         aros_cflags_loop_strip_mine=-floop-strip-mine
122     fi
125 AC_MSG_CHECKING([whether ${CC} accepts -fpeel-loops])
126 CFLAGS=-fpeel-loops
127 AC_TRY_COMPILE(,, aros_peel_loops="yes", aros_peel_loops="no")
128 AC_MSG_RESULT($aros_peel_loops)
129 if test "x-$aros_peel_loops" = "x-yes" ; then
130     aros_cflags_peel_loops=-fpeel-loops
133 AC_MSG_CHECKING([whether ${CC} accepts -funroll-loops])
134 CFLAGS=-funroll-loops
135 AC_TRY_COMPILE(,, aros_unroll_loops="yes", aros_unroll_loops="no")
136 AC_MSG_RESULT($aros_unroll_loops)
137 if test "x-$aros_unroll_loops" = "x-yes" ; then
138     aros_cflags_unroll_loops=-funroll-loops
141 AC_MSG_CHECKING([whether ${CC} accepts -fstrict-aliasing])
142 CFLAGS=-fstrict-aliasing
143 AC_TRY_COMPILE(,, aros_strict_aliasing="yes", aros_strict_aliasing="no")
144 AC_MSG_RESULT($aros_strict_aliasing)
145 if test "x-$aros_strict_aliasing" = "x-yes" ; then
146     aros_cflags_strictaliasing=-fstrict-aliasing
147     aros_cflags_nostrictaliasing=-fno-strict-aliasing
150 AC_MSG_CHECKING([whether ${CC} accepts -finline-small-functions])
151 CFLAGS=-finline-small-functions
152 AC_TRY_COMPILE(,, aros_inline_small_functions="yes", aros_inline_small_functions="no")
153 AC_MSG_RESULT($aros_inline_small_functions)
154 if test "x-$aros_inline_small_functions" = "x-yes" ; then
155     aros_cflags_inlinesmallfunctions=-finline-small-functions
156     aros_cflags_noinlinesmallfunctions=-fno-inline-small-functions
159 AC_MSG_CHECKING([whether ${CC} accepts -fipa-cp])
160 CFLAGS=-fipa-cp
161 AC_TRY_COMPILE(,, aros_ipa_cp="yes", aros_ipa_cp="no")
162 AC_MSG_RESULT($aros_ipa_cp)
163 if test "x-$aros_ipa_cp" = "x-yes" ; then
164     aros_cflags_ipacp=-fipa-cp
165     aros_cflags_noipacp=-fno-ipa-cp
168 AC_MSG_CHECKING([whether ${CC} accepts -iquote])
169 CFLAGS="-iquote."
170 AC_TRY_COMPILE(,, has_iquote="yes", has_iquote="no")
171 AC_MSG_RESULT($has_iquote)
172 if test "x-$has_iquote" = "x-yes" ; then
173     aros_cflags_iquote=-iquote
174     aros_cflags_iquote_end=
175 else
176     aros_cflags_iquote=-I
177     aros_cflags_iquote_end=-I-
180 #-----------------------------------------------------------------------------
182 # Check if the target compiler supports some options:
183 #  -mno-red-zone
185 AC_MSG_CHECKING([whether ${CC} accepts -mno-red-zone])
186 CFLAGS=-mno-red-zone
187 AC_TRY_COMPILE(,, aros_no_red_zone="yes", aros_no_red_zone="no")
188 AC_MSG_RESULT($aros_no_red_zone)
189 if test "x-$aros_no_red_zone" = "x-yes" ; then
190     aros_cflags_no_red_zone=-mno-red-zone
193 #-----------------------------------------------------------------------------
195 # Check if the target compiler supports some options used for de-linting:
196 #  -Werror
197 #  -Wunused-command-line-argument
198 #  -Wunknown-warning-option
199 #  -Wunused-but-set-variable
200 #  -Wstrict-aliasing
201 #  -Warray-bounds
202 #  -Wenum-compare
203 #  -Wstrict-prototypes
204 #  -Wstrict-overflow
205 #  -Wformat-security
206 #  -Wmisleading-indentation
207 #  -Wnonnull-compare
208 #  -Wunused
209 #  -Wunused-label
210 #  -Wunused-value
211 #  -Wunused-variable
212 #  -Wunused-function
213 #  -Wunused-parameter
214 #  -Wuninitialized
215 #  -Wmaybe-uninitialized
216 #  -Wimplicit-function-declaration
217 #  -Wformat
218 #  -Wparentheses
219 #  -Wchar-subscripts
220 #  -Wendif-labels
221 #  -Wformat-contains-nul
222 #  -Wimplicit-int
223 #  -Waggressive-loop-optimizations
224 #  -Wcpp
225 #  -Wswitch
226 #  -Wdiscarded-qualifiers
227 #  -Wsequence-point
228 #  -Wunknown-pragmas
229 #  -Wdiscarded-array-qualifiers
230 #  -Wint-conversion
231 #  -Wint-to-pointer-cast
232 #  -Wpointer-to-int-cast
233 #  -Wunused-const-variable
234 #  -Wwrite-strings 
235 #  -Wcomment
236 #  -Wincompatible-pointer-types
237 #  -Wbool-compare
238 #  -Wlogical-not-parentheses
239 #  -Wpointer-sign
240 #  -Wshift-overflow
241 #  -Wframe-address
242 #  -Wdeprecated-declarations
243 #  -Wsign-compare
244 #  -Wattributes
245 #  -Woverflow
246 #  -Wunused-local-typedefs
247 #  -Wmissing-braces
248 #  -Wconversion-null
249 #  -Wnarrowing
250 #  -Wvolatile-register-var
251 #  -Wsizeof-pointer-memaccess
252 #  -Wreturn-type
253 #  -Wformat-zero-length
254 #  -Wlto-type-mismatch
255 #  -Wtautological-compare
256 #  -Wempty-body
257 #  -Wstringop-overflow
258 #  -Wformat-truncation
259 #  -Wshift-negative-value
261 AC_MSG_CHECKING([whether ${CC} accepts -Werror])
262 CFLAGS=-Werror
263 AC_TRY_COMPILE(,, aros_error="yes", aros_error="no")
264 AC_MSG_RESULT($aros_error)
265 if test "x-$aros_error" = "x-yes" ; then
266     aros_warnflags_error=-Werror
267     aros_nowarnflags_error=-Wno-error
270 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-command-line-argument])
271 CFLAGS=-Wunused-command-line-argument
272 AC_TRY_COMPILE(,, aros_unused_command_line_argument="yes", aros_unused_command_line_argument="no")
273 AC_MSG_RESULT($aros_unused_command_line_argument)
274 if test "x-$aros_unused_command_line_argument" = "x-yes" ; then
275     aros_warnflags_unused_command_line_argument=-Wunused-command-line-argument
276     aros_nowarnflags_unused_command_line_argument=-Wno-unused-command-line-argument
279 AC_MSG_CHECKING([whether ${CC} accepts -Wunknown-warning-option])
280 CFLAGS=-Wunknown-warning-option
281 AC_TRY_COMPILE(,, aros_unknown_warning_option="yes", aros_unknown_warning_option="no")
282 AC_MSG_RESULT($aros_unknown_warning_option)
283 if test "x-$aros_unknown_warning_option" = "x-yes" ; then
284     aros_warnflags_unknown_warning_option=-Wunknown-warning-option
285     aros_nowarnflags_unknown_warning_option=-Wno-unknown-warning-option
288 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-but-set-variable])
289 CFLAGS=-Wunused-but-set-variable
290 AC_TRY_COMPILE(,, aros_unused_but_set_variable="yes", aros_unused_but_set_variable="no")
291 AC_MSG_RESULT($aros_unused_but_set_variable)
292 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
293     aros_warnflags_unused_but_set_variable=-Wunused-but-set-variable
294     aros_nowarnflags_unused_but_set_variable=-Wno-unused-but-set-variable
297 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-aliasing])
298 CFLAGS=-Wstrict-aliasing
299 AC_TRY_COMPILE(,, aros_strict_aliasing="yes", aros_strict_aliasing="no")
300 AC_MSG_RESULT($aros_strict_aliasing)
301 if test "x-$aros_strict_aliasing" = "x-yes" ; then
302     aros_warnflags_strict_aliasing=-Wstrict-aliasing
303     aros_nowarnflags_strict_aliasing=-Wno-strict-aliasing
306 AC_MSG_CHECKING([whether ${CC} accepts -Warray-bounds])
307 CFLAGS=-Warray-bounds
308 AC_TRY_COMPILE(,, aros_array_bounds="yes", aros_array_bounds="no")
309 AC_MSG_RESULT($aros_array_bounds)
310 if test "x-$aros_array_bounds" = "x-yes" ; then
311     aros_warnflags_array_bounds=-Warray-bounds
312     aros_nowarnflags_array_bounds=-Wno-array-bounds
315 AC_MSG_CHECKING([whether ${CC} accepts -Wenum-compare])
316 CFLAGS=-Wenum-compare
317 AC_TRY_COMPILE(,, aros_enum_compare="yes", aros_enum_compare="no")
318 AC_MSG_RESULT($aros_enum_compare)
319 if test "x-$aros_enum_compare" = "x-yes" ; then
320     aros_warnflags_enum_compare=-Wenum-compare
321     aros_nowarnflags_enum_compare=-Wno-enum-compare
324 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-prototypes])
325 CFLAGS=-Wstrict-prototypes
326 AC_TRY_COMPILE(,, aros_strict_prototypes="yes", aros_strict_prototypes="no")
327 AC_MSG_RESULT($aros_strict_prototypes)
328 if test "x-$aros_strict_prototypes" = "x-yes" ; then
329     aros_warnflags_strict_prototypes=-Wstrict-prototypes
330     aros_nowarnflags_strict_prototypes=-Wno-strict-prototypes
333 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-overflow])
334 CFLAGS=-Wstrict-overflow
335 AC_TRY_COMPILE(,, aros_strict_overflow="yes", aros_strict_overflow="no")
336 AC_MSG_RESULT($aros_strict_overflow)
337 if test "x-$aros_strict_overflow" = "x-yes" ; then
338     aros_warnflags_strict_overflow=-Wstrict-overflow
339     aros_nowarnflags_strict_overflow=-Wno-strict-overflow
342 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-security])
343 CFLAGS=-Wformat-security
344 AC_TRY_COMPILE(,, aros_format_security="yes", aros_format_security="no")
345 AC_MSG_RESULT($aros_format_security)
346 if test "x-$aros_format_security" = "x-yes" ; then
347     aros_warnflags_format_security=-Wformat-security
348     aros_nowarnflags_format_security=-Wno-format-security
351 AC_MSG_CHECKING([whether ${CC} accepts -Wmisleading-indentation])
352 CFLAGS=-Wmisleading-indentation
353 AC_TRY_COMPILE(,, aros_misleading_indentation="yes", aros_misleading_indentation="no")
354 AC_MSG_RESULT($aros_misleading_indentation)
355 if test "x-$aros_misleading_indentation" = "x-yes" ; then
356     aros_warnflags_misleading_indentation=-Wmisleading-indentation
357     aros_nowarnflags_misleading_indentation=-Wno-misleading-indentation
360 AC_MSG_CHECKING([whether ${CC} accepts -Wnonnull-compare])
361 CFLAGS=-Wnonnull-compare
362 AC_TRY_COMPILE(,, aros_nonnull_compare="yes", aros_nonnull_compare="no")
363 AC_MSG_RESULT($aros_nonnull_compare)
364 if test "x-$aros_nonnull_compare" = "x-yes" ; then
365     aros_warnflags_nonnull_compare=-Wnonnull-compare
366     aros_nowarnflags_nonnull_compare=-Wno-nonnull-compare
369 AC_MSG_CHECKING([whether ${CC} accepts -Wunused])
370 CFLAGS=-Wunused
371 AC_TRY_COMPILE(,, aros_unused="yes", aros_unused="no")
372 AC_MSG_RESULT($aros_unused)
373 if test "x-$aros_unused" = "x-yes" ; then
374     aros_warnflags_unused=-Wunused
375     aros_nowarnflags_unused=-Wno-unused
378 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-label])
379 CFLAGS=-Wunused-label
380 AC_TRY_COMPILE(,, aros_unused_label="yes", aros_unused_label="no")
381 AC_MSG_RESULT($aros_unused_label)
382 if test "x-$aros_unused_label" = "x-yes" ; then
383     aros_warnflags_unused_label=-Wunused-label
384     aros_nowarnflags_unused_label=-Wno-unused-label
387 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-value])
388 CFLAGS=-Wunused-value
389 AC_TRY_COMPILE(,, aros_unused_value="yes", aros_unused_value="no")
390 AC_MSG_RESULT($aros_unused_value)
391 if test "x-$aros_unused_value" = "x-yes" ; then
392     aros_warnflags_unused_value=-Wunused-value
393     aros_nowarnflags_unused_value=-Wno-unused-value
396 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-variable])
397 CFLAGS=-Wunused-variable
398 AC_TRY_COMPILE(,, aros_unused_variable="yes", aros_unused_variable="no")
399 AC_MSG_RESULT($aros_unused_variable)
400 if test "x-$aros_unused_variable" = "x-yes" ; then
401     aros_warnflags_unused_variable=-Wunused-variable
402     aros_nowarnflags_unused_variable=-Wno-unused-variable
405 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-function])
406 CFLAGS=-Wunused-function
407 AC_TRY_COMPILE(,, aros_unused_function="yes", aros_unused_function="no")
408 AC_MSG_RESULT($aros_unused_function)
409 if test "x-$aros_unused_function" = "x-yes" ; then
410     aros_warnflags_unused_function=-Wunused-function
411     aros_nowarnflags_unused_function=-Wno-unused-function
414 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-parameter])
415 CFLAGS=-Wunused-parameter
416 AC_TRY_COMPILE(,, aros_unused_parameter="yes", aros_unused_parameter="no")
417 AC_MSG_RESULT($aros_unused_parameter)
418 if test "x-$aros_unused_parameter" = "x-yes" ; then
419     aros_warnflags_unused_parameter=-Wunused-parameter
420     aros_nowarnflags_unused_parameter=-Wno-unused-parameter
423 AC_MSG_CHECKING([whether ${CC} accepts -Wuninitialized])
424 CFLAGS=-Wuninitialized
425 AC_TRY_COMPILE(,, aros_uninitialized="yes", aros_uninitialized="no")
426 AC_MSG_RESULT($aros_uninitialized)
427 if test "x-$aros_uninitialized" = "x-yes" ; then
428     aros_warnflags_uninitialized=-Wuninitialized
429     aros_nowarnflags_uninitialized=-Wno-uninitialized
432 AC_MSG_CHECKING([whether ${CC} accepts -Wmaybe-uninitialized])
433 CFLAGS=-Wmaybe-uninitialized
434 AC_TRY_COMPILE(,, aros_maybe_uninitialized="yes", aros_maybe_uninitialized="no")
435 AC_MSG_RESULT($aros_maybe_uninitialized)
436 if test "x-$aros_maybe_uninitialized" = "x-yes" ; then
437     aros_warnflags_maybe_uninitialized=-Wmaybe-uninitialized
438     aros_nowarnflags_maybe_uninitialized=-Wno-maybe-uninitialized
439 else
440     aros_warnflags_maybe_uninitialized=$aros_warnflags_uninitialized
441     aros_nowarnflags_maybe_uninitialized=$aros_nowarnflags_uninitialized
444 AC_MSG_CHECKING([whether ${CC} accepts -Wimplicit-function-declaration])
445 CFLAGS=-Wimplicit-function-declaration
446 AC_TRY_COMPILE(,, aros_implicit_function_declaration="yes", aros_implicit_function_declaration="no")
447 AC_MSG_RESULT($aros_implicit_function_declaration)
448 if test "x-$aros_implicit_function_declaration" = "x-yes" ; then
449     aros_warnflags_implicit_function_declaration=-Wimplicit-function-declaration
450     aros_nowarnflags_implicit_function_declaration=-Wno-implicit-function-declaration
453 AC_MSG_CHECKING([whether ${CC} accepts -Wformat])
454 CFLAGS=-Wformat
455 AC_TRY_COMPILE(,, aros_format="yes", aros_format="no")
456 AC_MSG_RESULT($aros_format)
457 if test "x-$aros_format" = "x-yes" ; then
458     aros_warnflags_format=-Wformat
459     aros_nowarnflags_format=-Wno-format
462 AC_MSG_CHECKING([whether ${CC} accepts -Wparentheses])
463 CFLAGS=-Wparentheses
464 AC_TRY_COMPILE(,, aros_parentheses="yes", aros_parentheses="no")
465 AC_MSG_RESULT($aros_parentheses)
466 if test "x-$aros_parentheses" = "x-yes" ; then
467     aros_warnflags_parentheses=-Wparentheses
468     aros_nowarnflags_parentheses=-Wno-parentheses
471 AC_MSG_CHECKING([whether ${CC} accepts -Wchar-subscripts])
472 CFLAGS=-Wchar-subscripts
473 AC_TRY_COMPILE(,, aros_char_subscripts="yes", aros_char_subscripts="no")
474 AC_MSG_RESULT($aros_char_subscripts)
475 if test "x-$aros_char_subscripts" = "x-yes" ; then
476     aros_warnflags_char_subscripts=-Wchar-subscripts
477     aros_nowarnflags_char_subscripts=-Wno-char-subscripts
480 AC_MSG_CHECKING([whether ${CC} accepts -Wendif-labels])
481 CFLAGS=-Wendif-labels
482 AC_TRY_COMPILE(,, aros_endif_labels="yes", aros_endif_labels="no")
483 AC_MSG_RESULT($aros_endif_labels)
484 if test "x-$aros_endif_labels" = "x-yes" ; then
485     aros_warnflags_endif_labels=-Wendif-labels
486     aros_nowarnflags_endif_labels=-Wno-endif-labels
489 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-contains-nul])
490 CFLAGS=-Wformat-contains-nul
491 AC_TRY_COMPILE(,, aros_format_contains_nul="yes", aros_format_contains_nul="no")
492 AC_MSG_RESULT($aros_format_contains_nul)
493 if test "x-$aros_format_contains_nul" = "x-yes" ; then
494     aros_warnflags_format_contains_nul=-Wformat-contains-nul
495     aros_nowarnflags_format_contains_nul=-Wno-format-contains-nul
498 AC_MSG_CHECKING([whether ${CC} accepts -Wimplicit-int])
499 CFLAGS=-Wimplicit-int
500 AC_TRY_COMPILE(,, aros_implicit_int="yes", aros_implicit_int="no")
501 AC_MSG_RESULT($aros_implicit_int)
502 if test "x-$aros_implicit_int" = "x-yes" ; then
503     aros_warnflags_implicit_int=-Wimplicit-int
504     aros_nowarnflags_implicit_int=-Wno-implicit-int
507 AC_MSG_CHECKING([whether ${CC} accepts -Waggressive-loop-optimizations])
508 CFLAGS=-Waggressive-loop-optimizations
509 AC_TRY_COMPILE(,, aros_aggressive_loop_optimizations="yes", aros_aggressive_loop_optimizations="no")
510 AC_MSG_RESULT($aros_aggressive_loop_optimizations)
511 if test "x-$aros_aggressive_loop_optimizations" = "x-yes" ; then
512     aros_warnflags_aggressive_loop_optimizations=-Waggressive-loop-optimizations
513     aros_nowarnflags_aggressive_loop_optimizations=-Wno-aggressive-loop-optimizations
516 AC_MSG_CHECKING([whether ${CC} accepts -Wcpp])
517 CFLAGS=-Wcpp
518 AC_TRY_COMPILE(,, aros_cpp="yes", aros_cpp="no")
519 AC_MSG_RESULT($aros_cpp)
520 if test "x-$aros_cpp" = "x-yes" ; then
521     aros_warnflags_cpp=-Wcpp
522     aros_nowarnflags_cpp=-Wno-cpp
525 AC_MSG_CHECKING([whether ${CC} accepts -Wswitch])
526 CFLAGS=-Wswitch
527 AC_TRY_COMPILE(,, aros_switch="yes", aros_switch="no")
528 AC_MSG_RESULT($aros_switch)
529 if test "x-$aros_switch" = "x-yes" ; then
530     aros_warnflags_switch=-Wswitch
531     aros_nowarnflags_switch=-Wno-switch
534 AC_MSG_CHECKING([whether ${CC} accepts -Wdiscarded-qualifiers])
535 CFLAGS=-Wdiscarded-qualifiers
536 AC_TRY_COMPILE(,, aros_discarded_qualifiers="yes", aros_discarded_qualifiers="no")
537 AC_MSG_RESULT($aros_discarded_qualifiers)
538 if test "x-$aros_discarded_qualifiers" = "x-yes" ; then
539     aros_warnflags_discarded_qualifiers=-Wdiscarded-qualifiers
540     aros_nowarnflags_discarded_qualifiers=-Wno-discarded-qualifiers
543 AC_MSG_CHECKING([whether ${CC} accepts -Wsequence-point])
544 CFLAGS=-Wsequence-point
545 AC_TRY_COMPILE(,, aros_sequence_point="yes", aros_sequence_point="no")
546 AC_MSG_RESULT($aros_sequence_point)
547 if test "x-$aros_sequence_point" = "x-yes" ; then
548     aros_warnflags_sequence_point=-Wsequence-point
549     aros_nowarnflags_sequence_point=-Wno-sequence-point
552 AC_MSG_CHECKING([whether ${CC} accepts -Wunknown-pragmas])
553 CFLAGS=-Wunknown-pragmas
554 AC_TRY_COMPILE(,, aros_unknown_pragmas="yes", aros_unknown_pragmas="no")
555 AC_MSG_RESULT($aros_unknown_pragmas)
556 if test "x-$aros_unknown_pragmas" = "x-yes" ; then
557     aros_warnflags_unknown_pragmas=-Wunknown-pragmas
558     aros_nowarnflags_unknown_pragmas=-Wno-unknown-pragmas
561 AC_MSG_CHECKING([whether ${CC} accepts -Wdiscarded-array-qualifiers])
562 CFLAGS=-Wdiscarded-array-qualifiers
563 AC_TRY_COMPILE(,, aros_discarded_array_qualifiers="yes", aros_discarded_array_qualifiers="no")
564 AC_MSG_RESULT($aros_discarded_array_qualifiers)
565 if test "x-$aros_discarded_array_qualifiers" = "x-yes" ; then
566     aros_warnflags_discarded_array_qualifiers=-Wdiscarded-array-qualifiers
567     aros_nowarnflags_discarded_array_qualifiers=-Wno-discarded-array-qualifiers
570 AC_MSG_CHECKING([whether ${CC} accepts -Wint-conversion])
571 CFLAGS=-Wint-conversion
572 AC_TRY_COMPILE(,, aros_int_conversion="yes", aros_int_conversion="no")
573 AC_MSG_RESULT($aros_int_conversion)
574 if test "x-$aros_int_conversion" = "x-yes" ; then
575     aros_warnflags_int_conversion=-Wint-conversion
576     aros_nowarnflags_int_conversion=-Wno-int-conversion
579 AC_MSG_CHECKING([whether ${CC} accepts -Wint-to-pointer-cast])
580 CFLAGS=-Wint-to-pointer-cast
581 AC_TRY_COMPILE(,, aros_int_to_pointer_cast="yes", aros_int_to_pointer_cast="no")
582 AC_MSG_RESULT($aros_int_to_pointer_cast)
583 if test "x-$aros_int_to_pointer_cast" = "x-yes" ; then
584     aros_warnflags_int_to_pointer_cast=-Wint-to-pointer-cast
585     aros_nowarnflags_int_to_pointer_cast=-Wno-int-to-pointer-cast
588 AC_MSG_CHECKING([whether ${CC} accepts -Wpointer-to-int-cast])
589 CFLAGS=-Wpointer-to-int-cast
590 AC_TRY_COMPILE(,, aros_pointer_to_int_cast="yes", aros_pointer_to_int_cast="no")
591 AC_MSG_RESULT($aros_pointer_to_int_cast)
592 if test "x-$aros_pointer_to_int_cast" = "x-yes" ; then
593     aros_warnflags_pointer_to_int_cast=-Wpointer-to-int-cast
594     aros_nowarnflags_pointer_to_int_cast=-Wno-pointer-to-int-cast
597 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-const-variable])
598 CFLAGS=-Wunused-const-variable
599 AC_TRY_COMPILE(,, aros_unused_const_variable="yes", aros_unused_const_variable="no")
600 AC_MSG_RESULT($aros_unused_const_variable)
601 if test "x-$aros_unused_const_variable" = "x-yes" ; then
602     aros_warnflags_unused_const_variable=-Wunused-const-variable
603     aros_nowarnflags_unused_const_variable=-Wno-unused-const-variable
606 AC_MSG_CHECKING([whether ${CC} accepts -Wwrite-strings])
607 CFLAGS=-Wwrite-strings
608 AC_TRY_COMPILE(,, aros_write_strings="yes", aros_write_strings="no")
609 AC_MSG_RESULT($aros_write_strings)
610 if test "x-$aros_write_strings" = "x-yes" ; then
611     aros_warnflags_write_strings=-Wwrite-strings
612     aros_nowarnflags_write_strings=-Wno-write-strings
615 AC_MSG_CHECKING([whether ${CC} accepts -Wcomment])
616 CFLAGS=-Wcomment
617 AC_TRY_COMPILE(,, aros_comment="yes", aros_comment="no")
618 AC_MSG_RESULT($aros_comment)
619 if test "x-$aros_comment" = "x-yes" ; then
620     aros_warnflags_comment=-Wcomment
621     aros_nowarnflags_comment=-Wno-comment
624 AC_MSG_CHECKING([whether ${CC} accepts -Wincompatible-pointer-types])
625 CFLAGS=-Wincompatible-pointer-types
626 AC_TRY_COMPILE(,, aros_incompatible_pointer_types="yes", aros_incompatible_pointer_types="no")
627 AC_MSG_RESULT($aros_incompatible_pointer_types)
628 if test "x-$aros_incompatible_pointer_types" = "x-yes" ; then
629     aros_warnflags_incompatible_pointer_types=-Wincompatible-pointer-types
630     aros_nowarnflags_incompatible_pointer_types=-Wno-incompatible-pointer-types
633 AC_MSG_CHECKING([whether ${CC} accepts -Wbool-compare])
634 CFLAGS=-Wbool-compare
635 AC_TRY_COMPILE(,, aros_bool_compare="yes", aros_bool_compare="no")
636 AC_MSG_RESULT($aros_bool_compare)
637 if test "x-$aros_bool_compare" = "x-yes" ; then
638     aros_warnflags_bool_compare=-Wbool-compare
639     aros_nowarnflags_bool_compare=-Wno-bool-compare
642 AC_MSG_CHECKING([whether ${CC} accepts -Wlogical-not-parentheses])
643 CFLAGS=-Wlogical-not-parentheses
644 AC_TRY_COMPILE(,, aros_logical_not_parentheses="yes", aros_logical_not_parentheses="no")
645 AC_MSG_RESULT($aros_logical_not_parentheses)
646 if test "x-$aros_logical_not_parentheses" = "x-yes" ; then
647     aros_warnflags_logical_not_parentheses=-Wlogical-not-parentheses
648     aros_nowarnflags_logical_not_parentheses=-Wno-logical-not-parentheses
651 AC_MSG_CHECKING([whether ${CC} accepts -Wpointer-sign])
652 CFLAGS=-Wpointer-sign
653 AC_TRY_COMPILE(,, aros_pointer_sign="yes", aros_pointer_sign="no")
654 AC_MSG_RESULT($aros_pointer_sign)
655 if test "x-$aros_pointer_sign" = "x-yes" ; then
656     aros_warnflags_pointer_sign=-Wpointer-sign
657     aros_nowarnflags_pointer_sign=-Wno-pointer-sign
660 AC_MSG_CHECKING([whether ${CC} accepts -Wshift-overflow])
661 CFLAGS=-Wshift-overflow
662 AC_TRY_COMPILE(,, aros_shift_overflow="yes", aros_shift_overflow="no")
663 AC_MSG_RESULT($aros_shift_overflow)
664 if test "x-$aros_shift_overflow" = "x-yes" ; then
665     aros_warnflags_shift_overflow=-Wshift-overflow
666     aros_nowarnflags_shift_overflow=-Wno-shift-overflow
669 AC_MSG_CHECKING([whether ${CC} accepts -Wframe-address])
670 CFLAGS=-Wframe-address
671 AC_TRY_COMPILE(,, aros_frame_address="yes", aros_frame_address="no")
672 AC_MSG_RESULT($aros_frame_address)
673 if test "x-$aros_frame_address" = "x-yes" ; then
674     aros_warnflags_frame_address=-Wframe-address
675     aros_nowarnflags_frame_address=-Wno-frame-address
678 AC_MSG_CHECKING([whether ${CC} accepts -Wdeprecated-declarations])
679 CFLAGS=-Wdeprecated-declarations
680 AC_TRY_COMPILE(,, aros_deprecated_declarations="yes", aros_deprecated_declarations="no")
681 AC_MSG_RESULT($aros_deprecated_declarations)
682 if test "x-$aros_deprecated_declarations" = "x-yes" ; then
683     aros_warnflags_deprecated_declarations=-Wdeprecated-declarations
684     aros_nowarnflags_deprecated_declarations=-Wno-deprecated-declarations
687 AC_MSG_CHECKING([whether ${CC} accepts -Wsign-compare])
688 CFLAGS=-Wsign-compare
689 AC_TRY_COMPILE(,, aros_sign_compare="yes", aros_sign_compare="no")
690 AC_MSG_RESULT($aros_sign_compare)
691 if test "x-$aros_sign_compare" = "x-yes" ; then
692     aros_warnflags_sign_compare=-Wsign-compare
693     aros_nowarnflags_sign_compare=-Wno-sign-compare
696 AC_MSG_CHECKING([whether ${CC} accepts -Wattributes])
697 CFLAGS=-Wattributes
698 AC_TRY_COMPILE(,, aros_attributes="yes", aros_attributes="no")
699 AC_MSG_RESULT($aros_attributes)
700 if test "x-$aros_attributes" = "x-yes" ; then
701     aros_warnflags_attributes=-Wattributes
702     aros_nowarnflags_attributes=-Wno-attributes
705 AC_MSG_CHECKING([whether ${CC} accepts -Woverflow])
706 CFLAGS=-Woverflow
707 AC_TRY_COMPILE(,, aros_overflow="yes", aros_overflow="no")
708 AC_MSG_RESULT($aros_overflow)
709 if test "x-$aros_overflow" = "x-yes" ; then
710     aros_warnflags_overflow=-Woverflow
711     aros_nowarnflags_overflow=-Wno-overflow
714 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-local-typedefs])
715 CFLAGS=-Wunused-local-typedefs
716 AC_TRY_COMPILE(,, aros_unused_local_typedefs="yes", aros_unused_local_typedefs="no")
717 AC_MSG_RESULT($aros_unused_local_typedefs)
718 if test "x-$aros_unused_local_typedefs" = "x-yes" ; then
719     aros_warnflags_unused_local_typedefs=-Wunused-local-typedefs
720     aros_nowarnflags_unused_local_typedefs=-Wno-unused-local-typedefs
723 AC_MSG_CHECKING([whether ${CC} accepts -Wmissing-braces])
724 CFLAGS=-Wmissing-braces
725 AC_TRY_COMPILE(,, aros_missing_braces="yes", aros_missing_braces="no")
726 AC_MSG_RESULT($aros_missing_braces)
727 if test "x-$aros_missing_braces" = "x-yes" ; then
728     aros_warnflags_missing_braces=-Wmissing-braces
729     aros_nowarnflags_missing_braces=-Wno-missing-braces
732 AC_MSG_CHECKING([whether ${CC} accepts -Wconversion-null])
733 CFLAGS=-Wconversion-null
734 AC_TRY_COMPILE(,, aros_conversion_null="yes", aros_conversion_null="no")
735 AC_MSG_RESULT($aros_conversion_null)
736 if test "x-$aros_conversion_null" = "x-yes" ; then
737     aros_warnflags_conversion_null=-Wconversion-null
738     aros_nowarnflags_conversion_null=-Wno-conversion-null
741 AC_MSG_CHECKING([whether ${CC} accepts -Wnarrowing])
742 CFLAGS=-Wnarrowing
743 AC_TRY_COMPILE(,, aros_narrowing="yes", aros_narrowing="no")
744 AC_MSG_RESULT($aros_narrowing)
745 if test "x-$aros_narrowing" = "x-yes" ; then
746     aros_warnflags_narrowing=-Wnarrowing
747     aros_nowarnflags_narrowing=-Wno-narrowing
750 AC_MSG_CHECKING([whether ${CC} accepts -Wvolatile-register-var])
751 CFLAGS=-Wvolatile-register-var
752 AC_TRY_COMPILE(,, aros_volatile_register_var="yes", aros_volatile_register_var="no")
753 AC_MSG_RESULT($aros_volatile_register_var)
754 if test "x-$aros_volatile_register_var" = "x-yes" ; then
755     aros_warnflags_volatile_register_var=-Wvolatile-register-var
756     aros_nowarnflags_volatile_register_var=-Wno-volatile-register-var
759 AC_MSG_CHECKING([whether ${CC} accepts -Wsizeof-pointer-memaccess])
760 CFLAGS=-Wsizeof-pointer-memaccess
761 AC_TRY_COMPILE(,, aros_sizeof_pointer_memaccess="yes", aros_sizeof_pointer_memaccess="no")
762 AC_MSG_RESULT($aros_sizeof_pointer_memaccess)
763 if test "x-$aros_sizeof_pointer_memaccess" = "x-yes" ; then
764     aros_warnflags_sizeof_pointer_memaccess=-Wsizeof-pointer-memaccess
765     aros_nowarnflags_sizeof_pointer_memaccess=-Wno-sizeof-pointer-memaccess
768 AC_MSG_CHECKING([whether ${CC} accepts -Wreturn-type])
769 CFLAGS=-Wreturn-type
770 AC_TRY_COMPILE(,, aros_return_type="yes", aros_return_type="no")
771 AC_MSG_RESULT($aros_return_type)
772 if test "x-$aros_return_type" = "x-yes" ; then
773     aros_warnflags_return_type=-Wreturn-type
774     aros_nowarnflags_return_type=-Wno-return-type
777 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-zero-length])
778 CFLAGS=-Wformat-zero-length
779 AC_TRY_COMPILE(,, aros_format_zero_length="yes", aros_format_zero_length="no")
780 AC_MSG_RESULT($aros_format_zero_length)
781 if test "x-$aros_format_zero_length" = "x-yes" ; then
782     aros_warnflags_format_zero_length=-Wformat-zero-length
783     aros_nowarnflags_format_zero_length=-Wno-format-zero-length
786 AC_MSG_CHECKING([whether ${CC} accepts -Wlto-type-mismatch])
787 CFLAGS=-Wlto-type-mismatch
788 AC_TRY_COMPILE(,, aros_lto_type_mismatch="yes", aros_lto_type_mismatch="no")
789 AC_MSG_RESULT($aros_lto_type_mismatch)
790 if test "x-$aros_lto_type_mismatch" = "x-yes" ; then
791     aros_warnflags_lto_type_mismatch=-Wlto-type-mismatch
792     aros_nowarnflags_lto_type_mismatch=-Wno-lto-type-mismatch
795 AC_MSG_CHECKING([whether ${CC} accepts -Wtautological-compare])
796 CFLAGS=-Wtautological-compare
797 AC_TRY_COMPILE(,, aros_tautological_compare="yes", aros_tautological_compare="no")
798 AC_MSG_RESULT($aros_tautological_compare)
799 if test "x-$aros_tautological_compare" = "x-yes" ; then
800     aros_warnflags_tautological_compare=-Wtautological-compare
801     aros_nowarnflags_tautological_compare=-Wno-tautological-compare
804 AC_MSG_CHECKING([whether ${CC} accepts -Wempty-body])
805 CFLAGS=-Wempty-body
806 AC_TRY_COMPILE(,, aros_empty_body="yes", aros_empty_body="no")
807 AC_MSG_RESULT($aros_empty_body)
808 if test "x-$aros_empty_body" = "x-yes" ; then
809     aros_warnflags_empty_body=-Wempty-body
810     aros_nowarnflags_empty_body=-Wno-empty-body
813 AC_MSG_CHECKING([whether ${CC} accepts -Wstringop-overflow])
814 CFLAGS=-Wstringop-overflow
815 AC_TRY_COMPILE(,, aros_stringop_overflow="yes", aros_stringop_overflow="no")
816 AC_MSG_RESULT($aros_stringop_overflow)
817 if test "x-$aros_stringop_overflow" = "x-yes" ; then
818     aros_warnflags_stringop_overflow=-Wstringop-overflow
819     aros_nowarnflags_stringop_overflow=-Wno-stringop-overflow
822 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-truncation])
823 CFLAGS=-Wformat-truncation
824 AC_TRY_COMPILE(,, aros_format_truncation="yes", aros_format_truncation="no")
825 AC_MSG_RESULT($aros_format_truncation)
826 if test "x-$aros_format_truncation" = "x-yes" ; then
827     aros_warnflags_format_truncation=-Wformat-truncation
828     aros_nowarnflags_format_truncation=-Wno-format-truncation
831 AC_MSG_CHECKING([whether ${CC} accepts -Wshift-negative-value])
832 CFLAGS=-Wshift-negative-value
833 AC_TRY_COMPILE(,, aros_shift_negative_value="yes", aros_shift_negative_value="no")
834 AC_MSG_RESULT($aros_shift_negative_value)
835 if test "x-$aros_shift_negative_value" = "x-yes" ; then
836     aros_warnflags_shift_negative_value=-Wshift-negative-value
837     aros_nowarnflags_shift_negative_value=-Wno-shift-negative-value
841 # export the feature flags...
843 AC_SUBST(aros_cflags_exceptions)
844 AC_SUBST(aros_cflags_permissive)
845 AC_SUBST(aros_cflags_fast_math)
846 AC_SUBST(aros_cflags_no_builtin_floor)
847 AC_SUBST(aros_cflags_lto)
848 AC_SUBST(aros_cflags_nolto)
849 AC_SUBST(aros_cflags_whole_program)
850 AC_SUBST(aros_cflags_loop_block)
851 AC_SUBST(aros_cflags_loop_interchange)
852 AC_SUBST(aros_cflags_loop_strip_mine)
853 AC_SUBST(aros_cflags_peel_loops)
854 AC_SUBST(aros_cflags_unroll_loops)
856 AC_SUBST(aros_cflags_strictaliasing)
857 AC_SUBST(aros_cflags_nostrictaliasing)
859 AC_SUBST(aros_cflags_inlinesmallfunctions)
860 AC_SUBST(aros_cflags_noinlinesmallfunctions)
862 AC_SUBST(aros_cflags_ipacp)
863 AC_SUBST(aros_cflags_noipacp)
865 AC_SUBST(aros_cflags_iquote)
866 AC_SUBST(aros_cflags_iquote_end)
869 # export the feature options...
871 AC_SUBST(aros_cflags_no_red_zone)
874 # ...and warning flags...
876 AC_SUBST(aros_warnflags_error)
877 AC_SUBST(aros_nowarnflags_error)
878 AC_SUBST(aros_warnflags_unused_command_line_argument)
879 AC_SUBST(aros_nowarnflags_unused_command_line_argument)
880 AC_SUBST(aros_warnflags_unknown_warning_option)
881 AC_SUBST(aros_nowarnflags_unknown_warning_option)
882 AC_SUBST(aros_warnflags_unused_but_set_variable)
883 AC_SUBST(aros_nowarnflags_unused_but_set_variable)
884 AC_SUBST(aros_warnflags_strict_aliasing)
885 AC_SUBST(aros_nowarnflags_strict_aliasing)
886 AC_SUBST(aros_warnflags_array_bounds)
887 AC_SUBST(aros_nowarnflags_array_bounds)
888 AC_SUBST(aros_warnflags_enum_compare)
889 AC_SUBST(aros_nowarnflags_enum_compare)
890 AC_SUBST(aros_warnflags_strict_prototypes)
891 AC_SUBST(aros_nowarnflags_strict_prototypes)
892 AC_SUBST(aros_warnflags_strict_overflow)
893 AC_SUBST(aros_nowarnflags_strict_overflow)
894 AC_SUBST(aros_warnflags_format_security)
895 AC_SUBST(aros_nowarnflags_format_security)
896 AC_SUBST(aros_warnflags_misleading_indentation)
897 AC_SUBST(aros_nowarnflags_misleading_indentation)
898 AC_SUBST(aros_warnflags_nonnull_compare)
899 AC_SUBST(aros_nowarnflags_nonnull_compare)
900 AC_SUBST(aros_warnflags_unused)
901 AC_SUBST(aros_nowarnflags_unused)
902 AC_SUBST(aros_warnflags_unused_label)
903 AC_SUBST(aros_nowarnflags_unused_label)
904 AC_SUBST(aros_warnflags_unused_value)
905 AC_SUBST(aros_nowarnflags_unused_value)
906 AC_SUBST(aros_warnflags_unused_variable)
907 AC_SUBST(aros_nowarnflags_unused_variable)
908 AC_SUBST(aros_warnflags_unused_function)
909 AC_SUBST(aros_nowarnflags_unused_function)
910 AC_SUBST(aros_warnflags_unused_parameter)
911 AC_SUBST(aros_nowarnflags_unused_parameter)
912 AC_SUBST(aros_warnflags_uninitialized)
913 AC_SUBST(aros_nowarnflags_uninitialized)
914 AC_SUBST(aros_warnflags_maybe_uninitialized)
915 AC_SUBST(aros_nowarnflags_maybe_uninitialized)
916 AC_SUBST(aros_warnflags_implicit_function_declaration)
917 AC_SUBST(aros_nowarnflags_implicit_function_declaration)
918 AC_SUBST(aros_warnflags_format)
919 AC_SUBST(aros_nowarnflags_format)
920 AC_SUBST(aros_warnflags_parentheses)
921 AC_SUBST(aros_nowarnflags_parentheses)
922 AC_SUBST(aros_warnflags_char_subscripts)
923 AC_SUBST(aros_nowarnflags_char_subscripts)
924 AC_SUBST(aros_warnflags_endif_labels)
925 AC_SUBST(aros_nowarnflags_endif_labels)
926 AC_SUBST(aros_warnflags_format_contains_nul)
927 AC_SUBST(aros_nowarnflags_format_contains_nul)
928 AC_SUBST(aros_warnflags_implicit_int)
929 AC_SUBST(aros_nowarnflags_implicit_int)
930 AC_SUBST(aros_warnflags_aggressive_loop_optimizations)
931 AC_SUBST(aros_nowarnflags_aggressive_loop_optimizations)
932 AC_SUBST(aros_warnflags_cpp)
933 AC_SUBST(aros_nowarnflags_cpp)
934 AC_SUBST(aros_warnflags_switch)
935 AC_SUBST(aros_nowarnflags_switch)
936 AC_SUBST(aros_warnflags_discarded_qualifiers)
937 AC_SUBST(aros_nowarnflags_discarded_qualifiers)
938 AC_SUBST(aros_warnflags_sequence_point)
939 AC_SUBST(aros_nowarnflags_sequence_point)
940 AC_SUBST(aros_warnflags_unknown_pragmas)
941 AC_SUBST(aros_nowarnflags_unknown_pragmas)
942 AC_SUBST(aros_warnflags_discarded_array_qualifiers)
943 AC_SUBST(aros_nowarnflags_discarded_array_qualifiers)
944 AC_SUBST(aros_warnflags_int_conversion)
945 AC_SUBST(aros_nowarnflags_int_conversion)
946 AC_SUBST(aros_warnflags_int_to_pointer_cast)
947 AC_SUBST(aros_nowarnflags_int_to_pointer_cast)
948 AC_SUBST(aros_warnflags_pointer_to_int_cast)
949 AC_SUBST(aros_nowarnflags_pointer_to_int_cast)
950 AC_SUBST(aros_warnflags_unused_const_variable)
951 AC_SUBST(aros_nowarnflags_unused_const_variable)
952 AC_SUBST(aros_warnflags_write_strings)
953 AC_SUBST(aros_nowarnflags_write_strings)
954 AC_SUBST(aros_warnflags_comment)
955 AC_SUBST(aros_nowarnflags_comment)
956 AC_SUBST(aros_warnflags_incompatible_pointer_types)
957 AC_SUBST(aros_nowarnflags_incompatible_pointer_types)
958 AC_SUBST(aros_warnflags_bool_compare)
959 AC_SUBST(aros_nowarnflags_bool_compare)
960 AC_SUBST(aros_warnflags_logical_not_parentheses)
961 AC_SUBST(aros_nowarnflags_logical_not_parentheses)
962 AC_SUBST(aros_warnflags_pointer_sign)
963 AC_SUBST(aros_nowarnflags_pointer_sign)
964 AC_SUBST(aros_warnflags_shift_overflow)
965 AC_SUBST(aros_nowarnflags_shift_overflow)
966 AC_SUBST(aros_warnflags_frame_address)
967 AC_SUBST(aros_nowarnflags_frame_address)
968 AC_SUBST(aros_warnflags_deprecated_declarations)
969 AC_SUBST(aros_nowarnflags_deprecated_declarations)
970 AC_SUBST(aros_warnflags_sign_compare)
971 AC_SUBST(aros_nowarnflags_sign_compare)
972 AC_SUBST(aros_warnflags_attributes)
973 AC_SUBST(aros_nowarnflags_attributes)
974 AC_SUBST(aros_warnflags_overflow)
975 AC_SUBST(aros_nowarnflags_overflow)
976 AC_SUBST(aros_warnflags_unused_local_typedefs)
977 AC_SUBST(aros_nowarnflags_unused_local_typedefs)
978 AC_SUBST(aros_warnflags_missing_braces)
979 AC_SUBST(aros_nowarnflags_missing_braces)
980 AC_SUBST(aros_warnflags_conversion_null)
981 AC_SUBST(aros_nowarnflags_conversion_null)
982 AC_SUBST(aros_warnflags_narrowing)
983 AC_SUBST(aros_nowarnflags_narrowing)
984 AC_SUBST(aros_warnflags_volatile_register_var)
985 AC_SUBST(aros_nowarnflags_volatile_register_var)
986 AC_SUBST(aros_warnflags_sizeof_pointer_memaccess)
987 AC_SUBST(aros_nowarnflags_sizeof_pointer_memaccess)
988 AC_SUBST(aros_warnflags_return_type)
989 AC_SUBST(aros_nowarnflags_return_type)
990 AC_SUBST(aros_warnflags_format_zero_length)
991 AC_SUBST(aros_nowarnflags_format_zero_length)
992 AC_SUBST(aros_warnflags_lto_type_mismatch)
993 AC_SUBST(aros_nowarnflags_lto_type_mismatch)
994 AC_SUBST(aros_warnflags_tautological_compare)
995 AC_SUBST(aros_nowarnflags_tautological_compare)
996 AC_SUBST(aros_warnflags_empty_body)
997 AC_SUBST(aros_nowarnflags_empty_body)
998 AC_SUBST(aros_warnflags_stringop_overflow)
999 AC_SUBST(aros_nowarnflags_stringop_overflow)
1000 AC_SUBST(aros_warnflags_format_truncation)
1001 AC_SUBST(aros_nowarnflags_format_truncation)
1002 AC_SUBST(aros_warnflags_shift_negative_value)
1003 AC_SUBST(aros_nowarnflags_shift_negative_value)
1004     
1005 AC_CONFIG_FILES(
1006     ${aros_targetcfg_dir}/compiler.cfg:compiler.cfg.in
1009 AC_OUTPUT