Better MUI compatibility: don't use MUIV_Window_TopEdge_Delta, which is
[AROS.git] / config / features.in
blob0d336316555b4809ab5ff47980ea5c0f1a2054fc
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 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 #  -funroll-loops
50 AC_MSG_CHECKING([whether ${CC} accepts -fexceptions])
51 CFLAGS=-fexceptions
52 AC_TRY_COMPILE(,, aros_exceptions="yes", aros_exceptions="no")
53 AC_MSG_RESULT($aros_exceptions)
54 if test "x-$aros_exceptions" = "x-yes" ; then
55     aros_cflags_exceptions=-fexceptions
58 AC_MSG_CHECKING([whether ${CC} accepts -fpermissive])
59 CFLAGS=-fpermissive
60 AC_TRY_COMPILE(,, aros_permissive="yes", aros_permissive="no")
61 AC_MSG_RESULT($aros_permissive)
62 if test "x-$aros_permissive" = "x-yes" ; then
63     aros_cflags_permissive=-fpermissive
66 AC_MSG_CHECKING([whether ${CC} accepts -ffast-math])
67 CFLAGS=-ffast-math
68 AC_TRY_COMPILE(,, aros_fast_math="yes", aros_fast_math="no")
69 AC_MSG_RESULT($aros_fast_math)
70 if test "x-$aros_fast_math" = "x-yes" ; then
71     aros_cflags_fast_math=-ffast-math
74 AC_MSG_CHECKING([whether ${CC} accepts -fno-builtin-floor])
75 CFLAGS=-fno-builtin-floor
76 AC_TRY_COMPILE(,, aros_no_builtin_floor="yes", aros_no_builtin_floor="no")
77 AC_MSG_RESULT($aros_no_builtin_floor)
78 if test "x-$aros_no_builtin_floor" = "x-yes" ; then
79     aros_cflags_no_builtin_floor=-fno-builtin-floor
82 AC_MSG_CHECKING([whether ${CC} accepts -flto])
83 CFLAGS=-flto
84 AC_TRY_COMPILE(,, aros_lto="yes", aros_lto="no")
85 AC_MSG_RESULT($aros_lto)
86 if test "x-$aros_lto" = "x-yes" ; then
87     aros_cflags_lto=-flto
88     aros_cflags_nolto=-fno-lto
89     
90     AC_MSG_CHECKING([whether ${CC} accepts -fwhole-program])
91     CFLAGS=-fwhole-program
92     AC_TRY_COMPILE(,, aros_whole_program="yes", aros_whole_program="no")
93     AC_MSG_RESULT($aros_whole_program)
94     if test "x-$aros_whole_program" = "x-yes" ; then
95         aros_cflags_whole_program=-fwhole-program
96     fi
97     
98     AC_MSG_CHECKING([whether ${CC} accepts -floop-block])
99     CFLAGS=-floop-block
100     AC_TRY_COMPILE(,, aros_loop_block="yes", aros_loop_block="no")
101     AC_MSG_RESULT($aros_loop_block)
102     if test "x-$aros_loop_block" = "x-yes" ; then
103         aros_cflags_loop_block=-floop-block
104     fi
105     
106     AC_MSG_CHECKING([whether ${CC} accepts -floop-interchange])
107     CFLAGS=-floop-interchange
108     AC_TRY_COMPILE(,, aros_loop_interchange="yes", aros_loop_interchange="no")
109     AC_MSG_RESULT($aros_loop_interchange)
110     if test "x-$aros_loop_interchange" = "x-yes" ; then
111         aros_cflags_loop_interchange=-floop-interchange
112     fi
113     
114     AC_MSG_CHECKING([whether ${CC} accepts -floop-strip-mine])
115     CFLAGS=-floop-strip-mine
116     AC_TRY_COMPILE(,, aros_loop_strip_mine="yes", aros_loop_strip_mine="no")
117     AC_MSG_RESULT($aros_loop_strip_mine)
118     if test "x-$aros_loop_strip_mine" = "x-yes" ; then
119         aros_cflags_loop_strip_mine=-floop-strip-mine
120     fi
123 AC_MSG_CHECKING([whether ${CC} accepts -fpeel-loops])
124 CFLAGS=-fpeel-loops
125 AC_TRY_COMPILE(,, aros_peel_loops="yes", aros_peel_loops="no")
126 AC_MSG_RESULT($aros_peel_loops)
127 if test "x-$aros_peel_loops" = "x-yes" ; then
128     aros_cflags_peel_loops=-fpeel-loops
131 AC_MSG_CHECKING([whether ${CC} accepts -funroll-loops])
132 CFLAGS=-funroll-loops
133 AC_TRY_COMPILE(,, aros_unroll_loops="yes", aros_unroll_loops="no")
134 AC_MSG_RESULT($aros_unroll_loops)
135 if test "x-$aros_unroll_loops" = "x-yes" ; then
136     aros_cflags_unroll_loops=-funroll-loops
139 AC_MSG_CHECKING([whether ${CC} accepts -fstrict-aliasing])
140 CFLAGS=-fstrict-aliasing
141 AC_TRY_COMPILE(,, aros_strict_aliasing="yes", aros_strict_aliasing="no")
142 AC_MSG_RESULT($aros_strict_aliasing)
143 if test "x-$aros_strict_aliasing" = "x-yes" ; then
144     aros_cflags_strictaliasing=-fstrict-aliasing
145     aros_cflags_nostrictaliasing=-fno-strict-aliasing
148 AC_MSG_CHECKING([whether ${CC} accepts -iquote])
149 CFLAGS="-iquote."
150 AC_TRY_COMPILE(,, has_iquote="yes", has_iquote="no")
151 AC_MSG_RESULT($has_iquote)
152 if test "x-$has_iquote" = "x-yes" ; then
153     aros_cflags_iquote=-iquote
154     aros_cflags_iquote_end=
155 else
156     aros_cflags_iquote=-I
157     aros_cflags_iquote_end=-I-
160 #-----------------------------------------------------------------------------
162 # Check if the target compiler supports some options:
163 #  -mno-red-zone
165 AC_MSG_CHECKING([whether ${CC} accepts -mno-red-zone])
166 CFLAGS=-mno-red-zone
167 AC_TRY_COMPILE(,, aros_no_red_zone="yes", aros_no_red_zone="no")
168 AC_MSG_RESULT($aros_no_red_zone)
169 if test "x-$aros_no_red_zone" = "x-yes" ; then
170     aros_cflags_no_red_zone=-mno-red-zone
173 #-----------------------------------------------------------------------------
175 # Check if the target compiler supports some options used for de-linting:
176 #  -Werror
177 #  -Wunused-command-line-argument
178 #  -Wunknown-warning-option
179 #  -Wunused-but-set-variable
180 #  -Wstrict-aliasing
181 #  -Warray-bounds
182 #  -Wenum-compare
183 #  -Wstrict-prototypes
184 #  -Wstrict-overflow
185 #  -Wformat-security
186 #  -Wmisleading-indentation
187 #  -Wnonnull-compare
188 #  -Wunused
189 #  -Wunused-label
190 #  -Wunused-value
191 #  -Wunused-variable
192 #  -Wunused-function
193 #  -Wunused-parameter
194 #  -Wuninitialized
195 #  -Wmaybe-uninitialized
196 #  -Wimplicit-function-declaration
197 #  -Wformat
198 #  -Wparentheses
199 #  -Wchar-subscripts
200 #  -Wendif-labels
201 #  -Wformat-contains-nul
202 #  -Wimplicit-int
203 #  -Waggressive-loop-optimizations
204 #  -Wcpp
205 #  -Wswitch
206 #  -Wdiscarded-qualifiers
207 #  -Wsequence-point
208 #  -Wunknown-pragmas
209 #  -Wdiscarded-array-qualifiers
210 #  -Wint-conversion
211 #  -Wint-to-pointer-cast
212 #  -Wpointer-to-int-cast
213 #  -Wunused-const-variable
214 #  -Wwrite-strings 
215 #  -Wcomment
216 #  -Wincompatible-pointer-types
217 #  -Wbool-compare
218 #  -Wlogical-not-parentheses
219 #  -Wpointer-sign
220 #  -Wshift-overflow
221 #  -Wframe-address
222 #  -Wdeprecated-declarations
223 #  -Wsign-compare
224 #  -Wattributes
225 #  -Woverflow
226 #  -Wunused-local-typedefs
227 #  -Wmissing-braces
228 #  -Wconversion-null
229 #  -Wnarrowing
230 #  -Wvolatile-register-var
231 #  -Wsizeof-pointer-memaccess
232 #  -Wreturn-type
233 #  -Wformat-zero-length
234 #  -Wlto-type-mismatch
235 #  -Wtautological-compare
237 AC_MSG_CHECKING([whether ${CC} accepts -Werror])
238 CFLAGS=-Werror
239 AC_TRY_COMPILE(,, aros_error="yes", aros_error="no")
240 AC_MSG_RESULT($aros_error)
241 if test "x-$aros_error" = "x-yes" ; then
242     aros_warnflags_error=-Werror
243     aros_nowarnflags_error=-Wno-error
246 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-command-line-argument])
247 CFLAGS=-Wunused-command-line-argument
248 AC_TRY_COMPILE(,, aros_unused_command_line_argument="yes", aros_unused_command_line_argument="no")
249 AC_MSG_RESULT($aros_unused_command_line_argument)
250 if test "x-$aros_unused_command_line_argument" = "x-yes" ; then
251     aros_warnflags_unused_command_line_argument=-Wunused-command-line-argument
252     aros_nowarnflags_unused_command_line_argument=-Wno-unused-command-line-argument
255 AC_MSG_CHECKING([whether ${CC} accepts -Wunknown-warning-option])
256 CFLAGS=-Wunknown-warning-option
257 AC_TRY_COMPILE(,, aros_unknown_warning_option="yes", aros_unknown_warning_option="no")
258 AC_MSG_RESULT($aros_unknown_warning_option)
259 if test "x-$aros_unknown_warning_option" = "x-yes" ; then
260     aros_warnflags_unknown_warning_option=-Wunknown-warning-option
261     aros_nowarnflags_unknown_warning_option=-Wno-unknown-warning-option
264 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-but-set-variable])
265 CFLAGS=-Wunused-but-set-variable
266 AC_TRY_COMPILE(,, aros_unused_but_set_variable="yes", aros_unused_but_set_variable="no")
267 AC_MSG_RESULT($aros_unused_but_set_variable)
268 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
269     aros_warnflags_unused_but_set_variable=-Wunused-but-set-variable
270     aros_nowarnflags_unused_but_set_variable=-Wno-unused-but-set-variable
273 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-aliasing])
274 CFLAGS=-Wstrict-aliasing
275 AC_TRY_COMPILE(,, aros_strict_aliasing="yes", aros_strict_aliasing="no")
276 AC_MSG_RESULT($aros_strict_aliasing)
277 if test "x-$aros_strict_aliasing" = "x-yes" ; then
278     aros_warnflags_strict_aliasing=-Wstrict-aliasing
279     aros_nowarnflags_strict_aliasing=-Wno-strict-aliasing
282 AC_MSG_CHECKING([whether ${CC} accepts -Warray-bounds])
283 CFLAGS=-Warray-bounds
284 AC_TRY_COMPILE(,, aros_array_bounds="yes", aros_array_bounds="no")
285 AC_MSG_RESULT($aros_array_bounds)
286 if test "x-$aros_array_bounds" = "x-yes" ; then
287     aros_warnflags_array_bounds=-Warray-bounds
288     aros_nowarnflags_array_bounds=-Wno-array-bounds
291 AC_MSG_CHECKING([whether ${CC} accepts -Wenum-compare])
292 CFLAGS=-Wenum-compare
293 AC_TRY_COMPILE(,, aros_enum_compare="yes", aros_enum_compare="no")
294 AC_MSG_RESULT($aros_enum_compare)
295 if test "x-$aros_enum_compare" = "x-yes" ; then
296     aros_warnflags_enum_compare=-Wenum-compare
297     aros_nowarnflags_enum_compare=-Wno-enum-compare
300 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-prototypes])
301 CFLAGS=-Wstrict-prototypes
302 AC_TRY_COMPILE(,, aros_strict_prototypes="yes", aros_strict_prototypes="no")
303 AC_MSG_RESULT($aros_strict_prototypes)
304 if test "x-$aros_strict_prototypes" = "x-yes" ; then
305     aros_warnflags_strict_prototypes=-Wstrict-prototypes
306     aros_nowarnflags_strict_prototypes=-Wno-strict-prototypes
309 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-overflow])
310 CFLAGS=-Wstrict-overflow
311 AC_TRY_COMPILE(,, aros_strict_overflow="yes", aros_strict_overflow="no")
312 AC_MSG_RESULT($aros_strict_overflow)
313 if test "x-$aros_strict_overflow" = "x-yes" ; then
314     aros_warnflags_strict_overflow=-Wstrict-overflow
315     aros_nowarnflags_strict_overflow=-Wno-strict-overflow
318 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-security])
319 CFLAGS=-Wformat-security
320 AC_TRY_COMPILE(,, aros_format_security="yes", aros_format_security="no")
321 AC_MSG_RESULT($aros_format_security)
322 if test "x-$aros_format_security" = "x-yes" ; then
323     aros_warnflags_format_security=-Wformat-security
324     aros_nowarnflags_format_security=-Wno-format-security
327 AC_MSG_CHECKING([whether ${CC} accepts -Wmisleading-indentation])
328 CFLAGS=-Wmisleading-indentation
329 AC_TRY_COMPILE(,, aros_misleading_indentation="yes", aros_misleading_indentation="no")
330 AC_MSG_RESULT($aros_misleading_indentation)
331 if test "x-$aros_misleading_indentation" = "x-yes" ; then
332     aros_warnflags_misleading_indentation=-Wmisleading-indentation
333     aros_nowarnflags_misleading_indentation=-Wno-misleading-indentation
336 AC_MSG_CHECKING([whether ${CC} accepts -Wnonnull-compare])
337 CFLAGS=-Wnonnull-compare
338 AC_TRY_COMPILE(,, aros_nonnull_compare="yes", aros_nonnull_compare="no")
339 AC_MSG_RESULT($aros_nonnull_compare)
340 if test "x-$aros_nonnull_compare" = "x-yes" ; then
341     aros_warnflags_nonnull_compare=-Wnonnull-compare
342     aros_nowarnflags_nonnull_compare=-Wno-nonnull-compare
345 AC_MSG_CHECKING([whether ${CC} accepts -Wunused])
346 CFLAGS=-Wunused
347 AC_TRY_COMPILE(,, aros_unused="yes", aros_unused="no")
348 AC_MSG_RESULT($aros_unused)
349 if test "x-$aros_unused" = "x-yes" ; then
350     aros_warnflags_unused=-Wunused
351     aros_nowarnflags_unused=-Wno-unused
354 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-label])
355 CFLAGS=-Wunused-label
356 AC_TRY_COMPILE(,, aros_unused_label="yes", aros_unused_label="no")
357 AC_MSG_RESULT($aros_unused_label)
358 if test "x-$aros_unused_label" = "x-yes" ; then
359     aros_warnflags_unused_label=-Wunused-label
360     aros_nowarnflags_unused_label=-Wno-unused-label
363 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-value])
364 CFLAGS=-Wunused-value
365 AC_TRY_COMPILE(,, aros_unused_value="yes", aros_unused_value="no")
366 AC_MSG_RESULT($aros_unused_value)
367 if test "x-$aros_unused_value" = "x-yes" ; then
368     aros_warnflags_unused_value=-Wunused-value
369     aros_nowarnflags_unused_value=-Wno-unused-value
372 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-variable])
373 CFLAGS=-Wunused-variable
374 AC_TRY_COMPILE(,, aros_unused_variable="yes", aros_unused_variable="no")
375 AC_MSG_RESULT($aros_unused_variable)
376 if test "x-$aros_unused_variable" = "x-yes" ; then
377     aros_warnflags_unused_variable=-Wunused-variable
378     aros_nowarnflags_unused_variable=-Wno-unused-variable
381 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-function])
382 CFLAGS=-Wunused-function
383 AC_TRY_COMPILE(,, aros_unused_function="yes", aros_unused_function="no")
384 AC_MSG_RESULT($aros_unused_function)
385 if test "x-$aros_unused_function" = "x-yes" ; then
386     aros_warnflags_unused_function=-Wunused-function
387     aros_nowarnflags_unused_function=-Wno-unused-function
390 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-parameter])
391 CFLAGS=-Wunused-parameter
392 AC_TRY_COMPILE(,, aros_unused_parameter="yes", aros_unused_parameter="no")
393 AC_MSG_RESULT($aros_unused_parameter)
394 if test "x-$aros_unused_parameter" = "x-yes" ; then
395     aros_warnflags_unused_parameter=-Wunused-parameter
396     aros_nowarnflags_unused_parameter=-Wno-unused-parameter
399 AC_MSG_CHECKING([whether ${CC} accepts -Wuninitialized])
400 CFLAGS=-Wuninitialized
401 AC_TRY_COMPILE(,, aros_uninitialized="yes", aros_uninitialized="no")
402 AC_MSG_RESULT($aros_uninitialized)
403 if test "x-$aros_uninitialized" = "x-yes" ; then
404     aros_warnflags_uninitialized=-Wuninitialized
405     aros_nowarnflags_uninitialized=-Wno-uninitialized
408 AC_MSG_CHECKING([whether ${CC} accepts -Wmaybe-uninitialized])
409 CFLAGS=-Wmaybe-uninitialized
410 AC_TRY_COMPILE(,, aros_maybe_uninitialized="yes", aros_maybe_uninitialized="no")
411 AC_MSG_RESULT($aros_maybe_uninitialized)
412 if test "x-$aros_maybe_uninitialized" = "x-yes" ; then
413     aros_warnflags_maybe_uninitialized=-Wmaybe-uninitialized
414     aros_nowarnflags_maybe_uninitialized=-Wno-maybe-uninitialized
415 else
416     aros_warnflags_maybe_uninitialized=$aros_warnflags_uninitialized
417     aros_nowarnflags_maybe_uninitialized=$aros_nowarnflags_uninitialized
420 AC_MSG_CHECKING([whether ${CC} accepts -Wimplicit-function-declaration])
421 CFLAGS=-Wimplicit-function-declaration
422 AC_TRY_COMPILE(,, aros_implicit_function_declaration="yes", aros_implicit_function_declaration="no")
423 AC_MSG_RESULT($aros_implicit_function_declaration)
424 if test "x-$aros_implicit_function_declaration" = "x-yes" ; then
425     aros_warnflags_implicit_function_declaration=-Wimplicit-function-declaration
426     aros_nowarnflags_implicit_function_declaration=-Wno-implicit-function-declaration
429 AC_MSG_CHECKING([whether ${CC} accepts -Wformat])
430 CFLAGS=-Wformat
431 AC_TRY_COMPILE(,, aros_format="yes", aros_format="no")
432 AC_MSG_RESULT($aros_format)
433 if test "x-$aros_format" = "x-yes" ; then
434     aros_warnflags_format=-Wformat
435     aros_nowarnflags_format=-Wno-format
438 AC_MSG_CHECKING([whether ${CC} accepts -Wparentheses])
439 CFLAGS=-Wparentheses
440 AC_TRY_COMPILE(,, aros_parentheses="yes", aros_parentheses="no")
441 AC_MSG_RESULT($aros_parentheses)
442 if test "x-$aros_parentheses" = "x-yes" ; then
443     aros_warnflags_parentheses=-Wparentheses
444     aros_nowarnflags_parentheses=-Wno-parentheses
447 AC_MSG_CHECKING([whether ${CC} accepts -Wchar-subscripts])
448 CFLAGS=-Wchar-subscripts
449 AC_TRY_COMPILE(,, aros_char_subscripts="yes", aros_char_subscripts="no")
450 AC_MSG_RESULT($aros_char_subscripts)
451 if test "x-$aros_char_subscripts" = "x-yes" ; then
452     aros_warnflags_char_subscripts=-Wchar-subscripts
453     aros_nowarnflags_char_subscripts=-Wno-char-subscripts
456 AC_MSG_CHECKING([whether ${CC} accepts -Wendif-labels])
457 CFLAGS=-Wendif-labels
458 AC_TRY_COMPILE(,, aros_endif_labels="yes", aros_endif_labels="no")
459 AC_MSG_RESULT($aros_endif_labels)
460 if test "x-$aros_endif_labels" = "x-yes" ; then
461     aros_warnflags_endif_labels=-Wendif-labels
462     aros_nowarnflags_endif_labels=-Wno-endif-labels
465 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-contains-nul])
466 CFLAGS=-Wformat-contains-nul
467 AC_TRY_COMPILE(,, aros_format_contains_nul="yes", aros_format_contains_nul="no")
468 AC_MSG_RESULT($aros_format_contains_nul)
469 if test "x-$aros_format_contains_nul" = "x-yes" ; then
470     aros_warnflags_format_contains_nul=-Wformat-contains-nul
471     aros_nowarnflags_format_contains_nul=-Wno-format-contains-nul
474 AC_MSG_CHECKING([whether ${CC} accepts -Wimplicit-int])
475 CFLAGS=-Wimplicit-int
476 AC_TRY_COMPILE(,, aros_implicit_int="yes", aros_implicit_int="no")
477 AC_MSG_RESULT($aros_implicit_int)
478 if test "x-$aros_implicit_int" = "x-yes" ; then
479     aros_warnflags_implicit_int=-Wimplicit-int
480     aros_nowarnflags_implicit_int=-Wno-implicit-int
483 AC_MSG_CHECKING([whether ${CC} accepts -Waggressive-loop-optimizations])
484 CFLAGS=-Waggressive-loop-optimizations
485 AC_TRY_COMPILE(,, aros_aggressive_loop_optimizations="yes", aros_aggressive_loop_optimizations="no")
486 AC_MSG_RESULT($aros_aggressive_loop_optimizations)
487 if test "x-$aros_aggressive_loop_optimizations" = "x-yes" ; then
488     aros_warnflags_aggressive_loop_optimizations=-Waggressive-loop-optimizations
489     aros_nowarnflags_aggressive_loop_optimizations=-Wno-aggressive-loop-optimizations
492 AC_MSG_CHECKING([whether ${CC} accepts -Wcpp])
493 CFLAGS=-Wcpp
494 AC_TRY_COMPILE(,, aros_cpp="yes", aros_cpp="no")
495 AC_MSG_RESULT($aros_cpp)
496 if test "x-$aros_cpp" = "x-yes" ; then
497     aros_warnflags_cpp=-Wcpp
498     aros_nowarnflags_cpp=-Wno-cpp
501 AC_MSG_CHECKING([whether ${CC} accepts -Wswitch])
502 CFLAGS=-Wswitch
503 AC_TRY_COMPILE(,, aros_switch="yes", aros_switch="no")
504 AC_MSG_RESULT($aros_switch)
505 if test "x-$aros_switch" = "x-yes" ; then
506     aros_warnflags_switch=-Wswitch
507     aros_nowarnflags_switch=-Wno-switch
510 AC_MSG_CHECKING([whether ${CC} accepts -Wdiscarded-qualifiers])
511 CFLAGS=-Wdiscarded-qualifiers
512 AC_TRY_COMPILE(,, aros_discarded_qualifiers="yes", aros_discarded_qualifiers="no")
513 AC_MSG_RESULT($aros_discarded_qualifiers)
514 if test "x-$aros_discarded_qualifiers" = "x-yes" ; then
515     aros_warnflags_discarded_qualifiers=-Wdiscarded-qualifiers
516     aros_nowarnflags_discarded_qualifiers=-Wno-discarded-qualifiers
519 AC_MSG_CHECKING([whether ${CC} accepts -Wsequence-point])
520 CFLAGS=-Wsequence-point
521 AC_TRY_COMPILE(,, aros_sequence_point="yes", aros_sequence_point="no")
522 AC_MSG_RESULT($aros_sequence_point)
523 if test "x-$aros_sequence_point" = "x-yes" ; then
524     aros_warnflags_sequence_point=-Wsequence-point
525     aros_nowarnflags_sequence_point=-Wno-sequence-point
528 AC_MSG_CHECKING([whether ${CC} accepts -Wunknown-pragmas])
529 CFLAGS=-Wunknown-pragmas
530 AC_TRY_COMPILE(,, aros_unknown_pragmas="yes", aros_unknown_pragmas="no")
531 AC_MSG_RESULT($aros_unknown_pragmas)
532 if test "x-$aros_unknown_pragmas" = "x-yes" ; then
533     aros_warnflags_unknown_pragmas=-Wunknown-pragmas
534     aros_nowarnflags_unknown_pragmas=-Wno-unknown-pragmas
537 AC_MSG_CHECKING([whether ${CC} accepts -Wdiscarded-array-qualifiers])
538 CFLAGS=-Wdiscarded-array-qualifiers
539 AC_TRY_COMPILE(,, aros_discarded_array_qualifiers="yes", aros_discarded_array_qualifiers="no")
540 AC_MSG_RESULT($aros_discarded_array_qualifiers)
541 if test "x-$aros_discarded_array_qualifiers" = "x-yes" ; then
542     aros_warnflags_discarded_array_qualifiers=-Wdiscarded-array-qualifiers
543     aros_nowarnflags_discarded_array_qualifiers=-Wno-discarded-array-qualifiers
546 AC_MSG_CHECKING([whether ${CC} accepts -Wint-conversion])
547 CFLAGS=-Wint-conversion
548 AC_TRY_COMPILE(,, aros_int_conversion="yes", aros_int_conversion="no")
549 AC_MSG_RESULT($aros_int_conversion)
550 if test "x-$aros_int_conversion" = "x-yes" ; then
551     aros_warnflags_int_conversion=-Wint-conversion
552     aros_nowarnflags_int_conversion=-Wno-int-conversion
555 AC_MSG_CHECKING([whether ${CC} accepts -Wint-to-pointer-cast])
556 CFLAGS=-Wint-to-pointer-cast
557 AC_TRY_COMPILE(,, aros_int_to_pointer_cast="yes", aros_int_to_pointer_cast="no")
558 AC_MSG_RESULT($aros_int_to_pointer_cast)
559 if test "x-$aros_int_to_pointer_cast" = "x-yes" ; then
560     aros_warnflags_int_to_pointer_cast=-Wint-to-pointer-cast
561     aros_nowarnflags_int_to_pointer_cast=-Wno-int-to-pointer-cast
564 AC_MSG_CHECKING([whether ${CC} accepts -Wpointer-to-int-cast])
565 CFLAGS=-Wpointer-to-int-cast
566 AC_TRY_COMPILE(,, aros_pointer_to_int_cast="yes", aros_pointer_to_int_cast="no")
567 AC_MSG_RESULT($aros_pointer_to_int_cast)
568 if test "x-$aros_pointer_to_int_cast" = "x-yes" ; then
569     aros_warnflags_pointer_to_int_cast=-Wpointer-to-int-cast
570     aros_nowarnflags_pointer_to_int_cast=-Wno-pointer-to-int-cast
573 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-const-variable])
574 CFLAGS=-Wunused-const-variable
575 AC_TRY_COMPILE(,, aros_unused_const_variable="yes", aros_unused_const_variable="no")
576 AC_MSG_RESULT($aros_unused_const_variable)
577 if test "x-$aros_unused_const_variable" = "x-yes" ; then
578     aros_warnflags_unused_const_variable=-Wunused-const-variable
579     aros_nowarnflags_unused_const_variable=-Wno-unused-const-variable
582 AC_MSG_CHECKING([whether ${CC} accepts -Wwrite-strings])
583 CFLAGS=-Wwrite-strings
584 AC_TRY_COMPILE(,, aros_write_strings="yes", aros_write_strings="no")
585 AC_MSG_RESULT($aros_write_strings)
586 if test "x-$aros_write_strings" = "x-yes" ; then
587     aros_warnflags_write_strings=-Wwrite-strings
588     aros_nowarnflags_write_strings=-Wno-write-strings
591 AC_MSG_CHECKING([whether ${CC} accepts -Wcomment])
592 CFLAGS=-Wcomment
593 AC_TRY_COMPILE(,, aros_comment="yes", aros_comment="no")
594 AC_MSG_RESULT($aros_comment)
595 if test "x-$aros_comment" = "x-yes" ; then
596     aros_warnflags_comment=-Wcomment
597     aros_nowarnflags_comment=-Wno-comment
600 AC_MSG_CHECKING([whether ${CC} accepts -Wincompatible-pointer-types])
601 CFLAGS=-Wincompatible-pointer-types
602 AC_TRY_COMPILE(,, aros_incompatible_pointer_types="yes", aros_incompatible_pointer_types="no")
603 AC_MSG_RESULT($aros_incompatible_pointer_types)
604 if test "x-$aros_incompatible_pointer_types" = "x-yes" ; then
605     aros_warnflags_incompatible_pointer_types=-Wincompatible-pointer-types
606     aros_nowarnflags_incompatible_pointer_types=-Wno-incompatible-pointer-types
609 AC_MSG_CHECKING([whether ${CC} accepts -Wbool-compare])
610 CFLAGS=-Wbool-compare
611 AC_TRY_COMPILE(,, aros_bool_compare="yes", aros_bool_compare="no")
612 AC_MSG_RESULT($aros_bool_compare)
613 if test "x-$aros_bool_compare" = "x-yes" ; then
614     aros_warnflags_bool_compare=-Wbool-compare
615     aros_nowarnflags_bool_compare=-Wno-bool-compare
618 AC_MSG_CHECKING([whether ${CC} accepts -Wlogical-not-parentheses])
619 CFLAGS=-Wlogical-not-parentheses
620 AC_TRY_COMPILE(,, aros_logical_not_parentheses="yes", aros_logical_not_parentheses="no")
621 AC_MSG_RESULT($aros_logical_not_parentheses)
622 if test "x-$aros_logical_not_parentheses" = "x-yes" ; then
623     aros_warnflags_logical_not_parentheses=-Wlogical-not-parentheses
624     aros_nowarnflags_logical_not_parentheses=-Wno-logical-not-parentheses
627 AC_MSG_CHECKING([whether ${CC} accepts -Wpointer-sign])
628 CFLAGS=-Wpointer-sign
629 AC_TRY_COMPILE(,, aros_pointer_sign="yes", aros_pointer_sign="no")
630 AC_MSG_RESULT($aros_pointer_sign)
631 if test "x-$aros_pointer_sign" = "x-yes" ; then
632     aros_warnflags_pointer_sign=-Wpointer-sign
633     aros_nowarnflags_pointer_sign=-Wno-pointer-sign
636 AC_MSG_CHECKING([whether ${CC} accepts -Wshift-overflow])
637 CFLAGS=-Wshift-overflow
638 AC_TRY_COMPILE(,, aros_shift_overflow="yes", aros_shift_overflow="no")
639 AC_MSG_RESULT($aros_shift_overflow)
640 if test "x-$aros_shift_overflow" = "x-yes" ; then
641     aros_warnflags_shift_overflow=-Wshift-overflow
642     aros_nowarnflags_shift_overflow=-Wno-shift-overflow
645 AC_MSG_CHECKING([whether ${CC} accepts -Wframe-address])
646 CFLAGS=-Wframe-address
647 AC_TRY_COMPILE(,, aros_frame_address="yes", aros_frame_address="no")
648 AC_MSG_RESULT($aros_frame_address)
649 if test "x-$aros_frame_address" = "x-yes" ; then
650     aros_warnflags_frame_address=-Wframe-address
651     aros_nowarnflags_frame_address=-Wno-frame-address
654 AC_MSG_CHECKING([whether ${CC} accepts -Wdeprecated-declarations])
655 CFLAGS=-Wdeprecated-declarations
656 AC_TRY_COMPILE(,, aros_deprecated_declarations="yes", aros_deprecated_declarations="no")
657 AC_MSG_RESULT($aros_deprecated_declarations)
658 if test "x-$aros_deprecated_declarations" = "x-yes" ; then
659     aros_warnflags_deprecated_declarations=-Wdeprecated-declarations
660     aros_nowarnflags_deprecated_declarations=-Wno-deprecated-declarations
663 AC_MSG_CHECKING([whether ${CC} accepts -Wsign-compare])
664 CFLAGS=-Wsign-compare
665 AC_TRY_COMPILE(,, aros_sign_compare="yes", aros_sign_compare="no")
666 AC_MSG_RESULT($aros_sign_compare)
667 if test "x-$aros_sign_compare" = "x-yes" ; then
668     aros_warnflags_sign_compare=-Wsign-compare
669     aros_nowarnflags_sign_compare=-Wno-sign-compare
672 AC_MSG_CHECKING([whether ${CC} accepts -Wattributes])
673 CFLAGS=-Wattributes
674 AC_TRY_COMPILE(,, aros_attributes="yes", aros_attributes="no")
675 AC_MSG_RESULT($aros_attributes)
676 if test "x-$aros_attributes" = "x-yes" ; then
677     aros_warnflags_attributes=-Wattributes
678     aros_nowarnflags_attributes=-Wno-attributes
681 AC_MSG_CHECKING([whether ${CC} accepts -Woverflow])
682 CFLAGS=-Woverflow
683 AC_TRY_COMPILE(,, aros_overflow="yes", aros_overflow="no")
684 AC_MSG_RESULT($aros_overflow)
685 if test "x-$aros_overflow" = "x-yes" ; then
686     aros_warnflags_overflow=-Woverflow
687     aros_nowarnflags_overflow=-Wno-overflow
690 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-local-typedefs])
691 CFLAGS=-Wunused-local-typedefs
692 AC_TRY_COMPILE(,, aros_unused_local_typedefs="yes", aros_unused_local_typedefs="no")
693 AC_MSG_RESULT($aros_unused_local_typedefs)
694 if test "x-$aros_unused_local_typedefs" = "x-yes" ; then
695     aros_warnflags_unused_local_typedefs=-Wunused-local-typedefs
696     aros_nowarnflags_unused_local_typedefs=-Wno-unused-local-typedefs
699 AC_MSG_CHECKING([whether ${CC} accepts -Wmissing-braces])
700 CFLAGS=-Wmissing-braces
701 AC_TRY_COMPILE(,, aros_missing_braces="yes", aros_missing_braces="no")
702 AC_MSG_RESULT($aros_missing_braces)
703 if test "x-$aros_missing_braces" = "x-yes" ; then
704     aros_warnflags_missing_braces=-Wmissing-braces
705     aros_nowarnflags_missing_braces=-Wno-missing-braces
708 AC_MSG_CHECKING([whether ${CC} accepts -Wconversion-null])
709 CFLAGS=-Wconversion-null
710 AC_TRY_COMPILE(,, aros_conversion_null="yes", aros_conversion_null="no")
711 AC_MSG_RESULT($aros_conversion_null)
712 if test "x-$aros_conversion_null" = "x-yes" ; then
713     aros_warnflags_conversion_null=-Wconversion-null
714     aros_nowarnflags_conversion_null=-Wno-conversion-null
717 AC_MSG_CHECKING([whether ${CC} accepts -Wnarrowing])
718 CFLAGS=-Wnarrowing
719 AC_TRY_COMPILE(,, aros_narrowing="yes", aros_narrowing="no")
720 AC_MSG_RESULT($aros_narrowing)
721 if test "x-$aros_narrowing" = "x-yes" ; then
722     aros_warnflags_narrowing=-Wnarrowing
723     aros_nowarnflags_narrowing=-Wno-narrowing
726 AC_MSG_CHECKING([whether ${CC} accepts -Wvolatile-register-var])
727 CFLAGS=-Wvolatile-register-var
728 AC_TRY_COMPILE(,, aros_volatile_register_var="yes", aros_volatile_register_var="no")
729 AC_MSG_RESULT($aros_volatile_register_var)
730 if test "x-$aros_volatile_register_var" = "x-yes" ; then
731     aros_warnflags_volatile_register_var=-Wvolatile-register-var
732     aros_nowarnflags_volatile_register_var=-Wno-volatile-register-var
735 AC_MSG_CHECKING([whether ${CC} accepts -Wsizeof-pointer-memaccess])
736 CFLAGS=-Wsizeof-pointer-memaccess
737 AC_TRY_COMPILE(,, aros_sizeof_pointer_memaccess="yes", aros_sizeof_pointer_memaccess="no")
738 AC_MSG_RESULT($aros_sizeof_pointer_memaccess)
739 if test "x-$aros_sizeof_pointer_memaccess" = "x-yes" ; then
740     aros_warnflags_sizeof_pointer_memaccess=-Wsizeof-pointer-memaccess
741     aros_nowarnflags_sizeof_pointer_memaccess=-Wno-sizeof-pointer-memaccess
744 AC_MSG_CHECKING([whether ${CC} accepts -Wreturn-type])
745 CFLAGS=-Wreturn-type
746 AC_TRY_COMPILE(,, aros_return_type="yes", aros_return_type="no")
747 AC_MSG_RESULT($aros_return_type)
748 if test "x-$aros_return_type" = "x-yes" ; then
749     aros_warnflags_return_type=-Wreturn-type
750     aros_nowarnflags_return_type=-Wno-return-type
753 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-zero-length])
754 CFLAGS=-Wformat-zero-length
755 AC_TRY_COMPILE(,, aros_format_zero_length="yes", aros_format_zero_length="no")
756 AC_MSG_RESULT($aros_format_zero_length)
757 if test "x-$aros_format_zero_length" = "x-yes" ; then
758     aros_warnflags_format_zero_length=-Wformat-zero-length
759     aros_nowarnflags_format_zero_length=-Wno-format-zero-length
762 AC_MSG_CHECKING([whether ${CC} accepts -Wlto-type-mismatch])
763 CFLAGS=-Wlto-type-mismatch
764 AC_TRY_COMPILE(,, aros_lto_type_mismatch="yes", aros_lto_type_mismatch="no")
765 AC_MSG_RESULT($aros_lto_type_mismatch)
766 if test "x-$aros_lto_type_mismatch" = "x-yes" ; then
767     aros_warnflags_lto_type_mismatch=-Wlto-type-mismatch
768     aros_nowarnflags_lto_type_mismatch=-Wno-lto-type-mismatch
771 AC_MSG_CHECKING([whether ${CC} accepts -Wtautological-compare])
772 CFLAGS=-Wtautological-compare
773 AC_TRY_COMPILE(,, aros_tautological_compare="yes", aros_tautological_compare="no")
774 AC_MSG_RESULT($aros_tautological_compare)
775 if test "x-$aros_tautological_compare" = "x-yes" ; then
776     aros_warnflags_tautological_compare=-Wtautological-compare
777     aros_nowarnflags_tautological_compare=-Wno-tautological-compare
781 # export the feature flags...
783 AC_SUBST(aros_cflags_exceptions)
784 AC_SUBST(aros_cflags_permissive)
785 AC_SUBST(aros_cflags_fast_math)
786 AC_SUBST(aros_cflags_no_builtin_floor)
787 AC_SUBST(aros_cflags_lto)
788 AC_SUBST(aros_cflags_nolto)
789 AC_SUBST(aros_cflags_whole_program)
790 AC_SUBST(aros_cflags_loop_block)
791 AC_SUBST(aros_cflags_loop_interchange)
792 AC_SUBST(aros_cflags_loop_strip_mine)
793 AC_SUBST(aros_cflags_peel_loops)
794 AC_SUBST(aros_cflags_unroll_loops)
796 AC_SUBST(aros_cflags_strictaliasing)
797 AC_SUBST(aros_cflags_nostrictaliasing)
799 AC_SUBST(aros_cflags_iquote)
800 AC_SUBST(aros_cflags_iquote_end)
803 # export the feature options...
805 AC_SUBST(aros_cflags_no_red_zone)
808 # ...and warning flags...
810 AC_SUBST(aros_warnflags_error)
811 AC_SUBST(aros_nowarnflags_error)
812 AC_SUBST(aros_warnflags_unused_command_line_argument)
813 AC_SUBST(aros_nowarnflags_unused_command_line_argument)
814 AC_SUBST(aros_warnflags_unknown_warning_option)
815 AC_SUBST(aros_nowarnflags_unknown_warning_option)
816 AC_SUBST(aros_warnflags_unused_but_set_variable)
817 AC_SUBST(aros_nowarnflags_unused_but_set_variable)
818 AC_SUBST(aros_warnflags_strict_aliasing)
819 AC_SUBST(aros_nowarnflags_strict_aliasing)
820 AC_SUBST(aros_warnflags_array_bounds)
821 AC_SUBST(aros_nowarnflags_array_bounds)
822 AC_SUBST(aros_warnflags_enum_compare)
823 AC_SUBST(aros_nowarnflags_enum_compare)
824 AC_SUBST(aros_warnflags_strict_prototypes)
825 AC_SUBST(aros_nowarnflags_strict_prototypes)
826 AC_SUBST(aros_warnflags_strict_overflow)
827 AC_SUBST(aros_nowarnflags_strict_overflow)
828 AC_SUBST(aros_warnflags_format_security)
829 AC_SUBST(aros_nowarnflags_format_security)
830 AC_SUBST(aros_warnflags_misleading_indentation)
831 AC_SUBST(aros_nowarnflags_misleading_indentation)
832 AC_SUBST(aros_warnflags_nonnull_compare)
833 AC_SUBST(aros_nowarnflags_nonnull_compare)
834 AC_SUBST(aros_warnflags_unused)
835 AC_SUBST(aros_nowarnflags_unused)
836 AC_SUBST(aros_warnflags_unused_label)
837 AC_SUBST(aros_nowarnflags_unused_label)
838 AC_SUBST(aros_warnflags_unused_value)
839 AC_SUBST(aros_nowarnflags_unused_value)
840 AC_SUBST(aros_warnflags_unused_variable)
841 AC_SUBST(aros_nowarnflags_unused_variable)
842 AC_SUBST(aros_warnflags_unused_function)
843 AC_SUBST(aros_nowarnflags_unused_function)
844 AC_SUBST(aros_warnflags_unused_parameter)
845 AC_SUBST(aros_nowarnflags_unused_parameter)
846 AC_SUBST(aros_warnflags_uninitialized)
847 AC_SUBST(aros_nowarnflags_uninitialized)
848 AC_SUBST(aros_warnflags_maybe_uninitialized)
849 AC_SUBST(aros_nowarnflags_maybe_uninitialized)
850 AC_SUBST(aros_warnflags_implicit_function_declaration)
851 AC_SUBST(aros_nowarnflags_implicit_function_declaration)
852 AC_SUBST(aros_warnflags_format)
853 AC_SUBST(aros_nowarnflags_format)
854 AC_SUBST(aros_warnflags_parentheses)
855 AC_SUBST(aros_nowarnflags_parentheses)
856 AC_SUBST(aros_warnflags_char_subscripts)
857 AC_SUBST(aros_nowarnflags_char_subscripts)
858 AC_SUBST(aros_warnflags_endif_labels)
859 AC_SUBST(aros_nowarnflags_endif_labels)
860 AC_SUBST(aros_warnflags_format_contains_nul)
861 AC_SUBST(aros_nowarnflags_format_contains_nul)
862 AC_SUBST(aros_warnflags_implicit_int)
863 AC_SUBST(aros_nowarnflags_implicit_int)
864 AC_SUBST(aros_warnflags_aggressive_loop_optimizations)
865 AC_SUBST(aros_nowarnflags_aggressive_loop_optimizations)
866 AC_SUBST(aros_warnflags_cpp)
867 AC_SUBST(aros_nowarnflags_cpp)
868 AC_SUBST(aros_warnflags_switch)
869 AC_SUBST(aros_nowarnflags_switch)
870 AC_SUBST(aros_warnflags_discarded_qualifiers)
871 AC_SUBST(aros_nowarnflags_discarded_qualifiers)
872 AC_SUBST(aros_warnflags_sequence_point)
873 AC_SUBST(aros_nowarnflags_sequence_point)
874 AC_SUBST(aros_warnflags_unknown_pragmas)
875 AC_SUBST(aros_nowarnflags_unknown_pragmas)
876 AC_SUBST(aros_warnflags_discarded_array_qualifiers)
877 AC_SUBST(aros_nowarnflags_discarded_array_qualifiers)
878 AC_SUBST(aros_warnflags_int_conversion)
879 AC_SUBST(aros_nowarnflags_int_conversion)
880 AC_SUBST(aros_warnflags_int_to_pointer_cast)
881 AC_SUBST(aros_nowarnflags_int_to_pointer_cast)
882 AC_SUBST(aros_warnflags_pointer_to_int_cast)
883 AC_SUBST(aros_nowarnflags_pointer_to_int_cast)
884 AC_SUBST(aros_warnflags_unused_const_variable)
885 AC_SUBST(aros_nowarnflags_unused_const_variable)
886 AC_SUBST(aros_warnflags_write_strings)
887 AC_SUBST(aros_nowarnflags_write_strings)
888 AC_SUBST(aros_warnflags_comment)
889 AC_SUBST(aros_nowarnflags_comment)
890 AC_SUBST(aros_warnflags_incompatible_pointer_types)
891 AC_SUBST(aros_nowarnflags_incompatible_pointer_types)
892 AC_SUBST(aros_warnflags_bool_compare)
893 AC_SUBST(aros_nowarnflags_bool_compare)
894 AC_SUBST(aros_warnflags_logical_not_parentheses)
895 AC_SUBST(aros_nowarnflags_logical_not_parentheses)
896 AC_SUBST(aros_warnflags_pointer_sign)
897 AC_SUBST(aros_nowarnflags_pointer_sign)
898 AC_SUBST(aros_warnflags_shift_overflow)
899 AC_SUBST(aros_nowarnflags_shift_overflow)
900 AC_SUBST(aros_warnflags_frame_address)
901 AC_SUBST(aros_nowarnflags_frame_address)
902 AC_SUBST(aros_warnflags_deprecated_declarations)
903 AC_SUBST(aros_nowarnflags_deprecated_declarations)
904 AC_SUBST(aros_warnflags_sign_compare)
905 AC_SUBST(aros_nowarnflags_sign_compare)
906 AC_SUBST(aros_warnflags_attributes)
907 AC_SUBST(aros_nowarnflags_attributes)
908 AC_SUBST(aros_warnflags_overflow)
909 AC_SUBST(aros_nowarnflags_overflow)
910 AC_SUBST(aros_warnflags_unused_local_typedefs)
911 AC_SUBST(aros_nowarnflags_unused_local_typedefs)
912 AC_SUBST(aros_warnflags_missing_braces)
913 AC_SUBST(aros_nowarnflags_missing_braces)
914 AC_SUBST(aros_warnflags_conversion_null)
915 AC_SUBST(aros_nowarnflags_conversion_null)
916 AC_SUBST(aros_warnflags_narrowing)
917 AC_SUBST(aros_nowarnflags_narrowing)
918 AC_SUBST(aros_warnflags_volatile_register_var)
919 AC_SUBST(aros_nowarnflags_volatile_register_var)
920 AC_SUBST(aros_warnflags_sizeof_pointer_memaccess)
921 AC_SUBST(aros_nowarnflags_sizeof_pointer_memaccess)
922 AC_SUBST(aros_warnflags_return_type)
923 AC_SUBST(aros_nowarnflags_return_type)
924 AC_SUBST(aros_warnflags_format_zero_length)
925 AC_SUBST(aros_nowarnflags_format_zero_length)
926 AC_SUBST(aros_warnflags_lto_type_mismatch)
927 AC_SUBST(aros_nowarnflags_lto_type_mismatch)
928 AC_SUBST(aros_warnflags_tautological_compare)
929 AC_SUBST(aros_nowarnflags_tautological_compare)
930     
931 AC_CONFIG_FILES(
932     ${aros_targetcfg_dir}/compiler.cfg:compiler.cfg.in
935 AC_OUTPUT