Build version 1 of all catalogs.
[AROS.git] / features.in
blobf8462de50f38b897996e968c4cc13b788e906df8
1 dnl Copyright © 1997-2016, 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 # Don't know where else to put this...
15 AC_MSG_CHECKING([building AROS in])
16 AROS_BUILDDIR=`${PWDCMD-pwd}`
17 AROS_BUILDDIR_UNIX=${PWD}
18 AC_MSG_RESULT($AROS_BUILDDIR)
20 AC_MSG_CHECKING([AROS source in])
21 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
22 SRCDIR=${srcpwd}
23 AC_MSG_RESULT($SRCDIR)
25 NOLINKFLAGS="-nostdlib -nostartfiles"
26 LDFLAGS=$NOLINKFLAGS
27 # The first step is to find the binaries.
28 AC_PROG_CC
30 AC_MSG_CHECKING([target config location])
31 AC_ARG_WITH(config-dir,AC_HELP_STRING([--with-config-dir=VERSION],[Location of generated target config files]),targetcfg_dir="$withval",targetcfg_dir="")
32 if test "$targetcfg_dir" = ""; then
33     AC_MSG_ERROR([missing config directory!])
34 else
35     aros_targetcfg_dir="$targetcfg_dir"
37 AC_MSG_RESULT($aros_targetcfg_dir)
39 #-----------------------------------------------------------------------------
41 # Check if the target compiler supports some options used for delinting:
42 #  -Wunused-but-set-variable
43 #  -Wstrict-aliasing
44 #  -Warray-bounds
45 #  -Wenum-compare
46 #  -Wstrict-prototypes
47 #  -Wstrict-overflow
48 #  -Wformat-security
49 #  -Wmisleading-indentation
50 #  -Wnonnull-compare
51 #  -Wunused
52 #  -Wunused-value
53 #  -Wunused-variable
54 #  -Wunused-function
55 #  -Wuninitialized
56 #  -Wmaybe-uninitialized
57 #  -Wimplicit-function-declaration
58 #  -Wformat
59 #  -Wparentheses
60 #  -Wchar-subscripts
61 #  -Wendif-labels
62 #  -Wformat-contains-nul
63 #  -Wimplicit-int
64 #  -Waggressive-loop-optimizations
65 #  -Wcpp
66 #  -Wswitch
67 #  -Wdiscarded-qualifiers
68 #  -Wsequence-point
69 #  -Wunknown-pragmas
70 #  -Wdiscarded-array-qualifiers
71 #  -Wint-conversion
72 #  -Wint-to-pointer-cast
73 #  -Wpointer-to-int-cast
74 #  -Wunused-const-variable
75 #  -Wwrite-strings 
76 #  -Wcomment
77 #  -Wincompatible-pointer-types
78 #  -Wbool-compare
79 #  -Wlogical-not-parentheses
80 #  -Wpointer-sign
81 #  -Wshift-overflow
82 #  -Wframe-address
83 #  -Wdeprecated-declarations
84 #  -Wsign-compare
85 #  -Wattributes
86 #  -Woverflow
87 #  -Wunused-local-typedefs
88 #  -Wmissing-braces
89 #  -Wconversion-null
90 #  -Wnarrowing
91 #  -Wvolatile-register-var
93 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-but-set-variable])
94 CFLAGS=-Wunused-but-set-variable
95 AC_TRY_COMPILE(,, aros_unused_but_set_variable="yes", aros_unused_but_set_variable="no")
96 AC_MSG_RESULT($aros_unused_but_set_variable)
97 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
98     aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
101 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-aliasing])
102 CFLAGS=-Wstrict-aliasing
103 AC_TRY_COMPILE(,, aros_strict_aliasing="yes", aros_strict_aliasing="no")
104 AC_MSG_RESULT($aros_strict_aliasing)
105 if test "x-$aros_strict_aliasing" = "x-yes" ; then
106     aros_cflags_strict_aliasing=-Wno-strict-aliasing
109 AC_MSG_CHECKING([whether ${CC} accepts -Warray-bounds])
110 CFLAGS=-Warray-bounds
111 AC_TRY_COMPILE(,, aros_array_bounds="yes", aros_array_bounds="no")
112 AC_MSG_RESULT($aros_array_bounds)
113 if test "x-$aros_array_bounds" = "x-yes" ; then
114     aros_cflags_array_bounds=-Wno-array-bounds
117 AC_MSG_CHECKING([whether ${CC} accepts -Wenum-compare])
118 CFLAGS=-Wenum-compare
119 AC_TRY_COMPILE(,, aros_enum_compare="yes", aros_enum_compare="no")
120 AC_MSG_RESULT($aros_enum_compare)
121 if test "x-$aros_enum_compare" = "x-yes" ; then
122     aros_cflags_enum_compare=-Wno-enum-compare
125 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-prototypes])
126 CFLAGS=-Wstrict-prototypes
127 AC_TRY_COMPILE(,, aros_strict_prototypes="yes", aros_strict_prototypes="no")
128 AC_MSG_RESULT($aros_strict_prototypes)
129 if test "x-$aros_strict_prototypes" = "x-yes" ; then
130     aros_cflags_strict_prototypes=-Wno-strict-prototypes
133 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-overflow])
134 CFLAGS=-Wstrict-overflow
135 AC_TRY_COMPILE(,, aros_strict_overflow="yes", aros_strict_overflow="no")
136 AC_MSG_RESULT($aros_strict_overflow)
137 if test "x-$aros_strict_overflow" = "x-yes" ; then
138     aros_cflags_strict_overflow=-Wno-strict-overflow
141 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-security])
142 CFLAGS=-Wformat-security
143 AC_TRY_COMPILE(,, aros_format_security="yes", aros_format_security="no")
144 AC_MSG_RESULT($aros_format_security)
145 if test "x-$aros_format_security" = "x-yes" ; then
146     aros_cflags_format_security=-Wno-format-security
149 AC_MSG_CHECKING([whether ${CC} accepts -Wmisleading-indentation])
150 CFLAGS=-Wmisleading-indentation
151 AC_TRY_COMPILE(,, aros_misleading_indentation="yes", aros_misleading_indentation="no")
152 AC_MSG_RESULT($aros_misleading_indentation)
153 if test "x-$aros_misleading_indentation" = "x-yes" ; then
154     aros_cflags_misleading_indentation=-Wno-misleading-indentation
157 AC_MSG_CHECKING([whether ${CC} accepts -Wnonnull-compare])
158 CFLAGS=-Wnonnull-compare
159 AC_TRY_COMPILE(,, aros_nonnull_compare="yes", aros_nonnull_compare="no")
160 AC_MSG_RESULT($aros_nonnull_compare)
161 if test "x-$aros_nonnull_compare" = "x-yes" ; then
162     aros_cflags_nonnull_compare=-Wno-nonnull-compare
165 AC_MSG_CHECKING([whether ${CC} accepts -Wunused])
166 CFLAGS=-Wunused
167 AC_TRY_COMPILE(,, aros_unused="yes", aros_unused="no")
168 AC_MSG_RESULT($aros_unused)
169 if test "x-$aros_unused" = "x-yes" ; then
170     aros_cflags_unused=-Wno-unused
173 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-value])
174 CFLAGS=-Wunused-value
175 AC_TRY_COMPILE(,, aros_unused_value="yes", aros_unused_value="no")
176 AC_MSG_RESULT($aros_unused_value)
177 if test "x-$aros_unused_value" = "x-yes" ; then
178     aros_cflags_unused_value=-Wno-unused-value
181 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-variable])
182 CFLAGS=-Wunused-variable
183 AC_TRY_COMPILE(,, aros_unused_variable="yes", aros_unused_variable="no")
184 AC_MSG_RESULT($aros_unused_variable)
185 if test "x-$aros_unused_variable" = "x-yes" ; then
186     aros_cflags_unused_variable=-Wno-unused-variable
189 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-function])
190 CFLAGS=-Wunused-function
191 AC_TRY_COMPILE(,, aros_unused_function="yes", aros_unused_function="no")
192 AC_MSG_RESULT($aros_unused_function)
193 if test "x-$aros_unused_function" = "x-yes" ; then
194     aros_cflags_unused_function=-Wno-unused-function
197 AC_MSG_CHECKING([whether ${CC} accepts -Wuninitialized])
198 CFLAGS=-Wuninitialized
199 AC_TRY_COMPILE(,, aros_uninitialized="yes", aros_uninitialized="no")
200 AC_MSG_RESULT($aros_uninitialized)
201 if test "x-$aros_uninitialized" = "x-yes" ; then
202     aros_cflags_uninitialized=-Wno-uninitialized
205 AC_MSG_CHECKING([whether ${CC} accepts -Wmaybe-uninitialized])
206 CFLAGS=-Wmaybe-uninitialized
207 AC_TRY_COMPILE(,, aros_maybe_uninitialized="yes", aros_maybe_uninitialized="no")
208 AC_MSG_RESULT($aros_maybe_uninitialized)
209 if test "x-$aros_maybe_uninitialized" = "x-yes" ; then
210     aros_cflags_maybe_uninitialized=-Wno-maybe-uninitialized
213 AC_MSG_CHECKING([whether ${CC} accepts -Wimplicit-function-declaration])
214 CFLAGS=-Wimplicit-function-declaration
215 AC_TRY_COMPILE(,, aros_implicit_function_declaration="yes", aros_implicit_function_declaration="no")
216 AC_MSG_RESULT($aros_implicit_function_declaration)
217 if test "x-$aros_implicit_function_declaration" = "x-yes" ; then
218     aros_cflags_implicit_function_declaration=-Wno-implicit-function-declaration
221 AC_MSG_CHECKING([whether ${CC} accepts -Wformat])
222 CFLAGS=-Wformat
223 AC_TRY_COMPILE(,, aros_format="yes", aros_format="no")
224 AC_MSG_RESULT($aros_format)
225 if test "x-$aros_format" = "x-yes" ; then
226     aros_cflags_format=-Wno-format
229 AC_MSG_CHECKING([whether ${CC} accepts -Wparentheses])
230 CFLAGS=-Wparentheses
231 AC_TRY_COMPILE(,, aros_parentheses="yes", aros_parentheses="no")
232 AC_MSG_RESULT($aros_parentheses)
233 if test "x-$aros_parentheses" = "x-yes" ; then
234     aros_cflags_parentheses=-Wno-parentheses
237 AC_MSG_CHECKING([whether ${CC} accepts -Wchar-subscripts])
238 CFLAGS=-Wchar-subscripts
239 AC_TRY_COMPILE(,, aros_char_subscripts="yes", aros_char_subscripts="no")
240 AC_MSG_RESULT($aros_char_subscripts)
241 if test "x-$aros_char_subscripts" = "x-yes" ; then
242     aros_cflags_char_subscripts=-Wno-char-subscripts
245 AC_MSG_CHECKING([whether ${CC} accepts -Wendif-labels])
246 CFLAGS=-Wendif-labels
247 AC_TRY_COMPILE(,, aros_endif_labels="yes", aros_endif_labels="no")
248 AC_MSG_RESULT($aros_endif_labels)
249 if test "x-$aros_endif_labels" = "x-yes" ; then
250     aros_cflags_endif_labels=-Wno-endif-labels
253 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-contains-nul])
254 CFLAGS=-Wformat-contains-nul
255 AC_TRY_COMPILE(,, aros_format_contains_nul="yes", aros_format_contains_nul="no")
256 AC_MSG_RESULT($aros_format_contains_nul)
257 if test "x-$aros_format_contains_nul" = "x-yes" ; then
258     aros_cflags_format_contains_nul=-Wno-format-contains-nul
261 AC_MSG_CHECKING([whether ${CC} accepts -Wimplicit-int])
262 CFLAGS=-Wimplicit-int
263 AC_TRY_COMPILE(,, aros_implicit_int="yes", aros_implicit_int="no")
264 AC_MSG_RESULT($aros_implicit_int)
265 if test "x-$aros_implicit_int" = "x-yes" ; then
266     aros_cflags_implicit_int=-Wno-implicit-int
269 AC_MSG_CHECKING([whether ${CC} accepts -Waggressive-loop-optimizations])
270 CFLAGS=-Waggressive-loop-optimizations
271 AC_TRY_COMPILE(,, aros_aggressive_loop_optimizations="yes", aros_aggressive_loop_optimizations="no")
272 AC_MSG_RESULT($aros_aggressive_loop_optimizations)
273 if test "x-$aros_aggressive_loop_optimizations" = "x-yes" ; then
274     aros_cflags_aggressive_loop_optimizations=-Wno-aggressive-loop-optimizations
277 AC_MSG_CHECKING([whether ${CC} accepts -Wcpp])
278 CFLAGS=-Wcpp
279 AC_TRY_COMPILE(,, aros_cpp="yes", aros_cpp="no")
280 AC_MSG_RESULT($aros_cpp)
281 if test "x-$aros_cpp" = "x-yes" ; then
282     aros_cflags_cpp=-Wno-cpp
285 AC_MSG_CHECKING([whether ${CC} accepts -Wswitch])
286 CFLAGS=-Wswitch
287 AC_TRY_COMPILE(,, aros_switch="yes", aros_switch="no")
288 AC_MSG_RESULT($aros_switch)
289 if test "x-$aros_switch" = "x-yes" ; then
290     aros_cflags_switch=-Wno-switch
293 AC_MSG_CHECKING([whether ${CC} accepts -Wdiscarded-qualifiers])
294 CFLAGS=-Wdiscarded-qualifiers
295 AC_TRY_COMPILE(,, aros_discarded_qualifiers="yes", aros_discarded_qualifiers="no")
296 AC_MSG_RESULT($aros_discarded_qualifiers)
297 if test "x-$aros_discarded_qualifiers" = "x-yes" ; then
298     aros_cflags_discarded_qualifiers=-Wno-discarded-qualifiers
301 AC_MSG_CHECKING([whether ${CC} accepts -Wsequence-point])
302 CFLAGS=-Wsequence-point
303 AC_TRY_COMPILE(,, aros_sequence_point="yes", aros_sequence_point="no")
304 AC_MSG_RESULT($aros_sequence_point)
305 if test "x-$aros_sequence_point" = "x-yes" ; then
306     aros_cflags_sequence_point=-Wno-sequence-point
309 AC_MSG_CHECKING([whether ${CC} accepts -Wunknown-pragmas])
310 CFLAGS=-Wunknown-pragmas
311 AC_TRY_COMPILE(,, aros_unknown_pragmas="yes", aros_unknown_pragmas="no")
312 AC_MSG_RESULT($aros_unknown_pragmas)
313 if test "x-$aros_unknown_pragmas" = "x-yes" ; then
314     aros_cflags_unknown_pragmas=-Wno-unknown-pragmas
317 AC_MSG_CHECKING([whether ${CC} accepts -Wdiscarded-array-qualifiers])
318 CFLAGS=-Wdiscarded-array-qualifiers
319 AC_TRY_COMPILE(,, aros_discarded_array_qualifiers="yes", aros_discarded_array_qualifiers="no")
320 AC_MSG_RESULT($aros_discarded_array_qualifiers)
321 if test "x-$aros_discarded_array_qualifiers" = "x-yes" ; then
322     aros_cflags_discarded_array_qualifiers=-Wno-discarded-array-qualifiers
325 AC_MSG_CHECKING([whether ${CC} accepts -Wint-conversion])
326 CFLAGS=-Wint-conversion
327 AC_TRY_COMPILE(,, aros_int_conversion="yes", aros_int_conversion="no")
328 AC_MSG_RESULT($aros_int_conversion)
329 if test "x-$aros_int_conversion" = "x-yes" ; then
330     aros_cflags_int_conversion=-Wno-int-conversion
333 AC_MSG_CHECKING([whether ${CC} accepts -Wint-to-pointer-cast])
334 CFLAGS=-Wint-to-pointer-cast
335 AC_TRY_COMPILE(,, aros_int_to_pointer_cast="yes", aros_int_to_pointer_cast="no")
336 AC_MSG_RESULT($aros_int_to_pointer_cast)
337 if test "x-$aros_int_to_pointer_cast" = "x-yes" ; then
338     aros_cflags_int_to_pointer_cast=-Wno-int-to-pointer-cast
341 AC_MSG_CHECKING([whether ${CC} accepts -Wpointer-to-int-cast])
342 CFLAGS=-Wpointer-to-int-cast
343 AC_TRY_COMPILE(,, aros_pointer_to_int_cast="yes", aros_pointer_to_int_cast="no")
344 AC_MSG_RESULT($aros_pointer_to_int_cast)
345 if test "x-$aros_pointer_to_int_cast" = "x-yes" ; then
346     aros_cflags_pointer_to_int_cast=-Wno-pointer-to-int-cast
349 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-const-variable])
350 CFLAGS=-Wunused-const-variable
351 AC_TRY_COMPILE(,, aros_unused_const_variable="yes", aros_unused_const_variable="no")
352 AC_MSG_RESULT($aros_unused_const_variable)
353 if test "x-$aros_unused_const_variable" = "x-yes" ; then
354     aros_cflags_unused_const_variable=-Wno-unused-const-variable
357 AC_MSG_CHECKING([whether ${CC} accepts -Wwrite-strings])
358 CFLAGS=-Wwrite-strings
359 AC_TRY_COMPILE(,, aros_write_strings="yes", aros_write_strings="no")
360 AC_MSG_RESULT($aros_write_strings)
361 if test "x-$aros_write_strings" = "x-yes" ; then
362     aros_cflags_write_strings=-Wno-write-strings
365 AC_MSG_CHECKING([whether ${CC} accepts -Wcomment])
366 CFLAGS=-Wcomment
367 AC_TRY_COMPILE(,, aros_comment="yes", aros_comment="no")
368 AC_MSG_RESULT($aros_comment)
369 if test "x-$aros_comment" = "x-yes" ; then
370     aros_cflags_comment=-Wno-comment
373 AC_MSG_CHECKING([whether ${CC} accepts -Wincompatible-pointer-types])
374 CFLAGS=-Wincompatible-pointer-types
375 AC_TRY_COMPILE(,, aros_incompatible_pointer_types="yes", aros_incompatible_pointer_types="no")
376 AC_MSG_RESULT($aros_incompatible_pointer_types)
377 if test "x-$aros_incompatible_pointer_types" = "x-yes" ; then
378     aros_cflags_incompatible_pointer_types=-Wno-incompatible-pointer-types
381 AC_MSG_CHECKING([whether ${CC} accepts -Wbool-compare])
382 CFLAGS=-Wbool-compare
383 AC_TRY_COMPILE(,, aros_bool_compare="yes", aros_bool_compare="no")
384 AC_MSG_RESULT($aros_bool_compare)
385 if test "x-$aros_bool_compare" = "x-yes" ; then
386     aros_cflags_bool_compare=-Wno-bool-compare
389 AC_MSG_CHECKING([whether ${CC} accepts -Wlogical-not-parentheses])
390 CFLAGS=-Wlogical-not-parentheses
391 AC_TRY_COMPILE(,, aros_logical_not_parentheses="yes", aros_logical_not_parentheses="no")
392 AC_MSG_RESULT($aros_logical_not_parentheses)
393 if test "x-$aros_logical_not_parentheses" = "x-yes" ; then
394     aros_cflags_logical_not_parentheses=-Wno-logical-not-parentheses
397 AC_MSG_CHECKING([whether ${CC} accepts -Wpointer-sign])
398 CFLAGS=-Wpointer-sign
399 AC_TRY_COMPILE(,, aros_pointer_sign="yes", aros_pointer_sign="no")
400 AC_MSG_RESULT($aros_pointer_sign)
401 if test "x-$aros_pointer_sign" = "x-yes" ; then
402     aros_cflags_pointer_sign=-Wno-pointer-sign
405 AC_MSG_CHECKING([whether ${CC} accepts -Wshift-overflow])
406 CFLAGS=-Wshift-overflow
407 AC_TRY_COMPILE(,, aros_shift_overflow="yes", aros_shift_overflow="no")
408 AC_MSG_RESULT($aros_shift_overflow)
409 if test "x-$aros_shift_overflow" = "x-yes" ; then
410     aros_cflags_shift_overflow=-Wno-shift-overflow
413 AC_MSG_CHECKING([whether ${CC} accepts -Wframe-address])
414 CFLAGS=-Wframe-address
415 AC_TRY_COMPILE(,, aros_frame_address="yes", aros_frame_address="no")
416 AC_MSG_RESULT($aros_frame_address)
417 if test "x-$aros_frame_address" = "x-yes" ; then
418     aros_cflags_frame_address=-Wno-frame-address
421 AC_MSG_CHECKING([whether ${CC} accepts -Wdeprecated-declarations])
422 CFLAGS=-Wdeprecated-declarations
423 AC_TRY_COMPILE(,, aros_deprecated_declarations="yes", aros_deprecated_declarations="no")
424 AC_MSG_RESULT($aros_deprecated_declarations)
425 if test "x-$aros_deprecated_declarations" = "x-yes" ; then
426     aros_cflags_deprecated_declarations=-Wno-deprecated-declarations
429 AC_MSG_CHECKING([whether ${CC} accepts -Wsign-compare])
430 CFLAGS=-Wsign-compare
431 AC_TRY_COMPILE(,, aros_sign_compare="yes", aros_sign_compare="no")
432 AC_MSG_RESULT($aros_sign_compare)
433 if test "x-$aros_sign_compare" = "x-yes" ; then
434     aros_cflags_sign_compare=-Wno-sign-compare
437 AC_MSG_CHECKING([whether ${CC} accepts -Wattributes])
438 CFLAGS=-Wattributes
439 AC_TRY_COMPILE(,, aros_attributes="yes", aros_attributes="no")
440 AC_MSG_RESULT($aros_attributes)
441 if test "x-$aros_attributes" = "x-yes" ; then
442     aros_cflags_attributes=-Wno-attributes
445 AC_MSG_CHECKING([whether ${CC} accepts -Woverflow])
446 CFLAGS=-Woverflow
447 AC_TRY_COMPILE(,, aros_overflow="yes", aros_overflow="no")
448 AC_MSG_RESULT($aros_overflow)
449 if test "x-$aros_overflow" = "x-yes" ; then
450     aros_cflags_overflow=-Wno-overflow
453 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-local-typedefs])
454 CFLAGS=-Wunused-local-typedefs
455 AC_TRY_COMPILE(,, aros_unused_local_typedefs="yes", aros_unused_local_typedefs="no")
456 AC_MSG_RESULT($aros_unused_local_typedefs)
457 if test "x-$aros_unused_local_typedefs" = "x-yes" ; then
458     aros_cflags_unused_local_typedefs=-Wno-unused-local-typedefs
461 AC_MSG_CHECKING([whether ${CC} accepts -Wmissing-braces])
462 CFLAGS=-Wmissing-braces
463 AC_TRY_COMPILE(,, aros_missing_braces="yes", aros_missing_braces="no")
464 AC_MSG_RESULT($aros_missing_braces)
465 if test "x-$aros_missing_braces" = "x-yes" ; then
466     aros_cflags_missing_braces=-Wno-missing-braces
469 AC_MSG_CHECKING([whether ${CC} accepts -Wconversion-null])
470 CFLAGS=-Wconversion-null
471 AC_TRY_COMPILE(,, aros_conversion_null="yes", aros_conversion_null="no")
472 AC_MSG_RESULT($aros_conversion_null)
473 if test "x-$aros_conversion_null" = "x-yes" ; then
474     aros_cflags_conversion_null=-Wno-conversion-null
477 AC_MSG_CHECKING([whether ${CC} accepts -Wnarrowing])
478 CFLAGS=-Wnarrowing
479 AC_TRY_COMPILE(,, aros_narrowing="yes", aros_narrowing="no")
480 AC_MSG_RESULT($aros_narrowing)
481 if test "x-$aros_narrowing" = "x-yes" ; then
482     aros_cflags_narrowing=-Wno-narrowing
485 AC_MSG_CHECKING([whether ${CC} accepts -Wvolatile-register-var])
486 CFLAGS=-Wvolatile-register-var
487 AC_TRY_COMPILE(,, aros_volatile_register_var="yes", aros_volatile_register_var="no")
488 AC_MSG_RESULT($aros_volatile_register_var)
489 if test "x-$aros_volatile_register_var" = "x-yes" ; then
490     aros_cflags_volatile_register_var=-Wno-volatile-register-var
493 AC_SUBST(aros_cflags_unused_but_set_variable)
494 AC_SUBST(aros_cflags_strict_aliasing)
495 AC_SUBST(aros_cflags_array_bounds)
496 AC_SUBST(aros_cflags_enum_compare)
497 AC_SUBST(aros_cflags_strict_prototypes)
498 AC_SUBST(aros_cflags_strict_overflow)
499 AC_SUBST(aros_cflags_format_security)
500 AC_SUBST(aros_cflags_misleading_indentation)
501 AC_SUBST(aros_cflags_nonnull_compare)
502 AC_SUBST(aros_cflags_unused)
503 AC_SUBST(aros_cflags_unused_value)
504 AC_SUBST(aros_cflags_unused_variable)
505 AC_SUBST(aros_cflags_unused_function)
506 AC_SUBST(aros_cflags_uninitialized)
507 AC_SUBST(aros_cflags_maybe_uninitialized)
508 AC_SUBST(aros_cflags_implicit_function_declaration)
509 AC_SUBST(aros_cflags_format)
510 AC_SUBST(aros_cflags_parentheses)
511 AC_SUBST(aros_cflags_char_subscripts)
512 AC_SUBST(aros_cflags_endif_labels)
513 AC_SUBST(aros_cflags_format_contains_nul)
514 AC_SUBST(aros_cflags_implicit_int)
515 AC_SUBST(aros_cflags_aggressive_loop_optimizations)
516 AC_SUBST(aros_cflags_cpp)
517 AC_SUBST(aros_cflags_switch)
518 AC_SUBST(aros_cflags_discarded_qualifiers)
519 AC_SUBST(aros_cflags_sequence_point)
520 AC_SUBST(aros_cflags_unknown_pragmas)
521 AC_SUBST(aros_cflags_discarded_array_qualifiers)
522 AC_SUBST(aros_cflags_int_conversion)
523 AC_SUBST(aros_cflags_int_to_pointer_cast)
524 AC_SUBST(aros_cflags_pointer_to_int_cast)
525 AC_SUBST(aros_cflags_unused_const_variable)
526 AC_SUBST(aros_cflags_write_strings)
527 AC_SUBST(aros_cflags_comment)
528 AC_SUBST(aros_cflags_incompatible_pointer_types)
529 AC_SUBST(aros_cflags_bool_compare)
530 AC_SUBST(aros_cflags_logical_not_parentheses)
531 AC_SUBST(aros_cflags_pointer_sign)
532 AC_SUBST(aros_cflags_shift_overflow)
533 AC_SUBST(aros_cflags_frame_address)
534 AC_SUBST(aros_cflags_deprecated_declarations)
535 AC_SUBST(aros_cflags_sign_compare)
536 AC_SUBST(aros_cflags_attributes)
537 AC_SUBST(aros_cflags_overflow)
538 AC_SUBST(aros_cflags_unused_local_typedefs)
539 AC_SUBST(aros_cflags_missing_braces)
540 AC_SUBST(aros_cflags_conversion_null)
541 AC_SUBST(aros_cflags_narrowing)
542 AC_SUBST(aros_cflags_volatile_register_var)
544 AC_CONFIG_FILES(
545     ${aros_targetcfg_dir}/compiler.cfg:config/compiler.cfg.in
548 AC_OUTPUT