silence debug
[AROS.git] / configure
blob242c7296bc377ccf02be67b801de2f54e20eed40
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 aros_host_sdl_libs
626 aros_host_sdl_cflags
627 aros_host_x11_ldflags
628 aros_host_x11_cflags
629 DO_VIDMODE_SUPPORT
630 DO_XSHM_SUPPORT
631 ENABLE_X11
632 KERNEL_DBUS_INCLUDES
633 KERNEL_DBUS_KOBJ
634 DBUS_LIBFLAGS
635 DBUS_CFLAGS
636 ENABLE_DBUS
637 java_target
638 objc_target
639 target_binutils_version
640 gcc_target_cpu
641 ignore_undefined_symbols
642 aros_modules_debug
643 aros_stack_debug
644 aros_mungwall_debug
645 aros_debug
646 aros_android_antapk
647 aros_android_level
648 aros_ios_sdk
649 aros_ios_version
650 aros_ios_platform
651 aros_palm_debug_hack
652 gcc_default_mode
653 gcc_default_float_abi
654 gcc_default_fpu
655 gcc_default_cpu_tune
656 gcc_default_cpu
657 aros_nesting_supervisor
658 target_grub2_version
659 aros_enable_mmu
660 ENABLE_EXECSMP
661 PLATFORM_EXECSMP
662 aros_serial_debug
663 aros_nominal_depth
664 aros_nominal_height
665 aros_nominal_width
666 pci_hidd_target
667 use_libatomic
668 crosstools_cxx_target
669 crosstools_target
670 aros_isa_flags
671 aros_isa_extra
672 aros_kernel_isa_flags
673 aros_optimization_cflags
674 aros_config_coverage
675 aros_config_lto
676 aros_target_strip_flags
677 aros_target_genmap
678 aros_debug_ldflags
679 aros_debug_aflags
680 aros_debug_cxxflags
681 aros_debug_cflags
682 aros_debug_cppflags
683 aros_kernel_ldflags
684 aros_kernel_objcflags
685 aros_kernel_includes
686 aros_kernel_cflags
687 aros_kernel_cppflags
688 aros_kernel_sysroot
689 aros_config_ldflags
690 aros_config_aflags
691 aros_config_cxxflags
692 aros_config_cflags
693 aros_config_cppflags
694 aros_nowarn_flags
695 aros_warn_flags
696 aros_shared_ldflags
697 aros_shared_aflags
698 aros_shared_cflags
699 aros_cxx_libs
700 aros_c_libs
701 spec_obj_format
702 aros_object_format
703 aros_shared_ld
704 aros_shared_default
705 aros_target_nm
706 aros_target_strip
707 aros_target_objcopy
708 aros_target_objdump
709 aros_target_cc_path
710 aros_target_cc_includes
711 aros_target_ld
712 aros_target_as
713 aros_target_cpp
714 aros_target_cxx
715 aros_target_cc
716 aros_plain_ar
717 aros_plain_nm
718 aros_target_ranlib
719 aros_target_ar
720 aros_target_suffix
721 aros_target_variant
722 aros_target_cpu_mode
723 aros_target_cpu
724 aros_target_family
725 aros_target_arch
726 aros_target_bootloader
727 aros_target_iconset
728 aros_target_guitheme
729 aros_target_options
730 target_extra_cfg
731 make_extra_targetcfg
732 make_extra_commands
733 aros_elf_translate
734 aros_tools_dir
735 aros_host_lib_suffix
736 aros_host_exe_suffix
737 aros_host_mkargs
738 aros_host_mkdep
739 aros_host_debug
740 aros_host_ldflags
741 gnu89_inline
742 aros_host_cxxflags
743 aros_host_cflags
744 aros_host_cppflags
745 aros_host_make
746 aros_host_ar
747 aros_host_cxx
748 aros_host_cc
749 aros_host_def_cc
750 aros_host_cpp
751 aros_host_cpu
752 aros_host_arch
753 aros_cc_pre
754 host_extra_cfg
755 ax_cv_flex_version
756 host_stat_h__unused_used
757 aros_amigaos_compliance
758 AROS_PORTSSRCDIR
759 AROS_CROSSTOOLSDIR
760 SRCDIR
761 AROS_BUILDDIR_UNIX
762 AROS_BUILDDIR
763 aros_build_host
764 aros_toolchain_ld
765 aros_target_toolchain
766 aros_flavour_uc
767 aros_flavour
768 aros_cpu
769 aros_arch
770 SDL_LIBS
771 SDL_CFLAGS
772 SDL_CONFIG
773 XMKMF
774 kernel_cflags_iquote_end
775 kernel_cflags_iquote
776 host_cflags_iquote_end
777 host_cflags_iquote
778 aros_toolchain
779 aros_target_nostdlib_ldflags
780 aros_target_detach_ldflags
781 aros_target_nix_ldflags
782 aros_target_nostartup_ldflags
783 aros_target_nostdinc_cflags
784 aros_kernel_rescomp
785 orig_target_objdump
786 orig_target_objcopy
787 orig_target_strip
788 orig_target_nm
789 orig_target_ranlib
790 orig_target_ar
791 orig_target_as
792 orig_target_ld
793 orig_target_cxx
794 orig_target_cc
795 orig_target_cpp
796 aros_kernel_objdump
797 aros_kernel_objcopy
798 aros_kernel_strip
799 aros_kernel_nm
800 aros_kernel_ranlib
801 aros_kernel_ar
802 aros_kernel_as
803 aros_kernel_ld
804 aros_kernel_cxx
805 aros_kernel_cc
806 aros_kernel_cpp
807 target_llvm_version
808 target_gcc_version
810 android_tool
811 CCACHE
812 DISTCC
813 LIBOBJS
814 EGREP
815 GREP
817 TEST
820 libpng_incdir
821 libpng_libextra
822 libpng
823 arosconfig_use_libpngconfig
824 pkgpyexecdir
825 pyexecdir
826 pkgpythondir
827 pythondir
828 PYTHON_PLATFORM
829 PYTHON_EXEC_PREFIX
830 PYTHON_PREFIX
831 PYTHON_VERSION
832 PYTHON
833 PATCH
834 CHMOD
836 PPMTOILBM
837 PNGTOPNM
838 FLEX
839 BISON
842 UNIQ
843 SORT
844 TOUCH
845 MKDIR
846 ECHO
850 aros_host_strip
851 aros_host_ranlib
852 RANLIB_BASE
853 aros_host_plain_ar
854 AR_BASE
855 aros_host_automake
856 aros_host_autoheader
857 aros_host_autoconf
858 aros_host_aclocal
859 aros_host_ld
860 LD_BASE
861 base_lld_name
862 MMAKE
865 ac_ct_CC
866 CFLAGS
868 OBJEXT
869 EXEEXT
870 ac_ct_CXX
871 CPPFLAGS
872 LDFLAGS
873 CXXFLAGS
875 host_os
876 host_vendor
877 host_cpu
878 host
879 build_os
880 build_vendor
881 build_cpu
882 build
883 target_alias
884 host_alias
885 build_alias
886 LIBS
887 ECHO_T
888 ECHO_N
889 ECHO_C
890 DEFS
891 mandir
892 localedir
893 libdir
894 psdir
895 pdfdir
896 dvidir
897 htmldir
898 infodir
899 docdir
900 oldincludedir
901 includedir
902 runstatedir
903 localstatedir
904 sharedstatedir
905 sysconfdir
906 datadir
907 datarootdir
908 libexecdir
909 sbindir
910 bindir
911 program_transform_name
912 prefix
913 exec_prefix
914 PACKAGE_URL
915 PACKAGE_BUGREPORT
916 PACKAGE_STRING
917 PACKAGE_VERSION
918 PACKAGE_TARNAME
919 PACKAGE_NAME
920 PATH_SEPARATOR
921 SHELL'
922 ac_subst_files=''
923 ac_user_opts='
924 enable_option_checking
925 with_c_compiler
926 with_cxx_compiler
927 enable_libpng_config
928 with_toolchain
929 enable_lto
930 enable_coverage
931 enable_build_type
932 enable_debug
933 enable_distcc
934 enable_ccache
935 with_kernel_gcc_version
936 with_optimization
937 with_paranoia
938 enable_target_variant
939 with_xcode
940 with_sdk_version
941 with_sdk
942 with_ndk
943 with_ndk_version
944 with_apk_version
945 enable_amigaos_compliance
946 with_kernel_toolchain_prefix
947 with_elf_toolchain_prefix
948 with_aros_toolchain
949 enable_crosstools
950 with_aros_toolchain_install
951 with_binutils_version
952 with_gcc_version
953 with_llvm_version
954 enable_objc
955 enable_java
956 with_cpu
957 with_fpu
958 with_float
959 with_portssources
960 with_bootloader
961 with_iconset
962 with_theme
963 enable_includes
964 with_resolution
965 with_serial_debug
966 enable_palm_debug_hack
967 enable_usb30_code
968 enable_nesting_supervisor
969 enable_mmu
970 enable_x11_hidd
971 with_x
972 enable_x11_shm
973 enable_x11_vidmode
974 enable_sdl_hidd
975 with_sdl_prefix
976 with_sdl_exec_prefix
977 enable_sdltest
978 enable_dbus
980 ac_precious_vars='build_alias
981 host_alias
982 target_alias
984 CXXFLAGS
985 LDFLAGS
986 LIBS
987 CPPFLAGS
990 CFLAGS
992 PYTHON
993 XMKMF'
996 # Initialize some variables set by options.
997 ac_init_help=
998 ac_init_version=false
999 ac_unrecognized_opts=
1000 ac_unrecognized_sep=
1001 # The variables have the same names as the options, with
1002 # dashes changed to underlines.
1003 cache_file=/dev/null
1004 exec_prefix=NONE
1005 no_create=
1006 no_recursion=
1007 prefix=NONE
1008 program_prefix=NONE
1009 program_suffix=NONE
1010 program_transform_name=s,x,x,
1011 silent=
1012 site=
1013 srcdir=
1014 verbose=
1015 x_includes=NONE
1016 x_libraries=NONE
1018 # Installation directory options.
1019 # These are left unexpanded so users can "make install exec_prefix=/foo"
1020 # and all the variables that are supposed to be based on exec_prefix
1021 # by default will actually change.
1022 # Use braces instead of parens because sh, perl, etc. also accept them.
1023 # (The list follows the same order as the GNU Coding Standards.)
1024 bindir='${exec_prefix}/bin'
1025 sbindir='${exec_prefix}/sbin'
1026 libexecdir='${exec_prefix}/libexec'
1027 datarootdir='${prefix}/share'
1028 datadir='${datarootdir}'
1029 sysconfdir='${prefix}/etc'
1030 sharedstatedir='${prefix}/com'
1031 localstatedir='${prefix}/var'
1032 runstatedir='${localstatedir}/run'
1033 includedir='${prefix}/include'
1034 oldincludedir='/usr/include'
1035 docdir='${datarootdir}/doc/${PACKAGE}'
1036 infodir='${datarootdir}/info'
1037 htmldir='${docdir}'
1038 dvidir='${docdir}'
1039 pdfdir='${docdir}'
1040 psdir='${docdir}'
1041 libdir='${exec_prefix}/lib'
1042 localedir='${datarootdir}/locale'
1043 mandir='${datarootdir}/man'
1045 ac_prev=
1046 ac_dashdash=
1047 for ac_option
1049 # If the previous option needs an argument, assign it.
1050 if test -n "$ac_prev"; then
1051 eval $ac_prev=\$ac_option
1052 ac_prev=
1053 continue
1056 case $ac_option in
1057 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1058 *=) ac_optarg= ;;
1059 *) ac_optarg=yes ;;
1060 esac
1062 # Accept the important Cygnus configure options, so we can diagnose typos.
1064 case $ac_dashdash$ac_option in
1066 ac_dashdash=yes ;;
1068 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1069 ac_prev=bindir ;;
1070 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1071 bindir=$ac_optarg ;;
1073 -build | --build | --buil | --bui | --bu)
1074 ac_prev=build_alias ;;
1075 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1076 build_alias=$ac_optarg ;;
1078 -cache-file | --cache-file | --cache-fil | --cache-fi \
1079 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1080 ac_prev=cache_file ;;
1081 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1082 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1083 cache_file=$ac_optarg ;;
1085 --config-cache | -C)
1086 cache_file=config.cache ;;
1088 -datadir | --datadir | --datadi | --datad)
1089 ac_prev=datadir ;;
1090 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1091 datadir=$ac_optarg ;;
1093 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1094 | --dataroo | --dataro | --datar)
1095 ac_prev=datarootdir ;;
1096 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1097 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1098 datarootdir=$ac_optarg ;;
1100 -disable-* | --disable-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error $? "invalid feature name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1109 "enable_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval enable_$ac_useropt=no ;;
1116 -docdir | --docdir | --docdi | --doc | --do)
1117 ac_prev=docdir ;;
1118 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1119 docdir=$ac_optarg ;;
1121 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1122 ac_prev=dvidir ;;
1123 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1124 dvidir=$ac_optarg ;;
1126 -enable-* | --enable-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid feature name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1135 "enable_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval enable_$ac_useropt=\$ac_optarg ;;
1142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1144 | --exec | --exe | --ex)
1145 ac_prev=exec_prefix ;;
1146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1148 | --exec=* | --exe=* | --ex=*)
1149 exec_prefix=$ac_optarg ;;
1151 -gas | --gas | --ga | --g)
1152 # Obsolete; use --with-gas.
1153 with_gas=yes ;;
1155 -help | --help | --hel | --he | -h)
1156 ac_init_help=long ;;
1157 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1158 ac_init_help=recursive ;;
1159 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1160 ac_init_help=short ;;
1162 -host | --host | --hos | --ho)
1163 ac_prev=host_alias ;;
1164 -host=* | --host=* | --hos=* | --ho=*)
1165 host_alias=$ac_optarg ;;
1167 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1168 ac_prev=htmldir ;;
1169 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1170 | --ht=*)
1171 htmldir=$ac_optarg ;;
1173 -includedir | --includedir | --includedi | --included | --include \
1174 | --includ | --inclu | --incl | --inc)
1175 ac_prev=includedir ;;
1176 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1177 | --includ=* | --inclu=* | --incl=* | --inc=*)
1178 includedir=$ac_optarg ;;
1180 -infodir | --infodir | --infodi | --infod | --info | --inf)
1181 ac_prev=infodir ;;
1182 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1183 infodir=$ac_optarg ;;
1185 -libdir | --libdir | --libdi | --libd)
1186 ac_prev=libdir ;;
1187 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1188 libdir=$ac_optarg ;;
1190 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1191 | --libexe | --libex | --libe)
1192 ac_prev=libexecdir ;;
1193 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1194 | --libexe=* | --libex=* | --libe=*)
1195 libexecdir=$ac_optarg ;;
1197 -localedir | --localedir | --localedi | --localed | --locale)
1198 ac_prev=localedir ;;
1199 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1200 localedir=$ac_optarg ;;
1202 -localstatedir | --localstatedir | --localstatedi | --localstated \
1203 | --localstate | --localstat | --localsta | --localst | --locals)
1204 ac_prev=localstatedir ;;
1205 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1206 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1207 localstatedir=$ac_optarg ;;
1209 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1210 ac_prev=mandir ;;
1211 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1212 mandir=$ac_optarg ;;
1214 -nfp | --nfp | --nf)
1215 # Obsolete; use --without-fp.
1216 with_fp=no ;;
1218 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1219 | --no-cr | --no-c | -n)
1220 no_create=yes ;;
1222 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1223 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1224 no_recursion=yes ;;
1226 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1227 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1228 | --oldin | --oldi | --old | --ol | --o)
1229 ac_prev=oldincludedir ;;
1230 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1231 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1232 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1233 oldincludedir=$ac_optarg ;;
1235 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1236 ac_prev=prefix ;;
1237 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1238 prefix=$ac_optarg ;;
1240 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1241 | --program-pre | --program-pr | --program-p)
1242 ac_prev=program_prefix ;;
1243 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1244 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1245 program_prefix=$ac_optarg ;;
1247 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1248 | --program-suf | --program-su | --program-s)
1249 ac_prev=program_suffix ;;
1250 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1251 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1252 program_suffix=$ac_optarg ;;
1254 -program-transform-name | --program-transform-name \
1255 | --program-transform-nam | --program-transform-na \
1256 | --program-transform-n | --program-transform- \
1257 | --program-transform | --program-transfor \
1258 | --program-transfo | --program-transf \
1259 | --program-trans | --program-tran \
1260 | --progr-tra | --program-tr | --program-t)
1261 ac_prev=program_transform_name ;;
1262 -program-transform-name=* | --program-transform-name=* \
1263 | --program-transform-nam=* | --program-transform-na=* \
1264 | --program-transform-n=* | --program-transform-=* \
1265 | --program-transform=* | --program-transfor=* \
1266 | --program-transfo=* | --program-transf=* \
1267 | --program-trans=* | --program-tran=* \
1268 | --progr-tra=* | --program-tr=* | --program-t=*)
1269 program_transform_name=$ac_optarg ;;
1271 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1272 ac_prev=pdfdir ;;
1273 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1274 pdfdir=$ac_optarg ;;
1276 -psdir | --psdir | --psdi | --psd | --ps)
1277 ac_prev=psdir ;;
1278 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1279 psdir=$ac_optarg ;;
1281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282 | -silent | --silent | --silen | --sile | --sil)
1283 silent=yes ;;
1285 -runstatedir | --runstatedir | --runstatedi | --runstated \
1286 | --runstate | --runstat | --runsta | --runst | --runs \
1287 | --run | --ru | --r)
1288 ac_prev=runstatedir ;;
1289 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1290 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1291 | --run=* | --ru=* | --r=*)
1292 runstatedir=$ac_optarg ;;
1294 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1295 ac_prev=sbindir ;;
1296 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1297 | --sbi=* | --sb=*)
1298 sbindir=$ac_optarg ;;
1300 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1301 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1302 | --sharedst | --shareds | --shared | --share | --shar \
1303 | --sha | --sh)
1304 ac_prev=sharedstatedir ;;
1305 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1306 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1307 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1308 | --sha=* | --sh=*)
1309 sharedstatedir=$ac_optarg ;;
1311 -site | --site | --sit)
1312 ac_prev=site ;;
1313 -site=* | --site=* | --sit=*)
1314 site=$ac_optarg ;;
1316 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1317 ac_prev=srcdir ;;
1318 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1319 srcdir=$ac_optarg ;;
1321 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1322 | --syscon | --sysco | --sysc | --sys | --sy)
1323 ac_prev=sysconfdir ;;
1324 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1325 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1326 sysconfdir=$ac_optarg ;;
1328 -target | --target | --targe | --targ | --tar | --ta | --t)
1329 ac_prev=target_alias ;;
1330 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1331 target_alias=$ac_optarg ;;
1333 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1334 verbose=yes ;;
1336 -version | --version | --versio | --versi | --vers | -V)
1337 ac_init_version=: ;;
1339 -with-* | --with-*)
1340 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1343 as_fn_error $? "invalid package name: $ac_useropt"
1344 ac_useropt_orig=$ac_useropt
1345 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1346 case $ac_user_opts in
1348 "with_$ac_useropt"
1349 "*) ;;
1350 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1351 ac_unrecognized_sep=', ';;
1352 esac
1353 eval with_$ac_useropt=\$ac_optarg ;;
1355 -without-* | --without-*)
1356 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1359 as_fn_error $? "invalid package name: $ac_useropt"
1360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1364 "with_$ac_useropt"
1365 "*) ;;
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1368 esac
1369 eval with_$ac_useropt=no ;;
1371 --x)
1372 # Obsolete; use --with-x.
1373 with_x=yes ;;
1375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1376 | --x-incl | --x-inc | --x-in | --x-i)
1377 ac_prev=x_includes ;;
1378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1380 x_includes=$ac_optarg ;;
1382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1384 ac_prev=x_libraries ;;
1385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1387 x_libraries=$ac_optarg ;;
1389 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1390 Try \`$0 --help' for more information"
1393 *=*)
1394 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1395 # Reject names that are not valid shell variable names.
1396 case $ac_envvar in #(
1397 '' | [0-9]* | *[!_$as_cr_alnum]* )
1398 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1399 esac
1400 eval $ac_envvar=\$ac_optarg
1401 export $ac_envvar ;;
1404 # FIXME: should be removed in autoconf 3.0.
1405 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1406 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1407 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1408 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1411 esac
1412 done
1414 if test -n "$ac_prev"; then
1415 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1416 as_fn_error $? "missing argument to $ac_option"
1419 if test -n "$ac_unrecognized_opts"; then
1420 case $enable_option_checking in
1421 no) ;;
1422 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1423 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1424 esac
1427 # Check all directory arguments for consistency.
1428 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1429 datadir sysconfdir sharedstatedir localstatedir includedir \
1430 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1431 libdir localedir mandir runstatedir
1433 eval ac_val=\$$ac_var
1434 # Remove trailing slashes.
1435 case $ac_val in
1436 */ )
1437 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1438 eval $ac_var=\$ac_val;;
1439 esac
1440 # Be sure to have absolute directory names.
1441 case $ac_val in
1442 [\\/$]* | ?:[\\/]* ) continue;;
1443 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1444 esac
1445 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1446 done
1448 # There might be people who depend on the old broken behavior: `$host'
1449 # used to hold the argument of --host etc.
1450 # FIXME: To remove some day.
1451 build=$build_alias
1452 host=$host_alias
1453 target=$target_alias
1455 # FIXME: To remove some day.
1456 if test "x$host_alias" != x; then
1457 if test "x$build_alias" = x; then
1458 cross_compiling=maybe
1459 elif test "x$build_alias" != "x$host_alias"; then
1460 cross_compiling=yes
1464 ac_tool_prefix=
1465 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1467 test "$silent" = yes && exec 6>/dev/null
1470 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1471 ac_ls_di=`ls -di .` &&
1472 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1473 as_fn_error $? "working directory cannot be determined"
1474 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1475 as_fn_error $? "pwd does not report name of working directory"
1478 # Find the source files, if location was not specified.
1479 if test -z "$srcdir"; then
1480 ac_srcdir_defaulted=yes
1481 # Try the directory containing this script, then the parent directory.
1482 ac_confdir=`$as_dirname -- "$as_myself" ||
1483 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1484 X"$as_myself" : 'X\(//\)[^/]' \| \
1485 X"$as_myself" : 'X\(//\)$' \| \
1486 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1487 $as_echo X"$as_myself" |
1488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1489 s//\1/
1492 /^X\(\/\/\)[^/].*/{
1493 s//\1/
1496 /^X\(\/\/\)$/{
1497 s//\1/
1500 /^X\(\/\).*/{
1501 s//\1/
1504 s/.*/./; q'`
1505 srcdir=$ac_confdir
1506 if test ! -r "$srcdir/$ac_unique_file"; then
1507 srcdir=..
1509 else
1510 ac_srcdir_defaulted=no
1512 if test ! -r "$srcdir/$ac_unique_file"; then
1513 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1514 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1516 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1517 ac_abs_confdir=`(
1518 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1519 pwd)`
1520 # When building in place, set srcdir=.
1521 if test "$ac_abs_confdir" = "$ac_pwd"; then
1522 srcdir=.
1524 # Remove unnecessary trailing slashes from srcdir.
1525 # Double slashes in file names in object file debugging info
1526 # mess up M-x gdb in Emacs.
1527 case $srcdir in
1528 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1529 esac
1530 for ac_var in $ac_precious_vars; do
1531 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1532 eval ac_env_${ac_var}_value=\$${ac_var}
1533 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1534 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1535 done
1538 # Report the --help message.
1540 if test "$ac_init_help" = "long"; then
1541 # Omit some internal or obsolete options to make the list less imposing.
1542 # This message is too long to be a string in the A/UX 3.1 sh.
1543 cat <<_ACEOF
1544 \`configure' configures this package to adapt to many kinds of systems.
1546 Usage: $0 [OPTION]... [VAR=VALUE]...
1548 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1549 VAR=VALUE. See below for descriptions of some of the useful variables.
1551 Defaults for the options are specified in brackets.
1553 Configuration:
1554 -h, --help display this help and exit
1555 --help=short display options specific to this package
1556 --help=recursive display the short help of all the included packages
1557 -V, --version display version information and exit
1558 -q, --quiet, --silent do not print \`checking ...' messages
1559 --cache-file=FILE cache test results in FILE [disabled]
1560 -C, --config-cache alias for \`--cache-file=config.cache'
1561 -n, --no-create do not create output files
1562 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1564 Installation directories:
1565 --prefix=PREFIX install architecture-independent files in PREFIX
1566 [$ac_default_prefix]
1567 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1568 [PREFIX]
1570 By default, \`make install' will install all the files in
1571 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1572 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1573 for instance \`--prefix=\$HOME'.
1575 For better control, use the options below.
1577 Fine tuning of the installation directories:
1578 --bindir=DIR user executables [EPREFIX/bin]
1579 --sbindir=DIR system admin executables [EPREFIX/sbin]
1580 --libexecdir=DIR program executables [EPREFIX/libexec]
1581 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1582 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1583 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1584 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1585 --libdir=DIR object code libraries [EPREFIX/lib]
1586 --includedir=DIR C header files [PREFIX/include]
1587 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1588 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1589 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1590 --infodir=DIR info documentation [DATAROOTDIR/info]
1591 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1592 --mandir=DIR man documentation [DATAROOTDIR/man]
1593 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1594 --htmldir=DIR html documentation [DOCDIR]
1595 --dvidir=DIR dvi documentation [DOCDIR]
1596 --pdfdir=DIR pdf documentation [DOCDIR]
1597 --psdir=DIR ps documentation [DOCDIR]
1598 _ACEOF
1600 cat <<\_ACEOF
1602 X features:
1603 --x-includes=DIR X include files are in DIR
1604 --x-libraries=DIR X library files are in DIR
1606 System types:
1607 --build=BUILD configure for building on BUILD [guessed]
1608 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1609 _ACEOF
1612 if test -n "$ac_init_help"; then
1614 cat <<\_ACEOF
1616 Optional Features:
1617 --disable-option-checking ignore unrecognized --enable/--with options
1618 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1619 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1620 --disable-libpng-config disable libpng-config test and configuration
1621 --enable-lto=yes|no Enable link time optimizations if the target
1622 compiler supports them (default=no)
1623 --enable-coverage=yes|no
1624 Enable coverage instrumentation if the target
1625 compiler supports it (default=no)
1626 --enable-build-type=TYPE
1627 Select the build type. Available types are:
1628 personal, nightly, snapshot, milestone, release. Do
1629 NOT use this option unless you know what you are
1630 doing! (default=personal)
1631 --enable-debug=list Enable different types of debug. Commas or
1632 whitespaces can be used to separate the items in the
1633 list. Available types of debug are: all, none,
1634 messages, stack, mungwall, modules, symbols. If no
1635 list is provided then "all" is assumed.
1636 (default=none)
1637 --enable-distcc Use distcc as a front end to the compiler
1638 (default=no).
1639 --enable-ccache Use ccache as a front end to the compiler
1640 (default=no).
1641 --enable-target-variant=NAME
1642 Enable a specific target variant (default=none)
1643 --enable-amigaos-compliance=VERSION
1644 Enforce userspace AmigaOS compliance to a specific
1645 KickStart version (default=none).
1646 --disable-crosstools Do not build cross-compiler toolchain
1647 --enable-objc Enable Objectve-C support (default=no)
1648 --enable-java Enable Java support (default=no)
1649 --enable-includes=dir Alternative system include directory
1650 --enable-palm-debug-hack
1651 Enable palm debug output hack in palm native
1652 (default=no)
1653 --enable-usb30-code Enable usb3.0 code (default=no)
1654 --enable-nesting-supervisor
1655 Enable nesting supervisor support in unix
1656 (default=no)
1657 --disable-mmu Disable MMU support (default=enabled)
1658 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1659 --enable-x11-shm use X11 shared memory (default=auto)
1660 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1661 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1662 --disable-sdltest Do not try to compile and run a test SDL program
1663 --enable-dbus Enable DBUS support via dbus.library (default=no)
1665 Optional Packages:
1666 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1667 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1668 --with-c-compiler=VERSION
1669 Use specified c compiler for building AROS
1670 --with-cxx-compiler=VERSION
1671 Use specified c++ compiler building AROS
1672 --with-toolchain=family Which toolchain family to crosscompile with
1673 (defaults to gnu)
1674 --with-kernel-gcc-version=VERSION
1675 Use gcc-VERSION for building bootstrap
1676 --with-optimization=FLAGS
1677 Use optimization flags FLAGS (e.g
1678 --with-optimization=-O2).
1679 --with-paranoia=(yes|no|FLAGS)
1680 Specific compiler warning FLAGS to enable for
1681 paranoia builds (default=-Wall -Werror)
1682 --with-xcode=PATH Specify XCode path for iOS targets
1683 (default=/Developer).
1684 --with-sdk-version=VERSION
1685 Use iOS SDK version VERSION (default=4.1).
1686 --with-sdk=PATH Specify Android SDK path
1687 (default=$default_android_sdk).
1688 --with-ndk=PATH Specify Android NDK path (default=none).
1689 --with-sdk-version=LEVEL
1690 Use Android SDK for API LEVEL (default=12).
1691 --with-ndk-version=LEVEL
1692 Use Android NDK for API LEVEL (default=9).
1693 --with-apk-version=(release|debug)
1694 Which version of AROSBootstrap.apk to compile.
1695 Release version needs key for signing, debug version
1696 will only run in emulator. (default=release)
1697 --with-kernel-toolchain-prefix=...
1698 Specify crosscompile toolchain prefix for kernel
1699 objects
1700 --with-elf-toolchain-prefix=...
1701 Specify crosscompile toolchain prefix to wrap for
1702 AROS objects
1703 --with-aros-toolchain=PREFIX
1704 Specify prebuilt AROS toolchain. Use yes for default
1705 name
1706 --with-aros-toolchain-install=DIR
1707 Where to install or search for cross tools binaries
1708 --with-binutils-version=VERSION
1709 Use binutils-VERSION for building AROS
1710 --with-gcc-version=VERSION
1711 Compile gcc-VERSION for AROS
1712 --with-llvm-version=VERSION
1713 Compile llvm-VERSION for AROS
1714 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1715 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1716 --with-float=<spec> Specify floating point ABI
1717 (default=$gcc_default_float_abi).
1718 --with-portssources=DIR Where to download sourcecode for external ports
1719 --with-bootloader=NAME Use a specific bootloader
1720 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1721 --with-theme=NAME Use a specific GUI Theme
1722 --with-resolution=XRESxYRESxDEPTH
1723 Default resolution of the initial WorkbenchScreen
1724 --with-serial-debug Enable serial debug output in native (default=no)
1725 --with-x use the X Window System
1726 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1727 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1729 Some influential environment variables:
1730 CXX C++ compiler command
1731 CXXFLAGS C++ compiler flags
1732 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1733 nonstandard directory <lib dir>
1734 LIBS libraries to pass to the linker, e.g. -l<library>
1735 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1736 you have headers in a nonstandard directory <include dir>
1737 CC C compiler command
1738 CFLAGS C compiler flags
1739 CPP C preprocessor
1740 PYTHON the Python interpreter
1741 XMKMF Path to xmkmf, Makefile generator for X Window System
1743 Use these variables to override the choices made by `configure' or to help
1744 it to find libraries and programs with nonstandard names/locations.
1746 Report bugs to the package provider.
1747 _ACEOF
1748 ac_status=$?
1751 if test "$ac_init_help" = "recursive"; then
1752 # If there are subdirs, report their specific --help.
1753 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1754 test -d "$ac_dir" ||
1755 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1756 continue
1757 ac_builddir=.
1759 case "$ac_dir" in
1760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1762 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1763 # A ".." for each directory in $ac_dir_suffix.
1764 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1765 case $ac_top_builddir_sub in
1766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1768 esac ;;
1769 esac
1770 ac_abs_top_builddir=$ac_pwd
1771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1772 # for backward compatibility:
1773 ac_top_builddir=$ac_top_build_prefix
1775 case $srcdir in
1776 .) # We are building in place.
1777 ac_srcdir=.
1778 ac_top_srcdir=$ac_top_builddir_sub
1779 ac_abs_top_srcdir=$ac_pwd ;;
1780 [\\/]* | ?:[\\/]* ) # Absolute name.
1781 ac_srcdir=$srcdir$ac_dir_suffix;
1782 ac_top_srcdir=$srcdir
1783 ac_abs_top_srcdir=$srcdir ;;
1784 *) # Relative name.
1785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1786 ac_top_srcdir=$ac_top_build_prefix$srcdir
1787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1788 esac
1789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1791 cd "$ac_dir" || { ac_status=$?; continue; }
1792 # Check for guested configure.
1793 if test -f "$ac_srcdir/configure.gnu"; then
1794 echo &&
1795 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1796 elif test -f "$ac_srcdir/configure"; then
1797 echo &&
1798 $SHELL "$ac_srcdir/configure" --help=recursive
1799 else
1800 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1801 fi || ac_status=$?
1802 cd "$ac_pwd" || { ac_status=$?; break; }
1803 done
1806 test -n "$ac_init_help" && exit $ac_status
1807 if $ac_init_version; then
1808 cat <<\_ACEOF
1809 configure
1810 generated by GNU Autoconf 2.69
1812 Copyright (C) 2012 Free Software Foundation, Inc.
1813 This configure script is free software; the Free Software Foundation
1814 gives unlimited permission to copy, distribute and modify it.
1815 _ACEOF
1816 exit
1819 ## ------------------------ ##
1820 ## Autoconf initialization. ##
1821 ## ------------------------ ##
1823 # ac_fn_cxx_try_compile LINENO
1824 # ----------------------------
1825 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_cxx_try_compile ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 rm -f conftest.$ac_objext
1830 if { { ac_try="$ac_compile"
1831 case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_compile") 2>conftest.err
1838 ac_status=$?
1839 if test -s conftest.err; then
1840 grep -v '^ *+' conftest.err >conftest.er1
1841 cat conftest.er1 >&5
1842 mv -f conftest.er1 conftest.err
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } && {
1846 test -z "$ac_cxx_werror_flag" ||
1847 test ! -s conftest.err
1848 } && test -s conftest.$ac_objext; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1854 ac_retval=1
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1859 } # ac_fn_cxx_try_compile
1861 # ac_fn_c_try_compile LINENO
1862 # --------------------------
1863 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_c_try_compile ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext
1868 if { { ac_try="$ac_compile"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_compile") 2>conftest.err
1876 ac_status=$?
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_c_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest.$ac_objext; then :
1887 ac_retval=0
1888 else
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1892 ac_retval=1
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1897 } # ac_fn_c_try_compile
1899 # ac_fn_c_try_cpp LINENO
1900 # ----------------------
1901 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1902 ac_fn_c_try_cpp ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 if { { ac_try="$ac_cpp conftest.$ac_ext"
1906 case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1909 esac
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1913 ac_status=$?
1914 if test -s conftest.err; then
1915 grep -v '^ *+' conftest.err >conftest.er1
1916 cat conftest.er1 >&5
1917 mv -f conftest.er1 conftest.err
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } > conftest.i && {
1921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1922 test ! -s conftest.err
1923 }; then :
1924 ac_retval=0
1925 else
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1929 ac_retval=1
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status $ac_retval
1934 } # ac_fn_c_try_cpp
1936 # ac_fn_c_try_link LINENO
1937 # -----------------------
1938 # Try to link conftest.$ac_ext, and return whether this succeeded.
1939 ac_fn_c_try_link ()
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 rm -f conftest.$ac_objext conftest$ac_exeext
1943 if { { ac_try="$ac_link"
1944 case "(($ac_try" in
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947 esac
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_link") 2>conftest.err
1951 ac_status=$?
1952 if test -s conftest.err; then
1953 grep -v '^ *+' conftest.err >conftest.er1
1954 cat conftest.er1 >&5
1955 mv -f conftest.er1 conftest.err
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && {
1959 test -z "$ac_c_werror_flag" ||
1960 test ! -s conftest.err
1961 } && test -s conftest$ac_exeext && {
1962 test "$cross_compiling" = yes ||
1963 test -x conftest$ac_exeext
1964 }; then :
1965 ac_retval=0
1966 else
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1970 ac_retval=1
1972 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1973 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1974 # interfere with the next link command; also delete a directory that is
1975 # left behind by Apple's compiler. We do this before executing the actions.
1976 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status $ac_retval
1980 } # ac_fn_c_try_link
1982 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1983 # -------------------------------------------------------
1984 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1985 # the include files in INCLUDES and setting the cache variable VAR
1986 # accordingly.
1987 ac_fn_c_check_header_mongrel ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if eval \${$3+:} false; then :
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994 $as_echo_n "(cached) " >&6
1996 eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 else
2000 # Is the header compilable?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2002 $as_echo_n "checking $2 usability... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2006 #include <$2>
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 ac_header_compiler=yes
2010 else
2011 ac_header_compiler=no
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2015 $as_echo "$ac_header_compiler" >&6; }
2017 # Is the header present?
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2019 $as_echo_n "checking $2 presence... " >&6; }
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 #include <$2>
2023 _ACEOF
2024 if ac_fn_c_try_cpp "$LINENO"; then :
2025 ac_header_preproc=yes
2026 else
2027 ac_header_preproc=no
2029 rm -f conftest.err conftest.i conftest.$ac_ext
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2031 $as_echo "$ac_header_preproc" >&6; }
2033 # So? What about this header?
2034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2035 yes:no: )
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2037 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2041 no:yes:* )
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2043 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2045 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2047 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2049 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2051 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2053 esac
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2058 else
2059 eval "$3=\$ac_header_compiler"
2061 eval ac_res=\$$3
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 } # ac_fn_c_check_header_mongrel
2069 # ac_fn_c_try_run LINENO
2070 # ----------------------
2071 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2072 # that executables *can* be run.
2073 ac_fn_c_try_run ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 if { { ac_try="$ac_link"
2077 case "(($ac_try" in
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2080 esac
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_link") 2>&5
2084 ac_status=$?
2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2087 { { case "(($ac_try" in
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2090 esac
2091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092 $as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_try") 2>&5
2094 ac_status=$?
2095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; }; }; then :
2097 ac_retval=0
2098 else
2099 $as_echo "$as_me: program exited with status $ac_status" >&5
2100 $as_echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2103 ac_retval=$ac_status
2105 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107 as_fn_set_status $ac_retval
2109 } # ac_fn_c_try_run
2111 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2112 # -------------------------------------------------------
2113 # Tests whether HEADER exists and can be compiled using the include files in
2114 # INCLUDES, setting the cache variable VAR accordingly.
2115 ac_fn_c_check_header_compile ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2119 $as_echo_n "checking for $2... " >&6; }
2120 if eval \${$3+:} false; then :
2121 $as_echo_n "(cached) " >&6
2122 else
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2126 #include <$2>
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 eval "$3=yes"
2130 else
2131 eval "$3=no"
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 eval ac_res=\$$3
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140 } # ac_fn_c_check_header_compile
2142 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2143 # ----------------------------------------------------
2144 # Tries to find if the field MEMBER exists in type AGGR, after including
2145 # INCLUDES, setting cache variable VAR accordingly.
2146 ac_fn_c_check_member ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2150 $as_echo_n "checking for $2.$3... " >&6; }
2151 if eval \${$4+:} false; then :
2152 $as_echo_n "(cached) " >&6
2153 else
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2158 main ()
2160 static $2 ac_aggr;
2161 if (ac_aggr.$3)
2162 return 0;
2164 return 0;
2166 _ACEOF
2167 if ac_fn_c_try_compile "$LINENO"; then :
2168 eval "$4=yes"
2169 else
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2174 main ()
2176 static $2 ac_aggr;
2177 if (sizeof ac_aggr.$3)
2178 return 0;
2180 return 0;
2182 _ACEOF
2183 if ac_fn_c_try_compile "$LINENO"; then :
2184 eval "$4=yes"
2185 else
2186 eval "$4=no"
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 eval ac_res=\$$4
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197 } # ac_fn_c_check_member
2199 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2200 # ---------------------------------------------
2201 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2202 # accordingly.
2203 ac_fn_c_check_decl ()
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 as_decl_name=`echo $2|sed 's/ *(.*//'`
2207 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2209 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2210 if eval \${$3+:} false; then :
2211 $as_echo_n "(cached) " >&6
2212 else
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2217 main ()
2219 #ifndef $as_decl_name
2220 #ifdef __cplusplus
2221 (void) $as_decl_use;
2222 #else
2223 (void) $as_decl_name;
2224 #endif
2225 #endif
2228 return 0;
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2232 eval "$3=yes"
2233 else
2234 eval "$3=no"
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243 } # ac_fn_c_check_decl
2245 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2246 # -------------------------------------------
2247 # Tests whether TYPE exists after having included INCLUDES, setting cache
2248 # variable VAR accordingly.
2249 ac_fn_c_check_type ()
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253 $as_echo_n "checking for $2... " >&6; }
2254 if eval \${$3+:} false; then :
2255 $as_echo_n "(cached) " >&6
2256 else
2257 eval "$3=no"
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2262 main ()
2264 if (sizeof ($2))
2265 return 0;
2267 return 0;
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2275 main ()
2277 if (sizeof (($2)))
2278 return 0;
2280 return 0;
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2285 else
2286 eval "$3=yes"
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 eval ac_res=\$$3
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294 $as_echo "$ac_res" >&6; }
2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 } # ac_fn_c_check_type
2299 # ac_fn_c_check_func LINENO FUNC VAR
2300 # ----------------------------------
2301 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2302 ac_fn_c_check_func ()
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306 $as_echo_n "checking for $2... " >&6; }
2307 if eval \${$3+:} false; then :
2308 $as_echo_n "(cached) " >&6
2309 else
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2314 #define $2 innocuous_$2
2316 /* System header to define __stub macros and hopefully few prototypes,
2317 which can conflict with char $2 (); below.
2318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2319 <limits.h> exists even on freestanding compilers. */
2321 #ifdef __STDC__
2322 # include <limits.h>
2323 #else
2324 # include <assert.h>
2325 #endif
2327 #undef $2
2329 /* Override any GCC internal prototype to avoid an error.
2330 Use char because int might match the return type of a GCC
2331 builtin and then its argument prototype would still apply. */
2332 #ifdef __cplusplus
2333 extern "C"
2334 #endif
2335 char $2 ();
2336 /* The GNU C library defines this for functions which it implements
2337 to always fail with ENOSYS. Some functions are actually named
2338 something starting with __ and the normal name is an alias. */
2339 #if defined __stub_$2 || defined __stub___$2
2340 choke me
2341 #endif
2344 main ()
2346 return $2 ();
2348 return 0;
2350 _ACEOF
2351 if ac_fn_c_try_link "$LINENO"; then :
2352 eval "$3=yes"
2353 else
2354 eval "$3=no"
2356 rm -f core conftest.err conftest.$ac_objext \
2357 conftest$ac_exeext conftest.$ac_ext
2359 eval ac_res=\$$3
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364 } # ac_fn_c_check_func
2365 cat >config.log <<_ACEOF
2366 This file contains any messages produced by compilers while
2367 running configure, to aid debugging if configure makes a mistake.
2369 It was created by $as_me, which was
2370 generated by GNU Autoconf 2.69. Invocation command line was
2372 $ $0 $@
2374 _ACEOF
2375 exec 5>>config.log
2377 cat <<_ASUNAME
2378 ## --------- ##
2379 ## Platform. ##
2380 ## --------- ##
2382 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2383 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2384 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2385 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2386 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2388 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2389 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2391 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2392 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2393 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2394 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2395 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2396 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2397 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2399 _ASUNAME
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 for as_dir in $PATH
2404 IFS=$as_save_IFS
2405 test -z "$as_dir" && as_dir=.
2406 $as_echo "PATH: $as_dir"
2407 done
2408 IFS=$as_save_IFS
2410 } >&5
2412 cat >&5 <<_ACEOF
2415 ## ----------- ##
2416 ## Core tests. ##
2417 ## ----------- ##
2419 _ACEOF
2422 # Keep a trace of the command line.
2423 # Strip out --no-create and --no-recursion so they do not pile up.
2424 # Strip out --silent because we don't want to record it for future runs.
2425 # Also quote any args containing shell meta-characters.
2426 # Make two passes to allow for proper duplicate-argument suppression.
2427 ac_configure_args=
2428 ac_configure_args0=
2429 ac_configure_args1=
2430 ac_must_keep_next=false
2431 for ac_pass in 1 2
2433 for ac_arg
2435 case $ac_arg in
2436 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2438 | -silent | --silent | --silen | --sile | --sil)
2439 continue ;;
2440 *\'*)
2441 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2442 esac
2443 case $ac_pass in
2444 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2446 as_fn_append ac_configure_args1 " '$ac_arg'"
2447 if test $ac_must_keep_next = true; then
2448 ac_must_keep_next=false # Got value, back to normal.
2449 else
2450 case $ac_arg in
2451 *=* | --config-cache | -C | -disable-* | --disable-* \
2452 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2453 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2454 | -with-* | --with-* | -without-* | --without-* | --x)
2455 case "$ac_configure_args0 " in
2456 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2457 esac
2459 -* ) ac_must_keep_next=true ;;
2460 esac
2462 as_fn_append ac_configure_args " '$ac_arg'"
2464 esac
2465 done
2466 done
2467 { ac_configure_args0=; unset ac_configure_args0;}
2468 { ac_configure_args1=; unset ac_configure_args1;}
2470 # When interrupted or exit'd, cleanup temporary files, and complete
2471 # config.log. We remove comments because anyway the quotes in there
2472 # would cause problems or look ugly.
2473 # WARNING: Use '\'' to represent an apostrophe within the trap.
2474 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2475 trap 'exit_status=$?
2476 # Save into config.log some information that might help in debugging.
2478 echo
2480 $as_echo "## ---------------- ##
2481 ## Cache variables. ##
2482 ## ---------------- ##"
2483 echo
2484 # The following way of writing the cache mishandles newlines in values,
2486 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2487 eval ac_val=\$$ac_var
2488 case $ac_val in #(
2489 *${as_nl}*)
2490 case $ac_var in #(
2491 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2492 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2493 esac
2494 case $ac_var in #(
2495 _ | IFS | as_nl) ;; #(
2496 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2497 *) { eval $ac_var=; unset $ac_var;} ;;
2498 esac ;;
2499 esac
2500 done
2501 (set) 2>&1 |
2502 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2503 *${as_nl}ac_space=\ *)
2504 sed -n \
2505 "s/'\''/'\''\\\\'\'''\''/g;
2506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2507 ;; #(
2509 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2511 esac |
2512 sort
2514 echo
2516 $as_echo "## ----------------- ##
2517 ## Output variables. ##
2518 ## ----------------- ##"
2519 echo
2520 for ac_var in $ac_subst_vars
2522 eval ac_val=\$$ac_var
2523 case $ac_val in
2524 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2525 esac
2526 $as_echo "$ac_var='\''$ac_val'\''"
2527 done | sort
2528 echo
2530 if test -n "$ac_subst_files"; then
2531 $as_echo "## ------------------- ##
2532 ## File substitutions. ##
2533 ## ------------------- ##"
2534 echo
2535 for ac_var in $ac_subst_files
2537 eval ac_val=\$$ac_var
2538 case $ac_val in
2539 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2540 esac
2541 $as_echo "$ac_var='\''$ac_val'\''"
2542 done | sort
2543 echo
2546 if test -s confdefs.h; then
2547 $as_echo "## ----------- ##
2548 ## confdefs.h. ##
2549 ## ----------- ##"
2550 echo
2551 cat confdefs.h
2552 echo
2554 test "$ac_signal" != 0 &&
2555 $as_echo "$as_me: caught signal $ac_signal"
2556 $as_echo "$as_me: exit $exit_status"
2557 } >&5
2558 rm -f core *.core core.conftest.* &&
2559 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2560 exit $exit_status
2562 for ac_signal in 1 2 13 15; do
2563 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2564 done
2565 ac_signal=0
2567 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2568 rm -f -r conftest* confdefs.h
2570 $as_echo "/* confdefs.h */" > confdefs.h
2572 # Predefined preprocessor variables.
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_NAME "$PACKAGE_NAME"
2576 _ACEOF
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2580 _ACEOF
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2584 _ACEOF
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_STRING "$PACKAGE_STRING"
2588 _ACEOF
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2592 _ACEOF
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_URL "$PACKAGE_URL"
2596 _ACEOF
2599 # Let the site file select an alternate cache file if it wants to.
2600 # Prefer an explicitly selected file to automatically selected ones.
2601 ac_site_file1=NONE
2602 ac_site_file2=NONE
2603 if test -n "$CONFIG_SITE"; then
2604 # We do not want a PATH search for config.site.
2605 case $CONFIG_SITE in #((
2606 -*) ac_site_file1=./$CONFIG_SITE;;
2607 */*) ac_site_file1=$CONFIG_SITE;;
2608 *) ac_site_file1=./$CONFIG_SITE;;
2609 esac
2610 elif test "x$prefix" != xNONE; then
2611 ac_site_file1=$prefix/share/config.site
2612 ac_site_file2=$prefix/etc/config.site
2613 else
2614 ac_site_file1=$ac_default_prefix/share/config.site
2615 ac_site_file2=$ac_default_prefix/etc/config.site
2617 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2619 test "x$ac_site_file" = xNONE && continue
2620 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2622 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2623 sed 's/^/| /' "$ac_site_file" >&5
2624 . "$ac_site_file" \
2625 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627 as_fn_error $? "failed to load site script $ac_site_file
2628 See \`config.log' for more details" "$LINENO" 5; }
2630 done
2632 if test -r "$cache_file"; then
2633 # Some versions of bash will fail to source /dev/null (special files
2634 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2635 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2637 $as_echo "$as_me: loading cache $cache_file" >&6;}
2638 case $cache_file in
2639 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2640 *) . "./$cache_file";;
2641 esac
2643 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2645 $as_echo "$as_me: creating cache $cache_file" >&6;}
2646 >$cache_file
2649 as_fn_append ac_header_list " stdlib.h"
2650 as_fn_append ac_header_list " unistd.h"
2651 as_fn_append ac_header_list " sys/param.h"
2652 # Check that the precious variables saved in the cache have kept the same
2653 # value.
2654 ac_cache_corrupted=false
2655 for ac_var in $ac_precious_vars; do
2656 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2657 eval ac_new_set=\$ac_env_${ac_var}_set
2658 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2659 eval ac_new_val=\$ac_env_${ac_var}_value
2660 case $ac_old_set,$ac_new_set in
2661 set,)
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2663 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2664 ac_cache_corrupted=: ;;
2665 ,set)
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2667 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2668 ac_cache_corrupted=: ;;
2669 ,);;
2671 if test "x$ac_old_val" != "x$ac_new_val"; then
2672 # differences in whitespace do not lead to failure.
2673 ac_old_val_w=`echo x $ac_old_val`
2674 ac_new_val_w=`echo x $ac_new_val`
2675 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2677 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2678 ac_cache_corrupted=:
2679 else
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2681 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2682 eval $ac_var=\$ac_old_val
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2685 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2687 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2688 fi;;
2689 esac
2690 # Pass precious variables to config.status.
2691 if test "$ac_new_set" = set; then
2692 case $ac_new_val in
2693 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2694 *) ac_arg=$ac_var=$ac_new_val ;;
2695 esac
2696 case " $ac_configure_args " in
2697 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2698 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2699 esac
2701 done
2702 if $ac_cache_corrupted; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2706 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2707 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2709 ## -------------------- ##
2710 ## Main body of script. ##
2711 ## -------------------- ##
2713 ac_ext=c
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721 ac_aux_dir=
2722 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2723 if test -f "$ac_dir/install-sh"; then
2724 ac_aux_dir=$ac_dir
2725 ac_install_sh="$ac_aux_dir/install-sh -c"
2726 break
2727 elif test -f "$ac_dir/install.sh"; then
2728 ac_aux_dir=$ac_dir
2729 ac_install_sh="$ac_aux_dir/install.sh -c"
2730 break
2731 elif test -f "$ac_dir/shtool"; then
2732 ac_aux_dir=$ac_dir
2733 ac_install_sh="$ac_aux_dir/shtool install -c"
2734 break
2736 done
2737 if test -z "$ac_aux_dir"; then
2738 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2741 # These three variables are undocumented and unsupported,
2742 # and are intended to be withdrawn in a future Autoconf release.
2743 # They can cause serious problems if a builder's source tree is in a directory
2744 # whose full name contains unusual characters.
2745 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2746 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2747 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2751 # Check what host we are running on.
2752 # If a target is not suggested, we use this one.
2753 # Note that what we call a target, Autoconf calls a host.
2754 # Make sure we can run config.sub.
2755 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2756 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2759 $as_echo_n "checking build system type... " >&6; }
2760 if ${ac_cv_build+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 ac_build_alias=$build_alias
2764 test "x$ac_build_alias" = x &&
2765 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2766 test "x$ac_build_alias" = x &&
2767 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2768 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2769 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2773 $as_echo "$ac_cv_build" >&6; }
2774 case $ac_cv_build in
2775 *-*-*) ;;
2776 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2777 esac
2778 build=$ac_cv_build
2779 ac_save_IFS=$IFS; IFS='-'
2780 set x $ac_cv_build
2781 shift
2782 build_cpu=$1
2783 build_vendor=$2
2784 shift; shift
2785 # Remember, the first character of IFS is used to create $*,
2786 # except with old shells:
2787 build_os=$*
2788 IFS=$ac_save_IFS
2789 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2793 $as_echo_n "checking host system type... " >&6; }
2794 if ${ac_cv_host+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test "x$host_alias" = x; then
2798 ac_cv_host=$ac_cv_build
2799 else
2800 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2801 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2806 $as_echo "$ac_cv_host" >&6; }
2807 case $ac_cv_host in
2808 *-*-*) ;;
2809 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2810 esac
2811 host=$ac_cv_host
2812 ac_save_IFS=$IFS; IFS='-'
2813 set x $ac_cv_host
2814 shift
2815 host_cpu=$1
2816 host_vendor=$2
2817 shift; shift
2818 # Remember, the first character of IFS is used to create $*,
2819 # except with old shells:
2820 host_os=$*
2821 IFS=$ac_save_IFS
2822 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2826 # Default versions for the gnu tools we build
2827 default_toolchain_family=`cat ${srcdir}/config/toolchain_def`
2828 default_gcc_version=`cat ${srcdir}/config/gcc_def`
2829 exp_gcc_version=`cat ${srcdir}/config/gcc_exp`
2830 default_binutils_version=`cat ${srcdir}/config/binutils_def`
2831 default_llvm_version=`cat ${srcdir}/config/llvm_def`
2832 exp_binutils_version=`cat ${srcdir}/config/binutils_exp`
2833 default_grub2_version="2.02"
2834 target_grub2_version=$default_grub2_version
2836 # The AROS target is slightly different to the normal GNU style
2837 # format. We don't have the middle part, and we reverse the order
2838 # of the $(CPU) and $(OS) bits.
2840 # Don't strip the version of the target yet, it might be
2841 # useful on some systems.
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2844 $as_echo_n "checking for AROS style target... " >&6; }
2846 if test "$target" = "NONE" ; then
2847 target=$host_os-$host_cpu
2848 else
2849 if test "$target" = "" ; then
2850 target=$host_os-$host_cpu
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2854 $as_echo "$target" >&6; }
2856 if test "$host_os" = "mingw32" ; then
2857 PWDCMD="pwd -W"
2860 # Don't know where else to put this...
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2862 $as_echo_n "checking building AROS in... " >&6; }
2863 AROS_BUILDDIR=`${PWDCMD-pwd}`
2864 AROS_BUILDDIR_UNIX=${PWD}
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2866 $as_echo "$AROS_BUILDDIR" >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2869 $as_echo_n "checking AROS source in... " >&6; }
2870 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2871 SRCDIR=${srcpwd}
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2873 $as_echo "$SRCDIR" >&6; }
2875 # Parse the target field into something useful.
2877 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2878 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2881 # Some debug output, to be removed again.
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2883 $as_echo_n "checking for target system (debug output)... " >&6; }
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2885 $as_echo "$target_os" >&6; }
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2887 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2889 $as_echo "$target_cpu" >&6; }
2891 aros_nominal_width=800
2892 aros_nominal_height=600
2893 aros_nominal_depth=4
2896 HOST_WANTS_X11=
2897 HOST_WANTS_GLX=
2898 HOST_WANTS_SDL=
2899 HOST_WANTS_DBUS=
2900 HOST_WANTS_DLOPEN=
2902 default_c_compilers="gcc clang cc"
2904 # Check whether --with-c-compiler was given.
2905 if test "${with_c_compiler+set}" = set; then :
2906 withval=$with_c_compiler; use_c_compiler="$withval"
2907 else
2908 use_c_compiler=""
2911 if test "$use_c_compiler" = ""; then
2912 host_c_compilers="$default_c_compilers"
2913 else
2914 host_c_compilers="$use_c_compiler"
2915 CC=$use_c_compiler
2918 default_cxx_compilers="g++ clang++ c++"
2920 # Check whether --with-cxx-compiler was given.
2921 if test "${with_cxx_compiler+set}" = set; then :
2922 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2923 else
2924 use_cxx_compiler=""
2927 if test "$use_cxx_compiler" = ""; then
2928 host_cxx_compilers="$default_cxx_compilers"
2929 else
2930 host_cxx_compilers="$use_cxx_compiler"
2931 CXX=$use_cxx_compiler
2935 # The first step is to find the host binaries.
2936 # Check for a compiler.
2937 # Due to a bug in autoconf check for c++ compiler first.
2938 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2939 ac_ext=cpp
2940 ac_cpp='$CXXCPP $CPPFLAGS'
2941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2944 if test -z "$CXX"; then
2945 if test -n "$CCC"; then
2946 CXX=$CCC
2947 else
2948 if test -n "$ac_tool_prefix"; then
2949 for ac_prog in ${host_cxx_compilers}
2951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_CXX+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test -n "$CXX"; then
2959 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2972 done
2973 done
2974 IFS=$as_save_IFS
2978 CXX=$ac_cv_prog_CXX
2979 if test -n "$CXX"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2981 $as_echo "$CXX" >&6; }
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2988 test -n "$CXX" && break
2989 done
2991 if test -z "$CXX"; then
2992 ac_ct_CXX=$CXX
2993 for ac_prog in ${host_cxx_compilers}
2995 # Extract the first word of "$ac_prog", so it can be a program name with args.
2996 set dummy $ac_prog; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$ac_ct_CXX"; then
3003 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_ac_ct_CXX="$ac_prog"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3016 done
3017 done
3018 IFS=$as_save_IFS
3022 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3023 if test -n "$ac_ct_CXX"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3025 $as_echo "$ac_ct_CXX" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3032 test -n "$ac_ct_CXX" && break
3033 done
3035 if test "x$ac_ct_CXX" = x; then
3036 CXX="g++"
3037 else
3038 case $cross_compiling:$ac_tool_warned in
3039 yes:)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3043 esac
3044 CXX=$ac_ct_CXX
3050 # Provide some information about the compiler.
3051 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3052 set X $ac_compile
3053 ac_compiler=$2
3054 for ac_option in --version -v -V -qversion; do
3055 { { ac_try="$ac_compiler $ac_option >&5"
3056 case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059 esac
3060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061 $as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3063 ac_status=$?
3064 if test -s conftest.err; then
3065 sed '10a\
3066 ... rest of stderr output deleted ...
3067 10q' conftest.err >conftest.er1
3068 cat conftest.er1 >&5
3070 rm -f conftest.er1 conftest.err
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }
3073 done
3075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076 /* end confdefs.h. */
3079 main ()
3083 return 0;
3085 _ACEOF
3086 ac_clean_files_save=$ac_clean_files
3087 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3088 # Try to create an executable without -o first, disregard a.out.
3089 # It will help us diagnose broken compilers, and finding out an intuition
3090 # of exeext.
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3092 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3093 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3095 # The possible output files:
3096 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3098 ac_rmfiles=
3099 for ac_file in $ac_files
3101 case $ac_file in
3102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3103 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3104 esac
3105 done
3106 rm -f $ac_rmfiles
3108 if { { ac_try="$ac_link_default"
3109 case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112 esac
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_link_default") 2>&5
3116 ac_status=$?
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; then :
3119 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3120 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3121 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3122 # so that the user can short-circuit this test for compilers unknown to
3123 # Autoconf.
3124 for ac_file in $ac_files ''
3126 test -f "$ac_file" || continue
3127 case $ac_file in
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3130 [ab].out )
3131 # We found the default executable, but exeext='' is most
3132 # certainly right.
3133 break;;
3134 *.* )
3135 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3136 then :; else
3137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139 # We set ac_cv_exeext here because the later test for it is not
3140 # safe: cross compilers may not add the suffix if given an `-o'
3141 # argument, so we may need to know it at that point already.
3142 # Even if this section looks crufty: it has the advantage of
3143 # actually working.
3144 break;;
3146 break;;
3147 esac
3148 done
3149 test "$ac_cv_exeext" = no && ac_cv_exeext=
3151 else
3152 ac_file=''
3154 if test -z "$ac_file"; then :
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 $as_echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 as_fn_error 77 "C++ compiler cannot create executables
3163 See \`config.log' for more details" "$LINENO" 5; }
3164 else
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166 $as_echo "yes" >&6; }
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3169 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3171 $as_echo "$ac_file" >&6; }
3172 ac_exeext=$ac_cv_exeext
3174 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3175 ac_clean_files=$ac_clean_files_save
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3177 $as_echo_n "checking for suffix of executables... " >&6; }
3178 if { { ac_try="$ac_link"
3179 case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_link") 2>&5
3186 ac_status=$?
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }; then :
3189 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3190 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3191 # work properly (i.e., refer to `conftest.exe'), while it won't with
3192 # `rm'.
3193 for ac_file in conftest.exe conftest conftest.*; do
3194 test -f "$ac_file" || continue
3195 case $ac_file in
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3198 break;;
3199 * ) break;;
3200 esac
3201 done
3202 else
3203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3206 See \`config.log' for more details" "$LINENO" 5; }
3208 rm -f conftest conftest$ac_cv_exeext
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3210 $as_echo "$ac_cv_exeext" >&6; }
3212 rm -f conftest.$ac_ext
3213 EXEEXT=$ac_cv_exeext
3214 ac_exeext=$EXEEXT
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h. */
3217 #include <stdio.h>
3219 main ()
3221 FILE *f = fopen ("conftest.out", "w");
3222 return ferror (f) || fclose (f) != 0;
3225 return 0;
3227 _ACEOF
3228 ac_clean_files="$ac_clean_files conftest.out"
3229 # Check that the compiler produces executables we can run. If not, either
3230 # the compiler is broken, or we cross compile.
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3232 $as_echo_n "checking whether we are cross compiling... " >&6; }
3233 if test "$cross_compiling" != yes; then
3234 { { ac_try="$ac_link"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_link") 2>&5
3242 ac_status=$?
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }
3245 if { ac_try='./conftest$ac_cv_exeext'
3246 { { case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249 esac
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_try") 2>&5
3253 ac_status=$?
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }; }; then
3256 cross_compiling=no
3257 else
3258 if test "$cross_compiling" = maybe; then
3259 cross_compiling=yes
3260 else
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error $? "cannot run C++ compiled programs.
3264 If you meant to cross compile, use \`--host'.
3265 See \`config.log' for more details" "$LINENO" 5; }
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3270 $as_echo "$cross_compiling" >&6; }
3272 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3273 ac_clean_files=$ac_clean_files_save
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3275 $as_echo_n "checking for suffix of object files... " >&6; }
3276 if ${ac_cv_objext+:} false; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h. */
3283 main ()
3287 return 0;
3289 _ACEOF
3290 rm -f conftest.o conftest.obj
3291 if { { ac_try="$ac_compile"
3292 case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295 esac
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298 (eval "$ac_compile") 2>&5
3299 ac_status=$?
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }; then :
3302 for ac_file in conftest.o conftest.obj conftest.*; do
3303 test -f "$ac_file" || continue;
3304 case $ac_file in
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3307 break;;
3308 esac
3309 done
3310 else
3311 $as_echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316 as_fn_error $? "cannot compute suffix of object files: cannot compile
3317 See \`config.log' for more details" "$LINENO" 5; }
3319 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3322 $as_echo "$ac_cv_objext" >&6; }
3323 OBJEXT=$ac_cv_objext
3324 ac_objext=$OBJEXT
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3326 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3327 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3328 $as_echo_n "(cached) " >&6
3329 else
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3334 main ()
3336 #ifndef __GNUC__
3337 choke me
3338 #endif
3341 return 0;
3343 _ACEOF
3344 if ac_fn_cxx_try_compile "$LINENO"; then :
3345 ac_compiler_gnu=yes
3346 else
3347 ac_compiler_gnu=no
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3354 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3355 if test $ac_compiler_gnu = yes; then
3356 GXX=yes
3357 else
3358 GXX=
3360 ac_test_CXXFLAGS=${CXXFLAGS+set}
3361 ac_save_CXXFLAGS=$CXXFLAGS
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3363 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3364 if ${ac_cv_prog_cxx_g+:} false; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3368 ac_cxx_werror_flag=yes
3369 ac_cv_prog_cxx_g=no
3370 CXXFLAGS="-g"
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3375 main ()
3379 return 0;
3381 _ACEOF
3382 if ac_fn_cxx_try_compile "$LINENO"; then :
3383 ac_cv_prog_cxx_g=yes
3384 else
3385 CXXFLAGS=""
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3390 main ()
3394 return 0;
3396 _ACEOF
3397 if ac_fn_cxx_try_compile "$LINENO"; then :
3399 else
3400 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3401 CXXFLAGS="-g"
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3406 main ()
3410 return 0;
3412 _ACEOF
3413 if ac_fn_cxx_try_compile "$LINENO"; then :
3414 ac_cv_prog_cxx_g=yes
3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3421 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3424 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3425 if test "$ac_test_CXXFLAGS" = set; then
3426 CXXFLAGS=$ac_save_CXXFLAGS
3427 elif test $ac_cv_prog_cxx_g = yes; then
3428 if test "$GXX" = yes; then
3429 CXXFLAGS="-g -O2"
3430 else
3431 CXXFLAGS="-g"
3433 else
3434 if test "$GXX" = yes; then
3435 CXXFLAGS="-O2"
3436 else
3437 CXXFLAGS=
3440 ac_ext=c
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446 CXX_BASE=$CXX
3447 # Extract the first word of "$CXX", so it can be a program name with args.
3448 set dummy $CXX; ac_word=$2
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450 $as_echo_n "checking for $ac_word... " >&6; }
3451 if ${ac_cv_path_CXX+:} false; then :
3452 $as_echo_n "(cached) " >&6
3453 else
3454 case $CXX in
3455 [\\/]* | ?:[\\/]*)
3456 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3466 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3470 done
3471 done
3472 IFS=$as_save_IFS
3475 esac
3477 CXX=$ac_cv_path_CXX
3478 if test -n "$CXX"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3480 $as_echo "$CXX" >&6; }
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3487 ac_ext=c
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 if test -n "$ac_tool_prefix"; then
3493 for ac_prog in ${host_c_compilers}
3495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_CC+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3516 done
3517 done
3518 IFS=$as_save_IFS
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3532 test -n "$CC" && break
3533 done
3535 if test -z "$CC"; then
3536 ac_ct_CC=$CC
3537 for ac_prog in ${host_c_compilers}
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 if test -n "$ac_ct_CC"; then
3547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_ac_ct_CC="$ac_prog"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3560 done
3561 done
3562 IFS=$as_save_IFS
3566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3567 if test -n "$ac_ct_CC"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569 $as_echo "$ac_ct_CC" >&6; }
3570 else
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3576 test -n "$ac_ct_CC" && break
3577 done
3579 if test "x$ac_ct_CC" = x; then
3580 CC=""
3581 else
3582 case $cross_compiling:$ac_tool_warned in
3583 yes:)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3587 esac
3588 CC=$ac_ct_CC
3593 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3595 as_fn_error $? "no acceptable C compiler found in \$PATH
3596 See \`config.log' for more details" "$LINENO" 5; }
3598 # Provide some information about the compiler.
3599 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3600 set X $ac_compile
3601 ac_compiler=$2
3602 for ac_option in --version -v -V -qversion; do
3603 { { ac_try="$ac_compiler $ac_option >&5"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609 $as_echo "$ac_try_echo"; } >&5
3610 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3611 ac_status=$?
3612 if test -s conftest.err; then
3613 sed '10a\
3614 ... rest of stderr output deleted ...
3615 10q' conftest.err >conftest.er1
3616 cat conftest.er1 >&5
3618 rm -f conftest.er1 conftest.err
3619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620 test $ac_status = 0; }
3621 done
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3624 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3625 if ${ac_cv_c_compiler_gnu+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3632 main ()
3634 #ifndef __GNUC__
3635 choke me
3636 #endif
3639 return 0;
3641 _ACEOF
3642 if ac_fn_c_try_compile "$LINENO"; then :
3643 ac_compiler_gnu=yes
3644 else
3645 ac_compiler_gnu=no
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3652 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3653 if test $ac_compiler_gnu = yes; then
3654 GCC=yes
3655 else
3656 GCC=
3658 ac_test_CFLAGS=${CFLAGS+set}
3659 ac_save_CFLAGS=$CFLAGS
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3661 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3662 if ${ac_cv_prog_cc_g+:} false; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 ac_save_c_werror_flag=$ac_c_werror_flag
3666 ac_c_werror_flag=yes
3667 ac_cv_prog_cc_g=no
3668 CFLAGS="-g"
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3673 main ()
3677 return 0;
3679 _ACEOF
3680 if ac_fn_c_try_compile "$LINENO"; then :
3681 ac_cv_prog_cc_g=yes
3682 else
3683 CFLAGS=""
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3688 main ()
3692 return 0;
3694 _ACEOF
3695 if ac_fn_c_try_compile "$LINENO"; then :
3697 else
3698 ac_c_werror_flag=$ac_save_c_werror_flag
3699 CFLAGS="-g"
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3704 main ()
3708 return 0;
3710 _ACEOF
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712 ac_cv_prog_cc_g=yes
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 ac_c_werror_flag=$ac_save_c_werror_flag
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3722 $as_echo "$ac_cv_prog_cc_g" >&6; }
3723 if test "$ac_test_CFLAGS" = set; then
3724 CFLAGS=$ac_save_CFLAGS
3725 elif test $ac_cv_prog_cc_g = yes; then
3726 if test "$GCC" = yes; then
3727 CFLAGS="-g -O2"
3728 else
3729 CFLAGS="-g"
3731 else
3732 if test "$GCC" = yes; then
3733 CFLAGS="-O2"
3734 else
3735 CFLAGS=
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3739 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3740 if ${ac_cv_prog_cc_c89+:} false; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 ac_cv_prog_cc_c89=no
3744 ac_save_CC=$CC
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747 #include <stdarg.h>
3748 #include <stdio.h>
3749 struct stat;
3750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3751 struct buf { int x; };
3752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3753 static char *e (p, i)
3754 char **p;
3755 int i;
3757 return p[i];
3759 static char *f (char * (*g) (char **, int), char **p, ...)
3761 char *s;
3762 va_list v;
3763 va_start (v,p);
3764 s = g (p, va_arg (v,int));
3765 va_end (v);
3766 return s;
3769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3770 function prototypes and stuff, but not '\xHH' hex character constants.
3771 These don't provoke an error unfortunately, instead are silently treated
3772 as 'x'. The following induces an error, until -std is added to get
3773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3774 array size at least. It's necessary to write '\x00'==0 to get something
3775 that's true only with -std. */
3776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3778 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3779 inside strings and character constants. */
3780 #define FOO(x) 'x'
3781 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3783 int test (int i, double x);
3784 struct s1 {int (*f) (int a);};
3785 struct s2 {int (*f) (double a);};
3786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3787 int argc;
3788 char **argv;
3790 main ()
3792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3794 return 0;
3796 _ACEOF
3797 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3798 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3800 CC="$ac_save_CC $ac_arg"
3801 if ac_fn_c_try_compile "$LINENO"; then :
3802 ac_cv_prog_cc_c89=$ac_arg
3804 rm -f core conftest.err conftest.$ac_objext
3805 test "x$ac_cv_prog_cc_c89" != "xno" && break
3806 done
3807 rm -f conftest.$ac_ext
3808 CC=$ac_save_CC
3811 # AC_CACHE_VAL
3812 case "x$ac_cv_prog_cc_c89" in
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3815 $as_echo "none needed" >&6; } ;;
3816 xno)
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3818 $as_echo "unsupported" >&6; } ;;
3820 CC="$CC $ac_cv_prog_cc_c89"
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3822 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3823 esac
3824 if test "x$ac_cv_prog_cc_c89" != xno; then :
3828 ac_ext=c
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3834 CC_BASE=$CC
3835 ac_ext=c
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3841 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3842 # On Suns, sometimes $CPP names a directory.
3843 if test -n "$CPP" && test -d "$CPP"; then
3844 CPP=
3846 if test -z "$CPP"; then
3847 if ${ac_cv_prog_CPP+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 # Double quotes because CPP needs to be expanded
3851 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3853 ac_preproc_ok=false
3854 for ac_c_preproc_warn_flag in '' yes
3856 # Use a header file that comes with gcc, so configuring glibc
3857 # with a fresh cross-compiler works.
3858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3859 # <limits.h> exists even on freestanding compilers.
3860 # On the NeXT, cc -E runs the code through the compiler's parser,
3861 # not just through cpp. "Syntax error" is here to catch this case.
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3864 #ifdef __STDC__
3865 # include <limits.h>
3866 #else
3867 # include <assert.h>
3868 #endif
3869 Syntax error
3870 _ACEOF
3871 if ac_fn_c_try_cpp "$LINENO"; then :
3873 else
3874 # Broken: fails on valid input.
3875 continue
3877 rm -f conftest.err conftest.i conftest.$ac_ext
3879 # OK, works on sane cases. Now check whether nonexistent headers
3880 # can be detected and how.
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3883 #include <ac_nonexistent.h>
3884 _ACEOF
3885 if ac_fn_c_try_cpp "$LINENO"; then :
3886 # Broken: success on invalid input.
3887 continue
3888 else
3889 # Passes both tests.
3890 ac_preproc_ok=:
3891 break
3893 rm -f conftest.err conftest.i conftest.$ac_ext
3895 done
3896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3897 rm -f conftest.i conftest.err conftest.$ac_ext
3898 if $ac_preproc_ok; then :
3899 break
3902 done
3903 ac_cv_prog_CPP=$CPP
3906 CPP=$ac_cv_prog_CPP
3907 else
3908 ac_cv_prog_CPP=$CPP
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3911 $as_echo "$CPP" >&6; }
3912 ac_preproc_ok=false
3913 for ac_c_preproc_warn_flag in '' yes
3915 # Use a header file that comes with gcc, so configuring glibc
3916 # with a fresh cross-compiler works.
3917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3918 # <limits.h> exists even on freestanding compilers.
3919 # On the NeXT, cc -E runs the code through the compiler's parser,
3920 # not just through cpp. "Syntax error" is here to catch this case.
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #ifdef __STDC__
3924 # include <limits.h>
3925 #else
3926 # include <assert.h>
3927 #endif
3928 Syntax error
3929 _ACEOF
3930 if ac_fn_c_try_cpp "$LINENO"; then :
3932 else
3933 # Broken: fails on valid input.
3934 continue
3936 rm -f conftest.err conftest.i conftest.$ac_ext
3938 # OK, works on sane cases. Now check whether nonexistent headers
3939 # can be detected and how.
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3942 #include <ac_nonexistent.h>
3943 _ACEOF
3944 if ac_fn_c_try_cpp "$LINENO"; then :
3945 # Broken: success on invalid input.
3946 continue
3947 else
3948 # Passes both tests.
3949 ac_preproc_ok=:
3950 break
3952 rm -f conftest.err conftest.i conftest.$ac_ext
3954 done
3955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3956 rm -f conftest.i conftest.err conftest.$ac_ext
3957 if $ac_preproc_ok; then :
3959 else
3960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3962 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details" "$LINENO" 5; }
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972 CPP_BASE=$CPP
3973 # Extract the first word of "$CC", so it can be a program name with args.
3974 set dummy $CC; ac_word=$2
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 $as_echo_n "checking for $ac_word... " >&6; }
3977 if ${ac_cv_path_CC+:} false; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 case $CC in
3981 [\\/]* | ?:[\\/]*)
3982 ac_cv_path_CC="$CC" # Let the user override the test with a path.
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3992 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 break 2
3996 done
3997 done
3998 IFS=$as_save_IFS
4001 esac
4003 CC=$ac_cv_path_CC
4004 if test -n "$CC"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4006 $as_echo "$CC" >&6; }
4007 else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4013 aros_host_def_cc="$CC"
4014 case $ac_cv_prog_cc_stdc in #(
4015 no) :
4016 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4017 *) :
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4019 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4020 if ${ac_cv_prog_cc_c99+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 ac_cv_prog_cc_c99=no
4024 ac_save_CC=$CC
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4027 #include <stdarg.h>
4028 #include <stdbool.h>
4029 #include <stdlib.h>
4030 #include <wchar.h>
4031 #include <stdio.h>
4033 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4034 #define debug(...) fprintf (stderr, __VA_ARGS__)
4035 #define showlist(...) puts (#__VA_ARGS__)
4036 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4037 static void
4038 test_varargs_macros (void)
4040 int x = 1234;
4041 int y = 5678;
4042 debug ("Flag");
4043 debug ("X = %d\n", x);
4044 showlist (The first, second, and third items.);
4045 report (x>y, "x is %d but y is %d", x, y);
4048 // Check long long types.
4049 #define BIG64 18446744073709551615ull
4050 #define BIG32 4294967295ul
4051 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4052 #if !BIG_OK
4053 your preprocessor is broken;
4054 #endif
4055 #if BIG_OK
4056 #else
4057 your preprocessor is broken;
4058 #endif
4059 static long long int bignum = -9223372036854775807LL;
4060 static unsigned long long int ubignum = BIG64;
4062 struct incomplete_array
4064 int datasize;
4065 double data[];
4068 struct named_init {
4069 int number;
4070 const wchar_t *name;
4071 double average;
4074 typedef const char *ccp;
4076 static inline int
4077 test_restrict (ccp restrict text)
4079 // See if C++-style comments work.
4080 // Iterate through items via the restricted pointer.
4081 // Also check for declarations in for loops.
4082 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4083 continue;
4084 return 0;
4087 // Check varargs and va_copy.
4088 static void
4089 test_varargs (const char *format, ...)
4091 va_list args;
4092 va_start (args, format);
4093 va_list args_copy;
4094 va_copy (args_copy, args);
4096 const char *str;
4097 int number;
4098 float fnumber;
4100 while (*format)
4102 switch (*format++)
4104 case 's': // string
4105 str = va_arg (args_copy, const char *);
4106 break;
4107 case 'd': // int
4108 number = va_arg (args_copy, int);
4109 break;
4110 case 'f': // float
4111 fnumber = va_arg (args_copy, double);
4112 break;
4113 default:
4114 break;
4117 va_end (args_copy);
4118 va_end (args);
4122 main ()
4125 // Check bool.
4126 _Bool success = false;
4128 // Check restrict.
4129 if (test_restrict ("String literal") == 0)
4130 success = true;
4131 char *restrict newvar = "Another string";
4133 // Check varargs.
4134 test_varargs ("s, d' f .", "string", 65, 34.234);
4135 test_varargs_macros ();
4137 // Check flexible array members.
4138 struct incomplete_array *ia =
4139 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4140 ia->datasize = 10;
4141 for (int i = 0; i < ia->datasize; ++i)
4142 ia->data[i] = i * 1.234;
4144 // Check named initializers.
4145 struct named_init ni = {
4146 .number = 34,
4147 .name = L"Test wide string",
4148 .average = 543.34343,
4151 ni.number = 58;
4153 int dynamic_array[ni.number];
4154 dynamic_array[ni.number - 1] = 543;
4156 // work around unused variable warnings
4157 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4158 || dynamic_array[ni.number - 1] != 543);
4161 return 0;
4163 _ACEOF
4164 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4166 CC="$ac_save_CC $ac_arg"
4167 if ac_fn_c_try_compile "$LINENO"; then :
4168 ac_cv_prog_cc_c99=$ac_arg
4170 rm -f core conftest.err conftest.$ac_objext
4171 test "x$ac_cv_prog_cc_c99" != "xno" && break
4172 done
4173 rm -f conftest.$ac_ext
4174 CC=$ac_save_CC
4177 # AC_CACHE_VAL
4178 case "x$ac_cv_prog_cc_c99" in
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4181 $as_echo "none needed" >&6; } ;;
4182 xno)
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4184 $as_echo "unsupported" >&6; } ;;
4186 CC="$CC $ac_cv_prog_cc_c99"
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4188 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4189 esac
4190 if test "x$ac_cv_prog_cc_c99" != xno; then :
4191 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4192 else
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4194 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4195 if ${ac_cv_prog_cc_c89+:} false; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 ac_cv_prog_cc_c89=no
4199 ac_save_CC=$CC
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 #include <stdarg.h>
4203 #include <stdio.h>
4204 struct stat;
4205 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4206 struct buf { int x; };
4207 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4208 static char *e (p, i)
4209 char **p;
4210 int i;
4212 return p[i];
4214 static char *f (char * (*g) (char **, int), char **p, ...)
4216 char *s;
4217 va_list v;
4218 va_start (v,p);
4219 s = g (p, va_arg (v,int));
4220 va_end (v);
4221 return s;
4224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4225 function prototypes and stuff, but not '\xHH' hex character constants.
4226 These don't provoke an error unfortunately, instead are silently treated
4227 as 'x'. The following induces an error, until -std is added to get
4228 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4229 array size at least. It's necessary to write '\x00'==0 to get something
4230 that's true only with -std. */
4231 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4233 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4234 inside strings and character constants. */
4235 #define FOO(x) 'x'
4236 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4238 int test (int i, double x);
4239 struct s1 {int (*f) (int a);};
4240 struct s2 {int (*f) (double a);};
4241 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4242 int argc;
4243 char **argv;
4245 main ()
4247 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4249 return 0;
4251 _ACEOF
4252 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4253 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4255 CC="$ac_save_CC $ac_arg"
4256 if ac_fn_c_try_compile "$LINENO"; then :
4257 ac_cv_prog_cc_c89=$ac_arg
4259 rm -f core conftest.err conftest.$ac_objext
4260 test "x$ac_cv_prog_cc_c89" != "xno" && break
4261 done
4262 rm -f conftest.$ac_ext
4263 CC=$ac_save_CC
4266 # AC_CACHE_VAL
4267 case "x$ac_cv_prog_cc_c89" in
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4270 $as_echo "none needed" >&6; } ;;
4271 xno)
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4273 $as_echo "unsupported" >&6; } ;;
4275 CC="$CC $ac_cv_prog_cc_c89"
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4277 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4278 esac
4279 if test "x$ac_cv_prog_cc_c89" != xno; then :
4280 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4281 else
4282 ac_cv_prog_cc_stdc=no
4287 esac
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4289 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4290 if ${ac_cv_prog_cc_stdc+:} false; then :
4291 $as_echo_n "(cached) " >&6
4294 case $ac_cv_prog_cc_stdc in #(
4295 no) :
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4297 $as_echo "unsupported" >&6; } ;; #(
4298 '') :
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4300 $as_echo "none needed" >&6; } ;; #(
4301 *) :
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4303 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4304 esac
4306 ac_ext=c
4307 ac_cpp='$CPP $CPPFLAGS'
4308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4312 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4313 # On Suns, sometimes $CPP names a directory.
4314 if test -n "$CPP" && test -d "$CPP"; then
4315 CPP=
4317 if test -z "$CPP"; then
4318 if ${ac_cv_prog_CPP+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 # Double quotes because CPP needs to be expanded
4322 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4324 ac_preproc_ok=false
4325 for ac_c_preproc_warn_flag in '' yes
4327 # Use a header file that comes with gcc, so configuring glibc
4328 # with a fresh cross-compiler works.
4329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4330 # <limits.h> exists even on freestanding compilers.
4331 # On the NeXT, cc -E runs the code through the compiler's parser,
4332 # not just through cpp. "Syntax error" is here to catch this case.
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335 #ifdef __STDC__
4336 # include <limits.h>
4337 #else
4338 # include <assert.h>
4339 #endif
4340 Syntax error
4341 _ACEOF
4342 if ac_fn_c_try_cpp "$LINENO"; then :
4344 else
4345 # Broken: fails on valid input.
4346 continue
4348 rm -f conftest.err conftest.i conftest.$ac_ext
4350 # OK, works on sane cases. Now check whether nonexistent headers
4351 # can be detected and how.
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4354 #include <ac_nonexistent.h>
4355 _ACEOF
4356 if ac_fn_c_try_cpp "$LINENO"; then :
4357 # Broken: success on invalid input.
4358 continue
4359 else
4360 # Passes both tests.
4361 ac_preproc_ok=:
4362 break
4364 rm -f conftest.err conftest.i conftest.$ac_ext
4366 done
4367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4368 rm -f conftest.i conftest.err conftest.$ac_ext
4369 if $ac_preproc_ok; then :
4370 break
4373 done
4374 ac_cv_prog_CPP=$CPP
4377 CPP=$ac_cv_prog_CPP
4378 else
4379 ac_cv_prog_CPP=$CPP
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4382 $as_echo "$CPP" >&6; }
4383 ac_preproc_ok=false
4384 for ac_c_preproc_warn_flag in '' yes
4386 # Use a header file that comes with gcc, so configuring glibc
4387 # with a fresh cross-compiler works.
4388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4389 # <limits.h> exists even on freestanding compilers.
4390 # On the NeXT, cc -E runs the code through the compiler's parser,
4391 # not just through cpp. "Syntax error" is here to catch this case.
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #ifdef __STDC__
4395 # include <limits.h>
4396 #else
4397 # include <assert.h>
4398 #endif
4399 Syntax error
4400 _ACEOF
4401 if ac_fn_c_try_cpp "$LINENO"; then :
4403 else
4404 # Broken: fails on valid input.
4405 continue
4407 rm -f conftest.err conftest.i conftest.$ac_ext
4409 # OK, works on sane cases. Now check whether nonexistent headers
4410 # can be detected and how.
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413 #include <ac_nonexistent.h>
4414 _ACEOF
4415 if ac_fn_c_try_cpp "$LINENO"; then :
4416 # Broken: success on invalid input.
4417 continue
4418 else
4419 # Passes both tests.
4420 ac_preproc_ok=:
4421 break
4423 rm -f conftest.err conftest.i conftest.$ac_ext
4425 done
4426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4427 rm -f conftest.i conftest.err conftest.$ac_ext
4428 if $ac_preproc_ok; then :
4430 else
4431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4433 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4434 See \`config.log' for more details" "$LINENO" 5; }
4437 ac_ext=c
4438 ac_cpp='$CPP $CPPFLAGS'
4439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4444 # detect the compiler version
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which toolchain family ${CC_BASE} belongs to" >&5
4446 $as_echo_n "checking which toolchain family ${CC_BASE} belongs to... " >&6; }
4447 HOST_COMPILER_VERSION=`"$CC" --version 2>/dev/null`
4448 if test x"$HOST_COMPILER_VERSION" = "x"; then
4449 HOST_COMPILER_VERSION=`"$CC" --qversion 2>/dev/null`
4451 if test x"$HOST_COMPILER_VERSION" = "x"; then
4452 HOST_COMPILER_VERSION=`"$CC" -V 2>/dev/null`
4455 IS_SUN_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'Sun C\+\+'`
4456 if test "$IS_SUN_COMPILER" -ne "0"; then
4457 HOST_TOOLCHAIN_PREFIX=
4458 HOST_TOOLCHAIN_SUFFIX=
4459 HOST_TOOLCHAIN_FAMILY=sun
4461 IS_LLVM_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'LLVM|clang'`
4462 if test "$IS_LLVM_COMPILER" -ne "0"; then
4463 if test "$CC_BASE" != "gcc"; then
4464 HOST_TOOLCHAIN_PREFIX=llvm-
4465 HOST_TOOLCHAIN_SUFFIX="`echo $CC_BASE | sed -e \"s|clang||g\"`"
4466 HOST_TOOLCHAIN_FAMILY=llvm
4467 else
4468 IS_GNU_COMPILER=1
4471 if test "x$IS_GNU_COMPILER" = "x"; then
4472 IS_GNU_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'gcc'`
4474 if test "$IS_GNU_COMPILER" -ne "0"; then
4475 HOST_TOOLCHAIN_PREFIX=
4476 HOST_TOOLCHAIN_SUFFIX=
4477 HOST_TOOLCHAIN_FAMILY=gnu
4479 if test x"$HOST_TOOLCHAIN_FAMILY" = "x"; then
4480 HOST_TOOLCHAIN_FAMILY=unknown
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_TOOLCHAIN_FAMILY" >&5
4483 $as_echo "$HOST_TOOLCHAIN_FAMILY" >&6; }
4485 # Check for a compatible awk
4486 for ac_prog in gawk nawk
4488 # Extract the first word of "$ac_prog", so it can be a program name with args.
4489 set dummy $ac_prog; ac_word=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if ${ac_cv_prog_AWK+:} false; then :
4493 $as_echo_n "(cached) " >&6
4494 else
4495 if test -n "$AWK"; then
4496 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4497 else
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_prog_AWK="$ac_prog"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4509 done
4510 done
4511 IFS=$as_save_IFS
4515 AWK=$ac_cv_prog_AWK
4516 if test -n "$AWK"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4518 $as_echo "$AWK" >&6; }
4519 else
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4525 test -n "$AWK" && break
4526 done
4528 req_avail=yes
4529 if test "$AWK" = ""; then
4530 req_avail=no
4532 if test "$AWK" = "no"; then
4533 req_avail=no
4535 if test "$req_avail" = "no"; then
4536 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4538 # Extract the first word of "mmake", so it can be a program name with args.
4539 set dummy mmake; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if ${ac_cv_prog_MMAKE+:} false; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$MMAKE"; then
4546 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_MMAKE="mmake "
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4565 MMAKE=$ac_cv_prog_MMAKE
4566 if test -n "$MMAKE"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4568 $as_echo "$MMAKE" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4576 # Perform some default variable assignments. Note all of these will be
4577 # Regenerated from the script, so there is no need to cache them.
4579 aros_build_host=$host
4580 aros_host_cpp="$CPP"
4581 aros_host_cc="$CC"
4582 aros_host_cxx="$CXX"
4583 base_ld_name=${HOST_TOOLCHAIN_PREFIX}ld${HOST_TOOLCHAIN_SUFFIX}
4584 if test "$HOST_TOOLCHAIN_FAMILY" = "llvm"; then
4585 for ac_prog in $base_ld_name ld.lld${HOST_TOOLCHAIN_SUFFIX} ld64.lld${HOST_TOOLCHAIN_SUFFIX} ld-link${HOST_TOOLCHAIN_SUFFIX}.exe ld${HOST_TOOLCHAIN_SUFFIX}
4587 # Extract the first word of "$ac_prog", so it can be a program name with args.
4588 set dummy $ac_prog; ac_word=$2
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if ${ac_cv_prog_base_lld_name+:} false; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 if test -n "$base_lld_name"; then
4595 ac_cv_prog_base_lld_name="$base_lld_name" # Let the user override the test.
4596 else
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604 ac_cv_prog_base_lld_name="$ac_prog"
4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 break 2
4608 done
4609 done
4610 IFS=$as_save_IFS
4614 base_lld_name=$ac_cv_prog_base_lld_name
4615 if test -n "$base_lld_name"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $base_lld_name" >&5
4617 $as_echo "$base_lld_name" >&6; }
4618 else
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4624 test -n "$base_lld_name" && break
4625 done
4627 LD_BASE=$base_lld_name
4628 else
4629 # Extract the first word of "$base_ld_name", so it can be a program name with args.
4630 set dummy $base_ld_name; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if ${ac_cv_prog_LD_BASE+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 if test -n "$LD_BASE"; then
4637 ac_cv_prog_LD_BASE="$LD_BASE" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646 ac_cv_prog_LD_BASE=""
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4650 done
4651 done
4652 IFS=$as_save_IFS
4656 LD_BASE=$ac_cv_prog_LD_BASE
4657 if test -n "$LD_BASE"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_BASE" >&5
4659 $as_echo "$LD_BASE" >&6; }
4660 else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4668 if test "$LD_BASE" = ""; then
4669 ac_tool_ld=ld
4670 else
4671 ac_tool_ld=$LD_BASE
4673 if test "$GCC" = "yes"; then
4674 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
4675 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4676 set dummy `basename $aros_gcc_ld`; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if ${ac_cv_path_aros_host_ld+:} false; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 case $aros_host_ld in
4683 [\\/]* | ?:[\\/]*)
4684 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in `dirname $aros_gcc_ld`
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 break 2
4698 done
4699 done
4700 IFS=$as_save_IFS
4703 esac
4705 aros_host_ld=$ac_cv_path_aros_host_ld
4706 if test -n "$aros_host_ld"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4708 $as_echo "$aros_host_ld" >&6; }
4709 else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4716 if test "$aros_host_ld" = ""; then
4717 for ac_prog in $ac_tool_ld
4719 # Extract the first word of "$ac_prog", so it can be a program name with args.
4720 set dummy $ac_prog; ac_word=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if ${ac_cv_path_aros_host_ld+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 case $aros_host_ld in
4727 [\\/]* | ?:[\\/]*)
4728 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4742 done
4743 done
4744 IFS=$as_save_IFS
4747 esac
4749 aros_host_ld=$ac_cv_path_aros_host_ld
4750 if test -n "$aros_host_ld"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4752 $as_echo "$aros_host_ld" >&6; }
4753 else
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4759 test -n "$aros_host_ld" && break
4760 done
4764 req_avail=yes
4765 if test "$aros_host_ld" = ""; then
4766 req_avail=no
4768 if test "$aros_host_ld" = "no"; then
4769 req_avail=no
4771 if test "$req_avail" = "no"; then
4772 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4774 aros_host_make="make"
4775 aros_host_cflags="$CFLAGS"
4776 aros_host_cxxflags="$CXXFLAGS"
4777 aros_host_cppflags="$CPPFLAGS"
4778 aros_host_ldflags="$LDFLAGS"
4779 aros_host_debug="-g -O0"
4780 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4781 aros_host_mkargs="--no-print-directory"
4782 aros_host_exe_suffix="$EXEEXT"
4783 aros_host_lib_suffix=""
4785 # Ignore all compliance, AROS ROMs = 0
4786 # KickStart v1.0 = 30
4787 # KickStart v1.3 = 34
4788 # KickStart v2.0 = 37
4789 # KickStart v3.0 = 39
4790 # KickStart v3.1 = 40
4791 # AmigaOS v3.5 = 44
4792 aros_amigaos_compliance=0
4794 for ac_prog in aclocal aclocal19 aclocal-1.9
4796 # Extract the first word of "$ac_prog", so it can be a program name with args.
4797 set dummy $ac_prog; ac_word=$2
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799 $as_echo_n "checking for $ac_word... " >&6; }
4800 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 if test -n "$aros_host_aclocal"; then
4804 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4805 else
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4809 IFS=$as_save_IFS
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813 ac_cv_prog_aros_host_aclocal="$ac_prog"
4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 break 2
4817 done
4818 done
4819 IFS=$as_save_IFS
4823 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4824 if test -n "$aros_host_aclocal"; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4826 $as_echo "$aros_host_aclocal" >&6; }
4827 else
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 $as_echo "no" >&6; }
4833 test -n "$aros_host_aclocal" && break
4834 done
4836 for ac_prog in autoconf autoconf259 autoconf253
4838 # Extract the first word of "$ac_prog", so it can be a program name with args.
4839 set dummy $ac_prog; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 if test -n "$aros_host_autoconf"; then
4846 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4847 else
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4855 ac_cv_prog_aros_host_autoconf="$ac_prog"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 break 2
4859 done
4860 done
4861 IFS=$as_save_IFS
4865 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4866 if test -n "$aros_host_autoconf"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4868 $as_echo "$aros_host_autoconf" >&6; }
4869 else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4875 test -n "$aros_host_autoconf" && break
4876 done
4878 for ac_prog in autoheader autoheader259 autoheader253
4880 # Extract the first word of "$ac_prog", so it can be a program name with args.
4881 set dummy $ac_prog; ac_word=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 if test -n "$aros_host_autoheader"; then
4888 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4889 else
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4897 ac_cv_prog_aros_host_autoheader="$ac_prog"
4898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 break 2
4901 done
4902 done
4903 IFS=$as_save_IFS
4907 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4908 if test -n "$aros_host_autoheader"; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4910 $as_echo "$aros_host_autoheader" >&6; }
4911 else
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 $as_echo "no" >&6; }
4917 test -n "$aros_host_autoheader" && break
4918 done
4920 for ac_prog in automake automake19 automake-1.9
4922 # Extract the first word of "$ac_prog", so it can be a program name with args.
4923 set dummy $ac_prog; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if ${ac_cv_prog_aros_host_automake+:} false; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if test -n "$aros_host_automake"; then
4930 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4939 ac_cv_prog_aros_host_automake="$ac_prog"
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 break 2
4943 done
4944 done
4945 IFS=$as_save_IFS
4949 aros_host_automake=$ac_cv_prog_aros_host_automake
4950 if test -n "$aros_host_automake"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4952 $as_echo "$aros_host_automake" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4959 test -n "$aros_host_automake" && break
4960 done
4963 req_avail=yes
4964 if test "$aros_host_aclocal" = ""; then
4965 req_avail=no
4967 if test "$aros_host_aclocal" = "no"; then
4968 req_avail=no
4970 if test "$req_avail" = "no"; then
4971 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4973 req_avail=yes
4974 if test "$aros_host_automake" = ""; then
4975 req_avail=no
4977 if test "$aros_host_automake" = "no"; then
4978 req_avail=no
4980 if test "$req_avail" = "no"; then
4981 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4984 case "$aros_host_cc" in
4985 *clang*)
4986 aros_host_cc_pipe=""
4988 *gcc*)
4989 aros_host_cc_pipe="-pipe"
4991 icc)
4992 aros_host_cc_pipe=""
4995 aros_host_cc_pipe=""
4997 esac
4999 aros_kernel_cc_includes=""
5000 aros_target_cc_includes=""
5001 host_cc_elf=yes
5003 # ----------------------------------------------------------------------------------------
5004 # Host-specific defaults
5006 # This is the main host configuration section. It is where the host
5007 # can change the values of any variables it needs to change. We do
5008 # not look at anything that compiles to the target yet, we'll get
5009 # to that later.
5011 case "$host_os" in
5012 aros*)
5013 aros_host_arch="aros"
5014 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5015 case "$host_cpu" in
5016 *i?86*)
5017 aros_host_cpu="i386"
5019 *x86_64*)
5020 aros_host_cpu="x86_64"
5022 *powerpc*)
5023 aros_host_cpu="ppc"
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5027 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5028 aros_host_cpu="$host_cpu"
5030 esac
5033 linux*)
5034 aros_host_arch="linux"
5035 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5036 android_build_os="linux-x86"
5037 android_tool="android"
5038 default_android_sdk="/opt/android-sdk-linux_x86"
5039 case "$host_cpu" in
5040 *i?86*)
5041 aros_host_cpu="i386"
5043 *x86_64*)
5044 aros_host_cpu="x86_64"
5046 *m68k*)
5047 aros_host_cpu="m68k"
5049 *powerpc*)
5050 aros_host_cpu="ppc"
5052 *arm*)
5053 aros_host_cpu="arm"
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5057 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5058 aros_host_cpu="$host_cpu"
5060 esac
5063 freebsd*)
5064 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
5065 aros_host_make="gmake"
5066 aros_host_arch="freebsd"
5067 aros_host_cpu="i386"
5069 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
5071 case $host_os in
5072 freebsd[234]*)
5073 aros_object_format="elf_i386"
5077 aros_object_format="elf_i386_fbsd"
5079 esac
5083 darwin*)
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
5085 $as_echo_n "checking for macOS SDK files... " >&6; }
5086 LOC=$( xcode-select -p )
5087 if test $? != 0; then :
5088 as_fn_error $? "XCode incorrectly configured!
5089 please run 'xcode-select --install' before
5090 re-running configure" "$LINENO" 5
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
5093 $as_echo "$LOC" >&6; }
5094 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5095 aros_host_arch="darwin"
5096 host_cc_elf=no
5097 if [ -z ${SED+x} ]; then SED="gsed"; fi
5098 android_build_os="darwin-x86"
5099 android_tool="android"
5100 default_android_sdk="/android-sdk-mac_x86"
5101 case "$host_cpu" in
5102 *i?86*)
5103 aros_host_cpu="i386"
5105 *x86_64*)
5106 aros_host_cpu="x86_64"
5108 *powerpc*)
5109 aros_host_cpu="ppc"
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
5113 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
5114 aros_host_cpu="$host_cpu"
5116 esac
5118 aros_host_ldflags="$aros_host_ldflags -liconv"
5122 dragonfly*)
5123 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5124 aros_host_make="gmake"
5125 aros_host_arch="dragonfly"
5126 case $host_cpu in
5127 *i?86*)
5128 aros_host_cpu="i386"
5130 *amd64*)
5131 aros_host_cpu="x86_64"
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5135 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5136 aros_host_cpu="$host_cpu"
5138 esac
5141 netbsd*)
5142 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5143 aros_host_make="gmake"
5144 aros_host_arch="netbsd"
5145 case "$host_cpu" in
5146 *i?86*)
5147 aros_host_cpu="i386"
5149 *m68k*)
5150 aros_host_cpu="m68k"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5154 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5155 aros_host_cpu="$host_cpu"
5157 esac
5158 aros_host_lib_suffix=".0.0"
5161 openbsd*)
5162 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5163 aros_host_make="gmake"
5164 aros_host_arch="openbsd"
5165 case "$host_cpu" in
5166 *i?86*)
5167 aros_host_cpu="i386"
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5171 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5172 aros_host_cpu="$host_cpu"
5174 esac
5177 solaris*)
5178 aros_host_arch="solaris"
5179 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5180 case "$host_cpu" in
5181 *i?86*)
5182 aros_host_cpu="i386"
5184 *sparc*)
5185 aros_host_cpu="sparc"
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5189 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5190 aros_host_cpu="$host_cpu"
5192 esac
5195 morphos*)
5196 aros_host_arch="morphos"
5197 aros_host_cpu="ppc"
5198 host_cc_elf=no
5201 amiga*)
5202 aros_host_arch="amiga"
5203 host_cc_elf=no
5204 SORT="/gg/bin/sort"
5205 TEST="/gg/bin/test"
5206 UNIQ="/gg/bin/uniq"
5207 FOR="for"
5208 TOUCH="/gg/bin/touch"
5209 case "$host_cpu" in
5210 *m68k*)
5211 aros_host_cpu="m68k"
5213 *powerpc*)
5214 aros_host_cpu="ppc"
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5218 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5219 aros_host_cpu="$host_cpu"
5221 esac
5224 cygwin*)
5225 aros_host_arch="cygwin"
5226 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5227 host_cc_elf=no
5228 android_build_os="windows"
5229 android_tool="android.bat"
5230 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
5232 case "$host_cpu" in
5233 *i?86*)
5234 aros_host_cpu="i386"
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5238 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5239 aros_host_cpu="$host_cpu"
5241 esac
5244 mingw32*)
5245 aros_host_arch="mingw32"
5246 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5247 host_cc_elf=no
5248 android_build_os="windows"
5249 android_tool="android.bat"
5250 default_android_sdk="/c/android-sdk-windows-1.6_r1"
5252 libpng_libextra="-lws2_32"
5254 case "$host_cpu" in
5255 *i?86*)
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
5258 $as_echo_n "checking for Windows native gcc target... " >&6; }
5259 host_cpu=`gcc -dumpmachine`
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
5261 $as_echo "$host_cpu" >&6; }
5264 esac
5266 case "$host_cpu" in
5267 *i?86*)
5268 aros_host_cpu="i386"
5271 mingw32*)
5272 aros_host_cpu="i386"
5275 *x86_64*)
5276 aros_host_cpu="x86_64"
5277 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5282 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5283 aros_host_cpu="$host_cpu"
5285 esac
5288 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
5290 esac
5292 base_ar_name=${HOST_TOOLCHAIN_PREFIX}ar${HOST_TOOLCHAIN_SUFFIX}
5293 # Extract the first word of "$base_ar_name", so it can be a program name with args.
5294 set dummy $base_ar_name; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if ${ac_cv_prog_AR_BASE+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 if test -n "$AR_BASE"; then
5301 ac_cv_prog_AR_BASE="$AR_BASE" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_prog_AR_BASE="$base_ar_name "
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5314 done
5315 done
5316 IFS=$as_save_IFS
5320 AR_BASE=$ac_cv_prog_AR_BASE
5321 if test -n "$AR_BASE"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_BASE" >&5
5323 $as_echo "$AR_BASE" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5330 aros_host_ar_flags="cr"
5331 aros_host_cmd_ar="$AR_BASE $aros_host_ar_flags"
5332 # Extract the first word of "$aros_host_cmd_ar", so it can be a program name with args.
5333 set dummy $aros_host_cmd_ar; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_path_aros_host_plain_ar+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 case $aros_host_plain_ar in
5340 [\\/]* | ?:[\\/]*)
5341 ac_cv_path_aros_host_plain_ar="$aros_host_plain_ar" # Let the user override the test with a path.
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_path_aros_host_plain_ar="$as_dir/$ac_word$ac_exec_ext"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5355 done
5356 done
5357 IFS=$as_save_IFS
5359 test -z "$ac_cv_path_aros_host_plain_ar" && ac_cv_path_aros_host_plain_ar="$aros_host_cmd_ar "
5361 esac
5363 aros_host_plain_ar=$ac_cv_path_aros_host_plain_ar
5364 if test -n "$aros_host_plain_ar"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_plain_ar" >&5
5366 $as_echo "$aros_host_plain_ar" >&6; }
5367 else
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5373 aros_host_ar=`echo $aros_host_cmd_ar | sed -e "s|$base_ar_name|$aros_host_plain_ar|g"`
5374 req_avail=yes
5375 if test "$aros_host_ar" = ""; then
5376 req_avail=no
5378 if test "$aros_host_ar" = "no"; then
5379 req_avail=no
5381 if test "$req_avail" = "no"; then
5382 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5384 base_ranlib_name=${HOST_TOOLCHAIN_PREFIX}ranlib${HOST_TOOLCHAIN_SUFFIX}
5385 # Extract the first word of "$base_ranlib_name", so it can be a program name with args.
5386 set dummy $base_ranlib_name; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if ${ac_cv_prog_RANLIB_BASE+:} false; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 if test -n "$RANLIB_BASE"; then
5393 ac_cv_prog_RANLIB_BASE="$RANLIB_BASE" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_RANLIB_BASE="$base_ranlib_name "
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5406 done
5407 done
5408 IFS=$as_save_IFS
5412 RANLIB_BASE=$ac_cv_prog_RANLIB_BASE
5413 if test -n "$RANLIB_BASE"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_BASE" >&5
5415 $as_echo "$RANLIB_BASE" >&6; }
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5422 # Extract the first word of "$RANLIB_BASE", so it can be a program name with args.
5423 set dummy $RANLIB_BASE; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if ${ac_cv_path_aros_host_ranlib+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 case $aros_host_ranlib in
5430 [\\/]* | ?:[\\/]*)
5431 ac_cv_path_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test with a path.
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_path_aros_host_ranlib="$as_dir/$ac_word$ac_exec_ext"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5445 done
5446 done
5447 IFS=$as_save_IFS
5449 test -z "$ac_cv_path_aros_host_ranlib" && ac_cv_path_aros_host_ranlib="$RANLIB_BASE "
5451 esac
5453 aros_host_ranlib=$ac_cv_path_aros_host_ranlib
5454 if test -n "$aros_host_ranlib"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5456 $as_echo "$aros_host_ranlib" >&6; }
5457 else
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5463 req_avail=yes
5464 if test "$aros_host_ranlib" = ""; then
5465 req_avail=no
5467 if test "$aros_host_ranlib" = "no"; then
5468 req_avail=no
5470 if test "$req_avail" = "no"; then
5471 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5473 # Extract the first word of "strip", so it can be a program name with args.
5474 set dummy strip; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_aros_host_strip+:} false; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 if test -n "$aros_host_strip"; then
5481 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_aros_host_strip="strip "
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5494 done
5495 done
5496 IFS=$as_save_IFS
5500 aros_host_strip=$ac_cv_prog_aros_host_strip
5501 if test -n "$aros_host_strip"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5503 $as_echo "$aros_host_strip" >&6; }
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5510 req_avail=yes
5511 if test "$aros_host_strip" = ""; then
5512 req_avail=no
5514 if test "$aros_host_strip" = "no"; then
5515 req_avail=no
5517 if test "$req_avail" = "no"; then
5518 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5521 # Extract the first word of "rm", so it can be a program name with args.
5522 set dummy rm; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_prog_RM+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if test -n "$RM"; then
5529 ac_cv_prog_RM="$RM" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538 ac_cv_prog_RM="rm -rf"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5542 done
5543 done
5544 IFS=$as_save_IFS
5548 RM=$ac_cv_prog_RM
5549 if test -n "$RM"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5551 $as_echo "$RM" >&6; }
5552 else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5558 req_avail=yes
5559 if test "$RM" = ""; then
5560 req_avail=no
5562 if test "$RM" = "no"; then
5563 req_avail=no
5565 if test "$req_avail" = "no"; then
5566 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5568 # Extract the first word of "cp", so it can be a program name with args.
5569 set dummy cp; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if ${ac_cv_prog_CP+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 if test -n "$CP"; then
5576 ac_cv_prog_CP="$CP" # Let the user override the test.
5577 else
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585 ac_cv_prog_CP="cp "
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 break 2
5589 done
5590 done
5591 IFS=$as_save_IFS
5595 CP=$ac_cv_prog_CP
5596 if test -n "$CP"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5598 $as_echo "$CP" >&6; }
5599 else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5605 req_avail=yes
5606 if test "$CP" = ""; then
5607 req_avail=no
5609 if test "$CP" = "no"; then
5610 req_avail=no
5612 if test "$req_avail" = "no"; then
5613 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5615 # Extract the first word of "mv", so it can be a program name with args.
5616 set dummy mv; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_prog_MV+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621 else
5622 if test -n "$MV"; then
5623 ac_cv_prog_MV="$MV" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632 ac_cv_prog_MV="mv "
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2
5636 done
5637 done
5638 IFS=$as_save_IFS
5642 MV=$ac_cv_prog_MV
5643 if test -n "$MV"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5645 $as_echo "$MV" >&6; }
5646 else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5652 req_avail=yes
5653 if test "$MV" = ""; then
5654 req_avail=no
5656 if test "$MV" = "no"; then
5657 req_avail=no
5659 if test "$req_avail" = "no"; then
5660 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5662 # Extract the first word of "echo", so it can be a program name with args.
5663 set dummy echo; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if ${ac_cv_prog_ECHO+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 if test -n "$ECHO"; then
5670 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_ECHO="echo "
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5683 done
5684 done
5685 IFS=$as_save_IFS
5689 ECHO=$ac_cv_prog_ECHO
5690 if test -n "$ECHO"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5692 $as_echo "$ECHO" >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5699 req_avail=yes
5700 if test "$ECHO" = ""; then
5701 req_avail=no
5703 if test "$ECHO" = "no"; then
5704 req_avail=no
5706 if test "$req_avail" = "no"; then
5707 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5709 # Extract the first word of "mkdir", so it can be a program name with args.
5710 set dummy mkdir; ac_word=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if ${ac_cv_prog_MKDIR+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 if test -n "$MKDIR"; then
5717 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_MKDIR="mkdir -p"
5727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5730 done
5731 done
5732 IFS=$as_save_IFS
5736 MKDIR=$ac_cv_prog_MKDIR
5737 if test -n "$MKDIR"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5739 $as_echo "$MKDIR" >&6; }
5740 else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5746 req_avail=yes
5747 if test "$MKDIR" = ""; then
5748 req_avail=no
5750 if test "$MKDIR" = "no"; then
5751 req_avail=no
5753 if test "$req_avail" = "no"; then
5754 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5756 # Extract the first word of "touch", so it can be a program name with args.
5757 set dummy touch; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if ${ac_cv_prog_TOUCH+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if test -n "$TOUCH"; then
5764 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773 ac_cv_prog_TOUCH="touch "
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 break 2
5777 done
5778 done
5779 IFS=$as_save_IFS
5783 TOUCH=$ac_cv_prog_TOUCH
5784 if test -n "$TOUCH"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5786 $as_echo "$TOUCH" >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5793 req_avail=yes
5794 if test "$TOUCH" = ""; then
5795 req_avail=no
5797 if test "$TOUCH" = "no"; then
5798 req_avail=no
5800 if test "$req_avail" = "no"; then
5801 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5803 # Extract the first word of "sort", so it can be a program name with args.
5804 set dummy sort; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if ${ac_cv_prog_SORT+:} false; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if test -n "$SORT"; then
5811 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5820 ac_cv_prog_SORT="sort "
5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5824 done
5825 done
5826 IFS=$as_save_IFS
5830 SORT=$ac_cv_prog_SORT
5831 if test -n "$SORT"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5833 $as_echo "$SORT" >&6; }
5834 else
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5840 req_avail=yes
5841 if test "$SORT" = ""; then
5842 req_avail=no
5844 if test "$SORT" = "no"; then
5845 req_avail=no
5847 if test "$req_avail" = "no"; then
5848 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5850 # Extract the first word of "uniq", so it can be a program name with args.
5851 set dummy uniq; ac_word=$2
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853 $as_echo_n "checking for $ac_word... " >&6; }
5854 if ${ac_cv_prog_UNIQ+:} false; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 if test -n "$UNIQ"; then
5858 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5859 else
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5867 ac_cv_prog_UNIQ="uniq "
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5871 done
5872 done
5873 IFS=$as_save_IFS
5877 UNIQ=$ac_cv_prog_UNIQ
5878 if test -n "$UNIQ"; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5880 $as_echo "$UNIQ" >&6; }
5881 else
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5887 req_avail=yes
5888 if test "$UNIQ" = ""; then
5889 req_avail=no
5891 if test "$UNIQ" = "no"; then
5892 req_avail=no
5894 if test "$req_avail" = "no"; then
5895 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5897 # Extract the first word of "true", so it can be a program name with args.
5898 set dummy true; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_NOP+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if test -n "$NOP"; then
5905 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_NOP="true "
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5918 done
5919 done
5920 IFS=$as_save_IFS
5924 NOP=$ac_cv_prog_NOP
5925 if test -n "$NOP"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5927 $as_echo "$NOP" >&6; }
5928 else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5934 req_avail=yes
5935 if test "$NOP" = ""; then
5936 req_avail=no
5938 if test "$NOP" = "no"; then
5939 req_avail=no
5941 if test "$req_avail" = "no"; then
5942 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5944 # Extract the first word of "cat", so it can be a program name with args.
5945 set dummy cat; ac_word=$2
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if ${ac_cv_prog_CAT+:} false; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 if test -n "$CAT"; then
5952 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_CAT="cat "
5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5965 done
5966 done
5967 IFS=$as_save_IFS
5971 CAT=$ac_cv_prog_CAT
5972 if test -n "$CAT"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5974 $as_echo "$CAT" >&6; }
5975 else
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 $as_echo "no" >&6; }
5981 req_avail=yes
5982 if test "$CAT" = ""; then
5983 req_avail=no
5985 if test "$CAT" = "no"; then
5986 req_avail=no
5988 if test "$req_avail" = "no"; then
5989 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5991 # Extract the first word of "bison", so it can be a program name with args.
5992 set dummy bison; ac_word=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if ${ac_cv_prog_BISON+:} false; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 if test -n "$BISON"; then
5999 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008 ac_cv_prog_BISON="bison "
6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 break 2
6012 done
6013 done
6014 IFS=$as_save_IFS
6018 BISON=$ac_cv_prog_BISON
6019 if test -n "$BISON"; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
6021 $as_echo "$BISON" >&6; }
6022 else
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6028 req_avail=yes
6029 if test "$BISON" = ""; then
6030 req_avail=no
6032 if test "$BISON" = "no"; then
6033 req_avail=no
6035 if test "$req_avail" = "no"; then
6036 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
6038 # Extract the first word of "flex", so it can be a program name with args.
6039 set dummy flex; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_FLEX+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 if test -n "$FLEX"; then
6046 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055 ac_cv_prog_FLEX="flex "
6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6059 done
6060 done
6061 IFS=$as_save_IFS
6065 FLEX=$ac_cv_prog_FLEX
6066 if test -n "$FLEX"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
6068 $as_echo "$FLEX" >&6; }
6069 else
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6075 req_avail=yes
6076 if test "$FLEX" = ""; then
6077 req_avail=no
6079 if test "$FLEX" = "no"; then
6080 req_avail=no
6082 if test "$req_avail" = "no"; then
6083 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $FLEX" >&5
6086 $as_echo_n "checking version of $FLEX... " >&6; }
6087 ax_cv_flex_version="`$FLEX --version | cut -d\" \" -f2`"
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_flex_version" >&5
6089 $as_echo "$ax_cv_flex_version" >&6; }
6090 # Extract the first word of "pngtopnm", so it can be a program name with args.
6091 set dummy pngtopnm; ac_word=$2
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 $as_echo_n "checking for $ac_word... " >&6; }
6094 if ${ac_cv_prog_PNGTOPNM+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if test -n "$PNGTOPNM"; then
6098 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107 ac_cv_prog_PNGTOPNM="pngtopnm "
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6111 done
6112 done
6113 IFS=$as_save_IFS
6117 PNGTOPNM=$ac_cv_prog_PNGTOPNM
6118 if test -n "$PNGTOPNM"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
6120 $as_echo "$PNGTOPNM" >&6; }
6121 else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6127 req_avail=yes
6128 if test "$PNGTOPNM" = ""; then
6129 req_avail=no
6131 if test "$PNGTOPNM" = "no"; then
6132 req_avail=no
6134 if test "$req_avail" = "no"; then
6135 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
6137 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
6138 set dummy ppmtoilbm; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if ${ac_cv_prog_PPMTOILBM+:} false; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 if test -n "$PPMTOILBM"; then
6145 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6154 ac_cv_prog_PPMTOILBM="ppmtoilbm "
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 break 2
6158 done
6159 done
6160 IFS=$as_save_IFS
6164 PPMTOILBM=$ac_cv_prog_PPMTOILBM
6165 if test -n "$PPMTOILBM"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
6167 $as_echo "$PPMTOILBM" >&6; }
6168 else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6174 req_avail=yes
6175 if test "$PPMTOILBM" = ""; then
6176 req_avail=no
6178 if test "$PPMTOILBM" = "no"; then
6179 req_avail=no
6181 if test "$req_avail" = "no"; then
6182 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
6184 # Extract the first word of "sed", so it can be a program name with args.
6185 set dummy sed; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_prog_SED+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 if test -n "$SED"; then
6192 ac_cv_prog_SED="$SED" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201 ac_cv_prog_SED="sed "
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6205 done
6206 done
6207 IFS=$as_save_IFS
6211 SED=$ac_cv_prog_SED
6212 if test -n "$SED"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6214 $as_echo "$SED" >&6; }
6215 else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6221 req_avail=yes
6222 if test "$SED" = ""; then
6223 req_avail=no
6225 if test "$SED" = "no"; then
6226 req_avail=no
6228 if test "$req_avail" = "no"; then
6229 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
6231 # Extract the first word of "chmod", so it can be a program name with args.
6232 set dummy chmod; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if ${ac_cv_prog_CHMOD+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 if test -n "$CHMOD"; then
6239 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248 ac_cv_prog_CHMOD="chmod "
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6252 done
6253 done
6254 IFS=$as_save_IFS
6258 CHMOD=$ac_cv_prog_CHMOD
6259 if test -n "$CHMOD"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6261 $as_echo "$CHMOD" >&6; }
6262 else
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6268 req_avail=yes
6269 if test "$CHMOD" = ""; then
6270 req_avail=no
6272 if test "$CHMOD" = "no"; then
6273 req_avail=no
6275 if test "$req_avail" = "no"; then
6276 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
6278 # Extract the first word of "patch", so it can be a program name with args.
6279 set dummy patch; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_prog_PATCH+:} false; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 if test -n "$PATCH"; then
6286 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295 ac_cv_prog_PATCH="patch "
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6299 done
6300 done
6301 IFS=$as_save_IFS
6305 PATCH=$ac_cv_prog_PATCH
6306 if test -n "$PATCH"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
6308 $as_echo "$PATCH" >&6; }
6309 else
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6315 req_avail=yes
6316 if test "$PATCH" = ""; then
6317 req_avail=no
6319 if test "$PATCH" = "no"; then
6320 req_avail=no
6322 if test "$req_avail" = "no"; then
6323 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
6332 if test -n "$PYTHON"; then
6333 # If the user set $PYTHON, use it and don't search something else.
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
6335 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
6336 prog="import sys
6337 # split strings by '.' and convert to numeric. Append some zeros
6338 # because we need at least 4 digits for the hex conversion.
6339 # map returns an iterator in Python 3.0 and a list in 2.x
6340 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6341 minverhex = 0
6342 # xrange is not present in Python 3.0 and range returns an iterator
6343 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6344 sys.exit(sys.hexversion < minverhex)"
6345 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
6346 ($PYTHON -c "$prog") >&5 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; then :
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6351 $as_echo "yes" >&6; }
6352 else
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6355 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
6357 am_display_PYTHON=$PYTHON
6358 else
6359 # Otherwise, try each interpreter until we find one that satisfies
6360 # VERSION.
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
6362 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
6363 if ${am_cv_pathless_PYTHON+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6367 for am_cv_pathless_PYTHON in python python2 python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
6368 test "$am_cv_pathless_PYTHON" = none && break
6369 prog="import sys
6370 # split strings by '.' and convert to numeric. Append some zeros
6371 # because we need at least 4 digits for the hex conversion.
6372 # map returns an iterator in Python 3.0 and a list in 2.x
6373 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6374 minverhex = 0
6375 # xrange is not present in Python 3.0 and range returns an iterator
6376 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6377 sys.exit(sys.hexversion < minverhex)"
6378 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
6379 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; then :
6383 break
6385 done
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
6388 $as_echo "$am_cv_pathless_PYTHON" >&6; }
6389 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
6390 if test "$am_cv_pathless_PYTHON" = none; then
6391 PYTHON=:
6392 else
6393 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
6394 set dummy $am_cv_pathless_PYTHON; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_path_PYTHON+:} false; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 case $PYTHON in
6401 [\\/]* | ?:[\\/]*)
6402 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6416 done
6417 done
6418 IFS=$as_save_IFS
6421 esac
6423 PYTHON=$ac_cv_path_PYTHON
6424 if test -n "$PYTHON"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6426 $as_echo "$PYTHON" >&6; }
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6434 am_display_PYTHON=$am_cv_pathless_PYTHON
6438 if test "$PYTHON" = :; then
6439 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
6440 else
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
6444 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
6445 if ${am_cv_python_version+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
6451 $as_echo "$am_cv_python_version" >&6; }
6452 PYTHON_VERSION=$am_cv_python_version
6456 PYTHON_PREFIX='${prefix}'
6458 PYTHON_EXEC_PREFIX='${exec_prefix}'
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
6463 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
6464 if ${am_cv_python_platform+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6470 $as_echo "$am_cv_python_platform" >&6; }
6471 PYTHON_PLATFORM=$am_cv_python_platform
6474 # Just factor out some code duplication.
6475 am_python_setup_sysconfig="\
6476 import sys
6477 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6478 # with python 3.x. See automake bug#10227.
6479 try:
6480 import sysconfig
6481 except ImportError:
6482 can_use_sysconfig = 0
6483 else:
6484 can_use_sysconfig = 1
6485 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6486 # <https://github.com/pypa/virtualenv/issues/118>
6487 try:
6488 from platform import python_implementation
6489 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6490 can_use_sysconfig = 0
6491 except ImportError:
6492 pass"
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6496 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6497 if ${am_cv_python_pythondir+:} false; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500 if test "x$prefix" = xNONE
6501 then
6502 am_py_prefix=$ac_default_prefix
6503 else
6504 am_py_prefix=$prefix
6506 am_cv_python_pythondir=`$PYTHON -c "
6507 $am_python_setup_sysconfig
6508 if can_use_sysconfig:
6509 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6510 else:
6511 from distutils import sysconfig
6512 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6513 sys.stdout.write(sitedir)"`
6514 case $am_cv_python_pythondir in
6515 $am_py_prefix*)
6516 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6517 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6520 case $am_py_prefix in
6521 /usr|/System*) ;;
6523 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6525 esac
6527 esac
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6531 $as_echo "$am_cv_python_pythondir" >&6; }
6532 pythondir=$am_cv_python_pythondir
6536 pkgpythondir=\${pythondir}/$PACKAGE
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6540 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6541 if ${am_cv_python_pyexecdir+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 if test "x$exec_prefix" = xNONE
6545 then
6546 am_py_exec_prefix=$am_py_prefix
6547 else
6548 am_py_exec_prefix=$exec_prefix
6550 am_cv_python_pyexecdir=`$PYTHON -c "
6551 $am_python_setup_sysconfig
6552 if can_use_sysconfig:
6553 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6554 else:
6555 from distutils import sysconfig
6556 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6557 sys.stdout.write(sitedir)"`
6558 case $am_cv_python_pyexecdir in
6559 $am_py_exec_prefix*)
6560 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6561 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6564 case $am_py_exec_prefix in
6565 /usr|/System*) ;;
6567 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6569 esac
6571 esac
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6575 $as_echo "$am_cv_python_pyexecdir" >&6; }
6576 pyexecdir=$am_cv_python_pyexecdir
6580 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6588 # Check whether --enable-libpng-config was given.
6589 if test "${enable_libpng_config+set}" = set; then :
6590 enableval=$enable_libpng_config;
6593 if test "$enable_libpng_config" != "no"; then
6594 # Extract the first word of "libpng-config", so it can be a program name with args.
6595 set dummy libpng-config; ac_word=$2
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 if test -n "$arosconfig_use_libpngconfig"; then
6602 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6611 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6615 done
6616 done
6617 IFS=$as_save_IFS
6619 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6622 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6623 if test -n "$arosconfig_use_libpngconfig"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6625 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6626 else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6633 if test "$arosconfig_use_libpngconfig" = "yes"; then
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6635 $as_echo_n "checking libpng-config library... " >&6; }
6636 libpng_incdir="`libpng-config --cflags`"
6637 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6638 libpng="`libpng-config --libs`"
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6640 $as_echo "$libpng" >&6; }
6641 else
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6644 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6645 if ${ac_cv_lib_png_png_read_png+:} false; then :
6646 $as_echo_n "(cached) " >&6
6647 else
6648 ac_check_lib_save_LIBS=$LIBS
6649 LIBS="-lpng $LIBS"
6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h. */
6653 /* Override any GCC internal prototype to avoid an error.
6654 Use char because int might match the return type of a GCC
6655 builtin and then its argument prototype would still apply. */
6656 #ifdef __cplusplus
6657 extern "C"
6658 #endif
6659 char png_read_png ();
6661 main ()
6663 return png_read_png ();
6665 return 0;
6667 _ACEOF
6668 if ac_fn_c_try_link "$LINENO"; then :
6669 ac_cv_lib_png_png_read_png=yes
6670 else
6671 ac_cv_lib_png_png_read_png=no
6673 rm -f core conftest.err conftest.$ac_objext \
6674 conftest$ac_exeext conftest.$ac_ext
6675 LIBS=$ac_check_lib_save_LIBS
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6678 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6679 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6680 libpng="-lpng"
6681 else
6682 libpng="no"
6685 if test "$libpng_libextra" != ""; then
6686 if test "$libpng" != "no"; then
6687 libpng_libextra="$libpng_libextra $libpng"
6691 req_avail=yes
6692 if test "$libpng" = ""; then
6693 req_avail=no
6695 if test "$libpng" = "no"; then
6696 req_avail=no
6698 if test "$req_avail" = "no"; then
6699 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6705 FOR=for
6707 IF=if
6709 TEST=test
6711 CMP=cmp
6715 # Check for some includes for the X11 HIDD and the kernel
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6718 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6719 if ${ac_cv_path_GREP+:} false; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 if test -z "$GREP"; then
6723 ac_path_GREP_found=false
6724 # Loop through the user's path and test for each of PROGNAME-LIST
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_prog in grep ggrep; do
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6733 as_fn_executable_p "$ac_path_GREP" || continue
6734 # Check for GNU ac_path_GREP and select it if it is found.
6735 # Check for GNU $ac_path_GREP
6736 case `"$ac_path_GREP" --version 2>&1` in
6737 *GNU*)
6738 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6740 ac_count=0
6741 $as_echo_n 0123456789 >"conftest.in"
6742 while :
6744 cat "conftest.in" "conftest.in" >"conftest.tmp"
6745 mv "conftest.tmp" "conftest.in"
6746 cp "conftest.in" "conftest.nl"
6747 $as_echo 'GREP' >> "conftest.nl"
6748 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6750 as_fn_arith $ac_count + 1 && ac_count=$as_val
6751 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6752 # Best one so far, save it but keep looking for a better one
6753 ac_cv_path_GREP="$ac_path_GREP"
6754 ac_path_GREP_max=$ac_count
6756 # 10*(2^10) chars as input seems more than enough
6757 test $ac_count -gt 10 && break
6758 done
6759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6760 esac
6762 $ac_path_GREP_found && break 3
6763 done
6764 done
6765 done
6766 IFS=$as_save_IFS
6767 if test -z "$ac_cv_path_GREP"; then
6768 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6770 else
6771 ac_cv_path_GREP=$GREP
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6776 $as_echo "$ac_cv_path_GREP" >&6; }
6777 GREP="$ac_cv_path_GREP"
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6781 $as_echo_n "checking for egrep... " >&6; }
6782 if ${ac_cv_path_EGREP+:} false; then :
6783 $as_echo_n "(cached) " >&6
6784 else
6785 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6786 then ac_cv_path_EGREP="$GREP -E"
6787 else
6788 if test -z "$EGREP"; then
6789 ac_path_EGREP_found=false
6790 # Loop through the user's path and test for each of PROGNAME-LIST
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_prog in egrep; do
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6799 as_fn_executable_p "$ac_path_EGREP" || continue
6800 # Check for GNU ac_path_EGREP and select it if it is found.
6801 # Check for GNU $ac_path_EGREP
6802 case `"$ac_path_EGREP" --version 2>&1` in
6803 *GNU*)
6804 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6806 ac_count=0
6807 $as_echo_n 0123456789 >"conftest.in"
6808 while :
6810 cat "conftest.in" "conftest.in" >"conftest.tmp"
6811 mv "conftest.tmp" "conftest.in"
6812 cp "conftest.in" "conftest.nl"
6813 $as_echo 'EGREP' >> "conftest.nl"
6814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6816 as_fn_arith $ac_count + 1 && ac_count=$as_val
6817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6818 # Best one so far, save it but keep looking for a better one
6819 ac_cv_path_EGREP="$ac_path_EGREP"
6820 ac_path_EGREP_max=$ac_count
6822 # 10*(2^10) chars as input seems more than enough
6823 test $ac_count -gt 10 && break
6824 done
6825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6826 esac
6828 $ac_path_EGREP_found && break 3
6829 done
6830 done
6831 done
6832 IFS=$as_save_IFS
6833 if test -z "$ac_cv_path_EGREP"; then
6834 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6836 else
6837 ac_cv_path_EGREP=$EGREP
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6843 $as_echo "$ac_cv_path_EGREP" >&6; }
6844 EGREP="$ac_cv_path_EGREP"
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6848 $as_echo_n "checking for ANSI C header files... " >&6; }
6849 if ${ac_cv_header_stdc+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854 #include <stdlib.h>
6855 #include <stdarg.h>
6856 #include <string.h>
6857 #include <float.h>
6860 main ()
6864 return 0;
6866 _ACEOF
6867 if ac_fn_c_try_compile "$LINENO"; then :
6868 ac_cv_header_stdc=yes
6869 else
6870 ac_cv_header_stdc=no
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6874 if test $ac_cv_header_stdc = yes; then
6875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6878 #include <string.h>
6880 _ACEOF
6881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6882 $EGREP "memchr" >/dev/null 2>&1; then :
6884 else
6885 ac_cv_header_stdc=no
6887 rm -f conftest*
6891 if test $ac_cv_header_stdc = yes; then
6892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6895 #include <stdlib.h>
6897 _ACEOF
6898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6899 $EGREP "free" >/dev/null 2>&1; then :
6901 else
6902 ac_cv_header_stdc=no
6904 rm -f conftest*
6908 if test $ac_cv_header_stdc = yes; then
6909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6910 if test "$cross_compiling" = yes; then :
6912 else
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6915 #include <ctype.h>
6916 #include <stdlib.h>
6917 #if ((' ' & 0x0FF) == 0x020)
6918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6920 #else
6921 # define ISLOWER(c) \
6922 (('a' <= (c) && (c) <= 'i') \
6923 || ('j' <= (c) && (c) <= 'r') \
6924 || ('s' <= (c) && (c) <= 'z'))
6925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6926 #endif
6928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6930 main ()
6932 int i;
6933 for (i = 0; i < 256; i++)
6934 if (XOR (islower (i), ISLOWER (i))
6935 || toupper (i) != TOUPPER (i))
6936 return 2;
6937 return 0;
6939 _ACEOF
6940 if ac_fn_c_try_run "$LINENO"; then :
6942 else
6943 ac_cv_header_stdc=no
6945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6946 conftest.$ac_objext conftest.beam conftest.$ac_ext
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6952 $as_echo "$ac_cv_header_stdc" >&6; }
6953 if test $ac_cv_header_stdc = yes; then
6955 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6959 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6960 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6961 inttypes.h stdint.h unistd.h
6962 do :
6963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6964 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6966 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6967 cat >>confdefs.h <<_ACEOF
6968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6969 _ACEOF
6973 done
6976 for ac_header in sys/ipc.h sys/shm.h \
6977 sys/mmap.h sys/mman.h sysexits.h \
6978 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6980 do :
6981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6982 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6983 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6984 cat >>confdefs.h <<_ACEOF
6985 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6986 _ACEOF
6990 done
6993 for ac_header in sys/mount.h
6994 do :
6995 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6997 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6998 cat >>confdefs.h <<_ACEOF
6999 #define HAVE_SYS_MOUNT_H 1
7000 _ACEOF
7004 done
7006 for ac_header in GL/glx.h
7007 do :
7008 ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
7009 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
7010 cat >>confdefs.h <<_ACEOF
7011 #define HAVE_GL_GLX_H 1
7012 _ACEOF
7013 host_feature_glx=yes
7014 else
7015 host_feature_glx=no
7018 done
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
7022 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7026 #define __unused __attribute__((unused))
7027 #include <sys/stat.h>
7030 main ()
7034 return 0;
7036 _ACEOF
7037 if ac_fn_c_try_compile "$LINENO"; then :
7038 host_stat_h__unused_used=no
7039 else
7040 host_stat_h__unused_used=yes
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
7044 $as_echo "$host_stat_h__unused_used" >&6; }
7046 ac_header_dirent=no
7047 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7048 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7050 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7051 if eval \${$as_ac_Header+:} false; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056 #include <sys/types.h>
7057 #include <$ac_hdr>
7060 main ()
7062 if ((DIR *) 0)
7063 return 0;
7065 return 0;
7067 _ACEOF
7068 if ac_fn_c_try_compile "$LINENO"; then :
7069 eval "$as_ac_Header=yes"
7070 else
7071 eval "$as_ac_Header=no"
7073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 eval ac_res=\$$as_ac_Header
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7077 $as_echo "$ac_res" >&6; }
7078 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7079 cat >>confdefs.h <<_ACEOF
7080 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7081 _ACEOF
7083 ac_header_dirent=$ac_hdr; break
7086 done
7087 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7088 if test $ac_header_dirent = dirent.h; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7090 $as_echo_n "checking for library containing opendir... " >&6; }
7091 if ${ac_cv_search_opendir+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 ac_func_search_save_LIBS=$LIBS
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7098 /* Override any GCC internal prototype to avoid an error.
7099 Use char because int might match the return type of a GCC
7100 builtin and then its argument prototype would still apply. */
7101 #ifdef __cplusplus
7102 extern "C"
7103 #endif
7104 char opendir ();
7106 main ()
7108 return opendir ();
7110 return 0;
7112 _ACEOF
7113 for ac_lib in '' dir; do
7114 if test -z "$ac_lib"; then
7115 ac_res="none required"
7116 else
7117 ac_res=-l$ac_lib
7118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7120 if ac_fn_c_try_link "$LINENO"; then :
7121 ac_cv_search_opendir=$ac_res
7123 rm -f core conftest.err conftest.$ac_objext \
7124 conftest$ac_exeext
7125 if ${ac_cv_search_opendir+:} false; then :
7126 break
7128 done
7129 if ${ac_cv_search_opendir+:} false; then :
7131 else
7132 ac_cv_search_opendir=no
7134 rm conftest.$ac_ext
7135 LIBS=$ac_func_search_save_LIBS
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7138 $as_echo "$ac_cv_search_opendir" >&6; }
7139 ac_res=$ac_cv_search_opendir
7140 if test "$ac_res" != no; then :
7141 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7145 else
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7147 $as_echo_n "checking for library containing opendir... " >&6; }
7148 if ${ac_cv_search_opendir+:} false; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151 ac_func_search_save_LIBS=$LIBS
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7155 /* Override any GCC internal prototype to avoid an error.
7156 Use char because int might match the return type of a GCC
7157 builtin and then its argument prototype would still apply. */
7158 #ifdef __cplusplus
7159 extern "C"
7160 #endif
7161 char opendir ();
7163 main ()
7165 return opendir ();
7167 return 0;
7169 _ACEOF
7170 for ac_lib in '' x; do
7171 if test -z "$ac_lib"; then
7172 ac_res="none required"
7173 else
7174 ac_res=-l$ac_lib
7175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7177 if ac_fn_c_try_link "$LINENO"; then :
7178 ac_cv_search_opendir=$ac_res
7180 rm -f core conftest.err conftest.$ac_objext \
7181 conftest$ac_exeext
7182 if ${ac_cv_search_opendir+:} false; then :
7183 break
7185 done
7186 if ${ac_cv_search_opendir+:} false; then :
7188 else
7189 ac_cv_search_opendir=no
7191 rm conftest.$ac_ext
7192 LIBS=$ac_func_search_save_LIBS
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7195 $as_echo "$ac_cv_search_opendir" >&6; }
7196 ac_res=$ac_cv_search_opendir
7197 if test "$ac_res" != no; then :
7198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
7205 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
7206 if ${ac_cv_header_stat_broken+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211 #include <sys/types.h>
7212 #include <sys/stat.h>
7214 #if defined S_ISBLK && defined S_IFDIR
7215 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7216 #endif
7218 #if defined S_ISBLK && defined S_IFCHR
7219 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7220 #endif
7222 #if defined S_ISLNK && defined S_IFREG
7223 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7224 #endif
7226 #if defined S_ISSOCK && defined S_IFREG
7227 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7228 #endif
7230 _ACEOF
7231 if ac_fn_c_try_compile "$LINENO"; then :
7232 ac_cv_header_stat_broken=no
7233 else
7234 ac_cv_header_stat_broken=yes
7236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
7239 $as_echo "$ac_cv_header_stat_broken" >&6; }
7240 if test $ac_cv_header_stat_broken = yes; then
7242 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7247 $as_echo_n "checking for ANSI C header files... " >&6; }
7248 if ${ac_cv_header_stdc+:} false; then :
7249 $as_echo_n "(cached) " >&6
7250 else
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7253 #include <stdlib.h>
7254 #include <stdarg.h>
7255 #include <string.h>
7256 #include <float.h>
7259 main ()
7263 return 0;
7265 _ACEOF
7266 if ac_fn_c_try_compile "$LINENO"; then :
7267 ac_cv_header_stdc=yes
7268 else
7269 ac_cv_header_stdc=no
7271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273 if test $ac_cv_header_stdc = yes; then
7274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277 #include <string.h>
7279 _ACEOF
7280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7281 $EGREP "memchr" >/dev/null 2>&1; then :
7283 else
7284 ac_cv_header_stdc=no
7286 rm -f conftest*
7290 if test $ac_cv_header_stdc = yes; then
7291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7294 #include <stdlib.h>
7296 _ACEOF
7297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7298 $EGREP "free" >/dev/null 2>&1; then :
7300 else
7301 ac_cv_header_stdc=no
7303 rm -f conftest*
7307 if test $ac_cv_header_stdc = yes; then
7308 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7309 if test "$cross_compiling" = yes; then :
7311 else
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314 #include <ctype.h>
7315 #include <stdlib.h>
7316 #if ((' ' & 0x0FF) == 0x020)
7317 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7318 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7319 #else
7320 # define ISLOWER(c) \
7321 (('a' <= (c) && (c) <= 'i') \
7322 || ('j' <= (c) && (c) <= 'r') \
7323 || ('s' <= (c) && (c) <= 'z'))
7324 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7325 #endif
7327 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7329 main ()
7331 int i;
7332 for (i = 0; i < 256; i++)
7333 if (XOR (islower (i), ISLOWER (i))
7334 || toupper (i) != TOUPPER (i))
7335 return 2;
7336 return 0;
7338 _ACEOF
7339 if ac_fn_c_try_run "$LINENO"; then :
7341 else
7342 ac_cv_header_stdc=no
7344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7345 conftest.$ac_objext conftest.beam conftest.$ac_ext
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7351 $as_echo "$ac_cv_header_stdc" >&6; }
7352 if test $ac_cv_header_stdc = yes; then
7354 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7359 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7360 if ${ac_cv_header_sys_wait_h+:} false; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365 #include <sys/types.h>
7366 #include <sys/wait.h>
7367 #ifndef WEXITSTATUS
7368 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7369 #endif
7370 #ifndef WIFEXITED
7371 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7372 #endif
7375 main ()
7377 int s;
7378 wait (&s);
7379 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7381 return 0;
7383 _ACEOF
7384 if ac_fn_c_try_compile "$LINENO"; then :
7385 ac_cv_header_sys_wait_h=yes
7386 else
7387 ac_cv_header_sys_wait_h=no
7389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7392 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7393 if test $ac_cv_header_sys_wait_h = yes; then
7395 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7400 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7401 if ${ac_cv_header_time+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406 #include <sys/types.h>
7407 #include <sys/time.h>
7408 #include <time.h>
7411 main ()
7413 if ((struct tm *) 0)
7414 return 0;
7416 return 0;
7418 _ACEOF
7419 if ac_fn_c_try_compile "$LINENO"; then :
7420 ac_cv_header_time=yes
7421 else
7422 ac_cv_header_time=no
7424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7427 $as_echo "$ac_cv_header_time" >&6; }
7428 if test $ac_cv_header_time = yes; then
7430 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7434 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7435 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7437 cat >>confdefs.h <<_ACEOF
7438 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7439 _ACEOF
7442 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7447 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7448 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7450 cat >>confdefs.h <<_ACEOF
7451 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7452 _ACEOF
7455 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7457 else
7458 case " $LIBOBJS " in
7459 *" fileblocks.$ac_objext "* ) ;;
7460 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7462 esac
7467 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7468 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7470 cat >>confdefs.h <<_ACEOF
7471 #define HAVE_STRUCT_STAT_ST_RDEV 1
7472 _ACEOF
7475 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7481 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7482 if ${ac_cv_struct_tm+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 #include <sys/types.h>
7488 #include <time.h>
7491 main ()
7493 struct tm tm;
7494 int *p = &tm.tm_sec;
7495 return !p;
7497 return 0;
7499 _ACEOF
7500 if ac_fn_c_try_compile "$LINENO"; then :
7501 ac_cv_struct_tm=time.h
7502 else
7503 ac_cv_struct_tm=sys/time.h
7505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7508 $as_echo "$ac_cv_struct_tm" >&6; }
7509 if test $ac_cv_struct_tm = sys/time.h; then
7511 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7515 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7516 #include <$ac_cv_struct_tm>
7519 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7521 cat >>confdefs.h <<_ACEOF
7522 #define HAVE_STRUCT_TM_TM_ZONE 1
7523 _ACEOF
7528 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7530 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7532 else
7533 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7535 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7536 ac_have_decl=1
7537 else
7538 ac_have_decl=0
7541 cat >>confdefs.h <<_ACEOF
7542 #define HAVE_DECL_TZNAME $ac_have_decl
7543 _ACEOF
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7546 $as_echo_n "checking for tzname... " >&6; }
7547 if ${ac_cv_var_tzname+:} false; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7552 #include <time.h>
7553 #if !HAVE_DECL_TZNAME
7554 extern char *tzname[];
7555 #endif
7558 main ()
7560 return tzname[0][0];
7562 return 0;
7564 _ACEOF
7565 if ac_fn_c_try_link "$LINENO"; then :
7566 ac_cv_var_tzname=yes
7567 else
7568 ac_cv_var_tzname=no
7570 rm -f core conftest.err conftest.$ac_objext \
7571 conftest$ac_exeext conftest.$ac_ext
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7574 $as_echo "$ac_cv_var_tzname" >&6; }
7575 if test $ac_cv_var_tzname = yes; then
7577 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7582 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7583 if test "x$ac_cv_type_off_t" = xyes; then :
7585 else
7587 cat >>confdefs.h <<_ACEOF
7588 #define off_t long int
7589 _ACEOF
7593 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7594 if test "x$ac_cv_type_pid_t" = xyes; then :
7596 else
7598 cat >>confdefs.h <<_ACEOF
7599 #define pid_t int
7600 _ACEOF
7604 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7605 if test "x$ac_cv_type_size_t" = xyes; then :
7607 else
7609 cat >>confdefs.h <<_ACEOF
7610 #define size_t unsigned int
7611 _ACEOF
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7616 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7617 if ${ac_cv_type_uid_t+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7622 #include <sys/types.h>
7624 _ACEOF
7625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7626 $EGREP "uid_t" >/dev/null 2>&1; then :
7627 ac_cv_type_uid_t=yes
7628 else
7629 ac_cv_type_uid_t=no
7631 rm -f conftest*
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7635 $as_echo "$ac_cv_type_uid_t" >&6; }
7636 if test $ac_cv_type_uid_t = no; then
7638 $as_echo "#define uid_t int" >>confdefs.h
7641 $as_echo "#define gid_t int" >>confdefs.h
7646 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7647 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7649 cat >>confdefs.h <<_ACEOF
7650 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7651 _ACEOF
7657 # Look for some functions
7658 for ac_func in getpagesize kqueue statfs statvfs \
7659 clone kse_create rfork_thread thr_create sa_register \
7660 getcontext makecontext setcontext sigaltstack swapcontext
7661 do :
7662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7663 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7664 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7665 cat >>confdefs.h <<_ACEOF
7666 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7667 _ACEOF
7670 done
7676 for ac_header in $ac_header_list
7677 do :
7678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7679 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7681 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7682 cat >>confdefs.h <<_ACEOF
7683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7684 _ACEOF
7688 done
7697 for ac_func in getpagesize
7698 do :
7699 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7700 if test "x$ac_cv_func_getpagesize" = xyes; then :
7701 cat >>confdefs.h <<_ACEOF
7702 #define HAVE_GETPAGESIZE 1
7703 _ACEOF
7706 done
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7709 $as_echo_n "checking for working mmap... " >&6; }
7710 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 if test "$cross_compiling" = yes; then :
7714 ac_cv_func_mmap_fixed_mapped=no
7715 else
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 $ac_includes_default
7719 /* malloc might have been renamed as rpl_malloc. */
7720 #undef malloc
7722 /* Thanks to Mike Haertel and Jim Avera for this test.
7723 Here is a matrix of mmap possibilities:
7724 mmap private not fixed
7725 mmap private fixed at somewhere currently unmapped
7726 mmap private fixed at somewhere already mapped
7727 mmap shared not fixed
7728 mmap shared fixed at somewhere currently unmapped
7729 mmap shared fixed at somewhere already mapped
7730 For private mappings, we should verify that changes cannot be read()
7731 back from the file, nor mmap's back from the file at a different
7732 address. (There have been systems where private was not correctly
7733 implemented like the infamous i386 svr4.0, and systems where the
7734 VM page cache was not coherent with the file system buffer cache
7735 like early versions of FreeBSD and possibly contemporary NetBSD.)
7736 For shared mappings, we should conversely verify that changes get
7737 propagated back to all the places they're supposed to be.
7739 Grep wants private fixed already mapped.
7740 The main things grep needs to know about mmap are:
7741 * does it exist and is it safe to write into the mmap'd area
7742 * how to use it (BSD variants) */
7744 #include <fcntl.h>
7745 #include <sys/mman.h>
7747 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7748 char *malloc ();
7749 #endif
7751 /* This mess was copied from the GNU getpagesize.h. */
7752 #ifndef HAVE_GETPAGESIZE
7753 # ifdef _SC_PAGESIZE
7754 # define getpagesize() sysconf(_SC_PAGESIZE)
7755 # else /* no _SC_PAGESIZE */
7756 # ifdef HAVE_SYS_PARAM_H
7757 # include <sys/param.h>
7758 # ifdef EXEC_PAGESIZE
7759 # define getpagesize() EXEC_PAGESIZE
7760 # else /* no EXEC_PAGESIZE */
7761 # ifdef NBPG
7762 # define getpagesize() NBPG * CLSIZE
7763 # ifndef CLSIZE
7764 # define CLSIZE 1
7765 # endif /* no CLSIZE */
7766 # else /* no NBPG */
7767 # ifdef NBPC
7768 # define getpagesize() NBPC
7769 # else /* no NBPC */
7770 # ifdef PAGESIZE
7771 # define getpagesize() PAGESIZE
7772 # endif /* PAGESIZE */
7773 # endif /* no NBPC */
7774 # endif /* no NBPG */
7775 # endif /* no EXEC_PAGESIZE */
7776 # else /* no HAVE_SYS_PARAM_H */
7777 # define getpagesize() 8192 /* punt totally */
7778 # endif /* no HAVE_SYS_PARAM_H */
7779 # endif /* no _SC_PAGESIZE */
7781 #endif /* no HAVE_GETPAGESIZE */
7784 main ()
7786 char *data, *data2, *data3;
7787 const char *cdata2;
7788 int i, pagesize;
7789 int fd, fd2;
7791 pagesize = getpagesize ();
7793 /* First, make a file with some known garbage in it. */
7794 data = (char *) malloc (pagesize);
7795 if (!data)
7796 return 1;
7797 for (i = 0; i < pagesize; ++i)
7798 *(data + i) = rand ();
7799 umask (0);
7800 fd = creat ("conftest.mmap", 0600);
7801 if (fd < 0)
7802 return 2;
7803 if (write (fd, data, pagesize) != pagesize)
7804 return 3;
7805 close (fd);
7807 /* Next, check that the tail of a page is zero-filled. File must have
7808 non-zero length, otherwise we risk SIGBUS for entire page. */
7809 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7810 if (fd2 < 0)
7811 return 4;
7812 cdata2 = "";
7813 if (write (fd2, cdata2, 1) != 1)
7814 return 5;
7815 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7816 if (data2 == MAP_FAILED)
7817 return 6;
7818 for (i = 0; i < pagesize; ++i)
7819 if (*(data2 + i))
7820 return 7;
7821 close (fd2);
7822 if (munmap (data2, pagesize))
7823 return 8;
7825 /* Next, try to mmap the file at a fixed address which already has
7826 something else allocated at it. If we can, also make sure that
7827 we see the same garbage. */
7828 fd = open ("conftest.mmap", O_RDWR);
7829 if (fd < 0)
7830 return 9;
7831 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7832 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7833 return 10;
7834 for (i = 0; i < pagesize; ++i)
7835 if (*(data + i) != *(data2 + i))
7836 return 11;
7838 /* Finally, make sure that changes to the mapped area do not
7839 percolate back to the file as seen by read(). (This is a bug on
7840 some variants of i386 svr4.0.) */
7841 for (i = 0; i < pagesize; ++i)
7842 *(data2 + i) = *(data2 + i) + 1;
7843 data3 = (char *) malloc (pagesize);
7844 if (!data3)
7845 return 12;
7846 if (read (fd, data3, pagesize) != pagesize)
7847 return 13;
7848 for (i = 0; i < pagesize; ++i)
7849 if (*(data + i) != *(data3 + i))
7850 return 14;
7851 close (fd);
7852 free (data);
7853 free (data3);
7854 return 0;
7856 _ACEOF
7857 if ac_fn_c_try_run "$LINENO"; then :
7858 ac_cv_func_mmap_fixed_mapped=yes
7859 else
7860 ac_cv_func_mmap_fixed_mapped=no
7862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7863 conftest.$ac_objext conftest.beam conftest.$ac_ext
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7868 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7869 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7871 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7874 rm -f conftest.mmap conftest.txt
7877 #-----------------------------------------------------------------------------
7880 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7881 # it switched on by default, and we use the host compiler, so it compiles AROS
7882 # code with this enabled resulting in link failures as we don't have support
7883 # for it.
7885 # We use two methods to disable it. For the host compiler (used to compile
7886 # some hosted modules), we test to see if the compiler supports stack
7887 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7888 # work on all platforms.
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fno-stack-protector" >&5
7892 $as_echo_n "checking whether ${CC_BASE} accepts -fno-stack-protector... " >&6; }
7893 save_cflags="$CFLAGS"
7894 CFLAGS="$CFLAGS -fno-stack-protector"
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7899 main ()
7903 return 0;
7905 _ACEOF
7906 if ac_fn_c_try_compile "$LINENO"; then :
7907 use_no_stack_protector="yes"
7908 else
7909 use_no_stack_protector="no"
7911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7913 $as_echo "$use_no_stack_protector" >&6; }
7914 if test "x-$use_no_stack_protector" = "x-yes" ; then
7915 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7917 CFLAGS="$save_cflags"
7919 #-----------------------------------------------------------------------------
7921 # Disable pointer-signedness warnings if the compiler recognises the option
7922 # (this only works for the host compiler at the moment)
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -Wno-pointer-sign" >&5
7925 $as_echo_n "checking whether ${CC_BASE} accepts -Wno-pointer-sign... " >&6; }
7926 save_cflags="$CFLAGS"
7927 CFLAGS="$CFLAGS -Wno-pointer-sign"
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7932 main ()
7936 return 0;
7938 _ACEOF
7939 if ac_fn_c_try_compile "$LINENO"; then :
7940 use_no_sign_warning="yes"
7941 else
7942 use_no_sign_warning="no"
7944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7946 $as_echo "$use_no_sign_warning" >&6; }
7947 if test "x-$use_no_sign_warning" = "x-yes" ; then
7948 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7950 CFLAGS="$save_cflags"
7952 #-----------------------------------------------------------------------------
7954 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fgnu89-inline" >&5
7957 $as_echo_n "checking whether ${CC_BASE} accepts -fgnu89-inline... " >&6; }
7958 save_cflags="$CFLAGS"
7959 CFLAGS="$CFLAGS -fgnu89-inline"
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7964 main ()
7968 return 0;
7970 _ACEOF
7971 if ac_fn_c_try_compile "$LINENO"; then :
7972 use_gnu89_inline="yes"
7973 else
7974 use_gnu89_inline="no"
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7978 $as_echo "$use_gnu89_inline" >&6; }
7979 if test "x-$use_gnu89_inline" = "x-yes" ; then
7980 gnu89_inline="-fgnu89-inline"
7982 CFLAGS="$save_cflags"
7985 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7986 # On GCC >= 4.0 -iquote should be used
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -iquote" >&5
7989 $as_echo_n "checking whether ${CC_BASE} accepts -iquote... " >&6; }
7990 CFLAGS="$CFLAGS -iquote."
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7995 main ()
7999 return 0;
8001 _ACEOF
8002 if ac_fn_c_try_compile "$LINENO"; then :
8003 has_iquote="yes"
8004 else
8005 has_iquote="no"
8007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
8009 $as_echo "$has_iquote" >&6; }
8010 if test "x-$has_iquote" = "x-yes" ; then
8011 host_cflags_iquote=-iquote
8012 host_cflags_iquote_end=
8013 else
8014 host_cflags_iquote=-I
8015 host_cflags_iquote_end=-I-
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
8019 $as_echo "$as_me: Performing target configuration..." >&6;}
8022 test_kernel_cc=no
8024 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
8025 export_newline="
8028 aros_elf_translate=
8029 aros_warn_flags=
8030 aros_isa_extra=
8031 aros_isa_flags=
8032 aros_kernel_isaflags=
8033 aros_config_cppflags=
8034 aros_config_cflags=
8035 aros_config_cxxflags=
8036 aros_config_aflags="$""(WARN_ALL) -x assembler-with-cpp -c"
8037 aros_config_ldflags=""
8039 aros_shared_default=yes
8041 aros_shared_cflags="-fPIC"
8042 aros_shared_aflags=""
8043 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8044 aros_kernel_ldflags="-Wl,-rpath,./lib"
8046 aros_kernel_ar_flags="cr"
8047 aros_target_ar_flags="cr"
8048 aros_target_nm_flags="-C -ul"
8049 aros_target_strip_flags="--strip-unneeded -R.comment"
8051 aros_c_libs=
8052 aros_cxx_libs=
8054 aros_target_genmap="-Wl,-Map -Xlinker"
8056 # Native flavour stuff
8057 aros_serial_debug="0"
8059 # Palm native flavour stuff
8060 aros_palm_debug_hack="0"
8062 # Unix flavour stuff
8063 aros_nesting_supervisor="0"
8065 # Collect-aros stuff: "-ius" to ignore undefined symbols
8066 ignore_undefined_symbols=""
8068 # Check for X11 by default
8069 need_x11="auto"
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
8072 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
8074 # Check whether --with-toolchain was given.
8075 if test "${with_toolchain+set}" = set; then :
8076 withval=$with_toolchain; aros_toolchain="$withval"
8077 else
8078 aros_toolchain="$default_toolchain_family"
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
8082 $as_echo "$aros_toolchain" >&6; }
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
8086 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
8087 # Check whether --enable-lto was given.
8088 if test "${enable_lto+set}" = set; then :
8089 enableval=$enable_lto; aros_config_lto="$enableval"
8090 else
8091 aros_config_lto="no"
8094 if test "$aros_config_lto" != "no"; then
8095 aros_config_lto="yes"
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
8098 $as_echo "$aros_config_lto" >&6; }
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
8101 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
8102 # Check whether --enable-coverage was given.
8103 if test "${enable_coverage+set}" = set; then :
8104 enableval=$enable_coverage; aros_config_coverage="$enableval"
8105 else
8106 aros_config_coverage="no"
8109 if test "$aros_config_coverage" != "no"; then
8110 aros_config_coverage="yes"
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
8113 $as_echo "$aros_config_coverage" >&6; }
8115 use_ld_wrapper=yes
8117 case "$aros_toolchain" in
8118 *llvm*)
8119 toolchain_c_compiler="clang"
8120 toolchain_cxx_compiler="clang++"
8121 toolchain_cpp_preprocessor="clang"
8122 toolchain_cpp_opts=" -E"
8123 toolchain_ld="ld.lld"
8124 aros_ld="ld"
8125 toolchain_as="llvm-as"
8126 toolchain_ar="llvm-ar"
8127 toolchain_ranlib="llvm-ranlib"
8128 toolchain_nm="llvm-nm"
8129 toolchain_strip="true"
8130 toolchain_objcopy="llvm-objcopy"
8131 toolchain_objdump="llvm-objdump"
8132 use_libatomic=yes
8133 toolchain_def_opt_lvl="-O2"
8134 toolchain_debug_opt_lvl="-O0"
8135 toolchain_size_opt_lvl="-Os"
8137 *gnu*)
8138 toolchain_c_compiler="gcc"
8139 toolchain_cxx_compiler="g++"
8140 toolchain_cpp_preprocessor="gcc"
8141 toolchain_cpp_opts=" -E"
8142 toolchain_as="as"
8143 aros_ld="ld"
8144 if test "$aros_config_lto" != "yes"; then
8145 toolchain_ld="ld"
8146 toolchain_ar="ar"
8147 toolchain_ranlib="ranlib"
8148 toolchain_nm="nm"
8149 else
8150 toolchain_ld="ld.bfd"
8151 toolchain_ar="gcc-ar"
8152 toolchain_ranlib="gcc-ranlib"
8153 toolchain_nm="gcc-nm"
8155 toolchain_strip="strip"
8156 toolchain_objcopy="objcopy"
8157 toolchain_objdump="objdump"
8158 use_libatomic=yes
8159 toolchain_def_opt_lvl="-O2"
8160 toolchain_debug_opt_lvl="-O0"
8161 toolchain_size_opt_lvl="-Os"
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
8165 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
8166 toolchain_c_compiler="cc"
8167 toolchain_cxx_compiler="c++"
8168 toolchain_cpp_preprocessor="cpp"
8169 toolchain_cpp_opts=
8170 toolchain_ld="ld"
8171 aros_ld="ld"
8172 toolchain_as="as"
8173 toolchain_ar="ar"
8174 toolchain_ranlib="ranlib"
8175 toolchain_nm="nm"
8176 toolchain_strip="strip"
8177 toolchain_objcopy="objcopy"
8178 toolchain_objdump="objdump"
8180 esac
8182 #-----------------------------------------------------------------------------
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
8185 $as_echo_n "checking which type of build to do... " >&6; }
8186 # Check whether --enable-build_type was given.
8187 if test "${enable_build_type+set}" = set; then :
8188 enableval=$enable_build_type; build_type=$enableval
8189 else
8190 build_type="personal"
8194 if test "$build_type" = "nightly"; then
8195 build_type_string="NIGHTLY"
8196 elif test "$build_type" = "snapshot"; then
8197 build_type_string="SNAPSHOT"
8198 elif test "$build_type" = "milestone"; then
8199 build_type_string="MILESTONE"
8200 elif test "$build_type" = "release"; then
8201 build_type_string="RELEASE"
8202 else
8203 build_type_string="PERSONAL"
8204 build_type="personal"
8207 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
8210 $as_echo "$build_type" >&6; }
8212 #-----------------------------------------------------------------------------
8213 all_debug_types="messages stack modules mungwall symbols"
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
8216 $as_echo_n "checking which debug types to enable... " >&6; }
8217 # Check whether --enable-debug was given.
8218 if test "${enable_debug+set}" = set; then :
8219 enableval=$enable_debug; debug="$enableval"
8220 else
8221 debug=""
8225 if test "$debug" = "" -o "$debug" = "no"; then
8226 debug="none"
8227 elif test "$debug" = "yes"; then
8228 debug="all"
8231 if test "$debug" = "all" ; then
8232 debug="messages stack modules symbols"
8233 for d in $all_debug_types; do
8234 export aros_${d}_debug="1"
8235 done
8236 else
8237 for d in $all_debug_types; do
8238 export aros_${d}_debug="0"
8239 done
8242 if test "$debug" != "none"; then
8243 debug=`echo $debug | sed s/,/\ /g`
8244 for d in $debug; do
8245 found="0"
8246 for d2 in $all_debug_types; do
8247 if test "$d2" = "$d"; then
8248 found="1"
8249 break
8251 done
8252 if test "$found" = "0"; then
8253 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
8255 export aros_${d}_debug="1"
8256 done
8257 aros_debug="yes"
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
8260 $as_echo "$debug" >&6; }
8262 if test "$aros_messages_debug" = "1"; then
8263 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8264 else
8265 aros_messages_debug=""
8267 if test "$aros_symbols_debug" = "1"; then
8268 aros_symbols_debug="-g"
8269 else
8270 aros_symbols_debug=""
8273 # These are the flags to pass when compiling debugged programs
8274 aros_debug_cppflags="$aros_messages_debug"
8275 aros_debug_cflags="$aros_symbols_debug"
8276 aros_debug_cxxflags=
8277 aros_debug_aflags=""
8278 aros_debug_ldflags="$aros_symbols_debug"
8280 #-----------------------------------------------------------------------------
8281 # Checking for distcc and ccache.
8283 # Always apply the transforms in this particular order. Basically you should
8284 # always run 'ccache distcc compiler' in that order for the best performance.
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
8287 $as_echo_n "checking whether to enable distcc... " >&6; }
8288 # Check whether --enable-distcc was given.
8289 if test "${enable_distcc+set}" = set; then :
8290 enableval=$enable_distcc; distcc="$enableval"
8291 else
8292 distcc="no"
8295 if test "$distcc" != "" -a "$distcc" != "no"; then
8296 # AC_CHECK_PROG will print out the result in this case
8297 # Extract the first word of "distcc", so it can be a program name with args.
8298 set dummy distcc; ac_word=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if ${ac_cv_path_DISTCC+:} false; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 case $DISTCC in
8305 [\\/]* | ?:[\\/]*)
8306 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8316 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 break 2
8320 done
8321 done
8322 IFS=$as_save_IFS
8324 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8326 esac
8328 DISTCC=$ac_cv_path_DISTCC
8329 if test -n "$DISTCC"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
8331 $as_echo "$DISTCC" >&6; }
8332 else
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8338 else
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
8344 $as_echo_n "checking whether to enable ccache... " >&6; }
8345 # Check whether --enable-ccache was given.
8346 if test "${enable_ccache+set}" = set; then :
8347 enableval=$enable_ccache; ccache="$enableval"
8348 else
8349 ccache="no"
8352 if test "$ccache" != "" -a "$ccache" != "no"; then
8353 # AC_CHECK_PROG will print out the result in this case
8354 # Extract the first word of "ccache", so it can be a program name with args.
8355 set dummy ccache; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_prog_CCACHE+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 if test -n "$CCACHE"; then
8362 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8371 ac_cv_prog_CCACHE="ccache"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8375 done
8376 done
8377 IFS=$as_save_IFS
8381 CCACHE=$ac_cv_prog_CCACHE
8382 if test -n "$CCACHE"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
8384 $as_echo "$CCACHE" >&6; }
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8391 else
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 $as_echo "no" >&6; }
8396 #-----------------------------------------------------------------------------
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
8398 $as_echo_n "checking what specific host gcc version to use... " >&6; }
8400 # Check whether --with-kernel-gcc-version was given.
8401 if test "${with_kernel_gcc_version+set}" = set; then :
8402 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
8403 else
8404 kernel_tool_version=""
8407 if test "$kernel_tool_version" != "" ; then
8408 msg_result=$kernel_tool_version
8409 else
8410 msg_result="default"
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8413 $as_echo "$msg_result" >&6; }
8415 #-----------------------------------------------------------------------------
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
8417 $as_echo_n "checking what optimization flags to use... " >&6; }
8419 # Check whether --with-optimization was given.
8420 if test "${with_optimization+set}" = set; then :
8421 withval=$with_optimization; optimization_level="$withval"
8422 else
8423 optimization_level="unknown"
8426 if test "$optimization_level" = "unknown"; then
8427 optimization="default"
8428 if test "$debug" != "none"; then
8429 optimization_level=$toolchain_debug_opt_lvl
8430 else
8431 optimization_level=$toolchain_def_opt_lvl
8433 else
8434 optimization="$optimization_level"
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
8437 $as_echo "$optimization" >&6; }
8439 paranoia_default=yes
8440 #-----------------------------------------------------------------------------
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
8442 $as_echo_n "checking which paranoia flags to use... " >&6; }
8444 # Check whether --with-paranoia was given.
8445 if test "${with_paranoia+set}" = set; then :
8446 withval=$with_paranoia; paranoia_flags="$withval"
8447 else
8448 paranoia_flags="$paranoia_default"
8451 if test "$paranoia_flags" = "no"; then
8452 paranoia_flags="$""(WARN_ALL) -Werror-implicit-function-declaration"
8453 msg_result="none"
8454 else
8455 if test "$paranoia_flags" = "yes"; then
8456 paranoia_flags="$""(WARN_ALL) $""(WARN_ERROR)"
8458 msg_result="$paranoia_flags"
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8461 $as_echo "$msg_result" >&6; }
8462 aros_warn_flags="$aros_warn_flags $paranoia_flags"
8464 #-----------------------------------------------------------------------------
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
8466 $as_echo_n "checking what target variant to enable... " >&6; }
8467 # Check whether --enable-target_variant was given.
8468 if test "${enable_target_variant+set}" = set; then :
8469 enableval=$enable_target_variant; target_variant=$enableval
8470 else
8471 target_variant=""
8474 if test "$target_variant" = ""; then
8475 aros_target_variant=""
8476 aros_target_suffix=""
8477 enableval="none"
8478 else
8479 aros_target_variant="$target_variant"
8480 aros_target_suffix="-$target_variant"
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8483 $as_echo "$enableval" >&6; }
8485 #-----------------------------------------------------------------------------
8486 # Target-specific defaults. You can override then on a per-target basis.
8488 # Bootloader name. Currently used by PC target.
8489 target_bootloader="none"
8490 PLATFORM_EXECSMP=
8491 ENABLE_EXECSMP=
8493 #-----------------------------------------------------------------------------
8494 # Additional options for some specific targets
8496 case "$aros_target_variant" in
8497 ios)
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8499 $as_echo_n "checking XCode path... " >&6; }
8501 # Check whether --with-xcode was given.
8502 if test "${with_xcode+set}" = set; then :
8503 withval=$with_xcode; aros_xcode_path="$withval"
8504 else
8505 aros_xcode_path="/Developer"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8509 $as_echo "$aros_xcode_path" >&6; }
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8512 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8514 # Check whether --with-sdk-version was given.
8515 if test "${with_sdk_version+set}" = set; then :
8516 withval=$with_sdk_version; aros_sdk_version="$withval"
8517 else
8518 aros_sdk_version="4.1"
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8522 $as_echo "$aros_sdk_version" >&6; }
8526 "android")
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8528 $as_echo_n "checking Android SDK path... " >&6; }
8530 # Check whether --with-sdk was given.
8531 if test "${with_sdk+set}" = set; then :
8532 withval=$with_sdk; aros_android_sdk="$withval"
8533 else
8534 aros_android_sdk=$default_android_sdk
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8538 $as_echo "$aros_android_sdk" >&6; }
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8541 $as_echo_n "checking Android NDK path... " >&6; }
8543 # Check whether --with-ndk was given.
8544 if test "${with_ndk+set}" = set; then :
8545 withval=$with_ndk; aros_android_ndk="$withval"
8546 else
8547 aros_android_ndk="none"
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8551 $as_echo "$aros_android_ndk" >&6; }
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8554 $as_echo_n "checking what Android SDK version to use... " >&6; }
8556 # Check whether --with-sdk-version was given.
8557 if test "${with_sdk_version+set}" = set; then :
8558 withval=$with_sdk_version; aros_sdk_version="$withval"
8559 else
8560 aros_sdk_version="12"
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8564 $as_echo "$aros_sdk_version" >&6; }
8566 aros_android_level=android-$aros_sdk_version
8567 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8568 echo "Platform $aros_android_level is not installed in your SDK"
8569 echo "Use --with-sdk-version=<API level number> to select another platform version"
8570 echo "You can check what plaform versions are installed in your SDK"
8571 echo "by examining contents of $aros_android_sdk/platforms directory"
8572 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8575 export PATH="$aros_android_sdk/tools:$PATH"
8576 # Extract the first word of "$android_tool", so it can be a program name with args.
8577 set dummy $android_tool; ac_word=$2
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579 $as_echo_n "checking for $ac_word... " >&6; }
8580 if ${ac_cv_path_android_tool+:} false; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 case $android_tool in
8584 [\\/]* | ?:[\\/]*)
8585 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589 for as_dir in $PATH
8591 IFS=$as_save_IFS
8592 test -z "$as_dir" && as_dir=.
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8595 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8597 break 2
8599 done
8600 done
8601 IFS=$as_save_IFS
8604 esac
8606 android_tool=$ac_cv_path_android_tool
8607 if test -n "$android_tool"; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8609 $as_echo "$android_tool" >&6; }
8610 else
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 $as_echo "no" >&6; }
8616 req_avail=yes
8617 if test "$android_tool" = ""; then
8618 req_avail=no
8620 if test "$android_tool" = "no"; then
8621 req_avail=no
8623 if test "$req_avail" = "no"; then
8624 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8627 if test "$aros_android_ndk" != "none"; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8629 $as_echo_n "checking what Android NDK version to use... " >&6; }
8631 # Check whether --with-ndk-version was given.
8632 if test "${with_ndk_version+set}" = set; then :
8633 withval=$with_ndk_version; aros_ndk_version="$withval"
8634 else
8635 aros_ndk_version="9"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8639 $as_echo "$aros_ndk_version" >&6; }
8642 # Extract the first word of "ant", so it can be a program name with args.
8643 set dummy ant; ac_word=$2
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645 $as_echo_n "checking for $ac_word... " >&6; }
8646 if ${ac_cv_path_ant+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 case $ant in
8650 [\\/]* | ?:[\\/]*)
8651 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8665 done
8666 done
8667 IFS=$as_save_IFS
8670 esac
8672 ant=$ac_cv_path_ant
8673 if test -n "$ant"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8675 $as_echo "$ant" >&6; }
8676 else
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8682 if test "$ant" = ""; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8684 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8688 $as_echo_n "checking Build debug or release apk... " >&6; }
8690 # Check whether --with-apk-version was given.
8691 if test "${with_apk_version+set}" = set; then :
8692 withval=$with_apk_version; aros_android_antapk=$withval
8693 else
8694 aros_android_antapk=release
8697 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8698 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8701 $as_echo "$aros_android_antapk" >&6; }
8703 target_extra_cfg+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8704 host_extra_cfg+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8705 aros_target_options+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8707 if test "$host_os" = "mingw32"; then
8708 android_tool="cmd //c $android_tool"
8711 need_dlopen="no"
8714 esac
8716 #-----------------------------------------------------------------------------
8717 # External toolchains
8718 kernel_tool_prefix="none"
8719 aros_tool_prefix="none"
8720 elf_tool_prefix="${target_cpu}-elf-"
8722 # Base target cpu ISA configuration switch.
8723 case "$target_cpu" in
8724 *aarch64*)
8726 *arm*)
8728 *m68k*)
8729 m68k_isa_extra="ISA_MC68000_FLAGS = -march=68000"
8730 m68k_020_isa_extra="ISA_MC68020_FLAGS = -march=68020"
8731 m68k_030_isa_extra="ISA_MC68030_FLAGS = -march=68030"
8732 m68k_040_isa_extra="ISA_MC68040_FLAGS = -march=68040"
8733 m68k_060_isa_extra="ISA_MC68060_FLAGS = -march=68060"
8734 m68k_ac080_isa_extra="ISA_AC68080_FLAGS = -march=68040"
8735 m68k_020_ext="ISA_MC68020_EXT :=020"
8736 m68k_030_ext="ISA_MC68030_EXT :=030"
8737 m68k_040_ext="ISA_MC68040_EXT :=040"
8738 m68k_060_ext="ISA_MC68060_EXT :=060"
8739 m68k_020_cflags="ISA_MC68020_CFLAGS ="
8740 m68k_030_cflags="ISA_MC68030_CFLAGS ="
8741 m68k_040_cflags="ISA_MC68040_CFLAGS ="
8742 m68k_060_cflags="ISA_MC68060_CFLAGS ="
8743 m68k_020_cppflags="ISA_MC68020_CPPFLAGS ="
8744 m68k_030_cppflags="ISA_MC68030_CPPFLAGS ="
8745 m68k_040_cppflags="ISA_MC68040_CPPFLAGS ="
8746 m68k_060_cppflags="ISA_MC68060_CPPFLAGS ="
8747 m68k_020_ldflags="ISA_MC68020_LDFLAGS ="
8748 m68k_030_ldflags="ISA_MC68030_LDFLAGS ="
8749 m68k_040_ldflags="ISA_MC68040_LDFLAGS ="
8750 m68k_060_ldflags="ISA_MC68060_LDFLAGS ="
8752 *x86_64* | *i?86*)
8753 x86_isa_extra="ISA_X86_FLAGS = -m32 -march=i486"
8754 x86_64_isa_extra="ISA_X8664_FLAGS = -mcmodel=large"
8756 *powerpc*)
8758 esac
8760 # This is the target configuration switch.
8761 case "$target_os" in
8762 linux*)
8763 HOST_WANTS_X11=yes
8764 HOST_WANTS_GLX=yes
8765 HOST_WANTS_SDL=yes
8766 HOST_WANTS_DBUS=yes
8767 HOST_WANTS_DLOPEN=yes
8768 aros_target_arch="linux"
8769 aros_target_family="unix"
8770 case "$target_cpu" in
8771 *m68k*)
8772 aros_target_cpu="m68k"
8773 aros_object_format="m68kelf"
8774 aros_flavour="emulcompat"
8775 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8776 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8777 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8778 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8779 gcc_target_cpu="mc68000"
8781 *i?86*)
8782 aros_target_cpu="i386"
8783 aros_object_format="elf_i386"
8784 aros_flavour="emulation"
8785 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8786 aros_isa_flags="$""(ISA_X86_FLAGS)"
8787 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8788 aros_kernel_ldflags="-Wl,-melf_i386"
8789 aros_nominal_depth=8
8790 gcc_target_cpu="i386"
8791 pci_hidd_target="hidd-pci-linux"
8792 android_tool_dir_prefix="x86"
8793 android_tool_prefix="i686-android-linux"
8794 android_ndk_arch="x86"
8796 *x86_64*)
8797 aros_target_cpu="x86_64"
8798 aros_object_format="elf_x86_64"
8799 aros_flavour="emulation"
8800 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8801 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8802 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8803 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8804 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8805 aros_nominal_depth=8
8806 pci_hidd_target="hidd-pci-linux"
8808 *powerpc*)
8809 aros_target_cpu="ppc"
8810 aros_object_format="elf32ppc"
8811 aros_flavour="emulation"
8812 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8813 aros_nominal_depth=8
8814 gcc_target_cpu="ppc"
8816 # TODO
8817 # Same as powerpc, but I need this for the nightly build to work again.
8818 # Actually, the nightly should be made working with powerpc target.
8819 # That just was too much work for the moment, another week or two.
8820 *ppc*)
8821 aros_target_cpu="ppc"
8822 aros_object_format="elf32ppc"
8823 aros_flavour="emulation"
8824 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8825 aros_nominal_depth=8
8826 gcc_target_cpu="ppc"
8828 *aarch64*)
8829 aros_target_cpu="aarch64"
8830 target_cpu="aarch64"
8831 aros_object_format="aarch64elf_aros"
8832 aros_flavour="emulation"
8833 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8834 gcc_target_cpu="aarch64"
8835 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8836 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8837 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8838 aros_c_libs="$aros_c_libs -laeabi"
8839 gcc_default_float_abi="hard"
8840 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8842 *armhf*)
8843 aros_target_cpu="arm"
8844 target_cpu="arm"
8845 aros_object_format="armelf_aros"
8846 aros_flavour="emulation"
8847 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8848 gcc_target_cpu="arm"
8849 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8850 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8851 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8852 aros_c_libs="$aros_c_libs -laeabi"
8853 gcc_default_float_abi="hard"
8854 android_tool_dir_prefix="arm-linux-androideabi"
8855 android_tool_prefix="arm-linux-androideabi"
8856 android_ndk_arch="arm"
8857 kernel_tool_prefix="arm-linux-gnueabihf-"
8859 *arm*)
8860 aros_target_cpu="arm"
8861 aros_object_format="armelf_aros"
8862 aros_flavour="emulation"
8863 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8864 gcc_target_cpu="arm"
8865 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8866 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8867 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8868 aros_c_libs="$aros_c_libs -laeabi"
8869 android_tool_dir_prefix="arm-linux-androideabi"
8870 android_tool_prefix="arm-linux-androideabi"
8871 android_ndk_arch="arm"
8872 kernel_tool_prefix="arm-linux-gnueabi-"
8875 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8877 esac
8878 case "$aros_target_variant" in
8879 android)
8881 if test "$android_ndk_arch" = ""; then
8882 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8885 aros_nominal_width=320
8886 aros_nominal_height=480
8887 if test "$aros_android_ndk" = "none"; then
8888 aros_kernel_cflags="-mandroid"
8889 aros_kernel_ldflags="-mandroid"
8890 CFLAGS="-mandroid"
8891 else
8892 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8893 kernel_tool_version=""
8894 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8895 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8896 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8897 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8898 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8900 need_x11=no
8901 # Disable implicit PIC mode
8902 aros_config_cflags="$aros_config_cflags -fno-pic"
8903 kernel_tool_prefix="$android_tool_prefix-"
8905 esac
8909 aros_target_arch="pc"
8910 aros_shared_default="no"
8911 target_bootloader="grub2"
8912 case "$target_cpu" in
8913 *i?86*)
8914 aros_target_cpu="i386"
8917 if test "$aros_object_format" = "" ; then
8918 aros_object_format="elf_i386"
8920 aros_flavour="standalone"
8921 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8922 aros_isa_flags="$""(ISA_X86_FLAGS)"
8923 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8924 aros_kernel_ldflags="-Wl,-melf_i386"
8925 aros_nominal_width=640
8926 aros_nominal_height=480
8927 gcc_target_cpu="i386"
8929 *x86_64*)
8930 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8931 aros_target_cpu="x86_64"
8932 aros_serial_debug=1
8933 if test "$aros_object_format" = "" ; then
8934 aros_object_format="elf_x86_64"
8936 aros_flavour="standalone"
8937 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8938 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8939 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8940 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8941 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8942 aros_kernel_ldflags=""
8943 aros_nominal_width=640
8944 aros_nominal_height=480
8945 case "$aros_target_variant" in
8946 smp)
8947 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8949 esac
8952 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8954 esac
8957 prep)
8958 aros_target_arch="prep"
8959 aros_shared_default="no"
8960 aros_target_cpu="ppc"
8961 aros_object_format="elf32ppc"
8962 aros_flavour="ppcnative"
8963 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8964 aros_kernel_ldflags=""
8965 aros_nominal_width=640
8966 aros_nominal_height=480
8967 gcc_target_cpu="ppc"
8970 freebsd*)
8971 HOST_WANTS_X11=yes
8972 HOST_WANTS_GLX=yes
8973 HOST_WANTS_SDL=yes
8974 HOST_WANTS_DBUS=yes
8975 HOST_WANTS_DLOPEN=yes
8976 aros_target_arch="freebsd"
8977 aros_target_family="unix"
8978 aros_target_cpu="i386"
8979 aros_flavour="emulation"
8980 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8981 gcc_target_cpu="i386"
8983 aros_target_strip_flags="-x"
8986 darwin*)
8987 HOST_WANTS_X11=yes
8988 HOST_WANTS_GLX=yes
8989 HOST_WANTS_SDL=yes
8990 HOST_WANTS_DBUS=yes
8991 HOST_WANTS_DLOPEN=yes
8992 aros_target_arch="darwin"
8993 aros_target_family="unix"
8994 aros_flavour="emulation"
8995 case "$target_cpu" in
8996 *i?86*)
8997 aros_ios_platform="iPhoneSimulator"
8998 aros_target_cpu="i386"
8999 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9000 aros_isa_flags="$""(ISA_X86_FLAGS)"
9001 aros_kernel_ldflags=""
9002 aros_macosx_version="10.4"
9003 aros_nominal_depth=8
9004 gcc_target_cpu="i386"
9005 aros_object_format="elf_i386"
9006 aros_kernel_ar_flags="-cr"
9007 aros_target_strip_flags="-x"
9008 kernel_tool_flags="-m32"
9010 *x86_64*)
9011 aros_target_cpu="x86_64"
9012 aros_object_format="elf_x86_64"
9013 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9014 aros_isa_flags="$""(ISA_X8664_FLAGS)"
9015 aros_macosx_version="10.6"
9016 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9017 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9018 aros_kernel_cflags="-m64"
9019 aros_kernel_ldflags="-m64"
9020 aros_nominal_depth=8
9021 aros_kernel_rs="$toolchain_ar"
9022 aros_kernel_ar_flags="-cr"
9023 aros_kernel_ld="$toolchain_ld"
9024 aros_kernel_as="$toolchain_as"
9025 aros_kernel_ranlib="$toolchain_ranlib"
9026 aros_kernel_nm="$toolchain_nm"
9027 aros_kernel_strip="strip"
9028 kernel_tool_prefix="i686-apple-darwin10-"
9030 *ppc*)
9031 aros_target_cpu="ppc"
9032 aros_object_format="elf32ppc"
9033 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9034 aros_kernel_ldflags=""
9035 aros_macosx_version="10.0"
9036 aros_nominal_depth=8
9037 gcc_target_cpu="ppc"
9038 aros_kernel_rs="$toolchain_ar"
9039 aros_kernel_ar_flags="-cr"
9040 aros_kernel_ld="$toolchain_ld -arch ppc"
9041 aros_kernel_as="$toolchain_as -arch ppc"
9042 aros_kernel_ranlib="$toolchain_ranlib -arch ppc"
9043 aros_kernel_nm="$toolchain_nm -arch ppc"
9044 aros_kernel_strip="strip -arch ppc"
9045 kernel_tool_prefix="powerpc-apple-darwin10-"
9047 *arm*)
9048 aros_ios_platform="iPhoneOS"
9049 aros_target_cpu="arm"
9050 aros_object_format="armelf_aros"
9051 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9052 aros_c_libs="$aros_c_libs -laeabi"
9053 aros_nominal_depth=8
9054 gcc_target_cpu="arm"
9055 aros_kernel_rs="$toolchain_ar"
9056 aros_kernel_ar_flags="-cr"
9057 aros_kernel_ld="$toolchain_ld -arch arm"
9058 aros_kernel_ranlib="$toolchain_ranlib -arch arm"
9059 kernel_tool_prefix="arm-apple-darwin10-"
9060 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
9063 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
9065 esac
9066 case "$aros_target_variant" in
9067 ios)
9068 make_extra_targetcfg="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
9069 aros_ios_version="3.0"
9070 aros_nominal_width=320
9071 aros_nominal_height=480
9072 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
9073 target_extra_cfg+="$export_newline""# Apple iOS specific$export_newline""IOS_PLATFORM := $aros_ios_platform$export_newline""IOS_OS_VERSION := $aros_ios_version$export_newline""IOS_SDK_PATH := $aros_ios_sdk$export_newline"
9074 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
9075 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
9076 need_x11=no
9077 # This is here because it may depend on iOS or SDK version
9078 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
9079 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
9080 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
9083 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
9084 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
9086 esac
9089 dragonfly*)
9090 HOST_WANTS_X11=yes
9091 HOST_WANTS_GLX=yes
9092 HOST_WANTS_SDL=yes
9093 HOST_WANTS_DBUS=yes
9094 HOST_WANTS_DLOPEN=yes
9095 aros_target_arch="dragonfly"
9096 aros_target_family="unix"
9097 aros_flavour="emulation"
9098 case "$target_cpu" in
9099 *i?86*)
9100 aros_target_cpu="i386"
9101 aros_object_format="elf_i386"
9102 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
9103 aros_isa_flags="$""(ISA_X86_FLAGS)"
9105 *x86_64*)
9106 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9107 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9108 aros_target_cpu="x86_64"
9109 aros_object_format="elf_x86_64"
9110 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
9111 aros_isa_flags="$""(ISA_X8664_FLAGS)"
9114 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
9116 esac
9119 netbsd*)
9120 HOST_WANTS_X11=yes
9121 HOST_WANTS_GLX=yes
9122 HOST_WANTS_SDL=yes
9123 HOST_WANTS_DBUS=yes
9124 HOST_WANTS_DLOPEN=yes
9125 aros_target_arch="netbsd"
9126 aros_target_family="unix"
9127 case "$target_cpu" in
9128 *m68k*)
9129 aros_target_cpu="m68k"
9130 aros_object_format="m68kelf"
9131 aros_flavour="emulcompat"
9132 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
9133 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9134 gcc_target_cpu="mc68000"
9136 *i?86*)
9137 aros_target_cpu="i386"
9138 aros_object_format="elf_i386"
9139 aros_flavour="emulation"
9140 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
9141 aros_isa_flags="$""(ISA_X86_FLAGS)"
9142 aros_nominal_depth=8
9143 gcc_target_cpu="i386"
9146 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
9148 esac
9149 aros_target_genmap="-Wl,-M -Xlinker >"
9150 aros_flavour="emulation"
9151 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9154 openbsd*)
9155 HOST_WANTS_X11=yes
9156 HOST_WANTS_GLX=yes
9157 HOST_WANTS_SDL=yes
9158 HOST_WANTS_DBUS=yes
9159 HOST_WANTS_DLOPEN=yes
9160 aros_target_arch="openbsd"
9161 aros_target_family="unix"
9162 case "$target_cpu" in
9163 *i?86*)
9164 aros_target_cpu="i386"
9165 aros_object_format="elf_i386"
9166 aros_flavour="emulation"
9167 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
9168 aros_isa_flags="$""(ISA_X86_FLAGS)"
9169 gcc_target_cpu="i386"
9172 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
9174 esac
9175 aros_target_genmap="-Wl,-M -Xlinker >"
9176 aros_target_nm_flags="-u"
9177 aros_flavour="emulation"
9180 solaris*)
9181 aros_target_arch="solaris"
9182 aros_target_family="unix"
9183 case "$target_cpu" in
9184 *i?86*)
9185 aros_target_cpu="i386"
9186 aros_object_format="elf_i386"
9187 aros_flavour="emulation"
9188 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
9189 aros_isa_flags="$""(ISA_X86_FLAGS)"
9190 aros_nominal_depth=8
9191 gcc_target_cpu="i386"
9193 *sparc*)
9194 aros_target_cpu="sparc"
9195 aros_object_format="elf_sparc"
9196 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
9197 gcc_target_cpu="sparc"
9200 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
9202 esac
9203 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
9204 aros_flavour="emulation"
9207 morphos*)
9208 aros_target_arch="morphos"
9209 aros_shared_default="no"
9210 aros_target_cpu="ppc"
9211 aros_object_format="elf_ppc"
9212 aros_flavour="nativecompat"
9213 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9214 gcc_target_cpu="ppc"
9217 sam440)
9218 aros_target_arch="sam440"
9219 aros_shared_default="no"
9220 aros_target_cpu="ppc"
9221 aros_object_format="elf32ppc"
9222 aros_flavour="ppcnative"
9223 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9224 aros_kernel_ldflags=""
9225 aros_nominal_width=1024
9226 aros_nominal_height=768
9227 aros_nominal_depth=24
9228 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
9229 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9230 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9231 gcc_target_cpu="powerpc"
9234 efika)
9235 aros_target_arch="efika"
9236 aros_shared_default="no"
9237 aros_target_cpu="arm"
9238 aros_object_format="armelf_aros"
9239 aros_flavour="standalone"
9240 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9241 aros_kernel_ldflags=""
9242 aros_nominal_width=1024
9243 aros_nominal_height=600
9244 aros_c_libs="$aros_c_libs -laeabi"
9245 gcc_default_cpu="armv7-a"
9246 gcc_default_fpu="vfpv3"
9247 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
9248 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9249 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9250 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9251 if test "$optimization" = "default"; then
9252 optimization_level=$toolchain_size_opt_lvl
9254 case "$target_cpu" in
9255 *armhf*)
9256 gcc_default_float_abi="hard"
9257 target_cpu=arm
9258 aros_target_cpu=arm
9260 *arm*)
9261 gcc_default_float_abi="softfp"
9264 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
9266 esac
9269 chrp)
9270 aros_target_arch="chrp"
9271 aros_shared_default="no"
9272 aros_target_cpu="ppc"
9273 aros_object_format="elf32ppc"
9274 aros_flavour="ppcnative"
9275 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9276 aros_kernel_ldflags=""
9277 aros_nominal_width=640
9278 aros_nominal_height=480
9279 aros_isa_flags="$aros_isa_flags -mno-toc"
9280 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9281 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9282 gcc_target_cpu="powerpc"
9283 case "$aros_target_variant" in
9284 efika)
9285 aros_isa_flags="$aros_isa_flags -mcpu=603e"
9286 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
9288 esac
9291 r*pi)
9292 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
9293 aros_flavour="standalone"
9294 aros_target_arch="raspi"
9296 aros_shared_default="no"
9298 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
9300 case "$target_cpu" in
9301 *aarch64*)
9302 aros_target_cpu="aarch64"
9303 gcc_default_cpu="aarch64"
9304 aros_object_format="aarch64elf_aros"
9306 *armhf*)
9307 aros_target_cpu="arm"
9308 gcc_default_cpu="armv6zk"
9309 gcc_default_cpu_tune="arm1176jzf-s"
9310 aros_object_format="armelf_aros"
9311 aros_isa_flags="$aros_isa_flags -marm"
9312 aros_config_cflags="$aros_config_cflags"
9313 aros_config_cxxflags="$aros_config_cxxflags"
9314 aros_config_aflags="$aros_config_aflags -marm"
9315 aros_kernel_cflags="$aros_kernel_cflags -marm"
9316 aros_target_mkdep="$aros_target_mkdep -Darm"
9317 aros_c_libs="$aros_c_libs -laeabi"
9319 *armeb*)
9320 aros_flavour="standcompat"
9321 aros_target_cpu="armeb"
9322 gcc_default_float_abi="hard"
9323 gcc_default_cpu="armv7ve"
9324 gcc_default_cpu_tune="cortex-a7"
9325 aros_object_format="armelfb_aros"
9326 aros_isa_flags="$aros_isa_flags -marm"
9327 aros_config_cflags="$aros_config_cflags"
9328 aros_config_cxxflags="$aros_config_cxxflags"
9329 aros_config_aflags="$aros_config_aflags -marm"
9330 aros_kernel_cflags="$aros_kernel_cflags -marm"
9331 aros_target_mkdep="$aros_target_mkdep -Darm"
9332 aros_c_libs="$aros_c_libs -laeabi"
9334 *arm*)
9335 aros_target_cpu="arm"
9336 gcc_default_cpu="armv6zk"
9337 gcc_default_cpu_tune="arm1176jzf-s"
9338 aros_object_format="armelf_aros"
9339 aros_isa_flags="$aros_isa_flags -marm"
9340 aros_config_cflags="$aros_config_cflags"
9341 aros_config_cxxflags="$aros_config_cxxflags"
9342 aros_config_aflags="$aros_config_aflags -marm"
9343 aros_kernel_cflags="$aros_kernel_cflags -marm"
9344 aros_target_mkdep="$aros_target_mkdep -Darm"
9345 aros_c_libs="$aros_c_libs -laeabi"
9348 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
9350 esac
9352 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9353 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9354 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9355 aros_kernel_cflags="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9357 case "$aros_target_variant" in
9358 smp)
9359 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
9361 esac
9364 stm32f7_discovery)
9365 aros_flavour="standalone"
9366 aros_target_arch="stm32f7_discovery"
9367 aros_target_cpu="arm"
9368 aros_target_cpu_mode="thumb2"
9369 aros_object_format="armelf_aros"
9370 aros_shared_default="no"
9372 gcc_default_cpu="armv7e-m"
9373 gcc_default_cpu_tune="cortex-m7"
9374 gcc_default_fpu="fpv5-sp-d16"
9375 gcc_default_float_abi="hard"
9377 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
9380 amiga*)
9381 aros_elf_translate="$""(ELF2HUNK)"
9382 make_extra_commands="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
9383 aros_target_arch="amiga"
9384 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9385 aros_shared_default="no"
9387 case "$target_cpu" in
9388 *m68k*)
9389 # Check whether --enable-amigaos_compliance was given.
9390 if test "${enable_amigaos_compliance+set}" = set; then :
9391 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
9394 aros_enable_mmu=no
9395 aros_target_cpu="m68k"
9396 aros_object_format="m68kelf"
9397 aros_flavour="standcompat"
9398 gcc_target_cpu="m68000"
9399 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9400 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
9401 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
9402 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9403 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9404 if test "$optimization" = "default"; then
9405 optimization_level=$toolchain_size_opt_lvl
9407 aros_config_aflags="$aros_config_aflags"
9408 aros_target_strip_flags="-R.comment --strip-debug"
9409 aros_nominal_width=640
9410 aros_nominal_height=256
9411 aros_nominal_depth=2
9413 *ppc*)
9414 aros_cpu="ppc"
9415 aros_flavour="native"
9416 gcc_target_cpu="ppc"
9419 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
9421 esac
9424 mingw*)
9425 aros_target_arch="mingw32"
9426 aros_shared_default="no"
9427 aros_flavour="emulation"
9428 aros_shared_cflags=""
9429 need_crosstools="yes"
9430 need_dlopen="no"
9431 rescomp="windres"
9432 case "$target_cpu" in
9433 *i?86*)
9434 aros_target_cpu="i386"
9435 aros_object_format="elf_i386"
9436 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9437 aros_isa_flags="$""(ISA_X86_FLAGS)"
9438 aros_nominal_depth=8
9439 gcc_target_cpu="i386"
9441 kernel_tool_prefix="i386-mingw32-"
9443 *x86_64*)
9444 aros_target_cpu="x86_64"
9445 aros_object_format="elf_x86_64"
9446 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9447 aros_isa_flags="$""(ISA_X8664_FLAGS)"
9448 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9449 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9450 aros_nominal_depth=8
9451 kernel_tool_prefix="x86_64-w64-mingw32-"
9453 *arm*)
9454 aros_target_cpu="arm"
9455 aros_object_format="armelf_aros"
9456 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9457 aros_c_libs="$aros_c_libs -laeabi"
9458 aros_nominal_depth=8
9459 gcc_target_cpu="arm"
9460 gcc_default_float_abi="soft"
9461 kernel_tool_prefix="arm-mingw32ce-"
9462 aros_nominal_width=160
9463 aros_nominal_height=160
9466 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
9468 esac
9469 if test $host_os = "cygwin"; then
9470 aros_kernel_cflags="-mno-cygwin"
9473 pp*)
9474 aros_target_arch="pp"
9475 aros_shared_default="no"
9476 case "$target_cpu" in
9477 *m68k*)
9478 aros_target_cpu="m68k"
9479 aros_object_format="m68kelf"
9480 aros_flavour="palmnative"
9481 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9482 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9483 aros_nominal_width=160
9484 aros_nominal_height=160
9485 aros_nominal_depth=1
9486 aros_target_ar_flags="cru"
9487 aros_c_libs="$aros_c_libs -lgcc1"
9488 aros_shared_default=no
9489 aros_shared_cflags="-fpic"
9490 aros_shared_aflags=""
9491 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9492 aros_kernel_ldflags="-Wl,-rpath,./lib"
9493 aros_debug_cppflags="$aros_messages_debug"
9494 aros_debug_cflags="$aros_symbols_debug"
9495 aros_debug_aflags=""
9496 aros_debug_ldflags="$aros_symbols_debug"
9497 aros_mungwall_debug="0"
9498 aros_modules_debug="0"
9499 gcc_target_cpu="mc68000"
9500 ignore_undefined_symbols="-ius"
9503 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
9505 esac
9508 mac*)
9509 aros_target_arch="mac"
9510 aros_shared_default="no"
9511 case "$target_cpu" in
9512 *m68k*)
9513 aros_target_cpu="m68k"
9514 aros_object_format="m68kelf"
9515 aros_flavour="mac68knative"
9516 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9517 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9518 aros_nominal_width=512
9519 aros_nominal_height=384
9520 aros_nominal_depth=8
9521 aros_target_ar_flags="cru"
9522 aros_c_libs="$aros_c_libs -lgcc1"
9523 aros_shared_default=no
9524 aros_shared_cflags="-fpic"
9525 aros_shared_aflags=""
9526 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9527 aros_kernel_ldflags="-Wl,-rpath,./lib"
9528 aros_debug_cppflags="$aros_messages_debug"
9529 aros_debug_cflags="$aros_symbols_debug"
9530 aros_debug_aflags=""
9531 aros_debug_ldflags="$aros_symbols_debug"
9532 aros_mungwall_debug="0"
9533 aros_modules_debug="0"
9534 gcc_target_cpu="mc68000"
9535 ignore_undefined_symbols="-ius"
9538 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9540 esac
9544 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
9546 esac
9548 #-----------------------------------------------------------------------------
9549 crosstools_guess="yes"
9550 aros_target_toolchain="no"
9551 aros_kernel_sysroot=""
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9554 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9556 # Check whether --with-kernel-toolchain-prefix was given.
9557 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9558 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9562 $as_echo "$kernel_tool_prefix" >&6; }
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9565 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9567 # Check whether --with-elf-toolchain-prefix was given.
9568 if test "${with_elf_toolchain_prefix+set}" = set; then :
9569 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
9570 crosstools_guess="no"
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9574 $as_echo "$elf_tool_prefix" >&6; }
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9577 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9579 # Check whether --with-aros-toolchain was given.
9580 if test "${with_aros_toolchain+set}" = set; then :
9581 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
9582 crosstools_guess="no"
9585 if test "$aros_tool_prefix" = "yes" ; then
9586 aros_tool_prefix=$aros_target_cpu-aros-
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9589 $as_echo "$aros_tool_prefix" >&6; }
9591 #-----------------------------------------------------------------------------
9592 # Checking if we should build crosstools..
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9594 $as_echo_n "checking whether to build crosstools... " >&6; }
9595 # Check whether --enable-crosstools was given.
9596 if test "${enable_crosstools+set}" = set; then :
9597 enableval=$enable_crosstools; crosstools="$enableval"
9598 else
9599 crosstools="$crosstools_guess"
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9603 $as_echo "$crosstools" >&6; }
9605 if test "${crosstools}" = "yes"; then
9606 if test "${crosstools_guess}" = "no"; then
9607 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9611 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
9612 aros_target_toolchain="yes"
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9616 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9618 # Check whether --with-aros-toolchain-install was given.
9619 if test "${with_aros_toolchain_install+set}" = set; then :
9620 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9623 if test "x$aros_toolchain_install" = "x"; then
9624 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9625 else
9626 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9627 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9628 if test "$crosstools_guess" = "no" ; then
9629 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9630 aros_kernel_sysroot="$""(TARGET_SYSROOT)"
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9635 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9637 #-----------------------------------------------------------------------------
9638 if test "$aros_toolchain" = "gnu" ; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9640 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9643 # Check whether --with-binutils-version was given.
9644 if test "${with_binutils_version+set}" = set; then :
9645 withval=$with_binutils_version; use_binutils_version="$withval"
9646 else
9647 use_binutils_version=""
9650 if test "$use_binutils_version" = ""; then
9651 target_binutils_version="$default_binutils_version"
9652 else
9653 target_binutils_version="$use_binutils_version"
9655 if test "$aros_toolchain" = "gnu" ; then
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9657 $as_echo "$target_binutils_version" >&6; }
9661 # Helper to identify gcc version
9664 #-----------------------------------------------------------------------------
9665 if test "$aros_toolchain" = "gnu" ; then
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9667 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9670 # Check whether --with-gcc-version was given.
9671 if test "${with_gcc_version+set}" = set; then :
9672 withval=$with_gcc_version; use_gcc_version="$withval"
9673 else
9674 use_gcc_version=""
9677 if test "$use_gcc_version" = ""; then
9678 if test "${crosstools}" = "no"; then
9679 if test "x$aros_toolchain_install" != "x"; then
9681 target_gcc_version=""
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9683 $as_echo_n "checking gcc version... " >&6; }
9684 if ${ax_cv_gcc_version+:} false; then :
9685 $as_echo_n "(cached) " >&6
9686 else
9688 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor}$(toolchain_cpp_opts) -dumpversion`"
9689 if test "x$ax_cv_gcc_version" = "x"; then :
9691 ax_cv_gcc_version=""
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9697 $as_echo "$ax_cv_gcc_version" >&6; }
9698 target_gcc_version=$ax_cv_gcc_version
9703 if test "$use_gcc_version" = ""; then
9704 target_gcc_version="$default_gcc_version"
9706 else
9707 target_gcc_version="$use_gcc_version"
9709 if test "$aros_toolchain" = "gnu" ; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9711 $as_echo "$target_gcc_version" >&6; }
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version string style" >&5
9714 $as_echo_n "checking version string style... " >&6; }
9715 if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: snapshot" >&5
9717 $as_echo "snapshot" >&6; }
9718 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'-' -f1)
9719 GCC_VERSION_MINOR=-1
9720 GCC_VERSION_PATCH=-1
9721 else
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
9723 $as_echo "release" >&6; }
9724 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9725 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9726 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9729 gcc_fix_bitfields="false"
9730 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9731 gcc_fix_bitfields="true"
9732 else
9733 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9734 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9735 gcc_fix_bitfields="true"
9740 if test "$gcc_fix_bitfields" = "true" ; then
9741 case "$aros_target_cpu" in
9742 *x86_64* | *i?86*)
9743 x86_isa_extra="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9744 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9746 esac
9750 # Helper to identify llvm version
9753 if test "$aros_toolchain" = "llvm" ; then
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target llvm version to use" >&5
9755 $as_echo_n "checking what specific target llvm version to use... " >&6; }
9758 # Check whether --with-llvm-version was given.
9759 if test "${with_llvm_version+set}" = set; then :
9760 withval=$with_llvm_version; use_llvm_version="$withval"
9761 else
9762 use_llvm_version=""
9765 if test "$use_llvm_version" = ""; then
9766 if test "${crosstools}" = "no"; then
9767 if test "x$aros_toolchain_install" != "x"; then
9769 target_llvm_version=""
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm version" >&5
9771 $as_echo_n "checking llvm version... " >&6; }
9772 if ${ax_cv_llvm_version+:} false; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9776 ax_cv_llvm_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor}$(toolchain_cpp_opts) -dumpversion`"
9777 if test "x$ax_cv_llvm_version" = "x"; then :
9779 ax_cv_llvm_version=""
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_llvm_version" >&5
9785 $as_echo "$ax_cv_llvm_version" >&6; }
9786 target_llvm_version=$ax_cv_llvm_version
9791 if test "$use_llvm_version" = ""; then
9792 target_llvm_version="$default_llvm_version"
9794 else
9795 target_llvm_version="$use_llvm_version"
9797 if test "$aros_toolchain" = "llvm" ; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_llvm_version" >&5
9799 $as_echo "$target_llvm_version" >&6; }
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9803 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9804 # Check whether --enable-objc was given.
9805 if test "${enable_objc+set}" = set; then :
9806 enableval=$enable_objc; objc="$enableval"
9807 else
9808 objc="no"
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9812 $as_echo "$objc" >&6; }
9813 if test "x$objc" = "xyes"; then
9814 objc_target="$objc"
9815 else
9816 objc_target="no-objc"
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9820 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9821 # Check whether --enable-java was given.
9822 if test "${enable_java+set}" = set; then :
9823 enableval=$enable_java; java="$enableval"
9824 else
9825 java="no"
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9829 $as_echo "$java" >&6; }
9830 if test "x$java" != "xno"; then
9831 java_target="$java"
9832 else
9833 java_target="no-java"
9836 spec_obj_format="-m $aros_object_format"
9837 # Now process extra architecture-specific options.
9838 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9839 # as well as floating-point ABI.
9840 case "$aros_target_cpu" in
9841 *m68k*)
9842 aros_isa_targets="M68K_ISA_TARGETS :=MC68020 MC68040"
9843 aros_isa_extra="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9844 aros_isa_extra="$aros_isa_extra$m68k_isa_extra$export_newline$m68k_020_isa_extra$export_newline$m68k_030_isa_extra$export_newline$m68k_040_isa_extra$export_newline$m68k_060_isa_extra$export_newline$m68k_ac080_isa_extra$export_newline"
9845 aros_isa_extra="$aros_isa_extra$m68k_020_cppflags$export_newline$m68k_030_cppflags$export_newline$m68k_040_cppflags$export_newline$m68k_060_cppflags$export_newline"
9846 aros_isa_extra="$aros_isa_extra$m68k_020_cflags$export_newline$m68k_030_cflags$export_newline$m68k_040_cflags$export_newline$m68k_060_cflags$export_newline"
9847 aros_isa_extra="$aros_isa_extra$m68k_020_ldflags$export_newline$m68k_030_ldflags$export_newline$m68k_040_ldflags$export_newline$m68k_060_ldflags$export_newline"
9848 aros_isa_extra="$aros_isa_extra$m68k_020_ext$export_newline$m68k_030_ext$export_newline$m68k_040_ext$export_newline$m68k_060_ext$export_newline"
9850 *x86_64*)
9851 aros_isa_extra="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9852 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9854 arm*)
9855 if test "$gcc_default_cpu" = ""; then
9856 gcc_default_cpu="armv6"
9858 if test "$gcc_default_fpu" = ""; then
9859 gcc_default_fpu="vfp"
9861 if test "$gcc_default_endian" = ""; then
9862 if test "$target_cpu" = "armeb"; then
9863 gcc_default_endian="big-endian"
9864 else
9865 gcc_default_endian="little-endian"
9868 if test "$gcc_default_float_abi" = ""; then
9869 if test "$target_cpu" = "armhf"; then
9870 gcc_default_float_abi="hard"
9871 else
9872 gcc_default_float_abi="softfp"
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9877 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9879 # Check whether --with-cpu was given.
9880 if test "${with_cpu+set}" = set; then :
9881 withval=$with_cpu; aros_gcc_cpu="$withval"
9882 else
9883 aros_gcc_cpu=$gcc_default_cpu
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9887 $as_echo "$aros_gcc_cpu" >&6; }
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9890 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9892 # Check whether --with-fpu was given.
9893 if test "${with_fpu+set}" = set; then :
9894 withval=$with_fpu; aros_gcc_fpu="$withval"
9895 else
9896 aros_gcc_fpu=$gcc_default_fpu
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9900 $as_echo "$aros_gcc_fpu" >&6; }
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9903 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9905 # Check whether --with-float was given.
9906 if test "${with_float+set}" = set; then :
9907 withval=$with_float; aros_gcc_float_abi="$withval"
9908 else
9909 aros_gcc_float_abi=$gcc_default_float_abi
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9913 $as_echo "$aros_gcc_float_abi" >&6; }
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9916 $as_echo_n "checking Which ARM mode to use... " >&6; }
9917 if test "$aros_target_cpu_mode" = ""; then
9918 aros_target_cpu_mode="arm32"
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9920 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9921 else
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9923 $as_echo "$aros_target_cpu_mode" >&6; }
9926 case "$aros_target_cpu_mode" in
9927 arm32)
9928 gcc_default_mode="arm"
9929 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -m$gcc_default_endian -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9931 arm64)
9932 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9934 thumb)
9935 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9937 thumb1)
9938 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9940 thumb2)
9941 gcc_default_mode="thumb"
9942 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9943 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -$gcc_default_endian -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9946 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9948 esac
9950 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9951 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9952 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9954 i386)
9955 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9956 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9958 esac
9960 # Some architectures may need custom ELF specs.
9961 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9962 elf_specs_in=config/${aros_object_format}-specs.in
9963 else
9964 elf_specs_in=config/elf-specs.in
9967 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9968 # Since we override specs, we may need to put these defines there
9969 if test "$gcc_target_cpu" != ""; then
9970 gcc_target_cpu="-D__${gcc_target_cpu}__"
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9974 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9976 # Check whether --with-portssources was given.
9977 if test "${with_portssources+set}" = set; then :
9978 withval=$with_portssources; with_portssrcdir=$withval
9979 else
9980 with_portssrcdir="default"
9983 if test "$with_portssrcdir" = "default"; then
9984 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9985 else
9986 AROS_PORTSSRCDIR="$with_portssrcdir"
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9989 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9992 $as_echo_n "checking which bootloader to use... " >&6; }
9994 # Check whether --with-bootloader was given.
9995 if test "${with_bootloader+set}" = set; then :
9996 withval=$with_bootloader; target_bootloader=$withval
9997 else
9998 target_bootloader=$target_bootloader
10001 if test "$target_bootloader" = "none"; then
10002 aros_target_bootloader=""
10003 else
10004 aros_target_bootloader="$target_bootloader"
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
10007 $as_echo "$target_bootloader" >&6; }
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
10010 $as_echo_n "checking which icon-set to use... " >&6; }
10012 # Check whether --with-iconset was given.
10013 if test "${with_iconset+set}" = set; then :
10014 withval=$with_iconset; target_iconset=$withval
10015 else
10016 target_iconset="default"
10019 if test "$target_iconset" = "default"; then
10020 aros_target_iconset="Gorilla"
10021 target_iconset="default (Gorilla)"
10022 else
10023 aros_target_iconset="$target_iconset"
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
10026 $as_echo "$target_iconset" >&6; }
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
10029 $as_echo_n "checking which GUI Theme to use... " >&6; }
10031 # Check whether --with-theme was given.
10032 if test "${with_theme+set}" = set; then :
10033 withval=$with_theme; target_guitheme=$withval
10034 else
10035 target_guitheme="default"
10038 if test "$target_guitheme" = "default"; then
10039 aros_target_guitheme="Ice"
10040 else
10041 aros_target_guitheme="$target_guitheme"
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
10044 $as_echo "$aros_target_guitheme" >&6; }
10046 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
10047 # for target code)
10048 cross_compiling=no
10050 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
10051 cross_compiling=yes
10054 if test "$aros_host_cpu" == "x86_64" ; then
10055 if test "$aros_target_cpu" == "i386" ; then
10056 cross_compiling=no
10060 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10061 if test "$aros_host_arch" != "$aros_target_arch" ; then
10062 cross_compiling=yes
10064 else
10065 cross_compiling=yes
10068 if test "$cross_compiling" = "no" ; then
10069 kernel_tool_prefix=""
10070 if test "$host_cc_elf" = "yes" ; then
10071 elf_tool_prefix=""
10075 if test "$kernel_tool_version" != ""; then
10076 kernel_tool_version="-$kernel_tool_version"
10079 #######################################################################
10080 ## Compute what toolchains to use, and their paths ##
10081 #######################################################################
10083 # This takes, as input:
10084 # crosstools {yes,no}
10085 # kernel_tool_version {"",[version]}
10086 # target_tool_version {"",[version]}
10087 # kernel_tool_prefix {none,[some-arch-os-]}
10088 # gnu-toolchain -:
10089 # target_tool_prefix ${aros_target_cpu}-aros-
10090 # aros_tool_prefix ${aros_target_cpu}-aros-
10092 # The output is
10093 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
10094 # Where the 'kernel' binaries are located
10095 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
10096 # Where the 'target' binaries are located
10097 # (not the symlink farm - that is aros_target_*!)
10099 # The rules are:
10100 # if crosstools then
10101 # if kernel_tools_prefix = "no-kernel-prefix-"
10102 # aros_kernel_* = crosstools cc paths
10103 # aros_kernel_cc = elf cc wrapper around crosstools cc
10104 # else
10105 # VALIDATE(${kernel_tools_prefix}*)
10106 # aros_kernel_* = ${kernel_tools_prefix}*
10107 # if ${kernel_tools_prefix}cc is an AROS gcc
10108 # aros_kernel_cc = ${kernel_tools_prefix}cc
10109 # else
10110 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
10111 # fi
10112 # fi
10114 # orig_target_* = aros built crosstools
10115 # orig_target_cc = elf cc wrapper around crosstools cc
10116 # else
10117 # VALIDATE(${kernel_tools_prefix}*)
10119 # orig_target_* = aros_kernel_*
10120 # if aros_kernel_cc is an AROS gcc
10121 # orig_target_cc = aros_kernel_cc
10122 # else
10123 # orig_target_cc = aros cc wrapper around aros_kernel_cc
10124 # fi
10125 # fi
10127 if test "$aros_toolchain" = "gnu" ; then
10128 target_tool_prefix="${aros_target_cpu}-aros-"
10129 elif test "$aros_toolchain" = "llvm" ; then
10130 target_tool_prefix="bin/"
10133 if test "$kernel_tool_prefix" != "" ; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
10135 $as_echo_n "checking which kernel tools... " >&6; }
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
10137 $as_echo "$kernel_tool_prefix" >&6; };
10140 if test "$kernel_tool_prefix" = "none" ; then
10141 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10142 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
10144 else
10145 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
10146 # Kernel tools required - find them
10147 # Note that 'normally', aros_kernel_* overrides will be
10148 # empty, unless specified in the per-arch sections above.
10149 test_kernel_cc=yes
10150 if test "x$aros_kernel_cpp" = "x"; then
10151 aros_kernel_cpp=${kernel_tool_prefix}${CPP_BASE}
10153 if test "${kernel_tool_version}" != ""; then
10154 if test "$aros_kernel_cpp" != ""; then
10155 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
10156 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
10157 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10161 if test "$aros_kernel_cpp" = ""; then
10162 if test "$cross_compiling" = "yes" ; then
10163 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
10164 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10166 $as_echo_n "checking for $ac_word... " >&6; }
10167 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 case $aros_kernel_cpp in
10171 [\\/]* | ?:[\\/]*)
10172 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10176 for as_dir in $PATH
10178 IFS=$as_save_IFS
10179 test -z "$as_dir" && as_dir=.
10180 for ac_exec_ext in '' $ac_executable_extensions; do
10181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10182 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10184 break 2
10186 done
10187 done
10188 IFS=$as_save_IFS
10191 esac
10193 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10194 if test -n "$aros_kernel_cpp"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10196 $as_echo "$aros_kernel_cpp" >&6; }
10197 else
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199 $as_echo "no" >&6; }
10203 else
10205 if test "" = ""; then
10206 ac_tool_cpp=cpp
10207 else
10208 ac_tool_cpp=
10210 if test "$GCC" = "yes"; then
10211 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
10212 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10213 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 $as_echo_n "checking for $ac_word... " >&6; }
10216 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 case $aros_kernel_cpp in
10220 [\\/]* | ?:[\\/]*)
10221 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in `dirname $aros_gcc_cpp`
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10231 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10235 done
10236 done
10237 IFS=$as_save_IFS
10240 esac
10242 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10243 if test -n "$aros_kernel_cpp"; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10245 $as_echo "$aros_kernel_cpp" >&6; }
10246 else
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10253 if test "$aros_kernel_cpp" = ""; then
10254 for ac_prog in $ac_tool_cpp
10256 # Extract the first word of "$ac_prog", so it can be a program name with args.
10257 set dummy $ac_prog; ac_word=$2
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259 $as_echo_n "checking for $ac_word... " >&6; }
10260 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10261 $as_echo_n "(cached) " >&6
10262 else
10263 case $aros_kernel_cpp in
10264 [\\/]* | ?:[\\/]*)
10265 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269 for as_dir in $PATH
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10275 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10279 done
10280 done
10281 IFS=$as_save_IFS
10284 esac
10286 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10287 if test -n "$aros_kernel_cpp"; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10289 $as_echo "$aros_kernel_cpp" >&6; }
10290 else
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292 $as_echo "no" >&6; }
10296 test -n "$aros_kernel_cpp" && break
10297 done
10302 else
10303 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
10304 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
10305 set dummy $aros_kernel_cpp; ac_word=$2
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10307 $as_echo_n "checking for $ac_word... " >&6; }
10308 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10309 $as_echo_n "(cached) " >&6
10310 else
10311 case $aros_kernel_cpp in
10312 [\\/]* | ?:[\\/]*)
10313 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317 for as_dir in $PATH
10319 IFS=$as_save_IFS
10320 test -z "$as_dir" && as_dir=.
10321 for ac_exec_ext in '' $ac_executable_extensions; do
10322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10323 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325 break 2
10327 done
10328 done
10329 IFS=$as_save_IFS
10332 esac
10334 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10335 if test -n "$aros_kernel_cpp"; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10337 $as_echo "$aros_kernel_cpp" >&6; }
10338 else
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340 $as_echo "no" >&6; }
10344 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
10347 req_avail=yes
10348 if test "$aros_kernel_cpp" = ""; then
10349 req_avail=no
10351 if test "$aros_kernel_cpp" = "no"; then
10352 req_avail=no
10354 if test "$req_avail" = "no"; then
10355 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10358 if test "x$aros_kernel_cc" = "x"; then
10359 aros_kernel_cc=${kernel_tool_prefix}${CC_BASE}
10361 if test "${kernel_tool_version}" != ""; then
10362 if test "$aros_kernel_cc" != ""; then
10363 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10364 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
10365 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10369 if test "$aros_kernel_cc" = ""; then
10370 if test "$cross_compiling" = "yes" ; then
10371 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
10372 set dummy ${kernel_tool_prefix}cc; ac_word=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10376 $as_echo_n "(cached) " >&6
10377 else
10378 case $aros_kernel_cc in
10379 [\\/]* | ?:[\\/]*)
10380 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10384 for as_dir in $PATH
10386 IFS=$as_save_IFS
10387 test -z "$as_dir" && as_dir=.
10388 for ac_exec_ext in '' $ac_executable_extensions; do
10389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10390 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10392 break 2
10394 done
10395 done
10396 IFS=$as_save_IFS
10399 esac
10401 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10402 if test -n "$aros_kernel_cc"; then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10404 $as_echo "$aros_kernel_cc" >&6; }
10405 else
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407 $as_echo "no" >&6; }
10411 else
10413 if test "" = ""; then
10414 ac_tool_cc=cc
10415 else
10416 ac_tool_cc=
10418 if test "$GCC" = "yes"; then
10419 aros_gcc_cc=`$CC -print-prog-name=$ac_tool_cc`
10420 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
10421 set dummy `basename $aros_gcc_cc`; ac_word=$2
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10423 $as_echo_n "checking for $ac_word... " >&6; }
10424 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 case $aros_kernel_cc in
10428 [\\/]* | ?:[\\/]*)
10429 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10433 for as_dir in `dirname $aros_gcc_cc`
10435 IFS=$as_save_IFS
10436 test -z "$as_dir" && as_dir=.
10437 for ac_exec_ext in '' $ac_executable_extensions; do
10438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10439 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10441 break 2
10443 done
10444 done
10445 IFS=$as_save_IFS
10448 esac
10450 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10451 if test -n "$aros_kernel_cc"; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10453 $as_echo "$aros_kernel_cc" >&6; }
10454 else
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456 $as_echo "no" >&6; }
10461 if test "$aros_kernel_cc" = ""; then
10462 for ac_prog in $ac_tool_cc
10464 # Extract the first word of "$ac_prog", so it can be a program name with args.
10465 set dummy $ac_prog; ac_word=$2
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467 $as_echo_n "checking for $ac_word... " >&6; }
10468 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10469 $as_echo_n "(cached) " >&6
10470 else
10471 case $aros_kernel_cc in
10472 [\\/]* | ?:[\\/]*)
10473 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477 for as_dir in $PATH
10479 IFS=$as_save_IFS
10480 test -z "$as_dir" && as_dir=.
10481 for ac_exec_ext in '' $ac_executable_extensions; do
10482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10483 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 break 2
10487 done
10488 done
10489 IFS=$as_save_IFS
10492 esac
10494 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10495 if test -n "$aros_kernel_cc"; then
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10497 $as_echo "$aros_kernel_cc" >&6; }
10498 else
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500 $as_echo "no" >&6; }
10504 test -n "$aros_kernel_cc" && break
10505 done
10510 else
10511 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10512 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
10513 set dummy $aros_kernel_cc; ac_word=$2
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 case $aros_kernel_cc in
10520 [\\/]* | ?:[\\/]*)
10521 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10531 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10535 done
10536 done
10537 IFS=$as_save_IFS
10540 esac
10542 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10543 if test -n "$aros_kernel_cc"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10545 $as_echo "$aros_kernel_cc" >&6; }
10546 else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10552 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
10555 req_avail=yes
10556 if test "$aros_kernel_cc" = ""; then
10557 req_avail=no
10559 if test "$aros_kernel_cc" = "no"; then
10560 req_avail=no
10562 if test "$req_avail" = "no"; then
10563 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10566 if test "x$aros_kernel_cxx" = "x"; then
10567 aros_kernel_cxx=${kernel_tool_prefix}${CXX_BASE}
10569 if test "${kernel_tool_version}" != ""; then
10570 if test "$aros_kernel_cxx" != ""; then
10571 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10572 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
10573 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10577 if test "$aros_kernel_cxx" = ""; then
10578 if test "$cross_compiling" = "yes" ; then
10579 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
10580 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10582 $as_echo_n "checking for $ac_word... " >&6; }
10583 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10584 $as_echo_n "(cached) " >&6
10585 else
10586 case $aros_kernel_cxx in
10587 [\\/]* | ?:[\\/]*)
10588 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592 for as_dir in $PATH
10594 IFS=$as_save_IFS
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
10597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10598 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 break 2
10602 done
10603 done
10604 IFS=$as_save_IFS
10607 esac
10609 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10610 if test -n "$aros_kernel_cxx"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10612 $as_echo "$aros_kernel_cxx" >&6; }
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10619 else
10621 if test "" = ""; then
10622 ac_tool_cxx=cxx
10623 else
10624 ac_tool_cxx=
10626 if test "$GCC" = "yes"; then
10627 aros_gcc_cxx=`$CC -print-prog-name=$ac_tool_cxx`
10628 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10629 set dummy `basename $aros_gcc_cxx`; ac_word=$2
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631 $as_echo_n "checking for $ac_word... " >&6; }
10632 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10633 $as_echo_n "(cached) " >&6
10634 else
10635 case $aros_kernel_cxx in
10636 [\\/]* | ?:[\\/]*)
10637 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641 for as_dir in `dirname $aros_gcc_cxx`
10643 IFS=$as_save_IFS
10644 test -z "$as_dir" && as_dir=.
10645 for ac_exec_ext in '' $ac_executable_extensions; do
10646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10647 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10649 break 2
10651 done
10652 done
10653 IFS=$as_save_IFS
10656 esac
10658 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10659 if test -n "$aros_kernel_cxx"; then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10661 $as_echo "$aros_kernel_cxx" >&6; }
10662 else
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; }
10669 if test "$aros_kernel_cxx" = ""; then
10670 for ac_prog in $ac_tool_cxx
10672 # Extract the first word of "$ac_prog", so it can be a program name with args.
10673 set dummy $ac_prog; ac_word=$2
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10675 $as_echo_n "checking for $ac_word... " >&6; }
10676 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 case $aros_kernel_cxx in
10680 [\\/]* | ?:[\\/]*)
10681 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685 for as_dir in $PATH
10687 IFS=$as_save_IFS
10688 test -z "$as_dir" && as_dir=.
10689 for ac_exec_ext in '' $ac_executable_extensions; do
10690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10691 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10693 break 2
10695 done
10696 done
10697 IFS=$as_save_IFS
10700 esac
10702 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10703 if test -n "$aros_kernel_cxx"; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10705 $as_echo "$aros_kernel_cxx" >&6; }
10706 else
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708 $as_echo "no" >&6; }
10712 test -n "$aros_kernel_cxx" && break
10713 done
10718 else
10719 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10720 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10721 set dummy $aros_kernel_cxx; ac_word=$2
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10723 $as_echo_n "checking for $ac_word... " >&6; }
10724 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10725 $as_echo_n "(cached) " >&6
10726 else
10727 case $aros_kernel_cxx in
10728 [\\/]* | ?:[\\/]*)
10729 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733 for as_dir in $PATH
10735 IFS=$as_save_IFS
10736 test -z "$as_dir" && as_dir=.
10737 for ac_exec_ext in '' $ac_executable_extensions; do
10738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10739 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10741 break 2
10743 done
10744 done
10745 IFS=$as_save_IFS
10748 esac
10750 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10751 if test -n "$aros_kernel_cxx"; then
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10753 $as_echo "$aros_kernel_cxx" >&6; }
10754 else
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10756 $as_echo "no" >&6; }
10760 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10763 # If it's set, make sure it's really there
10764 if test "x$aros_kernel_cxx" != "x" ; then
10765 req_avail=yes
10766 if test "$aros_kernel_cxx" = ""; then
10767 req_avail=no
10769 if test "$aros_kernel_cxx" = "no"; then
10770 req_avail=no
10772 if test "$req_avail" = "no"; then
10773 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10776 if test "x$aros_kernel_ld" = "x"; then
10777 aros_kernel_ld=${kernel_tool_prefix}${LD_BASE}
10780 if test "$aros_kernel_ld" = ""; then
10781 if test "$cross_compiling" = "yes" ; then
10782 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10783 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10785 $as_echo_n "checking for $ac_word... " >&6; }
10786 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10787 $as_echo_n "(cached) " >&6
10788 else
10789 case $aros_kernel_ld in
10790 [\\/]* | ?:[\\/]*)
10791 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10797 IFS=$as_save_IFS
10798 test -z "$as_dir" && as_dir=.
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10801 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 break 2
10805 done
10806 done
10807 IFS=$as_save_IFS
10810 esac
10812 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10813 if test -n "$aros_kernel_ld"; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10815 $as_echo "$aros_kernel_ld" >&6; }
10816 else
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818 $as_echo "no" >&6; }
10822 else
10824 if test "" = ""; then
10825 ac_tool_ld=ld
10826 else
10827 ac_tool_ld=
10829 if test "$GCC" = "yes"; then
10830 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
10831 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10832 set dummy `basename $aros_gcc_ld`; ac_word=$2
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834 $as_echo_n "checking for $ac_word... " >&6; }
10835 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 case $aros_kernel_ld in
10839 [\\/]* | ?:[\\/]*)
10840 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in `dirname $aros_gcc_ld`
10846 IFS=$as_save_IFS
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10850 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10852 break 2
10854 done
10855 done
10856 IFS=$as_save_IFS
10859 esac
10861 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10862 if test -n "$aros_kernel_ld"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10864 $as_echo "$aros_kernel_ld" >&6; }
10865 else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; }
10872 if test "$aros_kernel_ld" = ""; then
10873 for ac_prog in $ac_tool_ld
10875 # Extract the first word of "$ac_prog", so it can be a program name with args.
10876 set dummy $ac_prog; ac_word=$2
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10878 $as_echo_n "checking for $ac_word... " >&6; }
10879 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10880 $as_echo_n "(cached) " >&6
10881 else
10882 case $aros_kernel_ld in
10883 [\\/]* | ?:[\\/]*)
10884 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888 for as_dir in $PATH
10890 IFS=$as_save_IFS
10891 test -z "$as_dir" && as_dir=.
10892 for ac_exec_ext in '' $ac_executable_extensions; do
10893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10894 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10896 break 2
10898 done
10899 done
10900 IFS=$as_save_IFS
10903 esac
10905 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10906 if test -n "$aros_kernel_ld"; then
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10908 $as_echo "$aros_kernel_ld" >&6; }
10909 else
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10911 $as_echo "no" >&6; }
10915 test -n "$aros_kernel_ld" && break
10916 done
10921 else
10922 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10923 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10924 set dummy $aros_kernel_ld; ac_word=$2
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10926 $as_echo_n "checking for $ac_word... " >&6; }
10927 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10928 $as_echo_n "(cached) " >&6
10929 else
10930 case $aros_kernel_ld in
10931 [\\/]* | ?:[\\/]*)
10932 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936 for as_dir in $PATH
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10942 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10944 break 2
10946 done
10947 done
10948 IFS=$as_save_IFS
10951 esac
10953 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10954 if test -n "$aros_kernel_ld"; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10956 $as_echo "$aros_kernel_ld" >&6; }
10957 else
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 $as_echo "no" >&6; }
10963 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10966 req_avail=yes
10967 if test "$aros_kernel_ld" = ""; then
10968 req_avail=no
10970 if test "$aros_kernel_ld" = "no"; then
10971 req_avail=no
10973 if test "$req_avail" = "no"; then
10974 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10976 if test "x$aros_kernel_as" = "x"; then
10977 aros_kernel_as=$aros_host_as
10978 if test "x$aros_kernel_as" = "x"; then
10979 aros_kernel_as=${HOST_TOOLCHAIN_PREFIX}as${HOST_TOOLCHAIN_SUFFIX}
10983 if test "$aros_kernel_as" = ""; then
10984 if test "$cross_compiling" = "yes" ; then
10985 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10986 set dummy ${kernel_tool_prefix}as; ac_word=$2
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988 $as_echo_n "checking for $ac_word... " >&6; }
10989 if ${ac_cv_path_aros_kernel_as+:} false; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 case $aros_kernel_as in
10993 [\\/]* | ?:[\\/]*)
10994 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998 for as_dir in $PATH
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11004 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
11005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11006 break 2
11008 done
11009 done
11010 IFS=$as_save_IFS
11013 esac
11015 aros_kernel_as=$ac_cv_path_aros_kernel_as
11016 if test -n "$aros_kernel_as"; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11018 $as_echo "$aros_kernel_as" >&6; }
11019 else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11025 else
11027 if test "" = ""; then
11028 ac_tool_as=as
11029 else
11030 ac_tool_as=
11032 if test "$GCC" = "yes"; then
11033 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
11034 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11035 set dummy `basename $aros_gcc_as`; ac_word=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11037 $as_echo_n "checking for $ac_word... " >&6; }
11038 if ${ac_cv_path_aros_kernel_as+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 case $aros_kernel_as in
11042 [\\/]* | ?:[\\/]*)
11043 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
11046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047 for as_dir in `dirname $aros_gcc_as`
11049 IFS=$as_save_IFS
11050 test -z "$as_dir" && as_dir=.
11051 for ac_exec_ext in '' $ac_executable_extensions; do
11052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11053 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
11054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11055 break 2
11057 done
11058 done
11059 IFS=$as_save_IFS
11062 esac
11064 aros_kernel_as=$ac_cv_path_aros_kernel_as
11065 if test -n "$aros_kernel_as"; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11067 $as_echo "$aros_kernel_as" >&6; }
11068 else
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 $as_echo "no" >&6; }
11075 if test "$aros_kernel_as" = ""; then
11076 for ac_prog in $ac_tool_as
11078 # Extract the first word of "$ac_prog", so it can be a program name with args.
11079 set dummy $ac_prog; ac_word=$2
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081 $as_echo_n "checking for $ac_word... " >&6; }
11082 if ${ac_cv_path_aros_kernel_as+:} false; then :
11083 $as_echo_n "(cached) " >&6
11084 else
11085 case $aros_kernel_as in
11086 [\\/]* | ?:[\\/]*)
11087 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
11090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11091 for as_dir in $PATH
11093 IFS=$as_save_IFS
11094 test -z "$as_dir" && as_dir=.
11095 for ac_exec_ext in '' $ac_executable_extensions; do
11096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11097 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
11098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11099 break 2
11101 done
11102 done
11103 IFS=$as_save_IFS
11106 esac
11108 aros_kernel_as=$ac_cv_path_aros_kernel_as
11109 if test -n "$aros_kernel_as"; then
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11111 $as_echo "$aros_kernel_as" >&6; }
11112 else
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114 $as_echo "no" >&6; }
11118 test -n "$aros_kernel_as" && break
11119 done
11124 else
11125 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
11126 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
11127 set dummy $aros_kernel_as; ac_word=$2
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11129 $as_echo_n "checking for $ac_word... " >&6; }
11130 if ${ac_cv_path_aros_kernel_as+:} false; then :
11131 $as_echo_n "(cached) " >&6
11132 else
11133 case $aros_kernel_as in
11134 [\\/]* | ?:[\\/]*)
11135 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11141 IFS=$as_save_IFS
11142 test -z "$as_dir" && as_dir=.
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11145 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11147 break 2
11149 done
11150 done
11151 IFS=$as_save_IFS
11154 esac
11156 aros_kernel_as=$ac_cv_path_aros_kernel_as
11157 if test -n "$aros_kernel_as"; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11159 $as_echo "$aros_kernel_as" >&6; }
11160 else
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11166 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
11169 req_avail=yes
11170 if test "$aros_kernel_as" = ""; then
11171 req_avail=no
11173 if test "$aros_kernel_as" = "no"; then
11174 req_avail=no
11176 if test "$req_avail" = "no"; then
11177 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11180 if test "x$aros_kernel_ar" = "x"; then
11181 aros_kernel_ar="${kernel_tool_prefix}${AR_BASE}"
11183 if test "${kernel_tool_version}" != ""; then
11184 if test "$aros_kernel_ar" != ""; then
11185 ac_prog_args=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
11186 ac_prog_cmd=`expr "X$aros_kernel_ar" : '^\S*'`
11187 aros_kernel_ar="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
11191 if test "$aros_kernel_ar" = ""; then
11192 if test "$cross_compiling" = "yes" ; then
11193 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
11194 set dummy ${kernel_tool_prefix}ar; ac_word=$2
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196 $as_echo_n "checking for $ac_word... " >&6; }
11197 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11198 $as_echo_n "(cached) " >&6
11199 else
11200 case $aros_kernel_ar in
11201 [\\/]* | ?:[\\/]*)
11202 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11206 for as_dir in $PATH
11208 IFS=$as_save_IFS
11209 test -z "$as_dir" && as_dir=.
11210 for ac_exec_ext in '' $ac_executable_extensions; do
11211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11212 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11214 break 2
11216 done
11217 done
11218 IFS=$as_save_IFS
11221 esac
11223 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11224 if test -n "$aros_kernel_ar"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11226 $as_echo "$aros_kernel_ar" >&6; }
11227 else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11233 else
11235 if test "" = ""; then
11236 ac_tool_ar=ar
11237 else
11238 ac_tool_ar=
11240 if test "$GCC" = "yes"; then
11241 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
11242 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11243 set dummy `basename $aros_gcc_ar`; ac_word=$2
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11245 $as_echo_n "checking for $ac_word... " >&6; }
11246 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 case $aros_kernel_ar in
11250 [\\/]* | ?:[\\/]*)
11251 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in `dirname $aros_gcc_ar`
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11261 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11265 done
11266 done
11267 IFS=$as_save_IFS
11270 esac
11272 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11273 if test -n "$aros_kernel_ar"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11275 $as_echo "$aros_kernel_ar" >&6; }
11276 else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11283 if test "$aros_kernel_ar" = ""; then
11284 for ac_prog in $ac_tool_ar
11286 # Extract the first word of "$ac_prog", so it can be a program name with args.
11287 set dummy $ac_prog; ac_word=$2
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289 $as_echo_n "checking for $ac_word... " >&6; }
11290 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293 case $aros_kernel_ar in
11294 [\\/]* | ?:[\\/]*)
11295 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299 for as_dir in $PATH
11301 IFS=$as_save_IFS
11302 test -z "$as_dir" && as_dir=.
11303 for ac_exec_ext in '' $ac_executable_extensions; do
11304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11305 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11307 break 2
11309 done
11310 done
11311 IFS=$as_save_IFS
11314 esac
11316 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11317 if test -n "$aros_kernel_ar"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11319 $as_echo "$aros_kernel_ar" >&6; }
11320 else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11326 test -n "$aros_kernel_ar" && break
11327 done
11332 else
11333 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
11334 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
11335 set dummy $aros_kernel_ar; ac_word=$2
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11337 $as_echo_n "checking for $ac_word... " >&6; }
11338 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 case $aros_kernel_ar in
11342 [\\/]* | ?:[\\/]*)
11343 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347 for as_dir in $PATH
11349 IFS=$as_save_IFS
11350 test -z "$as_dir" && as_dir=.
11351 for ac_exec_ext in '' $ac_executable_extensions; do
11352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11353 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11355 break 2
11357 done
11358 done
11359 IFS=$as_save_IFS
11362 esac
11364 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11365 if test -n "$aros_kernel_ar"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11367 $as_echo "$aros_kernel_ar" >&6; }
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11374 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
11377 req_avail=yes
11378 if test "$aros_kernel_ar" = ""; then
11379 req_avail=no
11381 if test "$aros_kernel_ar" = "no"; then
11382 req_avail=no
11384 if test "$req_avail" = "no"; then
11385 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11387 if test "x$aros_kernel_ranlib" = "x"; then
11388 aros_kernel_ranlib=${kernel_tool_prefix}${RANLIB_BASE}
11390 if test "${kernel_tool_version}" != ""; then
11391 if test "$aros_kernel_ranlib" != ""; then
11392 ac_prog_args=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11393 ac_prog_cmd=`expr "X$aros_kernel_ranlib" : '^\S*'`
11394 aros_kernel_ranlib="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
11398 if test "$aros_kernel_ranlib" = ""; then
11399 if test "$cross_compiling" = "yes" ; then
11400 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
11401 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403 $as_echo_n "checking for $ac_word... " >&6; }
11404 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11405 $as_echo_n "(cached) " >&6
11406 else
11407 case $aros_kernel_ranlib in
11408 [\\/]* | ?:[\\/]*)
11409 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11413 for as_dir in $PATH
11415 IFS=$as_save_IFS
11416 test -z "$as_dir" && as_dir=.
11417 for ac_exec_ext in '' $ac_executable_extensions; do
11418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11419 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11421 break 2
11423 done
11424 done
11425 IFS=$as_save_IFS
11428 esac
11430 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11431 if test -n "$aros_kernel_ranlib"; then
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11433 $as_echo "$aros_kernel_ranlib" >&6; }
11434 else
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436 $as_echo "no" >&6; }
11440 else
11442 if test "" = ""; then
11443 ac_tool_ranlib=ranlib
11444 else
11445 ac_tool_ranlib=
11447 if test "$GCC" = "yes"; then
11448 aros_gcc_ranlib=`$CC -print-prog-name=$ac_tool_ranlib`
11449 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
11450 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11452 $as_echo_n "checking for $ac_word... " >&6; }
11453 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 case $aros_kernel_ranlib in
11457 [\\/]* | ?:[\\/]*)
11458 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 for as_dir in `dirname $aros_gcc_ranlib`
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11468 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 break 2
11472 done
11473 done
11474 IFS=$as_save_IFS
11477 esac
11479 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11480 if test -n "$aros_kernel_ranlib"; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11482 $as_echo "$aros_kernel_ranlib" >&6; }
11483 else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11490 if test "$aros_kernel_ranlib" = ""; then
11491 for ac_prog in $ac_tool_ranlib
11493 # Extract the first word of "$ac_prog", so it can be a program name with args.
11494 set dummy $ac_prog; ac_word=$2
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496 $as_echo_n "checking for $ac_word... " >&6; }
11497 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 case $aros_kernel_ranlib in
11501 [\\/]* | ?:[\\/]*)
11502 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11506 for as_dir in $PATH
11508 IFS=$as_save_IFS
11509 test -z "$as_dir" && as_dir=.
11510 for ac_exec_ext in '' $ac_executable_extensions; do
11511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11512 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11514 break 2
11516 done
11517 done
11518 IFS=$as_save_IFS
11521 esac
11523 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11524 if test -n "$aros_kernel_ranlib"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11526 $as_echo "$aros_kernel_ranlib" >&6; }
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11533 test -n "$aros_kernel_ranlib" && break
11534 done
11539 else
11540 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11541 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
11542 set dummy $aros_kernel_ranlib; ac_word=$2
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544 $as_echo_n "checking for $ac_word... " >&6; }
11545 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11546 $as_echo_n "(cached) " >&6
11547 else
11548 case $aros_kernel_ranlib in
11549 [\\/]* | ?:[\\/]*)
11550 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554 for as_dir in $PATH
11556 IFS=$as_save_IFS
11557 test -z "$as_dir" && as_dir=.
11558 for ac_exec_ext in '' $ac_executable_extensions; do
11559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11560 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11562 break 2
11564 done
11565 done
11566 IFS=$as_save_IFS
11569 esac
11571 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11572 if test -n "$aros_kernel_ranlib"; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11574 $as_echo "$aros_kernel_ranlib" >&6; }
11575 else
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11581 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
11584 req_avail=yes
11585 if test "$aros_kernel_ranlib" = ""; then
11586 req_avail=no
11588 if test "$aros_kernel_ranlib" = "no"; then
11589 req_avail=no
11591 if test "$req_avail" = "no"; then
11592 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11594 if test "x$aros_kernel_nm" = "x"; then
11595 aros_kernel_nm=$aros_host_nm
11596 if test "x$aros_kernel_nm" = "x"; then
11597 aros_kernel_nm=${HOST_TOOLCHAIN_PREFIX}nm${HOST_TOOLCHAIN_SUFFIX}
11601 if test "$aros_kernel_nm" = ""; then
11602 if test "$cross_compiling" = "yes" ; then
11603 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
11604 set dummy ${kernel_tool_prefix}nm; ac_word=$2
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11606 $as_echo_n "checking for $ac_word... " >&6; }
11607 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11608 $as_echo_n "(cached) " >&6
11609 else
11610 case $aros_kernel_nm in
11611 [\\/]* | ?:[\\/]*)
11612 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616 for as_dir in $PATH
11618 IFS=$as_save_IFS
11619 test -z "$as_dir" && as_dir=.
11620 for ac_exec_ext in '' $ac_executable_extensions; do
11621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11622 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11624 break 2
11626 done
11627 done
11628 IFS=$as_save_IFS
11631 esac
11633 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11634 if test -n "$aros_kernel_nm"; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11636 $as_echo "$aros_kernel_nm" >&6; }
11637 else
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11643 else
11645 if test "" = ""; then
11646 ac_tool_nm=nm
11647 else
11648 ac_tool_nm=
11650 if test "$GCC" = "yes"; then
11651 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
11652 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11653 set dummy `basename $aros_gcc_nm`; ac_word=$2
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655 $as_echo_n "checking for $ac_word... " >&6; }
11656 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 case $aros_kernel_nm in
11660 [\\/]* | ?:[\\/]*)
11661 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in `dirname $aros_gcc_nm`
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11671 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 break 2
11675 done
11676 done
11677 IFS=$as_save_IFS
11680 esac
11682 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11683 if test -n "$aros_kernel_nm"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11685 $as_echo "$aros_kernel_nm" >&6; }
11686 else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11693 if test "$aros_kernel_nm" = ""; then
11694 for ac_prog in $ac_tool_nm
11696 # Extract the first word of "$ac_prog", so it can be a program name with args.
11697 set dummy $ac_prog; ac_word=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11701 $as_echo_n "(cached) " >&6
11702 else
11703 case $aros_kernel_nm in
11704 [\\/]* | ?:[\\/]*)
11705 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11711 IFS=$as_save_IFS
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11715 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717 break 2
11719 done
11720 done
11721 IFS=$as_save_IFS
11724 esac
11726 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11727 if test -n "$aros_kernel_nm"; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11729 $as_echo "$aros_kernel_nm" >&6; }
11730 else
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11736 test -n "$aros_kernel_nm" && break
11737 done
11742 else
11743 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11744 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11745 set dummy $aros_kernel_nm; ac_word=$2
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747 $as_echo_n "checking for $ac_word... " >&6; }
11748 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11751 case $aros_kernel_nm in
11752 [\\/]* | ?:[\\/]*)
11753 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757 for as_dir in $PATH
11759 IFS=$as_save_IFS
11760 test -z "$as_dir" && as_dir=.
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11763 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11765 break 2
11767 done
11768 done
11769 IFS=$as_save_IFS
11772 esac
11774 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11775 if test -n "$aros_kernel_nm"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11777 $as_echo "$aros_kernel_nm" >&6; }
11778 else
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11784 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
11787 req_avail=yes
11788 if test "$aros_kernel_nm" = ""; then
11789 req_avail=no
11791 if test "$aros_kernel_nm" = "no"; then
11792 req_avail=no
11794 if test "$req_avail" = "no"; then
11795 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11798 if test "$aros_kernel_strip" = ""; then
11799 if test "$cross_compiling" = "yes" ; then
11800 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11801 set dummy ${kernel_tool_prefix}strip; ac_word=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11805 $as_echo_n "(cached) " >&6
11806 else
11807 case $aros_kernel_strip in
11808 [\\/]* | ?:[\\/]*)
11809 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $PATH
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11819 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11821 break 2
11823 done
11824 done
11825 IFS=$as_save_IFS
11828 esac
11830 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11831 if test -n "$aros_kernel_strip"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11833 $as_echo "$aros_kernel_strip" >&6; }
11834 else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11840 else
11842 if test "" = ""; then
11843 ac_tool_strip=strip
11844 else
11845 ac_tool_strip=
11847 if test "$GCC" = "yes"; then
11848 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
11849 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11850 set dummy `basename $aros_gcc_strip`; ac_word=$2
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852 $as_echo_n "checking for $ac_word... " >&6; }
11853 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11854 $as_echo_n "(cached) " >&6
11855 else
11856 case $aros_kernel_strip in
11857 [\\/]* | ?:[\\/]*)
11858 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862 for as_dir in `dirname $aros_gcc_strip`
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11868 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11872 done
11873 done
11874 IFS=$as_save_IFS
11877 esac
11879 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11880 if test -n "$aros_kernel_strip"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11882 $as_echo "$aros_kernel_strip" >&6; }
11883 else
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11890 if test "$aros_kernel_strip" = ""; then
11891 for ac_prog in $ac_tool_strip
11893 # Extract the first word of "$ac_prog", so it can be a program name with args.
11894 set dummy $ac_prog; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 case $aros_kernel_strip in
11901 [\\/]* | ?:[\\/]*)
11902 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11916 done
11917 done
11918 IFS=$as_save_IFS
11921 esac
11923 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11924 if test -n "$aros_kernel_strip"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11926 $as_echo "$aros_kernel_strip" >&6; }
11927 else
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11933 test -n "$aros_kernel_strip" && break
11934 done
11939 else
11940 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11941 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11942 set dummy $aros_kernel_strip; ac_word=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944 $as_echo_n "checking for $ac_word... " >&6; }
11945 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11946 $as_echo_n "(cached) " >&6
11947 else
11948 case $aros_kernel_strip in
11949 [\\/]* | ?:[\\/]*)
11950 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11954 for as_dir in $PATH
11956 IFS=$as_save_IFS
11957 test -z "$as_dir" && as_dir=.
11958 for ac_exec_ext in '' $ac_executable_extensions; do
11959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11960 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11962 break 2
11964 done
11965 done
11966 IFS=$as_save_IFS
11969 esac
11971 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11972 if test -n "$aros_kernel_strip"; then
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11974 $as_echo "$aros_kernel_strip" >&6; }
11975 else
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11981 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11984 req_avail=yes
11985 if test "$aros_kernel_strip" = ""; then
11986 req_avail=no
11988 if test "$aros_kernel_strip" = "no"; then
11989 req_avail=no
11991 if test "$req_avail" = "no"; then
11992 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11995 # Objcopy and objdump are not required for the kernel
11996 # toolchain on many architectures.
11997 # So we'll look for them, but not make them strictly required.
11998 if test "x$aros_kernel_objcopy" = "x"; then
11999 aros_kernel_objcopy=$aros_host_objcopy
12000 if test "x$aros_kernel_objcopy" = "x"; then
12001 aros_kernel_objcopy=${HOST_TOOLCHAIN_PREFIX}objcopy${HOST_TOOLCHAIN_SUFFIX}
12005 if test "$aros_kernel_objcopy" = ""; then
12006 if test "$cross_compiling" = "yes" ; then
12007 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
12008 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 $as_echo_n "checking for $ac_word... " >&6; }
12011 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
12012 $as_echo_n "(cached) " >&6
12013 else
12014 case $aros_kernel_objcopy in
12015 [\\/]* | ?:[\\/]*)
12016 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
12019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020 for as_dir in $PATH
12022 IFS=$as_save_IFS
12023 test -z "$as_dir" && as_dir=.
12024 for ac_exec_ext in '' $ac_executable_extensions; do
12025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12026 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
12027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12028 break 2
12030 done
12031 done
12032 IFS=$as_save_IFS
12035 esac
12037 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
12038 if test -n "$aros_kernel_objcopy"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12040 $as_echo "$aros_kernel_objcopy" >&6; }
12041 else
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12047 else
12049 if test "" = ""; then
12050 ac_tool_objcopy=objcopy
12051 else
12052 ac_tool_objcopy=
12054 if test "$GCC" = "yes"; then
12055 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
12056 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12057 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12059 $as_echo_n "checking for $ac_word... " >&6; }
12060 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063 case $aros_kernel_objcopy in
12064 [\\/]* | ?:[\\/]*)
12065 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
12068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in `dirname $aros_gcc_objcopy`
12071 IFS=$as_save_IFS
12072 test -z "$as_dir" && as_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12075 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
12076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077 break 2
12079 done
12080 done
12081 IFS=$as_save_IFS
12084 esac
12086 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
12087 if test -n "$aros_kernel_objcopy"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12089 $as_echo "$aros_kernel_objcopy" >&6; }
12090 else
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092 $as_echo "no" >&6; }
12097 if test "$aros_kernel_objcopy" = ""; then
12098 for ac_prog in $ac_tool_objcopy
12100 # Extract the first word of "$ac_prog", so it can be a program name with args.
12101 set dummy $ac_prog; ac_word=$2
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12103 $as_echo_n "checking for $ac_word... " >&6; }
12104 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 case $aros_kernel_objcopy in
12108 [\\/]* | ?:[\\/]*)
12109 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $PATH
12115 IFS=$as_save_IFS
12116 test -z "$as_dir" && as_dir=.
12117 for ac_exec_ext in '' $ac_executable_extensions; do
12118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12119 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
12120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 break 2
12123 done
12124 done
12125 IFS=$as_save_IFS
12128 esac
12130 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
12131 if test -n "$aros_kernel_objcopy"; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12133 $as_echo "$aros_kernel_objcopy" >&6; }
12134 else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12140 test -n "$aros_kernel_objcopy" && break
12141 done
12146 else
12147 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
12148 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
12149 set dummy $aros_kernel_objcopy; ac_word=$2
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12151 $as_echo_n "checking for $ac_word... " >&6; }
12152 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 case $aros_kernel_objcopy in
12156 [\\/]* | ?:[\\/]*)
12157 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
12160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161 for as_dir in $PATH
12163 IFS=$as_save_IFS
12164 test -z "$as_dir" && as_dir=.
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
12168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12169 break 2
12171 done
12172 done
12173 IFS=$as_save_IFS
12176 esac
12178 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
12179 if test -n "$aros_kernel_objcopy"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12181 $as_echo "$aros_kernel_objcopy" >&6; }
12182 else
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12188 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
12191 if test "x$aros_kernel_objdump" = "x"; then
12192 aros_kernel_objdump=$aros_host_objdump
12193 if test "x$aros_kernel_objdump" = "x"; then
12194 aros_kernel_objdump=${HOST_TOOLCHAIN_PREFIX}objdump${HOST_TOOLCHAIN_SUFFIX}
12198 if test "$aros_kernel_objdump" = ""; then
12199 if test "$cross_compiling" = "yes" ; then
12200 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
12201 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 case $aros_kernel_objdump in
12208 [\\/]* | ?:[\\/]*)
12209 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in $PATH
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12219 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 break 2
12223 done
12224 done
12225 IFS=$as_save_IFS
12228 esac
12230 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12231 if test -n "$aros_kernel_objdump"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12233 $as_echo "$aros_kernel_objdump" >&6; }
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12240 else
12242 if test "" = ""; then
12243 ac_tool_objdump=objdump
12244 else
12245 ac_tool_objdump=
12247 if test "$GCC" = "yes"; then
12248 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
12249 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12250 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 case $aros_kernel_objdump in
12257 [\\/]* | ?:[\\/]*)
12258 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in `dirname $aros_gcc_objdump`
12264 IFS=$as_save_IFS
12265 test -z "$as_dir" && as_dir=.
12266 for ac_exec_ext in '' $ac_executable_extensions; do
12267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12268 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12270 break 2
12272 done
12273 done
12274 IFS=$as_save_IFS
12277 esac
12279 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12280 if test -n "$aros_kernel_objdump"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12282 $as_echo "$aros_kernel_objdump" >&6; }
12283 else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12290 if test "$aros_kernel_objdump" = ""; then
12291 for ac_prog in $ac_tool_objdump
12293 # Extract the first word of "$ac_prog", so it can be a program name with args.
12294 set dummy $ac_prog; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 case $aros_kernel_objdump in
12301 [\\/]* | ?:[\\/]*)
12302 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12312 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314 break 2
12316 done
12317 done
12318 IFS=$as_save_IFS
12321 esac
12323 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12324 if test -n "$aros_kernel_objdump"; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12326 $as_echo "$aros_kernel_objdump" >&6; }
12327 else
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 $as_echo "no" >&6; }
12333 test -n "$aros_kernel_objdump" && break
12334 done
12339 else
12340 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
12341 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
12342 set dummy $aros_kernel_objdump; ac_word=$2
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344 $as_echo_n "checking for $ac_word... " >&6; }
12345 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 case $aros_kernel_objdump in
12349 [\\/]* | ?:[\\/]*)
12350 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12356 IFS=$as_save_IFS
12357 test -z "$as_dir" && as_dir=.
12358 for ac_exec_ext in '' $ac_executable_extensions; do
12359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12360 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 break 2
12364 done
12365 done
12366 IFS=$as_save_IFS
12369 esac
12371 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12372 if test -n "$aros_kernel_objdump"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12374 $as_echo "$aros_kernel_objdump" >&6; }
12375 else
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12381 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
12384 if test "x${crosstools}" != "xyes" ; then
12385 req_avail=yes
12386 if test "$aros_kernel_objcopy" = ""; then
12387 req_avail=no
12389 if test "$aros_kernel_objcopy" = "no"; then
12390 req_avail=no
12392 if test "$req_avail" = "no"; then
12393 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12395 req_avail=yes
12396 if test "$aros_kernel_objdump" = ""; then
12397 req_avail=no
12399 if test "$aros_kernel_objdump" = "no"; then
12400 req_avail=no
12402 if test "$req_avail" = "no"; then
12403 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
12410 $as_echo_n "checking which target tools to use... " >&6; }
12411 if test "$aros_target_toolchain" = "yes"; then
12412 if test "$aros_toolchain" = "llvm" ; then
12413 msg_result="llvm"
12414 else
12415 msg_result=$target_tool_prefix
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
12418 $as_echo "$msg_result" >&6; }
12419 # We are building AROS crosstools
12420 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
12421 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
12422 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
12423 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
12424 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
12425 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
12426 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
12427 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
12428 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
12429 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
12430 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
12431 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
12432 else
12433 # Determine whether AROS or ELF tools should be used
12434 if test "$aros_tool_prefix" = "none"; then
12435 aros_tool_prefix="${elf_tool_prefix}"
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
12439 $as_echo "$aros_tool_prefix" >&6; }
12440 # We are *not* building AROS crosstools - use the AROS or ELF tools
12442 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" = ""; then
12443 if test "$cross_compiling" = "yes" ; then
12444 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
12445 set dummy ${target_tool_prefix}cpp; ac_word=$2
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447 $as_echo_n "checking for $ac_word... " >&6; }
12448 if ${ac_cv_path_orig_target_cpp+:} false; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12451 case $orig_target_cpp in
12452 [\\/]* | ?:[\\/]*)
12453 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457 for as_dir in $PATH
12459 IFS=$as_save_IFS
12460 test -z "$as_dir" && as_dir=.
12461 for ac_exec_ext in '' $ac_executable_extensions; do
12462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12463 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12465 break 2
12467 done
12468 done
12469 IFS=$as_save_IFS
12472 esac
12474 orig_target_cpp=$ac_cv_path_orig_target_cpp
12475 if test -n "$orig_target_cpp"; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12477 $as_echo "$orig_target_cpp" >&6; }
12478 else
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480 $as_echo "no" >&6; }
12484 else
12486 if test "" = ""; then
12487 ac_tool_cpp=cpp
12488 else
12489 ac_tool_cpp=
12491 if test "$GCC" = "yes"; then
12492 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
12493 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
12494 set dummy `basename $aros_gcc_cpp`; ac_word=$2
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496 $as_echo_n "checking for $ac_word... " >&6; }
12497 if ${ac_cv_path_orig_target_cpp+:} false; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12500 case $orig_target_cpp in
12501 [\\/]* | ?:[\\/]*)
12502 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506 for as_dir in `dirname $aros_gcc_cpp`
12508 IFS=$as_save_IFS
12509 test -z "$as_dir" && as_dir=.
12510 for ac_exec_ext in '' $ac_executable_extensions; do
12511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12512 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12514 break 2
12516 done
12517 done
12518 IFS=$as_save_IFS
12521 esac
12523 orig_target_cpp=$ac_cv_path_orig_target_cpp
12524 if test -n "$orig_target_cpp"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12526 $as_echo "$orig_target_cpp" >&6; }
12527 else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529 $as_echo "no" >&6; }
12534 if test "$orig_target_cpp" = ""; then
12535 for ac_prog in $ac_tool_cpp
12537 # Extract the first word of "$ac_prog", so it can be a program name with args.
12538 set dummy $ac_prog; ac_word=$2
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540 $as_echo_n "checking for $ac_word... " >&6; }
12541 if ${ac_cv_path_orig_target_cpp+:} false; then :
12542 $as_echo_n "(cached) " >&6
12543 else
12544 case $orig_target_cpp in
12545 [\\/]* | ?:[\\/]*)
12546 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12550 for as_dir in $PATH
12552 IFS=$as_save_IFS
12553 test -z "$as_dir" && as_dir=.
12554 for ac_exec_ext in '' $ac_executable_extensions; do
12555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12556 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12558 break 2
12560 done
12561 done
12562 IFS=$as_save_IFS
12565 esac
12567 orig_target_cpp=$ac_cv_path_orig_target_cpp
12568 if test -n "$orig_target_cpp"; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12570 $as_echo "$orig_target_cpp" >&6; }
12571 else
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573 $as_echo "no" >&6; }
12577 test -n "$orig_target_cpp" && break
12578 done
12583 else
12584 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" : '[^ ]* \(.*\)'`
12585 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}", so it can be a program name with args.
12586 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_path_orig_target_cpp+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 case $orig_target_cpp in
12593 [\\/]* | ?:[\\/]*)
12594 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12600 IFS=$as_save_IFS
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12604 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 break 2
12608 done
12609 done
12610 IFS=$as_save_IFS
12613 esac
12615 orig_target_cpp=$ac_cv_path_orig_target_cpp
12616 if test -n "$orig_target_cpp"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12618 $as_echo "$orig_target_cpp" >&6; }
12619 else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12625 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
12628 req_avail=yes
12629 if test "$orig_target_cpp" = ""; then
12630 req_avail=no
12632 if test "$orig_target_cpp" = "no"; then
12633 req_avail=no
12635 if test "$req_avail" = "no"; then
12636 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
12639 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
12640 if test "$cross_compiling" = "yes" ; then
12641 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12642 set dummy ${target_tool_prefix}gcc; ac_word=$2
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644 $as_echo_n "checking for $ac_word... " >&6; }
12645 if ${ac_cv_path_orig_target_cc+:} false; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 case $orig_target_cc in
12649 [\\/]* | ?:[\\/]*)
12650 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12660 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12664 done
12665 done
12666 IFS=$as_save_IFS
12669 esac
12671 orig_target_cc=$ac_cv_path_orig_target_cc
12672 if test -n "$orig_target_cc"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12674 $as_echo "$orig_target_cc" >&6; }
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12681 else
12683 if test "" = ""; then
12684 ac_tool_gcc=gcc
12685 else
12686 ac_tool_gcc=
12688 if test "$GCC" = "yes"; then
12689 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12690 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12691 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693 $as_echo_n "checking for $ac_word... " >&6; }
12694 if ${ac_cv_path_orig_target_cc+:} false; then :
12695 $as_echo_n "(cached) " >&6
12696 else
12697 case $orig_target_cc in
12698 [\\/]* | ?:[\\/]*)
12699 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703 for as_dir in `dirname $aros_gcc_gcc`
12705 IFS=$as_save_IFS
12706 test -z "$as_dir" && as_dir=.
12707 for ac_exec_ext in '' $ac_executable_extensions; do
12708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12709 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12711 break 2
12713 done
12714 done
12715 IFS=$as_save_IFS
12718 esac
12720 orig_target_cc=$ac_cv_path_orig_target_cc
12721 if test -n "$orig_target_cc"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12723 $as_echo "$orig_target_cc" >&6; }
12724 else
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12731 if test "$orig_target_cc" = ""; then
12732 for ac_prog in $ac_tool_gcc
12734 # Extract the first word of "$ac_prog", so it can be a program name with args.
12735 set dummy $ac_prog; ac_word=$2
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12737 $as_echo_n "checking for $ac_word... " >&6; }
12738 if ${ac_cv_path_orig_target_cc+:} false; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 case $orig_target_cc in
12742 [\\/]* | ?:[\\/]*)
12743 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12747 for as_dir in $PATH
12749 IFS=$as_save_IFS
12750 test -z "$as_dir" && as_dir=.
12751 for ac_exec_ext in '' $ac_executable_extensions; do
12752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12753 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12755 break 2
12757 done
12758 done
12759 IFS=$as_save_IFS
12762 esac
12764 orig_target_cc=$ac_cv_path_orig_target_cc
12765 if test -n "$orig_target_cc"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12767 $as_echo "$orig_target_cc" >&6; }
12768 else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 $as_echo "no" >&6; }
12774 test -n "$orig_target_cc" && break
12775 done
12780 else
12781 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12782 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12783 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12785 $as_echo_n "checking for $ac_word... " >&6; }
12786 if ${ac_cv_path_orig_target_cc+:} false; then :
12787 $as_echo_n "(cached) " >&6
12788 else
12789 case $orig_target_cc in
12790 [\\/]* | ?:[\\/]*)
12791 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795 for as_dir in $PATH
12797 IFS=$as_save_IFS
12798 test -z "$as_dir" && as_dir=.
12799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12801 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12803 break 2
12805 done
12806 done
12807 IFS=$as_save_IFS
12810 esac
12812 orig_target_cc=$ac_cv_path_orig_target_cc
12813 if test -n "$orig_target_cc"; then
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12815 $as_echo "$orig_target_cc" >&6; }
12816 else
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12818 $as_echo "no" >&6; }
12822 orig_target_cc="$orig_target_cc $ac_tool_optarg"
12825 req_avail=yes
12826 if test "$orig_target_cc" = ""; then
12827 req_avail=no
12829 if test "$orig_target_cc" = "no"; then
12830 req_avail=no
12832 if test "$req_avail" = "no"; then
12833 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12836 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12837 if test "$cross_compiling" = "yes" ; then
12838 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12839 set dummy ${target_tool_prefix}g++; ac_word=$2
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12841 $as_echo_n "checking for $ac_word... " >&6; }
12842 if ${ac_cv_path_orig_target_cxx+:} false; then :
12843 $as_echo_n "(cached) " >&6
12844 else
12845 case $orig_target_cxx in
12846 [\\/]* | ?:[\\/]*)
12847 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851 for as_dir in $PATH
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12857 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12859 break 2
12861 done
12862 done
12863 IFS=$as_save_IFS
12866 esac
12868 orig_target_cxx=$ac_cv_path_orig_target_cxx
12869 if test -n "$orig_target_cxx"; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12871 $as_echo "$orig_target_cxx" >&6; }
12872 else
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12878 else
12880 if test "" = ""; then
12881 ac_tool_g++=g++
12882 else
12883 ac_tool_g++=
12885 if test "$GCC" = "yes"; then
12886 aros_gcc_g++=`$CC -print-prog-name=$ac_tool_g++`
12887 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12888 set dummy `basename $aros_gcc_g++`; ac_word=$2
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12890 $as_echo_n "checking for $ac_word... " >&6; }
12891 if ${ac_cv_path_orig_target_cxx+:} false; then :
12892 $as_echo_n "(cached) " >&6
12893 else
12894 case $orig_target_cxx in
12895 [\\/]* | ?:[\\/]*)
12896 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900 for as_dir in `dirname $aros_gcc_g++`
12902 IFS=$as_save_IFS
12903 test -z "$as_dir" && as_dir=.
12904 for ac_exec_ext in '' $ac_executable_extensions; do
12905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12906 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12908 break 2
12910 done
12911 done
12912 IFS=$as_save_IFS
12915 esac
12917 orig_target_cxx=$ac_cv_path_orig_target_cxx
12918 if test -n "$orig_target_cxx"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12920 $as_echo "$orig_target_cxx" >&6; }
12921 else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12928 if test "$orig_target_cxx" = ""; then
12929 for ac_prog in $ac_tool_g++
12931 # Extract the first word of "$ac_prog", so it can be a program name with args.
12932 set dummy $ac_prog; ac_word=$2
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12934 $as_echo_n "checking for $ac_word... " >&6; }
12935 if ${ac_cv_path_orig_target_cxx+:} false; then :
12936 $as_echo_n "(cached) " >&6
12937 else
12938 case $orig_target_cxx in
12939 [\\/]* | ?:[\\/]*)
12940 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12944 for as_dir in $PATH
12946 IFS=$as_save_IFS
12947 test -z "$as_dir" && as_dir=.
12948 for ac_exec_ext in '' $ac_executable_extensions; do
12949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12950 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12952 break 2
12954 done
12955 done
12956 IFS=$as_save_IFS
12959 esac
12961 orig_target_cxx=$ac_cv_path_orig_target_cxx
12962 if test -n "$orig_target_cxx"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12964 $as_echo "$orig_target_cxx" >&6; }
12965 else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12971 test -n "$orig_target_cxx" && break
12972 done
12977 else
12978 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12979 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12980 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12982 $as_echo_n "checking for $ac_word... " >&6; }
12983 if ${ac_cv_path_orig_target_cxx+:} false; then :
12984 $as_echo_n "(cached) " >&6
12985 else
12986 case $orig_target_cxx in
12987 [\\/]* | ?:[\\/]*)
12988 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992 for as_dir in $PATH
12994 IFS=$as_save_IFS
12995 test -z "$as_dir" && as_dir=.
12996 for ac_exec_ext in '' $ac_executable_extensions; do
12997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12998 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13000 break 2
13002 done
13003 done
13004 IFS=$as_save_IFS
13007 esac
13009 orig_target_cxx=$ac_cv_path_orig_target_cxx
13010 if test -n "$orig_target_cxx"; then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
13012 $as_echo "$orig_target_cxx" >&6; }
13013 else
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015 $as_echo "no" >&6; }
13019 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
13022 req_avail=yes
13023 if test "$orig_target_cxx" = ""; then
13024 req_avail=no
13026 if test "$orig_target_cxx" = "no"; then
13027 req_avail=no
13029 if test "$req_avail" = "no"; then
13030 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
13033 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
13034 if test "$cross_compiling" = "yes" ; then
13035 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
13036 set dummy ${target_tool_prefix}gcc; ac_word=$2
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13038 $as_echo_n "checking for $ac_word... " >&6; }
13039 if ${ac_cv_path_orig_target_ld+:} false; then :
13040 $as_echo_n "(cached) " >&6
13041 else
13042 case $orig_target_ld in
13043 [\\/]* | ?:[\\/]*)
13044 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13058 done
13059 done
13060 IFS=$as_save_IFS
13063 esac
13065 orig_target_ld=$ac_cv_path_orig_target_ld
13066 if test -n "$orig_target_ld"; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13068 $as_echo "$orig_target_ld" >&6; }
13069 else
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 $as_echo "no" >&6; }
13075 else
13077 if test "" = ""; then
13078 ac_tool_gcc=gcc
13079 else
13080 ac_tool_gcc=
13082 if test "$GCC" = "yes"; then
13083 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
13084 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
13085 set dummy `basename $aros_gcc_gcc`; ac_word=$2
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087 $as_echo_n "checking for $ac_word... " >&6; }
13088 if ${ac_cv_path_orig_target_ld+:} false; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 case $orig_target_ld in
13092 [\\/]* | ?:[\\/]*)
13093 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
13096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097 for as_dir in `dirname $aros_gcc_gcc`
13099 IFS=$as_save_IFS
13100 test -z "$as_dir" && as_dir=.
13101 for ac_exec_ext in '' $ac_executable_extensions; do
13102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13103 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
13104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13105 break 2
13107 done
13108 done
13109 IFS=$as_save_IFS
13112 esac
13114 orig_target_ld=$ac_cv_path_orig_target_ld
13115 if test -n "$orig_target_ld"; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13117 $as_echo "$orig_target_ld" >&6; }
13118 else
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 $as_echo "no" >&6; }
13125 if test "$orig_target_ld" = ""; then
13126 for ac_prog in $ac_tool_gcc
13128 # Extract the first word of "$ac_prog", so it can be a program name with args.
13129 set dummy $ac_prog; ac_word=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 $as_echo_n "checking for $ac_word... " >&6; }
13132 if ${ac_cv_path_orig_target_ld+:} false; then :
13133 $as_echo_n "(cached) " >&6
13134 else
13135 case $orig_target_ld in
13136 [\\/]* | ?:[\\/]*)
13137 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13143 IFS=$as_save_IFS
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13147 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149 break 2
13151 done
13152 done
13153 IFS=$as_save_IFS
13156 esac
13158 orig_target_ld=$ac_cv_path_orig_target_ld
13159 if test -n "$orig_target_ld"; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13161 $as_echo "$orig_target_ld" >&6; }
13162 else
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164 $as_echo "no" >&6; }
13168 test -n "$orig_target_ld" && break
13169 done
13174 else
13175 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
13176 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
13177 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179 $as_echo_n "checking for $ac_word... " >&6; }
13180 if ${ac_cv_path_orig_target_ld+:} false; then :
13181 $as_echo_n "(cached) " >&6
13182 else
13183 case $orig_target_ld in
13184 [\\/]* | ?:[\\/]*)
13185 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
13188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189 for as_dir in $PATH
13191 IFS=$as_save_IFS
13192 test -z "$as_dir" && as_dir=.
13193 for ac_exec_ext in '' $ac_executable_extensions; do
13194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13195 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
13196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13197 break 2
13199 done
13200 done
13201 IFS=$as_save_IFS
13204 esac
13206 orig_target_ld=$ac_cv_path_orig_target_ld
13207 if test -n "$orig_target_ld"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13209 $as_echo "$orig_target_ld" >&6; }
13210 else
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13216 orig_target_ld="$orig_target_ld $ac_tool_optarg"
13219 req_avail=yes
13220 if test "$orig_target_ld" = ""; then
13221 req_avail=no
13223 if test "$orig_target_ld" = "no"; then
13224 req_avail=no
13226 if test "$req_avail" = "no"; then
13227 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
13230 if test "aros_tool_prefix}${toolchain_as}" = ""; then
13231 if test "$cross_compiling" = "yes" ; then
13232 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
13233 set dummy ${target_tool_prefix}as; ac_word=$2
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235 $as_echo_n "checking for $ac_word... " >&6; }
13236 if ${ac_cv_path_orig_target_as+:} false; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239 case $orig_target_as in
13240 [\\/]* | ?:[\\/]*)
13241 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13247 IFS=$as_save_IFS
13248 test -z "$as_dir" && as_dir=.
13249 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13251 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13253 break 2
13255 done
13256 done
13257 IFS=$as_save_IFS
13260 esac
13262 orig_target_as=$ac_cv_path_orig_target_as
13263 if test -n "$orig_target_as"; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13265 $as_echo "$orig_target_as" >&6; }
13266 else
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13272 else
13274 if test "" = ""; then
13275 ac_tool_as=as
13276 else
13277 ac_tool_as=
13279 if test "$GCC" = "yes"; then
13280 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
13281 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
13282 set dummy `basename $aros_gcc_as`; ac_word=$2
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13284 $as_echo_n "checking for $ac_word... " >&6; }
13285 if ${ac_cv_path_orig_target_as+:} false; then :
13286 $as_echo_n "(cached) " >&6
13287 else
13288 case $orig_target_as in
13289 [\\/]* | ?:[\\/]*)
13290 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13294 for as_dir in `dirname $aros_gcc_as`
13296 IFS=$as_save_IFS
13297 test -z "$as_dir" && as_dir=.
13298 for ac_exec_ext in '' $ac_executable_extensions; do
13299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13300 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13302 break 2
13304 done
13305 done
13306 IFS=$as_save_IFS
13309 esac
13311 orig_target_as=$ac_cv_path_orig_target_as
13312 if test -n "$orig_target_as"; then
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13314 $as_echo "$orig_target_as" >&6; }
13315 else
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317 $as_echo "no" >&6; }
13322 if test "$orig_target_as" = ""; then
13323 for ac_prog in $ac_tool_as
13325 # Extract the first word of "$ac_prog", so it can be a program name with args.
13326 set dummy $ac_prog; ac_word=$2
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13328 $as_echo_n "checking for $ac_word... " >&6; }
13329 if ${ac_cv_path_orig_target_as+:} false; then :
13330 $as_echo_n "(cached) " >&6
13331 else
13332 case $orig_target_as in
13333 [\\/]* | ?:[\\/]*)
13334 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13338 for as_dir in $PATH
13340 IFS=$as_save_IFS
13341 test -z "$as_dir" && as_dir=.
13342 for ac_exec_ext in '' $ac_executable_extensions; do
13343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13344 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13346 break 2
13348 done
13349 done
13350 IFS=$as_save_IFS
13353 esac
13355 orig_target_as=$ac_cv_path_orig_target_as
13356 if test -n "$orig_target_as"; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13358 $as_echo "$orig_target_as" >&6; }
13359 else
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361 $as_echo "no" >&6; }
13365 test -n "$orig_target_as" && break
13366 done
13371 else
13372 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
13373 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
13374 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376 $as_echo_n "checking for $ac_word... " >&6; }
13377 if ${ac_cv_path_orig_target_as+:} false; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 case $orig_target_as in
13381 [\\/]* | ?:[\\/]*)
13382 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386 for as_dir in $PATH
13388 IFS=$as_save_IFS
13389 test -z "$as_dir" && as_dir=.
13390 for ac_exec_ext in '' $ac_executable_extensions; do
13391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13392 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13394 break 2
13396 done
13397 done
13398 IFS=$as_save_IFS
13401 esac
13403 orig_target_as=$ac_cv_path_orig_target_as
13404 if test -n "$orig_target_as"; then
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13406 $as_echo "$orig_target_as" >&6; }
13407 else
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409 $as_echo "no" >&6; }
13413 orig_target_as="$orig_target_as $ac_tool_optarg"
13416 req_avail=yes
13417 if test "$orig_target_as" = ""; then
13418 req_avail=no
13420 if test "$orig_target_as" = "no"; then
13421 req_avail=no
13423 if test "$req_avail" = "no"; then
13424 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
13427 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
13428 if test "$cross_compiling" = "yes" ; then
13429 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13430 set dummy ${target_tool_prefix}ar; ac_word=$2
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13432 $as_echo_n "checking for $ac_word... " >&6; }
13433 if ${ac_cv_path_orig_target_ar+:} false; then :
13434 $as_echo_n "(cached) " >&6
13435 else
13436 case $orig_target_ar in
13437 [\\/]* | ?:[\\/]*)
13438 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442 for as_dir in $PATH
13444 IFS=$as_save_IFS
13445 test -z "$as_dir" && as_dir=.
13446 for ac_exec_ext in '' $ac_executable_extensions; do
13447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13448 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13450 break 2
13452 done
13453 done
13454 IFS=$as_save_IFS
13457 esac
13459 orig_target_ar=$ac_cv_path_orig_target_ar
13460 if test -n "$orig_target_ar"; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13462 $as_echo "$orig_target_ar" >&6; }
13463 else
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465 $as_echo "no" >&6; }
13469 else
13471 if test "" = ""; then
13472 ac_tool_ar=ar
13473 else
13474 ac_tool_ar=
13476 if test "$GCC" = "yes"; then
13477 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13478 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13479 set dummy `basename $aros_gcc_ar`; ac_word=$2
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481 $as_echo_n "checking for $ac_word... " >&6; }
13482 if ${ac_cv_path_orig_target_ar+:} false; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 case $orig_target_ar in
13486 [\\/]* | ?:[\\/]*)
13487 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491 for as_dir in `dirname $aros_gcc_ar`
13493 IFS=$as_save_IFS
13494 test -z "$as_dir" && as_dir=.
13495 for ac_exec_ext in '' $ac_executable_extensions; do
13496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13497 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13499 break 2
13501 done
13502 done
13503 IFS=$as_save_IFS
13506 esac
13508 orig_target_ar=$ac_cv_path_orig_target_ar
13509 if test -n "$orig_target_ar"; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13511 $as_echo "$orig_target_ar" >&6; }
13512 else
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514 $as_echo "no" >&6; }
13519 if test "$orig_target_ar" = ""; then
13520 for ac_prog in $ac_tool_ar
13522 # Extract the first word of "$ac_prog", so it can be a program name with args.
13523 set dummy $ac_prog; ac_word=$2
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13525 $as_echo_n "checking for $ac_word... " >&6; }
13526 if ${ac_cv_path_orig_target_ar+:} false; then :
13527 $as_echo_n "(cached) " >&6
13528 else
13529 case $orig_target_ar in
13530 [\\/]* | ?:[\\/]*)
13531 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535 for as_dir in $PATH
13537 IFS=$as_save_IFS
13538 test -z "$as_dir" && as_dir=.
13539 for ac_exec_ext in '' $ac_executable_extensions; do
13540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13541 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13543 break 2
13545 done
13546 done
13547 IFS=$as_save_IFS
13550 esac
13552 orig_target_ar=$ac_cv_path_orig_target_ar
13553 if test -n "$orig_target_ar"; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13555 $as_echo "$orig_target_ar" >&6; }
13556 else
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558 $as_echo "no" >&6; }
13562 test -n "$orig_target_ar" && break
13563 done
13568 else
13569 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
13570 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
13571 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13573 $as_echo_n "checking for $ac_word... " >&6; }
13574 if ${ac_cv_path_orig_target_ar+:} false; then :
13575 $as_echo_n "(cached) " >&6
13576 else
13577 case $orig_target_ar in
13578 [\\/]* | ?:[\\/]*)
13579 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583 for as_dir in $PATH
13585 IFS=$as_save_IFS
13586 test -z "$as_dir" && as_dir=.
13587 for ac_exec_ext in '' $ac_executable_extensions; do
13588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13589 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13591 break 2
13593 done
13594 done
13595 IFS=$as_save_IFS
13598 esac
13600 orig_target_ar=$ac_cv_path_orig_target_ar
13601 if test -n "$orig_target_ar"; then
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13603 $as_echo "$orig_target_ar" >&6; }
13604 else
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606 $as_echo "no" >&6; }
13610 orig_target_ar="$orig_target_ar $ac_tool_optarg"
13613 req_avail=yes
13614 if test "$orig_target_ar" = ""; then
13615 req_avail=no
13617 if test "$orig_target_ar" = "no"; then
13618 req_avail=no
13620 if test "$req_avail" = "no"; then
13621 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
13624 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
13625 if test "$cross_compiling" = "yes" ; then
13626 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13627 set dummy ${target_tool_prefix}ar; ac_word=$2
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13629 $as_echo_n "checking for $ac_word... " >&6; }
13630 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13631 $as_echo_n "(cached) " >&6
13632 else
13633 case $orig_target_ranlib in
13634 [\\/]* | ?:[\\/]*)
13635 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13639 for as_dir in $PATH
13641 IFS=$as_save_IFS
13642 test -z "$as_dir" && as_dir=.
13643 for ac_exec_ext in '' $ac_executable_extensions; do
13644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13645 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13647 break 2
13649 done
13650 done
13651 IFS=$as_save_IFS
13654 esac
13656 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13657 if test -n "$orig_target_ranlib"; then
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13659 $as_echo "$orig_target_ranlib" >&6; }
13660 else
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13662 $as_echo "no" >&6; }
13666 else
13668 if test "" = ""; then
13669 ac_tool_ar=ar
13670 else
13671 ac_tool_ar=
13673 if test "$GCC" = "yes"; then
13674 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13675 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13676 set dummy `basename $aros_gcc_ar`; ac_word=$2
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13678 $as_echo_n "checking for $ac_word... " >&6; }
13679 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13680 $as_echo_n "(cached) " >&6
13681 else
13682 case $orig_target_ranlib in
13683 [\\/]* | ?:[\\/]*)
13684 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13688 for as_dir in `dirname $aros_gcc_ar`
13690 IFS=$as_save_IFS
13691 test -z "$as_dir" && as_dir=.
13692 for ac_exec_ext in '' $ac_executable_extensions; do
13693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13694 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13696 break 2
13698 done
13699 done
13700 IFS=$as_save_IFS
13703 esac
13705 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13706 if test -n "$orig_target_ranlib"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13708 $as_echo "$orig_target_ranlib" >&6; }
13709 else
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711 $as_echo "no" >&6; }
13716 if test "$orig_target_ranlib" = ""; then
13717 for ac_prog in $ac_tool_ar
13719 # Extract the first word of "$ac_prog", so it can be a program name with args.
13720 set dummy $ac_prog; ac_word=$2
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13722 $as_echo_n "checking for $ac_word... " >&6; }
13723 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13724 $as_echo_n "(cached) " >&6
13725 else
13726 case $orig_target_ranlib in
13727 [\\/]* | ?:[\\/]*)
13728 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13732 for as_dir in $PATH
13734 IFS=$as_save_IFS
13735 test -z "$as_dir" && as_dir=.
13736 for ac_exec_ext in '' $ac_executable_extensions; do
13737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13738 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13740 break 2
13742 done
13743 done
13744 IFS=$as_save_IFS
13747 esac
13749 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13750 if test -n "$orig_target_ranlib"; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13752 $as_echo "$orig_target_ranlib" >&6; }
13753 else
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13759 test -n "$orig_target_ranlib" && break
13760 done
13765 else
13766 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
13767 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
13768 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13770 $as_echo_n "checking for $ac_word... " >&6; }
13771 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13772 $as_echo_n "(cached) " >&6
13773 else
13774 case $orig_target_ranlib in
13775 [\\/]* | ?:[\\/]*)
13776 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780 for as_dir in $PATH
13782 IFS=$as_save_IFS
13783 test -z "$as_dir" && as_dir=.
13784 for ac_exec_ext in '' $ac_executable_extensions; do
13785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13786 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13788 break 2
13790 done
13791 done
13792 IFS=$as_save_IFS
13795 esac
13797 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13798 if test -n "$orig_target_ranlib"; then
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13800 $as_echo "$orig_target_ranlib" >&6; }
13801 else
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 $as_echo "no" >&6; }
13807 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
13810 req_avail=yes
13811 if test "$orig_target_ranlib" = ""; then
13812 req_avail=no
13814 if test "$orig_target_ranlib" = "no"; then
13815 req_avail=no
13817 if test "$req_avail" = "no"; then
13818 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
13821 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
13822 if test "$cross_compiling" = "yes" ; then
13823 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
13824 set dummy ${target_tool_prefix}nm; ac_word=$2
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13826 $as_echo_n "checking for $ac_word... " >&6; }
13827 if ${ac_cv_path_orig_target_nm+:} false; then :
13828 $as_echo_n "(cached) " >&6
13829 else
13830 case $orig_target_nm in
13831 [\\/]* | ?:[\\/]*)
13832 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13836 for as_dir in $PATH
13838 IFS=$as_save_IFS
13839 test -z "$as_dir" && as_dir=.
13840 for ac_exec_ext in '' $ac_executable_extensions; do
13841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13842 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13844 break 2
13846 done
13847 done
13848 IFS=$as_save_IFS
13851 esac
13853 orig_target_nm=$ac_cv_path_orig_target_nm
13854 if test -n "$orig_target_nm"; then
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13856 $as_echo "$orig_target_nm" >&6; }
13857 else
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 $as_echo "no" >&6; }
13863 else
13865 if test "" = ""; then
13866 ac_tool_nm=nm
13867 else
13868 ac_tool_nm=
13870 if test "$GCC" = "yes"; then
13871 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
13872 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13873 set dummy `basename $aros_gcc_nm`; ac_word=$2
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13875 $as_echo_n "checking for $ac_word... " >&6; }
13876 if ${ac_cv_path_orig_target_nm+:} false; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 case $orig_target_nm in
13880 [\\/]* | ?:[\\/]*)
13881 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885 for as_dir in `dirname $aros_gcc_nm`
13887 IFS=$as_save_IFS
13888 test -z "$as_dir" && as_dir=.
13889 for ac_exec_ext in '' $ac_executable_extensions; do
13890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13891 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13893 break 2
13895 done
13896 done
13897 IFS=$as_save_IFS
13900 esac
13902 orig_target_nm=$ac_cv_path_orig_target_nm
13903 if test -n "$orig_target_nm"; then
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13905 $as_echo "$orig_target_nm" >&6; }
13906 else
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908 $as_echo "no" >&6; }
13913 if test "$orig_target_nm" = ""; then
13914 for ac_prog in $ac_tool_nm
13916 # Extract the first word of "$ac_prog", so it can be a program name with args.
13917 set dummy $ac_prog; ac_word=$2
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13919 $as_echo_n "checking for $ac_word... " >&6; }
13920 if ${ac_cv_path_orig_target_nm+:} false; then :
13921 $as_echo_n "(cached) " >&6
13922 else
13923 case $orig_target_nm in
13924 [\\/]* | ?:[\\/]*)
13925 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13929 for as_dir in $PATH
13931 IFS=$as_save_IFS
13932 test -z "$as_dir" && as_dir=.
13933 for ac_exec_ext in '' $ac_executable_extensions; do
13934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13935 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13937 break 2
13939 done
13940 done
13941 IFS=$as_save_IFS
13944 esac
13946 orig_target_nm=$ac_cv_path_orig_target_nm
13947 if test -n "$orig_target_nm"; then
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13949 $as_echo "$orig_target_nm" >&6; }
13950 else
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952 $as_echo "no" >&6; }
13956 test -n "$orig_target_nm" && break
13957 done
13962 else
13963 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13964 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13965 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13967 $as_echo_n "checking for $ac_word... " >&6; }
13968 if ${ac_cv_path_orig_target_nm+:} false; then :
13969 $as_echo_n "(cached) " >&6
13970 else
13971 case $orig_target_nm in
13972 [\\/]* | ?:[\\/]*)
13973 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13977 for as_dir in $PATH
13979 IFS=$as_save_IFS
13980 test -z "$as_dir" && as_dir=.
13981 for ac_exec_ext in '' $ac_executable_extensions; do
13982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13983 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13985 break 2
13987 done
13988 done
13989 IFS=$as_save_IFS
13992 esac
13994 orig_target_nm=$ac_cv_path_orig_target_nm
13995 if test -n "$orig_target_nm"; then
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13997 $as_echo "$orig_target_nm" >&6; }
13998 else
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14000 $as_echo "no" >&6; }
14004 orig_target_nm="$orig_target_nm $ac_tool_optarg"
14007 req_avail=yes
14008 if test "$orig_target_nm" = ""; then
14009 req_avail=no
14011 if test "$orig_target_nm" = "no"; then
14012 req_avail=no
14014 if test "$req_avail" = "no"; then
14015 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
14018 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
14019 if test "$cross_compiling" = "yes" ; then
14020 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
14021 set dummy ${target_tool_prefix}strip; ac_word=$2
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14023 $as_echo_n "checking for $ac_word... " >&6; }
14024 if ${ac_cv_path_orig_target_strip+:} false; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 case $orig_target_strip in
14028 [\\/]* | ?:[\\/]*)
14029 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
14032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14033 for as_dir in $PATH
14035 IFS=$as_save_IFS
14036 test -z "$as_dir" && as_dir=.
14037 for ac_exec_ext in '' $ac_executable_extensions; do
14038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14039 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
14040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14041 break 2
14043 done
14044 done
14045 IFS=$as_save_IFS
14048 esac
14050 orig_target_strip=$ac_cv_path_orig_target_strip
14051 if test -n "$orig_target_strip"; then
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14053 $as_echo "$orig_target_strip" >&6; }
14054 else
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14056 $as_echo "no" >&6; }
14060 else
14062 if test "" = ""; then
14063 ac_tool_strip=strip
14064 else
14065 ac_tool_strip=
14067 if test "$GCC" = "yes"; then
14068 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
14069 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
14070 set dummy `basename $aros_gcc_strip`; ac_word=$2
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14072 $as_echo_n "checking for $ac_word... " >&6; }
14073 if ${ac_cv_path_orig_target_strip+:} false; then :
14074 $as_echo_n "(cached) " >&6
14075 else
14076 case $orig_target_strip in
14077 [\\/]* | ?:[\\/]*)
14078 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
14081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14082 for as_dir in `dirname $aros_gcc_strip`
14084 IFS=$as_save_IFS
14085 test -z "$as_dir" && as_dir=.
14086 for ac_exec_ext in '' $ac_executable_extensions; do
14087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14088 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
14089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14090 break 2
14092 done
14093 done
14094 IFS=$as_save_IFS
14097 esac
14099 orig_target_strip=$ac_cv_path_orig_target_strip
14100 if test -n "$orig_target_strip"; then
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14102 $as_echo "$orig_target_strip" >&6; }
14103 else
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14105 $as_echo "no" >&6; }
14110 if test "$orig_target_strip" = ""; then
14111 for ac_prog in $ac_tool_strip
14113 # Extract the first word of "$ac_prog", so it can be a program name with args.
14114 set dummy $ac_prog; ac_word=$2
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14116 $as_echo_n "checking for $ac_word... " >&6; }
14117 if ${ac_cv_path_orig_target_strip+:} false; then :
14118 $as_echo_n "(cached) " >&6
14119 else
14120 case $orig_target_strip in
14121 [\\/]* | ?:[\\/]*)
14122 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
14125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14126 for as_dir in $PATH
14128 IFS=$as_save_IFS
14129 test -z "$as_dir" && as_dir=.
14130 for ac_exec_ext in '' $ac_executable_extensions; do
14131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14132 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
14133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14134 break 2
14136 done
14137 done
14138 IFS=$as_save_IFS
14141 esac
14143 orig_target_strip=$ac_cv_path_orig_target_strip
14144 if test -n "$orig_target_strip"; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14146 $as_echo "$orig_target_strip" >&6; }
14147 else
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14149 $as_echo "no" >&6; }
14153 test -n "$orig_target_strip" && break
14154 done
14159 else
14160 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
14161 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
14162 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14164 $as_echo_n "checking for $ac_word... " >&6; }
14165 if ${ac_cv_path_orig_target_strip+:} false; then :
14166 $as_echo_n "(cached) " >&6
14167 else
14168 case $orig_target_strip in
14169 [\\/]* | ?:[\\/]*)
14170 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
14173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14174 for as_dir in $PATH
14176 IFS=$as_save_IFS
14177 test -z "$as_dir" && as_dir=.
14178 for ac_exec_ext in '' $ac_executable_extensions; do
14179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14180 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
14181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14182 break 2
14184 done
14185 done
14186 IFS=$as_save_IFS
14189 esac
14191 orig_target_strip=$ac_cv_path_orig_target_strip
14192 if test -n "$orig_target_strip"; then
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14194 $as_echo "$orig_target_strip" >&6; }
14195 else
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14197 $as_echo "no" >&6; }
14201 orig_target_strip="$orig_target_strip $ac_tool_optarg"
14204 req_avail=yes
14205 if test "$orig_target_strip" = ""; then
14206 req_avail=no
14208 if test "$orig_target_strip" = "no"; then
14209 req_avail=no
14211 if test "$req_avail" = "no"; then
14212 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
14215 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
14216 if test "$cross_compiling" = "yes" ; then
14217 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
14218 set dummy ${target_tool_prefix}objcopy; ac_word=$2
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14220 $as_echo_n "checking for $ac_word... " >&6; }
14221 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 case $orig_target_objcopy in
14225 [\\/]* | ?:[\\/]*)
14226 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14230 for as_dir in $PATH
14232 IFS=$as_save_IFS
14233 test -z "$as_dir" && as_dir=.
14234 for ac_exec_ext in '' $ac_executable_extensions; do
14235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14236 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14238 break 2
14240 done
14241 done
14242 IFS=$as_save_IFS
14245 esac
14247 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14248 if test -n "$orig_target_objcopy"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14250 $as_echo "$orig_target_objcopy" >&6; }
14251 else
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253 $as_echo "no" >&6; }
14257 else
14259 if test "" = ""; then
14260 ac_tool_objcopy=objcopy
14261 else
14262 ac_tool_objcopy=
14264 if test "$GCC" = "yes"; then
14265 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
14266 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
14267 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14269 $as_echo_n "checking for $ac_word... " >&6; }
14270 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14271 $as_echo_n "(cached) " >&6
14272 else
14273 case $orig_target_objcopy in
14274 [\\/]* | ?:[\\/]*)
14275 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14279 for as_dir in `dirname $aros_gcc_objcopy`
14281 IFS=$as_save_IFS
14282 test -z "$as_dir" && as_dir=.
14283 for ac_exec_ext in '' $ac_executable_extensions; do
14284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14285 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14287 break 2
14289 done
14290 done
14291 IFS=$as_save_IFS
14294 esac
14296 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14297 if test -n "$orig_target_objcopy"; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14299 $as_echo "$orig_target_objcopy" >&6; }
14300 else
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14302 $as_echo "no" >&6; }
14307 if test "$orig_target_objcopy" = ""; then
14308 for ac_prog in $ac_tool_objcopy
14310 # Extract the first word of "$ac_prog", so it can be a program name with args.
14311 set dummy $ac_prog; ac_word=$2
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14313 $as_echo_n "checking for $ac_word... " >&6; }
14314 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14315 $as_echo_n "(cached) " >&6
14316 else
14317 case $orig_target_objcopy in
14318 [\\/]* | ?:[\\/]*)
14319 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14323 for as_dir in $PATH
14325 IFS=$as_save_IFS
14326 test -z "$as_dir" && as_dir=.
14327 for ac_exec_ext in '' $ac_executable_extensions; do
14328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14329 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14331 break 2
14333 done
14334 done
14335 IFS=$as_save_IFS
14338 esac
14340 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14341 if test -n "$orig_target_objcopy"; then
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14343 $as_echo "$orig_target_objcopy" >&6; }
14344 else
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14346 $as_echo "no" >&6; }
14350 test -n "$orig_target_objcopy" && break
14351 done
14356 else
14357 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
14358 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
14359 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14361 $as_echo_n "checking for $ac_word... " >&6; }
14362 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14363 $as_echo_n "(cached) " >&6
14364 else
14365 case $orig_target_objcopy in
14366 [\\/]* | ?:[\\/]*)
14367 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14371 for as_dir in $PATH
14373 IFS=$as_save_IFS
14374 test -z "$as_dir" && as_dir=.
14375 for ac_exec_ext in '' $ac_executable_extensions; do
14376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14377 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14379 break 2
14381 done
14382 done
14383 IFS=$as_save_IFS
14386 esac
14388 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14389 if test -n "$orig_target_objcopy"; then
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14391 $as_echo "$orig_target_objcopy" >&6; }
14392 else
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14394 $as_echo "no" >&6; }
14398 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
14401 req_avail=yes
14402 if test "$orig_target_objcopy" = ""; then
14403 req_avail=no
14405 if test "$orig_target_objcopy" = "no"; then
14406 req_avail=no
14408 if test "$req_avail" = "no"; then
14409 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
14412 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
14413 if test "$cross_compiling" = "yes" ; then
14414 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
14415 set dummy ${target_tool_prefix}objdump; ac_word=$2
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14417 $as_echo_n "checking for $ac_word... " >&6; }
14418 if ${ac_cv_path_orig_target_objdump+:} false; then :
14419 $as_echo_n "(cached) " >&6
14420 else
14421 case $orig_target_objdump in
14422 [\\/]* | ?:[\\/]*)
14423 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14427 for as_dir in $PATH
14429 IFS=$as_save_IFS
14430 test -z "$as_dir" && as_dir=.
14431 for ac_exec_ext in '' $ac_executable_extensions; do
14432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14433 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14435 break 2
14437 done
14438 done
14439 IFS=$as_save_IFS
14442 esac
14444 orig_target_objdump=$ac_cv_path_orig_target_objdump
14445 if test -n "$orig_target_objdump"; then
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14447 $as_echo "$orig_target_objdump" >&6; }
14448 else
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14450 $as_echo "no" >&6; }
14454 else
14456 if test "" = ""; then
14457 ac_tool_objdump=objdump
14458 else
14459 ac_tool_objdump=
14461 if test "$GCC" = "yes"; then
14462 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
14463 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
14464 set dummy `basename $aros_gcc_objdump`; ac_word=$2
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14466 $as_echo_n "checking for $ac_word... " >&6; }
14467 if ${ac_cv_path_orig_target_objdump+:} false; then :
14468 $as_echo_n "(cached) " >&6
14469 else
14470 case $orig_target_objdump in
14471 [\\/]* | ?:[\\/]*)
14472 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14476 for as_dir in `dirname $aros_gcc_objdump`
14478 IFS=$as_save_IFS
14479 test -z "$as_dir" && as_dir=.
14480 for ac_exec_ext in '' $ac_executable_extensions; do
14481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14482 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14484 break 2
14486 done
14487 done
14488 IFS=$as_save_IFS
14491 esac
14493 orig_target_objdump=$ac_cv_path_orig_target_objdump
14494 if test -n "$orig_target_objdump"; then
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14496 $as_echo "$orig_target_objdump" >&6; }
14497 else
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14499 $as_echo "no" >&6; }
14504 if test "$orig_target_objdump" = ""; then
14505 for ac_prog in $ac_tool_objdump
14507 # Extract the first word of "$ac_prog", so it can be a program name with args.
14508 set dummy $ac_prog; ac_word=$2
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14510 $as_echo_n "checking for $ac_word... " >&6; }
14511 if ${ac_cv_path_orig_target_objdump+:} false; then :
14512 $as_echo_n "(cached) " >&6
14513 else
14514 case $orig_target_objdump in
14515 [\\/]* | ?:[\\/]*)
14516 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14520 for as_dir in $PATH
14522 IFS=$as_save_IFS
14523 test -z "$as_dir" && as_dir=.
14524 for ac_exec_ext in '' $ac_executable_extensions; do
14525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14526 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14528 break 2
14530 done
14531 done
14532 IFS=$as_save_IFS
14535 esac
14537 orig_target_objdump=$ac_cv_path_orig_target_objdump
14538 if test -n "$orig_target_objdump"; then
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14540 $as_echo "$orig_target_objdump" >&6; }
14541 else
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14543 $as_echo "no" >&6; }
14547 test -n "$orig_target_objdump" && break
14548 done
14553 else
14554 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
14555 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
14556 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14558 $as_echo_n "checking for $ac_word... " >&6; }
14559 if ${ac_cv_path_orig_target_objdump+:} false; then :
14560 $as_echo_n "(cached) " >&6
14561 else
14562 case $orig_target_objdump in
14563 [\\/]* | ?:[\\/]*)
14564 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14568 for as_dir in $PATH
14570 IFS=$as_save_IFS
14571 test -z "$as_dir" && as_dir=.
14572 for ac_exec_ext in '' $ac_executable_extensions; do
14573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14574 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14576 break 2
14578 done
14579 done
14580 IFS=$as_save_IFS
14583 esac
14585 orig_target_objdump=$ac_cv_path_orig_target_objdump
14586 if test -n "$orig_target_objdump"; then
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14588 $as_echo "$orig_target_objdump" >&6; }
14589 else
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14591 $as_echo "no" >&6; }
14595 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
14598 req_avail=yes
14599 if test "$orig_target_objdump" = ""; then
14600 req_avail=no
14602 if test "$orig_target_objdump" = "no"; then
14603 req_avail=no
14605 if test "$req_avail" = "no"; then
14606 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
14610 if test "$kernel_tool_prefix" = "none" ; then
14611 # No kernel tools specified
14612 # Assume kernel tools == target tools with ELF wrapper
14613 aros_kernel_cc=$orig_target_cc
14614 aros_kernel_cxx=$orig_target_cxx
14615 aros_kernel_cpp="$orig_target_cpp"
14616 aros_kernel_ld=$orig_target_ld
14617 aros_kernel_as=$orig_target_as
14618 aros_kernel_ar=$orig_target_ar
14619 aros_kernel_ranlib=$orig_target_ranlib
14620 aros_kernel_nm=$orig_target_nm
14621 aros_kernel_strip=$orig_target_strip
14622 aros_kernel_objcopy=$orig_target_objcopy
14623 aros_kernel_objdump=$orig_target_objdump
14624 aros_kernel_isa_flags=$aros_isa_flags
14625 use_kernel_cc_wrapper=yes
14628 # At this point, all aros_kernel_* and aros_target_*
14629 # tools should be set up correctly
14631 CC="$aros_kernel_cc $kernel_tool_flags"
14632 CPP="$aros_kernel_cpp"
14634 #-----------------------------------------------------------------------------
14636 # Find all the tools we need to compile. This could be cross-compiling
14637 # though! If that is the case we use the GNU form of the target and
14638 # simply add this to the front of the binary name. This is rather simple,
14639 # but it should work under most circumstances.
14641 # The default tools are to use the same as the host, but only if the
14642 # host and target CPU are the same. With GCC this is normally enough.
14645 aros_cc_pre=""
14646 aros_shared_ld="$aros_host_ld"
14648 aros_target_mkdep="$aros_host_mkdep"
14650 # The default tools executables to be linked to.
14651 if test "$rescomp" != ""; then
14652 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
14653 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14655 $as_echo_n "checking for $ac_word... " >&6; }
14656 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
14657 $as_echo_n "(cached) " >&6
14658 else
14659 case $aros_kernel_rescomp in
14660 [\\/]* | ?:[\\/]*)
14661 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
14664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14665 for as_dir in $PATH
14667 IFS=$as_save_IFS
14668 test -z "$as_dir" && as_dir=.
14669 for ac_exec_ext in '' $ac_executable_extensions; do
14670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14671 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
14672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14673 break 2
14675 done
14676 done
14677 IFS=$as_save_IFS
14680 esac
14682 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
14683 if test -n "$aros_kernel_rescomp"; then
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
14685 $as_echo "$aros_kernel_rescomp" >&6; }
14686 else
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14688 $as_echo "no" >&6; }
14692 req_avail=yes
14693 if test "$aros_kernel_rescomp" = ""; then
14694 req_avail=no
14696 if test "$aros_kernel_rescomp" = "no"; then
14697 req_avail=no
14699 if test "$req_avail" = "no"; then
14700 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
14704 # Set up the sources for the symlink farm
14705 if test "$crosstools" = "yes"; then
14706 crosstools_target=tools-crosstools
14709 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
14710 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
14712 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
14713 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
14714 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
14715 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
14716 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
14717 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
14718 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
14720 # aros_cc_pre is a variable that is added to the front of the compiler name
14721 # in the generated aros-gcc shell script. We need this to enable the cache
14722 # to work across cleaned builds. Also, support DISTCC using the correct
14723 # environment variable.
14726 if test "x${DISTCC}" != "x" ; then
14727 if test "x${CCACHE}" != "x" ; then
14728 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
14729 else
14730 aros_cc_pre="${DISTCC} "
14732 else
14733 if test "x${CCACHE}" != "x" ; then
14734 aros_cc_pre="${CCACHE} "
14738 aros_target_nostdinc_cflags=-nostdinc
14740 aros_target_nostartup_ldflags=-nostartfiles
14742 aros_target_nix_ldflags=-nix
14744 aros_target_detach_ldflags=-detach
14746 aros_target_nostdlib_ldflags=-nostdlib
14749 aros_target_cc_path=
14751 # Target tools
14753 if test "$aros_target_toolchain" != "yes"; then
14754 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
14755 if test "$GCC" = "yes"; then
14756 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
14758 else
14759 # We do not know which c compiler version we are going to build and what we need to know
14760 # here is different for different versions so this will be set later during the
14761 # build of crosstools.
14762 if test "$aros_toolchain" = "gnu" ; then
14763 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
14764 elif test "$aros_toolchain" = "llvm" ; then
14765 prefix="$AROS_CROSSTOOLSDIR/bin/"
14767 aros_target_cc_path=@aros_target_cc_path@
14769 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
14770 aros_target_cc="${prefix}${toolchain_c_compiler}"
14771 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
14772 aros_target_as="${prefix}${toolchain_as}"
14773 if test "${use_ld_wrapper}" = "yes"; then
14774 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
14775 else
14776 aros_target_ld="${prefix}${toolchain_ld}"
14778 aros_toolchain_ld="${prefix}${toolchain_ld}"
14780 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
14781 aros_target_objcopy="${prefix}${toolchain_objcopy}"
14782 aros_target_objdump="${prefix}${toolchain_objdump}"
14783 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
14784 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
14785 aros_target_strip="${prefix}${toolchain_strip}"
14786 aros_plain_nm="${prefix}${toolchain_nm}"
14787 aros_plain_ar="${prefix}${toolchain_ar}"
14789 # Check whether --enable-includes was given.
14790 if test "${enable_includes+set}" = set; then :
14791 enableval=$enable_includes; aros_target_incl=$enable_includes
14792 else
14793 aros_target_incl=no
14797 if test "x$aros_target_incl" = "xno"; then
14798 if test "x$test_kernel_cc" != "xno"; then
14799 aros_target_incl=`$aros_kernel_cc -print-sysroot 2>/dev/null`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
14800 else
14801 aros_target_incl=
14805 if test "x$aros_kernel_includes" = "x"; then
14806 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14807 if test "x$aros_target_incl" != "x"; then
14808 aros_kernel_includes="-isystem $aros_target_incl"
14813 if test "x$test_kernel_cc" != "xno"; then
14814 if test "$aros_kernel_includes" != "" ; then
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
14816 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
14817 if test "$aros_kernel_cc_includes" = "" ; then
14818 # Try to guess where the directory is.
14819 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
14820 if test -d $aros_kernel_cc_includes; then
14821 # Check if there is also an include-fixed directory and add it
14822 # to kernel compiler's include path as it may contain some of
14823 # the headers we need.
14824 if test -d "$aros_kernel_cc_includes"-fixed; then
14825 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
14827 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
14828 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
14829 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
14831 else
14832 # The directory doesn't exist, we need to do some more work.
14833 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
14835 # These are the headers we're looking for.
14836 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14837 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14838 zutil.h stdint.h"
14840 dirs=
14841 for h in $headers; do
14842 # Which other headers are needed by each of the above?
14843 deps=$(echo "#include <$h>" | \
14844 $aros_kernel_cc -E -M - 2>/dev/null | \
14845 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14847 # Copy all the needed headers to a directory beneath gendir.
14848 for d in $deps; do
14849 h=$(basename $d)
14850 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
14851 sed -n "s,^.*/include\(/.*\),\1,p")
14852 ! test -d $dir && mkdir -p $dir
14853 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14854 done
14855 done
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
14859 $as_echo "$aros_kernel_cc_includes" >&6; }
14860 # Adding -nostdinc to kernel includes as they are always used together.
14861 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
14865 if test "$crosstools" != "yes"; then
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
14867 $as_echo_n "checking for the target compiler's include path... " >&6; }
14868 if test "$aros_target_cc_includes" = "" ; then
14869 #try to guess where the directory is
14870 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
14871 if ! test -d $aros_target_cc_includes; then
14872 #the directory doesn't exist, we need to do some more work
14873 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
14875 #these are the headers we're looking for
14876 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14877 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14878 zutil.h"
14880 dirs=
14881 for h in $headers; do
14882 #which other headers each of the above headers needs?
14883 deps=$(echo "#include <$h>" | \
14884 $orig_target_cc -E -M - 2>/dev/null | \
14885 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14887 #copy all the needed headers to a directory beneath gendir
14888 for d in $deps; do
14889 h=$(basename $d)
14890 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
14891 sed -n "s,^.*/include\(/.*\),\1,p")
14892 ! test -d $dir && mkdir -p $dir
14893 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14894 done
14895 done
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14899 $as_echo "$aros_target_cc_includes" >&6; }
14900 else
14901 # We do not know which c compiler version we are going to build and what we need to know
14902 # here is different for different versions so this will be set later during the
14903 # build of crosstools.
14904 aros_target_cc_includes=@aros_target_cc_includes@
14908 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14909 # On GCC >= 4.0 -iquote should be used
14912 save_cc="$CC"
14913 save_cflags="$CFLAGS"
14914 if test "x$test_kernel_cc" != "xno"; then
14915 CFLAGS="-iquote."
14916 kernel_cflags_iquote=$host_cflags_iquote
14917 kernel_cflags_iquote_end=$host_cflags_iquote_end
14918 if test "x-$cross_compiling" = "x-yes"; then
14919 CC="$aros_kernel_cc"
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14921 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14922 if test "x-$crosstools" != "x-yes"; then
14923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14924 /* end confdefs.h. */
14927 main ()
14931 return 0;
14933 _ACEOF
14934 if ac_fn_c_try_compile "$LINENO"; then :
14935 use_no_stack_protector="yes"
14936 else
14937 use_no_stack_protector="no"
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14940 else
14941 # we do know it is supported for the smallest version of gcc we are going to build
14942 # we assume it's also supported by later versions
14943 use_no_stack_protector=yes
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14946 $as_echo "$use_no_stack_protector" >&6; }
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14948 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14949 if test "x-$crosstools" != "x-yes"; then
14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h. */
14954 main ()
14958 return 0;
14960 _ACEOF
14961 if ac_fn_c_try_compile "$LINENO"; then :
14962 has_iquote="yes"
14963 else
14964 has_iquote="no"
14966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14967 else
14968 # we do know it is supported for the smallest version of gcc we are going to build
14969 # we assume it's also supported by later versions
14970 has_iquote=yes
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14973 $as_echo "$has_iquote" >&6; }
14974 if test "x-$has_iquote" = "x-yes" ; then
14975 kernel_cflags_iquote=-iquote
14976 kernel_cflags_iquote_end=
14977 else
14978 kernel_cflags_iquote=-I
14979 kernel_cflags_iquote_end=-I-
14982 if test "x-$use_no_stack_protector" = "x-yes" ; then
14983 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
14986 #-----------------------------------------------------------------------------
14988 # Check if we can explicitly choose older version of symbol hashing
14990 CFLAGS="$save_cflags -Wl,--hash-style=sysv"
14991 CC="$aros_kernel_cc"
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14993 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14998 main ()
15002 return 0;
15004 _ACEOF
15005 if ac_fn_c_try_link "$LINENO"; then :
15006 use_hash_style="yes"
15007 else
15008 use_hash_style="no"
15010 rm -f core conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
15013 $as_echo "$use_hash_style" >&6; }
15014 if test "x-$use_hash_style" = "x-yes" ; then
15015 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
15017 else
15018 kernel_cflags_iquote="$""(CFLAGS_IQUOTE)"
15019 kernel_cflags_iquote_end="$""(CFLAGS_IQUOTE_END)"
15021 CC="$save_cc"
15022 CFLAGS="$save_cflags"
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
15031 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
15033 # Check whether --with-resolution was given.
15034 if test "${with_resolution+set}" = set; then :
15035 withval=$with_resolution; resolution=$withval
15036 else
15037 resolution=none
15040 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
15041 if test "$resolution" = "yes" ; then
15042 resolution="none"
15044 if test "$resolution" = "no" ; then
15045 resolution="none"
15047 if test "$resolution" != "none" ; then
15048 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
15049 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
15050 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
15053 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
15054 aros_cv_nominal_width=$aros_nominal_width
15055 aros_cv_nominal_height=$aros_nominal_height
15056 aros_cv_nominal_depth=$aros_nominal_depth
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
15059 $as_echo_n "checking whether serial debug is enabled... " >&6; }
15061 # Check whether --with-serial-debug was given.
15062 if test "${with_serial_debug+set}" = set; then :
15063 withval=$with_serial_debug; serial_debug=$withval
15064 else
15065 serial_debug=none
15068 if test "$aros_serial_debug" = 0 ; then
15069 serial_debug_forced=""
15070 if test "$serial_debug" = "yes" ; then
15071 serial_debug="1"
15073 if test "$serial_debug" = "no" ; then
15074 serial_debug="none"
15076 else
15077 serial_debug_forced="(forced)"
15078 serial_debug=$aros_serial_debug
15080 if test "$serial_debug" != "none" ; then
15081 aros_serial_debug=$serial_debug
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
15083 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
15084 else
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15086 $as_echo "no" >&6; }
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
15090 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
15091 # Check whether --enable-palm_debug_hack was given.
15092 if test "${enable_palm_debug_hack+set}" = set; then :
15093 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
15094 else
15095 palm_debug_hack="no"
15098 if test "$palm_debug_hack" = "yes" ; then
15099 aros_palm_debug_hack="1"
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
15102 $as_echo "$palm_debug_hack" >&6; }
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
15105 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
15106 # Check whether --enable-usb30_code was given.
15107 if test "${enable_usb30_code+set}" = set; then :
15108 enableval=$enable_usb30_code; usb30_code="yes"
15109 else
15110 usb30_code="no"
15113 if test "$usb30_code" = "yes" ; then
15114 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
15115 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
15118 $as_echo "$usb30_code" >&6; }
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
15121 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
15122 # Check whether --enable-nesting_supervisor was given.
15123 if test "${enable_nesting_supervisor+set}" = set; then :
15124 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
15125 else
15126 nesting_supervisor="no"
15129 if test "$nesting_supervisor" = "yes" ; then
15130 aros_nesting_supervisor="1"
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
15133 $as_echo "$nesting_supervisor" >&6; }
15135 if test "$aros_enable_mmu" = "" ; then
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
15137 $as_echo_n "checking whether MMU support is enabled... " >&6; }
15138 # Check whether --enable-mmu was given.
15139 if test "${enable_mmu+set}" = set; then :
15140 enableval=$enable_mmu; aros_enable_mmu=$enableval
15141 else
15142 aros_enable_mmu="yes"
15145 if test "$aros_enable_mmu" = "" ; then
15146 aros_enable_mmu="yes"
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
15149 $as_echo "$aros_enable_mmu" >&6; }
15151 if test "$aros_enable_mmu" = "no" ; then
15152 aros_enable_mmu="0"
15153 else
15154 aros_enable_mmu="1"
15158 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
15160 if test "x-$need_dlopen" != "x-no" ; then
15161 save_libs="$LIBS"
15162 LIBS=""
15163 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15164 if test "x$ac_cv_func_dlopen" = xyes; then :
15165 have_dl="yes"
15166 else
15167 have_dl="no"
15170 if test "x-$have_dl" = "x-no" ; then
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15172 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15173 if ${ac_cv_lib_dl_dlopen+:} false; then :
15174 $as_echo_n "(cached) " >&6
15175 else
15176 ac_check_lib_save_LIBS=$LIBS
15177 LIBS="-ldl $LIBS"
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15181 /* Override any GCC internal prototype to avoid an error.
15182 Use char because int might match the return type of a GCC
15183 builtin and then its argument prototype would still apply. */
15184 #ifdef __cplusplus
15185 extern "C"
15186 #endif
15187 char dlopen ();
15189 main ()
15191 return dlopen ();
15193 return 0;
15195 _ACEOF
15196 if ac_fn_c_try_link "$LINENO"; then :
15197 ac_cv_lib_dl_dlopen=yes
15198 else
15199 ac_cv_lib_dl_dlopen=no
15201 rm -f core conftest.err conftest.$ac_objext \
15202 conftest$ac_exeext conftest.$ac_ext
15203 LIBS=$ac_check_lib_save_LIBS
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15206 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15207 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15208 have_dl="yes"
15209 aros_host_ldflags="$aros_host_ldflags -ldl"
15210 else
15211 have_dl="no"
15215 if test "x-$have_dl" = "x-no" ; then
15216 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
15218 LIBS="$save_libs"
15222 # Check whether --enable-x11_hidd was given.
15223 if test "${enable_x11_hidd+set}" = set; then :
15224 enableval=$enable_x11_hidd; x11_hidd="$enableval"
15225 else
15226 x11_hidd="$need_x11"
15229 case "x-$x11_hidd" in
15230 x-yes|x-no|x-auto) ;;
15231 *) x11_hidd="$need_x11" ;;
15232 esac
15234 ENABLE_X11=0
15236 if test "x-$x11_hidd" != "x-no" ; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15239 $as_echo_n "checking for X... " >&6; }
15242 # Check whether --with-x was given.
15243 if test "${with_x+set}" = set; then :
15244 withval=$with_x;
15247 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15248 if test "x$with_x" = xno; then
15249 # The user explicitly disabled X.
15250 have_x=disabled
15251 else
15252 case $x_includes,$x_libraries in #(
15253 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
15254 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
15255 $as_echo_n "(cached) " >&6
15256 else
15257 # One or both of the vars are not set, and there is no cached value.
15258 ac_x_includes=no ac_x_libraries=no
15259 rm -f -r conftest.dir
15260 if mkdir conftest.dir; then
15261 cd conftest.dir
15262 cat >Imakefile <<'_ACEOF'
15263 incroot:
15264 @echo incroot='${INCROOT}'
15265 usrlibdir:
15266 @echo usrlibdir='${USRLIBDIR}'
15267 libdir:
15268 @echo libdir='${LIBDIR}'
15269 _ACEOF
15270 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15271 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15272 for ac_var in incroot usrlibdir libdir; do
15273 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15274 done
15275 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15276 for ac_extension in a so sl dylib la dll; do
15277 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15278 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15279 ac_im_usrlibdir=$ac_im_libdir; break
15281 done
15282 # Screen out bogus values from the imake configuration. They are
15283 # bogus both because they are the default anyway, and because
15284 # using them would break gcc on systems where it needs fixed includes.
15285 case $ac_im_incroot in
15286 /usr/include) ac_x_includes= ;;
15287 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15288 esac
15289 case $ac_im_usrlibdir in
15290 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15291 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15292 esac
15294 cd ..
15295 rm -f -r conftest.dir
15298 # Standard set of common directories for X headers.
15299 # Check X11 before X11Rn because it is often a symlink to the current release.
15300 ac_x_header_dirs='
15301 /usr/X11/include
15302 /usr/X11R7/include
15303 /usr/X11R6/include
15304 /usr/X11R5/include
15305 /usr/X11R4/include
15307 /usr/include/X11
15308 /usr/include/X11R7
15309 /usr/include/X11R6
15310 /usr/include/X11R5
15311 /usr/include/X11R4
15313 /usr/local/X11/include
15314 /usr/local/X11R7/include
15315 /usr/local/X11R6/include
15316 /usr/local/X11R5/include
15317 /usr/local/X11R4/include
15319 /usr/local/include/X11
15320 /usr/local/include/X11R7
15321 /usr/local/include/X11R6
15322 /usr/local/include/X11R5
15323 /usr/local/include/X11R4
15325 /usr/X386/include
15326 /usr/x386/include
15327 /usr/XFree86/include/X11
15329 /usr/include
15330 /usr/local/include
15331 /usr/unsupported/include
15332 /usr/athena/include
15333 /usr/local/x11r5/include
15334 /usr/lpp/Xamples/include
15336 /usr/openwin/include
15337 /usr/openwin/share/include'
15339 if test "$ac_x_includes" = no; then
15340 # Guess where to find include files, by looking for Xlib.h.
15341 # First, try using that file with no special directory specified.
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15344 #include <X11/Xlib.h>
15345 _ACEOF
15346 if ac_fn_c_try_cpp "$LINENO"; then :
15347 # We can compile using X headers with no special include directory.
15348 ac_x_includes=
15349 else
15350 for ac_dir in $ac_x_header_dirs; do
15351 if test -r "$ac_dir/X11/Xlib.h"; then
15352 ac_x_includes=$ac_dir
15353 break
15355 done
15357 rm -f conftest.err conftest.i conftest.$ac_ext
15358 fi # $ac_x_includes = no
15360 if test "$ac_x_libraries" = no; then
15361 # Check for the libraries.
15362 # See if we find them without any special options.
15363 # Don't add to $LIBS permanently.
15364 ac_save_LIBS=$LIBS
15365 LIBS="-lX11 $LIBS"
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15368 #include <X11/Xlib.h>
15370 main ()
15372 XrmInitialize ()
15374 return 0;
15376 _ACEOF
15377 if ac_fn_c_try_link "$LINENO"; then :
15378 LIBS=$ac_save_LIBS
15379 # We can link X programs with no special library path.
15380 ac_x_libraries=
15381 else
15382 LIBS=$ac_save_LIBS
15383 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15385 # Don't even attempt the hair of trying to link an X program!
15386 for ac_extension in a so sl dylib la dll; do
15387 if test -r "$ac_dir/libX11.$ac_extension"; then
15388 ac_x_libraries=$ac_dir
15389 break 2
15391 done
15392 done
15394 rm -f core conftest.err conftest.$ac_objext \
15395 conftest$ac_exeext conftest.$ac_ext
15396 fi # $ac_x_libraries = no
15398 case $ac_x_includes,$ac_x_libraries in #(
15399 no,* | *,no | *\'*)
15400 # Didn't find X, or a directory has "'" in its name.
15401 ac_cv_have_x="have_x=no";; #(
15403 # Record where we found X for the cache.
15404 ac_cv_have_x="have_x=yes\
15405 ac_x_includes='$ac_x_includes'\
15406 ac_x_libraries='$ac_x_libraries'"
15407 esac
15409 ;; #(
15410 *) have_x=yes;;
15411 esac
15412 eval "$ac_cv_have_x"
15413 fi # $with_x != no
15415 if test "$have_x" != yes; then
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15417 $as_echo "$have_x" >&6; }
15418 no_x=yes
15419 else
15420 # If each of the values was on the command line, it overrides each guess.
15421 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15422 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15423 # Update the cache value to reflect the command line values.
15424 ac_cv_have_x="have_x=yes\
15425 ac_x_includes='$x_includes'\
15426 ac_x_libraries='$x_libraries'"
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15428 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15432 if test -n "$x_includes"; then
15433 X_CFLAGS="$X_CFLAGS -I$x_includes"
15436 if test -n "$x_libraries"; then
15437 X_LIBS="$X_LIBS -L$x_libraries"
15440 if test "x-$no_x" = "x-yes" ; then
15442 if test "x-$x11_hidd" != "x-auto" ; then
15443 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
15446 else
15447 aros_target_options+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
15448 if test "x-$host_feature_glx" != "x-no" ; then
15449 aros_target_options+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
15451 ENABLE_X11=1
15453 aros_host_x11_cflags="$X_CFLAGS"
15454 aros_host_x11_ldflags="$X_LIBS -lX11"
15456 # Check whether --enable-x11_shm was given.
15457 if test "${enable_x11_shm+set}" = set; then :
15458 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
15459 else
15460 x11_hidd_shm="auto"
15463 case "x-$x11_hidd_shm" in
15464 x-yes|x-no|x-auto) ;;
15465 *) x11_hidd_shm="auto" ;;
15466 esac
15468 have_xshm=no
15470 if test "x-$x11_hidd_shm" != "x-no" ; then
15472 for ac_header in sys/ipc.h
15473 do :
15474 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
15475 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
15476 cat >>confdefs.h <<_ACEOF
15477 #define HAVE_SYS_IPC_H 1
15478 _ACEOF
15482 done
15484 for ac_header in sys/shm.h
15485 do :
15486 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
15487 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
15488 cat >>confdefs.h <<_ACEOF
15489 #define HAVE_SYS_SHM_H 1
15490 _ACEOF
15494 done
15497 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
15499 save_cflags="$CFLAGS"
15500 save_ldflags="$LDFLAGS"
15501 CFLAGS="$CFLAGS $X_CFLAGS"
15502 LDFLAGS="$LDFLAGS $X_LIBS"
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
15504 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
15505 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
15506 $as_echo_n "(cached) " >&6
15507 else
15508 ac_check_lib_save_LIBS=$LIBS
15509 LIBS="-lXext $LIBS"
15510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511 /* end confdefs.h. */
15513 /* Override any GCC internal prototype to avoid an error.
15514 Use char because int might match the return type of a GCC
15515 builtin and then its argument prototype would still apply. */
15516 #ifdef __cplusplus
15517 extern "C"
15518 #endif
15519 char XShmQueryExtension ();
15521 main ()
15523 return XShmQueryExtension ();
15525 return 0;
15527 _ACEOF
15528 if ac_fn_c_try_link "$LINENO"; then :
15529 ac_cv_lib_Xext_XShmQueryExtension=yes
15530 else
15531 ac_cv_lib_Xext_XShmQueryExtension=no
15533 rm -f core conftest.err conftest.$ac_objext \
15534 conftest$ac_exeext conftest.$ac_ext
15535 LIBS=$ac_check_lib_save_LIBS
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
15538 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
15539 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
15540 have_xshm=yes
15543 CFLAGS="$save_cflags"
15544 LDFLAGS="$save_ldflags"
15548 if test "x-$have_xshm" = "x-yes" ; then
15549 DO_XSHM_SUPPORT="1"
15550 elif test "x-$x11_hidd_shm" = "x-yes" ; then
15551 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
15552 else
15553 DO_XSHM_SUPPORT="0"
15557 # Check whether --enable-x11_vidmode was given.
15558 if test "${enable_x11_vidmode+set}" = set; then :
15559 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
15560 else
15561 x11_hidd_vidmode="auto"
15564 case "x-$x11_hidd_vidmode" in
15565 x-yes|x-no|x-auto) ;;
15566 *) x11_hidd_vidmode="auto" ;;
15567 esac
15569 have_vidmode=no
15571 if test "x-$x11_hidd_vidmode" != "x-no" ; then
15573 save_cflags="$CFLAGS"
15574 save_ldflags="$LDFLAGS"
15575 CFLAGS="$CFLAGS $X_CFLAGS"
15576 LDFLAGS="$LDFLAGS $X_LIBS"
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
15578 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
15579 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
15580 $as_echo_n "(cached) " >&6
15581 else
15582 ac_check_lib_save_LIBS=$LIBS
15583 LIBS="-lXxf86vm $LIBS"
15584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h. */
15587 /* Override any GCC internal prototype to avoid an error.
15588 Use char because int might match the return type of a GCC
15589 builtin and then its argument prototype would still apply. */
15590 #ifdef __cplusplus
15591 extern "C"
15592 #endif
15593 char XF86VidModeQueryExtension ();
15595 main ()
15597 return XF86VidModeQueryExtension ();
15599 return 0;
15601 _ACEOF
15602 if ac_fn_c_try_link "$LINENO"; then :
15603 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
15604 else
15605 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
15607 rm -f core conftest.err conftest.$ac_objext \
15608 conftest$ac_exeext conftest.$ac_ext
15609 LIBS=$ac_check_lib_save_LIBS
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
15612 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
15613 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
15614 have_vidmode=yes
15617 CFLAGS="$save_cflags"
15618 LDFLAGS="$save_ldflags"
15621 if test "x-$have_vidmode" = "x-yes" ; then
15622 DO_VIDMODE_SUPPORT="1"
15623 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
15624 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
15625 else
15626 DO_VIDMODE_SUPPORT="0"
15631 # Check whether --enable-sdl_hidd was given.
15632 if test "${enable_sdl_hidd+set}" = set; then :
15633 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
15634 else
15635 sdl_hidd="auto"
15638 case "x-$sdl_hidd" in
15639 x-yes|x-no|x-auto) ;;
15640 *) sdl_hidd="auto" ;;
15641 esac
15643 if test "x-$sdl_hidd" != "x-no" ; then
15645 SDL_VERSION=1.2.5
15647 # Check whether --with-sdl-prefix was given.
15648 if test "${with_sdl_prefix+set}" = set; then :
15649 withval=$with_sdl_prefix; sdl_prefix="$withval"
15650 else
15651 sdl_prefix=""
15655 # Check whether --with-sdl-exec-prefix was given.
15656 if test "${with_sdl_exec_prefix+set}" = set; then :
15657 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
15658 else
15659 sdl_exec_prefix=""
15662 # Check whether --enable-sdltest was given.
15663 if test "${enable_sdltest+set}" = set; then :
15664 enableval=$enable_sdltest;
15665 else
15666 enable_sdltest=yes
15670 if test x$sdl_exec_prefix != x ; then
15671 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15672 if test x${SDL_CONFIG+set} != xset ; then
15673 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
15676 if test x$sdl_prefix != x ; then
15677 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
15678 if test x${SDL_CONFIG+set} != xset ; then
15679 SDL_CONFIG=$sdl_prefix/bin/sdl-config
15683 as_save_PATH="$PATH"
15684 if test "x$prefix" != xNONE; then
15685 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
15687 # Extract the first word of "sdl-config", so it can be a program name with args.
15688 set dummy sdl-config; ac_word=$2
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15690 $as_echo_n "checking for $ac_word... " >&6; }
15691 if ${ac_cv_path_SDL_CONFIG+:} false; then :
15692 $as_echo_n "(cached) " >&6
15693 else
15694 case $SDL_CONFIG in
15695 [\\/]* | ?:[\\/]*)
15696 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
15699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15700 for as_dir in $PATH
15702 IFS=$as_save_IFS
15703 test -z "$as_dir" && as_dir=.
15704 for ac_exec_ext in '' $ac_executable_extensions; do
15705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15706 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15708 break 2
15710 done
15711 done
15712 IFS=$as_save_IFS
15714 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
15716 esac
15718 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
15719 if test -n "$SDL_CONFIG"; then
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15721 $as_echo "$SDL_CONFIG" >&6; }
15722 else
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15724 $as_echo "no" >&6; }
15728 PATH="$as_save_PATH"
15729 min_sdl_version=$SDL_VERSION
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15731 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15732 no_sdl=""
15733 if test "$SDL_CONFIG" = "no" ; then
15734 no_sdl=yes
15735 else
15736 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
15737 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
15739 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
15740 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15741 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
15742 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15743 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15744 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15745 if test "x$enable_sdltest" = "xyes" ; then
15746 ac_save_CFLAGS="$CFLAGS"
15747 ac_save_CXXFLAGS="$CXXFLAGS"
15748 ac_save_LIBS="$LIBS"
15749 CFLAGS="$CFLAGS $SDL_CFLAGS"
15750 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15751 LIBS="$LIBS $SDL_LIBS"
15752 rm -f conf.sdltest
15753 if test "$cross_compiling" = yes; then :
15754 echo $ac_n "cross compiling; assumed OK... $ac_c"
15755 else
15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757 /* end confdefs.h. */
15759 #include <stdio.h>
15760 #include <stdlib.h>
15761 #include <string.h>
15762 #include "SDL.h"
15764 char*
15765 my_strdup (char *str)
15767 char *new_str;
15769 if (str)
15771 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15772 strcpy (new_str, str);
15774 else
15775 new_str = NULL;
15777 return new_str;
15780 int main (int argc, char *argv[])
15782 int major, minor, micro;
15783 char *tmp_version;
15785 /* This hangs on some systems (?)
15786 system ("touch conf.sdltest");
15788 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15790 /* HP/UX 9 (%@#!) writes to sscanf strings */
15791 tmp_version = my_strdup("$min_sdl_version");
15792 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15793 printf("%s, bad version string\n", "$min_sdl_version");
15794 exit(1);
15797 if (($sdl_major_version > major) ||
15798 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15799 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15801 return 0;
15803 else
15805 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15806 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15807 printf("*** best to upgrade to the required version.\n");
15808 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15809 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15810 printf("*** config.cache before re-running configure\n");
15811 return 1;
15816 _ACEOF
15817 if ac_fn_c_try_run "$LINENO"; then :
15819 else
15820 no_sdl=yes
15822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15823 conftest.$ac_objext conftest.beam conftest.$ac_ext
15826 CFLAGS="$ac_save_CFLAGS"
15827 CXXFLAGS="$ac_save_CXXFLAGS"
15828 LIBS="$ac_save_LIBS"
15831 if test "x$no_sdl" = x ; then
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15833 $as_echo "yes" >&6; }
15834 have_sdl="yes"
15835 else
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15837 $as_echo "no" >&6; }
15838 if test "$SDL_CONFIG" = "no" ; then
15839 echo "*** The sdl-config script installed by SDL could not be found"
15840 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15841 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15842 echo "*** full path to sdl-config."
15843 else
15844 if test -f conf.sdltest ; then
15846 else
15847 echo "*** Could not run SDL test program, checking why..."
15848 CFLAGS="$CFLAGS $SDL_CFLAGS"
15849 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15850 LIBS="$LIBS $SDL_LIBS"
15851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h. */
15854 #include <stdio.h>
15855 #include "SDL.h"
15857 int main(int argc, char *argv[])
15858 { return 0; }
15859 #undef main
15860 #define main K_and_R_C_main
15863 main ()
15865 return 0;
15867 return 0;
15869 _ACEOF
15870 if ac_fn_c_try_link "$LINENO"; then :
15871 echo "*** The test program compiled, but did not run. This usually means"
15872 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15873 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15874 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15875 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15876 echo "*** is required on your system"
15877 echo "***"
15878 echo "*** If you have an old version installed, it is best to remove it, although"
15879 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15880 else
15881 echo "*** The test program failed to compile or link. See the file config.log for the"
15882 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15883 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15884 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15886 rm -f core conftest.err conftest.$ac_objext \
15887 conftest$ac_exeext conftest.$ac_ext
15888 CFLAGS="$ac_save_CFLAGS"
15889 CXXFLAGS="$ac_save_CXXFLAGS"
15890 LIBS="$ac_save_LIBS"
15893 SDL_CFLAGS=""
15894 SDL_LIBS=""
15895 have_sdl="no"
15899 rm -f conf.sdltest
15902 if test "x-$have_sdl" != "x-yes" ; then
15904 if test "x-$sdl_hidd" != "x-auto" ; then
15905 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15908 else
15909 aros_target_options+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15910 aros_host_sdl_cflags=$SDL_CFLAGS
15911 aros_host_sdl_libs=$SDL_LIBS
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15919 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15920 # Check whether --enable-dbus was given.
15921 if test "${enable_dbus+set}" = set; then :
15922 enableval=$enable_dbus; dbus="yes"
15923 else
15924 dbus="no"
15927 if test "$dbus" = "yes" ; then
15928 ENABLE_DBUS=1
15929 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15930 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15931 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15932 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15933 else
15934 ENABLE_DBUS=0
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15937 $as_echo "$dbus" >&6; }
15939 if test "$use_kernel_cc_wrapper" = "yes" ; then
15940 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15943 aros_kernel_cppflags=$aros_config_cppflags
15944 aros_optimization_cflags="$optimization_level"
15945 if test "$optimization" = "default"; then
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15947 $as_echo_n "checking default optimization level to use... " >&6; }
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15949 $as_echo "$optimization_level" >&6; }
15952 if ! test "$gcc_default_cpu" = "" ; then
15953 target_extra_cfg+="$export_newline""# ARM gcc default target$export_newline""GCC_DEFAULT_CPU := $gcc_default_cpu$export_newline""GCC_DEFAULT_FPU := $gcc_default_fpu$export_newline""GCC_DEFAULT_FLOAT_ABI := $gcc_default_float_abi$export_newline""GCC_DEFAULT_MODE := $gcc_default_mode$export_newline"
15956 if test "$use_libatomic" = "yes" ; then
15957 aros_cxx_libs="$aros_cxx_libs -latomic"
15960 aros_target_options+="$export_newline""# Enable Nouveau Gfx Driver$export_newline""OPT_GFX_NOUVEAU := no$export_newline"
15963 CC=$CC
15964 CFLAGS=$CFLAGS
15965 CHMOD=$CHMOD
15966 CP=$CP
15967 ECHO=$ECHO
15968 FLEX=$FLEX
15969 MV=$MV
15970 NOP=$NOP
15971 PATCH=$PATCH
15972 PNGTOPNM=$PNGTOPNM
15973 PPMTOILBM=$PPMTOILBM
15974 SED=$SED
15975 SORT=$SORT
15976 TOUCH=$TOUCH
15977 UNIQ=$UNIQ
15979 aros_config_cflags=$aros_config_cflags
15980 aros_config_cppflags=$aros_config_cppflags
15981 aros_config_cxxflags=$aros_config_cxxflags
15983 aros_c_libs=$aros_c_libs
15984 aros_cxx_libs=$aros_cxx_libs
15986 aros_host_ldflags=$aros_host_ldflags
15987 aros_host_strip=$aros_host_strip
15988 aros_host_x11_ldflags=$aros_host_x11_ldflags
15990 aros_kernel_ar=$aros_kernel_ar
15991 aros_kernel_as=$aros_kernel_as
15992 aros_kernel_cc=$aros_kernel_cc
15993 aros_kernel_cflags=$aros_kernel_cflags
15994 aros_kernel_cppflags=$aros_kernel_cppflags
15995 aros_kernel_cxx=$aros_kernel_cxx
15996 aros_kernel_nm=$aros_kernel_nm
15997 aros_kernel_objcopy=$aros_kernel_objcopy
15998 aros_kernel_objdump=$aros_kernel_objdump
15999 aros_kernel_ranlib=$aros_kernel_ranlib
16001 # Generic
16015 # Compatability with other Amiga-like operating systems
16018 # Host Related ###########################
16050 # Target Related #########################
16144 # Native version related
16149 # MMU related
16152 # Bootloader related
16155 # Unix/Hosted version related
16158 # ARM default GCC target related
16165 # Palm native version related
16168 # Apple iOS related
16173 # Android related
16179 # Debug related
16185 # Collect-aros stuff: "-ius" to ignore undefined symbols
16188 # C compiler related
16194 #ObjC compiler related
16197 #Java related
16200 # DBUS related
16207 #X11 related
16215 #SDL related
16219 # USB3.0 code
16222 case "$aros_flavour" in
16223 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
16224 aros_flavour="emulation" ;;
16225 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
16226 aros_flavour="emulation" ;;
16227 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
16228 aros_flavour="standalone";;
16229 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
16230 aros_flavour="standalone";;
16231 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
16232 aros_flavour="native" ;;
16233 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
16234 aros_flavour="native" ;;
16235 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
16236 aros_flavour="linklib" ;;
16237 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
16238 aros_flavour="palmnative" ;;
16239 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
16240 aros_flavour="mac68knative" ;;
16241 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
16242 aros_flavour="ppcnative" ;;
16243 esac
16245 if test ! -d ${aros_inc_dir} ; then
16246 ${MKDIR} ${aros_inc_dir}
16248 if test ! -d ${aros_geninc_dir} ; then
16249 ${MKDIR} ${aros_geninc_dir}
16251 if test ! -d ${aros_hostcfg_dir} ; then
16252 ${MKDIR} ${aros_hostcfg_dir}
16254 if test ! -d ${aros_targetcfg_dir} ; then
16255 ${MKDIR} ${aros_targetcfg_dir}
16257 if test ! -d ${aros_tools_dir} ; then
16258 ${MKDIR} ${aros_tools_dir}
16260 if test ! -d ${aros_scripts_dir} ; then
16261 ${MKDIR} ${aros_scripts_dir}
16264 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
16267 # Generic build tools (metamake, etc)
16268 ac_config_commands="$ac_config_commands genmf-executable-support"
16270 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config compiler/include/geninc.cfg:compiler/include/geninc.cfg.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in tools/collect-aros/env.h"
16273 # Binutils
16274 ac_config_commands="$ac_config_commands binutils-support"
16276 if test "${use_ld_wrapper}" = "yes"; then
16277 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in"
16280 # Bare Elf support script and spec
16281 if test "${use_kernel_cc_wrapper}" = "yes"; then
16282 ac_config_commands="$ac_config_commands elf-compiler-support"
16284 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in"
16288 # Host compiler support scripts and spec
16289 if test "${aros_target_toolchain}" = "no"; then
16290 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
16292 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in"
16296 # Android support
16297 if test "$aros_target_variant" == "android"; then
16298 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
16302 # cmake helper
16303 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
16306 cat >confcache <<\_ACEOF
16307 # This file is a shell script that caches the results of configure
16308 # tests run on this system so they can be shared between configure
16309 # scripts and configure runs, see configure's option --config-cache.
16310 # It is not useful on other systems. If it contains results you don't
16311 # want to keep, you may remove or edit it.
16313 # config.status only pays attention to the cache file if you give it
16314 # the --recheck option to rerun configure.
16316 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16317 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16318 # following values.
16320 _ACEOF
16322 # The following way of writing the cache mishandles newlines in values,
16323 # but we know of no workaround that is simple, portable, and efficient.
16324 # So, we kill variables containing newlines.
16325 # Ultrix sh set writes to stderr and can't be redirected directly,
16326 # and sets the high bit in the cache file unless we assign to the vars.
16328 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16329 eval ac_val=\$$ac_var
16330 case $ac_val in #(
16331 *${as_nl}*)
16332 case $ac_var in #(
16333 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16334 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16335 esac
16336 case $ac_var in #(
16337 _ | IFS | as_nl) ;; #(
16338 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16339 *) { eval $ac_var=; unset $ac_var;} ;;
16340 esac ;;
16341 esac
16342 done
16344 (set) 2>&1 |
16345 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16346 *${as_nl}ac_space=\ *)
16347 # `set' does not quote correctly, so add quotes: double-quote
16348 # substitution turns \\\\ into \\, and sed turns \\ into \.
16349 sed -n \
16350 "s/'/'\\\\''/g;
16351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16352 ;; #(
16354 # `set' quotes correctly as required by POSIX, so do not add quotes.
16355 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16357 esac |
16358 sort
16360 sed '
16361 /^ac_cv_env_/b end
16362 t clear
16363 :clear
16364 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16365 t end
16366 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16367 :end' >>confcache
16368 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16369 if test -w "$cache_file"; then
16370 if test "x$cache_file" != "x/dev/null"; then
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16372 $as_echo "$as_me: updating cache $cache_file" >&6;}
16373 if test ! -f "$cache_file" || test -h "$cache_file"; then
16374 cat confcache >"$cache_file"
16375 else
16376 case $cache_file in #(
16377 */* | ?:*)
16378 mv -f confcache "$cache_file"$$ &&
16379 mv -f "$cache_file"$$ "$cache_file" ;; #(
16381 mv -f confcache "$cache_file" ;;
16382 esac
16385 else
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16387 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16390 rm -f confcache
16392 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16393 # Let make expand exec_prefix.
16394 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16396 DEFS=-DHAVE_CONFIG_H
16398 ac_libobjs=
16399 ac_ltlibobjs=
16401 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16402 # 1. Remove the extension, and $U if already installed.
16403 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16404 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16405 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16406 # will be set to the directory where LIBOBJS objects are built.
16407 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16408 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16409 done
16410 LIBOBJS=$ac_libobjs
16412 LTLIBOBJS=$ac_ltlibobjs
16416 : "${CONFIG_STATUS=./config.status}"
16417 ac_write_fail=0
16418 ac_clean_files_save=$ac_clean_files
16419 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16421 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16422 as_write_fail=0
16423 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16424 #! $SHELL
16425 # Generated by $as_me.
16426 # Run this file to recreate the current configuration.
16427 # Compiler output produced by configure, useful for debugging
16428 # configure, is in config.log if it exists.
16430 debug=false
16431 ac_cs_recheck=false
16432 ac_cs_silent=false
16434 SHELL=\${CONFIG_SHELL-$SHELL}
16435 export SHELL
16436 _ASEOF
16437 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16438 ## -------------------- ##
16439 ## M4sh Initialization. ##
16440 ## -------------------- ##
16442 # Be more Bourne compatible
16443 DUALCASE=1; export DUALCASE # for MKS sh
16444 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16445 emulate sh
16446 NULLCMD=:
16447 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16448 # is contrary to our usage. Disable this feature.
16449 alias -g '${1+"$@"}'='"$@"'
16450 setopt NO_GLOB_SUBST
16451 else
16452 case `(set -o) 2>/dev/null` in #(
16453 *posix*) :
16454 set -o posix ;; #(
16455 *) :
16457 esac
16461 as_nl='
16463 export as_nl
16464 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16465 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16466 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16467 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16468 # Prefer a ksh shell builtin over an external printf program on Solaris,
16469 # but without wasting forks for bash or zsh.
16470 if test -z "$BASH_VERSION$ZSH_VERSION" \
16471 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16472 as_echo='print -r --'
16473 as_echo_n='print -rn --'
16474 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16475 as_echo='printf %s\n'
16476 as_echo_n='printf %s'
16477 else
16478 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16479 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16480 as_echo_n='/usr/ucb/echo -n'
16481 else
16482 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16483 as_echo_n_body='eval
16484 arg=$1;
16485 case $arg in #(
16486 *"$as_nl"*)
16487 expr "X$arg" : "X\\(.*\\)$as_nl";
16488 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16489 esac;
16490 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16492 export as_echo_n_body
16493 as_echo_n='sh -c $as_echo_n_body as_echo'
16495 export as_echo_body
16496 as_echo='sh -c $as_echo_body as_echo'
16499 # The user is always right.
16500 if test "${PATH_SEPARATOR+set}" != set; then
16501 PATH_SEPARATOR=:
16502 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16503 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16504 PATH_SEPARATOR=';'
16509 # IFS
16510 # We need space, tab and new line, in precisely that order. Quoting is
16511 # there to prevent editors from complaining about space-tab.
16512 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16513 # splitting by setting IFS to empty value.)
16514 IFS=" "" $as_nl"
16516 # Find who we are. Look in the path if we contain no directory separator.
16517 as_myself=
16518 case $0 in #((
16519 *[\\/]* ) as_myself=$0 ;;
16520 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16521 for as_dir in $PATH
16523 IFS=$as_save_IFS
16524 test -z "$as_dir" && as_dir=.
16525 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16526 done
16527 IFS=$as_save_IFS
16530 esac
16531 # We did not find ourselves, most probably we were run as `sh COMMAND'
16532 # in which case we are not to be found in the path.
16533 if test "x$as_myself" = x; then
16534 as_myself=$0
16536 if test ! -f "$as_myself"; then
16537 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16538 exit 1
16541 # Unset variables that we do not need and which cause bugs (e.g. in
16542 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16543 # suppresses any "Segmentation fault" message there. '((' could
16544 # trigger a bug in pdksh 5.2.14.
16545 for as_var in BASH_ENV ENV MAIL MAILPATH
16546 do eval test x\${$as_var+set} = xset \
16547 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16548 done
16549 PS1='$ '
16550 PS2='> '
16551 PS4='+ '
16553 # NLS nuisances.
16554 LC_ALL=C
16555 export LC_ALL
16556 LANGUAGE=C
16557 export LANGUAGE
16559 # CDPATH.
16560 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16563 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16564 # ----------------------------------------
16565 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16566 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16567 # script with STATUS, using 1 if that was 0.
16568 as_fn_error ()
16570 as_status=$1; test $as_status -eq 0 && as_status=1
16571 if test "$4"; then
16572 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16573 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16575 $as_echo "$as_me: error: $2" >&2
16576 as_fn_exit $as_status
16577 } # as_fn_error
16580 # as_fn_set_status STATUS
16581 # -----------------------
16582 # Set $? to STATUS, without forking.
16583 as_fn_set_status ()
16585 return $1
16586 } # as_fn_set_status
16588 # as_fn_exit STATUS
16589 # -----------------
16590 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16591 as_fn_exit ()
16593 set +e
16594 as_fn_set_status $1
16595 exit $1
16596 } # as_fn_exit
16598 # as_fn_unset VAR
16599 # ---------------
16600 # Portably unset VAR.
16601 as_fn_unset ()
16603 { eval $1=; unset $1;}
16605 as_unset=as_fn_unset
16606 # as_fn_append VAR VALUE
16607 # ----------------------
16608 # Append the text in VALUE to the end of the definition contained in VAR. Take
16609 # advantage of any shell optimizations that allow amortized linear growth over
16610 # repeated appends, instead of the typical quadratic growth present in naive
16611 # implementations.
16612 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16613 eval 'as_fn_append ()
16615 eval $1+=\$2
16617 else
16618 as_fn_append ()
16620 eval $1=\$$1\$2
16622 fi # as_fn_append
16624 # as_fn_arith ARG...
16625 # ------------------
16626 # Perform arithmetic evaluation on the ARGs, and store the result in the
16627 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16628 # must be portable across $(()) and expr.
16629 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16630 eval 'as_fn_arith ()
16632 as_val=$(( $* ))
16634 else
16635 as_fn_arith ()
16637 as_val=`expr "$@" || test $? -eq 1`
16639 fi # as_fn_arith
16642 if expr a : '\(a\)' >/dev/null 2>&1 &&
16643 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16644 as_expr=expr
16645 else
16646 as_expr=false
16649 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16650 as_basename=basename
16651 else
16652 as_basename=false
16655 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16656 as_dirname=dirname
16657 else
16658 as_dirname=false
16661 as_me=`$as_basename -- "$0" ||
16662 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16663 X"$0" : 'X\(//\)$' \| \
16664 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16665 $as_echo X/"$0" |
16666 sed '/^.*\/\([^/][^/]*\)\/*$/{
16667 s//\1/
16670 /^X\/\(\/\/\)$/{
16671 s//\1/
16674 /^X\/\(\/\).*/{
16675 s//\1/
16678 s/.*/./; q'`
16680 # Avoid depending upon Character Ranges.
16681 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16682 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16683 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16684 as_cr_digits='0123456789'
16685 as_cr_alnum=$as_cr_Letters$as_cr_digits
16687 ECHO_C= ECHO_N= ECHO_T=
16688 case `echo -n x` in #(((((
16689 -n*)
16690 case `echo 'xy\c'` in
16691 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16692 xy) ECHO_C='\c';;
16693 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16694 ECHO_T=' ';;
16695 esac;;
16697 ECHO_N='-n';;
16698 esac
16700 rm -f conf$$ conf$$.exe conf$$.file
16701 if test -d conf$$.dir; then
16702 rm -f conf$$.dir/conf$$.file
16703 else
16704 rm -f conf$$.dir
16705 mkdir conf$$.dir 2>/dev/null
16707 if (echo >conf$$.file) 2>/dev/null; then
16708 if ln -s conf$$.file conf$$ 2>/dev/null; then
16709 as_ln_s='ln -s'
16710 # ... but there are two gotchas:
16711 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16712 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16713 # In both cases, we have to default to `cp -pR'.
16714 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16715 as_ln_s='cp -pR'
16716 elif ln conf$$.file conf$$ 2>/dev/null; then
16717 as_ln_s=ln
16718 else
16719 as_ln_s='cp -pR'
16721 else
16722 as_ln_s='cp -pR'
16724 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16725 rmdir conf$$.dir 2>/dev/null
16728 # as_fn_mkdir_p
16729 # -------------
16730 # Create "$as_dir" as a directory, including parents if necessary.
16731 as_fn_mkdir_p ()
16734 case $as_dir in #(
16735 -*) as_dir=./$as_dir;;
16736 esac
16737 test -d "$as_dir" || eval $as_mkdir_p || {
16738 as_dirs=
16739 while :; do
16740 case $as_dir in #(
16741 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16742 *) as_qdir=$as_dir;;
16743 esac
16744 as_dirs="'$as_qdir' $as_dirs"
16745 as_dir=`$as_dirname -- "$as_dir" ||
16746 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16747 X"$as_dir" : 'X\(//\)[^/]' \| \
16748 X"$as_dir" : 'X\(//\)$' \| \
16749 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16750 $as_echo X"$as_dir" |
16751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16752 s//\1/
16755 /^X\(\/\/\)[^/].*/{
16756 s//\1/
16759 /^X\(\/\/\)$/{
16760 s//\1/
16763 /^X\(\/\).*/{
16764 s//\1/
16767 s/.*/./; q'`
16768 test -d "$as_dir" && break
16769 done
16770 test -z "$as_dirs" || eval "mkdir $as_dirs"
16771 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16774 } # as_fn_mkdir_p
16775 if mkdir -p . 2>/dev/null; then
16776 as_mkdir_p='mkdir -p "$as_dir"'
16777 else
16778 test -d ./-p && rmdir ./-p
16779 as_mkdir_p=false
16783 # as_fn_executable_p FILE
16784 # -----------------------
16785 # Test if FILE is an executable regular file.
16786 as_fn_executable_p ()
16788 test -f "$1" && test -x "$1"
16789 } # as_fn_executable_p
16790 as_test_x='test -x'
16791 as_executable_p=as_fn_executable_p
16793 # Sed expression to map a string onto a valid CPP name.
16794 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16796 # Sed expression to map a string onto a valid variable name.
16797 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16800 exec 6>&1
16801 ## ----------------------------------- ##
16802 ## Main body of $CONFIG_STATUS script. ##
16803 ## ----------------------------------- ##
16804 _ASEOF
16805 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16808 # Save the log message, to keep $0 and so on meaningful, and to
16809 # report actual input values of CONFIG_FILES etc. instead of their
16810 # values after options handling.
16811 ac_log="
16812 This file was extended by $as_me, which was
16813 generated by GNU Autoconf 2.69. Invocation command line was
16815 CONFIG_FILES = $CONFIG_FILES
16816 CONFIG_HEADERS = $CONFIG_HEADERS
16817 CONFIG_LINKS = $CONFIG_LINKS
16818 CONFIG_COMMANDS = $CONFIG_COMMANDS
16819 $ $0 $@
16821 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16824 _ACEOF
16826 case $ac_config_files in *"
16827 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16828 esac
16830 case $ac_config_headers in *"
16831 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16832 esac
16835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16836 # Files that config.status was made for.
16837 config_files="$ac_config_files"
16838 config_headers="$ac_config_headers"
16839 config_commands="$ac_config_commands"
16841 _ACEOF
16843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16844 ac_cs_usage="\
16845 \`$as_me' instantiates files and other configuration actions
16846 from templates according to the current configuration. Unless the files
16847 and actions are specified as TAGs, all are instantiated by default.
16849 Usage: $0 [OPTION]... [TAG]...
16851 -h, --help print this help, then exit
16852 -V, --version print version number and configuration settings, then exit
16853 --config print configuration, then exit
16854 -q, --quiet, --silent
16855 do not print progress messages
16856 -d, --debug don't remove temporary files
16857 --recheck update $as_me by reconfiguring in the same conditions
16858 --file=FILE[:TEMPLATE]
16859 instantiate the configuration file FILE
16860 --header=FILE[:TEMPLATE]
16861 instantiate the configuration header FILE
16863 Configuration files:
16864 $config_files
16866 Configuration headers:
16867 $config_headers
16869 Configuration commands:
16870 $config_commands
16872 Report bugs to the package provider."
16874 _ACEOF
16875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16876 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16877 ac_cs_version="\\
16878 config.status
16879 configured by $0, generated by GNU Autoconf 2.69,
16880 with options \\"\$ac_cs_config\\"
16882 Copyright (C) 2012 Free Software Foundation, Inc.
16883 This config.status script is free software; the Free Software Foundation
16884 gives unlimited permission to copy, distribute and modify it."
16886 ac_pwd='$ac_pwd'
16887 srcdir='$srcdir'
16888 test -n "\$AWK" || AWK=awk
16889 _ACEOF
16891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16892 # The default lists apply if the user does not specify any file.
16893 ac_need_defaults=:
16894 while test $# != 0
16896 case $1 in
16897 --*=?*)
16898 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16899 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16900 ac_shift=:
16902 --*=)
16903 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16904 ac_optarg=
16905 ac_shift=:
16908 ac_option=$1
16909 ac_optarg=$2
16910 ac_shift=shift
16912 esac
16914 case $ac_option in
16915 # Handling of the options.
16916 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16917 ac_cs_recheck=: ;;
16918 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16919 $as_echo "$ac_cs_version"; exit ;;
16920 --config | --confi | --conf | --con | --co | --c )
16921 $as_echo "$ac_cs_config"; exit ;;
16922 --debug | --debu | --deb | --de | --d | -d )
16923 debug=: ;;
16924 --file | --fil | --fi | --f )
16925 $ac_shift
16926 case $ac_optarg in
16927 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16928 '') as_fn_error $? "missing file argument" ;;
16929 esac
16930 as_fn_append CONFIG_FILES " '$ac_optarg'"
16931 ac_need_defaults=false;;
16932 --header | --heade | --head | --hea )
16933 $ac_shift
16934 case $ac_optarg in
16935 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16936 esac
16937 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16938 ac_need_defaults=false;;
16939 --he | --h)
16940 # Conflict between --help and --header
16941 as_fn_error $? "ambiguous option: \`$1'
16942 Try \`$0 --help' for more information.";;
16943 --help | --hel | -h )
16944 $as_echo "$ac_cs_usage"; exit ;;
16945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16946 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16947 ac_cs_silent=: ;;
16949 # This is an error.
16950 -*) as_fn_error $? "unrecognized option: \`$1'
16951 Try \`$0 --help' for more information." ;;
16953 *) as_fn_append ac_config_targets " $1"
16954 ac_need_defaults=false ;;
16956 esac
16957 shift
16958 done
16960 ac_configure_extra_args=
16962 if $ac_cs_silent; then
16963 exec 6>/dev/null
16964 ac_configure_extra_args="$ac_configure_extra_args --silent"
16967 _ACEOF
16968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16969 if \$ac_cs_recheck; then
16970 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16971 shift
16972 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16973 CONFIG_SHELL='$SHELL'
16974 export CONFIG_SHELL
16975 exec "\$@"
16978 _ACEOF
16979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16980 exec 5>>config.log
16982 echo
16983 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16984 ## Running $as_me. ##
16985 _ASBOX
16986 $as_echo "$ac_log"
16987 } >&5
16989 _ACEOF
16990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16992 # INIT-COMMANDS
16995 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16996 aros_tools_dir=${aros_tools_dir}
17000 aros_host_exe_suffix=${aros_host_exe_suffix}
17001 aros_tools_dir=${aros_tools_dir}
17002 aros_target_cpu=${aros_target_cpu}
17003 aros_target_arch=${aros_target_arch}
17004 aros_target_suffix=${aros_target_suffix}
17005 orig_target_nm=${orig_target_nm}
17006 orig_target_as=${orig_target_as}
17007 orig_target_ar=${orig_target_ar}
17008 orig_target_ranlib=${orig_target_ranlib}
17009 orig_target_objdump=${orig_target_objdump}
17010 orig_target_objcopy=${orig_target_objcopy}
17011 orig_target_strip=${orig_target_strip}
17012 aros_kernel_ld=${aros_kernel_ld}
17016 aros_host_exe_suffix=${aros_host_exe_suffix}
17017 aros_tools_dir=${aros_tools_dir}
17018 aros_target_cpu=${aros_target_cpu}
17019 aros_target_arch=${aros_target_arch}
17020 aros_target_suffix=${aros_target_suffix}
17021 aros_kernel_ld=${aros_kernel_ld}
17025 aros_host_exe_suffix=${aros_host_exe_suffix}
17026 aros_tools_dir=${aros_tools_dir}
17027 aros_target_cpu=${aros_target_cpu}
17028 aros_target_arch=${aros_target_arch}
17029 aros_target_suffix=${aros_target_suffix}
17033 _ACEOF
17035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17037 # Handling of arguments.
17038 for ac_config_target in $ac_config_targets
17040 case $ac_config_target in
17041 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
17042 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
17043 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17044 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
17045 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
17046 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
17047 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
17048 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
17049 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
17050 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
17051 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
17052 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
17053 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
17054 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
17055 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
17056 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
17057 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in" ;;
17058 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
17059 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
17060 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in" ;;
17061 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
17062 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
17063 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in" ;;
17064 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in" ;;
17065 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in" ;;
17066 "${aros_gendir}/arch/all-android/bootstrap/app/default.properties") CONFIG_FILES="$CONFIG_FILES ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in" ;;
17067 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
17069 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17070 esac
17071 done
17074 # If the user did not use the arguments to specify the items to instantiate,
17075 # then the envvar interface is used. Set only those that are not.
17076 # We use the long form for the default assignment because of an extremely
17077 # bizarre bug on SunOS 4.1.3.
17078 if $ac_need_defaults; then
17079 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17080 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17081 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17084 # Have a temporary directory for convenience. Make it in the build tree
17085 # simply because there is no reason against having it here, and in addition,
17086 # creating and moving files from /tmp can sometimes cause problems.
17087 # Hook for its removal unless debugging.
17088 # Note that there is a small window in which the directory will not be cleaned:
17089 # after its creation but before its name has been assigned to `$tmp'.
17090 $debug ||
17092 tmp= ac_tmp=
17093 trap 'exit_status=$?
17094 : "${ac_tmp:=$tmp}"
17095 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17097 trap 'as_fn_exit 1' 1 2 13 15
17099 # Create a (secure) tmp directory for tmp files.
17102 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17103 test -d "$tmp"
17104 } ||
17106 tmp=./conf$$-$RANDOM
17107 (umask 077 && mkdir "$tmp")
17108 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17109 ac_tmp=$tmp
17111 # Set up the scripts for CONFIG_FILES section.
17112 # No need to generate them if there are no CONFIG_FILES.
17113 # This happens for instance with `./config.status config.h'.
17114 if test -n "$CONFIG_FILES"; then
17117 ac_cr=`echo X | tr X '\015'`
17118 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17119 # But we know of no other shell where ac_cr would be empty at this
17120 # point, so we can use a bashism as a fallback.
17121 if test "x$ac_cr" = x; then
17122 eval ac_cr=\$\'\\r\'
17124 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17125 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17126 ac_cs_awk_cr='\\r'
17127 else
17128 ac_cs_awk_cr=$ac_cr
17131 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17132 _ACEOF
17136 echo "cat >conf$$subs.awk <<_ACEOF" &&
17137 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17138 echo "_ACEOF"
17139 } >conf$$subs.sh ||
17140 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17141 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17142 ac_delim='%!_!# '
17143 for ac_last_try in false false false false false :; do
17144 . ./conf$$subs.sh ||
17145 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17147 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17148 if test $ac_delim_n = $ac_delim_num; then
17149 break
17150 elif $ac_last_try; then
17151 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17152 else
17153 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17155 done
17156 rm -f conf$$subs.sh
17158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17159 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17160 _ACEOF
17161 sed -n '
17163 s/^/S["/; s/!.*/"]=/
17166 s/^[^!]*!//
17167 :repl
17168 t repl
17169 s/'"$ac_delim"'$//
17170 t delim
17173 s/\(.\{148\}\)..*/\1/
17174 t more1
17175 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17178 b repl
17179 :more1
17180 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17183 s/.\{148\}//
17184 t nl
17185 :delim
17187 s/\(.\{148\}\)..*/\1/
17188 t more2
17189 s/["\\]/\\&/g; s/^/"/; s/$/"/
17192 :more2
17193 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17196 s/.\{148\}//
17197 t delim
17198 ' <conf$$subs.awk | sed '
17199 /^[^""]/{
17201 s/\n//
17203 ' >>$CONFIG_STATUS || ac_write_fail=1
17204 rm -f conf$$subs.awk
17205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17206 _ACAWK
17207 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17208 for (key in S) S_is_set[key] = 1
17209 FS = "\a"
17213 line = $ 0
17214 nfields = split(line, field, "@")
17215 substed = 0
17216 len = length(field[1])
17217 for (i = 2; i < nfields; i++) {
17218 key = field[i]
17219 keylen = length(key)
17220 if (S_is_set[key]) {
17221 value = S[key]
17222 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17223 len += length(value) + length(field[++i])
17224 substed = 1
17225 } else
17226 len += 1 + keylen
17229 print line
17232 _ACAWK
17233 _ACEOF
17234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17235 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17236 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17237 else
17239 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17240 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17241 _ACEOF
17243 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17244 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17245 # trailing colons and then remove the whole line if VPATH becomes empty
17246 # (actually we leave an empty line to preserve line numbers).
17247 if test "x$srcdir" = x.; then
17248 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17250 s///
17251 s/^/:/
17252 s/[ ]*$/:/
17253 s/:\$(srcdir):/:/g
17254 s/:\${srcdir}:/:/g
17255 s/:@srcdir@:/:/g
17256 s/^:*//
17257 s/:*$//
17259 s/\(=[ ]*\).*/\1/
17261 s/\n//
17262 s/^[^=]*=[ ]*$//
17266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17267 fi # test -n "$CONFIG_FILES"
17269 # Set up the scripts for CONFIG_HEADERS section.
17270 # No need to generate them if there are no CONFIG_HEADERS.
17271 # This happens for instance with `./config.status Makefile'.
17272 if test -n "$CONFIG_HEADERS"; then
17273 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17274 BEGIN {
17275 _ACEOF
17277 # Transform confdefs.h into an awk script `defines.awk', embedded as
17278 # here-document in config.status, that substitutes the proper values into
17279 # config.h.in to produce config.h.
17281 # Create a delimiter string that does not exist in confdefs.h, to ease
17282 # handling of long lines.
17283 ac_delim='%!_!# '
17284 for ac_last_try in false false :; do
17285 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17286 if test -z "$ac_tt"; then
17287 break
17288 elif $ac_last_try; then
17289 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17290 else
17291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17293 done
17295 # For the awk script, D is an array of macro values keyed by name,
17296 # likewise P contains macro parameters if any. Preserve backslash
17297 # newline sequences.
17299 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17300 sed -n '
17301 s/.\{148\}/&'"$ac_delim"'/g
17302 t rset
17303 :rset
17304 s/^[ ]*#[ ]*define[ ][ ]*/ /
17305 t def
17307 :def
17308 s/\\$//
17309 t bsnl
17310 s/["\\]/\\&/g
17311 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17312 D["\1"]=" \3"/p
17313 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17315 :bsnl
17316 s/["\\]/\\&/g
17317 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17318 D["\1"]=" \3\\\\\\n"\\/p
17319 t cont
17320 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17321 t cont
17323 :cont
17325 s/.\{148\}/&'"$ac_delim"'/g
17326 t clear
17327 :clear
17328 s/\\$//
17329 t bsnlc
17330 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17332 :bsnlc
17333 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17334 b cont
17335 ' <confdefs.h | sed '
17336 s/'"$ac_delim"'/"\\\
17337 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17340 for (key in D) D_is_set[key] = 1
17341 FS = "\a"
17343 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17344 line = \$ 0
17345 split(line, arg, " ")
17346 if (arg[1] == "#") {
17347 defundef = arg[2]
17348 mac1 = arg[3]
17349 } else {
17350 defundef = substr(arg[1], 2)
17351 mac1 = arg[2]
17353 split(mac1, mac2, "(") #)
17354 macro = mac2[1]
17355 prefix = substr(line, 1, index(line, defundef) - 1)
17356 if (D_is_set[macro]) {
17357 # Preserve the white space surrounding the "#".
17358 print prefix "define", macro P[macro] D[macro]
17359 next
17360 } else {
17361 # Replace #undef with comments. This is necessary, for example,
17362 # in the case of _POSIX_SOURCE, which is predefined and required
17363 # on some systems where configure will not decide to define it.
17364 if (defundef == "undef") {
17365 print "/*", prefix defundef, macro, "*/"
17366 next
17370 { print }
17371 _ACAWK
17372 _ACEOF
17373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17374 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17375 fi # test -n "$CONFIG_HEADERS"
17378 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17379 shift
17380 for ac_tag
17382 case $ac_tag in
17383 :[FHLC]) ac_mode=$ac_tag; continue;;
17384 esac
17385 case $ac_mode$ac_tag in
17386 :[FHL]*:*);;
17387 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17388 :[FH]-) ac_tag=-:-;;
17389 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17390 esac
17391 ac_save_IFS=$IFS
17392 IFS=:
17393 set x $ac_tag
17394 IFS=$ac_save_IFS
17395 shift
17396 ac_file=$1
17397 shift
17399 case $ac_mode in
17400 :L) ac_source=$1;;
17401 :[FH])
17402 ac_file_inputs=
17403 for ac_f
17405 case $ac_f in
17406 -) ac_f="$ac_tmp/stdin";;
17407 *) # Look for the file first in the build tree, then in the source tree
17408 # (if the path is not absolute). The absolute path cannot be DOS-style,
17409 # because $ac_f cannot contain `:'.
17410 test -f "$ac_f" ||
17411 case $ac_f in
17412 [\\/$]*) false;;
17413 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17414 esac ||
17415 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17416 esac
17417 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17418 as_fn_append ac_file_inputs " '$ac_f'"
17419 done
17421 # Let's still pretend it is `configure' which instantiates (i.e., don't
17422 # use $as_me), people would be surprised to read:
17423 # /* config.h. Generated by config.status. */
17424 configure_input='Generated from '`
17425 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17426 `' by configure.'
17427 if test x"$ac_file" != x-; then
17428 configure_input="$ac_file. $configure_input"
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17430 $as_echo "$as_me: creating $ac_file" >&6;}
17432 # Neutralize special characters interpreted by sed in replacement strings.
17433 case $configure_input in #(
17434 *\&* | *\|* | *\\* )
17435 ac_sed_conf_input=`$as_echo "$configure_input" |
17436 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17437 *) ac_sed_conf_input=$configure_input;;
17438 esac
17440 case $ac_tag in
17441 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17443 esac
17445 esac
17447 ac_dir=`$as_dirname -- "$ac_file" ||
17448 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17449 X"$ac_file" : 'X\(//\)[^/]' \| \
17450 X"$ac_file" : 'X\(//\)$' \| \
17451 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17452 $as_echo X"$ac_file" |
17453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17454 s//\1/
17457 /^X\(\/\/\)[^/].*/{
17458 s//\1/
17461 /^X\(\/\/\)$/{
17462 s//\1/
17465 /^X\(\/\).*/{
17466 s//\1/
17469 s/.*/./; q'`
17470 as_dir="$ac_dir"; as_fn_mkdir_p
17471 ac_builddir=.
17473 case "$ac_dir" in
17474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17477 # A ".." for each directory in $ac_dir_suffix.
17478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17479 case $ac_top_builddir_sub in
17480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17482 esac ;;
17483 esac
17484 ac_abs_top_builddir=$ac_pwd
17485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17486 # for backward compatibility:
17487 ac_top_builddir=$ac_top_build_prefix
17489 case $srcdir in
17490 .) # We are building in place.
17491 ac_srcdir=.
17492 ac_top_srcdir=$ac_top_builddir_sub
17493 ac_abs_top_srcdir=$ac_pwd ;;
17494 [\\/]* | ?:[\\/]* ) # Absolute name.
17495 ac_srcdir=$srcdir$ac_dir_suffix;
17496 ac_top_srcdir=$srcdir
17497 ac_abs_top_srcdir=$srcdir ;;
17498 *) # Relative name.
17499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17500 ac_top_srcdir=$ac_top_build_prefix$srcdir
17501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17502 esac
17503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17506 case $ac_mode in
17509 # CONFIG_FILE
17512 _ACEOF
17514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17515 # If the template does not know about datarootdir, expand it.
17516 # FIXME: This hack should be removed a few years after 2.60.
17517 ac_datarootdir_hack=; ac_datarootdir_seen=
17518 ac_sed_dataroot='
17519 /datarootdir/ {
17523 /@datadir@/p
17524 /@docdir@/p
17525 /@infodir@/p
17526 /@localedir@/p
17527 /@mandir@/p'
17528 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17529 *datarootdir*) ac_datarootdir_seen=yes;;
17530 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17532 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17533 _ACEOF
17534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17535 ac_datarootdir_hack='
17536 s&@datadir@&$datadir&g
17537 s&@docdir@&$docdir&g
17538 s&@infodir@&$infodir&g
17539 s&@localedir@&$localedir&g
17540 s&@mandir@&$mandir&g
17541 s&\\\${datarootdir}&$datarootdir&g' ;;
17542 esac
17543 _ACEOF
17545 # Neutralize VPATH when `$srcdir' = `.'.
17546 # Shell code in configure.ac might set extrasub.
17547 # FIXME: do we really want to maintain this feature?
17548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17549 ac_sed_extra="$ac_vpsub
17550 $extrasub
17551 _ACEOF
17552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17554 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17555 s|@configure_input@|$ac_sed_conf_input|;t t
17556 s&@top_builddir@&$ac_top_builddir_sub&;t t
17557 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17558 s&@srcdir@&$ac_srcdir&;t t
17559 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17560 s&@top_srcdir@&$ac_top_srcdir&;t t
17561 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17562 s&@builddir@&$ac_builddir&;t t
17563 s&@abs_builddir@&$ac_abs_builddir&;t t
17564 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17565 $ac_datarootdir_hack
17567 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17568 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17570 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17571 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17572 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17573 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17575 which seems to be undefined. Please make sure it is defined" >&5
17576 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17577 which seems to be undefined. Please make sure it is defined" >&2;}
17579 rm -f "$ac_tmp/stdin"
17580 case $ac_file in
17581 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17582 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17583 esac \
17584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17588 # CONFIG_HEADER
17590 if test x"$ac_file" != x-; then
17592 $as_echo "/* $configure_input */" \
17593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17594 } >"$ac_tmp/config.h" \
17595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17596 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17598 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17599 else
17600 rm -f "$ac_file"
17601 mv "$ac_tmp/config.h" "$ac_file" \
17602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17604 else
17605 $as_echo "/* $configure_input */" \
17606 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17607 || as_fn_error $? "could not create -" "$LINENO" 5
17611 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17612 $as_echo "$as_me: executing $ac_file commands" >&6;}
17614 esac
17617 case $ac_file$ac_mode in
17618 "genmf-executable-support":C)
17619 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
17620 chmod a+x ${aros_tools_dir}/genmf.py
17622 "binutils-support":C)
17623 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17624 mkdir -p $prefix
17625 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17627 chmod a+x ${prefix2}-ld
17629 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
17630 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
17631 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
17632 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
17633 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
17634 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
17635 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
17637 "elf-compiler-support":C)
17638 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17639 mkdir -p $prefix
17640 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
17642 chmod a+x ${prefix2}-gcc
17644 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
17646 "host-compiler-wrapper-support":C)
17647 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17648 mkdir -p $prefix
17649 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17651 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
17654 esac
17655 done # for ac_tag
17658 as_fn_exit 0
17659 _ACEOF
17660 ac_clean_files=$ac_clean_files_save
17662 test $ac_write_fail = 0 ||
17663 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17666 # configure is writing to config.log, and then calls config.status.
17667 # config.status does its own redirection, appending to config.log.
17668 # Unfortunately, on DOS this fails, as config.log is still kept open
17669 # by configure, so config.status won't be able to write to it; its
17670 # output is simply discarded. So we exec the FD to /dev/null,
17671 # effectively closing config.log, so it can be properly (re)opened and
17672 # appended to by config.status. When coming back to configure, we
17673 # need to make the FD available again.
17674 if test "$no_create" != yes; then
17675 ac_cs_success=:
17676 ac_config_status_args=
17677 test "$silent" = yes &&
17678 ac_config_status_args="$ac_config_status_args --quiet"
17679 exec 5>/dev/null
17680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17681 exec 5>>config.log
17682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17683 # would make configure fail if this is the last instruction.
17684 $ac_cs_success || as_fn_exit 1
17686 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17688 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17693 #XXX compatability...
17694 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
17696 if test -n "$aros_shared_cflags" ; then
17697 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
17698 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg