Updated. Searching for files and executing them by
[AROS.git] / features.in
blobf9123cfee68b3906f1827dde3ba5cf185f116076
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
92 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-but-set-variable])
93 CFLAGS=-Wunused-but-set-variable
94 AC_TRY_COMPILE(,, aros_unused_but_set_variable="yes", aros_unused_but_set_variable="no")
95 AC_MSG_RESULT($aros_unused_but_set_variable)
96 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
97     aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
100 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-aliasing])
101 CFLAGS=-Wstrict-aliasing
102 AC_TRY_COMPILE(,, aros_strict_aliasing="yes", aros_strict_aliasing="no")
103 AC_MSG_RESULT($aros_strict_aliasing)
104 if test "x-$aros_strict_aliasing" = "x-yes" ; then
105     aros_cflags_strict_aliasing=-Wno-strict-aliasing
108 AC_MSG_CHECKING([whether ${CC} accepts -Warray-bounds])
109 CFLAGS=-Warray-bounds
110 AC_TRY_COMPILE(,, aros_array_bounds="yes", aros_array_bounds="no")
111 AC_MSG_RESULT($aros_array_bounds)
112 if test "x-$aros_array_bounds" = "x-yes" ; then
113     aros_cflags_array_bounds=-Wno-array-bounds
116 AC_MSG_CHECKING([whether ${CC} accepts -Wenum-compare])
117 CFLAGS=-Wenum-compare
118 AC_TRY_COMPILE(,, aros_enum_compare="yes", aros_enum_compare="no")
119 AC_MSG_RESULT($aros_enum_compare)
120 if test "x-$aros_enum_compare" = "x-yes" ; then
121     aros_cflags_enum_compare=-Wno-enum-compare
124 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-prototypes])
125 CFLAGS=-Wstrict-prototypes
126 AC_TRY_COMPILE(,, aros_strict_prototypes="yes", aros_strict_prototypes="no")
127 AC_MSG_RESULT($aros_strict_prototypes)
128 if test "x-$aros_strict_prototypes" = "x-yes" ; then
129     aros_cflags_strict_prototypes=-Wno-strict-prototypes
132 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-overflow])
133 CFLAGS=-Wstrict-overflow
134 AC_TRY_COMPILE(,, aros_strict_overflow="yes", aros_strict_overflow="no")
135 AC_MSG_RESULT($aros_strict_overflow)
136 if test "x-$aros_strict_overflow" = "x-yes" ; then
137     aros_cflags_strict_overflow=-Wno-strict-overflow
140 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-security])
141 CFLAGS=-Wformat-security
142 AC_TRY_COMPILE(,, aros_format_security="yes", aros_format_security="no")
143 AC_MSG_RESULT($aros_format_security)
144 if test "x-$aros_format_security" = "x-yes" ; then
145     aros_cflags_format_security=-Wno-format-security
148 AC_MSG_CHECKING([whether ${CC} accepts -Wmisleading-indentation])
149 CFLAGS=-Wmisleading-indentation
150 AC_TRY_COMPILE(,, aros_misleading_indentation="yes", aros_misleading_indentation="no")
151 AC_MSG_RESULT($aros_misleading_indentation)
152 if test "x-$aros_misleading_indentation" = "x-yes" ; then
153     aros_cflags_misleading_indentation=-Wno-misleading-indentation
156 AC_MSG_CHECKING([whether ${CC} accepts -Wnonnull-compare])
157 CFLAGS=-Wnonnull-compare
158 AC_TRY_COMPILE(,, aros_nonnull_compare="yes", aros_nonnull_compare="no")
159 AC_MSG_RESULT($aros_nonnull_compare)
160 if test "x-$aros_nonnull_compare" = "x-yes" ; then
161     aros_cflags_nonnull_compare=-Wno-nonnull-compare
164 AC_MSG_CHECKING([whether ${CC} accepts -Wunused])
165 CFLAGS=-Wunused
166 AC_TRY_COMPILE(,, aros_unused="yes", aros_unused="no")
167 AC_MSG_RESULT($aros_unused)
168 if test "x-$aros_unused" = "x-yes" ; then
169     aros_cflags_unused=-Wno-unused
172 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-value])
173 CFLAGS=-Wunused-value
174 AC_TRY_COMPILE(,, aros_unused_value="yes", aros_unused_value="no")
175 AC_MSG_RESULT($aros_unused_value)
176 if test "x-$aros_unused_value" = "x-yes" ; then
177     aros_cflags_unused_value=-Wno-unused-value
180 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-variable])
181 CFLAGS=-Wunused-variable
182 AC_TRY_COMPILE(,, aros_unused_variable="yes", aros_unused_variable="no")
183 AC_MSG_RESULT($aros_unused_variable)
184 if test "x-$aros_unused_variable" = "x-yes" ; then
185     aros_cflags_unused_variable=-Wno-unused-variable
188 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-function])
189 CFLAGS=-Wunused-function
190 AC_TRY_COMPILE(,, aros_unused_function="yes", aros_unused_function="no")
191 AC_MSG_RESULT($aros_unused_function)
192 if test "x-$aros_unused_function" = "x-yes" ; then
193     aros_cflags_unused_function=-Wno-unused-function
196 AC_MSG_CHECKING([whether ${CC} accepts -Wuninitialized])
197 CFLAGS=-Wuninitialized
198 AC_TRY_COMPILE(,, aros_uninitialized="yes", aros_uninitialized="no")
199 AC_MSG_RESULT($aros_uninitialized)
200 if test "x-$aros_uninitialized" = "x-yes" ; then
201     aros_cflags_uninitialized=-Wno-uninitialized
204 AC_MSG_CHECKING([whether ${CC} accepts -Wmaybe-uninitialized])
205 CFLAGS=-Wmaybe-uninitialized
206 AC_TRY_COMPILE(,, aros_maybe_uninitialized="yes", aros_maybe_uninitialized="no")
207 AC_MSG_RESULT($aros_maybe_uninitialized)
208 if test "x-$aros_maybe_uninitialized" = "x-yes" ; then
209     aros_cflags_maybe_uninitialized=-Wno-maybe-uninitialized
212 AC_MSG_CHECKING([whether ${CC} accepts -Wimplicit-function-declaration])
213 CFLAGS=-Wimplicit-function-declaration
214 AC_TRY_COMPILE(,, aros_implicit_function_declaration="yes", aros_implicit_function_declaration="no")
215 AC_MSG_RESULT($aros_implicit_function_declaration)
216 if test "x-$aros_implicit_function_declaration" = "x-yes" ; then
217     aros_cflags_implicit_function_declaration=-Wno-implicit-function-declaration
220 AC_MSG_CHECKING([whether ${CC} accepts -Wformat])
221 CFLAGS=-Wformat
222 AC_TRY_COMPILE(,, aros_format="yes", aros_format="no")
223 AC_MSG_RESULT($aros_format)
224 if test "x-$aros_format" = "x-yes" ; then
225     aros_cflags_format=-Wno-format
228 AC_MSG_CHECKING([whether ${CC} accepts -Wparentheses])
229 CFLAGS=-Wparentheses
230 AC_TRY_COMPILE(,, aros_parentheses="yes", aros_parentheses="no")
231 AC_MSG_RESULT($aros_parentheses)
232 if test "x-$aros_parentheses" = "x-yes" ; then
233     aros_cflags_parentheses=-Wno-parentheses
236 AC_MSG_CHECKING([whether ${CC} accepts -Wchar-subscripts])
237 CFLAGS=-Wchar-subscripts
238 AC_TRY_COMPILE(,, aros_char_subscripts="yes", aros_char_subscripts="no")
239 AC_MSG_RESULT($aros_char_subscripts)
240 if test "x-$aros_char_subscripts" = "x-yes" ; then
241     aros_cflags_char_subscripts=-Wno-char-subscripts
244 AC_MSG_CHECKING([whether ${CC} accepts -Wendif-labels])
245 CFLAGS=-Wendif-labels
246 AC_TRY_COMPILE(,, aros_endif_labels="yes", aros_endif_labels="no")
247 AC_MSG_RESULT($aros_endif_labels)
248 if test "x-$aros_endif_labels" = "x-yes" ; then
249     aros_cflags_endif_labels=-Wno-endif-labels
252 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-contains-nul])
253 CFLAGS=-Wformat-contains-nul
254 AC_TRY_COMPILE(,, aros_format_contains_nul="yes", aros_format_contains_nul="no")
255 AC_MSG_RESULT($aros_format_contains_nul)
256 if test "x-$aros_format_contains_nul" = "x-yes" ; then
257     aros_cflags_format_contains_nul=-Wno-format-contains-nul
260 AC_MSG_CHECKING([whether ${CC} accepts -Wimplicit-int])
261 CFLAGS=-Wimplicit-int
262 AC_TRY_COMPILE(,, aros_implicit_int="yes", aros_implicit_int="no")
263 AC_MSG_RESULT($aros_implicit_int)
264 if test "x-$aros_implicit_int" = "x-yes" ; then
265     aros_cflags_implicit_int=-Wno-implicit-int
268 AC_MSG_CHECKING([whether ${CC} accepts -Waggressive-loop-optimizations])
269 CFLAGS=-Waggressive-loop-optimizations
270 AC_TRY_COMPILE(,, aros_aggressive_loop_optimizations="yes", aros_aggressive_loop_optimizations="no")
271 AC_MSG_RESULT($aros_aggressive_loop_optimizations)
272 if test "x-$aros_aggressive_loop_optimizations" = "x-yes" ; then
273     aros_cflags_aggressive_loop_optimizations=-Wno-aggressive-loop-optimizations
276 AC_MSG_CHECKING([whether ${CC} accepts -Wcpp])
277 CFLAGS=-Wcpp
278 AC_TRY_COMPILE(,, aros_cpp="yes", aros_cpp="no")
279 AC_MSG_RESULT($aros_cpp)
280 if test "x-$aros_cpp" = "x-yes" ; then
281     aros_cflags_cpp=-Wno-cpp
284 AC_MSG_CHECKING([whether ${CC} accepts -Wswitch])
285 CFLAGS=-Wswitch
286 AC_TRY_COMPILE(,, aros_switch="yes", aros_switch="no")
287 AC_MSG_RESULT($aros_switch)
288 if test "x-$aros_switch" = "x-yes" ; then
289     aros_cflags_switch=-Wno-switch
292 AC_MSG_CHECKING([whether ${CC} accepts -Wdiscarded-qualifiers])
293 CFLAGS=-Wdiscarded-qualifiers
294 AC_TRY_COMPILE(,, aros_discarded_qualifiers="yes", aros_discarded_qualifiers="no")
295 AC_MSG_RESULT($aros_discarded_qualifiers)
296 if test "x-$aros_discarded_qualifiers" = "x-yes" ; then
297     aros_cflags_discarded_qualifiers=-Wno-discarded-qualifiers
300 AC_MSG_CHECKING([whether ${CC} accepts -Wsequence-point])
301 CFLAGS=-Wsequence-point
302 AC_TRY_COMPILE(,, aros_sequence_point="yes", aros_sequence_point="no")
303 AC_MSG_RESULT($aros_sequence_point)
304 if test "x-$aros_sequence_point" = "x-yes" ; then
305     aros_cflags_sequence_point=-Wno-sequence-point
308 AC_MSG_CHECKING([whether ${CC} accepts -Wunknown-pragmas])
309 CFLAGS=-Wunknown-pragmas
310 AC_TRY_COMPILE(,, aros_unknown_pragmas="yes", aros_unknown_pragmas="no")
311 AC_MSG_RESULT($aros_unknown_pragmas)
312 if test "x-$aros_unknown_pragmas" = "x-yes" ; then
313     aros_cflags_unknown_pragmas=-Wno-unknown-pragmas
316 AC_MSG_CHECKING([whether ${CC} accepts -Wdiscarded-array-qualifiers])
317 CFLAGS=-Wdiscarded-array-qualifiers
318 AC_TRY_COMPILE(,, aros_discarded_array_qualifiers="yes", aros_discarded_array_qualifiers="no")
319 AC_MSG_RESULT($aros_discarded_array_qualifiers)
320 if test "x-$aros_discarded_array_qualifiers" = "x-yes" ; then
321     aros_cflags_discarded_array_qualifiers=-Wno-discarded-array-qualifiers
324 AC_MSG_CHECKING([whether ${CC} accepts -Wint-conversion])
325 CFLAGS=-Wint-conversion
326 AC_TRY_COMPILE(,, aros_int_conversion="yes", aros_int_conversion="no")
327 AC_MSG_RESULT($aros_int_conversion)
328 if test "x-$aros_int_conversion" = "x-yes" ; then
329     aros_cflags_int_conversion=-Wno-int-conversion
332 AC_MSG_CHECKING([whether ${CC} accepts -Wint-to-pointer-cast])
333 CFLAGS=-Wint-to-pointer-cast
334 AC_TRY_COMPILE(,, aros_int_to_pointer_cast="yes", aros_int_to_pointer_cast="no")
335 AC_MSG_RESULT($aros_int_to_pointer_cast)
336 if test "x-$aros_int_to_pointer_cast" = "x-yes" ; then
337     aros_cflags_int_to_pointer_cast=-Wno-int-to-pointer-cast
340 AC_MSG_CHECKING([whether ${CC} accepts -Wpointer-to-int-cast])
341 CFLAGS=-Wpointer-to-int-cast
342 AC_TRY_COMPILE(,, aros_pointer_to_int_cast="yes", aros_pointer_to_int_cast="no")
343 AC_MSG_RESULT($aros_pointer_to_int_cast)
344 if test "x-$aros_pointer_to_int_cast" = "x-yes" ; then
345     aros_cflags_pointer_to_int_cast=-Wno-pointer-to-int-cast
348 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-const-variable])
349 CFLAGS=-Wunused-const-variable
350 AC_TRY_COMPILE(,, aros_unused_const_variable="yes", aros_unused_const_variable="no")
351 AC_MSG_RESULT($aros_unused_const_variable)
352 if test "x-$aros_unused_const_variable" = "x-yes" ; then
353     aros_cflags_unused_const_variable=-Wno-unused-const-variable
356 AC_MSG_CHECKING([whether ${CC} accepts -Wwrite-strings])
357 CFLAGS=-Wwrite-strings
358 AC_TRY_COMPILE(,, aros_write_strings="yes", aros_write_strings="no")
359 AC_MSG_RESULT($aros_write_strings)
360 if test "x-$aros_write_strings" = "x-yes" ; then
361     aros_cflags_write_strings=-Wno-write-strings
364 AC_MSG_CHECKING([whether ${CC} accepts -Wcomment])
365 CFLAGS=-Wcomment
366 AC_TRY_COMPILE(,, aros_comment="yes", aros_comment="no")
367 AC_MSG_RESULT($aros_comment)
368 if test "x-$aros_comment" = "x-yes" ; then
369     aros_cflags_comment=-Wno-comment
372 AC_MSG_CHECKING([whether ${CC} accepts -Wincompatible-pointer-types])
373 CFLAGS=-Wincompatible-pointer-types
374 AC_TRY_COMPILE(,, aros_incompatible_pointer_types="yes", aros_incompatible_pointer_types="no")
375 AC_MSG_RESULT($aros_incompatible_pointer_types)
376 if test "x-$aros_incompatible_pointer_types" = "x-yes" ; then
377     aros_cflags_incompatible_pointer_types=-Wno-incompatible-pointer-types
380 AC_MSG_CHECKING([whether ${CC} accepts -Wbool-compare])
381 CFLAGS=-Wbool-compare
382 AC_TRY_COMPILE(,, aros_bool_compare="yes", aros_bool_compare="no")
383 AC_MSG_RESULT($aros_bool_compare)
384 if test "x-$aros_bool_compare" = "x-yes" ; then
385     aros_cflags_bool_compare=-Wno-bool-compare
388 AC_MSG_CHECKING([whether ${CC} accepts -Wlogical-not-parentheses])
389 CFLAGS=-Wlogical-not-parentheses
390 AC_TRY_COMPILE(,, aros_logical_not_parentheses="yes", aros_logical_not_parentheses="no")
391 AC_MSG_RESULT($aros_logical_not_parentheses)
392 if test "x-$aros_logical_not_parentheses" = "x-yes" ; then
393     aros_cflags_logical_not_parentheses=-Wno-logical-not-parentheses
396 AC_MSG_CHECKING([whether ${CC} accepts -Wpointer-sign])
397 CFLAGS=-Wpointer-sign
398 AC_TRY_COMPILE(,, aros_pointer_sign="yes", aros_pointer_sign="no")
399 AC_MSG_RESULT($aros_pointer_sign)
400 if test "x-$aros_pointer_sign" = "x-yes" ; then
401     aros_cflags_pointer_sign=-Wno-pointer-sign
404 AC_MSG_CHECKING([whether ${CC} accepts -Wshift-overflow])
405 CFLAGS=-Wshift-overflow
406 AC_TRY_COMPILE(,, aros_shift_overflow="yes", aros_shift_overflow="no")
407 AC_MSG_RESULT($aros_shift_overflow)
408 if test "x-$aros_shift_overflow" = "x-yes" ; then
409     aros_cflags_shift_overflow=-Wno-shift-overflow
412 AC_MSG_CHECKING([whether ${CC} accepts -Wframe-address])
413 CFLAGS=-Wframe-address
414 AC_TRY_COMPILE(,, aros_frame_address="yes", aros_frame_address="no")
415 AC_MSG_RESULT($aros_frame_address)
416 if test "x-$aros_frame_address" = "x-yes" ; then
417     aros_cflags_frame_address=-Wno-frame-address
420 AC_MSG_CHECKING([whether ${CC} accepts -Wdeprecated-declarations])
421 CFLAGS=-Wdeprecated-declarations
422 AC_TRY_COMPILE(,, aros_deprecated_declarations="yes", aros_deprecated_declarations="no")
423 AC_MSG_RESULT($aros_deprecated_declarations)
424 if test "x-$aros_deprecated_declarations" = "x-yes" ; then
425     aros_cflags_deprecated_declarations=-Wno-deprecated-declarations
428 AC_MSG_CHECKING([whether ${CC} accepts -Wsign-compare])
429 CFLAGS=-Wsign-compare
430 AC_TRY_COMPILE(,, aros_sign_compare="yes", aros_sign_compare="no")
431 AC_MSG_RESULT($aros_sign_compare)
432 if test "x-$aros_sign_compare" = "x-yes" ; then
433     aros_cflags_sign_compare=-Wno-sign-compare
436 AC_MSG_CHECKING([whether ${CC} accepts -Wattributes])
437 CFLAGS=-Wattributes
438 AC_TRY_COMPILE(,, aros_attributes="yes", aros_attributes="no")
439 AC_MSG_RESULT($aros_attributes)
440 if test "x-$aros_attributes" = "x-yes" ; then
441     aros_cflags_attributes=-Wno-attributes
444 AC_MSG_CHECKING([whether ${CC} accepts -Woverflow])
445 CFLAGS=-Woverflow
446 AC_TRY_COMPILE(,, aros_overflow="yes", aros_overflow="no")
447 AC_MSG_RESULT($aros_overflow)
448 if test "x-$aros_overflow" = "x-yes" ; then
449     aros_cflags_overflow=-Wno-overflow
452 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-local-typedefs])
453 CFLAGS=-Wunused-local-typedefs
454 AC_TRY_COMPILE(,, aros_unused_local_typedefs="yes", aros_unused_local_typedefs="no")
455 AC_MSG_RESULT($aros_unused_local_typedefs)
456 if test "x-$aros_unused_local_typedefs" = "x-yes" ; then
457     aros_cflags_unused_local_typedefs=-Wno-unused-local-typedefs
460 AC_MSG_CHECKING([whether ${CC} accepts -Wmissing-braces])
461 CFLAGS=-Wmissing-braces
462 AC_TRY_COMPILE(,, aros_missing_braces="yes", aros_missing_braces="no")
463 AC_MSG_RESULT($aros_missing_braces)
464 if test "x-$aros_missing_braces" = "x-yes" ; then
465     aros_cflags_missing_braces=-Wno-missing-braces
468 AC_MSG_CHECKING([whether ${CC} accepts -Wconversion-null])
469 CFLAGS=-Wconversion-null
470 AC_TRY_COMPILE(,, aros_conversion_null="yes", aros_conversion_null="no")
471 AC_MSG_RESULT($aros_conversion_null)
472 if test "x-$aros_conversion_null" = "x-yes" ; then
473     aros_cflags_conversion_null=-Wno-conversion-null
476 AC_MSG_CHECKING([whether ${CC} accepts -Wnarrowing])
477 CFLAGS=-Wnarrowing
478 AC_TRY_COMPILE(,, aros_narrowing="yes", aros_narrowing="no")
479 AC_MSG_RESULT($aros_narrowing)
480 if test "x-$aros_narrowing" = "x-yes" ; then
481     aros_cflags_narrowing=-Wno-narrowing
484 AC_SUBST(aros_cflags_unused_but_set_variable)
485 AC_SUBST(aros_cflags_strict_aliasing)
486 AC_SUBST(aros_cflags_array_bounds)
487 AC_SUBST(aros_cflags_enum_compare)
488 AC_SUBST(aros_cflags_strict_prototypes)
489 AC_SUBST(aros_cflags_strict_overflow)
490 AC_SUBST(aros_cflags_format_security)
491 AC_SUBST(aros_cflags_misleading_indentation)
492 AC_SUBST(aros_cflags_nonnull_compare)
493 AC_SUBST(aros_cflags_unused)
494 AC_SUBST(aros_cflags_unused_value)
495 AC_SUBST(aros_cflags_unused_variable)
496 AC_SUBST(aros_cflags_unused_function)
497 AC_SUBST(aros_cflags_uninitialized)
498 AC_SUBST(aros_cflags_maybe_uninitialized)
499 AC_SUBST(aros_cflags_implicit_function_declaration)
500 AC_SUBST(aros_cflags_format)
501 AC_SUBST(aros_cflags_parentheses)
502 AC_SUBST(aros_cflags_char_subscripts)
503 AC_SUBST(aros_cflags_endif_labels)
504 AC_SUBST(aros_cflags_format_contains_nul)
505 AC_SUBST(aros_cflags_implicit_int)
506 AC_SUBST(aros_cflags_aggressive_loop_optimizations)
507 AC_SUBST(aros_cflags_cpp)
508 AC_SUBST(aros_cflags_switch)
509 AC_SUBST(aros_cflags_discarded_qualifiers)
510 AC_SUBST(aros_cflags_sequence_point)
511 AC_SUBST(aros_cflags_unknown_pragmas)
512 AC_SUBST(aros_cflags_discarded_array_qualifiers)
513 AC_SUBST(aros_cflags_int_conversion)
514 AC_SUBST(aros_cflags_int_to_pointer_cast)
515 AC_SUBST(aros_cflags_pointer_to_int_cast)
516 AC_SUBST(aros_cflags_unused_const_variable)
517 AC_SUBST(aros_cflags_write_strings)
518 AC_SUBST(aros_cflags_comment)
519 AC_SUBST(aros_cflags_incompatible_pointer_types)
520 AC_SUBST(aros_cflags_bool_compare)
521 AC_SUBST(aros_cflags_logical_not_parentheses)
522 AC_SUBST(aros_cflags_pointer_sign)
523 AC_SUBST(aros_cflags_shift_overflow)
524 AC_SUBST(aros_cflags_frame_address)
525 AC_SUBST(aros_cflags_deprecated_declarations)
526 AC_SUBST(aros_cflags_sign_compare)
527 AC_SUBST(aros_cflags_attributes)
528 AC_SUBST(aros_cflags_overflow)
529 AC_SUBST(aros_cflags_unused_local_typedefs)
530 AC_SUBST(aros_cflags_missing_braces)
531 AC_SUBST(aros_cflags_conversion_null)
532 AC_SUBST(aros_cflags_narrowing)
534 AC_CONFIG_FILES(
535     ${aros_targetcfg_dir}/compiler.cfg:config/compiler.cfg.in
538 AC_OUTPUT