define HOST_ISA_*FLAGS
[AROS.git] / configure
blob011b0e43f7c9734700662ef64b49da8d2bce1f68
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_optimization_cflags
673 aros_config_coverage
674 aros_config_lto
675 aros_target_strip_flags
676 aros_target_genmap
677 aros_debug_ldflags
678 aros_debug_aflags
679 aros_debug_cxxflags
680 aros_debug_cflags
681 aros_debug_cppflags
682 aros_kernel_ldflags
683 aros_kernel_objcflags
684 aros_kernel_includes
685 aros_kernel_cflags
686 aros_kernel_cppflags
687 aros_kernel_sysroot
688 aros_config_ldflags
689 aros_config_aflags
690 aros_config_cxxflags
691 aros_config_cflags
692 aros_config_cppflags
693 aros_nowarn_flags
694 aros_warn_flags
695 aros_shared_ldflags
696 aros_shared_aflags
697 aros_shared_cflags
698 aros_cxx_libs
699 aros_c_libs
700 spec_obj_format
701 aros_object_format
702 aros_shared_ld
703 aros_shared_default
704 aros_target_nm
705 aros_target_strip
706 aros_target_objcopy
707 aros_target_objdump
708 aros_target_cc_path
709 aros_target_cc_includes
710 aros_target_ld
711 aros_target_as
712 aros_target_cpp
713 aros_target_cxx
714 aros_target_cc
715 aros_plain_ar
716 aros_plain_nm
717 aros_target_ranlib
718 aros_target_ar
719 aros_target_suffix
720 aros_target_variant
721 aros_target_cpu_mode
722 aros_target_cpu
723 aros_target_family
724 aros_target_arch
725 aros_target_bootloader
726 aros_target_iconset
727 aros_target_guitheme
728 aros_target_options
729 target_extra_cfg
730 make_extra_targetcfg
731 make_extra_commands
732 aros_elf_translate
733 aros_tools_dir
734 aros_host_lib_suffix
735 aros_host_exe_suffix
736 aros_host_mkargs
737 aros_host_mkdep
738 aros_host_debug
739 aros_host_ldflags
740 gnu89_inline
741 aros_host_cxxflags
742 aros_host_cflags
743 aros_host_cppflags
744 aros_host_make
745 aros_host_ar
746 aros_host_cxx
747 aros_host_cc
748 aros_host_def_cc
749 aros_host_cpp
750 aros_host_cpu
751 aros_host_arch
752 aros_cc_pre
753 host_extra_cfg
754 ax_cv_flex_version
755 host_stat_h__unused_used
756 aros_amigaos_compliance
757 AROS_PORTSSRCDIR
758 AROS_CROSSTOOLSDIR
759 SRCDIR
760 AROS_BUILDDIR_UNIX
761 AROS_BUILDDIR
762 aros_build_host
763 aros_toolchain_ld
764 aros_target_toolchain
765 aros_flavour_uc
766 aros_flavour
767 aros_cpu
768 aros_arch
769 SDL_LIBS
770 SDL_CFLAGS
771 SDL_CONFIG
772 XMKMF
773 kernel_cflags_iquote_end
774 kernel_cflags_iquote
775 host_cflags_iquote_end
776 host_cflags_iquote
777 aros_toolchain
778 aros_target_nostdlib_ldflags
779 aros_target_detach_ldflags
780 aros_target_nix_ldflags
781 aros_target_nostartup_ldflags
782 aros_target_nostdinc_cflags
783 aros_kernel_rescomp
784 orig_target_objdump
785 orig_target_objcopy
786 orig_target_strip
787 orig_target_nm
788 orig_target_ranlib
789 orig_target_ar
790 orig_target_as
791 orig_target_ld
792 orig_target_cxx
793 orig_target_cc
794 orig_target_cpp
795 aros_kernel_objdump
796 aros_kernel_objcopy
797 aros_kernel_strip
798 aros_kernel_nm
799 aros_kernel_ranlib
800 aros_kernel_ar
801 aros_kernel_as
802 aros_kernel_ld
803 aros_kernel_cxx
804 aros_kernel_cc
805 aros_kernel_cpp
806 target_gcc_version
808 android_tool
809 CCACHE
810 DISTCC
811 LIBOBJS
812 EGREP
813 GREP
815 TEST
818 libpng_incdir
819 libpng_libextra
820 libpng
821 arosconfig_use_libpngconfig
822 pkgpyexecdir
823 pyexecdir
824 pkgpythondir
825 pythondir
826 PYTHON_PLATFORM
827 PYTHON_EXEC_PREFIX
828 PYTHON_PREFIX
829 PYTHON_VERSION
830 PYTHON
831 PATCH
832 CHMOD
834 PPMTOILBM
835 PNGTOPNM
836 FLEX
837 BISON
840 UNIQ
841 SORT
842 TOUCH
843 MKDIR
844 ECHO
848 aros_host_strip
849 aros_host_ranlib
850 aros_host_full_ar
851 aros_host_cmd_ar
852 aros_host_automake
853 aros_host_autoheader
854 aros_host_autoconf
855 aros_host_aclocal
856 aros_host_ld
857 base_lld_name
858 MMAKE
861 ac_ct_CC
862 CFLAGS
864 OBJEXT
865 EXEEXT
866 ac_ct_CXX
867 CPPFLAGS
868 LDFLAGS
869 CXXFLAGS
871 host_os
872 host_vendor
873 host_cpu
874 host
875 build_os
876 build_vendor
877 build_cpu
878 build
879 target_alias
880 host_alias
881 build_alias
882 LIBS
883 ECHO_T
884 ECHO_N
885 ECHO_C
886 DEFS
887 mandir
888 localedir
889 libdir
890 psdir
891 pdfdir
892 dvidir
893 htmldir
894 infodir
895 docdir
896 oldincludedir
897 includedir
898 runstatedir
899 localstatedir
900 sharedstatedir
901 sysconfdir
902 datadir
903 datarootdir
904 libexecdir
905 sbindir
906 bindir
907 program_transform_name
908 prefix
909 exec_prefix
910 PACKAGE_URL
911 PACKAGE_BUGREPORT
912 PACKAGE_STRING
913 PACKAGE_VERSION
914 PACKAGE_TARNAME
915 PACKAGE_NAME
916 PATH_SEPARATOR
917 SHELL'
918 ac_subst_files=''
919 ac_user_opts='
920 enable_option_checking
921 with_c_compiler
922 with_cxx_compiler
923 enable_libpng_config
924 with_toolchain
925 enable_lto
926 enable_coverage
927 enable_build_type
928 enable_debug
929 enable_distcc
930 enable_ccache
931 with_kernel_gcc_version
932 with_optimization
933 with_paranoia
934 enable_target_variant
935 with_xcode
936 with_sdk_version
937 with_sdk
938 with_ndk
939 with_ndk_version
940 with_apk_version
941 enable_amigaos_compliance
942 with_kernel_toolchain_prefix
943 with_elf_toolchain_prefix
944 with_aros_toolchain
945 enable_crosstools
946 with_aros_toolchain_install
947 with_binutils_version
948 with_gcc_version
949 enable_objc
950 enable_java
951 with_cpu
952 with_fpu
953 with_float
954 with_portssources
955 with_bootloader
956 with_iconset
957 with_theme
958 enable_includes
959 with_resolution
960 with_serial_debug
961 enable_palm_debug_hack
962 enable_usb30_code
963 enable_nesting_supervisor
964 enable_mmu
965 enable_x11_hidd
966 with_x
967 enable_x11_shm
968 enable_x11_vidmode
969 enable_sdl_hidd
970 with_sdl_prefix
971 with_sdl_exec_prefix
972 enable_sdltest
973 enable_dbus
975 ac_precious_vars='build_alias
976 host_alias
977 target_alias
979 CXXFLAGS
980 LDFLAGS
981 LIBS
982 CPPFLAGS
985 CFLAGS
987 PYTHON
988 XMKMF'
991 # Initialize some variables set by options.
992 ac_init_help=
993 ac_init_version=false
994 ac_unrecognized_opts=
995 ac_unrecognized_sep=
996 # The variables have the same names as the options, with
997 # dashes changed to underlines.
998 cache_file=/dev/null
999 exec_prefix=NONE
1000 no_create=
1001 no_recursion=
1002 prefix=NONE
1003 program_prefix=NONE
1004 program_suffix=NONE
1005 program_transform_name=s,x,x,
1006 silent=
1007 site=
1008 srcdir=
1009 verbose=
1010 x_includes=NONE
1011 x_libraries=NONE
1013 # Installation directory options.
1014 # These are left unexpanded so users can "make install exec_prefix=/foo"
1015 # and all the variables that are supposed to be based on exec_prefix
1016 # by default will actually change.
1017 # Use braces instead of parens because sh, perl, etc. also accept them.
1018 # (The list follows the same order as the GNU Coding Standards.)
1019 bindir='${exec_prefix}/bin'
1020 sbindir='${exec_prefix}/sbin'
1021 libexecdir='${exec_prefix}/libexec'
1022 datarootdir='${prefix}/share'
1023 datadir='${datarootdir}'
1024 sysconfdir='${prefix}/etc'
1025 sharedstatedir='${prefix}/com'
1026 localstatedir='${prefix}/var'
1027 runstatedir='${localstatedir}/run'
1028 includedir='${prefix}/include'
1029 oldincludedir='/usr/include'
1030 docdir='${datarootdir}/doc/${PACKAGE}'
1031 infodir='${datarootdir}/info'
1032 htmldir='${docdir}'
1033 dvidir='${docdir}'
1034 pdfdir='${docdir}'
1035 psdir='${docdir}'
1036 libdir='${exec_prefix}/lib'
1037 localedir='${datarootdir}/locale'
1038 mandir='${datarootdir}/man'
1040 ac_prev=
1041 ac_dashdash=
1042 for ac_option
1044 # If the previous option needs an argument, assign it.
1045 if test -n "$ac_prev"; then
1046 eval $ac_prev=\$ac_option
1047 ac_prev=
1048 continue
1051 case $ac_option in
1052 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1053 *=) ac_optarg= ;;
1054 *) ac_optarg=yes ;;
1055 esac
1057 # Accept the important Cygnus configure options, so we can diagnose typos.
1059 case $ac_dashdash$ac_option in
1061 ac_dashdash=yes ;;
1063 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1064 ac_prev=bindir ;;
1065 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1066 bindir=$ac_optarg ;;
1068 -build | --build | --buil | --bui | --bu)
1069 ac_prev=build_alias ;;
1070 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1071 build_alias=$ac_optarg ;;
1073 -cache-file | --cache-file | --cache-fil | --cache-fi \
1074 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1075 ac_prev=cache_file ;;
1076 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1077 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1078 cache_file=$ac_optarg ;;
1080 --config-cache | -C)
1081 cache_file=config.cache ;;
1083 -datadir | --datadir | --datadi | --datad)
1084 ac_prev=datadir ;;
1085 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1086 datadir=$ac_optarg ;;
1088 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1089 | --dataroo | --dataro | --datar)
1090 ac_prev=datarootdir ;;
1091 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1092 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1093 datarootdir=$ac_optarg ;;
1095 -disable-* | --disable-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid feature name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=no ;;
1111 -docdir | --docdir | --docdi | --doc | --do)
1112 ac_prev=docdir ;;
1113 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1114 docdir=$ac_optarg ;;
1116 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1117 ac_prev=dvidir ;;
1118 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1119 dvidir=$ac_optarg ;;
1121 -enable-* | --enable-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid feature name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1130 "enable_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval enable_$ac_useropt=\$ac_optarg ;;
1137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1139 | --exec | --exe | --ex)
1140 ac_prev=exec_prefix ;;
1141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1143 | --exec=* | --exe=* | --ex=*)
1144 exec_prefix=$ac_optarg ;;
1146 -gas | --gas | --ga | --g)
1147 # Obsolete; use --with-gas.
1148 with_gas=yes ;;
1150 -help | --help | --hel | --he | -h)
1151 ac_init_help=long ;;
1152 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1153 ac_init_help=recursive ;;
1154 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1155 ac_init_help=short ;;
1157 -host | --host | --hos | --ho)
1158 ac_prev=host_alias ;;
1159 -host=* | --host=* | --hos=* | --ho=*)
1160 host_alias=$ac_optarg ;;
1162 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1163 ac_prev=htmldir ;;
1164 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1165 | --ht=*)
1166 htmldir=$ac_optarg ;;
1168 -includedir | --includedir | --includedi | --included | --include \
1169 | --includ | --inclu | --incl | --inc)
1170 ac_prev=includedir ;;
1171 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1172 | --includ=* | --inclu=* | --incl=* | --inc=*)
1173 includedir=$ac_optarg ;;
1175 -infodir | --infodir | --infodi | --infod | --info | --inf)
1176 ac_prev=infodir ;;
1177 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1178 infodir=$ac_optarg ;;
1180 -libdir | --libdir | --libdi | --libd)
1181 ac_prev=libdir ;;
1182 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1183 libdir=$ac_optarg ;;
1185 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1186 | --libexe | --libex | --libe)
1187 ac_prev=libexecdir ;;
1188 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1189 | --libexe=* | --libex=* | --libe=*)
1190 libexecdir=$ac_optarg ;;
1192 -localedir | --localedir | --localedi | --localed | --locale)
1193 ac_prev=localedir ;;
1194 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1195 localedir=$ac_optarg ;;
1197 -localstatedir | --localstatedir | --localstatedi | --localstated \
1198 | --localstate | --localstat | --localsta | --localst | --locals)
1199 ac_prev=localstatedir ;;
1200 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1201 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1202 localstatedir=$ac_optarg ;;
1204 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1205 ac_prev=mandir ;;
1206 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1207 mandir=$ac_optarg ;;
1209 -nfp | --nfp | --nf)
1210 # Obsolete; use --without-fp.
1211 with_fp=no ;;
1213 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1214 | --no-cr | --no-c | -n)
1215 no_create=yes ;;
1217 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1218 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1219 no_recursion=yes ;;
1221 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1222 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1223 | --oldin | --oldi | --old | --ol | --o)
1224 ac_prev=oldincludedir ;;
1225 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1226 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1227 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1228 oldincludedir=$ac_optarg ;;
1230 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1231 ac_prev=prefix ;;
1232 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1233 prefix=$ac_optarg ;;
1235 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1236 | --program-pre | --program-pr | --program-p)
1237 ac_prev=program_prefix ;;
1238 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1239 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1240 program_prefix=$ac_optarg ;;
1242 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1243 | --program-suf | --program-su | --program-s)
1244 ac_prev=program_suffix ;;
1245 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1246 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1247 program_suffix=$ac_optarg ;;
1249 -program-transform-name | --program-transform-name \
1250 | --program-transform-nam | --program-transform-na \
1251 | --program-transform-n | --program-transform- \
1252 | --program-transform | --program-transfor \
1253 | --program-transfo | --program-transf \
1254 | --program-trans | --program-tran \
1255 | --progr-tra | --program-tr | --program-t)
1256 ac_prev=program_transform_name ;;
1257 -program-transform-name=* | --program-transform-name=* \
1258 | --program-transform-nam=* | --program-transform-na=* \
1259 | --program-transform-n=* | --program-transform-=* \
1260 | --program-transform=* | --program-transfor=* \
1261 | --program-transfo=* | --program-transf=* \
1262 | --program-trans=* | --program-tran=* \
1263 | --progr-tra=* | --program-tr=* | --program-t=*)
1264 program_transform_name=$ac_optarg ;;
1266 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1267 ac_prev=pdfdir ;;
1268 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1269 pdfdir=$ac_optarg ;;
1271 -psdir | --psdir | --psdi | --psd | --ps)
1272 ac_prev=psdir ;;
1273 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1274 psdir=$ac_optarg ;;
1276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1277 | -silent | --silent | --silen | --sile | --sil)
1278 silent=yes ;;
1280 -runstatedir | --runstatedir | --runstatedi | --runstated \
1281 | --runstate | --runstat | --runsta | --runst | --runs \
1282 | --run | --ru | --r)
1283 ac_prev=runstatedir ;;
1284 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1285 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1286 | --run=* | --ru=* | --r=*)
1287 runstatedir=$ac_optarg ;;
1289 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1290 ac_prev=sbindir ;;
1291 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1292 | --sbi=* | --sb=*)
1293 sbindir=$ac_optarg ;;
1295 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1296 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1297 | --sharedst | --shareds | --shared | --share | --shar \
1298 | --sha | --sh)
1299 ac_prev=sharedstatedir ;;
1300 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1301 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1302 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1303 | --sha=* | --sh=*)
1304 sharedstatedir=$ac_optarg ;;
1306 -site | --site | --sit)
1307 ac_prev=site ;;
1308 -site=* | --site=* | --sit=*)
1309 site=$ac_optarg ;;
1311 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1312 ac_prev=srcdir ;;
1313 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1314 srcdir=$ac_optarg ;;
1316 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1317 | --syscon | --sysco | --sysc | --sys | --sy)
1318 ac_prev=sysconfdir ;;
1319 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1320 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1321 sysconfdir=$ac_optarg ;;
1323 -target | --target | --targe | --targ | --tar | --ta | --t)
1324 ac_prev=target_alias ;;
1325 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1326 target_alias=$ac_optarg ;;
1328 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1329 verbose=yes ;;
1331 -version | --version | --versio | --versi | --vers | -V)
1332 ac_init_version=: ;;
1334 -with-* | --with-*)
1335 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338 as_fn_error $? "invalid package name: $ac_useropt"
1339 ac_useropt_orig=$ac_useropt
1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1343 "with_$ac_useropt"
1344 "*) ;;
1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346 ac_unrecognized_sep=', ';;
1347 esac
1348 eval with_$ac_useropt=\$ac_optarg ;;
1350 -without-* | --without-*)
1351 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354 as_fn_error $? "invalid package name: $ac_useropt"
1355 ac_useropt_orig=$ac_useropt
1356 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357 case $ac_user_opts in
1359 "with_$ac_useropt"
1360 "*) ;;
1361 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1362 ac_unrecognized_sep=', ';;
1363 esac
1364 eval with_$ac_useropt=no ;;
1366 --x)
1367 # Obsolete; use --with-x.
1368 with_x=yes ;;
1370 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1371 | --x-incl | --x-inc | --x-in | --x-i)
1372 ac_prev=x_includes ;;
1373 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1374 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1375 x_includes=$ac_optarg ;;
1377 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1378 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1379 ac_prev=x_libraries ;;
1380 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1381 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1382 x_libraries=$ac_optarg ;;
1384 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1385 Try \`$0 --help' for more information"
1388 *=*)
1389 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1390 # Reject names that are not valid shell variable names.
1391 case $ac_envvar in #(
1392 '' | [0-9]* | *[!_$as_cr_alnum]* )
1393 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1394 esac
1395 eval $ac_envvar=\$ac_optarg
1396 export $ac_envvar ;;
1399 # FIXME: should be removed in autoconf 3.0.
1400 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1401 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1402 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1403 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1406 esac
1407 done
1409 if test -n "$ac_prev"; then
1410 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1411 as_fn_error $? "missing argument to $ac_option"
1414 if test -n "$ac_unrecognized_opts"; then
1415 case $enable_option_checking in
1416 no) ;;
1417 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1418 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1419 esac
1422 # Check all directory arguments for consistency.
1423 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1424 datadir sysconfdir sharedstatedir localstatedir includedir \
1425 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1426 libdir localedir mandir runstatedir
1428 eval ac_val=\$$ac_var
1429 # Remove trailing slashes.
1430 case $ac_val in
1431 */ )
1432 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1433 eval $ac_var=\$ac_val;;
1434 esac
1435 # Be sure to have absolute directory names.
1436 case $ac_val in
1437 [\\/$]* | ?:[\\/]* ) continue;;
1438 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1439 esac
1440 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1441 done
1443 # There might be people who depend on the old broken behavior: `$host'
1444 # used to hold the argument of --host etc.
1445 # FIXME: To remove some day.
1446 build=$build_alias
1447 host=$host_alias
1448 target=$target_alias
1450 # FIXME: To remove some day.
1451 if test "x$host_alias" != x; then
1452 if test "x$build_alias" = x; then
1453 cross_compiling=maybe
1454 elif test "x$build_alias" != "x$host_alias"; then
1455 cross_compiling=yes
1459 ac_tool_prefix=
1460 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1462 test "$silent" = yes && exec 6>/dev/null
1465 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1466 ac_ls_di=`ls -di .` &&
1467 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1468 as_fn_error $? "working directory cannot be determined"
1469 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1470 as_fn_error $? "pwd does not report name of working directory"
1473 # Find the source files, if location was not specified.
1474 if test -z "$srcdir"; then
1475 ac_srcdir_defaulted=yes
1476 # Try the directory containing this script, then the parent directory.
1477 ac_confdir=`$as_dirname -- "$as_myself" ||
1478 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1479 X"$as_myself" : 'X\(//\)[^/]' \| \
1480 X"$as_myself" : 'X\(//\)$' \| \
1481 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1482 $as_echo X"$as_myself" |
1483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1484 s//\1/
1487 /^X\(\/\/\)[^/].*/{
1488 s//\1/
1491 /^X\(\/\/\)$/{
1492 s//\1/
1495 /^X\(\/\).*/{
1496 s//\1/
1499 s/.*/./; q'`
1500 srcdir=$ac_confdir
1501 if test ! -r "$srcdir/$ac_unique_file"; then
1502 srcdir=..
1504 else
1505 ac_srcdir_defaulted=no
1507 if test ! -r "$srcdir/$ac_unique_file"; then
1508 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1509 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1511 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1512 ac_abs_confdir=`(
1513 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1514 pwd)`
1515 # When building in place, set srcdir=.
1516 if test "$ac_abs_confdir" = "$ac_pwd"; then
1517 srcdir=.
1519 # Remove unnecessary trailing slashes from srcdir.
1520 # Double slashes in file names in object file debugging info
1521 # mess up M-x gdb in Emacs.
1522 case $srcdir in
1523 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1524 esac
1525 for ac_var in $ac_precious_vars; do
1526 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1527 eval ac_env_${ac_var}_value=\$${ac_var}
1528 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1529 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1530 done
1533 # Report the --help message.
1535 if test "$ac_init_help" = "long"; then
1536 # Omit some internal or obsolete options to make the list less imposing.
1537 # This message is too long to be a string in the A/UX 3.1 sh.
1538 cat <<_ACEOF
1539 \`configure' configures this package to adapt to many kinds of systems.
1541 Usage: $0 [OPTION]... [VAR=VALUE]...
1543 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1544 VAR=VALUE. See below for descriptions of some of the useful variables.
1546 Defaults for the options are specified in brackets.
1548 Configuration:
1549 -h, --help display this help and exit
1550 --help=short display options specific to this package
1551 --help=recursive display the short help of all the included packages
1552 -V, --version display version information and exit
1553 -q, --quiet, --silent do not print \`checking ...' messages
1554 --cache-file=FILE cache test results in FILE [disabled]
1555 -C, --config-cache alias for \`--cache-file=config.cache'
1556 -n, --no-create do not create output files
1557 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1559 Installation directories:
1560 --prefix=PREFIX install architecture-independent files in PREFIX
1561 [$ac_default_prefix]
1562 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1563 [PREFIX]
1565 By default, \`make install' will install all the files in
1566 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1567 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1568 for instance \`--prefix=\$HOME'.
1570 For better control, use the options below.
1572 Fine tuning of the installation directories:
1573 --bindir=DIR user executables [EPREFIX/bin]
1574 --sbindir=DIR system admin executables [EPREFIX/sbin]
1575 --libexecdir=DIR program executables [EPREFIX/libexec]
1576 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1577 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1578 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1579 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1580 --libdir=DIR object code libraries [EPREFIX/lib]
1581 --includedir=DIR C header files [PREFIX/include]
1582 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1583 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1584 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1585 --infodir=DIR info documentation [DATAROOTDIR/info]
1586 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1587 --mandir=DIR man documentation [DATAROOTDIR/man]
1588 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1589 --htmldir=DIR html documentation [DOCDIR]
1590 --dvidir=DIR dvi documentation [DOCDIR]
1591 --pdfdir=DIR pdf documentation [DOCDIR]
1592 --psdir=DIR ps documentation [DOCDIR]
1593 _ACEOF
1595 cat <<\_ACEOF
1597 X features:
1598 --x-includes=DIR X include files are in DIR
1599 --x-libraries=DIR X library files are in DIR
1601 System types:
1602 --build=BUILD configure for building on BUILD [guessed]
1603 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1604 _ACEOF
1607 if test -n "$ac_init_help"; then
1609 cat <<\_ACEOF
1611 Optional Features:
1612 --disable-option-checking ignore unrecognized --enable/--with options
1613 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1614 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1615 --disable-libpng-config disable libpng-config test and configuration
1616 --enable-lto=yes|no Enable link time optimizations if the target
1617 compiler supports them (default=no)
1618 --enable-coverage=yes|no
1619 Enable coverage instrumentation if the target
1620 compiler supports it (default=no)
1621 --enable-build-type=TYPE
1622 Select the build type. Available types are:
1623 personal, nightly, snapshot, milestone, release. Do
1624 NOT use this option unless you know what you are
1625 doing! (default=personal)
1626 --enable-debug=list Enable different types of debug. Commas or
1627 whitespaces can be used to separate the items in the
1628 list. Available types of debug are: all, none,
1629 messages, stack, mungwall, modules, symbols. If no
1630 list is provided then "all" is assumed.
1631 (default=none)
1632 --enable-distcc Use distcc as a front end to the compiler
1633 (default=no).
1634 --enable-ccache Use ccache as a front end to the compiler
1635 (default=no).
1636 --enable-target-variant=NAME
1637 Enable a specific target variant (default=none)
1638 --enable-amigaos-compliance=VERSION
1639 Enforce userspace AmigaOS compliance to a specific
1640 KickStart version (default=none).
1641 --disable-crosstools Do not build cross-compiler toolchain
1642 --enable-objc Enable Objectve-C support (default=no)
1643 --enable-java Enable Java support (default=no)
1644 --enable-includes=dir Alternative system include directory
1645 --enable-palm-debug-hack
1646 Enable palm debug output hack in palm native
1647 (default=no)
1648 --enable-usb30-code Enable usb3.0 code (default=no)
1649 --enable-nesting-supervisor
1650 Enable nesting supervisor support in unix
1651 (default=no)
1652 --disable-mmu Disable MMU support (default=enabled)
1653 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1654 --enable-x11-shm use X11 shared memory (default=auto)
1655 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1656 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1657 --disable-sdltest Do not try to compile and run a test SDL program
1658 --enable-dbus Enable DBUS support via dbus.library (default=no)
1660 Optional Packages:
1661 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1662 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1663 --with-c-compiler=VERSION
1664 Use specified c compiler for building AROS
1665 --with-cxx-compiler=VERSION
1666 Use specified c++ compiler building AROS
1667 --with-toolchain=family Which toolchain family to crosscompile with
1668 (defaults to gnu)
1669 --with-kernel-gcc-version=VERSION
1670 Use gcc-VERSION for building bootstrap
1671 --with-optimization=FLAGS
1672 Use optimization flags FLAGS (e.g
1673 --with-optimization=-O2).
1674 --with-paranoia=(yes|no|FLAGS)
1675 Specific compiler warning FLAGS to enable for
1676 paranoia builds (default=-Wall -Werror)
1677 --with-xcode=PATH Specify XCode path for iOS targets
1678 (default=/Developer).
1679 --with-sdk-version=VERSION
1680 Use iOS SDK version VERSION (default=4.1).
1681 --with-sdk=PATH Specify Android SDK path
1682 (default=$default_android_sdk).
1683 --with-ndk=PATH Specify Android NDK path (default=none).
1684 --with-sdk-version=LEVEL
1685 Use Android SDK for API LEVEL (default=12).
1686 --with-ndk-version=LEVEL
1687 Use Android NDK for API LEVEL (default=9).
1688 --with-apk-version=(release|debug)
1689 Which version of AROSBootstrap.apk to compile.
1690 Release version needs key for signing, debug version
1691 will only run in emulator. (default=release)
1692 --with-kernel-toolchain-prefix=...
1693 Specify crosscompile toolchain prefix for kernel
1694 objects
1695 --with-elf-toolchain-prefix=...
1696 Specify crosscompile toolchain prefix to wrap for
1697 AROS objects
1698 --with-aros-toolchain=PREFIX
1699 Specify prebuilt AROS toolchain. Use yes for default
1700 name
1701 --with-aros-toolchain-install=DIR
1702 Where to install or search for cross tools binaries
1703 --with-binutils-version=VERSION
1704 Use binutils-VERSION for building AROS
1705 --with-gcc-version=VERSION
1706 Compile gcc-VERSION for AROS
1707 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1708 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1709 --with-float=<spec> Specify floating point ABI
1710 (default=$gcc_default_float_abi).
1711 --with-portssources=DIR Where to download sourcecode for external ports
1712 --with-bootloader=NAME Use a specific bootloader
1713 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1714 --with-theme=NAME Use a specific GUI Theme
1715 --with-resolution=XRESxYRESxDEPTH
1716 Default resolution of the initial WorkbenchScreen
1717 --with-serial-debug Enable serial debug output in native (default=no)
1718 --with-x use the X Window System
1719 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1720 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1722 Some influential environment variables:
1723 CXX C++ compiler command
1724 CXXFLAGS C++ compiler flags
1725 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1726 nonstandard directory <lib dir>
1727 LIBS libraries to pass to the linker, e.g. -l<library>
1728 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1729 you have headers in a nonstandard directory <include dir>
1730 CC C compiler command
1731 CFLAGS C compiler flags
1732 CPP C preprocessor
1733 PYTHON the Python interpreter
1734 XMKMF Path to xmkmf, Makefile generator for X Window System
1736 Use these variables to override the choices made by `configure' or to help
1737 it to find libraries and programs with nonstandard names/locations.
1739 Report bugs to the package provider.
1740 _ACEOF
1741 ac_status=$?
1744 if test "$ac_init_help" = "recursive"; then
1745 # If there are subdirs, report their specific --help.
1746 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1747 test -d "$ac_dir" ||
1748 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1749 continue
1750 ac_builddir=.
1752 case "$ac_dir" in
1753 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1755 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1756 # A ".." for each directory in $ac_dir_suffix.
1757 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1758 case $ac_top_builddir_sub in
1759 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1760 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1761 esac ;;
1762 esac
1763 ac_abs_top_builddir=$ac_pwd
1764 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1765 # for backward compatibility:
1766 ac_top_builddir=$ac_top_build_prefix
1768 case $srcdir in
1769 .) # We are building in place.
1770 ac_srcdir=.
1771 ac_top_srcdir=$ac_top_builddir_sub
1772 ac_abs_top_srcdir=$ac_pwd ;;
1773 [\\/]* | ?:[\\/]* ) # Absolute name.
1774 ac_srcdir=$srcdir$ac_dir_suffix;
1775 ac_top_srcdir=$srcdir
1776 ac_abs_top_srcdir=$srcdir ;;
1777 *) # Relative name.
1778 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1779 ac_top_srcdir=$ac_top_build_prefix$srcdir
1780 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1781 esac
1782 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1784 cd "$ac_dir" || { ac_status=$?; continue; }
1785 # Check for guested configure.
1786 if test -f "$ac_srcdir/configure.gnu"; then
1787 echo &&
1788 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1789 elif test -f "$ac_srcdir/configure"; then
1790 echo &&
1791 $SHELL "$ac_srcdir/configure" --help=recursive
1792 else
1793 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1794 fi || ac_status=$?
1795 cd "$ac_pwd" || { ac_status=$?; break; }
1796 done
1799 test -n "$ac_init_help" && exit $ac_status
1800 if $ac_init_version; then
1801 cat <<\_ACEOF
1802 configure
1803 generated by GNU Autoconf 2.69
1805 Copyright (C) 2012 Free Software Foundation, Inc.
1806 This configure script is free software; the Free Software Foundation
1807 gives unlimited permission to copy, distribute and modify it.
1808 _ACEOF
1809 exit
1812 ## ------------------------ ##
1813 ## Autoconf initialization. ##
1814 ## ------------------------ ##
1816 # ac_fn_cxx_try_compile LINENO
1817 # ----------------------------
1818 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_cxx_try_compile ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext
1823 if { { ac_try="$ac_compile"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_compile") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_cxx_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest.$ac_objext; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1847 ac_retval=1
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1852 } # ac_fn_cxx_try_compile
1854 # ac_fn_c_try_compile LINENO
1855 # --------------------------
1856 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_c_try_compile ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 rm -f conftest.$ac_objext
1861 if { { ac_try="$ac_compile"
1862 case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_compile") 2>conftest.err
1869 ac_status=$?
1870 if test -s conftest.err; then
1871 grep -v '^ *+' conftest.err >conftest.er1
1872 cat conftest.er1 >&5
1873 mv -f conftest.er1 conftest.err
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && {
1877 test -z "$ac_c_werror_flag" ||
1878 test ! -s conftest.err
1879 } && test -s conftest.$ac_objext; then :
1880 ac_retval=0
1881 else
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 ac_retval=1
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1890 } # ac_fn_c_try_compile
1892 # ac_fn_c_try_cpp LINENO
1893 # ----------------------
1894 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_c_try_cpp ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if { { ac_try="$ac_cpp conftest.$ac_ext"
1899 case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } > conftest.i && {
1914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 }; then :
1917 ac_retval=0
1918 else
1919 $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1922 ac_retval=1
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
1927 } # ac_fn_c_try_cpp
1929 # ac_fn_c_try_link LINENO
1930 # -----------------------
1931 # Try to link conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_c_try_link ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 rm -f conftest.$ac_objext conftest$ac_exeext
1936 if { { ac_try="$ac_link"
1937 case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_link") 2>conftest.err
1944 ac_status=$?
1945 if test -s conftest.err; then
1946 grep -v '^ *+' conftest.err >conftest.er1
1947 cat conftest.er1 >&5
1948 mv -f conftest.er1 conftest.err
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } && {
1952 test -z "$ac_c_werror_flag" ||
1953 test ! -s conftest.err
1954 } && test -s conftest$ac_exeext && {
1955 test "$cross_compiling" = yes ||
1956 test -x conftest$ac_exeext
1957 }; then :
1958 ac_retval=0
1959 else
1960 $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1963 ac_retval=1
1965 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1966 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1967 # interfere with the next link command; also delete a directory that is
1968 # left behind by Apple's compiler. We do this before executing the actions.
1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1973 } # ac_fn_c_try_link
1975 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1978 # the include files in INCLUDES and setting the cache variable VAR
1979 # accordingly.
1980 ac_fn_c_check_header_mongrel ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if eval \${$3+:} false; then :
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1989 eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 else
1993 # Is the header compilable?
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1995 $as_echo_n "checking $2 usability... " >&6; }
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1999 #include <$2>
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_header_compiler=yes
2003 else
2004 ac_header_compiler=no
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2008 $as_echo "$ac_header_compiler" >&6; }
2010 # Is the header present?
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2012 $as_echo_n "checking $2 presence... " >&6; }
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 #include <$2>
2016 _ACEOF
2017 if ac_fn_c_try_cpp "$LINENO"; then :
2018 ac_header_preproc=yes
2019 else
2020 ac_header_preproc=no
2022 rm -f conftest.err conftest.i conftest.$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2024 $as_echo "$ac_header_preproc" >&6; }
2026 # So? What about this header?
2027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2028 yes:no: )
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2030 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 no:yes:* )
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2036 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2038 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2040 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2042 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2044 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046 esac
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if eval \${$3+:} false; then :
2050 $as_echo_n "(cached) " >&6
2051 else
2052 eval "$3=\$ac_header_compiler"
2054 eval ac_res=\$$3
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 } # ac_fn_c_check_header_mongrel
2062 # ac_fn_c_try_run LINENO
2063 # ----------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2065 # that executables *can* be run.
2066 ac_fn_c_try_run ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 if { { ac_try="$ac_link"
2070 case "(($ac_try" in
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2073 esac
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076 (eval "$ac_link") 2>&5
2077 ac_status=$?
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2080 { { case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2083 esac
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_try") 2>&5
2087 ac_status=$?
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; }; }; then :
2090 ac_retval=0
2091 else
2092 $as_echo "$as_me: program exited with status $ac_status" >&5
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2096 ac_retval=$ac_status
2098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status $ac_retval
2102 } # ac_fn_c_try_run
2104 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2105 # -------------------------------------------------------
2106 # Tests whether HEADER exists and can be compiled using the include files in
2107 # INCLUDES, setting the cache variable VAR accordingly.
2108 ac_fn_c_check_header_compile ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if eval \${$3+:} false; then :
2114 $as_echo_n "(cached) " >&6
2115 else
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2119 #include <$2>
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 eval "$3=yes"
2123 else
2124 eval "$3=no"
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_header_compile
2135 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2136 # ----------------------------------------------------
2137 # Tries to find if the field MEMBER exists in type AGGR, after including
2138 # INCLUDES, setting cache variable VAR accordingly.
2139 ac_fn_c_check_member ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2143 $as_echo_n "checking for $2.$3... " >&6; }
2144 if eval \${$4+:} false; then :
2145 $as_echo_n "(cached) " >&6
2146 else
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2151 main ()
2153 static $2 ac_aggr;
2154 if (ac_aggr.$3)
2155 return 0;
2157 return 0;
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 eval "$4=yes"
2162 else
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2167 main ()
2169 static $2 ac_aggr;
2170 if (sizeof ac_aggr.$3)
2171 return 0;
2173 return 0;
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 eval "$4=yes"
2178 else
2179 eval "$4=no"
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 eval ac_res=\$$4
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190 } # ac_fn_c_check_member
2192 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2193 # ---------------------------------------------
2194 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2195 # accordingly.
2196 ac_fn_c_check_decl ()
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 as_decl_name=`echo $2|sed 's/ *(.*//'`
2200 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2202 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2203 if eval \${$3+:} false; then :
2204 $as_echo_n "(cached) " >&6
2205 else
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2210 main ()
2212 #ifndef $as_decl_name
2213 #ifdef __cplusplus
2214 (void) $as_decl_use;
2215 #else
2216 (void) $as_decl_name;
2217 #endif
2218 #endif
2221 return 0;
2223 _ACEOF
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225 eval "$3=yes"
2226 else
2227 eval "$3=no"
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 eval ac_res=\$$3
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233 $as_echo "$ac_res" >&6; }
2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236 } # ac_fn_c_check_decl
2238 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2239 # -------------------------------------------
2240 # Tests whether TYPE exists after having included INCLUDES, setting cache
2241 # variable VAR accordingly.
2242 ac_fn_c_check_type ()
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if eval \${$3+:} false; then :
2248 $as_echo_n "(cached) " >&6
2249 else
2250 eval "$3=no"
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2255 main ()
2257 if (sizeof ($2))
2258 return 0;
2260 return 0;
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2268 main ()
2270 if (sizeof (($2)))
2271 return 0;
2273 return 0;
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"; then :
2278 else
2279 eval "$3=yes"
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 eval ac_res=\$$3
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290 } # ac_fn_c_check_type
2292 # ac_fn_c_check_func LINENO FUNC VAR
2293 # ----------------------------------
2294 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2295 ac_fn_c_check_func ()
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2299 $as_echo_n "checking for $2... " >&6; }
2300 if eval \${$3+:} false; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2305 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2307 #define $2 innocuous_$2
2309 /* System header to define __stub macros and hopefully few prototypes,
2310 which can conflict with char $2 (); below.
2311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2312 <limits.h> exists even on freestanding compilers. */
2314 #ifdef __STDC__
2315 # include <limits.h>
2316 #else
2317 # include <assert.h>
2318 #endif
2320 #undef $2
2322 /* Override any GCC internal prototype to avoid an error.
2323 Use char because int might match the return type of a GCC
2324 builtin and then its argument prototype would still apply. */
2325 #ifdef __cplusplus
2326 extern "C"
2327 #endif
2328 char $2 ();
2329 /* The GNU C library defines this for functions which it implements
2330 to always fail with ENOSYS. Some functions are actually named
2331 something starting with __ and the normal name is an alias. */
2332 #if defined __stub_$2 || defined __stub___$2
2333 choke me
2334 #endif
2337 main ()
2339 return $2 ();
2341 return 0;
2343 _ACEOF
2344 if ac_fn_c_try_link "$LINENO"; then :
2345 eval "$3=yes"
2346 else
2347 eval "$3=no"
2349 rm -f core conftest.err conftest.$ac_objext \
2350 conftest$ac_exeext conftest.$ac_ext
2352 eval ac_res=\$$3
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354 $as_echo "$ac_res" >&6; }
2355 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2357 } # ac_fn_c_check_func
2358 cat >config.log <<_ACEOF
2359 This file contains any messages produced by compilers while
2360 running configure, to aid debugging if configure makes a mistake.
2362 It was created by $as_me, which was
2363 generated by GNU Autoconf 2.69. Invocation command line was
2365 $ $0 $@
2367 _ACEOF
2368 exec 5>>config.log
2370 cat <<_ASUNAME
2371 ## --------- ##
2372 ## Platform. ##
2373 ## --------- ##
2375 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2376 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2377 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2378 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2379 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2381 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2382 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2384 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2385 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2386 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2387 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2388 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2389 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2390 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2392 _ASUNAME
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
2399 $as_echo "PATH: $as_dir"
2400 done
2401 IFS=$as_save_IFS
2403 } >&5
2405 cat >&5 <<_ACEOF
2408 ## ----------- ##
2409 ## Core tests. ##
2410 ## ----------- ##
2412 _ACEOF
2415 # Keep a trace of the command line.
2416 # Strip out --no-create and --no-recursion so they do not pile up.
2417 # Strip out --silent because we don't want to record it for future runs.
2418 # Also quote any args containing shell meta-characters.
2419 # Make two passes to allow for proper duplicate-argument suppression.
2420 ac_configure_args=
2421 ac_configure_args0=
2422 ac_configure_args1=
2423 ac_must_keep_next=false
2424 for ac_pass in 1 2
2426 for ac_arg
2428 case $ac_arg in
2429 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2431 | -silent | --silent | --silen | --sile | --sil)
2432 continue ;;
2433 *\'*)
2434 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2435 esac
2436 case $ac_pass in
2437 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2439 as_fn_append ac_configure_args1 " '$ac_arg'"
2440 if test $ac_must_keep_next = true; then
2441 ac_must_keep_next=false # Got value, back to normal.
2442 else
2443 case $ac_arg in
2444 *=* | --config-cache | -C | -disable-* | --disable-* \
2445 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2446 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2447 | -with-* | --with-* | -without-* | --without-* | --x)
2448 case "$ac_configure_args0 " in
2449 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2450 esac
2452 -* ) ac_must_keep_next=true ;;
2453 esac
2455 as_fn_append ac_configure_args " '$ac_arg'"
2457 esac
2458 done
2459 done
2460 { ac_configure_args0=; unset ac_configure_args0;}
2461 { ac_configure_args1=; unset ac_configure_args1;}
2463 # When interrupted or exit'd, cleanup temporary files, and complete
2464 # config.log. We remove comments because anyway the quotes in there
2465 # would cause problems or look ugly.
2466 # WARNING: Use '\'' to represent an apostrophe within the trap.
2467 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2468 trap 'exit_status=$?
2469 # Save into config.log some information that might help in debugging.
2471 echo
2473 $as_echo "## ---------------- ##
2474 ## Cache variables. ##
2475 ## ---------------- ##"
2476 echo
2477 # The following way of writing the cache mishandles newlines in values,
2479 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2480 eval ac_val=\$$ac_var
2481 case $ac_val in #(
2482 *${as_nl}*)
2483 case $ac_var in #(
2484 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2485 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2486 esac
2487 case $ac_var in #(
2488 _ | IFS | as_nl) ;; #(
2489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2490 *) { eval $ac_var=; unset $ac_var;} ;;
2491 esac ;;
2492 esac
2493 done
2494 (set) 2>&1 |
2495 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2496 *${as_nl}ac_space=\ *)
2497 sed -n \
2498 "s/'\''/'\''\\\\'\'''\''/g;
2499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2500 ;; #(
2502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2504 esac |
2505 sort
2507 echo
2509 $as_echo "## ----------------- ##
2510 ## Output variables. ##
2511 ## ----------------- ##"
2512 echo
2513 for ac_var in $ac_subst_vars
2515 eval ac_val=\$$ac_var
2516 case $ac_val in
2517 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2518 esac
2519 $as_echo "$ac_var='\''$ac_val'\''"
2520 done | sort
2521 echo
2523 if test -n "$ac_subst_files"; then
2524 $as_echo "## ------------------- ##
2525 ## File substitutions. ##
2526 ## ------------------- ##"
2527 echo
2528 for ac_var in $ac_subst_files
2530 eval ac_val=\$$ac_var
2531 case $ac_val in
2532 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2533 esac
2534 $as_echo "$ac_var='\''$ac_val'\''"
2535 done | sort
2536 echo
2539 if test -s confdefs.h; then
2540 $as_echo "## ----------- ##
2541 ## confdefs.h. ##
2542 ## ----------- ##"
2543 echo
2544 cat confdefs.h
2545 echo
2547 test "$ac_signal" != 0 &&
2548 $as_echo "$as_me: caught signal $ac_signal"
2549 $as_echo "$as_me: exit $exit_status"
2550 } >&5
2551 rm -f core *.core core.conftest.* &&
2552 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2553 exit $exit_status
2555 for ac_signal in 1 2 13 15; do
2556 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2557 done
2558 ac_signal=0
2560 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2561 rm -f -r conftest* confdefs.h
2563 $as_echo "/* confdefs.h */" > confdefs.h
2565 # Predefined preprocessor variables.
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_NAME "$PACKAGE_NAME"
2569 _ACEOF
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2573 _ACEOF
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2577 _ACEOF
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_STRING "$PACKAGE_STRING"
2581 _ACEOF
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2585 _ACEOF
2587 cat >>confdefs.h <<_ACEOF
2588 #define PACKAGE_URL "$PACKAGE_URL"
2589 _ACEOF
2592 # Let the site file select an alternate cache file if it wants to.
2593 # Prefer an explicitly selected file to automatically selected ones.
2594 ac_site_file1=NONE
2595 ac_site_file2=NONE
2596 if test -n "$CONFIG_SITE"; then
2597 # We do not want a PATH search for config.site.
2598 case $CONFIG_SITE in #((
2599 -*) ac_site_file1=./$CONFIG_SITE;;
2600 */*) ac_site_file1=$CONFIG_SITE;;
2601 *) ac_site_file1=./$CONFIG_SITE;;
2602 esac
2603 elif test "x$prefix" != xNONE; then
2604 ac_site_file1=$prefix/share/config.site
2605 ac_site_file2=$prefix/etc/config.site
2606 else
2607 ac_site_file1=$ac_default_prefix/share/config.site
2608 ac_site_file2=$ac_default_prefix/etc/config.site
2610 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2612 test "x$ac_site_file" = xNONE && continue
2613 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2615 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2616 sed 's/^/| /' "$ac_site_file" >&5
2617 . "$ac_site_file" \
2618 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 as_fn_error $? "failed to load site script $ac_site_file
2621 See \`config.log' for more details" "$LINENO" 5; }
2623 done
2625 if test -r "$cache_file"; then
2626 # Some versions of bash will fail to source /dev/null (special files
2627 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2628 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2630 $as_echo "$as_me: loading cache $cache_file" >&6;}
2631 case $cache_file in
2632 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2633 *) . "./$cache_file";;
2634 esac
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2638 $as_echo "$as_me: creating cache $cache_file" >&6;}
2639 >$cache_file
2642 as_fn_append ac_header_list " stdlib.h"
2643 as_fn_append ac_header_list " unistd.h"
2644 as_fn_append ac_header_list " sys/param.h"
2645 # Check that the precious variables saved in the cache have kept the same
2646 # value.
2647 ac_cache_corrupted=false
2648 for ac_var in $ac_precious_vars; do
2649 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2650 eval ac_new_set=\$ac_env_${ac_var}_set
2651 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2652 eval ac_new_val=\$ac_env_${ac_var}_value
2653 case $ac_old_set,$ac_new_set in
2654 set,)
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2656 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2657 ac_cache_corrupted=: ;;
2658 ,set)
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2660 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2661 ac_cache_corrupted=: ;;
2662 ,);;
2664 if test "x$ac_old_val" != "x$ac_new_val"; then
2665 # differences in whitespace do not lead to failure.
2666 ac_old_val_w=`echo x $ac_old_val`
2667 ac_new_val_w=`echo x $ac_new_val`
2668 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2670 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2671 ac_cache_corrupted=:
2672 else
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2674 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2675 eval $ac_var=\$ac_old_val
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2678 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2680 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2681 fi;;
2682 esac
2683 # Pass precious variables to config.status.
2684 if test "$ac_new_set" = set; then
2685 case $ac_new_val in
2686 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2687 *) ac_arg=$ac_var=$ac_new_val ;;
2688 esac
2689 case " $ac_configure_args " in
2690 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2691 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2692 esac
2694 done
2695 if $ac_cache_corrupted; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2699 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2700 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2702 ## -------------------- ##
2703 ## Main body of script. ##
2704 ## -------------------- ##
2706 ac_ext=c
2707 ac_cpp='$CPP $CPPFLAGS'
2708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714 ac_aux_dir=
2715 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2716 if test -f "$ac_dir/install-sh"; then
2717 ac_aux_dir=$ac_dir
2718 ac_install_sh="$ac_aux_dir/install-sh -c"
2719 break
2720 elif test -f "$ac_dir/install.sh"; then
2721 ac_aux_dir=$ac_dir
2722 ac_install_sh="$ac_aux_dir/install.sh -c"
2723 break
2724 elif test -f "$ac_dir/shtool"; then
2725 ac_aux_dir=$ac_dir
2726 ac_install_sh="$ac_aux_dir/shtool install -c"
2727 break
2729 done
2730 if test -z "$ac_aux_dir"; then
2731 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2734 # These three variables are undocumented and unsupported,
2735 # and are intended to be withdrawn in a future Autoconf release.
2736 # They can cause serious problems if a builder's source tree is in a directory
2737 # whose full name contains unusual characters.
2738 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2739 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2740 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2744 # Check what host we are running on.
2745 # If a target is not suggested, we use this one.
2746 # Note that what we call a target, Autoconf calls a host.
2747 # Make sure we can run config.sub.
2748 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2749 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2752 $as_echo_n "checking build system type... " >&6; }
2753 if ${ac_cv_build+:} false; then :
2754 $as_echo_n "(cached) " >&6
2755 else
2756 ac_build_alias=$build_alias
2757 test "x$ac_build_alias" = x &&
2758 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2759 test "x$ac_build_alias" = x &&
2760 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2761 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2762 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2766 $as_echo "$ac_cv_build" >&6; }
2767 case $ac_cv_build in
2768 *-*-*) ;;
2769 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2770 esac
2771 build=$ac_cv_build
2772 ac_save_IFS=$IFS; IFS='-'
2773 set x $ac_cv_build
2774 shift
2775 build_cpu=$1
2776 build_vendor=$2
2777 shift; shift
2778 # Remember, the first character of IFS is used to create $*,
2779 # except with old shells:
2780 build_os=$*
2781 IFS=$ac_save_IFS
2782 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2786 $as_echo_n "checking host system type... " >&6; }
2787 if ${ac_cv_host+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test "x$host_alias" = x; then
2791 ac_cv_host=$ac_cv_build
2792 else
2793 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2794 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2799 $as_echo "$ac_cv_host" >&6; }
2800 case $ac_cv_host in
2801 *-*-*) ;;
2802 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2803 esac
2804 host=$ac_cv_host
2805 ac_save_IFS=$IFS; IFS='-'
2806 set x $ac_cv_host
2807 shift
2808 host_cpu=$1
2809 host_vendor=$2
2810 shift; shift
2811 # Remember, the first character of IFS is used to create $*,
2812 # except with old shells:
2813 host_os=$*
2814 IFS=$ac_save_IFS
2815 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2819 # Default versions for the gnu tools we build
2820 default_toolchain_family=`cat ${srcdir}/config/toolchain_def`
2821 default_gcc_version=`cat ${srcdir}/config/gcc_def`
2822 exp_gcc_version=`cat ${srcdir}/config/gcc_exp`
2823 default_binutils_version=`cat ${srcdir}/config/binutils_def`
2824 exp_binutils_version=`cat ${srcdir}/config/binutils_exp`
2825 default_grub2_version="2.02"
2826 target_grub2_version=$default_grub2_version
2828 # The AROS target is slightly different to the normal GNU style
2829 # format. We don't have the middle part, and we reverse the order
2830 # of the $(CPU) and $(OS) bits.
2832 # Don't strip the version of the target yet, it might be
2833 # useful on some systems.
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2836 $as_echo_n "checking for AROS style target... " >&6; }
2838 if test "$target" = "NONE" ; then
2839 target=$host_os-$host_cpu
2840 else
2841 if test "$target" = "" ; then
2842 target=$host_os-$host_cpu
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2846 $as_echo "$target" >&6; }
2848 if test "$host_os" = "mingw32" ; then
2849 PWDCMD="pwd -W"
2852 # Don't know where else to put this...
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2854 $as_echo_n "checking building AROS in... " >&6; }
2855 AROS_BUILDDIR=`${PWDCMD-pwd}`
2856 AROS_BUILDDIR_UNIX=${PWD}
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2858 $as_echo "$AROS_BUILDDIR" >&6; }
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2861 $as_echo_n "checking AROS source in... " >&6; }
2862 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2863 SRCDIR=${srcpwd}
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2865 $as_echo "$SRCDIR" >&6; }
2867 # Parse the target field into something useful.
2869 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2870 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2873 # Some debug output, to be removed again.
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2875 $as_echo_n "checking for target system (debug output)... " >&6; }
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2877 $as_echo "$target_os" >&6; }
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2879 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2881 $as_echo "$target_cpu" >&6; }
2883 aros_nominal_width=800
2884 aros_nominal_height=600
2885 aros_nominal_depth=4
2888 default_c_compilers="gcc clang cc"
2890 # Check whether --with-c-compiler was given.
2891 if test "${with_c_compiler+set}" = set; then :
2892 withval=$with_c_compiler; use_c_compiler="$withval"
2893 else
2894 use_c_compiler=""
2897 if test "$use_c_compiler" = ""; then
2898 host_c_compilers="$default_c_compilers"
2899 else
2900 host_c_compilers="$use_c_compiler"
2901 CC=$use_c_compiler
2904 default_cxx_compilers="g++ clang++ c++"
2906 # Check whether --with-cxx-compiler was given.
2907 if test "${with_cxx_compiler+set}" = set; then :
2908 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2909 else
2910 use_cxx_compiler=""
2913 if test "$use_cxx_compiler" = ""; then
2914 host_cxx_compilers="$default_cxx_compilers"
2915 else
2916 host_cxx_compilers="$use_cxx_compiler"
2917 CXX=$use_cxx_compiler
2921 # The first step is to find the host binaries.
2922 # Check for a compiler.
2923 # Due to a bug in autoconf check for c++ compiler first.
2924 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2925 ac_ext=cpp
2926 ac_cpp='$CXXCPP $CPPFLAGS'
2927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2930 if test -z "$CXX"; then
2931 if test -n "$CCC"; then
2932 CXX=$CCC
2933 else
2934 if test -n "$ac_tool_prefix"; then
2935 for ac_prog in ${host_cxx_compilers}
2937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_CXX+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test -n "$CXX"; then
2945 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2958 done
2959 done
2960 IFS=$as_save_IFS
2964 CXX=$ac_cv_prog_CXX
2965 if test -n "$CXX"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2967 $as_echo "$CXX" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2974 test -n "$CXX" && break
2975 done
2977 if test -z "$CXX"; then
2978 ac_ct_CXX=$CXX
2979 for ac_prog in ${host_cxx_compilers}
2981 # Extract the first word of "$ac_prog", so it can be a program name with args.
2982 set dummy $ac_prog; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 if test -n "$ac_ct_CXX"; then
2989 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_ac_ct_CXX="$ac_prog"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3002 done
3003 done
3004 IFS=$as_save_IFS
3008 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3009 if test -n "$ac_ct_CXX"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3011 $as_echo "$ac_ct_CXX" >&6; }
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3018 test -n "$ac_ct_CXX" && break
3019 done
3021 if test "x$ac_ct_CXX" = x; then
3022 CXX="g++"
3023 else
3024 case $cross_compiling:$ac_tool_warned in
3025 yes:)
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3029 esac
3030 CXX=$ac_ct_CXX
3036 # Provide some information about the compiler.
3037 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3038 set X $ac_compile
3039 ac_compiler=$2
3040 for ac_option in --version -v -V -qversion; do
3041 { { ac_try="$ac_compiler $ac_option >&5"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047 $as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3049 ac_status=$?
3050 if test -s conftest.err; then
3051 sed '10a\
3052 ... rest of stderr output deleted ...
3053 10q' conftest.err >conftest.er1
3054 cat conftest.er1 >&5
3056 rm -f conftest.er1 conftest.err
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }
3059 done
3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h. */
3065 main ()
3069 return 0;
3071 _ACEOF
3072 ac_clean_files_save=$ac_clean_files
3073 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3074 # Try to create an executable without -o first, disregard a.out.
3075 # It will help us diagnose broken compilers, and finding out an intuition
3076 # of exeext.
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3078 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3079 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3081 # The possible output files:
3082 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3084 ac_rmfiles=
3085 for ac_file in $ac_files
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3089 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3090 esac
3091 done
3092 rm -f $ac_rmfiles
3094 if { { ac_try="$ac_link_default"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100 $as_echo "$ac_try_echo"; } >&5
3101 (eval "$ac_link_default") 2>&5
3102 ac_status=$?
3103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104 test $ac_status = 0; }; then :
3105 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3106 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3107 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3108 # so that the user can short-circuit this test for compilers unknown to
3109 # Autoconf.
3110 for ac_file in $ac_files ''
3112 test -f "$ac_file" || continue
3113 case $ac_file in
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3116 [ab].out )
3117 # We found the default executable, but exeext='' is most
3118 # certainly right.
3119 break;;
3120 *.* )
3121 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3122 then :; else
3123 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3125 # We set ac_cv_exeext here because the later test for it is not
3126 # safe: cross compilers may not add the suffix if given an `-o'
3127 # argument, so we may need to know it at that point already.
3128 # Even if this section looks crufty: it has the advantage of
3129 # actually working.
3130 break;;
3132 break;;
3133 esac
3134 done
3135 test "$ac_cv_exeext" = no && ac_cv_exeext=
3137 else
3138 ac_file=''
3140 if test -z "$ac_file"; then :
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 $as_echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 as_fn_error 77 "C++ compiler cannot create executables
3149 See \`config.log' for more details" "$LINENO" 5; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3152 $as_echo "yes" >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3155 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3157 $as_echo "$ac_file" >&6; }
3158 ac_exeext=$ac_cv_exeext
3160 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3161 ac_clean_files=$ac_clean_files_save
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3163 $as_echo_n "checking for suffix of executables... " >&6; }
3164 if { { ac_try="$ac_link"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_link") 2>&5
3172 ac_status=$?
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }; then :
3175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3177 # work properly (i.e., refer to `conftest.exe'), while it won't with
3178 # `rm'.
3179 for ac_file in conftest.exe conftest conftest.*; do
3180 test -f "$ac_file" || continue
3181 case $ac_file in
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3183 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184 break;;
3185 * ) break;;
3186 esac
3187 done
3188 else
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3192 See \`config.log' for more details" "$LINENO" 5; }
3194 rm -f conftest conftest$ac_cv_exeext
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3196 $as_echo "$ac_cv_exeext" >&6; }
3198 rm -f conftest.$ac_ext
3199 EXEEXT=$ac_cv_exeext
3200 ac_exeext=$EXEEXT
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3203 #include <stdio.h>
3205 main ()
3207 FILE *f = fopen ("conftest.out", "w");
3208 return ferror (f) || fclose (f) != 0;
3211 return 0;
3213 _ACEOF
3214 ac_clean_files="$ac_clean_files conftest.out"
3215 # Check that the compiler produces executables we can run. If not, either
3216 # the compiler is broken, or we cross compile.
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3218 $as_echo_n "checking whether we are cross compiling... " >&6; }
3219 if test "$cross_compiling" != yes; then
3220 { { ac_try="$ac_link"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226 $as_echo "$ac_try_echo"; } >&5
3227 (eval "$ac_link") 2>&5
3228 ac_status=$?
3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }
3231 if { ac_try='./conftest$ac_cv_exeext'
3232 { { case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_try") 2>&5
3239 ac_status=$?
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }; }; then
3242 cross_compiling=no
3243 else
3244 if test "$cross_compiling" = maybe; then
3245 cross_compiling=yes
3246 else
3247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249 as_fn_error $? "cannot run C++ compiled programs.
3250 If you meant to cross compile, use \`--host'.
3251 See \`config.log' for more details" "$LINENO" 5; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3256 $as_echo "$cross_compiling" >&6; }
3258 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3259 ac_clean_files=$ac_clean_files_save
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3261 $as_echo_n "checking for suffix of object files... " >&6; }
3262 if ${ac_cv_objext+:} false; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3269 main ()
3273 return 0;
3275 _ACEOF
3276 rm -f conftest.o conftest.obj
3277 if { { ac_try="$ac_compile"
3278 case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_compile") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; then :
3288 for ac_file in conftest.o conftest.obj conftest.*; do
3289 test -f "$ac_file" || continue;
3290 case $ac_file in
3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3292 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3293 break;;
3294 esac
3295 done
3296 else
3297 $as_echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error $? "cannot compute suffix of object files: cannot compile
3303 See \`config.log' for more details" "$LINENO" 5; }
3305 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3308 $as_echo "$ac_cv_objext" >&6; }
3309 OBJEXT=$ac_cv_objext
3310 ac_objext=$OBJEXT
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3312 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3313 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3320 main ()
3322 #ifndef __GNUC__
3323 choke me
3324 #endif
3327 return 0;
3329 _ACEOF
3330 if ac_fn_cxx_try_compile "$LINENO"; then :
3331 ac_compiler_gnu=yes
3332 else
3333 ac_compiler_gnu=no
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3340 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3341 if test $ac_compiler_gnu = yes; then
3342 GXX=yes
3343 else
3344 GXX=
3346 ac_test_CXXFLAGS=${CXXFLAGS+set}
3347 ac_save_CXXFLAGS=$CXXFLAGS
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3349 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3350 if ${ac_cv_prog_cxx_g+:} false; then :
3351 $as_echo_n "(cached) " >&6
3352 else
3353 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3354 ac_cxx_werror_flag=yes
3355 ac_cv_prog_cxx_g=no
3356 CXXFLAGS="-g"
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3361 main ()
3365 return 0;
3367 _ACEOF
3368 if ac_fn_cxx_try_compile "$LINENO"; then :
3369 ac_cv_prog_cxx_g=yes
3370 else
3371 CXXFLAGS=""
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3376 main ()
3380 return 0;
3382 _ACEOF
3383 if ac_fn_cxx_try_compile "$LINENO"; then :
3385 else
3386 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3387 CXXFLAGS="-g"
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3392 main ()
3396 return 0;
3398 _ACEOF
3399 if ac_fn_cxx_try_compile "$LINENO"; then :
3400 ac_cv_prog_cxx_g=yes
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3410 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3411 if test "$ac_test_CXXFLAGS" = set; then
3412 CXXFLAGS=$ac_save_CXXFLAGS
3413 elif test $ac_cv_prog_cxx_g = yes; then
3414 if test "$GXX" = yes; then
3415 CXXFLAGS="-g -O2"
3416 else
3417 CXXFLAGS="-g"
3419 else
3420 if test "$GXX" = yes; then
3421 CXXFLAGS="-O2"
3422 else
3423 CXXFLAGS=
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 CXX_BASE=$CXX
3433 # Extract the first word of "$CXX", so it can be a program name with args.
3434 set dummy $CXX; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_path_CXX+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 case $CXX in
3441 [\\/]* | ?:[\\/]*)
3442 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3456 done
3457 done
3458 IFS=$as_save_IFS
3461 esac
3463 CXX=$ac_cv_path_CXX
3464 if test -n "$CXX"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3466 $as_echo "$CXX" >&6; }
3467 else
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3473 ac_ext=c
3474 ac_cpp='$CPP $CPPFLAGS'
3475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 if test -n "$ac_tool_prefix"; then
3479 for ac_prog in ${host_c_compilers}
3481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3482 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if ${ac_cv_prog_CC+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 if test -n "$CC"; then
3489 ac_cv_prog_CC="$CC" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3502 done
3503 done
3504 IFS=$as_save_IFS
3508 CC=$ac_cv_prog_CC
3509 if test -n "$CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511 $as_echo "$CC" >&6; }
3512 else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3518 test -n "$CC" && break
3519 done
3521 if test -z "$CC"; then
3522 ac_ct_CC=$CC
3523 for ac_prog in ${host_c_compilers}
3525 # Extract the first word of "$ac_prog", so it can be a program name with args.
3526 set dummy $ac_prog; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 if test -n "$ac_ct_CC"; then
3533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 ac_cv_prog_ac_ct_CC="$ac_prog"
3543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3546 done
3547 done
3548 IFS=$as_save_IFS
3552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3553 if test -n "$ac_ct_CC"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3555 $as_echo "$ac_ct_CC" >&6; }
3556 else
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3562 test -n "$ac_ct_CC" && break
3563 done
3565 if test "x$ac_ct_CC" = x; then
3566 CC=""
3567 else
3568 case $cross_compiling:$ac_tool_warned in
3569 yes:)
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3572 ac_tool_warned=yes ;;
3573 esac
3574 CC=$ac_ct_CC
3579 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error $? "no acceptable C compiler found in \$PATH
3582 See \`config.log' for more details" "$LINENO" 5; }
3584 # Provide some information about the compiler.
3585 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3586 set X $ac_compile
3587 ac_compiler=$2
3588 for ac_option in --version -v -V -qversion; do
3589 { { ac_try="$ac_compiler $ac_option >&5"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 $as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3597 ac_status=$?
3598 if test -s conftest.err; then
3599 sed '10a\
3600 ... rest of stderr output deleted ...
3601 10q' conftest.err >conftest.er1
3602 cat conftest.er1 >&5
3604 rm -f conftest.er1 conftest.err
3605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606 test $ac_status = 0; }
3607 done
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3610 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3611 if ${ac_cv_c_compiler_gnu+:} false; then :
3612 $as_echo_n "(cached) " >&6
3613 else
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3618 main ()
3620 #ifndef __GNUC__
3621 choke me
3622 #endif
3625 return 0;
3627 _ACEOF
3628 if ac_fn_c_try_compile "$LINENO"; then :
3629 ac_compiler_gnu=yes
3630 else
3631 ac_compiler_gnu=no
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3638 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3639 if test $ac_compiler_gnu = yes; then
3640 GCC=yes
3641 else
3642 GCC=
3644 ac_test_CFLAGS=${CFLAGS+set}
3645 ac_save_CFLAGS=$CFLAGS
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3647 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3648 if ${ac_cv_prog_cc_g+:} false; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 ac_save_c_werror_flag=$ac_c_werror_flag
3652 ac_c_werror_flag=yes
3653 ac_cv_prog_cc_g=no
3654 CFLAGS="-g"
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3659 main ()
3663 return 0;
3665 _ACEOF
3666 if ac_fn_c_try_compile "$LINENO"; then :
3667 ac_cv_prog_cc_g=yes
3668 else
3669 CFLAGS=""
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3674 main ()
3678 return 0;
3680 _ACEOF
3681 if ac_fn_c_try_compile "$LINENO"; then :
3683 else
3684 ac_c_werror_flag=$ac_save_c_werror_flag
3685 CFLAGS="-g"
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3690 main ()
3694 return 0;
3696 _ACEOF
3697 if ac_fn_c_try_compile "$LINENO"; then :
3698 ac_cv_prog_cc_g=yes
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 ac_c_werror_flag=$ac_save_c_werror_flag
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3708 $as_echo "$ac_cv_prog_cc_g" >&6; }
3709 if test "$ac_test_CFLAGS" = set; then
3710 CFLAGS=$ac_save_CFLAGS
3711 elif test $ac_cv_prog_cc_g = yes; then
3712 if test "$GCC" = yes; then
3713 CFLAGS="-g -O2"
3714 else
3715 CFLAGS="-g"
3717 else
3718 if test "$GCC" = yes; then
3719 CFLAGS="-O2"
3720 else
3721 CFLAGS=
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3725 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3726 if ${ac_cv_prog_cc_c89+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 ac_cv_prog_cc_c89=no
3730 ac_save_CC=$CC
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733 #include <stdarg.h>
3734 #include <stdio.h>
3735 struct stat;
3736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3737 struct buf { int x; };
3738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3739 static char *e (p, i)
3740 char **p;
3741 int i;
3743 return p[i];
3745 static char *f (char * (*g) (char **, int), char **p, ...)
3747 char *s;
3748 va_list v;
3749 va_start (v,p);
3750 s = g (p, va_arg (v,int));
3751 va_end (v);
3752 return s;
3755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3756 function prototypes and stuff, but not '\xHH' hex character constants.
3757 These don't provoke an error unfortunately, instead are silently treated
3758 as 'x'. The following induces an error, until -std is added to get
3759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3760 array size at least. It's necessary to write '\x00'==0 to get something
3761 that's true only with -std. */
3762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3764 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3765 inside strings and character constants. */
3766 #define FOO(x) 'x'
3767 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3769 int test (int i, double x);
3770 struct s1 {int (*f) (int a);};
3771 struct s2 {int (*f) (double a);};
3772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3773 int argc;
3774 char **argv;
3776 main ()
3778 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3780 return 0;
3782 _ACEOF
3783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3784 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3786 CC="$ac_save_CC $ac_arg"
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788 ac_cv_prog_cc_c89=$ac_arg
3790 rm -f core conftest.err conftest.$ac_objext
3791 test "x$ac_cv_prog_cc_c89" != "xno" && break
3792 done
3793 rm -f conftest.$ac_ext
3794 CC=$ac_save_CC
3797 # AC_CACHE_VAL
3798 case "x$ac_cv_prog_cc_c89" in
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3801 $as_echo "none needed" >&6; } ;;
3802 xno)
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3804 $as_echo "unsupported" >&6; } ;;
3806 CC="$CC $ac_cv_prog_cc_c89"
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3808 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3809 esac
3810 if test "x$ac_cv_prog_cc_c89" != xno; then :
3814 ac_ext=c
3815 ac_cpp='$CPP $CPPFLAGS'
3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820 CC_BASE=$CC
3821 # Extract the first word of "$CC", so it can be a program name with args.
3822 set dummy $CC; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if ${ac_cv_path_CC+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 case $CC in
3829 [\\/]* | ?:[\\/]*)
3830 ac_cv_path_CC="$CC" # Let the user override the test with a path.
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3844 done
3845 done
3846 IFS=$as_save_IFS
3849 esac
3851 CC=$ac_cv_path_CC
3852 if test -n "$CC"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3854 $as_echo "$CC" >&6; }
3855 else
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 $as_echo "no" >&6; }
3861 aros_host_def_cc="$CC"
3862 case $ac_cv_prog_cc_stdc in #(
3863 no) :
3864 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3865 *) :
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3867 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3868 if ${ac_cv_prog_cc_c99+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870 else
3871 ac_cv_prog_cc_c99=no
3872 ac_save_CC=$CC
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875 #include <stdarg.h>
3876 #include <stdbool.h>
3877 #include <stdlib.h>
3878 #include <wchar.h>
3879 #include <stdio.h>
3881 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3882 #define debug(...) fprintf (stderr, __VA_ARGS__)
3883 #define showlist(...) puts (#__VA_ARGS__)
3884 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3885 static void
3886 test_varargs_macros (void)
3888 int x = 1234;
3889 int y = 5678;
3890 debug ("Flag");
3891 debug ("X = %d\n", x);
3892 showlist (The first, second, and third items.);
3893 report (x>y, "x is %d but y is %d", x, y);
3896 // Check long long types.
3897 #define BIG64 18446744073709551615ull
3898 #define BIG32 4294967295ul
3899 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3900 #if !BIG_OK
3901 your preprocessor is broken;
3902 #endif
3903 #if BIG_OK
3904 #else
3905 your preprocessor is broken;
3906 #endif
3907 static long long int bignum = -9223372036854775807LL;
3908 static unsigned long long int ubignum = BIG64;
3910 struct incomplete_array
3912 int datasize;
3913 double data[];
3916 struct named_init {
3917 int number;
3918 const wchar_t *name;
3919 double average;
3922 typedef const char *ccp;
3924 static inline int
3925 test_restrict (ccp restrict text)
3927 // See if C++-style comments work.
3928 // Iterate through items via the restricted pointer.
3929 // Also check for declarations in for loops.
3930 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3931 continue;
3932 return 0;
3935 // Check varargs and va_copy.
3936 static void
3937 test_varargs (const char *format, ...)
3939 va_list args;
3940 va_start (args, format);
3941 va_list args_copy;
3942 va_copy (args_copy, args);
3944 const char *str;
3945 int number;
3946 float fnumber;
3948 while (*format)
3950 switch (*format++)
3952 case 's': // string
3953 str = va_arg (args_copy, const char *);
3954 break;
3955 case 'd': // int
3956 number = va_arg (args_copy, int);
3957 break;
3958 case 'f': // float
3959 fnumber = va_arg (args_copy, double);
3960 break;
3961 default:
3962 break;
3965 va_end (args_copy);
3966 va_end (args);
3970 main ()
3973 // Check bool.
3974 _Bool success = false;
3976 // Check restrict.
3977 if (test_restrict ("String literal") == 0)
3978 success = true;
3979 char *restrict newvar = "Another string";
3981 // Check varargs.
3982 test_varargs ("s, d' f .", "string", 65, 34.234);
3983 test_varargs_macros ();
3985 // Check flexible array members.
3986 struct incomplete_array *ia =
3987 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3988 ia->datasize = 10;
3989 for (int i = 0; i < ia->datasize; ++i)
3990 ia->data[i] = i * 1.234;
3992 // Check named initializers.
3993 struct named_init ni = {
3994 .number = 34,
3995 .name = L"Test wide string",
3996 .average = 543.34343,
3999 ni.number = 58;
4001 int dynamic_array[ni.number];
4002 dynamic_array[ni.number - 1] = 543;
4004 // work around unused variable warnings
4005 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4006 || dynamic_array[ni.number - 1] != 543);
4009 return 0;
4011 _ACEOF
4012 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4014 CC="$ac_save_CC $ac_arg"
4015 if ac_fn_c_try_compile "$LINENO"; then :
4016 ac_cv_prog_cc_c99=$ac_arg
4018 rm -f core conftest.err conftest.$ac_objext
4019 test "x$ac_cv_prog_cc_c99" != "xno" && break
4020 done
4021 rm -f conftest.$ac_ext
4022 CC=$ac_save_CC
4025 # AC_CACHE_VAL
4026 case "x$ac_cv_prog_cc_c99" in
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4029 $as_echo "none needed" >&6; } ;;
4030 xno)
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4032 $as_echo "unsupported" >&6; } ;;
4034 CC="$CC $ac_cv_prog_cc_c99"
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4036 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4037 esac
4038 if test "x$ac_cv_prog_cc_c99" != xno; then :
4039 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4040 else
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4042 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4043 if ${ac_cv_prog_cc_c89+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 ac_cv_prog_cc_c89=no
4047 ac_save_CC=$CC
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4050 #include <stdarg.h>
4051 #include <stdio.h>
4052 struct stat;
4053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4054 struct buf { int x; };
4055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4056 static char *e (p, i)
4057 char **p;
4058 int i;
4060 return p[i];
4062 static char *f (char * (*g) (char **, int), char **p, ...)
4064 char *s;
4065 va_list v;
4066 va_start (v,p);
4067 s = g (p, va_arg (v,int));
4068 va_end (v);
4069 return s;
4072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4073 function prototypes and stuff, but not '\xHH' hex character constants.
4074 These don't provoke an error unfortunately, instead are silently treated
4075 as 'x'. The following induces an error, until -std is added to get
4076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4077 array size at least. It's necessary to write '\x00'==0 to get something
4078 that's true only with -std. */
4079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4082 inside strings and character constants. */
4083 #define FOO(x) 'x'
4084 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4086 int test (int i, double x);
4087 struct s1 {int (*f) (int a);};
4088 struct s2 {int (*f) (double a);};
4089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4090 int argc;
4091 char **argv;
4093 main ()
4095 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4097 return 0;
4099 _ACEOF
4100 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4101 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4103 CC="$ac_save_CC $ac_arg"
4104 if ac_fn_c_try_compile "$LINENO"; then :
4105 ac_cv_prog_cc_c89=$ac_arg
4107 rm -f core conftest.err conftest.$ac_objext
4108 test "x$ac_cv_prog_cc_c89" != "xno" && break
4109 done
4110 rm -f conftest.$ac_ext
4111 CC=$ac_save_CC
4114 # AC_CACHE_VAL
4115 case "x$ac_cv_prog_cc_c89" in
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4118 $as_echo "none needed" >&6; } ;;
4119 xno)
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4121 $as_echo "unsupported" >&6; } ;;
4123 CC="$CC $ac_cv_prog_cc_c89"
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4125 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4126 esac
4127 if test "x$ac_cv_prog_cc_c89" != xno; then :
4128 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4129 else
4130 ac_cv_prog_cc_stdc=no
4135 esac
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4137 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4138 if ${ac_cv_prog_cc_stdc+:} false; then :
4139 $as_echo_n "(cached) " >&6
4142 case $ac_cv_prog_cc_stdc in #(
4143 no) :
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4145 $as_echo "unsupported" >&6; } ;; #(
4146 '') :
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4148 $as_echo "none needed" >&6; } ;; #(
4149 *) :
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4151 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4152 esac
4154 ac_ext=c
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4160 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4161 # On Suns, sometimes $CPP names a directory.
4162 if test -n "$CPP" && test -d "$CPP"; then
4163 CPP=
4165 if test -z "$CPP"; then
4166 if ${ac_cv_prog_CPP+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 # Double quotes because CPP needs to be expanded
4170 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4172 ac_preproc_ok=false
4173 for ac_c_preproc_warn_flag in '' yes
4175 # Use a header file that comes with gcc, so configuring glibc
4176 # with a fresh cross-compiler works.
4177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4178 # <limits.h> exists even on freestanding compilers.
4179 # On the NeXT, cc -E runs the code through the compiler's parser,
4180 # not just through cpp. "Syntax error" is here to catch this case.
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4183 #ifdef __STDC__
4184 # include <limits.h>
4185 #else
4186 # include <assert.h>
4187 #endif
4188 Syntax error
4189 _ACEOF
4190 if ac_fn_c_try_cpp "$LINENO"; then :
4192 else
4193 # Broken: fails on valid input.
4194 continue
4196 rm -f conftest.err conftest.i conftest.$ac_ext
4198 # OK, works on sane cases. Now check whether nonexistent headers
4199 # can be detected and how.
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 #include <ac_nonexistent.h>
4203 _ACEOF
4204 if ac_fn_c_try_cpp "$LINENO"; then :
4205 # Broken: success on invalid input.
4206 continue
4207 else
4208 # Passes both tests.
4209 ac_preproc_ok=:
4210 break
4212 rm -f conftest.err conftest.i conftest.$ac_ext
4214 done
4215 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4216 rm -f conftest.i conftest.err conftest.$ac_ext
4217 if $ac_preproc_ok; then :
4218 break
4221 done
4222 ac_cv_prog_CPP=$CPP
4225 CPP=$ac_cv_prog_CPP
4226 else
4227 ac_cv_prog_CPP=$CPP
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4230 $as_echo "$CPP" >&6; }
4231 ac_preproc_ok=false
4232 for ac_c_preproc_warn_flag in '' yes
4234 # Use a header file that comes with gcc, so configuring glibc
4235 # with a fresh cross-compiler works.
4236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4237 # <limits.h> exists even on freestanding compilers.
4238 # On the NeXT, cc -E runs the code through the compiler's parser,
4239 # not just through cpp. "Syntax error" is here to catch this case.
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242 #ifdef __STDC__
4243 # include <limits.h>
4244 #else
4245 # include <assert.h>
4246 #endif
4247 Syntax error
4248 _ACEOF
4249 if ac_fn_c_try_cpp "$LINENO"; then :
4251 else
4252 # Broken: fails on valid input.
4253 continue
4255 rm -f conftest.err conftest.i conftest.$ac_ext
4257 # OK, works on sane cases. Now check whether nonexistent headers
4258 # can be detected and how.
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261 #include <ac_nonexistent.h>
4262 _ACEOF
4263 if ac_fn_c_try_cpp "$LINENO"; then :
4264 # Broken: success on invalid input.
4265 continue
4266 else
4267 # Passes both tests.
4268 ac_preproc_ok=:
4269 break
4271 rm -f conftest.err conftest.i conftest.$ac_ext
4273 done
4274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4275 rm -f conftest.i conftest.err conftest.$ac_ext
4276 if $ac_preproc_ok; then :
4278 else
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4282 See \`config.log' for more details" "$LINENO" 5; }
4285 ac_ext=c
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292 # detect the compiler version
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which toolchain family ${CC} belongs to" >&5
4294 $as_echo_n "checking which toolchain family ${CC} belongs to... " >&6; }
4295 HOST_COMPILER_VERSION=`"$CC" --version 2>/dev/null`
4296 if test x"$HOST_COMPILER_VERSION" = "x"; then
4297 HOST_COMPILER_VERSION=`"$CC" --qversion 2>/dev/null`
4299 if test x"$HOST_COMPILER_VERSION" = "x"; then
4300 HOST_COMPILER_VERSION=`"$CC" -V 2>/dev/null`
4303 IS_SUN_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'Sun C\+\+'`
4304 if test "$IS_SUN_COMPILER" -ne "0"; then
4305 HOST_TOOLCHAIN_PREFIX=
4306 HOST_TOOLCHAIN_SUFFIX=
4307 HOST_TOOLCHAIN_FAMILY=sun
4309 IS_LLVM_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'LLVM|clang'`
4310 if test "$IS_LLVM_COMPILER" -ne "0"; then
4311 if test "$CC_BASE" != "gcc"; then
4312 HOST_TOOLCHAIN_PREFIX=llvm-
4313 HOST_TOOLCHAIN_SUFFIX="`echo $CC_BASE | sed -e \"s|clang||g\"`"
4314 HOST_TOOLCHAIN_FAMILY=llvm
4315 else
4316 IS_GNU_COMPILER=1
4319 if test "x$IS_GNU_COMPILER" = "x"; then
4320 IS_GNU_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'gcc'`
4322 if test "$IS_GNU_COMPILER" -ne "0"; then
4323 HOST_TOOLCHAIN_PREFIX=
4324 HOST_TOOLCHAIN_SUFFIX=
4325 HOST_TOOLCHAIN_FAMILY=gnu
4327 if test x"$HOST_TOOLCHAIN_FAMILY" = "x"; then
4328 HOST_TOOLCHAIN_FAMILY=unknown
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_TOOLCHAIN_FAMILY" >&5
4331 $as_echo "$HOST_TOOLCHAIN_FAMILY" >&6; }
4333 # Check for a compatible awk
4334 for ac_prog in gawk nawk
4336 # Extract the first word of "$ac_prog", so it can be a program name with args.
4337 set dummy $ac_prog; ac_word=$2
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339 $as_echo_n "checking for $ac_word... " >&6; }
4340 if ${ac_cv_prog_AWK+:} false; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 if test -n "$AWK"; then
4344 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4345 else
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353 ac_cv_prog_AWK="$ac_prog"
4354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4357 done
4358 done
4359 IFS=$as_save_IFS
4363 AWK=$ac_cv_prog_AWK
4364 if test -n "$AWK"; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4366 $as_echo "$AWK" >&6; }
4367 else
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369 $as_echo "no" >&6; }
4373 test -n "$AWK" && break
4374 done
4376 req_avail=yes
4377 if test "$AWK" = ""; then
4378 req_avail=no
4380 if test "$AWK" = "no"; then
4381 req_avail=no
4383 if test "$req_avail" = "no"; then
4384 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4386 # Extract the first word of "mmake", so it can be a program name with args.
4387 set dummy mmake; ac_word=$2
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if ${ac_cv_prog_MMAKE+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393 if test -n "$MMAKE"; then
4394 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_MMAKE="mmake "
4404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 break 2
4407 done
4408 done
4409 IFS=$as_save_IFS
4413 MMAKE=$ac_cv_prog_MMAKE
4414 if test -n "$MMAKE"; then
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4416 $as_echo "$MMAKE" >&6; }
4417 else
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 $as_echo "no" >&6; }
4424 # Perform some default variable assignments. Note all of these will be
4425 # Regenerated from the script, so there is no need to cache them.
4427 aros_build_host=$host
4428 aros_host_cpp="$CPP"
4429 aros_host_cc="$CC"
4430 aros_host_cxx="$CXX"
4431 base_ld_name=${HOST_TOOLCHAIN_PREFIX}ld${HOST_TOOLCHAIN_SUFFIX}
4432 if test "$HOST_TOOLCHAIN_FAMILY" = "llvm"; then
4433 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}
4435 # Extract the first word of "$ac_prog", so it can be a program name with args.
4436 set dummy $ac_prog; ac_word=$2
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438 $as_echo_n "checking for $ac_word... " >&6; }
4439 if ${ac_cv_prog_base_lld_name+:} false; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if test -n "$base_lld_name"; then
4443 ac_cv_prog_base_lld_name="$base_lld_name" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_base_lld_name="$ac_prog"
4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4456 done
4457 done
4458 IFS=$as_save_IFS
4462 base_lld_name=$ac_cv_prog_base_lld_name
4463 if test -n "$base_lld_name"; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $base_lld_name" >&5
4465 $as_echo "$base_lld_name" >&6; }
4466 else
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 $as_echo "no" >&6; }
4472 test -n "$base_lld_name" && break
4473 done
4475 base_ld_name=$base_lld_name
4478 if test "$base_ld_name" = ""; then
4479 ac_tool_ld=ld
4480 else
4481 ac_tool_ld=$base_ld_name
4483 if test "$GCC" = "yes"; then
4484 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
4485 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4486 set dummy `basename $aros_gcc_ld`; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if ${ac_cv_path_aros_host_ld+:} false; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 case $aros_host_ld in
4493 [\\/]* | ?:[\\/]*)
4494 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in `dirname $aros_gcc_ld`
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4504 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4508 done
4509 done
4510 IFS=$as_save_IFS
4513 esac
4515 aros_host_ld=$ac_cv_path_aros_host_ld
4516 if test -n "$aros_host_ld"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4518 $as_echo "$aros_host_ld" >&6; }
4519 else
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4526 if test "$aros_host_ld" = ""; then
4527 for ac_prog in $ac_tool_ld
4529 # Extract the first word of "$ac_prog", so it can be a program name with args.
4530 set dummy $ac_prog; ac_word=$2
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 $as_echo_n "checking for $ac_word... " >&6; }
4533 if ${ac_cv_path_aros_host_ld+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 case $aros_host_ld in
4537 [\\/]* | ?:[\\/]*)
4538 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4548 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4552 done
4553 done
4554 IFS=$as_save_IFS
4557 esac
4559 aros_host_ld=$ac_cv_path_aros_host_ld
4560 if test -n "$aros_host_ld"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4562 $as_echo "$aros_host_ld" >&6; }
4563 else
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4569 test -n "$aros_host_ld" && break
4570 done
4574 req_avail=yes
4575 if test "$aros_host_ld" = ""; then
4576 req_avail=no
4578 if test "$aros_host_ld" = "no"; then
4579 req_avail=no
4581 if test "$req_avail" = "no"; then
4582 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4584 aros_host_make="make"
4585 aros_host_cflags="$CFLAGS"
4586 aros_host_cxxflags="$CXXFLAGS"
4587 aros_host_cppflags="$CPPFLAGS"
4588 aros_host_ldflags="$LDFLAGS"
4589 aros_host_debug="-g -O0"
4590 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4591 aros_host_mkargs="--no-print-directory"
4592 aros_host_exe_suffix="$EXEEXT"
4593 aros_host_lib_suffix=""
4595 # Ignore all compliance, AROS ROMs = 0
4596 # KickStart v1.0 = 30
4597 # KickStart v1.3 = 34
4598 # KickStart v2.0 = 37
4599 # KickStart v3.0 = 39
4600 # KickStart v3.1 = 40
4601 # AmigaOS v3.5 = 44
4602 aros_amigaos_compliance=0
4604 for ac_prog in aclocal aclocal19 aclocal-1.9
4606 # Extract the first word of "$ac_prog", so it can be a program name with args.
4607 set dummy $ac_prog; ac_word=$2
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609 $as_echo_n "checking for $ac_word... " >&6; }
4610 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 if test -n "$aros_host_aclocal"; then
4614 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623 ac_cv_prog_aros_host_aclocal="$ac_prog"
4624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4627 done
4628 done
4629 IFS=$as_save_IFS
4633 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4634 if test -n "$aros_host_aclocal"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4636 $as_echo "$aros_host_aclocal" >&6; }
4637 else
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4643 test -n "$aros_host_aclocal" && break
4644 done
4646 for ac_prog in autoconf autoconf259 autoconf253
4648 # Extract the first word of "$ac_prog", so it can be a program name with args.
4649 set dummy $ac_prog; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if test -n "$aros_host_autoconf"; then
4656 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_prog_aros_host_autoconf="$ac_prog"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4669 done
4670 done
4671 IFS=$as_save_IFS
4675 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4676 if test -n "$aros_host_autoconf"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4678 $as_echo "$aros_host_autoconf" >&6; }
4679 else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4685 test -n "$aros_host_autoconf" && break
4686 done
4688 for ac_prog in autoheader autoheader259 autoheader253
4690 # Extract the first word of "$ac_prog", so it can be a program name with args.
4691 set dummy $ac_prog; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 if test -n "$aros_host_autoheader"; then
4698 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_prog_aros_host_autoheader="$ac_prog"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4711 done
4712 done
4713 IFS=$as_save_IFS
4717 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4718 if test -n "$aros_host_autoheader"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4720 $as_echo "$aros_host_autoheader" >&6; }
4721 else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4727 test -n "$aros_host_autoheader" && break
4728 done
4730 for ac_prog in automake automake19 automake-1.9
4732 # Extract the first word of "$ac_prog", so it can be a program name with args.
4733 set dummy $ac_prog; ac_word=$2
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735 $as_echo_n "checking for $ac_word... " >&6; }
4736 if ${ac_cv_prog_aros_host_automake+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 if test -n "$aros_host_automake"; then
4740 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4741 else
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4749 ac_cv_prog_aros_host_automake="$ac_prog"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4753 done
4754 done
4755 IFS=$as_save_IFS
4759 aros_host_automake=$ac_cv_prog_aros_host_automake
4760 if test -n "$aros_host_automake"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4762 $as_echo "$aros_host_automake" >&6; }
4763 else
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4769 test -n "$aros_host_automake" && break
4770 done
4773 req_avail=yes
4774 if test "$aros_host_aclocal" = ""; then
4775 req_avail=no
4777 if test "$aros_host_aclocal" = "no"; then
4778 req_avail=no
4780 if test "$req_avail" = "no"; then
4781 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4783 req_avail=yes
4784 if test "$aros_host_automake" = ""; then
4785 req_avail=no
4787 if test "$aros_host_automake" = "no"; then
4788 req_avail=no
4790 if test "$req_avail" = "no"; then
4791 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4794 case "$aros_host_cc" in
4795 *clang*)
4796 aros_host_cc_pipe=""
4798 *gcc*)
4799 aros_host_cc_pipe="-pipe"
4801 icc)
4802 aros_host_cc_pipe=""
4805 aros_host_cc_pipe=""
4807 esac
4809 aros_kernel_cc_includes=""
4810 aros_target_cc_includes=""
4811 host_cc_elf=yes
4813 # ----------------------------------------------------------------------------------------
4814 # Host-specific defaults
4816 # This is the main host configuration section. It is where the host
4817 # can change the values of any variables it needs to change. We do
4818 # not look at anything that compiles to the target yet, we'll get
4819 # to that later.
4821 case "$host_os" in
4822 aros*)
4823 aros_host_arch="aros"
4824 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4825 case "$host_cpu" in
4826 *i?86*)
4827 aros_host_cpu="i386"
4829 *x86_64*)
4830 aros_host_cpu="x86_64"
4832 *powerpc*)
4833 aros_host_cpu="ppc"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4837 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4838 aros_host_cpu="$host_cpu"
4840 esac
4843 linux*)
4844 aros_host_arch="linux"
4845 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4846 android_build_os="linux-x86"
4847 android_tool="android"
4848 default_android_sdk="/opt/android-sdk-linux_x86"
4849 case "$host_cpu" in
4850 *i?86*)
4851 aros_host_cpu="i386"
4853 *x86_64*)
4854 aros_host_cpu="x86_64"
4856 *m68k*)
4857 aros_host_cpu="m68k"
4859 *powerpc*)
4860 aros_host_cpu="ppc"
4862 *arm*)
4863 aros_host_cpu="arm"
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4867 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4868 aros_host_cpu="$host_cpu"
4870 esac
4873 freebsd*)
4874 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4875 aros_host_make="gmake"
4876 aros_host_arch="freebsd"
4877 aros_host_cpu="i386"
4879 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4881 case $host_os in
4882 freebsd[234]*)
4883 aros_object_format="elf_i386"
4887 aros_object_format="elf_i386_fbsd"
4889 esac
4893 darwin*)
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4895 $as_echo_n "checking for macOS SDK files... " >&6; }
4896 LOC=$( xcode-select -p )
4897 if test $? != 0; then :
4898 as_fn_error $? "XCode incorrectly configured!
4899 please run 'xcode-select --install' before
4900 re-running configure" "$LINENO" 5
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4903 $as_echo "$LOC" >&6; }
4904 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4905 aros_host_arch="darwin"
4906 host_cc_elf=no
4907 if [ -z ${SED+x} ]; then SED="gsed"; fi
4908 android_build_os="darwin-x86"
4909 android_tool="android"
4910 default_android_sdk="/android-sdk-mac_x86"
4911 case "$host_cpu" in
4912 *i?86*)
4913 aros_host_cpu="i386"
4915 *x86_64*)
4916 aros_host_cpu="x86_64"
4918 *powerpc*)
4919 aros_host_cpu="ppc"
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4923 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4924 aros_host_cpu="$host_cpu"
4926 esac
4928 aros_host_ldflags="$aros_host_ldflags -liconv"
4932 dragonfly*)
4933 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4934 aros_host_make="gmake"
4935 aros_host_arch="dragonfly"
4936 case $host_cpu in
4937 *i?86*)
4938 aros_host_cpu="i386"
4940 *amd64*)
4941 aros_host_cpu="x86_64"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4945 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4946 aros_host_cpu="$host_cpu"
4948 esac
4951 netbsd*)
4952 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4953 aros_host_make="gmake"
4954 aros_host_arch="netbsd"
4955 case "$host_cpu" in
4956 *i?86*)
4957 aros_host_cpu="i386"
4959 *m68k*)
4960 aros_host_cpu="m68k"
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4964 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4965 aros_host_cpu="$host_cpu"
4967 esac
4968 aros_host_lib_suffix=".0.0"
4971 openbsd*)
4972 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4973 aros_host_make="gmake"
4974 aros_host_arch="openbsd"
4975 case "$host_cpu" in
4976 *i?86*)
4977 aros_host_cpu="i386"
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4981 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4982 aros_host_cpu="$host_cpu"
4984 esac
4987 solaris*)
4988 aros_host_arch="solaris"
4989 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4990 case "$host_cpu" in
4991 *i?86*)
4992 aros_host_cpu="i386"
4994 *sparc*)
4995 aros_host_cpu="sparc"
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4999 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5000 aros_host_cpu="$host_cpu"
5002 esac
5005 morphos*)
5006 aros_host_arch="morphos"
5007 aros_host_cpu="ppc"
5008 host_cc_elf=no
5011 amiga*)
5012 aros_host_arch="amiga"
5013 host_cc_elf=no
5014 SORT="/gg/bin/sort"
5015 TEST="/gg/bin/test"
5016 UNIQ="/gg/bin/uniq"
5017 FOR="for"
5018 TOUCH="/gg/bin/touch"
5019 case "$host_cpu" in
5020 *m68k*)
5021 aros_host_cpu="m68k"
5023 *powerpc*)
5024 aros_host_cpu="ppc"
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5028 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5029 aros_host_cpu="$host_cpu"
5031 esac
5034 cygwin*)
5035 aros_host_arch="cygwin"
5036 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5037 host_cc_elf=no
5038 android_build_os="windows"
5039 android_tool="android.bat"
5040 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
5042 case "$host_cpu" in
5043 *i?86*)
5044 aros_host_cpu="i386"
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5048 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5049 aros_host_cpu="$host_cpu"
5051 esac
5054 mingw32*)
5055 aros_host_arch="mingw32"
5056 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5057 host_cc_elf=no
5058 android_build_os="windows"
5059 android_tool="android.bat"
5060 default_android_sdk="/c/android-sdk-windows-1.6_r1"
5062 libpng_libextra="-lws2_32"
5064 case "$host_cpu" in
5065 *i?86*)
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
5068 $as_echo_n "checking for Windows native gcc target... " >&6; }
5069 host_cpu=`gcc -dumpmachine`
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
5071 $as_echo "$host_cpu" >&6; }
5074 esac
5076 case "$host_cpu" in
5077 *i?86*)
5078 aros_host_cpu="i386"
5081 mingw32*)
5082 aros_host_cpu="i386"
5085 *x86_64*)
5086 aros_host_cpu="x86_64"
5087 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5092 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5093 aros_host_cpu="$host_cpu"
5095 esac
5098 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
5100 esac
5102 base_ar_name=${HOST_TOOLCHAIN_PREFIX}ar${HOST_TOOLCHAIN_SUFFIX}
5103 # Extract the first word of "$base_ar_name", so it can be a program name with args.
5104 set dummy $base_ar_name; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_aros_host_cmd_ar+:} false; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 if test -n "$aros_host_cmd_ar"; then
5111 ac_cv_prog_aros_host_cmd_ar="$aros_host_cmd_ar" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_aros_host_cmd_ar="$base_ar_name cr"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5124 done
5125 done
5126 IFS=$as_save_IFS
5130 aros_host_cmd_ar=$ac_cv_prog_aros_host_cmd_ar
5131 if test -n "$aros_host_cmd_ar"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_cmd_ar" >&5
5133 $as_echo "$aros_host_cmd_ar" >&6; }
5134 else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5140 # Extract the first word of "$aros_host_cmd_ar", so it can be a program name with args.
5141 set dummy $aros_host_cmd_ar; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_path_aros_host_full_ar+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 case $aros_host_full_ar in
5148 [\\/]* | ?:[\\/]*)
5149 ac_cv_path_aros_host_full_ar="$aros_host_full_ar" # Let the user override the test with a path.
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_path_aros_host_full_ar="$as_dir/$ac_word$ac_exec_ext"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5163 done
5164 done
5165 IFS=$as_save_IFS
5167 test -z "$ac_cv_path_aros_host_full_ar" && ac_cv_path_aros_host_full_ar="$aros_host_cmd_ar "
5169 esac
5171 aros_host_full_ar=$ac_cv_path_aros_host_full_ar
5172 if test -n "$aros_host_full_ar"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_full_ar" >&5
5174 $as_echo "$aros_host_full_ar" >&6; }
5175 else
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5181 aros_host_ar=`echo $aros_host_cmd_ar | sed -e "s|$base_ar_name|$aros_host_full_ar|g"`
5182 req_avail=yes
5183 if test "$aros_host_ar" = ""; then
5184 req_avail=no
5186 if test "$aros_host_ar" = "no"; then
5187 req_avail=no
5189 if test "$req_avail" = "no"; then
5190 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5192 base_ranlib_name=${HOST_TOOLCHAIN_PREFIX}ranlib${HOST_TOOLCHAIN_SUFFIX}
5193 # Extract the first word of "$base_ranlib_name", so it can be a program name with args.
5194 set dummy $base_ranlib_name; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_path_aros_host_ranlib+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 case $aros_host_ranlib in
5201 [\\/]* | ?:[\\/]*)
5202 ac_cv_path_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test with a path.
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_path_aros_host_ranlib="$as_dir/$ac_word$ac_exec_ext"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5216 done
5217 done
5218 IFS=$as_save_IFS
5220 test -z "$ac_cv_path_aros_host_ranlib" && ac_cv_path_aros_host_ranlib="$base_ranlib_name "
5222 esac
5224 aros_host_ranlib=$ac_cv_path_aros_host_ranlib
5225 if test -n "$aros_host_ranlib"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5227 $as_echo "$aros_host_ranlib" >&6; }
5228 else
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5234 req_avail=yes
5235 if test "$aros_host_ranlib" = ""; then
5236 req_avail=no
5238 if test "$aros_host_ranlib" = "no"; then
5239 req_avail=no
5241 if test "$req_avail" = "no"; then
5242 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5244 # Extract the first word of "strip", so it can be a program name with args.
5245 set dummy strip; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_prog_aros_host_strip+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 if test -n "$aros_host_strip"; then
5252 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_prog_aros_host_strip="strip "
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5265 done
5266 done
5267 IFS=$as_save_IFS
5271 aros_host_strip=$ac_cv_prog_aros_host_strip
5272 if test -n "$aros_host_strip"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5274 $as_echo "$aros_host_strip" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5281 req_avail=yes
5282 if test "$aros_host_strip" = ""; then
5283 req_avail=no
5285 if test "$aros_host_strip" = "no"; then
5286 req_avail=no
5288 if test "$req_avail" = "no"; then
5289 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5292 # Extract the first word of "rm", so it can be a program name with args.
5293 set dummy rm; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if ${ac_cv_prog_RM+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 if test -n "$RM"; then
5300 ac_cv_prog_RM="$RM" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309 ac_cv_prog_RM="rm -rf"
5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5313 done
5314 done
5315 IFS=$as_save_IFS
5319 RM=$ac_cv_prog_RM
5320 if test -n "$RM"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5322 $as_echo "$RM" >&6; }
5323 else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5329 req_avail=yes
5330 if test "$RM" = ""; then
5331 req_avail=no
5333 if test "$RM" = "no"; then
5334 req_avail=no
5336 if test "$req_avail" = "no"; then
5337 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5339 # Extract the first word of "cp", so it can be a program name with args.
5340 set dummy cp; ac_word=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if ${ac_cv_prog_CP+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 if test -n "$CP"; then
5347 ac_cv_prog_CP="$CP" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356 ac_cv_prog_CP="cp "
5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5360 done
5361 done
5362 IFS=$as_save_IFS
5366 CP=$ac_cv_prog_CP
5367 if test -n "$CP"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5369 $as_echo "$CP" >&6; }
5370 else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5376 req_avail=yes
5377 if test "$CP" = ""; then
5378 req_avail=no
5380 if test "$CP" = "no"; then
5381 req_avail=no
5383 if test "$req_avail" = "no"; then
5384 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5386 # Extract the first word of "mv", so it can be a program name with args.
5387 set dummy mv; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_prog_MV+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 if test -n "$MV"; then
5394 ac_cv_prog_MV="$MV" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403 ac_cv_prog_MV="mv "
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5407 done
5408 done
5409 IFS=$as_save_IFS
5413 MV=$ac_cv_prog_MV
5414 if test -n "$MV"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5416 $as_echo "$MV" >&6; }
5417 else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5423 req_avail=yes
5424 if test "$MV" = ""; then
5425 req_avail=no
5427 if test "$MV" = "no"; then
5428 req_avail=no
5430 if test "$req_avail" = "no"; then
5431 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5433 # Extract the first word of "echo", so it can be a program name with args.
5434 set dummy echo; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if ${ac_cv_prog_ECHO+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 if test -n "$ECHO"; then
5441 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5442 else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_prog_ECHO="echo "
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5454 done
5455 done
5456 IFS=$as_save_IFS
5460 ECHO=$ac_cv_prog_ECHO
5461 if test -n "$ECHO"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5463 $as_echo "$ECHO" >&6; }
5464 else
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5470 req_avail=yes
5471 if test "$ECHO" = ""; then
5472 req_avail=no
5474 if test "$ECHO" = "no"; then
5475 req_avail=no
5477 if test "$req_avail" = "no"; then
5478 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5480 # Extract the first word of "mkdir", so it can be a program name with args.
5481 set dummy mkdir; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_prog_MKDIR+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 if test -n "$MKDIR"; then
5488 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5489 else
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5497 ac_cv_prog_MKDIR="mkdir -p"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5501 done
5502 done
5503 IFS=$as_save_IFS
5507 MKDIR=$ac_cv_prog_MKDIR
5508 if test -n "$MKDIR"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5510 $as_echo "$MKDIR" >&6; }
5511 else
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5517 req_avail=yes
5518 if test "$MKDIR" = ""; then
5519 req_avail=no
5521 if test "$MKDIR" = "no"; then
5522 req_avail=no
5524 if test "$req_avail" = "no"; then
5525 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5527 # Extract the first word of "touch", so it can be a program name with args.
5528 set dummy touch; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_prog_TOUCH+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 if test -n "$TOUCH"; then
5535 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544 ac_cv_prog_TOUCH="touch "
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 break 2
5548 done
5549 done
5550 IFS=$as_save_IFS
5554 TOUCH=$ac_cv_prog_TOUCH
5555 if test -n "$TOUCH"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5557 $as_echo "$TOUCH" >&6; }
5558 else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5564 req_avail=yes
5565 if test "$TOUCH" = ""; then
5566 req_avail=no
5568 if test "$TOUCH" = "no"; then
5569 req_avail=no
5571 if test "$req_avail" = "no"; then
5572 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5574 # Extract the first word of "sort", so it can be a program name with args.
5575 set dummy sort; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_SORT+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -n "$SORT"; then
5582 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591 ac_cv_prog_SORT="sort "
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5595 done
5596 done
5597 IFS=$as_save_IFS
5601 SORT=$ac_cv_prog_SORT
5602 if test -n "$SORT"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5604 $as_echo "$SORT" >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5611 req_avail=yes
5612 if test "$SORT" = ""; then
5613 req_avail=no
5615 if test "$SORT" = "no"; then
5616 req_avail=no
5618 if test "$req_avail" = "no"; then
5619 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5621 # Extract the first word of "uniq", so it can be a program name with args.
5622 set dummy uniq; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if ${ac_cv_prog_UNIQ+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 if test -n "$UNIQ"; then
5629 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638 ac_cv_prog_UNIQ="uniq "
5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 break 2
5642 done
5643 done
5644 IFS=$as_save_IFS
5648 UNIQ=$ac_cv_prog_UNIQ
5649 if test -n "$UNIQ"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5651 $as_echo "$UNIQ" >&6; }
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5658 req_avail=yes
5659 if test "$UNIQ" = ""; then
5660 req_avail=no
5662 if test "$UNIQ" = "no"; then
5663 req_avail=no
5665 if test "$req_avail" = "no"; then
5666 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5668 # Extract the first word of "true", so it can be a program name with args.
5669 set dummy true; ac_word=$2
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671 $as_echo_n "checking for $ac_word... " >&6; }
5672 if ${ac_cv_prog_NOP+:} false; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 if test -n "$NOP"; then
5676 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5677 else
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5681 IFS=$as_save_IFS
5682 test -z "$as_dir" && as_dir=.
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5685 ac_cv_prog_NOP="true "
5686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 break 2
5689 done
5690 done
5691 IFS=$as_save_IFS
5695 NOP=$ac_cv_prog_NOP
5696 if test -n "$NOP"; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5698 $as_echo "$NOP" >&6; }
5699 else
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5705 req_avail=yes
5706 if test "$NOP" = ""; then
5707 req_avail=no
5709 if test "$NOP" = "no"; then
5710 req_avail=no
5712 if test "$req_avail" = "no"; then
5713 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5715 # Extract the first word of "cat", so it can be a program name with args.
5716 set dummy cat; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_CAT+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$CAT"; then
5723 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_CAT="cat "
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5736 done
5737 done
5738 IFS=$as_save_IFS
5742 CAT=$ac_cv_prog_CAT
5743 if test -n "$CAT"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5745 $as_echo "$CAT" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5752 req_avail=yes
5753 if test "$CAT" = ""; then
5754 req_avail=no
5756 if test "$CAT" = "no"; then
5757 req_avail=no
5759 if test "$req_avail" = "no"; then
5760 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5762 # Extract the first word of "bison", so it can be a program name with args.
5763 set dummy bison; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if ${ac_cv_prog_BISON+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 if test -n "$BISON"; then
5770 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_BISON="bison "
5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 break 2
5783 done
5784 done
5785 IFS=$as_save_IFS
5789 BISON=$ac_cv_prog_BISON
5790 if test -n "$BISON"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5792 $as_echo "$BISON" >&6; }
5793 else
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5799 req_avail=yes
5800 if test "$BISON" = ""; then
5801 req_avail=no
5803 if test "$BISON" = "no"; then
5804 req_avail=no
5806 if test "$req_avail" = "no"; then
5807 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5809 # Extract the first word of "flex", so it can be a program name with args.
5810 set dummy flex; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if ${ac_cv_prog_FLEX+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 if test -n "$FLEX"; then
5817 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826 ac_cv_prog_FLEX="flex "
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5830 done
5831 done
5832 IFS=$as_save_IFS
5836 FLEX=$ac_cv_prog_FLEX
5837 if test -n "$FLEX"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5839 $as_echo "$FLEX" >&6; }
5840 else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5846 req_avail=yes
5847 if test "$FLEX" = ""; then
5848 req_avail=no
5850 if test "$FLEX" = "no"; then
5851 req_avail=no
5853 if test "$req_avail" = "no"; then
5854 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $FLEX" >&5
5857 $as_echo_n "checking version of $FLEX... " >&6; }
5858 ax_cv_flex_version="`$FLEX --version | cut -d\" \" -f2`"
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_flex_version" >&5
5860 $as_echo "$ax_cv_flex_version" >&6; }
5861 # Extract the first word of "pngtopnm", so it can be a program name with args.
5862 set dummy pngtopnm; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 if test -n "$PNGTOPNM"; then
5869 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878 ac_cv_prog_PNGTOPNM="pngtopnm "
5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5882 done
5883 done
5884 IFS=$as_save_IFS
5888 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5889 if test -n "$PNGTOPNM"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5891 $as_echo "$PNGTOPNM" >&6; }
5892 else
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5898 req_avail=yes
5899 if test "$PNGTOPNM" = ""; then
5900 req_avail=no
5902 if test "$PNGTOPNM" = "no"; then
5903 req_avail=no
5905 if test "$req_avail" = "no"; then
5906 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5908 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5909 set dummy ppmtoilbm; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 if test -n "$PPMTOILBM"; then
5916 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5929 done
5930 done
5931 IFS=$as_save_IFS
5935 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5936 if test -n "$PPMTOILBM"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5938 $as_echo "$PPMTOILBM" >&6; }
5939 else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5945 req_avail=yes
5946 if test "$PPMTOILBM" = ""; then
5947 req_avail=no
5949 if test "$PPMTOILBM" = "no"; then
5950 req_avail=no
5952 if test "$req_avail" = "no"; then
5953 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5955 # Extract the first word of "sed", so it can be a program name with args.
5956 set dummy sed; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_SED+:} false; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 if test -n "$SED"; then
5963 ac_cv_prog_SED="$SED" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972 ac_cv_prog_SED="sed "
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5976 done
5977 done
5978 IFS=$as_save_IFS
5982 SED=$ac_cv_prog_SED
5983 if test -n "$SED"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5985 $as_echo "$SED" >&6; }
5986 else
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5992 req_avail=yes
5993 if test "$SED" = ""; then
5994 req_avail=no
5996 if test "$SED" = "no"; then
5997 req_avail=no
5999 if test "$req_avail" = "no"; then
6000 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
6002 # Extract the first word of "chmod", so it can be a program name with args.
6003 set dummy chmod; ac_word=$2
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005 $as_echo_n "checking for $ac_word... " >&6; }
6006 if ${ac_cv_prog_CHMOD+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 if test -n "$CHMOD"; then
6010 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
6011 else
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6015 IFS=$as_save_IFS
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6019 ac_cv_prog_CHMOD="chmod "
6020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 break 2
6023 done
6024 done
6025 IFS=$as_save_IFS
6029 CHMOD=$ac_cv_prog_CHMOD
6030 if test -n "$CHMOD"; then
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6032 $as_echo "$CHMOD" >&6; }
6033 else
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035 $as_echo "no" >&6; }
6039 req_avail=yes
6040 if test "$CHMOD" = ""; then
6041 req_avail=no
6043 if test "$CHMOD" = "no"; then
6044 req_avail=no
6046 if test "$req_avail" = "no"; then
6047 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
6049 # Extract the first word of "patch", so it can be a program name with args.
6050 set dummy patch; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if ${ac_cv_prog_PATCH+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if test -n "$PATCH"; then
6057 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066 ac_cv_prog_PATCH="patch "
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6070 done
6071 done
6072 IFS=$as_save_IFS
6076 PATCH=$ac_cv_prog_PATCH
6077 if test -n "$PATCH"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
6079 $as_echo "$PATCH" >&6; }
6080 else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6086 req_avail=yes
6087 if test "$PATCH" = ""; then
6088 req_avail=no
6090 if test "$PATCH" = "no"; then
6091 req_avail=no
6093 if test "$req_avail" = "no"; then
6094 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
6103 if test -n "$PYTHON"; then
6104 # If the user set $PYTHON, use it and don't search something else.
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
6106 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
6107 prog="import sys
6108 # split strings by '.' and convert to numeric. Append some zeros
6109 # because we need at least 4 digits for the hex conversion.
6110 # map returns an iterator in Python 3.0 and a list in 2.x
6111 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6112 minverhex = 0
6113 # xrange is not present in Python 3.0 and range returns an iterator
6114 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6115 sys.exit(sys.hexversion < minverhex)"
6116 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
6117 ($PYTHON -c "$prog") >&5 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; then :
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6122 $as_echo "yes" >&6; }
6123 else
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125 $as_echo "no" >&6; }
6126 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
6128 am_display_PYTHON=$PYTHON
6129 else
6130 # Otherwise, try each interpreter until we find one that satisfies
6131 # VERSION.
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
6133 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
6134 if ${am_cv_pathless_PYTHON+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6138 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
6139 test "$am_cv_pathless_PYTHON" = none && break
6140 prog="import sys
6141 # split strings by '.' and convert to numeric. Append some zeros
6142 # because we need at least 4 digits for the hex conversion.
6143 # map returns an iterator in Python 3.0 and a list in 2.x
6144 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6145 minverhex = 0
6146 # xrange is not present in Python 3.0 and range returns an iterator
6147 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6148 sys.exit(sys.hexversion < minverhex)"
6149 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
6150 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; then :
6154 break
6156 done
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
6159 $as_echo "$am_cv_pathless_PYTHON" >&6; }
6160 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
6161 if test "$am_cv_pathless_PYTHON" = none; then
6162 PYTHON=:
6163 else
6164 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
6165 set dummy $am_cv_pathless_PYTHON; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if ${ac_cv_path_PYTHON+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 case $PYTHON in
6172 [\\/]* | ?:[\\/]*)
6173 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 break 2
6187 done
6188 done
6189 IFS=$as_save_IFS
6192 esac
6194 PYTHON=$ac_cv_path_PYTHON
6195 if test -n "$PYTHON"; then
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6197 $as_echo "$PYTHON" >&6; }
6198 else
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 $as_echo "no" >&6; }
6205 am_display_PYTHON=$am_cv_pathless_PYTHON
6209 if test "$PYTHON" = :; then
6210 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
6211 else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
6215 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
6216 if ${am_cv_python_version+:} false; then :
6217 $as_echo_n "(cached) " >&6
6218 else
6219 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
6222 $as_echo "$am_cv_python_version" >&6; }
6223 PYTHON_VERSION=$am_cv_python_version
6227 PYTHON_PREFIX='${prefix}'
6229 PYTHON_EXEC_PREFIX='${exec_prefix}'
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
6234 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
6235 if ${am_cv_python_platform+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6241 $as_echo "$am_cv_python_platform" >&6; }
6242 PYTHON_PLATFORM=$am_cv_python_platform
6245 # Just factor out some code duplication.
6246 am_python_setup_sysconfig="\
6247 import sys
6248 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6249 # with python 3.x. See automake bug#10227.
6250 try:
6251 import sysconfig
6252 except ImportError:
6253 can_use_sysconfig = 0
6254 else:
6255 can_use_sysconfig = 1
6256 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6257 # <https://github.com/pypa/virtualenv/issues/118>
6258 try:
6259 from platform import python_implementation
6260 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6261 can_use_sysconfig = 0
6262 except ImportError:
6263 pass"
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6267 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6268 if ${am_cv_python_pythondir+:} false; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 if test "x$prefix" = xNONE
6272 then
6273 am_py_prefix=$ac_default_prefix
6274 else
6275 am_py_prefix=$prefix
6277 am_cv_python_pythondir=`$PYTHON -c "
6278 $am_python_setup_sysconfig
6279 if can_use_sysconfig:
6280 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6281 else:
6282 from distutils import sysconfig
6283 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6284 sys.stdout.write(sitedir)"`
6285 case $am_cv_python_pythondir in
6286 $am_py_prefix*)
6287 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6288 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6291 case $am_py_prefix in
6292 /usr|/System*) ;;
6294 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6296 esac
6298 esac
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6302 $as_echo "$am_cv_python_pythondir" >&6; }
6303 pythondir=$am_cv_python_pythondir
6307 pkgpythondir=\${pythondir}/$PACKAGE
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6311 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6312 if ${am_cv_python_pyexecdir+:} false; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 if test "x$exec_prefix" = xNONE
6316 then
6317 am_py_exec_prefix=$am_py_prefix
6318 else
6319 am_py_exec_prefix=$exec_prefix
6321 am_cv_python_pyexecdir=`$PYTHON -c "
6322 $am_python_setup_sysconfig
6323 if can_use_sysconfig:
6324 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6325 else:
6326 from distutils import sysconfig
6327 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6328 sys.stdout.write(sitedir)"`
6329 case $am_cv_python_pyexecdir in
6330 $am_py_exec_prefix*)
6331 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6332 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6335 case $am_py_exec_prefix in
6336 /usr|/System*) ;;
6338 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6340 esac
6342 esac
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6346 $as_echo "$am_cv_python_pyexecdir" >&6; }
6347 pyexecdir=$am_cv_python_pyexecdir
6351 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6359 # Check whether --enable-libpng-config was given.
6360 if test "${enable_libpng_config+set}" = set; then :
6361 enableval=$enable_libpng_config;
6364 if test "$enable_libpng_config" != "no"; then
6365 # Extract the first word of "libpng-config", so it can be a program name with args.
6366 set dummy libpng-config; ac_word=$2
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368 $as_echo_n "checking for $ac_word... " >&6; }
6369 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 if test -n "$arosconfig_use_libpngconfig"; then
6373 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6374 else
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6382 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 break 2
6386 done
6387 done
6388 IFS=$as_save_IFS
6390 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6393 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6394 if test -n "$arosconfig_use_libpngconfig"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6396 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6397 else
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6404 if test "$arosconfig_use_libpngconfig" = "yes"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6406 $as_echo_n "checking libpng-config library... " >&6; }
6407 libpng_incdir="`libpng-config --cflags`"
6408 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6409 libpng="`libpng-config --libs`"
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6411 $as_echo "$libpng" >&6; }
6412 else
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6415 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6416 if ${ac_cv_lib_png_png_read_png+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 ac_check_lib_save_LIBS=$LIBS
6420 LIBS="-lpng $LIBS"
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6424 /* Override any GCC internal prototype to avoid an error.
6425 Use char because int might match the return type of a GCC
6426 builtin and then its argument prototype would still apply. */
6427 #ifdef __cplusplus
6428 extern "C"
6429 #endif
6430 char png_read_png ();
6432 main ()
6434 return png_read_png ();
6436 return 0;
6438 _ACEOF
6439 if ac_fn_c_try_link "$LINENO"; then :
6440 ac_cv_lib_png_png_read_png=yes
6441 else
6442 ac_cv_lib_png_png_read_png=no
6444 rm -f core conftest.err conftest.$ac_objext \
6445 conftest$ac_exeext conftest.$ac_ext
6446 LIBS=$ac_check_lib_save_LIBS
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6449 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6450 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6451 libpng="-lpng"
6452 else
6453 libpng="no"
6456 if test "$libpng_libextra" != ""; then
6457 if test "$libpng" != "no"; then
6458 libpng_libextra="$libpng_libextra $libpng"
6462 req_avail=yes
6463 if test "$libpng" = ""; then
6464 req_avail=no
6466 if test "$libpng" = "no"; then
6467 req_avail=no
6469 if test "$req_avail" = "no"; then
6470 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6476 FOR=for
6478 IF=if
6480 TEST=test
6482 CMP=cmp
6486 # Check for some includes for the X11 HIDD and the kernel
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6489 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6490 if ${ac_cv_path_GREP+:} false; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 if test -z "$GREP"; then
6494 ac_path_GREP_found=false
6495 # Loop through the user's path and test for each of PROGNAME-LIST
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_prog in grep ggrep; do
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6504 as_fn_executable_p "$ac_path_GREP" || continue
6505 # Check for GNU ac_path_GREP and select it if it is found.
6506 # Check for GNU $ac_path_GREP
6507 case `"$ac_path_GREP" --version 2>&1` in
6508 *GNU*)
6509 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6511 ac_count=0
6512 $as_echo_n 0123456789 >"conftest.in"
6513 while :
6515 cat "conftest.in" "conftest.in" >"conftest.tmp"
6516 mv "conftest.tmp" "conftest.in"
6517 cp "conftest.in" "conftest.nl"
6518 $as_echo 'GREP' >> "conftest.nl"
6519 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6521 as_fn_arith $ac_count + 1 && ac_count=$as_val
6522 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6523 # Best one so far, save it but keep looking for a better one
6524 ac_cv_path_GREP="$ac_path_GREP"
6525 ac_path_GREP_max=$ac_count
6527 # 10*(2^10) chars as input seems more than enough
6528 test $ac_count -gt 10 && break
6529 done
6530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6531 esac
6533 $ac_path_GREP_found && break 3
6534 done
6535 done
6536 done
6537 IFS=$as_save_IFS
6538 if test -z "$ac_cv_path_GREP"; then
6539 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6541 else
6542 ac_cv_path_GREP=$GREP
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6547 $as_echo "$ac_cv_path_GREP" >&6; }
6548 GREP="$ac_cv_path_GREP"
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6552 $as_echo_n "checking for egrep... " >&6; }
6553 if ${ac_cv_path_EGREP+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6557 then ac_cv_path_EGREP="$GREP -E"
6558 else
6559 if test -z "$EGREP"; then
6560 ac_path_EGREP_found=false
6561 # Loop through the user's path and test for each of PROGNAME-LIST
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
6567 for ac_prog in egrep; do
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6570 as_fn_executable_p "$ac_path_EGREP" || continue
6571 # Check for GNU ac_path_EGREP and select it if it is found.
6572 # Check for GNU $ac_path_EGREP
6573 case `"$ac_path_EGREP" --version 2>&1` in
6574 *GNU*)
6575 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6577 ac_count=0
6578 $as_echo_n 0123456789 >"conftest.in"
6579 while :
6581 cat "conftest.in" "conftest.in" >"conftest.tmp"
6582 mv "conftest.tmp" "conftest.in"
6583 cp "conftest.in" "conftest.nl"
6584 $as_echo 'EGREP' >> "conftest.nl"
6585 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6587 as_fn_arith $ac_count + 1 && ac_count=$as_val
6588 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6589 # Best one so far, save it but keep looking for a better one
6590 ac_cv_path_EGREP="$ac_path_EGREP"
6591 ac_path_EGREP_max=$ac_count
6593 # 10*(2^10) chars as input seems more than enough
6594 test $ac_count -gt 10 && break
6595 done
6596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6597 esac
6599 $ac_path_EGREP_found && break 3
6600 done
6601 done
6602 done
6603 IFS=$as_save_IFS
6604 if test -z "$ac_cv_path_EGREP"; then
6605 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6607 else
6608 ac_cv_path_EGREP=$EGREP
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6614 $as_echo "$ac_cv_path_EGREP" >&6; }
6615 EGREP="$ac_cv_path_EGREP"
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6619 $as_echo_n "checking for ANSI C header files... " >&6; }
6620 if ${ac_cv_header_stdc+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625 #include <stdlib.h>
6626 #include <stdarg.h>
6627 #include <string.h>
6628 #include <float.h>
6631 main ()
6635 return 0;
6637 _ACEOF
6638 if ac_fn_c_try_compile "$LINENO"; then :
6639 ac_cv_header_stdc=yes
6640 else
6641 ac_cv_header_stdc=no
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 if test $ac_cv_header_stdc = yes; then
6646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6649 #include <string.h>
6651 _ACEOF
6652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6653 $EGREP "memchr" >/dev/null 2>&1; then :
6655 else
6656 ac_cv_header_stdc=no
6658 rm -f conftest*
6662 if test $ac_cv_header_stdc = yes; then
6663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 #include <stdlib.h>
6668 _ACEOF
6669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6670 $EGREP "free" >/dev/null 2>&1; then :
6672 else
6673 ac_cv_header_stdc=no
6675 rm -f conftest*
6679 if test $ac_cv_header_stdc = yes; then
6680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6681 if test "$cross_compiling" = yes; then :
6683 else
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 #include <ctype.h>
6687 #include <stdlib.h>
6688 #if ((' ' & 0x0FF) == 0x020)
6689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6691 #else
6692 # define ISLOWER(c) \
6693 (('a' <= (c) && (c) <= 'i') \
6694 || ('j' <= (c) && (c) <= 'r') \
6695 || ('s' <= (c) && (c) <= 'z'))
6696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6697 #endif
6699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6701 main ()
6703 int i;
6704 for (i = 0; i < 256; i++)
6705 if (XOR (islower (i), ISLOWER (i))
6706 || toupper (i) != TOUPPER (i))
6707 return 2;
6708 return 0;
6710 _ACEOF
6711 if ac_fn_c_try_run "$LINENO"; then :
6713 else
6714 ac_cv_header_stdc=no
6716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6717 conftest.$ac_objext conftest.beam conftest.$ac_ext
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6723 $as_echo "$ac_cv_header_stdc" >&6; }
6724 if test $ac_cv_header_stdc = yes; then
6726 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6730 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6731 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6732 inttypes.h stdint.h unistd.h
6733 do :
6734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6735 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6737 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6738 cat >>confdefs.h <<_ACEOF
6739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6740 _ACEOF
6744 done
6747 for ac_header in sys/ipc.h sys/shm.h \
6748 sys/mmap.h sys/mman.h sysexits.h \
6749 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6751 do :
6752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6753 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6754 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6755 cat >>confdefs.h <<_ACEOF
6756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6757 _ACEOF
6761 done
6764 for ac_header in sys/mount.h
6765 do :
6766 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6768 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6769 cat >>confdefs.h <<_ACEOF
6770 #define HAVE_SYS_MOUNT_H 1
6771 _ACEOF
6775 done
6777 for ac_header in GL/glx.h
6778 do :
6779 ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
6780 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
6781 cat >>confdefs.h <<_ACEOF
6782 #define HAVE_GL_GLX_H 1
6783 _ACEOF
6784 host_feature_glx=yes
6785 else
6786 host_feature_glx=no
6789 done
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
6793 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6797 #define __unused __attribute__((unused))
6798 #include <sys/stat.h>
6801 main ()
6805 return 0;
6807 _ACEOF
6808 if ac_fn_c_try_compile "$LINENO"; then :
6809 host_stat_h__unused_used=no
6810 else
6811 host_stat_h__unused_used=yes
6813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
6815 $as_echo "$host_stat_h__unused_used" >&6; }
6817 ac_header_dirent=no
6818 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6819 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6821 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6822 if eval \${$as_ac_Header+:} false; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827 #include <sys/types.h>
6828 #include <$ac_hdr>
6831 main ()
6833 if ((DIR *) 0)
6834 return 0;
6836 return 0;
6838 _ACEOF
6839 if ac_fn_c_try_compile "$LINENO"; then :
6840 eval "$as_ac_Header=yes"
6841 else
6842 eval "$as_ac_Header=no"
6844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846 eval ac_res=\$$as_ac_Header
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6848 $as_echo "$ac_res" >&6; }
6849 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6850 cat >>confdefs.h <<_ACEOF
6851 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6852 _ACEOF
6854 ac_header_dirent=$ac_hdr; break
6857 done
6858 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6859 if test $ac_header_dirent = dirent.h; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6861 $as_echo_n "checking for library containing opendir... " >&6; }
6862 if ${ac_cv_search_opendir+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 ac_func_search_save_LIBS=$LIBS
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6869 /* Override any GCC internal prototype to avoid an error.
6870 Use char because int might match the return type of a GCC
6871 builtin and then its argument prototype would still apply. */
6872 #ifdef __cplusplus
6873 extern "C"
6874 #endif
6875 char opendir ();
6877 main ()
6879 return opendir ();
6881 return 0;
6883 _ACEOF
6884 for ac_lib in '' dir; do
6885 if test -z "$ac_lib"; then
6886 ac_res="none required"
6887 else
6888 ac_res=-l$ac_lib
6889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6891 if ac_fn_c_try_link "$LINENO"; then :
6892 ac_cv_search_opendir=$ac_res
6894 rm -f core conftest.err conftest.$ac_objext \
6895 conftest$ac_exeext
6896 if ${ac_cv_search_opendir+:} false; then :
6897 break
6899 done
6900 if ${ac_cv_search_opendir+:} false; then :
6902 else
6903 ac_cv_search_opendir=no
6905 rm conftest.$ac_ext
6906 LIBS=$ac_func_search_save_LIBS
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6909 $as_echo "$ac_cv_search_opendir" >&6; }
6910 ac_res=$ac_cv_search_opendir
6911 if test "$ac_res" != no; then :
6912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6916 else
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6918 $as_echo_n "checking for library containing opendir... " >&6; }
6919 if ${ac_cv_search_opendir+:} false; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 ac_func_search_save_LIBS=$LIBS
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6926 /* Override any GCC internal prototype to avoid an error.
6927 Use char because int might match the return type of a GCC
6928 builtin and then its argument prototype would still apply. */
6929 #ifdef __cplusplus
6930 extern "C"
6931 #endif
6932 char opendir ();
6934 main ()
6936 return opendir ();
6938 return 0;
6940 _ACEOF
6941 for ac_lib in '' x; do
6942 if test -z "$ac_lib"; then
6943 ac_res="none required"
6944 else
6945 ac_res=-l$ac_lib
6946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6948 if ac_fn_c_try_link "$LINENO"; then :
6949 ac_cv_search_opendir=$ac_res
6951 rm -f core conftest.err conftest.$ac_objext \
6952 conftest$ac_exeext
6953 if ${ac_cv_search_opendir+:} false; then :
6954 break
6956 done
6957 if ${ac_cv_search_opendir+:} false; then :
6959 else
6960 ac_cv_search_opendir=no
6962 rm conftest.$ac_ext
6963 LIBS=$ac_func_search_save_LIBS
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6966 $as_echo "$ac_cv_search_opendir" >&6; }
6967 ac_res=$ac_cv_search_opendir
6968 if test "$ac_res" != no; then :
6969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6976 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6977 if ${ac_cv_header_stat_broken+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6982 #include <sys/types.h>
6983 #include <sys/stat.h>
6985 #if defined S_ISBLK && defined S_IFDIR
6986 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6987 #endif
6989 #if defined S_ISBLK && defined S_IFCHR
6990 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6991 #endif
6993 #if defined S_ISLNK && defined S_IFREG
6994 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6995 #endif
6997 #if defined S_ISSOCK && defined S_IFREG
6998 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6999 #endif
7001 _ACEOF
7002 if ac_fn_c_try_compile "$LINENO"; then :
7003 ac_cv_header_stat_broken=no
7004 else
7005 ac_cv_header_stat_broken=yes
7007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
7010 $as_echo "$ac_cv_header_stat_broken" >&6; }
7011 if test $ac_cv_header_stat_broken = yes; then
7013 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7018 $as_echo_n "checking for ANSI C header files... " >&6; }
7019 if ${ac_cv_header_stdc+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 #include <stdlib.h>
7025 #include <stdarg.h>
7026 #include <string.h>
7027 #include <float.h>
7030 main ()
7034 return 0;
7036 _ACEOF
7037 if ac_fn_c_try_compile "$LINENO"; then :
7038 ac_cv_header_stdc=yes
7039 else
7040 ac_cv_header_stdc=no
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 if test $ac_cv_header_stdc = yes; then
7045 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7048 #include <string.h>
7050 _ACEOF
7051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7052 $EGREP "memchr" >/dev/null 2>&1; then :
7054 else
7055 ac_cv_header_stdc=no
7057 rm -f conftest*
7061 if test $ac_cv_header_stdc = yes; then
7062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065 #include <stdlib.h>
7067 _ACEOF
7068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7069 $EGREP "free" >/dev/null 2>&1; then :
7071 else
7072 ac_cv_header_stdc=no
7074 rm -f conftest*
7078 if test $ac_cv_header_stdc = yes; then
7079 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7080 if test "$cross_compiling" = yes; then :
7082 else
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7085 #include <ctype.h>
7086 #include <stdlib.h>
7087 #if ((' ' & 0x0FF) == 0x020)
7088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7090 #else
7091 # define ISLOWER(c) \
7092 (('a' <= (c) && (c) <= 'i') \
7093 || ('j' <= (c) && (c) <= 'r') \
7094 || ('s' <= (c) && (c) <= 'z'))
7095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7096 #endif
7098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7100 main ()
7102 int i;
7103 for (i = 0; i < 256; i++)
7104 if (XOR (islower (i), ISLOWER (i))
7105 || toupper (i) != TOUPPER (i))
7106 return 2;
7107 return 0;
7109 _ACEOF
7110 if ac_fn_c_try_run "$LINENO"; then :
7112 else
7113 ac_cv_header_stdc=no
7115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7116 conftest.$ac_objext conftest.beam conftest.$ac_ext
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7122 $as_echo "$ac_cv_header_stdc" >&6; }
7123 if test $ac_cv_header_stdc = yes; then
7125 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7130 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7131 if ${ac_cv_header_sys_wait_h+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136 #include <sys/types.h>
7137 #include <sys/wait.h>
7138 #ifndef WEXITSTATUS
7139 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7140 #endif
7141 #ifndef WIFEXITED
7142 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7143 #endif
7146 main ()
7148 int s;
7149 wait (&s);
7150 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7152 return 0;
7154 _ACEOF
7155 if ac_fn_c_try_compile "$LINENO"; then :
7156 ac_cv_header_sys_wait_h=yes
7157 else
7158 ac_cv_header_sys_wait_h=no
7160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7163 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7164 if test $ac_cv_header_sys_wait_h = yes; then
7166 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7171 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7172 if ${ac_cv_header_time+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 #include <sys/types.h>
7178 #include <sys/time.h>
7179 #include <time.h>
7182 main ()
7184 if ((struct tm *) 0)
7185 return 0;
7187 return 0;
7189 _ACEOF
7190 if ac_fn_c_try_compile "$LINENO"; then :
7191 ac_cv_header_time=yes
7192 else
7193 ac_cv_header_time=no
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7198 $as_echo "$ac_cv_header_time" >&6; }
7199 if test $ac_cv_header_time = yes; then
7201 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7205 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7206 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7208 cat >>confdefs.h <<_ACEOF
7209 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7210 _ACEOF
7213 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7218 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7219 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7221 cat >>confdefs.h <<_ACEOF
7222 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7223 _ACEOF
7226 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7228 else
7229 case " $LIBOBJS " in
7230 *" fileblocks.$ac_objext "* ) ;;
7231 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7233 esac
7238 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7239 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7241 cat >>confdefs.h <<_ACEOF
7242 #define HAVE_STRUCT_STAT_ST_RDEV 1
7243 _ACEOF
7246 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7252 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7253 if ${ac_cv_struct_tm+:} false; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7258 #include <sys/types.h>
7259 #include <time.h>
7262 main ()
7264 struct tm tm;
7265 int *p = &tm.tm_sec;
7266 return !p;
7268 return 0;
7270 _ACEOF
7271 if ac_fn_c_try_compile "$LINENO"; then :
7272 ac_cv_struct_tm=time.h
7273 else
7274 ac_cv_struct_tm=sys/time.h
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7279 $as_echo "$ac_cv_struct_tm" >&6; }
7280 if test $ac_cv_struct_tm = sys/time.h; then
7282 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7286 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7287 #include <$ac_cv_struct_tm>
7290 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7292 cat >>confdefs.h <<_ACEOF
7293 #define HAVE_STRUCT_TM_TM_ZONE 1
7294 _ACEOF
7299 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7301 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7303 else
7304 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7306 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7307 ac_have_decl=1
7308 else
7309 ac_have_decl=0
7312 cat >>confdefs.h <<_ACEOF
7313 #define HAVE_DECL_TZNAME $ac_have_decl
7314 _ACEOF
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7317 $as_echo_n "checking for tzname... " >&6; }
7318 if ${ac_cv_var_tzname+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320 else
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7323 #include <time.h>
7324 #if !HAVE_DECL_TZNAME
7325 extern char *tzname[];
7326 #endif
7329 main ()
7331 return tzname[0][0];
7333 return 0;
7335 _ACEOF
7336 if ac_fn_c_try_link "$LINENO"; then :
7337 ac_cv_var_tzname=yes
7338 else
7339 ac_cv_var_tzname=no
7341 rm -f core conftest.err conftest.$ac_objext \
7342 conftest$ac_exeext conftest.$ac_ext
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7345 $as_echo "$ac_cv_var_tzname" >&6; }
7346 if test $ac_cv_var_tzname = yes; then
7348 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7353 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7354 if test "x$ac_cv_type_off_t" = xyes; then :
7356 else
7358 cat >>confdefs.h <<_ACEOF
7359 #define off_t long int
7360 _ACEOF
7364 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7365 if test "x$ac_cv_type_pid_t" = xyes; then :
7367 else
7369 cat >>confdefs.h <<_ACEOF
7370 #define pid_t int
7371 _ACEOF
7375 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7376 if test "x$ac_cv_type_size_t" = xyes; then :
7378 else
7380 cat >>confdefs.h <<_ACEOF
7381 #define size_t unsigned int
7382 _ACEOF
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7387 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7388 if ${ac_cv_type_uid_t+:} false; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h. */
7393 #include <sys/types.h>
7395 _ACEOF
7396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7397 $EGREP "uid_t" >/dev/null 2>&1; then :
7398 ac_cv_type_uid_t=yes
7399 else
7400 ac_cv_type_uid_t=no
7402 rm -f conftest*
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7406 $as_echo "$ac_cv_type_uid_t" >&6; }
7407 if test $ac_cv_type_uid_t = no; then
7409 $as_echo "#define uid_t int" >>confdefs.h
7412 $as_echo "#define gid_t int" >>confdefs.h
7417 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7418 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7420 cat >>confdefs.h <<_ACEOF
7421 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7422 _ACEOF
7428 # Look for some functions
7429 for ac_func in getpagesize kqueue statfs statvfs \
7430 clone kse_create rfork_thread thr_create sa_register \
7431 getcontext makecontext setcontext sigaltstack swapcontext
7432 do :
7433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7434 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7435 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7436 cat >>confdefs.h <<_ACEOF
7437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7438 _ACEOF
7441 done
7447 for ac_header in $ac_header_list
7448 do :
7449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7450 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7452 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7453 cat >>confdefs.h <<_ACEOF
7454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7455 _ACEOF
7459 done
7468 for ac_func in getpagesize
7469 do :
7470 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7471 if test "x$ac_cv_func_getpagesize" = xyes; then :
7472 cat >>confdefs.h <<_ACEOF
7473 #define HAVE_GETPAGESIZE 1
7474 _ACEOF
7477 done
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7480 $as_echo_n "checking for working mmap... " >&6; }
7481 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7484 if test "$cross_compiling" = yes; then :
7485 ac_cv_func_mmap_fixed_mapped=no
7486 else
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7489 $ac_includes_default
7490 /* malloc might have been renamed as rpl_malloc. */
7491 #undef malloc
7493 /* Thanks to Mike Haertel and Jim Avera for this test.
7494 Here is a matrix of mmap possibilities:
7495 mmap private not fixed
7496 mmap private fixed at somewhere currently unmapped
7497 mmap private fixed at somewhere already mapped
7498 mmap shared not fixed
7499 mmap shared fixed at somewhere currently unmapped
7500 mmap shared fixed at somewhere already mapped
7501 For private mappings, we should verify that changes cannot be read()
7502 back from the file, nor mmap's back from the file at a different
7503 address. (There have been systems where private was not correctly
7504 implemented like the infamous i386 svr4.0, and systems where the
7505 VM page cache was not coherent with the file system buffer cache
7506 like early versions of FreeBSD and possibly contemporary NetBSD.)
7507 For shared mappings, we should conversely verify that changes get
7508 propagated back to all the places they're supposed to be.
7510 Grep wants private fixed already mapped.
7511 The main things grep needs to know about mmap are:
7512 * does it exist and is it safe to write into the mmap'd area
7513 * how to use it (BSD variants) */
7515 #include <fcntl.h>
7516 #include <sys/mman.h>
7518 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7519 char *malloc ();
7520 #endif
7522 /* This mess was copied from the GNU getpagesize.h. */
7523 #ifndef HAVE_GETPAGESIZE
7524 # ifdef _SC_PAGESIZE
7525 # define getpagesize() sysconf(_SC_PAGESIZE)
7526 # else /* no _SC_PAGESIZE */
7527 # ifdef HAVE_SYS_PARAM_H
7528 # include <sys/param.h>
7529 # ifdef EXEC_PAGESIZE
7530 # define getpagesize() EXEC_PAGESIZE
7531 # else /* no EXEC_PAGESIZE */
7532 # ifdef NBPG
7533 # define getpagesize() NBPG * CLSIZE
7534 # ifndef CLSIZE
7535 # define CLSIZE 1
7536 # endif /* no CLSIZE */
7537 # else /* no NBPG */
7538 # ifdef NBPC
7539 # define getpagesize() NBPC
7540 # else /* no NBPC */
7541 # ifdef PAGESIZE
7542 # define getpagesize() PAGESIZE
7543 # endif /* PAGESIZE */
7544 # endif /* no NBPC */
7545 # endif /* no NBPG */
7546 # endif /* no EXEC_PAGESIZE */
7547 # else /* no HAVE_SYS_PARAM_H */
7548 # define getpagesize() 8192 /* punt totally */
7549 # endif /* no HAVE_SYS_PARAM_H */
7550 # endif /* no _SC_PAGESIZE */
7552 #endif /* no HAVE_GETPAGESIZE */
7555 main ()
7557 char *data, *data2, *data3;
7558 const char *cdata2;
7559 int i, pagesize;
7560 int fd, fd2;
7562 pagesize = getpagesize ();
7564 /* First, make a file with some known garbage in it. */
7565 data = (char *) malloc (pagesize);
7566 if (!data)
7567 return 1;
7568 for (i = 0; i < pagesize; ++i)
7569 *(data + i) = rand ();
7570 umask (0);
7571 fd = creat ("conftest.mmap", 0600);
7572 if (fd < 0)
7573 return 2;
7574 if (write (fd, data, pagesize) != pagesize)
7575 return 3;
7576 close (fd);
7578 /* Next, check that the tail of a page is zero-filled. File must have
7579 non-zero length, otherwise we risk SIGBUS for entire page. */
7580 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7581 if (fd2 < 0)
7582 return 4;
7583 cdata2 = "";
7584 if (write (fd2, cdata2, 1) != 1)
7585 return 5;
7586 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7587 if (data2 == MAP_FAILED)
7588 return 6;
7589 for (i = 0; i < pagesize; ++i)
7590 if (*(data2 + i))
7591 return 7;
7592 close (fd2);
7593 if (munmap (data2, pagesize))
7594 return 8;
7596 /* Next, try to mmap the file at a fixed address which already has
7597 something else allocated at it. If we can, also make sure that
7598 we see the same garbage. */
7599 fd = open ("conftest.mmap", O_RDWR);
7600 if (fd < 0)
7601 return 9;
7602 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7603 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7604 return 10;
7605 for (i = 0; i < pagesize; ++i)
7606 if (*(data + i) != *(data2 + i))
7607 return 11;
7609 /* Finally, make sure that changes to the mapped area do not
7610 percolate back to the file as seen by read(). (This is a bug on
7611 some variants of i386 svr4.0.) */
7612 for (i = 0; i < pagesize; ++i)
7613 *(data2 + i) = *(data2 + i) + 1;
7614 data3 = (char *) malloc (pagesize);
7615 if (!data3)
7616 return 12;
7617 if (read (fd, data3, pagesize) != pagesize)
7618 return 13;
7619 for (i = 0; i < pagesize; ++i)
7620 if (*(data + i) != *(data3 + i))
7621 return 14;
7622 close (fd);
7623 free (data);
7624 free (data3);
7625 return 0;
7627 _ACEOF
7628 if ac_fn_c_try_run "$LINENO"; then :
7629 ac_cv_func_mmap_fixed_mapped=yes
7630 else
7631 ac_cv_func_mmap_fixed_mapped=no
7633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7634 conftest.$ac_objext conftest.beam conftest.$ac_ext
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7639 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7640 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7642 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7645 rm -f conftest.mmap conftest.txt
7648 #-----------------------------------------------------------------------------
7651 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7652 # it switched on by default, and we use the host compiler, so it compiles AROS
7653 # code with this enabled resulting in link failures as we don't have support
7654 # for it.
7656 # We use two methods to disable it. For the host compiler (used to compile
7657 # some hosted modules), we test to see if the compiler supports stack
7658 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7659 # work on all platforms.
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7663 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7664 save_cflags="$CFLAGS"
7665 CFLAGS="$CFLAGS -fno-stack-protector"
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7670 main ()
7674 return 0;
7676 _ACEOF
7677 if ac_fn_c_try_compile "$LINENO"; then :
7678 use_no_stack_protector="yes"
7679 else
7680 use_no_stack_protector="no"
7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7684 $as_echo "$use_no_stack_protector" >&6; }
7685 if test "x-$use_no_stack_protector" = "x-yes" ; then
7686 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7688 CFLAGS="$save_cflags"
7690 #-----------------------------------------------------------------------------
7692 # Disable pointer-signedness warnings if the compiler recognises the option
7693 # (this only works for the host compiler at the moment)
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7696 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7697 save_cflags="$CFLAGS"
7698 CFLAGS="$CFLAGS -Wno-pointer-sign"
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7703 main ()
7707 return 0;
7709 _ACEOF
7710 if ac_fn_c_try_compile "$LINENO"; then :
7711 use_no_sign_warning="yes"
7712 else
7713 use_no_sign_warning="no"
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7717 $as_echo "$use_no_sign_warning" >&6; }
7718 if test "x-$use_no_sign_warning" = "x-yes" ; then
7719 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7721 CFLAGS="$save_cflags"
7723 #-----------------------------------------------------------------------------
7725 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7728 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7729 save_cflags="$CFLAGS"
7730 CFLAGS="$CFLAGS -fgnu89-inline"
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7735 main ()
7739 return 0;
7741 _ACEOF
7742 if ac_fn_c_try_compile "$LINENO"; then :
7743 use_gnu89_inline="yes"
7744 else
7745 use_gnu89_inline="no"
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7749 $as_echo "$use_gnu89_inline" >&6; }
7750 if test "x-$use_gnu89_inline" = "x-yes" ; then
7751 gnu89_inline="-fgnu89-inline"
7753 CFLAGS="$save_cflags"
7756 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7757 # On GCC >= 4.0 -iquote should be used
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7760 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7761 CFLAGS="$CFLAGS -iquote."
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7766 main ()
7770 return 0;
7772 _ACEOF
7773 if ac_fn_c_try_compile "$LINENO"; then :
7774 has_iquote="yes"
7775 else
7776 has_iquote="no"
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7780 $as_echo "$has_iquote" >&6; }
7781 if test "x-$has_iquote" = "x-yes" ; then
7782 host_cflags_iquote=-iquote
7783 host_cflags_iquote_end=
7784 else
7785 host_cflags_iquote=-I
7786 host_cflags_iquote_end=-I-
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7790 $as_echo "$as_me: Performing target configuration..." >&6;}
7793 test_kernel_cc=no
7795 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7796 export_newline="
7799 aros_elf_translate=
7800 aros_warn_flags=
7801 aros_isa_extra=
7802 aros_isa_flags=
7803 aros_config_cppflags=
7804 aros_config_cflags=
7805 aros_config_cxxflags=
7806 aros_config_aflags="$""(WARN_ALL) -x assembler-with-cpp -c"
7807 aros_config_ldflags=""
7809 aros_shared_default=yes
7811 aros_shared_cflags="-fPIC"
7812 aros_shared_aflags=""
7813 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7814 aros_kernel_ldflags="-Wl,-rpath,./lib"
7816 aros_kernel_ar_flags="cr"
7817 aros_target_ar_flags="cr"
7818 aros_target_nm_flags="-C -ul"
7819 aros_target_strip_flags="--strip-unneeded -R.comment"
7821 aros_c_libs=
7822 aros_cxx_libs=
7824 aros_target_genmap="-Wl,-Map -Xlinker"
7826 # Native flavour stuff
7827 aros_serial_debug="0"
7829 # Palm native flavour stuff
7830 aros_palm_debug_hack="0"
7832 # Unix flavour stuff
7833 aros_nesting_supervisor="0"
7835 # Collect-aros stuff: "-ius" to ignore undefined symbols
7836 ignore_undefined_symbols=""
7838 # Check for X11 by default
7839 need_x11="auto"
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7842 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7844 # Check whether --with-toolchain was given.
7845 if test "${with_toolchain+set}" = set; then :
7846 withval=$with_toolchain; aros_toolchain="$withval"
7847 else
7848 aros_toolchain="$default_toolchain_family"
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7852 $as_echo "$aros_toolchain" >&6; }
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7856 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7857 # Check whether --enable-lto was given.
7858 if test "${enable_lto+set}" = set; then :
7859 enableval=$enable_lto; aros_config_lto="$enableval"
7860 else
7861 aros_config_lto="no"
7864 if test "$aros_config_lto" != "no"; then
7865 aros_config_lto="yes"
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7868 $as_echo "$aros_config_lto" >&6; }
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7871 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7872 # Check whether --enable-coverage was given.
7873 if test "${enable_coverage+set}" = set; then :
7874 enableval=$enable_coverage; aros_config_coverage="$enableval"
7875 else
7876 aros_config_coverage="no"
7879 if test "$aros_config_coverage" != "no"; then
7880 aros_config_coverage="yes"
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7883 $as_echo "$aros_config_coverage" >&6; }
7885 use_ld_wrapper=yes
7887 case "$aros_toolchain" in
7888 *llvm*)
7889 toolchain_c_compiler="clang"
7890 toolchain_cxx_compiler="clang++"
7891 toolchain_cpp_preprocessor="clang -E"
7892 toolchain_ld="ld.lld"
7893 aros_ld="ld"
7894 toolchain_as="llvm-as"
7895 toolchain_ar="llvm-ar"
7896 toolchain_ranlib="llvm-ranlib"
7897 toolchain_nm="llvm-nm"
7898 toolchain_strip="true"
7899 toolchain_objcopy="llvm-objcopy"
7900 toolchain_objdump="llvm-objdump"
7901 use_libatomic=yes
7903 *gnu*)
7904 toolchain_c_compiler="gcc"
7905 toolchain_cxx_compiler="g++"
7906 toolchain_cpp_preprocessor="gcc -E"
7907 toolchain_as="as"
7908 aros_ld="ld"
7909 if test "$aros_config_lto" != "yes"; then
7910 toolchain_ld="ld"
7911 toolchain_ar="ar"
7912 toolchain_ranlib="ranlib"
7913 toolchain_nm="nm"
7914 else
7915 toolchain_ld="ld.bfd"
7916 toolchain_ar="gcc-ar"
7917 toolchain_ranlib="gcc-ranlib"
7918 toolchain_nm="gcc-nm"
7920 toolchain_strip="strip"
7921 toolchain_objcopy="objcopy"
7922 toolchain_objdump="objdump"
7923 use_libatomic=yes
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7927 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7928 toolchain_c_compiler="cc"
7929 toolchain_cxx_compiler="c++"
7930 toolchain_cpp_preprocessor="cpp"
7931 toolchain_ld="ld"
7932 aros_ld="ld"
7933 toolchain_as="as"
7934 toolchain_ar="ar"
7935 toolchain_ranlib="ranlib"
7936 toolchain_nm="nm"
7937 toolchain_strip="strip"
7938 toolchain_objcopy="objcopy"
7939 toolchain_objdump="objdump"
7941 esac
7943 #-----------------------------------------------------------------------------
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7946 $as_echo_n "checking which type of build to do... " >&6; }
7947 # Check whether --enable-build_type was given.
7948 if test "${enable_build_type+set}" = set; then :
7949 enableval=$enable_build_type; build_type=$enableval
7950 else
7951 build_type="personal"
7955 if test "$build_type" = "nightly"; then
7956 build_type_string="NIGHTLY"
7957 elif test "$build_type" = "snapshot"; then
7958 build_type_string="SNAPSHOT"
7959 elif test "$build_type" = "milestone"; then
7960 build_type_string="MILESTONE"
7961 elif test "$build_type" = "release"; then
7962 build_type_string="RELEASE"
7963 else
7964 build_type_string="PERSONAL"
7965 build_type="personal"
7968 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7971 $as_echo "$build_type" >&6; }
7973 #-----------------------------------------------------------------------------
7974 all_debug_types="messages stack modules mungwall symbols"
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7977 $as_echo_n "checking which debug types to enable... " >&6; }
7978 # Check whether --enable-debug was given.
7979 if test "${enable_debug+set}" = set; then :
7980 enableval=$enable_debug; debug="$enableval"
7981 else
7982 debug=""
7986 if test "$debug" = "" -o "$debug" = "no"; then
7987 debug="none"
7988 elif test "$debug" = "yes"; then
7989 debug="all"
7992 if test "$debug" = "all" ; then
7993 debug="messages stack modules symbols"
7994 for d in $all_debug_types; do
7995 export aros_${d}_debug="1"
7996 done
7997 else
7998 for d in $all_debug_types; do
7999 export aros_${d}_debug="0"
8000 done
8003 if test "$debug" != "none"; then
8004 debug=`echo $debug | sed s/,/\ /g`
8005 for d in $debug; do
8006 found="0"
8007 for d2 in $all_debug_types; do
8008 if test "$d2" = "$d"; then
8009 found="1"
8010 break
8012 done
8013 if test "$found" = "0"; then
8014 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
8016 export aros_${d}_debug="1"
8017 done
8018 aros_debug="yes"
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
8021 $as_echo "$debug" >&6; }
8023 if test "$aros_messages_debug" = "1"; then
8024 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8025 else
8026 aros_messages_debug=""
8028 if test "$aros_symbols_debug" = "1"; then
8029 aros_symbols_debug="-g"
8030 else
8031 aros_symbols_debug=""
8034 # These are the flags to pass when compiling debugged programs
8035 aros_debug_cppflags="$aros_messages_debug"
8036 aros_debug_cflags="$aros_symbols_debug"
8037 aros_debug_cxxflags=
8038 aros_debug_aflags=""
8039 aros_debug_ldflags="$aros_symbols_debug"
8041 #-----------------------------------------------------------------------------
8042 # Checking for distcc and ccache.
8044 # Always apply the transforms in this particular order. Basically you should
8045 # always run 'ccache distcc compiler' in that order for the best performance.
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
8048 $as_echo_n "checking whether to enable distcc... " >&6; }
8049 # Check whether --enable-distcc was given.
8050 if test "${enable_distcc+set}" = set; then :
8051 enableval=$enable_distcc; distcc="$enableval"
8052 else
8053 distcc="no"
8056 if test "$distcc" != "" -a "$distcc" != "no"; then
8057 # AC_CHECK_PROG will print out the result in this case
8058 # Extract the first word of "distcc", so it can be a program name with args.
8059 set dummy distcc; ac_word=$2
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061 $as_echo_n "checking for $ac_word... " >&6; }
8062 if ${ac_cv_path_DISTCC+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 case $DISTCC in
8066 [\\/]* | ?:[\\/]*)
8067 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8073 IFS=$as_save_IFS
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8077 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 break 2
8081 done
8082 done
8083 IFS=$as_save_IFS
8085 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8087 esac
8089 DISTCC=$ac_cv_path_DISTCC
8090 if test -n "$DISTCC"; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
8092 $as_echo "$DISTCC" >&6; }
8093 else
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095 $as_echo "no" >&6; }
8099 else
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
8105 $as_echo_n "checking whether to enable ccache... " >&6; }
8106 # Check whether --enable-ccache was given.
8107 if test "${enable_ccache+set}" = set; then :
8108 enableval=$enable_ccache; ccache="$enableval"
8109 else
8110 ccache="no"
8113 if test "$ccache" != "" -a "$ccache" != "no"; then
8114 # AC_CHECK_PROG will print out the result in this case
8115 # Extract the first word of "ccache", so it can be a program name with args.
8116 set dummy ccache; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if ${ac_cv_prog_CCACHE+:} false; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 if test -n "$CCACHE"; then
8123 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8132 ac_cv_prog_CCACHE="ccache"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 break 2
8136 done
8137 done
8138 IFS=$as_save_IFS
8142 CCACHE=$ac_cv_prog_CCACHE
8143 if test -n "$CCACHE"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
8145 $as_echo "$CCACHE" >&6; }
8146 else
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8157 #-----------------------------------------------------------------------------
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
8159 $as_echo_n "checking what specific host gcc version to use... " >&6; }
8161 # Check whether --with-kernel-gcc-version was given.
8162 if test "${with_kernel_gcc_version+set}" = set; then :
8163 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
8164 else
8165 kernel_tool_version=""
8168 if test "$kernel_tool_version" != "" ; then
8169 msg_result=$kernel_tool_version
8170 else
8171 msg_result="default"
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8174 $as_echo "$msg_result" >&6; }
8176 #-----------------------------------------------------------------------------
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
8178 $as_echo_n "checking what optimization flags to use... " >&6; }
8180 # Check whether --with-optimization was given.
8181 if test "${with_optimization+set}" = set; then :
8182 withval=$with_optimization; optimization_level="$withval"
8183 else
8184 optimization_level="unknown"
8187 if test "$optimization_level" = "unknown"; then
8188 optimization="default"
8189 if test "$debug" != "none"; then
8190 optimization_level="-O0"
8191 else
8192 optimization_level="-O2"
8194 else
8195 optimization="$optimization_level"
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
8198 $as_echo "$optimization" >&6; }
8200 paranoia_default=yes
8201 #-----------------------------------------------------------------------------
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
8203 $as_echo_n "checking which paranoia flags to use... " >&6; }
8205 # Check whether --with-paranoia was given.
8206 if test "${with_paranoia+set}" = set; then :
8207 withval=$with_paranoia; paranoia_flags="$withval"
8208 else
8209 paranoia_flags="$paranoia_default"
8212 if test "$paranoia_flags" = "no"; then
8213 paranoia_flags="$""(WARN_ALL) -Werror-implicit-function-declaration"
8214 msg_result="none"
8215 else
8216 if test "$paranoia_flags" = "yes"; then
8217 paranoia_flags="$""(WARN_ALL) $""(WARN_ERROR)"
8219 msg_result="$paranoia_flags"
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8222 $as_echo "$msg_result" >&6; }
8223 aros_warn_flags="$aros_warn_flags $paranoia_flags"
8225 #-----------------------------------------------------------------------------
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
8227 $as_echo_n "checking what target variant to enable... " >&6; }
8228 # Check whether --enable-target_variant was given.
8229 if test "${enable_target_variant+set}" = set; then :
8230 enableval=$enable_target_variant; target_variant=$enableval
8231 else
8232 target_variant=""
8235 if test "$target_variant" = ""; then
8236 aros_target_variant=""
8237 aros_target_suffix=""
8238 enableval="none"
8239 else
8240 aros_target_variant="$target_variant"
8241 aros_target_suffix="-$target_variant"
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8244 $as_echo "$enableval" >&6; }
8246 #-----------------------------------------------------------------------------
8247 # Target-specific defaults. You can override then on a per-target basis.
8249 # Bootloader name. Currently used by PC target.
8250 target_bootloader="none"
8251 PLATFORM_EXECSMP=
8252 ENABLE_EXECSMP=
8254 #-----------------------------------------------------------------------------
8255 # Additional options for some specific targets
8257 case "$aros_target_variant" in
8258 ios)
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8260 $as_echo_n "checking XCode path... " >&6; }
8262 # Check whether --with-xcode was given.
8263 if test "${with_xcode+set}" = set; then :
8264 withval=$with_xcode; aros_xcode_path="$withval"
8265 else
8266 aros_xcode_path="/Developer"
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8270 $as_echo "$aros_xcode_path" >&6; }
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8273 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8275 # Check whether --with-sdk-version was given.
8276 if test "${with_sdk_version+set}" = set; then :
8277 withval=$with_sdk_version; aros_sdk_version="$withval"
8278 else
8279 aros_sdk_version="4.1"
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8283 $as_echo "$aros_sdk_version" >&6; }
8287 "android")
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8289 $as_echo_n "checking Android SDK path... " >&6; }
8291 # Check whether --with-sdk was given.
8292 if test "${with_sdk+set}" = set; then :
8293 withval=$with_sdk; aros_android_sdk="$withval"
8294 else
8295 aros_android_sdk=$default_android_sdk
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8299 $as_echo "$aros_android_sdk" >&6; }
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8302 $as_echo_n "checking Android NDK path... " >&6; }
8304 # Check whether --with-ndk was given.
8305 if test "${with_ndk+set}" = set; then :
8306 withval=$with_ndk; aros_android_ndk="$withval"
8307 else
8308 aros_android_ndk="none"
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8312 $as_echo "$aros_android_ndk" >&6; }
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8315 $as_echo_n "checking what Android SDK version to use... " >&6; }
8317 # Check whether --with-sdk-version was given.
8318 if test "${with_sdk_version+set}" = set; then :
8319 withval=$with_sdk_version; aros_sdk_version="$withval"
8320 else
8321 aros_sdk_version="12"
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8325 $as_echo "$aros_sdk_version" >&6; }
8327 aros_android_level=android-$aros_sdk_version
8328 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8329 echo "Platform $aros_android_level is not installed in your SDK"
8330 echo "Use --with-sdk-version=<API level number> to select another platform version"
8331 echo "You can check what plaform versions are installed in your SDK"
8332 echo "by examining contents of $aros_android_sdk/platforms directory"
8333 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8336 export PATH="$aros_android_sdk/tools:$PATH"
8337 # Extract the first word of "$android_tool", so it can be a program name with args.
8338 set dummy $android_tool; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if ${ac_cv_path_android_tool+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343 else
8344 case $android_tool in
8345 [\\/]* | ?:[\\/]*)
8346 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8352 IFS=$as_save_IFS
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8356 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 break 2
8360 done
8361 done
8362 IFS=$as_save_IFS
8365 esac
8367 android_tool=$ac_cv_path_android_tool
8368 if test -n "$android_tool"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8370 $as_echo "$android_tool" >&6; }
8371 else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8377 req_avail=yes
8378 if test "$android_tool" = ""; then
8379 req_avail=no
8381 if test "$android_tool" = "no"; then
8382 req_avail=no
8384 if test "$req_avail" = "no"; then
8385 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8388 if test "$aros_android_ndk" != "none"; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8390 $as_echo_n "checking what Android NDK version to use... " >&6; }
8392 # Check whether --with-ndk-version was given.
8393 if test "${with_ndk_version+set}" = set; then :
8394 withval=$with_ndk_version; aros_ndk_version="$withval"
8395 else
8396 aros_ndk_version="9"
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8400 $as_echo "$aros_ndk_version" >&6; }
8403 # Extract the first word of "ant", so it can be a program name with args.
8404 set dummy ant; ac_word=$2
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406 $as_echo_n "checking for $ac_word... " >&6; }
8407 if ${ac_cv_path_ant+:} false; then :
8408 $as_echo_n "(cached) " >&6
8409 else
8410 case $ant in
8411 [\\/]* | ?:[\\/]*)
8412 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8426 done
8427 done
8428 IFS=$as_save_IFS
8431 esac
8433 ant=$ac_cv_path_ant
8434 if test -n "$ant"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8436 $as_echo "$ant" >&6; }
8437 else
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8443 if test "$ant" = ""; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8445 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8449 $as_echo_n "checking Build debug or release apk... " >&6; }
8451 # Check whether --with-apk-version was given.
8452 if test "${with_apk_version+set}" = set; then :
8453 withval=$with_apk_version; aros_android_antapk=$withval
8454 else
8455 aros_android_antapk=release
8458 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8459 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8462 $as_echo "$aros_android_antapk" >&6; }
8464 target_extra_cfg+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8465 host_extra_cfg+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8466 aros_target_options+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8468 if test "$host_os" = "mingw32"; then
8469 android_tool="cmd //c $android_tool"
8472 need_dlopen="no"
8475 esac
8477 #-----------------------------------------------------------------------------
8478 # External toolchains
8479 kernel_tool_prefix="none"
8480 aros_tool_prefix="none"
8481 elf_tool_prefix="${target_cpu}-elf-"
8483 # Base target cpu ISA configuration switch.
8484 case "$target_cpu" in
8485 *aarch64*)
8487 *arm*)
8489 *m68k*)
8490 m68k_isa_extra="ISA_MC68000_FLAGS = -march=68000"
8491 m68k_020_isa_extra="ISA_MC68020_FLAGS = -march=68020"
8492 m68k_030_isa_extra="ISA_MC68030_FLAGS = -march=68030"
8493 m68k_040_isa_extra="ISA_MC68040_FLAGS = -march=68040"
8494 m68k_060_isa_extra="ISA_MC68060_FLAGS = -march=68060"
8495 m68k_ac080_isa_extra="ISA_AC68080_FLAGS = -march=68040"
8496 m68k_020_ext="ISA_MC68020_EXT :=020"
8497 m68k_030_ext="ISA_MC68030_EXT :=030"
8498 m68k_040_ext="ISA_MC68040_EXT :=040"
8499 m68k_060_ext="ISA_MC68060_EXT :=060"
8500 m68k_020_cflags="ISA_MC68020_CFLAGS ="
8501 m68k_030_cflags="ISA_MC68030_CFLAGS ="
8502 m68k_040_cflags="ISA_MC68040_CFLAGS ="
8503 m68k_060_cflags="ISA_MC68060_CFLAGS ="
8504 m68k_020_cppflags="ISA_MC68020_CPPFLAGS ="
8505 m68k_030_cppflags="ISA_MC68030_CPPFLAGS ="
8506 m68k_040_cppflags="ISA_MC68040_CPPFLAGS ="
8507 m68k_060_cppflags="ISA_MC68060_CPPFLAGS ="
8508 m68k_020_ldflags="ISA_MC68020_LDFLAGS ="
8509 m68k_030_ldflags="ISA_MC68030_LDFLAGS ="
8510 m68k_040_ldflags="ISA_MC68040_LDFLAGS ="
8511 m68k_060_ldflags="ISA_MC68060_LDFLAGS ="
8513 *x86_64* | *i?86*)
8514 x86_isa_extra="ISA_X86_FLAGS = -m32 -march=i486"
8515 x86_64_isa_extra="ISA_X8664_FLAGS = -mcmodel=large"
8517 *powerpc*)
8519 esac
8521 # This is the target configuration switch.
8522 case "$target_os" in
8523 linux*)
8524 aros_target_arch="linux"
8525 aros_target_family="unix"
8526 case "$target_cpu" in
8527 *m68k*)
8528 aros_target_cpu="m68k"
8529 aros_object_format="m68kelf"
8530 aros_flavour="emulcompat"
8531 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8532 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8533 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8534 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8535 gcc_target_cpu="mc68000"
8537 *i?86*)
8538 aros_target_cpu="i386"
8539 aros_object_format="elf_i386"
8540 aros_flavour="emulation"
8541 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8542 aros_isa_flags="$""(ISA_X86_FLAGS)"
8543 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8544 aros_kernel_ldflags="-Wl,-melf_i386"
8545 aros_nominal_depth=8
8546 gcc_target_cpu="i386"
8547 pci_hidd_target="hidd-pci-linux"
8548 android_tool_dir_prefix="x86"
8549 android_tool_prefix="i686-android-linux"
8550 android_ndk_arch="x86"
8552 *x86_64*)
8553 aros_target_cpu="x86_64"
8554 aros_object_format="elf_x86_64"
8555 aros_flavour="emulation"
8556 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8557 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8558 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8559 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8560 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8561 aros_nominal_depth=8
8562 pci_hidd_target="hidd-pci-linux"
8564 *powerpc*)
8565 aros_target_cpu="ppc"
8566 aros_object_format="elf32ppc"
8567 aros_flavour="emulation"
8568 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8569 aros_nominal_depth=8
8570 gcc_target_cpu="ppc"
8572 # TODO
8573 # Same as powerpc, but I need this for the nightly build to work again.
8574 # Actually, the nightly should be made working with powerpc target.
8575 # That just was too much work for the moment, another week or two.
8576 *ppc*)
8577 aros_target_cpu="ppc"
8578 aros_object_format="elf32ppc"
8579 aros_flavour="emulation"
8580 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8581 aros_nominal_depth=8
8582 gcc_target_cpu="ppc"
8584 *aarch64*)
8585 aros_target_cpu="aarch64"
8586 target_cpu="aarch64"
8587 aros_object_format="aarch64elf_aros"
8588 aros_flavour="emulation"
8589 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8590 gcc_target_cpu="aarch64"
8591 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8592 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8593 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8594 aros_c_libs="$aros_c_libs -laeabi"
8595 gcc_default_float_abi="hard"
8596 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8598 *armhf*)
8599 aros_target_cpu="arm"
8600 target_cpu="arm"
8601 aros_object_format="armelf_aros"
8602 aros_flavour="emulation"
8603 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8604 gcc_target_cpu="arm"
8605 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8606 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8607 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8608 aros_c_libs="$aros_c_libs -laeabi"
8609 gcc_default_float_abi="hard"
8610 android_tool_dir_prefix="arm-linux-androideabi"
8611 android_tool_prefix="arm-linux-androideabi"
8612 android_ndk_arch="arm"
8613 kernel_tool_prefix="arm-linux-gnueabihf-"
8615 *arm*)
8616 aros_target_cpu="arm"
8617 aros_object_format="armelf_aros"
8618 aros_flavour="emulation"
8619 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8620 gcc_target_cpu="arm"
8621 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8622 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8623 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8624 aros_c_libs="$aros_c_libs -laeabi"
8625 android_tool_dir_prefix="arm-linux-androideabi"
8626 android_tool_prefix="arm-linux-androideabi"
8627 android_ndk_arch="arm"
8628 kernel_tool_prefix="arm-linux-gnueabi-"
8631 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8633 esac
8634 case "$aros_target_variant" in
8635 android)
8637 if test "$android_ndk_arch" = ""; then
8638 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8641 aros_nominal_width=320
8642 aros_nominal_height=480
8643 if test "$aros_android_ndk" = "none"; then
8644 aros_kernel_cflags="-mandroid"
8645 aros_kernel_ldflags="-mandroid"
8646 CFLAGS="-mandroid"
8647 else
8648 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8649 kernel_tool_version=""
8650 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8651 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8652 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8653 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8654 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8656 need_x11=no
8657 # Disable implicit PIC mode
8658 aros_config_cflags="$aros_config_cflags -fno-pic"
8659 kernel_tool_prefix="$android_tool_prefix-"
8661 esac
8665 aros_target_arch="pc"
8666 aros_shared_default="no"
8667 target_bootloader="grub2"
8668 case "$target_cpu" in
8669 *i?86*)
8670 aros_target_cpu="i386"
8673 if test "$aros_object_format" = "" ; then
8674 aros_object_format="elf_i386"
8676 aros_flavour="standalone"
8677 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8678 aros_isa_flags="$""(ISA_X86_FLAGS)"
8679 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8680 aros_kernel_ldflags="-Wl,-melf_i386"
8681 aros_nominal_width=640
8682 aros_nominal_height=480
8683 gcc_target_cpu="i386"
8685 *x86_64*)
8686 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8687 aros_target_cpu="x86_64"
8688 aros_serial_debug=1
8689 if test "$aros_object_format" = "" ; then
8690 aros_object_format="elf_x86_64"
8692 aros_flavour="standalone"
8693 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8694 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8695 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8696 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8697 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8698 aros_kernel_ldflags=""
8699 aros_nominal_width=640
8700 aros_nominal_height=480
8701 case "$aros_target_variant" in
8702 smp)
8703 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8705 esac
8708 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8710 esac
8713 prep)
8714 aros_target_arch="prep"
8715 aros_shared_default="no"
8716 aros_target_cpu="ppc"
8717 aros_object_format="elf32ppc"
8718 aros_flavour="ppcnative"
8719 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8720 aros_kernel_ldflags=""
8721 aros_nominal_width=640
8722 aros_nominal_height=480
8723 gcc_target_cpu="ppc"
8726 freebsd*)
8727 aros_target_arch="freebsd"
8728 aros_target_family="unix"
8729 aros_target_cpu="i386"
8730 aros_flavour="emulation"
8731 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8732 gcc_target_cpu="i386"
8734 aros_target_strip_flags="-x"
8737 darwin*)
8738 aros_target_arch="darwin"
8739 aros_target_family="unix"
8740 aros_flavour="emulation"
8741 case "$target_cpu" in
8742 *i?86*)
8743 aros_ios_platform="iPhoneSimulator"
8744 aros_target_cpu="i386"
8745 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8746 aros_isa_flags="$""(ISA_X86_FLAGS)"
8747 aros_kernel_ldflags=""
8748 aros_macosx_version="10.4"
8749 aros_nominal_depth=8
8750 gcc_target_cpu="i386"
8751 aros_object_format="elf_i386"
8752 aros_kernel_ar_flags="-cr"
8753 aros_target_strip_flags="-x"
8754 kernel_tool_flags="-m32"
8756 *x86_64*)
8757 aros_target_cpu="x86_64"
8758 aros_object_format="elf_x86_64"
8759 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8760 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8761 aros_macosx_version="10.6"
8762 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8763 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8764 aros_kernel_cflags="-m64"
8765 aros_kernel_ldflags="-m64"
8766 aros_nominal_depth=8
8767 aros_kernel_rs="$toolchain_ar"
8768 aros_kernel_ar_flags="-cr"
8769 aros_kernel_ld="$toolchain_ld"
8770 aros_kernel_as="$toolchain_as"
8771 aros_kernel_ranlib="$toolchain_ranlib"
8772 aros_kernel_nm="$toolchain_nm"
8773 aros_kernel_strip="strip"
8774 kernel_tool_prefix="i686-apple-darwin10-"
8776 *ppc*)
8777 aros_target_cpu="ppc"
8778 aros_object_format="elf32ppc"
8779 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8780 aros_kernel_ldflags=""
8781 aros_macosx_version="10.0"
8782 aros_nominal_depth=8
8783 gcc_target_cpu="ppc"
8784 aros_kernel_rs="$toolchain_ar"
8785 aros_kernel_ar_flags="-cr"
8786 aros_kernel_ld="$toolchain_ld -arch ppc"
8787 aros_kernel_as="$toolchain_as -arch ppc"
8788 aros_kernel_ranlib="$toolchain_ranlib -arch ppc"
8789 aros_kernel_nm="$toolchain_nm -arch ppc"
8790 aros_kernel_strip="strip -arch ppc"
8791 kernel_tool_prefix="powerpc-apple-darwin10-"
8793 *arm*)
8794 aros_ios_platform="iPhoneOS"
8795 aros_target_cpu="arm"
8796 aros_object_format="armelf_aros"
8797 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8798 aros_c_libs="$aros_c_libs -laeabi"
8799 aros_nominal_depth=8
8800 gcc_target_cpu="arm"
8801 aros_kernel_rs="$toolchain_ar"
8802 aros_kernel_ar_flags="-cr"
8803 aros_kernel_ld="$toolchain_ld -arch arm"
8804 aros_kernel_ranlib="$toolchain_ranlib -arch arm"
8805 kernel_tool_prefix="arm-apple-darwin10-"
8806 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8809 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8811 esac
8812 case "$aros_target_variant" in
8813 ios)
8814 make_extra_targetcfg="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
8815 aros_ios_version="3.0"
8816 aros_nominal_width=320
8817 aros_nominal_height=480
8818 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8819 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"
8820 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8821 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8822 need_x11=no
8823 # This is here because it may depend on iOS or SDK version
8824 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8825 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8826 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8829 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8830 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8832 esac
8835 dragonfly*)
8836 aros_target_arch="dragonfly"
8837 aros_target_family="unix"
8838 aros_flavour="emulation"
8839 case "$target_cpu" in
8840 *i?86*)
8841 aros_target_cpu="i386"
8842 aros_object_format="elf_i386"
8843 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8844 aros_isa_flags="$""(ISA_X86_FLAGS)"
8846 *x86_64*)
8847 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8848 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8849 aros_target_cpu="x86_64"
8850 aros_object_format="elf_x86_64"
8851 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8852 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8855 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8857 esac
8860 netbsd*)
8861 aros_target_arch="netbsd"
8862 aros_target_family="unix"
8863 case "$target_cpu" in
8864 *m68k*)
8865 aros_target_cpu="m68k"
8866 aros_object_format="m68kelf"
8867 aros_flavour="emulcompat"
8868 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8869 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8870 gcc_target_cpu="mc68000"
8872 *i?86*)
8873 aros_target_cpu="i386"
8874 aros_object_format="elf_i386"
8875 aros_flavour="emulation"
8876 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8877 aros_isa_flags="$""(ISA_X86_FLAGS)"
8878 aros_nominal_depth=8
8879 gcc_target_cpu="i386"
8882 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8884 esac
8885 aros_target_genmap="-Wl,-M -Xlinker >"
8886 aros_flavour="emulation"
8887 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8890 openbsd*)
8891 aros_target_arch="openbsd"
8892 aros_target_family="unix"
8893 case "$target_cpu" in
8894 *i?86*)
8895 aros_target_cpu="i386"
8896 aros_object_format="elf_i386"
8897 aros_flavour="emulation"
8898 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8899 aros_isa_flags="$""(ISA_X86_FLAGS)"
8900 gcc_target_cpu="i386"
8903 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8905 esac
8906 aros_target_genmap="-Wl,-M -Xlinker >"
8907 aros_target_nm_flags="-u"
8908 aros_flavour="emulation"
8911 solaris*)
8912 aros_target_arch="solaris"
8913 aros_target_family="unix"
8914 case "$target_cpu" in
8915 *i?86*)
8916 aros_target_cpu="i386"
8917 aros_object_format="elf_i386"
8918 aros_flavour="emulation"
8919 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8920 aros_isa_flags="$""(ISA_X86_FLAGS)"
8921 aros_nominal_depth=8
8922 gcc_target_cpu="i386"
8924 *sparc*)
8925 aros_target_cpu="sparc"
8926 aros_object_format="elf_sparc"
8927 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8928 gcc_target_cpu="sparc"
8931 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8933 esac
8934 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8935 aros_flavour="emulation"
8938 morphos*)
8939 aros_target_arch="morphos"
8940 aros_shared_default="no"
8941 aros_target_cpu="ppc"
8942 aros_object_format="elf_ppc"
8943 aros_flavour="nativecompat"
8944 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8945 gcc_target_cpu="ppc"
8948 sam440)
8949 aros_target_arch="sam440"
8950 aros_shared_default="no"
8951 aros_target_cpu="ppc"
8952 aros_object_format="elf32ppc"
8953 aros_flavour="ppcnative"
8954 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8955 aros_kernel_ldflags=""
8956 aros_nominal_width=1024
8957 aros_nominal_height=768
8958 aros_nominal_depth=24
8959 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8960 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8961 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8962 gcc_target_cpu="powerpc"
8965 efika)
8966 aros_target_arch="efika"
8967 aros_shared_default="no"
8968 aros_target_cpu="arm"
8969 aros_object_format="armelf_aros"
8970 aros_flavour="standalone"
8971 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8972 aros_kernel_ldflags=""
8973 aros_nominal_width=1024
8974 aros_nominal_height=600
8975 aros_c_libs="$aros_c_libs -laeabi"
8976 gcc_default_cpu="armv7-a"
8977 gcc_default_fpu="vfpv3"
8978 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8979 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8980 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8981 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8982 if test "$optimization" = "default"; then
8983 optimization_level="-Os"
8985 case "$target_cpu" in
8986 *armhf*)
8987 gcc_default_float_abi="hard"
8988 target_cpu=arm
8989 aros_target_cpu=arm
8991 *arm*)
8992 gcc_default_float_abi="softfp"
8995 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8997 esac
9000 chrp)
9001 aros_target_arch="chrp"
9002 aros_shared_default="no"
9003 aros_target_cpu="ppc"
9004 aros_object_format="elf32ppc"
9005 aros_flavour="ppcnative"
9006 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9007 aros_kernel_ldflags=""
9008 aros_nominal_width=640
9009 aros_nominal_height=480
9010 aros_isa_flags="$aros_isa_flags -mno-toc"
9011 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9012 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9013 gcc_target_cpu="powerpc"
9014 case "$aros_target_variant" in
9015 efika)
9016 aros_isa_flags="$aros_isa_flags -mcpu=603e"
9017 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
9019 esac
9022 r*pi)
9023 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
9024 aros_flavour="standalone"
9025 aros_target_arch="raspi"
9027 aros_shared_default="no"
9029 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
9031 case "$target_cpu" in
9032 *aarch64*)
9033 aros_target_cpu="aarch64"
9034 gcc_default_cpu="aarch64"
9035 aros_object_format="aarch64elf_aros"
9037 *armhf*)
9038 aros_target_cpu="arm"
9039 gcc_default_cpu="armv6zk"
9040 gcc_default_cpu_tune="arm1176jzf-s"
9041 aros_object_format="armelf_aros"
9042 aros_isa_flags="$aros_isa_flags -marm"
9043 aros_config_cflags="$aros_config_cflags"
9044 aros_config_cxxflags="$aros_config_cxxflags"
9045 aros_config_aflags="$aros_config_aflags -marm"
9046 aros_kernel_cflags="$aros_kernel_cflags -marm"
9047 aros_target_mkdep="$aros_target_mkdep -Darm"
9048 aros_c_libs="$aros_c_libs -laeabi"
9050 *armeb*)
9051 aros_flavour="standcompat"
9052 aros_target_cpu="armeb"
9053 gcc_default_float_abi="hard"
9054 gcc_default_cpu="armv7ve"
9055 gcc_default_cpu_tune="cortex-a7"
9056 aros_object_format="armelfb_aros"
9057 aros_isa_flags="$aros_isa_flags -marm"
9058 aros_config_cflags="$aros_config_cflags"
9059 aros_config_cxxflags="$aros_config_cxxflags"
9060 aros_config_aflags="$aros_config_aflags -marm"
9061 aros_kernel_cflags="$aros_kernel_cflags -marm"
9062 aros_target_mkdep="$aros_target_mkdep -Darm"
9063 aros_c_libs="$aros_c_libs -laeabi"
9065 *arm*)
9066 aros_target_cpu="arm"
9067 gcc_default_cpu="armv6zk"
9068 gcc_default_cpu_tune="arm1176jzf-s"
9069 aros_object_format="armelf_aros"
9070 aros_isa_flags="$aros_isa_flags -marm"
9071 aros_config_cflags="$aros_config_cflags"
9072 aros_config_cxxflags="$aros_config_cxxflags"
9073 aros_config_aflags="$aros_config_aflags -marm"
9074 aros_kernel_cflags="$aros_kernel_cflags -marm"
9075 aros_target_mkdep="$aros_target_mkdep -Darm"
9076 aros_c_libs="$aros_c_libs -laeabi"
9079 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
9081 esac
9083 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9084 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9085 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9086 aros_kernel_cflags="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9088 case "$aros_target_variant" in
9089 smp)
9090 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
9092 esac
9095 stm32f7_discovery)
9096 aros_flavour="standalone"
9097 aros_target_arch="stm32f7_discovery"
9098 aros_target_cpu="arm"
9099 aros_target_cpu_mode="thumb2"
9100 aros_object_format="armelf_aros"
9101 aros_shared_default="no"
9103 gcc_default_cpu="armv7e-m"
9104 gcc_default_cpu_tune="cortex-m7"
9105 gcc_default_fpu="fpv5-sp-d16"
9106 gcc_default_float_abi="hard"
9108 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
9111 amiga*)
9112 aros_elf_translate="$""(ELF2HUNK)"
9113 make_extra_commands="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
9114 aros_target_arch="amiga"
9115 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9116 aros_shared_default="no"
9118 case "$target_cpu" in
9119 *m68k*)
9120 # Check whether --enable-amigaos_compliance was given.
9121 if test "${enable_amigaos_compliance+set}" = set; then :
9122 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
9125 aros_enable_mmu=no
9126 aros_target_cpu="m68k"
9127 aros_object_format="m68kelf"
9128 aros_flavour="standcompat"
9129 gcc_target_cpu="m68000"
9130 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9131 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
9132 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
9133 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9134 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9135 if test "$optimization" = "default"; then
9136 optimization_level="-Os"
9138 aros_config_aflags="$aros_config_aflags"
9139 aros_target_strip_flags="-R.comment --strip-debug"
9140 aros_nominal_width=640
9141 aros_nominal_height=256
9142 aros_nominal_depth=2
9144 *ppc*)
9145 aros_cpu="ppc"
9146 aros_flavour="native"
9147 gcc_target_cpu="ppc"
9150 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
9152 esac
9155 mingw*)
9156 aros_target_arch="mingw32"
9157 aros_shared_default="no"
9158 aros_flavour="emulation"
9159 aros_shared_cflags=""
9160 need_crosstools="yes"
9161 need_dlopen="no"
9162 rescomp="windres"
9163 case "$target_cpu" in
9164 *i?86*)
9165 aros_target_cpu="i386"
9166 aros_object_format="elf_i386"
9167 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9168 aros_isa_flags="$""(ISA_X86_FLAGS)"
9169 aros_nominal_depth=8
9170 gcc_target_cpu="i386"
9172 kernel_tool_prefix="i386-mingw32-"
9174 *x86_64*)
9175 aros_target_cpu="x86_64"
9176 aros_object_format="elf_x86_64"
9177 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9178 aros_isa_flags="$""(ISA_X8664_FLAGS)"
9179 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9180 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9181 aros_nominal_depth=8
9182 kernel_tool_prefix="x86_64-w64-mingw32-"
9184 *arm*)
9185 aros_target_cpu="arm"
9186 aros_object_format="armelf_aros"
9187 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9188 aros_c_libs="$aros_c_libs -laeabi"
9189 aros_nominal_depth=8
9190 gcc_target_cpu="arm"
9191 gcc_default_float_abi="soft"
9192 kernel_tool_prefix="arm-mingw32ce-"
9193 aros_nominal_width=160
9194 aros_nominal_height=160
9197 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
9199 esac
9200 if test $host_os = "cygwin"; then
9201 aros_kernel_cflags="-mno-cygwin"
9204 pp*)
9205 aros_target_arch="pp"
9206 aros_shared_default="no"
9207 case "$target_cpu" in
9208 *m68k*)
9209 aros_target_cpu="m68k"
9210 aros_object_format="m68kelf"
9211 aros_flavour="palmnative"
9212 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9213 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9214 aros_nominal_width=160
9215 aros_nominal_height=160
9216 aros_nominal_depth=1
9217 aros_target_ar_flags="cru"
9218 aros_c_libs="$aros_c_libs -lgcc1"
9219 aros_shared_default=no
9220 aros_shared_cflags="-fpic"
9221 aros_shared_aflags=""
9222 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9223 aros_kernel_ldflags="-Wl,-rpath,./lib"
9224 aros_debug_cppflags="$aros_messages_debug"
9225 aros_debug_cflags="$aros_symbols_debug"
9226 aros_debug_aflags=""
9227 aros_debug_ldflags="$aros_symbols_debug"
9228 aros_mungwall_debug="0"
9229 aros_modules_debug="0"
9230 gcc_target_cpu="mc68000"
9231 ignore_undefined_symbols="-ius"
9234 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
9236 esac
9239 mac*)
9240 aros_target_arch="mac"
9241 aros_shared_default="no"
9242 case "$target_cpu" in
9243 *m68k*)
9244 aros_target_cpu="m68k"
9245 aros_object_format="m68kelf"
9246 aros_flavour="mac68knative"
9247 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9248 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9249 aros_nominal_width=512
9250 aros_nominal_height=384
9251 aros_nominal_depth=8
9252 aros_target_ar_flags="cru"
9253 aros_c_libs="$aros_c_libs -lgcc1"
9254 aros_shared_default=no
9255 aros_shared_cflags="-fpic"
9256 aros_shared_aflags=""
9257 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9258 aros_kernel_ldflags="-Wl,-rpath,./lib"
9259 aros_debug_cppflags="$aros_messages_debug"
9260 aros_debug_cflags="$aros_symbols_debug"
9261 aros_debug_aflags=""
9262 aros_debug_ldflags="$aros_symbols_debug"
9263 aros_mungwall_debug="0"
9264 aros_modules_debug="0"
9265 gcc_target_cpu="mc68000"
9266 ignore_undefined_symbols="-ius"
9269 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9271 esac
9275 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
9277 esac
9279 #-----------------------------------------------------------------------------
9280 crosstools_guess="yes"
9281 aros_target_toolchain="no"
9282 aros_kernel_sysroot=""
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9285 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9287 # Check whether --with-kernel-toolchain-prefix was given.
9288 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9289 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9293 $as_echo "$kernel_tool_prefix" >&6; }
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9296 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9298 # Check whether --with-elf-toolchain-prefix was given.
9299 if test "${with_elf_toolchain_prefix+set}" = set; then :
9300 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
9301 crosstools_guess="no"
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9305 $as_echo "$elf_tool_prefix" >&6; }
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9308 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9310 # Check whether --with-aros-toolchain was given.
9311 if test "${with_aros_toolchain+set}" = set; then :
9312 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
9313 crosstools_guess="no"
9316 if test "$aros_tool_prefix" = "yes" ; then
9317 aros_tool_prefix=$aros_target_cpu-aros-
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9320 $as_echo "$aros_tool_prefix" >&6; }
9322 #-----------------------------------------------------------------------------
9323 # Checking if we should build crosstools..
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9325 $as_echo_n "checking whether to build crosstools... " >&6; }
9326 # Check whether --enable-crosstools was given.
9327 if test "${enable_crosstools+set}" = set; then :
9328 enableval=$enable_crosstools; crosstools="$enableval"
9329 else
9330 crosstools="$crosstools_guess"
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9334 $as_echo "$crosstools" >&6; }
9336 if test "${crosstools}" = "yes"; then
9337 if test "${crosstools_guess}" = "no"; then
9338 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9342 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
9343 aros_target_toolchain="yes"
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9347 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9349 # Check whether --with-aros-toolchain-install was given.
9350 if test "${with_aros_toolchain_install+set}" = set; then :
9351 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9354 if test "x$aros_toolchain_install" = "x"; then
9355 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9356 else
9357 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9358 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9359 if test "$crosstools_guess" = "no" ; then
9360 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9361 aros_kernel_sysroot="$""(TARGET_SYSROOT)"
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9366 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9368 #-----------------------------------------------------------------------------
9369 if test "$aros_toolchain" = "gnu" ; then
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9371 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9374 # Check whether --with-binutils-version was given.
9375 if test "${with_binutils_version+set}" = set; then :
9376 withval=$with_binutils_version; use_binutils_version="$withval"
9377 else
9378 use_binutils_version=""
9381 if test "$use_binutils_version" = ""; then
9382 target_binutils_version="$default_binutils_version"
9383 else
9384 target_binutils_version="$use_binutils_version"
9386 if test "$aros_toolchain" = "gnu" ; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9388 $as_echo "$target_binutils_version" >&6; }
9392 # Helper to identify gcc version
9395 #-----------------------------------------------------------------------------
9396 if test "$aros_toolchain" = "gnu" ; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9398 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9401 # Check whether --with-gcc-version was given.
9402 if test "${with_gcc_version+set}" = set; then :
9403 withval=$with_gcc_version; use_gcc_version="$withval"
9404 else
9405 use_gcc_version=""
9408 if test "$use_gcc_version" = ""; then
9409 if test "${crosstools}" = "no"; then
9410 if test "x$aros_toolchain_install" != "x"; then
9412 target_gcc_version=""
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9414 $as_echo_n "checking gcc version... " >&6; }
9415 if ${ax_cv_gcc_version+:} false; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9419 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9420 if test "x$ax_cv_gcc_version" = "x"; then :
9422 ax_cv_gcc_version=""
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9428 $as_echo "$ax_cv_gcc_version" >&6; }
9429 target_gcc_version=$ax_cv_gcc_version
9434 if test "$use_gcc_version" = ""; then
9435 target_gcc_version="$default_gcc_version"
9437 else
9438 target_gcc_version="$use_gcc_version"
9440 if test "$aros_toolchain" = "gnu" ; then
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9442 $as_echo "$target_gcc_version" >&6; }
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version string style" >&5
9445 $as_echo_n "checking version string style... " >&6; }
9446 if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: snapshot" >&5
9448 $as_echo "snapshot" >&6; }
9449 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'-' -f1)
9450 GCC_VERSION_MINOR=-1
9451 GCC_VERSION_PATCH=-1
9452 else
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
9454 $as_echo "release" >&6; }
9455 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9456 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9457 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9460 gcc_fix_bitfields="false"
9461 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9462 gcc_fix_bitfields="true"
9463 else
9464 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9465 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9466 gcc_fix_bitfields="true"
9471 if test "$gcc_fix_bitfields" = "true" ; then
9472 case "$aros_target_cpu" in
9473 *x86_64* | *i?86*)
9474 x86_isa_extra="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9475 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9477 esac
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9482 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9483 # Check whether --enable-objc was given.
9484 if test "${enable_objc+set}" = set; then :
9485 enableval=$enable_objc; objc="$enableval"
9486 else
9487 objc="no"
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9491 $as_echo "$objc" >&6; }
9492 if test "x$objc" = "xyes"; then
9493 objc_target="$objc"
9494 else
9495 objc_target="no-objc"
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9499 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9500 # Check whether --enable-java was given.
9501 if test "${enable_java+set}" = set; then :
9502 enableval=$enable_java; java="$enableval"
9503 else
9504 java="no"
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9508 $as_echo "$java" >&6; }
9509 if test "x$java" != "xno"; then
9510 java_target="$java"
9511 else
9512 java_target="no-java"
9515 spec_obj_format="-m $aros_object_format"
9516 # Now process extra architecture-specific options.
9517 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9518 # as well as floating-point ABI.
9519 case "$aros_target_cpu" in
9520 *m68k*)
9521 aros_isa_targets="M68K_ISA_TARGETS :=MC68020 MC68040"
9522 aros_isa_extra="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9523 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"
9524 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"
9525 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"
9526 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"
9527 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"
9529 *x86_64*)
9530 aros_isa_extra="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9531 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9533 arm*)
9534 if test "$gcc_default_cpu" = ""; then
9535 gcc_default_cpu="armv6"
9537 if test "$gcc_default_fpu" = ""; then
9538 gcc_default_fpu="vfp"
9540 if test "$gcc_default_endian" = ""; then
9541 if test "$target_cpu" = "armeb"; then
9542 gcc_default_endian="big-endian"
9543 else
9544 gcc_default_endian="little-endian"
9547 if test "$gcc_default_float_abi" = ""; then
9548 if test "$target_cpu" = "armhf"; then
9549 gcc_default_float_abi="hard"
9550 else
9551 gcc_default_float_abi="softfp"
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9556 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9558 # Check whether --with-cpu was given.
9559 if test "${with_cpu+set}" = set; then :
9560 withval=$with_cpu; aros_gcc_cpu="$withval"
9561 else
9562 aros_gcc_cpu=$gcc_default_cpu
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9566 $as_echo "$aros_gcc_cpu" >&6; }
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9569 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9571 # Check whether --with-fpu was given.
9572 if test "${with_fpu+set}" = set; then :
9573 withval=$with_fpu; aros_gcc_fpu="$withval"
9574 else
9575 aros_gcc_fpu=$gcc_default_fpu
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9579 $as_echo "$aros_gcc_fpu" >&6; }
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9582 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9584 # Check whether --with-float was given.
9585 if test "${with_float+set}" = set; then :
9586 withval=$with_float; aros_gcc_float_abi="$withval"
9587 else
9588 aros_gcc_float_abi=$gcc_default_float_abi
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9592 $as_echo "$aros_gcc_float_abi" >&6; }
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9595 $as_echo_n "checking Which ARM mode to use... " >&6; }
9596 if test "$aros_target_cpu_mode" = ""; then
9597 aros_target_cpu_mode="arm32"
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9599 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9600 else
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9602 $as_echo "$aros_target_cpu_mode" >&6; }
9605 case "$aros_target_cpu_mode" in
9606 arm32)
9607 gcc_default_mode="arm"
9608 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"
9610 arm64)
9611 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9613 thumb)
9614 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9616 thumb1)
9617 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9619 thumb2)
9620 gcc_default_mode="thumb"
9621 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9622 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"
9625 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9627 esac
9629 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9630 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9631 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9633 i386)
9634 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9635 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9637 esac
9639 # Some architectures may need custom ELF specs.
9640 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9641 elf_specs_in=config/${aros_object_format}-specs.in
9642 else
9643 elf_specs_in=config/elf-specs.in
9646 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9647 # Since we override specs, we may need to put these defines there
9648 if test "$gcc_target_cpu" != ""; then
9649 gcc_target_cpu="-D__${gcc_target_cpu}__"
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9653 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9655 # Check whether --with-portssources was given.
9656 if test "${with_portssources+set}" = set; then :
9657 withval=$with_portssources; with_portssrcdir=$withval
9658 else
9659 with_portssrcdir="default"
9662 if test "$with_portssrcdir" = "default"; then
9663 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9664 else
9665 AROS_PORTSSRCDIR="$with_portssrcdir"
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9668 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9671 $as_echo_n "checking which bootloader to use... " >&6; }
9673 # Check whether --with-bootloader was given.
9674 if test "${with_bootloader+set}" = set; then :
9675 withval=$with_bootloader; target_bootloader=$withval
9676 else
9677 target_bootloader=$target_bootloader
9680 if test "$target_bootloader" = "none"; then
9681 aros_target_bootloader=""
9682 else
9683 aros_target_bootloader="$target_bootloader"
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9686 $as_echo "$target_bootloader" >&6; }
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9689 $as_echo_n "checking which icon-set to use... " >&6; }
9691 # Check whether --with-iconset was given.
9692 if test "${with_iconset+set}" = set; then :
9693 withval=$with_iconset; target_iconset=$withval
9694 else
9695 target_iconset="default"
9698 if test "$target_iconset" = "default"; then
9699 aros_target_iconset="Gorilla"
9700 target_iconset="default (Gorilla)"
9701 else
9702 aros_target_iconset="$target_iconset"
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9705 $as_echo "$target_iconset" >&6; }
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9708 $as_echo_n "checking which GUI Theme to use... " >&6; }
9710 # Check whether --with-theme was given.
9711 if test "${with_theme+set}" = set; then :
9712 withval=$with_theme; target_guitheme=$withval
9713 else
9714 target_guitheme="default"
9717 if test "$target_guitheme" = "default"; then
9718 aros_target_guitheme="Ice"
9719 else
9720 aros_target_guitheme="$target_guitheme"
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9723 $as_echo "$aros_target_guitheme" >&6; }
9725 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9726 # for target code)
9727 cross_compiling=no
9729 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9730 cross_compiling=yes
9733 if test "$aros_host_cpu" == "x86_64" ; then
9734 if test "$aros_target_cpu" == "i386" ; then
9735 cross_compiling=no
9739 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9740 if test "$aros_host_arch" != "$aros_target_arch" ; then
9741 cross_compiling=yes
9743 else
9744 cross_compiling=yes
9747 if test "$cross_compiling" = "no" ; then
9748 kernel_tool_prefix=""
9749 if test "$host_cc_elf" = "yes" ; then
9750 elf_tool_prefix=""
9754 if test "$kernel_tool_version" != ""; then
9755 kernel_tool_version="-$kernel_tool_version"
9758 #######################################################################
9759 ## Compute what toolchains to use, and their paths ##
9760 #######################################################################
9762 # This takes, as input:
9763 # crosstools {yes,no}
9764 # kernel_tool_version {"",[version]}
9765 # target_tool_version {"",[version]}
9766 # kernel_tool_prefix {none,[some-arch-os-]}
9767 # gnu-toolchain -:
9768 # target_tool_prefix ${aros_target_cpu}-aros-
9769 # aros_tool_prefix ${aros_target_cpu}-aros-
9771 # The output is
9772 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9773 # Where the 'kernel' binaries are located
9774 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9775 # Where the 'target' binaries are located
9776 # (not the symlink farm - that is aros_target_*!)
9778 # The rules are:
9779 # if crosstools then
9780 # if kernel_tools_prefix = "no-kernel-prefix-"
9781 # aros_kernel_* = crosstools cc paths
9782 # aros_kernel_cc = elf cc wrapper around crosstools cc
9783 # else
9784 # VALIDATE(${kernel_tools_prefix}*)
9785 # aros_kernel_* = ${kernel_tools_prefix}*
9786 # if ${kernel_tools_prefix}cc is an AROS gcc
9787 # aros_kernel_cc = ${kernel_tools_prefix}cc
9788 # else
9789 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9790 # fi
9791 # fi
9793 # orig_target_* = aros built crosstools
9794 # orig_target_cc = elf cc wrapper around crosstools cc
9795 # else
9796 # VALIDATE(${kernel_tools_prefix}*)
9798 # orig_target_* = aros_kernel_*
9799 # if aros_kernel_cc is an AROS gcc
9800 # orig_target_cc = aros_kernel_cc
9801 # else
9802 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9803 # fi
9804 # fi
9806 if test "$aros_toolchain" = "gnu" ; then
9807 target_tool_prefix="${aros_target_cpu}-aros-"
9808 elif test "$aros_toolchain" = "llvm" ; then
9809 target_tool_prefix="bin/"
9812 if test "$kernel_tool_prefix" != "" ; then
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9814 $as_echo_n "checking which kernel tools... " >&6; }
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9816 $as_echo "$kernel_tool_prefix" >&6; };
9819 if test "$kernel_tool_prefix" = "none" ; then
9820 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9821 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9823 else
9824 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
9825 # Kernel tools required - find them
9826 # Note that 'normally', aros_kernel_* overrides will be
9827 # empty, unless specified in the per-arch sections above.
9828 test_kernel_cc=yes
9829 if test "x$aros_kernel_cpp" = "x"; then
9830 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9832 if test "${kernel_tool_version}" != ""; then
9833 if test "$aros_kernel_cpp" != ""; then
9834 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9835 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9836 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9840 if test "$aros_kernel_cpp" = ""; then
9841 if test "$cross_compiling" = "yes" ; then
9842 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9843 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9845 $as_echo_n "checking for $ac_word... " >&6; }
9846 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 case $aros_kernel_cpp in
9850 [\\/]* | ?:[\\/]*)
9851 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855 for as_dir in $PATH
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9861 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9863 break 2
9865 done
9866 done
9867 IFS=$as_save_IFS
9870 esac
9872 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9873 if test -n "$aros_kernel_cpp"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9875 $as_echo "$aros_kernel_cpp" >&6; }
9876 else
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9882 else
9884 if test "" = ""; then
9885 ac_tool_cpp=cpp
9886 else
9887 ac_tool_cpp=
9889 if test "$GCC" = "yes"; then
9890 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
9891 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9892 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9894 $as_echo_n "checking for $ac_word... " >&6; }
9895 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9896 $as_echo_n "(cached) " >&6
9897 else
9898 case $aros_kernel_cpp in
9899 [\\/]* | ?:[\\/]*)
9900 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904 for as_dir in `dirname $aros_gcc_cpp`
9906 IFS=$as_save_IFS
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9910 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 break 2
9914 done
9915 done
9916 IFS=$as_save_IFS
9919 esac
9921 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9922 if test -n "$aros_kernel_cpp"; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9924 $as_echo "$aros_kernel_cpp" >&6; }
9925 else
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927 $as_echo "no" >&6; }
9932 if test "$aros_kernel_cpp" = ""; then
9933 for ac_prog in $ac_tool_cpp
9935 # Extract the first word of "$ac_prog", so it can be a program name with args.
9936 set dummy $ac_prog; ac_word=$2
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938 $as_echo_n "checking for $ac_word... " >&6; }
9939 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9940 $as_echo_n "(cached) " >&6
9941 else
9942 case $aros_kernel_cpp in
9943 [\\/]* | ?:[\\/]*)
9944 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948 for as_dir in $PATH
9950 IFS=$as_save_IFS
9951 test -z "$as_dir" && as_dir=.
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9954 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9956 break 2
9958 done
9959 done
9960 IFS=$as_save_IFS
9963 esac
9965 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9966 if test -n "$aros_kernel_cpp"; then
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9968 $as_echo "$aros_kernel_cpp" >&6; }
9969 else
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9971 $as_echo "no" >&6; }
9975 test -n "$aros_kernel_cpp" && break
9976 done
9981 else
9982 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9983 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9984 set dummy $aros_kernel_cpp; ac_word=$2
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986 $as_echo_n "checking for $ac_word... " >&6; }
9987 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 case $aros_kernel_cpp in
9991 [\\/]* | ?:[\\/]*)
9992 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996 for as_dir in $PATH
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10002 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 break 2
10006 done
10007 done
10008 IFS=$as_save_IFS
10011 esac
10013 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10014 if test -n "$aros_kernel_cpp"; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10016 $as_echo "$aros_kernel_cpp" >&6; }
10017 else
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10023 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
10026 req_avail=yes
10027 if test "$aros_kernel_cpp" = ""; then
10028 req_avail=no
10030 if test "$aros_kernel_cpp" = "no"; then
10031 req_avail=no
10033 if test "$req_avail" = "no"; then
10034 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10037 if test "x$aros_kernel_cc" = "x"; then
10038 aros_kernel_cc=${kernel_tool_prefix}${CC}
10040 if test "${kernel_tool_version}" != ""; then
10041 if test "$aros_kernel_cc" != ""; then
10042 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10043 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
10044 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10048 if test "$aros_kernel_cc" = ""; then
10049 if test "$cross_compiling" = "yes" ; then
10050 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
10051 set dummy ${kernel_tool_prefix}cc; ac_word=$2
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 $as_echo_n "checking for $ac_word... " >&6; }
10054 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10055 $as_echo_n "(cached) " >&6
10056 else
10057 case $aros_kernel_cc in
10058 [\\/]* | ?:[\\/]*)
10059 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063 for as_dir in $PATH
10065 IFS=$as_save_IFS
10066 test -z "$as_dir" && as_dir=.
10067 for ac_exec_ext in '' $ac_executable_extensions; do
10068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10069 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 break 2
10073 done
10074 done
10075 IFS=$as_save_IFS
10078 esac
10080 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10081 if test -n "$aros_kernel_cc"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10083 $as_echo "$aros_kernel_cc" >&6; }
10084 else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10090 else
10092 if test "" = ""; then
10093 ac_tool_cc=cc
10094 else
10095 ac_tool_cc=
10097 if test "$GCC" = "yes"; then
10098 aros_gcc_cc=`$CC -print-prog-name=$ac_tool_cc`
10099 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
10100 set dummy `basename $aros_gcc_cc`; ac_word=$2
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10102 $as_echo_n "checking for $ac_word... " >&6; }
10103 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10104 $as_echo_n "(cached) " >&6
10105 else
10106 case $aros_kernel_cc in
10107 [\\/]* | ?:[\\/]*)
10108 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112 for as_dir in `dirname $aros_gcc_cc`
10114 IFS=$as_save_IFS
10115 test -z "$as_dir" && as_dir=.
10116 for ac_exec_ext in '' $ac_executable_extensions; do
10117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10118 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10120 break 2
10122 done
10123 done
10124 IFS=$as_save_IFS
10127 esac
10129 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10130 if test -n "$aros_kernel_cc"; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10132 $as_echo "$aros_kernel_cc" >&6; }
10133 else
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 $as_echo "no" >&6; }
10140 if test "$aros_kernel_cc" = ""; then
10141 for ac_prog in $ac_tool_cc
10143 # Extract the first word of "$ac_prog", so it can be a program name with args.
10144 set dummy $ac_prog; ac_word=$2
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10146 $as_echo_n "checking for $ac_word... " >&6; }
10147 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 case $aros_kernel_cc in
10151 [\\/]* | ?:[\\/]*)
10152 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156 for as_dir in $PATH
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
10161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10162 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 break 2
10166 done
10167 done
10168 IFS=$as_save_IFS
10171 esac
10173 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10174 if test -n "$aros_kernel_cc"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10176 $as_echo "$aros_kernel_cc" >&6; }
10177 else
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10183 test -n "$aros_kernel_cc" && break
10184 done
10189 else
10190 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10191 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
10192 set dummy $aros_kernel_cc; ac_word=$2
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10194 $as_echo_n "checking for $ac_word... " >&6; }
10195 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10196 $as_echo_n "(cached) " >&6
10197 else
10198 case $aros_kernel_cc in
10199 [\\/]* | ?:[\\/]*)
10200 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in $PATH
10206 IFS=$as_save_IFS
10207 test -z "$as_dir" && as_dir=.
10208 for ac_exec_ext in '' $ac_executable_extensions; do
10209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10210 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10212 break 2
10214 done
10215 done
10216 IFS=$as_save_IFS
10219 esac
10221 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10222 if test -n "$aros_kernel_cc"; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10224 $as_echo "$aros_kernel_cc" >&6; }
10225 else
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10231 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
10234 req_avail=yes
10235 if test "$aros_kernel_cc" = ""; then
10236 req_avail=no
10238 if test "$aros_kernel_cc" = "no"; then
10239 req_avail=no
10241 if test "$req_avail" = "no"; then
10242 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10245 if test "x$aros_kernel_cxx" = "x"; then
10246 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
10248 if test "${kernel_tool_version}" != ""; then
10249 if test "$aros_kernel_cxx" != ""; then
10250 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10251 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
10252 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10256 if test "$aros_kernel_cxx" = ""; then
10257 if test "$cross_compiling" = "yes" ; then
10258 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
10259 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10261 $as_echo_n "checking for $ac_word... " >&6; }
10262 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10263 $as_echo_n "(cached) " >&6
10264 else
10265 case $aros_kernel_cxx in
10266 [\\/]* | ?:[\\/]*)
10267 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271 for as_dir in $PATH
10273 IFS=$as_save_IFS
10274 test -z "$as_dir" && as_dir=.
10275 for ac_exec_ext in '' $ac_executable_extensions; do
10276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10277 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10279 break 2
10281 done
10282 done
10283 IFS=$as_save_IFS
10286 esac
10288 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10289 if test -n "$aros_kernel_cxx"; then
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10291 $as_echo "$aros_kernel_cxx" >&6; }
10292 else
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10294 $as_echo "no" >&6; }
10298 else
10300 if test "" = ""; then
10301 ac_tool_cxx=cxx
10302 else
10303 ac_tool_cxx=
10305 if test "$GCC" = "yes"; then
10306 aros_gcc_cxx=`$CC -print-prog-name=$ac_tool_cxx`
10307 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10308 set dummy `basename $aros_gcc_cxx`; ac_word=$2
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310 $as_echo_n "checking for $ac_word... " >&6; }
10311 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 case $aros_kernel_cxx in
10315 [\\/]* | ?:[\\/]*)
10316 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320 for as_dir in `dirname $aros_gcc_cxx`
10322 IFS=$as_save_IFS
10323 test -z "$as_dir" && as_dir=.
10324 for ac_exec_ext in '' $ac_executable_extensions; do
10325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10326 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 break 2
10330 done
10331 done
10332 IFS=$as_save_IFS
10335 esac
10337 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10338 if test -n "$aros_kernel_cxx"; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10340 $as_echo "$aros_kernel_cxx" >&6; }
10341 else
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10343 $as_echo "no" >&6; }
10348 if test "$aros_kernel_cxx" = ""; then
10349 for ac_prog in $ac_tool_cxx
10351 # Extract the first word of "$ac_prog", so it can be a program name with args.
10352 set dummy $ac_prog; ac_word=$2
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10354 $as_echo_n "checking for $ac_word... " >&6; }
10355 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10356 $as_echo_n "(cached) " >&6
10357 else
10358 case $aros_kernel_cxx in
10359 [\\/]* | ?:[\\/]*)
10360 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364 for as_dir in $PATH
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10370 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10374 done
10375 done
10376 IFS=$as_save_IFS
10379 esac
10381 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10382 if test -n "$aros_kernel_cxx"; then
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10384 $as_echo "$aros_kernel_cxx" >&6; }
10385 else
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387 $as_echo "no" >&6; }
10391 test -n "$aros_kernel_cxx" && break
10392 done
10397 else
10398 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10399 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10400 set dummy $aros_kernel_cxx; ac_word=$2
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10402 $as_echo_n "checking for $ac_word... " >&6; }
10403 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10404 $as_echo_n "(cached) " >&6
10405 else
10406 case $aros_kernel_cxx in
10407 [\\/]* | ?:[\\/]*)
10408 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412 for as_dir in $PATH
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
10416 for ac_exec_ext in '' $ac_executable_extensions; do
10417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10418 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10420 break 2
10422 done
10423 done
10424 IFS=$as_save_IFS
10427 esac
10429 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10430 if test -n "$aros_kernel_cxx"; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10432 $as_echo "$aros_kernel_cxx" >&6; }
10433 else
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10435 $as_echo "no" >&6; }
10439 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10442 # If it's set, make sure it's really there
10443 if test "x$aros_kernel_cxx" != "x" ; then
10444 req_avail=yes
10445 if test "$aros_kernel_cxx" = ""; then
10446 req_avail=no
10448 if test "$aros_kernel_cxx" = "no"; then
10449 req_avail=no
10451 if test "$req_avail" = "no"; then
10452 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10455 if test "x$aros_kernel_ld" = "x"; then
10456 aros_kernel_ld=$aros_host_ld
10459 if test "$aros_kernel_ld" = ""; then
10460 if test "$cross_compiling" = "yes" ; then
10461 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10462 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10464 $as_echo_n "checking for $ac_word... " >&6; }
10465 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10466 $as_echo_n "(cached) " >&6
10467 else
10468 case $aros_kernel_ld in
10469 [\\/]* | ?:[\\/]*)
10470 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in $PATH
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10480 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10484 done
10485 done
10486 IFS=$as_save_IFS
10489 esac
10491 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10492 if test -n "$aros_kernel_ld"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10494 $as_echo "$aros_kernel_ld" >&6; }
10495 else
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10501 else
10503 if test "" = ""; then
10504 ac_tool_ld=ld
10505 else
10506 ac_tool_ld=
10508 if test "$GCC" = "yes"; then
10509 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
10510 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10511 set dummy `basename $aros_gcc_ld`; ac_word=$2
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10513 $as_echo_n "checking for $ac_word... " >&6; }
10514 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10515 $as_echo_n "(cached) " >&6
10516 else
10517 case $aros_kernel_ld in
10518 [\\/]* | ?:[\\/]*)
10519 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523 for as_dir in `dirname $aros_gcc_ld`
10525 IFS=$as_save_IFS
10526 test -z "$as_dir" && as_dir=.
10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10529 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10531 break 2
10533 done
10534 done
10535 IFS=$as_save_IFS
10538 esac
10540 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10541 if test -n "$aros_kernel_ld"; then
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10543 $as_echo "$aros_kernel_ld" >&6; }
10544 else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; }
10551 if test "$aros_kernel_ld" = ""; then
10552 for ac_prog in $ac_tool_ld
10554 # Extract the first word of "$ac_prog", so it can be a program name with args.
10555 set dummy $ac_prog; ac_word=$2
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10557 $as_echo_n "checking for $ac_word... " >&6; }
10558 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 case $aros_kernel_ld in
10562 [\\/]* | ?:[\\/]*)
10563 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567 for as_dir in $PATH
10569 IFS=$as_save_IFS
10570 test -z "$as_dir" && as_dir=.
10571 for ac_exec_ext in '' $ac_executable_extensions; do
10572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10573 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575 break 2
10577 done
10578 done
10579 IFS=$as_save_IFS
10582 esac
10584 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10585 if test -n "$aros_kernel_ld"; then
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10587 $as_echo "$aros_kernel_ld" >&6; }
10588 else
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590 $as_echo "no" >&6; }
10594 test -n "$aros_kernel_ld" && break
10595 done
10600 else
10601 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10602 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10603 set dummy $aros_kernel_ld; ac_word=$2
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10605 $as_echo_n "checking for $ac_word... " >&6; }
10606 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10607 $as_echo_n "(cached) " >&6
10608 else
10609 case $aros_kernel_ld in
10610 [\\/]* | ?:[\\/]*)
10611 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615 for as_dir in $PATH
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10621 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 break 2
10625 done
10626 done
10627 IFS=$as_save_IFS
10630 esac
10632 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10633 if test -n "$aros_kernel_ld"; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10635 $as_echo "$aros_kernel_ld" >&6; }
10636 else
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638 $as_echo "no" >&6; }
10642 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10645 req_avail=yes
10646 if test "$aros_kernel_ld" = ""; then
10647 req_avail=no
10649 if test "$aros_kernel_ld" = "no"; then
10650 req_avail=no
10652 if test "$req_avail" = "no"; then
10653 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10655 if test "x$aros_kernel_as" = "x"; then
10656 aros_kernel_as=$aros_host_as
10657 if test "x$aros_kernel_as" = "x"; then
10658 aros_kernel_as=${HOST_TOOLCHAIN_PREFIX}as${HOST_TOOLCHAIN_SUFFIX}
10662 if test "$aros_kernel_as" = ""; then
10663 if test "$cross_compiling" = "yes" ; then
10664 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10665 set dummy ${kernel_tool_prefix}as; ac_word=$2
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667 $as_echo_n "checking for $ac_word... " >&6; }
10668 if ${ac_cv_path_aros_kernel_as+:} false; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 case $aros_kernel_as in
10672 [\\/]* | ?:[\\/]*)
10673 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677 for as_dir in $PATH
10679 IFS=$as_save_IFS
10680 test -z "$as_dir" && as_dir=.
10681 for ac_exec_ext in '' $ac_executable_extensions; do
10682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10683 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10685 break 2
10687 done
10688 done
10689 IFS=$as_save_IFS
10692 esac
10694 aros_kernel_as=$ac_cv_path_aros_kernel_as
10695 if test -n "$aros_kernel_as"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10697 $as_echo "$aros_kernel_as" >&6; }
10698 else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10704 else
10706 if test "" = ""; then
10707 ac_tool_as=as
10708 else
10709 ac_tool_as=
10711 if test "$GCC" = "yes"; then
10712 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
10713 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10714 set dummy `basename $aros_gcc_as`; ac_word=$2
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10716 $as_echo_n "checking for $ac_word... " >&6; }
10717 if ${ac_cv_path_aros_kernel_as+:} false; then :
10718 $as_echo_n "(cached) " >&6
10719 else
10720 case $aros_kernel_as in
10721 [\\/]* | ?:[\\/]*)
10722 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10726 for as_dir in `dirname $aros_gcc_as`
10728 IFS=$as_save_IFS
10729 test -z "$as_dir" && as_dir=.
10730 for ac_exec_ext in '' $ac_executable_extensions; do
10731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10732 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10734 break 2
10736 done
10737 done
10738 IFS=$as_save_IFS
10741 esac
10743 aros_kernel_as=$ac_cv_path_aros_kernel_as
10744 if test -n "$aros_kernel_as"; then
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10746 $as_echo "$aros_kernel_as" >&6; }
10747 else
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10754 if test "$aros_kernel_as" = ""; then
10755 for ac_prog in $ac_tool_as
10757 # Extract the first word of "$ac_prog", so it can be a program name with args.
10758 set dummy $ac_prog; ac_word=$2
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10760 $as_echo_n "checking for $ac_word... " >&6; }
10761 if ${ac_cv_path_aros_kernel_as+:} false; then :
10762 $as_echo_n "(cached) " >&6
10763 else
10764 case $aros_kernel_as in
10765 [\\/]* | ?:[\\/]*)
10766 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10770 for as_dir in $PATH
10772 IFS=$as_save_IFS
10773 test -z "$as_dir" && as_dir=.
10774 for ac_exec_ext in '' $ac_executable_extensions; do
10775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10776 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10778 break 2
10780 done
10781 done
10782 IFS=$as_save_IFS
10785 esac
10787 aros_kernel_as=$ac_cv_path_aros_kernel_as
10788 if test -n "$aros_kernel_as"; then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10790 $as_echo "$aros_kernel_as" >&6; }
10791 else
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793 $as_echo "no" >&6; }
10797 test -n "$aros_kernel_as" && break
10798 done
10803 else
10804 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10805 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10806 set dummy $aros_kernel_as; ac_word=$2
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808 $as_echo_n "checking for $ac_word... " >&6; }
10809 if ${ac_cv_path_aros_kernel_as+:} false; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 case $aros_kernel_as in
10813 [\\/]* | ?:[\\/]*)
10814 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10818 for as_dir in $PATH
10820 IFS=$as_save_IFS
10821 test -z "$as_dir" && as_dir=.
10822 for ac_exec_ext in '' $ac_executable_extensions; do
10823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10824 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10826 break 2
10828 done
10829 done
10830 IFS=$as_save_IFS
10833 esac
10835 aros_kernel_as=$ac_cv_path_aros_kernel_as
10836 if test -n "$aros_kernel_as"; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10838 $as_echo "$aros_kernel_as" >&6; }
10839 else
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 $as_echo "no" >&6; }
10845 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10848 req_avail=yes
10849 if test "$aros_kernel_as" = ""; then
10850 req_avail=no
10852 if test "$aros_kernel_as" = "no"; then
10853 req_avail=no
10855 if test "$req_avail" = "no"; then
10856 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10858 if test "x$aros_kernel_ar" = "x"; then
10859 aros_kernel_ar=$aros_host_full_ar
10862 if test "$aros_kernel_ar" = ""; then
10863 if test "$cross_compiling" = "yes" ; then
10864 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10865 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10867 $as_echo_n "checking for $ac_word... " >&6; }
10868 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10869 $as_echo_n "(cached) " >&6
10870 else
10871 case $aros_kernel_ar in
10872 [\\/]* | ?:[\\/]*)
10873 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877 for as_dir in $PATH
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
10881 for ac_exec_ext in '' $ac_executable_extensions; do
10882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10883 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 break 2
10887 done
10888 done
10889 IFS=$as_save_IFS
10892 esac
10894 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10895 if test -n "$aros_kernel_ar"; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10897 $as_echo "$aros_kernel_ar" >&6; }
10898 else
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10900 $as_echo "no" >&6; }
10904 else
10906 if test "" = ""; then
10907 ac_tool_ar=ar
10908 else
10909 ac_tool_ar=
10911 if test "$GCC" = "yes"; then
10912 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
10913 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10914 set dummy `basename $aros_gcc_ar`; ac_word=$2
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916 $as_echo_n "checking for $ac_word... " >&6; }
10917 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10918 $as_echo_n "(cached) " >&6
10919 else
10920 case $aros_kernel_ar in
10921 [\\/]* | ?:[\\/]*)
10922 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in `dirname $aros_gcc_ar`
10928 IFS=$as_save_IFS
10929 test -z "$as_dir" && as_dir=.
10930 for ac_exec_ext in '' $ac_executable_extensions; do
10931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10932 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10934 break 2
10936 done
10937 done
10938 IFS=$as_save_IFS
10941 esac
10943 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10944 if test -n "$aros_kernel_ar"; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10946 $as_echo "$aros_kernel_ar" >&6; }
10947 else
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10954 if test "$aros_kernel_ar" = ""; then
10955 for ac_prog in $ac_tool_ar
10957 # Extract the first word of "$ac_prog", so it can be a program name with args.
10958 set dummy $ac_prog; ac_word=$2
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10960 $as_echo_n "checking for $ac_word... " >&6; }
10961 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10962 $as_echo_n "(cached) " >&6
10963 else
10964 case $aros_kernel_ar in
10965 [\\/]* | ?:[\\/]*)
10966 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970 for as_dir in $PATH
10972 IFS=$as_save_IFS
10973 test -z "$as_dir" && as_dir=.
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10976 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10978 break 2
10980 done
10981 done
10982 IFS=$as_save_IFS
10985 esac
10987 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10988 if test -n "$aros_kernel_ar"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10990 $as_echo "$aros_kernel_ar" >&6; }
10991 else
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993 $as_echo "no" >&6; }
10997 test -n "$aros_kernel_ar" && break
10998 done
11003 else
11004 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
11005 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
11006 set dummy $aros_kernel_ar; ac_word=$2
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11008 $as_echo_n "checking for $ac_word... " >&6; }
11009 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11010 $as_echo_n "(cached) " >&6
11011 else
11012 case $aros_kernel_ar in
11013 [\\/]* | ?:[\\/]*)
11014 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018 for as_dir in $PATH
11020 IFS=$as_save_IFS
11021 test -z "$as_dir" && as_dir=.
11022 for ac_exec_ext in '' $ac_executable_extensions; do
11023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11024 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11026 break 2
11028 done
11029 done
11030 IFS=$as_save_IFS
11033 esac
11035 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11036 if test -n "$aros_kernel_ar"; then
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11038 $as_echo "$aros_kernel_ar" >&6; }
11039 else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041 $as_echo "no" >&6; }
11045 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
11048 req_avail=yes
11049 if test "$aros_kernel_ar" = ""; then
11050 req_avail=no
11052 if test "$aros_kernel_ar" = "no"; then
11053 req_avail=no
11055 if test "$req_avail" = "no"; then
11056 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11058 if test "x$aros_kernel_ranlib" = "x"; then
11059 aros_kernel_ranlib=$aros_host_ranlib
11062 if test "$aros_kernel_ranlib" = ""; then
11063 if test "$cross_compiling" = "yes" ; then
11064 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
11065 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11067 $as_echo_n "checking for $ac_word... " >&6; }
11068 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11069 $as_echo_n "(cached) " >&6
11070 else
11071 case $aros_kernel_ranlib in
11072 [\\/]* | ?:[\\/]*)
11073 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11083 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11087 done
11088 done
11089 IFS=$as_save_IFS
11092 esac
11094 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11095 if test -n "$aros_kernel_ranlib"; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11097 $as_echo "$aros_kernel_ranlib" >&6; }
11098 else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100 $as_echo "no" >&6; }
11104 else
11106 if test "" = ""; then
11107 ac_tool_ranlib=ranlib
11108 else
11109 ac_tool_ranlib=
11111 if test "$GCC" = "yes"; then
11112 aros_gcc_ranlib=`$CC -print-prog-name=$ac_tool_ranlib`
11113 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
11114 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11116 $as_echo_n "checking for $ac_word... " >&6; }
11117 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11118 $as_echo_n "(cached) " >&6
11119 else
11120 case $aros_kernel_ranlib in
11121 [\\/]* | ?:[\\/]*)
11122 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126 for as_dir in `dirname $aros_gcc_ranlib`
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11132 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 break 2
11136 done
11137 done
11138 IFS=$as_save_IFS
11141 esac
11143 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11144 if test -n "$aros_kernel_ranlib"; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11146 $as_echo "$aros_kernel_ranlib" >&6; }
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 $as_echo "no" >&6; }
11154 if test "$aros_kernel_ranlib" = ""; then
11155 for ac_prog in $ac_tool_ranlib
11157 # Extract the first word of "$ac_prog", so it can be a program name with args.
11158 set dummy $ac_prog; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11162 $as_echo_n "(cached) " >&6
11163 else
11164 case $aros_kernel_ranlib in
11165 [\\/]* | ?:[\\/]*)
11166 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170 for as_dir in $PATH
11172 IFS=$as_save_IFS
11173 test -z "$as_dir" && as_dir=.
11174 for ac_exec_ext in '' $ac_executable_extensions; do
11175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11176 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11178 break 2
11180 done
11181 done
11182 IFS=$as_save_IFS
11185 esac
11187 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11188 if test -n "$aros_kernel_ranlib"; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11190 $as_echo "$aros_kernel_ranlib" >&6; }
11191 else
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193 $as_echo "no" >&6; }
11197 test -n "$aros_kernel_ranlib" && break
11198 done
11203 else
11204 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11205 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
11206 set dummy $aros_kernel_ranlib; ac_word=$2
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 case $aros_kernel_ranlib in
11213 [\\/]* | ?:[\\/]*)
11214 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH
11220 IFS=$as_save_IFS
11221 test -z "$as_dir" && as_dir=.
11222 for ac_exec_ext in '' $ac_executable_extensions; do
11223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11224 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11226 break 2
11228 done
11229 done
11230 IFS=$as_save_IFS
11233 esac
11235 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11236 if test -n "$aros_kernel_ranlib"; then
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11238 $as_echo "$aros_kernel_ranlib" >&6; }
11239 else
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241 $as_echo "no" >&6; }
11245 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
11248 req_avail=yes
11249 if test "$aros_kernel_ranlib" = ""; then
11250 req_avail=no
11252 if test "$aros_kernel_ranlib" = "no"; then
11253 req_avail=no
11255 if test "$req_avail" = "no"; then
11256 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11258 if test "x$aros_kernel_nm" = "x"; then
11259 aros_kernel_nm=$aros_host_nm
11260 if test "x$aros_kernel_nm" = "x"; then
11261 aros_kernel_nm=${HOST_TOOLCHAIN_PREFIX}nm${HOST_TOOLCHAIN_SUFFIX}
11265 if test "$aros_kernel_nm" = ""; then
11266 if test "$cross_compiling" = "yes" ; then
11267 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
11268 set dummy ${kernel_tool_prefix}nm; ac_word=$2
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11270 $as_echo_n "checking for $ac_word... " >&6; }
11271 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11272 $as_echo_n "(cached) " >&6
11273 else
11274 case $aros_kernel_nm in
11275 [\\/]* | ?:[\\/]*)
11276 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11280 for as_dir in $PATH
11282 IFS=$as_save_IFS
11283 test -z "$as_dir" && as_dir=.
11284 for ac_exec_ext in '' $ac_executable_extensions; do
11285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11286 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11288 break 2
11290 done
11291 done
11292 IFS=$as_save_IFS
11295 esac
11297 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11298 if test -n "$aros_kernel_nm"; then
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11300 $as_echo "$aros_kernel_nm" >&6; }
11301 else
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303 $as_echo "no" >&6; }
11307 else
11309 if test "" = ""; then
11310 ac_tool_nm=nm
11311 else
11312 ac_tool_nm=
11314 if test "$GCC" = "yes"; then
11315 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
11316 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11317 set dummy `basename $aros_gcc_nm`; ac_word=$2
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319 $as_echo_n "checking for $ac_word... " >&6; }
11320 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11323 case $aros_kernel_nm in
11324 [\\/]* | ?:[\\/]*)
11325 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329 for as_dir in `dirname $aros_gcc_nm`
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11335 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 break 2
11339 done
11340 done
11341 IFS=$as_save_IFS
11344 esac
11346 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11347 if test -n "$aros_kernel_nm"; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11349 $as_echo "$aros_kernel_nm" >&6; }
11350 else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352 $as_echo "no" >&6; }
11357 if test "$aros_kernel_nm" = ""; then
11358 for ac_prog in $ac_tool_nm
11360 # Extract the first word of "$ac_prog", so it can be a program name with args.
11361 set dummy $ac_prog; ac_word=$2
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11363 $as_echo_n "checking for $ac_word... " >&6; }
11364 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11365 $as_echo_n "(cached) " >&6
11366 else
11367 case $aros_kernel_nm in
11368 [\\/]* | ?:[\\/]*)
11369 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373 for as_dir in $PATH
11375 IFS=$as_save_IFS
11376 test -z "$as_dir" && as_dir=.
11377 for ac_exec_ext in '' $ac_executable_extensions; do
11378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11379 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11381 break 2
11383 done
11384 done
11385 IFS=$as_save_IFS
11388 esac
11390 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11391 if test -n "$aros_kernel_nm"; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11393 $as_echo "$aros_kernel_nm" >&6; }
11394 else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11400 test -n "$aros_kernel_nm" && break
11401 done
11406 else
11407 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11408 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11409 set dummy $aros_kernel_nm; ac_word=$2
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11411 $as_echo_n "checking for $ac_word... " >&6; }
11412 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 case $aros_kernel_nm in
11416 [\\/]* | ?:[\\/]*)
11417 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $PATH
11423 IFS=$as_save_IFS
11424 test -z "$as_dir" && as_dir=.
11425 for ac_exec_ext in '' $ac_executable_extensions; do
11426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11427 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 break 2
11431 done
11432 done
11433 IFS=$as_save_IFS
11436 esac
11438 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11439 if test -n "$aros_kernel_nm"; then
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11441 $as_echo "$aros_kernel_nm" >&6; }
11442 else
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11448 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
11451 req_avail=yes
11452 if test "$aros_kernel_nm" = ""; then
11453 req_avail=no
11455 if test "$aros_kernel_nm" = "no"; then
11456 req_avail=no
11458 if test "$req_avail" = "no"; then
11459 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11462 if test "$aros_kernel_strip" = ""; then
11463 if test "$cross_compiling" = "yes" ; then
11464 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11465 set dummy ${kernel_tool_prefix}strip; ac_word=$2
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467 $as_echo_n "checking for $ac_word... " >&6; }
11468 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11471 case $aros_kernel_strip in
11472 [\\/]* | ?:[\\/]*)
11473 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477 for as_dir in $PATH
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11483 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11487 done
11488 done
11489 IFS=$as_save_IFS
11492 esac
11494 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11495 if test -n "$aros_kernel_strip"; then
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11497 $as_echo "$aros_kernel_strip" >&6; }
11498 else
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500 $as_echo "no" >&6; }
11504 else
11506 if test "" = ""; then
11507 ac_tool_strip=strip
11508 else
11509 ac_tool_strip=
11511 if test "$GCC" = "yes"; then
11512 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
11513 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11514 set dummy `basename $aros_gcc_strip`; ac_word=$2
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516 $as_echo_n "checking for $ac_word... " >&6; }
11517 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 case $aros_kernel_strip in
11521 [\\/]* | ?:[\\/]*)
11522 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in `dirname $aros_gcc_strip`
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11532 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11536 done
11537 done
11538 IFS=$as_save_IFS
11541 esac
11543 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11544 if test -n "$aros_kernel_strip"; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11546 $as_echo "$aros_kernel_strip" >&6; }
11547 else
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11554 if test "$aros_kernel_strip" = ""; then
11555 for ac_prog in $ac_tool_strip
11557 # Extract the first word of "$ac_prog", so it can be a program name with args.
11558 set dummy $ac_prog; ac_word=$2
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11560 $as_echo_n "checking for $ac_word... " >&6; }
11561 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11562 $as_echo_n "(cached) " >&6
11563 else
11564 case $aros_kernel_strip in
11565 [\\/]* | ?:[\\/]*)
11566 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11570 for as_dir in $PATH
11572 IFS=$as_save_IFS
11573 test -z "$as_dir" && as_dir=.
11574 for ac_exec_ext in '' $ac_executable_extensions; do
11575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11576 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11578 break 2
11580 done
11581 done
11582 IFS=$as_save_IFS
11585 esac
11587 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11588 if test -n "$aros_kernel_strip"; then
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11590 $as_echo "$aros_kernel_strip" >&6; }
11591 else
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593 $as_echo "no" >&6; }
11597 test -n "$aros_kernel_strip" && break
11598 done
11603 else
11604 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11605 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11606 set dummy $aros_kernel_strip; ac_word=$2
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11608 $as_echo_n "checking for $ac_word... " >&6; }
11609 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11610 $as_echo_n "(cached) " >&6
11611 else
11612 case $aros_kernel_strip in
11613 [\\/]* | ?:[\\/]*)
11614 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11624 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11626 break 2
11628 done
11629 done
11630 IFS=$as_save_IFS
11633 esac
11635 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11636 if test -n "$aros_kernel_strip"; then
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11638 $as_echo "$aros_kernel_strip" >&6; }
11639 else
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641 $as_echo "no" >&6; }
11645 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11648 req_avail=yes
11649 if test "$aros_kernel_strip" = ""; then
11650 req_avail=no
11652 if test "$aros_kernel_strip" = "no"; then
11653 req_avail=no
11655 if test "$req_avail" = "no"; then
11656 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11659 # Objcopy and objdump are not required for the kernel
11660 # toolchain on many architectures.
11661 # So we'll look for them, but not make them strictly required.
11662 if test "x$aros_kernel_objcopy" = "x"; then
11663 aros_kernel_objcopy=$aros_host_objcopy
11664 if test "x$aros_kernel_objcopy" = "x"; then
11665 aros_kernel_objcopy=${HOST_TOOLCHAIN_PREFIX}objcopy${HOST_TOOLCHAIN_SUFFIX}
11669 if test "$aros_kernel_objcopy" = ""; then
11670 if test "$cross_compiling" = "yes" ; then
11671 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11672 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674 $as_echo_n "checking for $ac_word... " >&6; }
11675 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11676 $as_echo_n "(cached) " >&6
11677 else
11678 case $aros_kernel_objcopy in
11679 [\\/]* | ?:[\\/]*)
11680 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11684 for as_dir in $PATH
11686 IFS=$as_save_IFS
11687 test -z "$as_dir" && as_dir=.
11688 for ac_exec_ext in '' $ac_executable_extensions; do
11689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11690 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11692 break 2
11694 done
11695 done
11696 IFS=$as_save_IFS
11699 esac
11701 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11702 if test -n "$aros_kernel_objcopy"; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11704 $as_echo "$aros_kernel_objcopy" >&6; }
11705 else
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; }
11711 else
11713 if test "" = ""; then
11714 ac_tool_objcopy=objcopy
11715 else
11716 ac_tool_objcopy=
11718 if test "$GCC" = "yes"; then
11719 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
11720 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11721 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 case $aros_kernel_objcopy in
11728 [\\/]* | ?:[\\/]*)
11729 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 for as_dir in `dirname $aros_gcc_objcopy`
11735 IFS=$as_save_IFS
11736 test -z "$as_dir" && as_dir=.
11737 for ac_exec_ext in '' $ac_executable_extensions; do
11738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11739 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11741 break 2
11743 done
11744 done
11745 IFS=$as_save_IFS
11748 esac
11750 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11751 if test -n "$aros_kernel_objcopy"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11753 $as_echo "$aros_kernel_objcopy" >&6; }
11754 else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11761 if test "$aros_kernel_objcopy" = ""; then
11762 for ac_prog in $ac_tool_objcopy
11764 # Extract the first word of "$ac_prog", so it can be a program name with args.
11765 set dummy $ac_prog; ac_word=$2
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11767 $as_echo_n "checking for $ac_word... " >&6; }
11768 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11769 $as_echo_n "(cached) " >&6
11770 else
11771 case $aros_kernel_objcopy in
11772 [\\/]* | ?:[\\/]*)
11773 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777 for as_dir in $PATH
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11783 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11785 break 2
11787 done
11788 done
11789 IFS=$as_save_IFS
11792 esac
11794 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11795 if test -n "$aros_kernel_objcopy"; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11797 $as_echo "$aros_kernel_objcopy" >&6; }
11798 else
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11804 test -n "$aros_kernel_objcopy" && break
11805 done
11810 else
11811 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11812 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11813 set dummy $aros_kernel_objcopy; ac_word=$2
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11815 $as_echo_n "checking for $ac_word... " >&6; }
11816 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 case $aros_kernel_objcopy in
11820 [\\/]* | ?:[\\/]*)
11821 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825 for as_dir in $PATH
11827 IFS=$as_save_IFS
11828 test -z "$as_dir" && as_dir=.
11829 for ac_exec_ext in '' $ac_executable_extensions; do
11830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11831 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11833 break 2
11835 done
11836 done
11837 IFS=$as_save_IFS
11840 esac
11842 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11843 if test -n "$aros_kernel_objcopy"; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11845 $as_echo "$aros_kernel_objcopy" >&6; }
11846 else
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11852 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11855 if test "x$aros_kernel_objdump" = "x"; then
11856 aros_kernel_objdump=$aros_host_objdump
11857 if test "x$aros_kernel_objdump" = "x"; then
11858 aros_kernel_objdump=${HOST_TOOLCHAIN_PREFIX}objdump${HOST_TOOLCHAIN_SUFFIX}
11862 if test "$aros_kernel_objdump" = ""; then
11863 if test "$cross_compiling" = "yes" ; then
11864 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11865 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867 $as_echo_n "checking for $ac_word... " >&6; }
11868 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 case $aros_kernel_objdump in
11872 [\\/]* | ?:[\\/]*)
11873 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877 for as_dir in $PATH
11879 IFS=$as_save_IFS
11880 test -z "$as_dir" && as_dir=.
11881 for ac_exec_ext in '' $ac_executable_extensions; do
11882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11883 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 break 2
11887 done
11888 done
11889 IFS=$as_save_IFS
11892 esac
11894 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11895 if test -n "$aros_kernel_objdump"; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11897 $as_echo "$aros_kernel_objdump" >&6; }
11898 else
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11904 else
11906 if test "" = ""; then
11907 ac_tool_objdump=objdump
11908 else
11909 ac_tool_objdump=
11911 if test "$GCC" = "yes"; then
11912 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
11913 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11914 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11916 $as_echo_n "checking for $ac_word... " >&6; }
11917 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11918 $as_echo_n "(cached) " >&6
11919 else
11920 case $aros_kernel_objdump in
11921 [\\/]* | ?:[\\/]*)
11922 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in `dirname $aros_gcc_objdump`
11928 IFS=$as_save_IFS
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11932 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 break 2
11936 done
11937 done
11938 IFS=$as_save_IFS
11941 esac
11943 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11944 if test -n "$aros_kernel_objdump"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11946 $as_echo "$aros_kernel_objdump" >&6; }
11947 else
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11954 if test "$aros_kernel_objdump" = ""; then
11955 for ac_prog in $ac_tool_objdump
11957 # Extract the first word of "$ac_prog", so it can be a program name with args.
11958 set dummy $ac_prog; ac_word=$2
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11960 $as_echo_n "checking for $ac_word... " >&6; }
11961 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11962 $as_echo_n "(cached) " >&6
11963 else
11964 case $aros_kernel_objdump in
11965 [\\/]* | ?:[\\/]*)
11966 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11970 for as_dir in $PATH
11972 IFS=$as_save_IFS
11973 test -z "$as_dir" && as_dir=.
11974 for ac_exec_ext in '' $ac_executable_extensions; do
11975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11976 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11978 break 2
11980 done
11981 done
11982 IFS=$as_save_IFS
11985 esac
11987 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11988 if test -n "$aros_kernel_objdump"; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11990 $as_echo "$aros_kernel_objdump" >&6; }
11991 else
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993 $as_echo "no" >&6; }
11997 test -n "$aros_kernel_objdump" && break
11998 done
12003 else
12004 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
12005 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
12006 set dummy $aros_kernel_objdump; ac_word=$2
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008 $as_echo_n "checking for $ac_word... " >&6; }
12009 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 case $aros_kernel_objdump in
12013 [\\/]* | ?:[\\/]*)
12014 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
12020 IFS=$as_save_IFS
12021 test -z "$as_dir" && as_dir=.
12022 for ac_exec_ext in '' $ac_executable_extensions; do
12023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12024 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026 break 2
12028 done
12029 done
12030 IFS=$as_save_IFS
12033 esac
12035 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12036 if test -n "$aros_kernel_objdump"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12038 $as_echo "$aros_kernel_objdump" >&6; }
12039 else
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12045 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
12048 if test "x${crosstools}" != "xyes" ; then
12049 req_avail=yes
12050 if test "$aros_kernel_objcopy" = ""; then
12051 req_avail=no
12053 if test "$aros_kernel_objcopy" = "no"; then
12054 req_avail=no
12056 if test "$req_avail" = "no"; then
12057 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12059 req_avail=yes
12060 if test "$aros_kernel_objdump" = ""; then
12061 req_avail=no
12063 if test "$aros_kernel_objdump" = "no"; then
12064 req_avail=no
12066 if test "$req_avail" = "no"; then
12067 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
12074 $as_echo_n "checking which target tools to use... " >&6; }
12075 if test "$aros_target_toolchain" = "yes"; then
12076 if test "$aros_toolchain" = "llvm" ; then
12077 msg_result="llvm"
12078 else
12079 msg_result=$target_tool_prefix
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
12082 $as_echo "$msg_result" >&6; }
12083 # We are building AROS crosstools
12084 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
12085 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
12086 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
12087 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
12088 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
12089 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
12090 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
12091 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
12092 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
12093 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
12094 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
12095 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
12096 else
12097 # Determine whether AROS or ELF tools should be used
12098 if test "$aros_tool_prefix" = "none"; then
12099 aros_tool_prefix="${elf_tool_prefix}"
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
12103 $as_echo "$aros_tool_prefix" >&6; }
12104 # We are *not* building AROS crosstools - use the AROS or ELF tools
12106 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
12107 if test "$cross_compiling" = "yes" ; then
12108 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
12109 set dummy ${target_tool_prefix}cpp; ac_word=$2
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12111 $as_echo_n "checking for $ac_word... " >&6; }
12112 if ${ac_cv_path_orig_target_cpp+:} false; then :
12113 $as_echo_n "(cached) " >&6
12114 else
12115 case $orig_target_cpp in
12116 [\\/]* | ?:[\\/]*)
12117 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121 for as_dir in $PATH
12123 IFS=$as_save_IFS
12124 test -z "$as_dir" && as_dir=.
12125 for ac_exec_ext in '' $ac_executable_extensions; do
12126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12127 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12129 break 2
12131 done
12132 done
12133 IFS=$as_save_IFS
12136 esac
12138 orig_target_cpp=$ac_cv_path_orig_target_cpp
12139 if test -n "$orig_target_cpp"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12141 $as_echo "$orig_target_cpp" >&6; }
12142 else
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12148 else
12150 if test "" = ""; then
12151 ac_tool_cpp=cpp
12152 else
12153 ac_tool_cpp=
12155 if test "$GCC" = "yes"; then
12156 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
12157 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
12158 set dummy `basename $aros_gcc_cpp`; ac_word=$2
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if ${ac_cv_path_orig_target_cpp+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 case $orig_target_cpp in
12165 [\\/]* | ?:[\\/]*)
12166 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170 for as_dir in `dirname $aros_gcc_cpp`
12172 IFS=$as_save_IFS
12173 test -z "$as_dir" && as_dir=.
12174 for ac_exec_ext in '' $ac_executable_extensions; do
12175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12176 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12178 break 2
12180 done
12181 done
12182 IFS=$as_save_IFS
12185 esac
12187 orig_target_cpp=$ac_cv_path_orig_target_cpp
12188 if test -n "$orig_target_cpp"; then
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12190 $as_echo "$orig_target_cpp" >&6; }
12191 else
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12198 if test "$orig_target_cpp" = ""; then
12199 for ac_prog in $ac_tool_cpp
12201 # Extract the first word of "$ac_prog", so it can be a program name with args.
12202 set dummy $ac_prog; ac_word=$2
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204 $as_echo_n "checking for $ac_word... " >&6; }
12205 if ${ac_cv_path_orig_target_cpp+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 case $orig_target_cpp in
12209 [\\/]* | ?:[\\/]*)
12210 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214 for as_dir in $PATH
12216 IFS=$as_save_IFS
12217 test -z "$as_dir" && as_dir=.
12218 for ac_exec_ext in '' $ac_executable_extensions; do
12219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12220 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12222 break 2
12224 done
12225 done
12226 IFS=$as_save_IFS
12229 esac
12231 orig_target_cpp=$ac_cv_path_orig_target_cpp
12232 if test -n "$orig_target_cpp"; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12234 $as_echo "$orig_target_cpp" >&6; }
12235 else
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12237 $as_echo "no" >&6; }
12241 test -n "$orig_target_cpp" && break
12242 done
12247 else
12248 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
12249 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
12250 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; 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_orig_target_cpp+:} false; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 case $orig_target_cpp in
12257 [\\/]* | ?:[\\/]*)
12258 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in $PATH
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_orig_target_cpp="$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 orig_target_cpp=$ac_cv_path_orig_target_cpp
12280 if test -n "$orig_target_cpp"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12282 $as_echo "$orig_target_cpp" >&6; }
12283 else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12289 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
12292 req_avail=yes
12293 if test "$orig_target_cpp" = ""; then
12294 req_avail=no
12296 if test "$orig_target_cpp" = "no"; then
12297 req_avail=no
12299 if test "$req_avail" = "no"; then
12300 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
12303 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
12304 if test "$cross_compiling" = "yes" ; then
12305 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12306 set dummy ${target_tool_prefix}gcc; ac_word=$2
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308 $as_echo_n "checking for $ac_word... " >&6; }
12309 if ${ac_cv_path_orig_target_cc+:} false; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 case $orig_target_cc in
12313 [\\/]* | ?:[\\/]*)
12314 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318 for as_dir in $PATH
12320 IFS=$as_save_IFS
12321 test -z "$as_dir" && as_dir=.
12322 for ac_exec_ext in '' $ac_executable_extensions; do
12323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12324 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12326 break 2
12328 done
12329 done
12330 IFS=$as_save_IFS
12333 esac
12335 orig_target_cc=$ac_cv_path_orig_target_cc
12336 if test -n "$orig_target_cc"; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12338 $as_echo "$orig_target_cc" >&6; }
12339 else
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12345 else
12347 if test "" = ""; then
12348 ac_tool_gcc=gcc
12349 else
12350 ac_tool_gcc=
12352 if test "$GCC" = "yes"; then
12353 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12354 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12355 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357 $as_echo_n "checking for $ac_word... " >&6; }
12358 if ${ac_cv_path_orig_target_cc+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 case $orig_target_cc in
12362 [\\/]* | ?:[\\/]*)
12363 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367 for as_dir in `dirname $aros_gcc_gcc`
12369 IFS=$as_save_IFS
12370 test -z "$as_dir" && as_dir=.
12371 for ac_exec_ext in '' $ac_executable_extensions; do
12372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12373 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12375 break 2
12377 done
12378 done
12379 IFS=$as_save_IFS
12382 esac
12384 orig_target_cc=$ac_cv_path_orig_target_cc
12385 if test -n "$orig_target_cc"; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12387 $as_echo "$orig_target_cc" >&6; }
12388 else
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12395 if test "$orig_target_cc" = ""; then
12396 for ac_prog in $ac_tool_gcc
12398 # Extract the first word of "$ac_prog", so it can be a program name with args.
12399 set dummy $ac_prog; ac_word=$2
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12401 $as_echo_n "checking for $ac_word... " >&6; }
12402 if ${ac_cv_path_orig_target_cc+:} false; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 case $orig_target_cc in
12406 [\\/]* | ?:[\\/]*)
12407 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411 for as_dir in $PATH
12413 IFS=$as_save_IFS
12414 test -z "$as_dir" && as_dir=.
12415 for ac_exec_ext in '' $ac_executable_extensions; do
12416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12417 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12419 break 2
12421 done
12422 done
12423 IFS=$as_save_IFS
12426 esac
12428 orig_target_cc=$ac_cv_path_orig_target_cc
12429 if test -n "$orig_target_cc"; then
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12431 $as_echo "$orig_target_cc" >&6; }
12432 else
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434 $as_echo "no" >&6; }
12438 test -n "$orig_target_cc" && break
12439 done
12444 else
12445 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12446 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12447 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12449 $as_echo_n "checking for $ac_word... " >&6; }
12450 if ${ac_cv_path_orig_target_cc+:} false; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12453 case $orig_target_cc in
12454 [\\/]* | ?:[\\/]*)
12455 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459 for as_dir in $PATH
12461 IFS=$as_save_IFS
12462 test -z "$as_dir" && as_dir=.
12463 for ac_exec_ext in '' $ac_executable_extensions; do
12464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12465 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12467 break 2
12469 done
12470 done
12471 IFS=$as_save_IFS
12474 esac
12476 orig_target_cc=$ac_cv_path_orig_target_cc
12477 if test -n "$orig_target_cc"; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12479 $as_echo "$orig_target_cc" >&6; }
12480 else
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482 $as_echo "no" >&6; }
12486 orig_target_cc="$orig_target_cc $ac_tool_optarg"
12489 req_avail=yes
12490 if test "$orig_target_cc" = ""; then
12491 req_avail=no
12493 if test "$orig_target_cc" = "no"; then
12494 req_avail=no
12496 if test "$req_avail" = "no"; then
12497 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12500 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12501 if test "$cross_compiling" = "yes" ; then
12502 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12503 set dummy ${target_tool_prefix}g++; ac_word=$2
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12505 $as_echo_n "checking for $ac_word... " >&6; }
12506 if ${ac_cv_path_orig_target_cxx+:} false; then :
12507 $as_echo_n "(cached) " >&6
12508 else
12509 case $orig_target_cxx in
12510 [\\/]* | ?:[\\/]*)
12511 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515 for as_dir in $PATH
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 for ac_exec_ext in '' $ac_executable_extensions; do
12520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12521 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523 break 2
12525 done
12526 done
12527 IFS=$as_save_IFS
12530 esac
12532 orig_target_cxx=$ac_cv_path_orig_target_cxx
12533 if test -n "$orig_target_cxx"; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12535 $as_echo "$orig_target_cxx" >&6; }
12536 else
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12542 else
12544 if test "" = ""; then
12545 ac_tool_g++=g++
12546 else
12547 ac_tool_g++=
12549 if test "$GCC" = "yes"; then
12550 aros_gcc_g++=`$CC -print-prog-name=$ac_tool_g++`
12551 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12552 set dummy `basename $aros_gcc_g++`; ac_word=$2
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12554 $as_echo_n "checking for $ac_word... " >&6; }
12555 if ${ac_cv_path_orig_target_cxx+:} false; then :
12556 $as_echo_n "(cached) " >&6
12557 else
12558 case $orig_target_cxx in
12559 [\\/]* | ?:[\\/]*)
12560 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564 for as_dir in `dirname $aros_gcc_g++`
12566 IFS=$as_save_IFS
12567 test -z "$as_dir" && as_dir=.
12568 for ac_exec_ext in '' $ac_executable_extensions; do
12569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12570 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12572 break 2
12574 done
12575 done
12576 IFS=$as_save_IFS
12579 esac
12581 orig_target_cxx=$ac_cv_path_orig_target_cxx
12582 if test -n "$orig_target_cxx"; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12584 $as_echo "$orig_target_cxx" >&6; }
12585 else
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12592 if test "$orig_target_cxx" = ""; then
12593 for ac_prog in $ac_tool_g++
12595 # Extract the first word of "$ac_prog", so it can be a program name with args.
12596 set dummy $ac_prog; ac_word=$2
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12598 $as_echo_n "checking for $ac_word... " >&6; }
12599 if ${ac_cv_path_orig_target_cxx+:} false; then :
12600 $as_echo_n "(cached) " >&6
12601 else
12602 case $orig_target_cxx in
12603 [\\/]* | ?:[\\/]*)
12604 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12614 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 break 2
12618 done
12619 done
12620 IFS=$as_save_IFS
12623 esac
12625 orig_target_cxx=$ac_cv_path_orig_target_cxx
12626 if test -n "$orig_target_cxx"; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12628 $as_echo "$orig_target_cxx" >&6; }
12629 else
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631 $as_echo "no" >&6; }
12635 test -n "$orig_target_cxx" && break
12636 done
12641 else
12642 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12643 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12644 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_path_orig_target_cxx+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 case $orig_target_cxx in
12651 [\\/]* | ?:[\\/]*)
12652 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12666 done
12667 done
12668 IFS=$as_save_IFS
12671 esac
12673 orig_target_cxx=$ac_cv_path_orig_target_cxx
12674 if test -n "$orig_target_cxx"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12676 $as_echo "$orig_target_cxx" >&6; }
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12683 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12686 req_avail=yes
12687 if test "$orig_target_cxx" = ""; then
12688 req_avail=no
12690 if test "$orig_target_cxx" = "no"; then
12691 req_avail=no
12693 if test "$req_avail" = "no"; then
12694 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12697 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12698 if test "$cross_compiling" = "yes" ; then
12699 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12700 set dummy ${target_tool_prefix}gcc; ac_word=$2
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12702 $as_echo_n "checking for $ac_word... " >&6; }
12703 if ${ac_cv_path_orig_target_ld+:} false; then :
12704 $as_echo_n "(cached) " >&6
12705 else
12706 case $orig_target_ld in
12707 [\\/]* | ?:[\\/]*)
12708 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12712 for as_dir in $PATH
12714 IFS=$as_save_IFS
12715 test -z "$as_dir" && as_dir=.
12716 for ac_exec_ext in '' $ac_executable_extensions; do
12717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12718 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12720 break 2
12722 done
12723 done
12724 IFS=$as_save_IFS
12727 esac
12729 orig_target_ld=$ac_cv_path_orig_target_ld
12730 if test -n "$orig_target_ld"; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12732 $as_echo "$orig_target_ld" >&6; }
12733 else
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12739 else
12741 if test "" = ""; then
12742 ac_tool_gcc=gcc
12743 else
12744 ac_tool_gcc=
12746 if test "$GCC" = "yes"; then
12747 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12748 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12749 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12751 $as_echo_n "checking for $ac_word... " >&6; }
12752 if ${ac_cv_path_orig_target_ld+:} false; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12755 case $orig_target_ld in
12756 [\\/]* | ?:[\\/]*)
12757 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12761 for as_dir in `dirname $aros_gcc_gcc`
12763 IFS=$as_save_IFS
12764 test -z "$as_dir" && as_dir=.
12765 for ac_exec_ext in '' $ac_executable_extensions; do
12766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12767 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12769 break 2
12771 done
12772 done
12773 IFS=$as_save_IFS
12776 esac
12778 orig_target_ld=$ac_cv_path_orig_target_ld
12779 if test -n "$orig_target_ld"; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12781 $as_echo "$orig_target_ld" >&6; }
12782 else
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12789 if test "$orig_target_ld" = ""; then
12790 for ac_prog in $ac_tool_gcc
12792 # Extract the first word of "$ac_prog", so it can be a program name with args.
12793 set dummy $ac_prog; ac_word=$2
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12795 $as_echo_n "checking for $ac_word... " >&6; }
12796 if ${ac_cv_path_orig_target_ld+:} false; then :
12797 $as_echo_n "(cached) " >&6
12798 else
12799 case $orig_target_ld in
12800 [\\/]* | ?:[\\/]*)
12801 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12807 IFS=$as_save_IFS
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12811 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12813 break 2
12815 done
12816 done
12817 IFS=$as_save_IFS
12820 esac
12822 orig_target_ld=$ac_cv_path_orig_target_ld
12823 if test -n "$orig_target_ld"; then
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12825 $as_echo "$orig_target_ld" >&6; }
12826 else
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828 $as_echo "no" >&6; }
12832 test -n "$orig_target_ld" && break
12833 done
12838 else
12839 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12840 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12841 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12843 $as_echo_n "checking for $ac_word... " >&6; }
12844 if ${ac_cv_path_orig_target_ld+:} false; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847 case $orig_target_ld in
12848 [\\/]* | ?:[\\/]*)
12849 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12853 for as_dir in $PATH
12855 IFS=$as_save_IFS
12856 test -z "$as_dir" && as_dir=.
12857 for ac_exec_ext in '' $ac_executable_extensions; do
12858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12859 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12861 break 2
12863 done
12864 done
12865 IFS=$as_save_IFS
12868 esac
12870 orig_target_ld=$ac_cv_path_orig_target_ld
12871 if test -n "$orig_target_ld"; then
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12873 $as_echo "$orig_target_ld" >&6; }
12874 else
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876 $as_echo "no" >&6; }
12880 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12883 req_avail=yes
12884 if test "$orig_target_ld" = ""; then
12885 req_avail=no
12887 if test "$orig_target_ld" = "no"; then
12888 req_avail=no
12890 if test "$req_avail" = "no"; then
12891 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12894 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12895 if test "$cross_compiling" = "yes" ; then
12896 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12897 set dummy ${target_tool_prefix}as; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12899 $as_echo_n "checking for $ac_word... " >&6; }
12900 if ${ac_cv_path_orig_target_as+:} false; then :
12901 $as_echo_n "(cached) " >&6
12902 else
12903 case $orig_target_as in
12904 [\\/]* | ?:[\\/]*)
12905 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12911 IFS=$as_save_IFS
12912 test -z "$as_dir" && as_dir=.
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12915 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12917 break 2
12919 done
12920 done
12921 IFS=$as_save_IFS
12924 esac
12926 orig_target_as=$ac_cv_path_orig_target_as
12927 if test -n "$orig_target_as"; then
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12929 $as_echo "$orig_target_as" >&6; }
12930 else
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12936 else
12938 if test "" = ""; then
12939 ac_tool_as=as
12940 else
12941 ac_tool_as=
12943 if test "$GCC" = "yes"; then
12944 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
12945 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12946 set dummy `basename $aros_gcc_as`; ac_word=$2
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12948 $as_echo_n "checking for $ac_word... " >&6; }
12949 if ${ac_cv_path_orig_target_as+:} false; then :
12950 $as_echo_n "(cached) " >&6
12951 else
12952 case $orig_target_as in
12953 [\\/]* | ?:[\\/]*)
12954 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12958 for as_dir in `dirname $aros_gcc_as`
12960 IFS=$as_save_IFS
12961 test -z "$as_dir" && as_dir=.
12962 for ac_exec_ext in '' $ac_executable_extensions; do
12963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12964 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12966 break 2
12968 done
12969 done
12970 IFS=$as_save_IFS
12973 esac
12975 orig_target_as=$ac_cv_path_orig_target_as
12976 if test -n "$orig_target_as"; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12978 $as_echo "$orig_target_as" >&6; }
12979 else
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981 $as_echo "no" >&6; }
12986 if test "$orig_target_as" = ""; then
12987 for ac_prog in $ac_tool_as
12989 # Extract the first word of "$ac_prog", so it can be a program name with args.
12990 set dummy $ac_prog; ac_word=$2
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12992 $as_echo_n "checking for $ac_word... " >&6; }
12993 if ${ac_cv_path_orig_target_as+:} false; then :
12994 $as_echo_n "(cached) " >&6
12995 else
12996 case $orig_target_as in
12997 [\\/]* | ?:[\\/]*)
12998 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002 for as_dir in $PATH
13004 IFS=$as_save_IFS
13005 test -z "$as_dir" && as_dir=.
13006 for ac_exec_ext in '' $ac_executable_extensions; do
13007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13008 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13010 break 2
13012 done
13013 done
13014 IFS=$as_save_IFS
13017 esac
13019 orig_target_as=$ac_cv_path_orig_target_as
13020 if test -n "$orig_target_as"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13022 $as_echo "$orig_target_as" >&6; }
13023 else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025 $as_echo "no" >&6; }
13029 test -n "$orig_target_as" && break
13030 done
13035 else
13036 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
13037 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
13038 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040 $as_echo_n "checking for $ac_word... " >&6; }
13041 if ${ac_cv_path_orig_target_as+:} false; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 case $orig_target_as in
13045 [\\/]* | ?:[\\/]*)
13046 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050 for as_dir in $PATH
13052 IFS=$as_save_IFS
13053 test -z "$as_dir" && as_dir=.
13054 for ac_exec_ext in '' $ac_executable_extensions; do
13055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13056 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13058 break 2
13060 done
13061 done
13062 IFS=$as_save_IFS
13065 esac
13067 orig_target_as=$ac_cv_path_orig_target_as
13068 if test -n "$orig_target_as"; then
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13070 $as_echo "$orig_target_as" >&6; }
13071 else
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073 $as_echo "no" >&6; }
13077 orig_target_as="$orig_target_as $ac_tool_optarg"
13080 req_avail=yes
13081 if test "$orig_target_as" = ""; then
13082 req_avail=no
13084 if test "$orig_target_as" = "no"; then
13085 req_avail=no
13087 if test "$req_avail" = "no"; then
13088 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
13091 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
13092 if test "$cross_compiling" = "yes" ; then
13093 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13094 set dummy ${target_tool_prefix}ar; ac_word=$2
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096 $as_echo_n "checking for $ac_word... " >&6; }
13097 if ${ac_cv_path_orig_target_ar+:} false; then :
13098 $as_echo_n "(cached) " >&6
13099 else
13100 case $orig_target_ar in
13101 [\\/]* | ?:[\\/]*)
13102 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in $PATH
13108 IFS=$as_save_IFS
13109 test -z "$as_dir" && as_dir=.
13110 for ac_exec_ext in '' $ac_executable_extensions; do
13111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13112 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13114 break 2
13116 done
13117 done
13118 IFS=$as_save_IFS
13121 esac
13123 orig_target_ar=$ac_cv_path_orig_target_ar
13124 if test -n "$orig_target_ar"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13126 $as_echo "$orig_target_ar" >&6; }
13127 else
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13133 else
13135 if test "" = ""; then
13136 ac_tool_ar=ar
13137 else
13138 ac_tool_ar=
13140 if test "$GCC" = "yes"; then
13141 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13142 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13143 set dummy `basename $aros_gcc_ar`; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 $as_echo_n "checking for $ac_word... " >&6; }
13146 if ${ac_cv_path_orig_target_ar+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 case $orig_target_ar in
13150 [\\/]* | ?:[\\/]*)
13151 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13155 for as_dir in `dirname $aros_gcc_ar`
13157 IFS=$as_save_IFS
13158 test -z "$as_dir" && as_dir=.
13159 for ac_exec_ext in '' $ac_executable_extensions; do
13160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13161 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13163 break 2
13165 done
13166 done
13167 IFS=$as_save_IFS
13170 esac
13172 orig_target_ar=$ac_cv_path_orig_target_ar
13173 if test -n "$orig_target_ar"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13175 $as_echo "$orig_target_ar" >&6; }
13176 else
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178 $as_echo "no" >&6; }
13183 if test "$orig_target_ar" = ""; then
13184 for ac_prog in $ac_tool_ar
13186 # Extract the first word of "$ac_prog", so it can be a program name with args.
13187 set dummy $ac_prog; ac_word=$2
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13189 $as_echo_n "checking for $ac_word... " >&6; }
13190 if ${ac_cv_path_orig_target_ar+:} false; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 case $orig_target_ar in
13194 [\\/]* | ?:[\\/]*)
13195 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199 for as_dir in $PATH
13201 IFS=$as_save_IFS
13202 test -z "$as_dir" && as_dir=.
13203 for ac_exec_ext in '' $ac_executable_extensions; do
13204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13205 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13207 break 2
13209 done
13210 done
13211 IFS=$as_save_IFS
13214 esac
13216 orig_target_ar=$ac_cv_path_orig_target_ar
13217 if test -n "$orig_target_ar"; then
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13219 $as_echo "$orig_target_ar" >&6; }
13220 else
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222 $as_echo "no" >&6; }
13226 test -n "$orig_target_ar" && break
13227 done
13232 else
13233 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
13234 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
13235 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 $as_echo_n "checking for $ac_word... " >&6; }
13238 if ${ac_cv_path_orig_target_ar+:} false; then :
13239 $as_echo_n "(cached) " >&6
13240 else
13241 case $orig_target_ar in
13242 [\\/]* | ?:[\\/]*)
13243 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13249 IFS=$as_save_IFS
13250 test -z "$as_dir" && as_dir=.
13251 for ac_exec_ext in '' $ac_executable_extensions; do
13252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13253 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13255 break 2
13257 done
13258 done
13259 IFS=$as_save_IFS
13262 esac
13264 orig_target_ar=$ac_cv_path_orig_target_ar
13265 if test -n "$orig_target_ar"; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13267 $as_echo "$orig_target_ar" >&6; }
13268 else
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 $as_echo "no" >&6; }
13274 orig_target_ar="$orig_target_ar $ac_tool_optarg"
13277 req_avail=yes
13278 if test "$orig_target_ar" = ""; then
13279 req_avail=no
13281 if test "$orig_target_ar" = "no"; then
13282 req_avail=no
13284 if test "$req_avail" = "no"; then
13285 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
13288 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
13289 if test "$cross_compiling" = "yes" ; then
13290 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13291 set dummy ${target_tool_prefix}ar; ac_word=$2
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293 $as_echo_n "checking for $ac_word... " >&6; }
13294 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 case $orig_target_ranlib in
13298 [\\/]* | ?:[\\/]*)
13299 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303 for as_dir in $PATH
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13309 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13311 break 2
13313 done
13314 done
13315 IFS=$as_save_IFS
13318 esac
13320 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13321 if test -n "$orig_target_ranlib"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13323 $as_echo "$orig_target_ranlib" >&6; }
13324 else
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13330 else
13332 if test "" = ""; then
13333 ac_tool_ar=ar
13334 else
13335 ac_tool_ar=
13337 if test "$GCC" = "yes"; then
13338 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13339 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13340 set dummy `basename $aros_gcc_ar`; ac_word=$2
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342 $as_echo_n "checking for $ac_word... " >&6; }
13343 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13344 $as_echo_n "(cached) " >&6
13345 else
13346 case $orig_target_ranlib in
13347 [\\/]* | ?:[\\/]*)
13348 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13352 for as_dir in `dirname $aros_gcc_ar`
13354 IFS=$as_save_IFS
13355 test -z "$as_dir" && as_dir=.
13356 for ac_exec_ext in '' $ac_executable_extensions; do
13357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13358 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13360 break 2
13362 done
13363 done
13364 IFS=$as_save_IFS
13367 esac
13369 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13370 if test -n "$orig_target_ranlib"; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13372 $as_echo "$orig_target_ranlib" >&6; }
13373 else
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375 $as_echo "no" >&6; }
13380 if test "$orig_target_ranlib" = ""; then
13381 for ac_prog in $ac_tool_ar
13383 # Extract the first word of "$ac_prog", so it can be a program name with args.
13384 set dummy $ac_prog; ac_word=$2
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386 $as_echo_n "checking for $ac_word... " >&6; }
13387 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 case $orig_target_ranlib in
13391 [\\/]* | ?:[\\/]*)
13392 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396 for as_dir in $PATH
13398 IFS=$as_save_IFS
13399 test -z "$as_dir" && as_dir=.
13400 for ac_exec_ext in '' $ac_executable_extensions; do
13401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13402 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13404 break 2
13406 done
13407 done
13408 IFS=$as_save_IFS
13411 esac
13413 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13414 if test -n "$orig_target_ranlib"; then
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13416 $as_echo "$orig_target_ranlib" >&6; }
13417 else
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13423 test -n "$orig_target_ranlib" && break
13424 done
13429 else
13430 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
13431 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
13432 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434 $as_echo_n "checking for $ac_word... " >&6; }
13435 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13436 $as_echo_n "(cached) " >&6
13437 else
13438 case $orig_target_ranlib in
13439 [\\/]* | ?:[\\/]*)
13440 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13444 for as_dir in $PATH
13446 IFS=$as_save_IFS
13447 test -z "$as_dir" && as_dir=.
13448 for ac_exec_ext in '' $ac_executable_extensions; do
13449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13450 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13452 break 2
13454 done
13455 done
13456 IFS=$as_save_IFS
13459 esac
13461 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13462 if test -n "$orig_target_ranlib"; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13464 $as_echo "$orig_target_ranlib" >&6; }
13465 else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467 $as_echo "no" >&6; }
13471 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
13474 req_avail=yes
13475 if test "$orig_target_ranlib" = ""; then
13476 req_avail=no
13478 if test "$orig_target_ranlib" = "no"; then
13479 req_avail=no
13481 if test "$req_avail" = "no"; then
13482 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
13485 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
13486 if test "$cross_compiling" = "yes" ; then
13487 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
13488 set dummy ${target_tool_prefix}nm; ac_word=$2
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13490 $as_echo_n "checking for $ac_word... " >&6; }
13491 if ${ac_cv_path_orig_target_nm+:} false; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 case $orig_target_nm in
13495 [\\/]* | ?:[\\/]*)
13496 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13500 for as_dir in $PATH
13502 IFS=$as_save_IFS
13503 test -z "$as_dir" && as_dir=.
13504 for ac_exec_ext in '' $ac_executable_extensions; do
13505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13506 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13508 break 2
13510 done
13511 done
13512 IFS=$as_save_IFS
13515 esac
13517 orig_target_nm=$ac_cv_path_orig_target_nm
13518 if test -n "$orig_target_nm"; then
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13520 $as_echo "$orig_target_nm" >&6; }
13521 else
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13523 $as_echo "no" >&6; }
13527 else
13529 if test "" = ""; then
13530 ac_tool_nm=nm
13531 else
13532 ac_tool_nm=
13534 if test "$GCC" = "yes"; then
13535 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
13536 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13537 set dummy `basename $aros_gcc_nm`; ac_word=$2
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13539 $as_echo_n "checking for $ac_word... " >&6; }
13540 if ${ac_cv_path_orig_target_nm+:} false; then :
13541 $as_echo_n "(cached) " >&6
13542 else
13543 case $orig_target_nm in
13544 [\\/]* | ?:[\\/]*)
13545 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549 for as_dir in `dirname $aros_gcc_nm`
13551 IFS=$as_save_IFS
13552 test -z "$as_dir" && as_dir=.
13553 for ac_exec_ext in '' $ac_executable_extensions; do
13554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13555 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 break 2
13559 done
13560 done
13561 IFS=$as_save_IFS
13564 esac
13566 orig_target_nm=$ac_cv_path_orig_target_nm
13567 if test -n "$orig_target_nm"; then
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13569 $as_echo "$orig_target_nm" >&6; }
13570 else
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13572 $as_echo "no" >&6; }
13577 if test "$orig_target_nm" = ""; then
13578 for ac_prog in $ac_tool_nm
13580 # Extract the first word of "$ac_prog", so it can be a program name with args.
13581 set dummy $ac_prog; ac_word=$2
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13583 $as_echo_n "checking for $ac_word... " >&6; }
13584 if ${ac_cv_path_orig_target_nm+:} false; then :
13585 $as_echo_n "(cached) " >&6
13586 else
13587 case $orig_target_nm in
13588 [\\/]* | ?:[\\/]*)
13589 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13593 for as_dir in $PATH
13595 IFS=$as_save_IFS
13596 test -z "$as_dir" && as_dir=.
13597 for ac_exec_ext in '' $ac_executable_extensions; do
13598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13599 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13601 break 2
13603 done
13604 done
13605 IFS=$as_save_IFS
13608 esac
13610 orig_target_nm=$ac_cv_path_orig_target_nm
13611 if test -n "$orig_target_nm"; then
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13613 $as_echo "$orig_target_nm" >&6; }
13614 else
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13616 $as_echo "no" >&6; }
13620 test -n "$orig_target_nm" && break
13621 done
13626 else
13627 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13628 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13629 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13631 $as_echo_n "checking for $ac_word... " >&6; }
13632 if ${ac_cv_path_orig_target_nm+:} false; then :
13633 $as_echo_n "(cached) " >&6
13634 else
13635 case $orig_target_nm in
13636 [\\/]* | ?:[\\/]*)
13637 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13641 for as_dir in $PATH
13643 IFS=$as_save_IFS
13644 test -z "$as_dir" && as_dir=.
13645 for ac_exec_ext in '' $ac_executable_extensions; do
13646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13647 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13649 break 2
13651 done
13652 done
13653 IFS=$as_save_IFS
13656 esac
13658 orig_target_nm=$ac_cv_path_orig_target_nm
13659 if test -n "$orig_target_nm"; then
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13661 $as_echo "$orig_target_nm" >&6; }
13662 else
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13664 $as_echo "no" >&6; }
13668 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13671 req_avail=yes
13672 if test "$orig_target_nm" = ""; then
13673 req_avail=no
13675 if test "$orig_target_nm" = "no"; then
13676 req_avail=no
13678 if test "$req_avail" = "no"; then
13679 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13682 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13683 if test "$cross_compiling" = "yes" ; then
13684 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13685 set dummy ${target_tool_prefix}strip; ac_word=$2
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13687 $as_echo_n "checking for $ac_word... " >&6; }
13688 if ${ac_cv_path_orig_target_strip+:} false; then :
13689 $as_echo_n "(cached) " >&6
13690 else
13691 case $orig_target_strip in
13692 [\\/]* | ?:[\\/]*)
13693 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13697 for as_dir in $PATH
13699 IFS=$as_save_IFS
13700 test -z "$as_dir" && as_dir=.
13701 for ac_exec_ext in '' $ac_executable_extensions; do
13702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13703 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13705 break 2
13707 done
13708 done
13709 IFS=$as_save_IFS
13712 esac
13714 orig_target_strip=$ac_cv_path_orig_target_strip
13715 if test -n "$orig_target_strip"; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13717 $as_echo "$orig_target_strip" >&6; }
13718 else
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720 $as_echo "no" >&6; }
13724 else
13726 if test "" = ""; then
13727 ac_tool_strip=strip
13728 else
13729 ac_tool_strip=
13731 if test "$GCC" = "yes"; then
13732 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
13733 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13734 set dummy `basename $aros_gcc_strip`; ac_word=$2
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13736 $as_echo_n "checking for $ac_word... " >&6; }
13737 if ${ac_cv_path_orig_target_strip+:} false; then :
13738 $as_echo_n "(cached) " >&6
13739 else
13740 case $orig_target_strip in
13741 [\\/]* | ?:[\\/]*)
13742 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746 for as_dir in `dirname $aros_gcc_strip`
13748 IFS=$as_save_IFS
13749 test -z "$as_dir" && as_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
13751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13752 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13754 break 2
13756 done
13757 done
13758 IFS=$as_save_IFS
13761 esac
13763 orig_target_strip=$ac_cv_path_orig_target_strip
13764 if test -n "$orig_target_strip"; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13766 $as_echo "$orig_target_strip" >&6; }
13767 else
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769 $as_echo "no" >&6; }
13774 if test "$orig_target_strip" = ""; then
13775 for ac_prog in $ac_tool_strip
13777 # Extract the first word of "$ac_prog", so it can be a program name with args.
13778 set dummy $ac_prog; ac_word=$2
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13780 $as_echo_n "checking for $ac_word... " >&6; }
13781 if ${ac_cv_path_orig_target_strip+:} false; then :
13782 $as_echo_n "(cached) " >&6
13783 else
13784 case $orig_target_strip in
13785 [\\/]* | ?:[\\/]*)
13786 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790 for as_dir in $PATH
13792 IFS=$as_save_IFS
13793 test -z "$as_dir" && as_dir=.
13794 for ac_exec_ext in '' $ac_executable_extensions; do
13795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13796 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13798 break 2
13800 done
13801 done
13802 IFS=$as_save_IFS
13805 esac
13807 orig_target_strip=$ac_cv_path_orig_target_strip
13808 if test -n "$orig_target_strip"; then
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13810 $as_echo "$orig_target_strip" >&6; }
13811 else
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813 $as_echo "no" >&6; }
13817 test -n "$orig_target_strip" && break
13818 done
13823 else
13824 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13825 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13826 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13828 $as_echo_n "checking for $ac_word... " >&6; }
13829 if ${ac_cv_path_orig_target_strip+:} false; then :
13830 $as_echo_n "(cached) " >&6
13831 else
13832 case $orig_target_strip in
13833 [\\/]* | ?:[\\/]*)
13834 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13838 for as_dir in $PATH
13840 IFS=$as_save_IFS
13841 test -z "$as_dir" && as_dir=.
13842 for ac_exec_ext in '' $ac_executable_extensions; do
13843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13844 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13846 break 2
13848 done
13849 done
13850 IFS=$as_save_IFS
13853 esac
13855 orig_target_strip=$ac_cv_path_orig_target_strip
13856 if test -n "$orig_target_strip"; then
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13858 $as_echo "$orig_target_strip" >&6; }
13859 else
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861 $as_echo "no" >&6; }
13865 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13868 req_avail=yes
13869 if test "$orig_target_strip" = ""; then
13870 req_avail=no
13872 if test "$orig_target_strip" = "no"; then
13873 req_avail=no
13875 if test "$req_avail" = "no"; then
13876 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13879 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13880 if test "$cross_compiling" = "yes" ; then
13881 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13882 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13884 $as_echo_n "checking for $ac_word... " >&6; }
13885 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 case $orig_target_objcopy in
13889 [\\/]* | ?:[\\/]*)
13890 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894 for as_dir in $PATH
13896 IFS=$as_save_IFS
13897 test -z "$as_dir" && as_dir=.
13898 for ac_exec_ext in '' $ac_executable_extensions; do
13899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13900 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13902 break 2
13904 done
13905 done
13906 IFS=$as_save_IFS
13909 esac
13911 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13912 if test -n "$orig_target_objcopy"; then
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13914 $as_echo "$orig_target_objcopy" >&6; }
13915 else
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917 $as_echo "no" >&6; }
13921 else
13923 if test "" = ""; then
13924 ac_tool_objcopy=objcopy
13925 else
13926 ac_tool_objcopy=
13928 if test "$GCC" = "yes"; then
13929 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
13930 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13931 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13933 $as_echo_n "checking for $ac_word... " >&6; }
13934 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13935 $as_echo_n "(cached) " >&6
13936 else
13937 case $orig_target_objcopy in
13938 [\\/]* | ?:[\\/]*)
13939 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13943 for as_dir in `dirname $aros_gcc_objcopy`
13945 IFS=$as_save_IFS
13946 test -z "$as_dir" && as_dir=.
13947 for ac_exec_ext in '' $ac_executable_extensions; do
13948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13949 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13951 break 2
13953 done
13954 done
13955 IFS=$as_save_IFS
13958 esac
13960 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13961 if test -n "$orig_target_objcopy"; then
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13963 $as_echo "$orig_target_objcopy" >&6; }
13964 else
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 $as_echo "no" >&6; }
13971 if test "$orig_target_objcopy" = ""; then
13972 for ac_prog in $ac_tool_objcopy
13974 # Extract the first word of "$ac_prog", so it can be a program name with args.
13975 set dummy $ac_prog; ac_word=$2
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13977 $as_echo_n "checking for $ac_word... " >&6; }
13978 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13979 $as_echo_n "(cached) " >&6
13980 else
13981 case $orig_target_objcopy in
13982 [\\/]* | ?:[\\/]*)
13983 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13987 for as_dir in $PATH
13989 IFS=$as_save_IFS
13990 test -z "$as_dir" && as_dir=.
13991 for ac_exec_ext in '' $ac_executable_extensions; do
13992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13993 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13995 break 2
13997 done
13998 done
13999 IFS=$as_save_IFS
14002 esac
14004 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14005 if test -n "$orig_target_objcopy"; then
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14007 $as_echo "$orig_target_objcopy" >&6; }
14008 else
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14010 $as_echo "no" >&6; }
14014 test -n "$orig_target_objcopy" && break
14015 done
14020 else
14021 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
14022 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
14023 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14025 $as_echo_n "checking for $ac_word... " >&6; }
14026 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14027 $as_echo_n "(cached) " >&6
14028 else
14029 case $orig_target_objcopy in
14030 [\\/]* | ?:[\\/]*)
14031 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035 for as_dir in $PATH
14037 IFS=$as_save_IFS
14038 test -z "$as_dir" && as_dir=.
14039 for ac_exec_ext in '' $ac_executable_extensions; do
14040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14041 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14043 break 2
14045 done
14046 done
14047 IFS=$as_save_IFS
14050 esac
14052 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14053 if test -n "$orig_target_objcopy"; then
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14055 $as_echo "$orig_target_objcopy" >&6; }
14056 else
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14058 $as_echo "no" >&6; }
14062 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
14065 req_avail=yes
14066 if test "$orig_target_objcopy" = ""; then
14067 req_avail=no
14069 if test "$orig_target_objcopy" = "no"; then
14070 req_avail=no
14072 if test "$req_avail" = "no"; then
14073 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
14076 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
14077 if test "$cross_compiling" = "yes" ; then
14078 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
14079 set dummy ${target_tool_prefix}objdump; ac_word=$2
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14081 $as_echo_n "checking for $ac_word... " >&6; }
14082 if ${ac_cv_path_orig_target_objdump+:} false; then :
14083 $as_echo_n "(cached) " >&6
14084 else
14085 case $orig_target_objdump in
14086 [\\/]* | ?:[\\/]*)
14087 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14091 for as_dir in $PATH
14093 IFS=$as_save_IFS
14094 test -z "$as_dir" && as_dir=.
14095 for ac_exec_ext in '' $ac_executable_extensions; do
14096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14097 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14099 break 2
14101 done
14102 done
14103 IFS=$as_save_IFS
14106 esac
14108 orig_target_objdump=$ac_cv_path_orig_target_objdump
14109 if test -n "$orig_target_objdump"; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14111 $as_echo "$orig_target_objdump" >&6; }
14112 else
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114 $as_echo "no" >&6; }
14118 else
14120 if test "" = ""; then
14121 ac_tool_objdump=objdump
14122 else
14123 ac_tool_objdump=
14125 if test "$GCC" = "yes"; then
14126 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
14127 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
14128 set dummy `basename $aros_gcc_objdump`; ac_word=$2
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14130 $as_echo_n "checking for $ac_word... " >&6; }
14131 if ${ac_cv_path_orig_target_objdump+:} false; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 case $orig_target_objdump in
14135 [\\/]* | ?:[\\/]*)
14136 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14140 for as_dir in `dirname $aros_gcc_objdump`
14142 IFS=$as_save_IFS
14143 test -z "$as_dir" && as_dir=.
14144 for ac_exec_ext in '' $ac_executable_extensions; do
14145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14146 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14148 break 2
14150 done
14151 done
14152 IFS=$as_save_IFS
14155 esac
14157 orig_target_objdump=$ac_cv_path_orig_target_objdump
14158 if test -n "$orig_target_objdump"; then
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14160 $as_echo "$orig_target_objdump" >&6; }
14161 else
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14163 $as_echo "no" >&6; }
14168 if test "$orig_target_objdump" = ""; then
14169 for ac_prog in $ac_tool_objdump
14171 # Extract the first word of "$ac_prog", so it can be a program name with args.
14172 set dummy $ac_prog; ac_word=$2
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14174 $as_echo_n "checking for $ac_word... " >&6; }
14175 if ${ac_cv_path_orig_target_objdump+:} false; then :
14176 $as_echo_n "(cached) " >&6
14177 else
14178 case $orig_target_objdump in
14179 [\\/]* | ?:[\\/]*)
14180 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184 for as_dir in $PATH
14186 IFS=$as_save_IFS
14187 test -z "$as_dir" && as_dir=.
14188 for ac_exec_ext in '' $ac_executable_extensions; do
14189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14190 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14192 break 2
14194 done
14195 done
14196 IFS=$as_save_IFS
14199 esac
14201 orig_target_objdump=$ac_cv_path_orig_target_objdump
14202 if test -n "$orig_target_objdump"; then
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14204 $as_echo "$orig_target_objdump" >&6; }
14205 else
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14207 $as_echo "no" >&6; }
14211 test -n "$orig_target_objdump" && break
14212 done
14217 else
14218 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
14219 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
14220 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14222 $as_echo_n "checking for $ac_word... " >&6; }
14223 if ${ac_cv_path_orig_target_objdump+:} false; then :
14224 $as_echo_n "(cached) " >&6
14225 else
14226 case $orig_target_objdump in
14227 [\\/]* | ?:[\\/]*)
14228 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14232 for as_dir in $PATH
14234 IFS=$as_save_IFS
14235 test -z "$as_dir" && as_dir=.
14236 for ac_exec_ext in '' $ac_executable_extensions; do
14237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14238 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14240 break 2
14242 done
14243 done
14244 IFS=$as_save_IFS
14247 esac
14249 orig_target_objdump=$ac_cv_path_orig_target_objdump
14250 if test -n "$orig_target_objdump"; then
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14252 $as_echo "$orig_target_objdump" >&6; }
14253 else
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14255 $as_echo "no" >&6; }
14259 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
14262 req_avail=yes
14263 if test "$orig_target_objdump" = ""; then
14264 req_avail=no
14266 if test "$orig_target_objdump" = "no"; then
14267 req_avail=no
14269 if test "$req_avail" = "no"; then
14270 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
14274 if test "$kernel_tool_prefix" = "none" ; then
14275 # No kernel tools specified
14276 # Assume target tools == kernel tools with ELF wrapper
14277 aros_kernel_cc=$orig_target_cc
14278 aros_kernel_cxx=$orig_target_cxx
14279 aros_kernel_cpp=$orig_target_cpp
14280 aros_kernel_ld=$orig_target_ld
14281 aros_kernel_as=$orig_target_as
14282 aros_kernel_ar=$orig_target_ar
14283 aros_kernel_ranlib=$orig_target_ranlib
14284 aros_kernel_nm=$orig_target_nm
14285 aros_kernel_strip=$orig_target_strip
14286 aros_kernel_objcopy=$orig_target_objcopy
14287 aros_kernel_objdump=$orig_target_objdump
14288 use_kernel_cc_wrapper=yes
14291 # At this point, all aros_kernel_* and aros_target_*
14292 # tools should be set up correctly
14294 CC="$aros_kernel_cc $kernel_tool_flags"
14295 CPP="$aros_kernel_cpp"
14297 #-----------------------------------------------------------------------------
14299 # Find all the tools we need to compile. This could be cross-compiling
14300 # though! If that is the case we use the GNU form of the target and
14301 # simply add this to the front of the binary name. This is rather simple,
14302 # but it should work under most circumstances.
14304 # The default tools are to use the same as the host, but only if the
14305 # host and target CPU are the same. With GCC this is normally enough.
14308 aros_cc_pre=""
14309 aros_shared_ld="$aros_host_ld"
14311 aros_target_mkdep="$aros_host_mkdep"
14313 # The default tools executables to be linked to.
14314 if test "$rescomp" != ""; then
14315 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
14316 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14318 $as_echo_n "checking for $ac_word... " >&6; }
14319 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
14320 $as_echo_n "(cached) " >&6
14321 else
14322 case $aros_kernel_rescomp in
14323 [\\/]* | ?:[\\/]*)
14324 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
14327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14328 for as_dir in $PATH
14330 IFS=$as_save_IFS
14331 test -z "$as_dir" && as_dir=.
14332 for ac_exec_ext in '' $ac_executable_extensions; do
14333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14334 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
14335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14336 break 2
14338 done
14339 done
14340 IFS=$as_save_IFS
14343 esac
14345 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
14346 if test -n "$aros_kernel_rescomp"; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
14348 $as_echo "$aros_kernel_rescomp" >&6; }
14349 else
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14355 req_avail=yes
14356 if test "$aros_kernel_rescomp" = ""; then
14357 req_avail=no
14359 if test "$aros_kernel_rescomp" = "no"; then
14360 req_avail=no
14362 if test "$req_avail" = "no"; then
14363 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
14367 # Set up the sources for the symlink farm
14368 if test "$crosstools" = "yes"; then
14369 crosstools_target=tools-crosstools
14372 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
14373 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
14375 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
14376 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
14377 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
14378 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
14379 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
14380 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
14381 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
14383 # aros_cc_pre is a variable that is added to the front of the compiler name
14384 # in the generated aros-gcc shell script. We need this to enable the cache
14385 # to work across cleaned builds. Also, support DISTCC using the correct
14386 # environment variable.
14389 if test "x${DISTCC}" != "x" ; then
14390 if test "x${CCACHE}" != "x" ; then
14391 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
14392 else
14393 aros_cc_pre="${DISTCC} "
14395 else
14396 if test "x${CCACHE}" != "x" ; then
14397 aros_cc_pre="${CCACHE} "
14401 aros_target_nostdinc_cflags=-nostdinc
14403 aros_target_nostartup_ldflags=-nostartfiles
14405 aros_target_nix_ldflags=-nix
14407 aros_target_detach_ldflags=-detach
14409 aros_target_nostdlib_ldflags=-nostdlib
14412 aros_target_cc_path=
14414 # Target tools
14416 if test "$aros_target_toolchain" != "yes"; then
14417 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
14418 if test "$GCC" = "yes"; then
14419 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
14421 else
14422 # We do not know which c compiler version we are going to build and what we need to know
14423 # here is different for different versions so this will be set later during the
14424 # build of crosstools.
14425 if test "$aros_toolchain" = "gnu" ; then
14426 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
14427 elif test "$aros_toolchain" = "llvm" ; then
14428 prefix="$AROS_CROSSTOOLSDIR/bin/"
14430 aros_target_cc_path=@aros_target_cc_path@
14432 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
14433 aros_target_cc="${prefix}${toolchain_c_compiler}"
14434 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
14435 aros_target_as="${prefix}${toolchain_as}"
14436 if test "${use_ld_wrapper}" = "yes"; then
14437 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
14438 else
14439 aros_target_ld="${prefix}${toolchain_ld}"
14441 aros_toolchain_ld="${prefix}${toolchain_ld}"
14443 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
14444 aros_target_objcopy="${prefix}${toolchain_objcopy}"
14445 aros_target_objdump="${prefix}${toolchain_objdump}"
14446 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
14447 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
14448 aros_target_strip="${prefix}${toolchain_strip}"
14449 aros_plain_nm="${prefix}${toolchain_nm}"
14450 aros_plain_ar="${prefix}${toolchain_ar}"
14452 # Check whether --enable-includes was given.
14453 if test "${enable_includes+set}" = set; then :
14454 enableval=$enable_includes; aros_target_incl=$enable_includes
14455 else
14456 aros_target_incl=no
14460 if test "x$aros_target_incl" = "xno"; then
14461 if test "x$test_kernel_cc" != "xno"; then
14462 aros_target_incl=`$aros_kernel_cc -print-sysroot 2>/dev/null`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
14463 else
14464 aros_target_incl=
14468 if test "x$aros_kernel_includes" = "x"; then
14469 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14470 if test "x$aros_target_incl" != "x"; then
14471 aros_kernel_includes="-isystem $aros_target_incl"
14476 if test "x$test_kernel_cc" != "xno"; then
14477 if test "$aros_kernel_includes" != "" ; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
14479 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
14480 if test "$aros_kernel_cc_includes" = "" ; then
14481 # Try to guess where the directory is.
14482 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
14483 if test -d $aros_kernel_cc_includes; then
14484 # Check if there is also an include-fixed directory and add it
14485 # to kernel compiler's include path as it may contain some of
14486 # the headers we need.
14487 if test -d "$aros_kernel_cc_includes"-fixed; then
14488 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
14490 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
14491 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
14492 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
14494 else
14495 # The directory doesn't exist, we need to do some more work.
14496 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
14498 # These are the headers we're looking for.
14499 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14500 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14501 zutil.h stdint.h"
14503 dirs=
14504 for h in $headers; do
14505 # Which other headers are needed by each of the above?
14506 deps=$(echo "#include <$h>" | \
14507 $aros_kernel_cc -E -M - 2>/dev/null | \
14508 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14510 # Copy all the needed headers to a directory beneath gendir.
14511 for d in $deps; do
14512 h=$(basename $d)
14513 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
14514 sed -n "s,^.*/include\(/.*\),\1,p")
14515 ! test -d $dir && mkdir -p $dir
14516 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14517 done
14518 done
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
14522 $as_echo "$aros_kernel_cc_includes" >&6; }
14523 # Adding -nostdinc to kernel includes as they are always used together.
14524 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
14528 if test "$crosstools" != "yes"; then
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
14530 $as_echo_n "checking for the target compiler's include path... " >&6; }
14531 if test "$aros_target_cc_includes" = "" ; then
14532 #try to guess where the directory is
14533 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
14534 if ! test -d $aros_target_cc_includes; then
14535 #the directory doesn't exist, we need to do some more work
14536 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
14538 #these are the headers we're looking for
14539 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14540 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14541 zutil.h"
14543 dirs=
14544 for h in $headers; do
14545 #which other headers each of the above headers needs?
14546 deps=$(echo "#include <$h>" | \
14547 $orig_target_cc -E -M - 2>/dev/null | \
14548 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14550 #copy all the needed headers to a directory beneath gendir
14551 for d in $deps; do
14552 h=$(basename $d)
14553 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
14554 sed -n "s,^.*/include\(/.*\),\1,p")
14555 ! test -d $dir && mkdir -p $dir
14556 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14557 done
14558 done
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14562 $as_echo "$aros_target_cc_includes" >&6; }
14563 else
14564 # We do not know which c compiler version we are going to build and what we need to know
14565 # here is different for different versions so this will be set later during the
14566 # build of crosstools.
14567 aros_target_cc_includes=@aros_target_cc_includes@
14571 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14572 # On GCC >= 4.0 -iquote should be used
14575 save_cc="$CC"
14576 save_cflags="$CFLAGS"
14577 if test "x$test_kernel_cc" != "xno"; then
14578 CFLAGS="-iquote."
14579 kernel_cflags_iquote=$host_cflags_iquote
14580 kernel_cflags_iquote_end=$host_cflags_iquote_end
14581 if test "x-$cross_compiling" = "x-yes"; then
14582 CC="$aros_kernel_cc"
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14584 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14585 if test "x-$crosstools" != "x-yes"; then
14586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587 /* end confdefs.h. */
14590 main ()
14594 return 0;
14596 _ACEOF
14597 if ac_fn_c_try_compile "$LINENO"; then :
14598 use_no_stack_protector="yes"
14599 else
14600 use_no_stack_protector="no"
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603 else
14604 # we do know it is supported for the smallest version of gcc we are going to build
14605 # we assume it's also supported by later versions
14606 use_no_stack_protector=yes
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14609 $as_echo "$use_no_stack_protector" >&6; }
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14611 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14612 if test "x-$crosstools" != "x-yes"; then
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14617 main ()
14621 return 0;
14623 _ACEOF
14624 if ac_fn_c_try_compile "$LINENO"; then :
14625 has_iquote="yes"
14626 else
14627 has_iquote="no"
14629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14630 else
14631 # we do know it is supported for the smallest version of gcc we are going to build
14632 # we assume it's also supported by later versions
14633 has_iquote=yes
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14636 $as_echo "$has_iquote" >&6; }
14637 if test "x-$has_iquote" = "x-yes" ; then
14638 kernel_cflags_iquote=-iquote
14639 kernel_cflags_iquote_end=
14640 else
14641 kernel_cflags_iquote=-I
14642 kernel_cflags_iquote_end=-I-
14645 if test "x-$use_no_stack_protector" = "x-yes" ; then
14646 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
14649 #-----------------------------------------------------------------------------
14651 # Check if we can explicitly choose older version of symbol hashing
14653 CFLAGS="save_cflags -Wl,--hash-style=sysv"
14654 CC="$aros_kernel_cc"
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14656 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658 /* end confdefs.h. */
14661 main ()
14665 return 0;
14667 _ACEOF
14668 if ac_fn_c_try_link "$LINENO"; then :
14669 use_hash_style="yes"
14670 else
14671 use_hash_style="no"
14673 rm -f core conftest.err conftest.$ac_objext \
14674 conftest$ac_exeext conftest.$ac_ext
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14676 $as_echo "$use_hash_style" >&6; }
14677 if test "x-$use_hash_style" = "x-yes" ; then
14678 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
14680 else
14681 kernel_cflags_iquote="$""(CFLAGS_IQUOTE)"
14682 kernel_cflags_iquote_end="$""(CFLAGS_IQUOTE_END)"
14684 CC="$save_cc"
14685 CFLAGS="$save_cflags"
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14694 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14696 # Check whether --with-resolution was given.
14697 if test "${with_resolution+set}" = set; then :
14698 withval=$with_resolution; resolution=$withval
14699 else
14700 resolution=none
14703 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14704 if test "$resolution" = "yes" ; then
14705 resolution="none"
14707 if test "$resolution" = "no" ; then
14708 resolution="none"
14710 if test "$resolution" != "none" ; then
14711 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14712 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14713 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14716 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14717 aros_cv_nominal_width=$aros_nominal_width
14718 aros_cv_nominal_height=$aros_nominal_height
14719 aros_cv_nominal_depth=$aros_nominal_depth
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14722 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14724 # Check whether --with-serial-debug was given.
14725 if test "${with_serial_debug+set}" = set; then :
14726 withval=$with_serial_debug; serial_debug=$withval
14727 else
14728 serial_debug=none
14731 if test "$aros_serial_debug" = 0 ; then
14732 serial_debug_forced=""
14733 if test "$serial_debug" = "yes" ; then
14734 serial_debug="1"
14736 if test "$serial_debug" = "no" ; then
14737 serial_debug="none"
14739 else
14740 serial_debug_forced="(forced)"
14741 serial_debug=$aros_serial_debug
14743 if test "$serial_debug" != "none" ; then
14744 aros_serial_debug=$serial_debug
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14746 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14747 else
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749 $as_echo "no" >&6; }
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14753 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14754 # Check whether --enable-palm_debug_hack was given.
14755 if test "${enable_palm_debug_hack+set}" = set; then :
14756 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14757 else
14758 palm_debug_hack="no"
14761 if test "$palm_debug_hack" = "yes" ; then
14762 aros_palm_debug_hack="1"
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14765 $as_echo "$palm_debug_hack" >&6; }
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14768 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14769 # Check whether --enable-usb30_code was given.
14770 if test "${enable_usb30_code+set}" = set; then :
14771 enableval=$enable_usb30_code; usb30_code="yes"
14772 else
14773 usb30_code="no"
14776 if test "$usb30_code" = "yes" ; then
14777 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14778 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14781 $as_echo "$usb30_code" >&6; }
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14784 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14785 # Check whether --enable-nesting_supervisor was given.
14786 if test "${enable_nesting_supervisor+set}" = set; then :
14787 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14788 else
14789 nesting_supervisor="no"
14792 if test "$nesting_supervisor" = "yes" ; then
14793 aros_nesting_supervisor="1"
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14796 $as_echo "$nesting_supervisor" >&6; }
14798 if test "$aros_enable_mmu" = "" ; then
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14800 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14801 # Check whether --enable-mmu was given.
14802 if test "${enable_mmu+set}" = set; then :
14803 enableval=$enable_mmu; aros_enable_mmu=$enableval
14804 else
14805 aros_enable_mmu="yes"
14808 if test "$aros_enable_mmu" = "" ; then
14809 aros_enable_mmu="yes"
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14812 $as_echo "$aros_enable_mmu" >&6; }
14814 if test "$aros_enable_mmu" = "no" ; then
14815 aros_enable_mmu="0"
14816 else
14817 aros_enable_mmu="1"
14821 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14823 if test "x-$need_dlopen" != "x-no" ; then
14824 save_libs="$LIBS"
14825 LIBS=""
14826 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14827 if test "x$ac_cv_func_dlopen" = xyes; then :
14828 have_dl="yes"
14829 else
14830 have_dl="no"
14833 if test "x-$have_dl" = "x-no" ; then
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14835 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14836 if ${ac_cv_lib_dl_dlopen+:} false; then :
14837 $as_echo_n "(cached) " >&6
14838 else
14839 ac_check_lib_save_LIBS=$LIBS
14840 LIBS="-ldl $LIBS"
14841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14842 /* end confdefs.h. */
14844 /* Override any GCC internal prototype to avoid an error.
14845 Use char because int might match the return type of a GCC
14846 builtin and then its argument prototype would still apply. */
14847 #ifdef __cplusplus
14848 extern "C"
14849 #endif
14850 char dlopen ();
14852 main ()
14854 return dlopen ();
14856 return 0;
14858 _ACEOF
14859 if ac_fn_c_try_link "$LINENO"; then :
14860 ac_cv_lib_dl_dlopen=yes
14861 else
14862 ac_cv_lib_dl_dlopen=no
14864 rm -f core conftest.err conftest.$ac_objext \
14865 conftest$ac_exeext conftest.$ac_ext
14866 LIBS=$ac_check_lib_save_LIBS
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14869 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14870 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14871 have_dl="yes"
14872 aros_host_ldflags="$aros_host_ldflags -ldl"
14873 else
14874 have_dl="no"
14878 if test "x-$have_dl" = "x-no" ; then
14879 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14881 LIBS="$save_libs"
14885 # Check whether --enable-x11_hidd was given.
14886 if test "${enable_x11_hidd+set}" = set; then :
14887 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14888 else
14889 x11_hidd="$need_x11"
14892 case "x-$x11_hidd" in
14893 x-yes|x-no|x-auto) ;;
14894 *) x11_hidd="$need_x11" ;;
14895 esac
14897 ENABLE_X11=0
14899 if test "x-$x11_hidd" != "x-no" ; then
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14902 $as_echo_n "checking for X... " >&6; }
14905 # Check whether --with-x was given.
14906 if test "${with_x+set}" = set; then :
14907 withval=$with_x;
14910 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14911 if test "x$with_x" = xno; then
14912 # The user explicitly disabled X.
14913 have_x=disabled
14914 else
14915 case $x_includes,$x_libraries in #(
14916 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14917 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14918 $as_echo_n "(cached) " >&6
14919 else
14920 # One or both of the vars are not set, and there is no cached value.
14921 ac_x_includes=no ac_x_libraries=no
14922 rm -f -r conftest.dir
14923 if mkdir conftest.dir; then
14924 cd conftest.dir
14925 cat >Imakefile <<'_ACEOF'
14926 incroot:
14927 @echo incroot='${INCROOT}'
14928 usrlibdir:
14929 @echo usrlibdir='${USRLIBDIR}'
14930 libdir:
14931 @echo libdir='${LIBDIR}'
14932 _ACEOF
14933 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14934 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14935 for ac_var in incroot usrlibdir libdir; do
14936 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14937 done
14938 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14939 for ac_extension in a so sl dylib la dll; do
14940 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14941 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14942 ac_im_usrlibdir=$ac_im_libdir; break
14944 done
14945 # Screen out bogus values from the imake configuration. They are
14946 # bogus both because they are the default anyway, and because
14947 # using them would break gcc on systems where it needs fixed includes.
14948 case $ac_im_incroot in
14949 /usr/include) ac_x_includes= ;;
14950 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14951 esac
14952 case $ac_im_usrlibdir in
14953 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14954 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14955 esac
14957 cd ..
14958 rm -f -r conftest.dir
14961 # Standard set of common directories for X headers.
14962 # Check X11 before X11Rn because it is often a symlink to the current release.
14963 ac_x_header_dirs='
14964 /usr/X11/include
14965 /usr/X11R7/include
14966 /usr/X11R6/include
14967 /usr/X11R5/include
14968 /usr/X11R4/include
14970 /usr/include/X11
14971 /usr/include/X11R7
14972 /usr/include/X11R6
14973 /usr/include/X11R5
14974 /usr/include/X11R4
14976 /usr/local/X11/include
14977 /usr/local/X11R7/include
14978 /usr/local/X11R6/include
14979 /usr/local/X11R5/include
14980 /usr/local/X11R4/include
14982 /usr/local/include/X11
14983 /usr/local/include/X11R7
14984 /usr/local/include/X11R6
14985 /usr/local/include/X11R5
14986 /usr/local/include/X11R4
14988 /usr/X386/include
14989 /usr/x386/include
14990 /usr/XFree86/include/X11
14992 /usr/include
14993 /usr/local/include
14994 /usr/unsupported/include
14995 /usr/athena/include
14996 /usr/local/x11r5/include
14997 /usr/lpp/Xamples/include
14999 /usr/openwin/include
15000 /usr/openwin/share/include'
15002 if test "$ac_x_includes" = no; then
15003 # Guess where to find include files, by looking for Xlib.h.
15004 # First, try using that file with no special directory specified.
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006 /* end confdefs.h. */
15007 #include <X11/Xlib.h>
15008 _ACEOF
15009 if ac_fn_c_try_cpp "$LINENO"; then :
15010 # We can compile using X headers with no special include directory.
15011 ac_x_includes=
15012 else
15013 for ac_dir in $ac_x_header_dirs; do
15014 if test -r "$ac_dir/X11/Xlib.h"; then
15015 ac_x_includes=$ac_dir
15016 break
15018 done
15020 rm -f conftest.err conftest.i conftest.$ac_ext
15021 fi # $ac_x_includes = no
15023 if test "$ac_x_libraries" = no; then
15024 # Check for the libraries.
15025 # See if we find them without any special options.
15026 # Don't add to $LIBS permanently.
15027 ac_save_LIBS=$LIBS
15028 LIBS="-lX11 $LIBS"
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15031 #include <X11/Xlib.h>
15033 main ()
15035 XrmInitialize ()
15037 return 0;
15039 _ACEOF
15040 if ac_fn_c_try_link "$LINENO"; then :
15041 LIBS=$ac_save_LIBS
15042 # We can link X programs with no special library path.
15043 ac_x_libraries=
15044 else
15045 LIBS=$ac_save_LIBS
15046 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15048 # Don't even attempt the hair of trying to link an X program!
15049 for ac_extension in a so sl dylib la dll; do
15050 if test -r "$ac_dir/libX11.$ac_extension"; then
15051 ac_x_libraries=$ac_dir
15052 break 2
15054 done
15055 done
15057 rm -f core conftest.err conftest.$ac_objext \
15058 conftest$ac_exeext conftest.$ac_ext
15059 fi # $ac_x_libraries = no
15061 case $ac_x_includes,$ac_x_libraries in #(
15062 no,* | *,no | *\'*)
15063 # Didn't find X, or a directory has "'" in its name.
15064 ac_cv_have_x="have_x=no";; #(
15066 # Record where we found X for the cache.
15067 ac_cv_have_x="have_x=yes\
15068 ac_x_includes='$ac_x_includes'\
15069 ac_x_libraries='$ac_x_libraries'"
15070 esac
15072 ;; #(
15073 *) have_x=yes;;
15074 esac
15075 eval "$ac_cv_have_x"
15076 fi # $with_x != no
15078 if test "$have_x" != yes; then
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15080 $as_echo "$have_x" >&6; }
15081 no_x=yes
15082 else
15083 # If each of the values was on the command line, it overrides each guess.
15084 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15085 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15086 # Update the cache value to reflect the command line values.
15087 ac_cv_have_x="have_x=yes\
15088 ac_x_includes='$x_includes'\
15089 ac_x_libraries='$x_libraries'"
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15091 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15095 if test -n "$x_includes"; then
15096 X_CFLAGS="$X_CFLAGS -I$x_includes"
15099 if test -n "$x_libraries"; then
15100 X_LIBS="$X_LIBS -L$x_libraries"
15103 if test "x-$no_x" = "x-yes" ; then
15105 if test "x-$x11_hidd" != "x-auto" ; then
15106 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
15109 else
15110 aros_target_options+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
15111 if test "x-$host_feature_glx" != "x-no" ; then
15112 aros_target_options+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
15114 ENABLE_X11=1
15116 aros_host_x11_cflags="$X_CFLAGS"
15117 aros_host_x11_ldflags="$X_LIBS -lX11"
15119 # Check whether --enable-x11_shm was given.
15120 if test "${enable_x11_shm+set}" = set; then :
15121 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
15122 else
15123 x11_hidd_shm="auto"
15126 case "x-$x11_hidd_shm" in
15127 x-yes|x-no|x-auto) ;;
15128 *) x11_hidd_shm="auto" ;;
15129 esac
15131 have_xshm=no
15133 if test "x-$x11_hidd_shm" != "x-no" ; then
15135 for ac_header in sys/ipc.h
15136 do :
15137 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
15138 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
15139 cat >>confdefs.h <<_ACEOF
15140 #define HAVE_SYS_IPC_H 1
15141 _ACEOF
15145 done
15147 for ac_header in sys/shm.h
15148 do :
15149 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
15150 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
15151 cat >>confdefs.h <<_ACEOF
15152 #define HAVE_SYS_SHM_H 1
15153 _ACEOF
15157 done
15160 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
15162 save_cflags="$CFLAGS"
15163 save_ldflags="$LDFLAGS"
15164 CFLAGS="$CFLAGS $X_CFLAGS"
15165 LDFLAGS="$LDFLAGS $X_LIBS"
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
15167 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
15168 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
15169 $as_echo_n "(cached) " >&6
15170 else
15171 ac_check_lib_save_LIBS=$LIBS
15172 LIBS="-lXext $LIBS"
15173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h. */
15176 /* Override any GCC internal prototype to avoid an error.
15177 Use char because int might match the return type of a GCC
15178 builtin and then its argument prototype would still apply. */
15179 #ifdef __cplusplus
15180 extern "C"
15181 #endif
15182 char XShmQueryExtension ();
15184 main ()
15186 return XShmQueryExtension ();
15188 return 0;
15190 _ACEOF
15191 if ac_fn_c_try_link "$LINENO"; then :
15192 ac_cv_lib_Xext_XShmQueryExtension=yes
15193 else
15194 ac_cv_lib_Xext_XShmQueryExtension=no
15196 rm -f core conftest.err conftest.$ac_objext \
15197 conftest$ac_exeext conftest.$ac_ext
15198 LIBS=$ac_check_lib_save_LIBS
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
15201 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
15202 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
15203 have_xshm=yes
15206 CFLAGS="$save_cflags"
15207 LDFLAGS="$save_ldflags"
15211 if test "x-$have_xshm" = "x-yes" ; then
15212 DO_XSHM_SUPPORT="1"
15213 elif test "x-$x11_hidd_shm" = "x-yes" ; then
15214 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
15215 else
15216 DO_XSHM_SUPPORT="0"
15220 # Check whether --enable-x11_vidmode was given.
15221 if test "${enable_x11_vidmode+set}" = set; then :
15222 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
15223 else
15224 x11_hidd_vidmode="auto"
15227 case "x-$x11_hidd_vidmode" in
15228 x-yes|x-no|x-auto) ;;
15229 *) x11_hidd_vidmode="auto" ;;
15230 esac
15232 have_vidmode=no
15234 if test "x-$x11_hidd_vidmode" != "x-no" ; then
15236 save_cflags="$CFLAGS"
15237 save_ldflags="$LDFLAGS"
15238 CFLAGS="$CFLAGS $X_CFLAGS"
15239 LDFLAGS="$LDFLAGS $X_LIBS"
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
15241 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
15242 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
15243 $as_echo_n "(cached) " >&6
15244 else
15245 ac_check_lib_save_LIBS=$LIBS
15246 LIBS="-lXxf86vm $LIBS"
15247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248 /* end confdefs.h. */
15250 /* Override any GCC internal prototype to avoid an error.
15251 Use char because int might match the return type of a GCC
15252 builtin and then its argument prototype would still apply. */
15253 #ifdef __cplusplus
15254 extern "C"
15255 #endif
15256 char XF86VidModeQueryExtension ();
15258 main ()
15260 return XF86VidModeQueryExtension ();
15262 return 0;
15264 _ACEOF
15265 if ac_fn_c_try_link "$LINENO"; then :
15266 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
15267 else
15268 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
15270 rm -f core conftest.err conftest.$ac_objext \
15271 conftest$ac_exeext conftest.$ac_ext
15272 LIBS=$ac_check_lib_save_LIBS
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
15275 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
15276 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
15277 have_vidmode=yes
15280 CFLAGS="$save_cflags"
15281 LDFLAGS="$save_ldflags"
15284 if test "x-$have_vidmode" = "x-yes" ; then
15285 DO_VIDMODE_SUPPORT="1"
15286 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
15287 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
15288 else
15289 DO_VIDMODE_SUPPORT="0"
15294 # Check whether --enable-sdl_hidd was given.
15295 if test "${enable_sdl_hidd+set}" = set; then :
15296 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
15297 else
15298 sdl_hidd="auto"
15301 case "x-$sdl_hidd" in
15302 x-yes|x-no|x-auto) ;;
15303 *) sdl_hidd="auto" ;;
15304 esac
15306 if test "x-$sdl_hidd" != "x-no" ; then
15308 SDL_VERSION=1.2.5
15310 # Check whether --with-sdl-prefix was given.
15311 if test "${with_sdl_prefix+set}" = set; then :
15312 withval=$with_sdl_prefix; sdl_prefix="$withval"
15313 else
15314 sdl_prefix=""
15318 # Check whether --with-sdl-exec-prefix was given.
15319 if test "${with_sdl_exec_prefix+set}" = set; then :
15320 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
15321 else
15322 sdl_exec_prefix=""
15325 # Check whether --enable-sdltest was given.
15326 if test "${enable_sdltest+set}" = set; then :
15327 enableval=$enable_sdltest;
15328 else
15329 enable_sdltest=yes
15333 if test x$sdl_exec_prefix != x ; then
15334 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15335 if test x${SDL_CONFIG+set} != xset ; then
15336 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
15339 if test x$sdl_prefix != x ; then
15340 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
15341 if test x${SDL_CONFIG+set} != xset ; then
15342 SDL_CONFIG=$sdl_prefix/bin/sdl-config
15346 as_save_PATH="$PATH"
15347 if test "x$prefix" != xNONE; then
15348 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
15350 # Extract the first word of "sdl-config", so it can be a program name with args.
15351 set dummy sdl-config; ac_word=$2
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15353 $as_echo_n "checking for $ac_word... " >&6; }
15354 if ${ac_cv_path_SDL_CONFIG+:} false; then :
15355 $as_echo_n "(cached) " >&6
15356 else
15357 case $SDL_CONFIG in
15358 [\\/]* | ?:[\\/]*)
15359 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
15362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15363 for as_dir in $PATH
15365 IFS=$as_save_IFS
15366 test -z "$as_dir" && as_dir=.
15367 for ac_exec_ext in '' $ac_executable_extensions; do
15368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15369 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15371 break 2
15373 done
15374 done
15375 IFS=$as_save_IFS
15377 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
15379 esac
15381 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
15382 if test -n "$SDL_CONFIG"; then
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15384 $as_echo "$SDL_CONFIG" >&6; }
15385 else
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15387 $as_echo "no" >&6; }
15391 PATH="$as_save_PATH"
15392 min_sdl_version=$SDL_VERSION
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15394 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15395 no_sdl=""
15396 if test "$SDL_CONFIG" = "no" ; then
15397 no_sdl=yes
15398 else
15399 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
15400 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
15402 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
15403 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15404 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
15405 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15406 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15407 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15408 if test "x$enable_sdltest" = "xyes" ; then
15409 ac_save_CFLAGS="$CFLAGS"
15410 ac_save_CXXFLAGS="$CXXFLAGS"
15411 ac_save_LIBS="$LIBS"
15412 CFLAGS="$CFLAGS $SDL_CFLAGS"
15413 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15414 LIBS="$LIBS $SDL_LIBS"
15415 rm -f conf.sdltest
15416 if test "$cross_compiling" = yes; then :
15417 echo $ac_n "cross compiling; assumed OK... $ac_c"
15418 else
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h. */
15422 #include <stdio.h>
15423 #include <stdlib.h>
15424 #include <string.h>
15425 #include "SDL.h"
15427 char*
15428 my_strdup (char *str)
15430 char *new_str;
15432 if (str)
15434 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15435 strcpy (new_str, str);
15437 else
15438 new_str = NULL;
15440 return new_str;
15443 int main (int argc, char *argv[])
15445 int major, minor, micro;
15446 char *tmp_version;
15448 /* This hangs on some systems (?)
15449 system ("touch conf.sdltest");
15451 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15453 /* HP/UX 9 (%@#!) writes to sscanf strings */
15454 tmp_version = my_strdup("$min_sdl_version");
15455 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15456 printf("%s, bad version string\n", "$min_sdl_version");
15457 exit(1);
15460 if (($sdl_major_version > major) ||
15461 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15462 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15464 return 0;
15466 else
15468 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15469 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15470 printf("*** best to upgrade to the required version.\n");
15471 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15472 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15473 printf("*** config.cache before re-running configure\n");
15474 return 1;
15479 _ACEOF
15480 if ac_fn_c_try_run "$LINENO"; then :
15482 else
15483 no_sdl=yes
15485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15486 conftest.$ac_objext conftest.beam conftest.$ac_ext
15489 CFLAGS="$ac_save_CFLAGS"
15490 CXXFLAGS="$ac_save_CXXFLAGS"
15491 LIBS="$ac_save_LIBS"
15494 if test "x$no_sdl" = x ; then
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15496 $as_echo "yes" >&6; }
15497 have_sdl="yes"
15498 else
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15500 $as_echo "no" >&6; }
15501 if test "$SDL_CONFIG" = "no" ; then
15502 echo "*** The sdl-config script installed by SDL could not be found"
15503 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15504 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15505 echo "*** full path to sdl-config."
15506 else
15507 if test -f conf.sdltest ; then
15509 else
15510 echo "*** Could not run SDL test program, checking why..."
15511 CFLAGS="$CFLAGS $SDL_CFLAGS"
15512 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15513 LIBS="$LIBS $SDL_LIBS"
15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515 /* end confdefs.h. */
15517 #include <stdio.h>
15518 #include "SDL.h"
15520 int main(int argc, char *argv[])
15521 { return 0; }
15522 #undef main
15523 #define main K_and_R_C_main
15526 main ()
15528 return 0;
15530 return 0;
15532 _ACEOF
15533 if ac_fn_c_try_link "$LINENO"; then :
15534 echo "*** The test program compiled, but did not run. This usually means"
15535 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15536 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15537 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15538 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15539 echo "*** is required on your system"
15540 echo "***"
15541 echo "*** If you have an old version installed, it is best to remove it, although"
15542 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15543 else
15544 echo "*** The test program failed to compile or link. See the file config.log for the"
15545 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15546 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15547 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15549 rm -f core conftest.err conftest.$ac_objext \
15550 conftest$ac_exeext conftest.$ac_ext
15551 CFLAGS="$ac_save_CFLAGS"
15552 CXXFLAGS="$ac_save_CXXFLAGS"
15553 LIBS="$ac_save_LIBS"
15556 SDL_CFLAGS=""
15557 SDL_LIBS=""
15558 have_sdl="no"
15562 rm -f conf.sdltest
15565 if test "x-$have_sdl" != "x-yes" ; then
15567 if test "x-$sdl_hidd" != "x-auto" ; then
15568 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15571 else
15572 aros_target_options+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15573 aros_host_sdl_cflags=$SDL_CFLAGS
15574 aros_host_sdl_libs=$SDL_LIBS
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15582 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15583 # Check whether --enable-dbus was given.
15584 if test "${enable_dbus+set}" = set; then :
15585 enableval=$enable_dbus; dbus="yes"
15586 else
15587 dbus="no"
15590 if test "$dbus" = "yes" ; then
15591 ENABLE_DBUS=1
15592 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15593 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15594 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15595 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15596 else
15597 ENABLE_DBUS=0
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15600 $as_echo "$dbus" >&6; }
15602 if test "$use_kernel_cc_wrapper" = "yes" ; then
15603 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15606 aros_kernel_cppflags=$aros_config_cppflags
15607 aros_optimization_cflags="$optimization_level"
15608 if test "$optimization" = "default"; then
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15610 $as_echo_n "checking default optimization level to use... " >&6; }
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15612 $as_echo "$optimization_level" >&6; }
15615 if ! test "$gcc_default_cpu" = "" ; then
15616 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"
15619 if test "$use_libatomic" = "yes" ; then
15620 aros_cxx_libs="$aros_cxx_libs -latomic"
15624 # Generic
15638 # Compatability with other Amiga-like operating systems
15641 # Host Related ###########################
15673 # Target Related #########################
15766 # Native version related
15771 # MMU related
15774 # Bootloader related
15777 # Unix/Hosted version related
15780 # ARM default GCC target related
15787 # Palm native version related
15790 # Apple iOS related
15795 # Android related
15801 # Debug related
15807 # Collect-aros stuff: "-ius" to ignore undefined symbols
15810 # C compiler related
15815 #ObjC compiler related
15818 #Java related
15821 # DBUS related
15828 #X11 related
15836 #X11 related
15840 # USB3.0 code
15843 case "$aros_flavour" in
15844 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15845 aros_flavour="emulation" ;;
15846 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15847 aros_flavour="emulation" ;;
15848 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15849 aros_flavour="standalone";;
15850 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15851 aros_flavour="standalone";;
15852 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15853 aros_flavour="native" ;;
15854 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15855 aros_flavour="native" ;;
15856 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15857 aros_flavour="linklib" ;;
15858 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15859 aros_flavour="palmnative" ;;
15860 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15861 aros_flavour="mac68knative" ;;
15862 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15863 aros_flavour="ppcnative" ;;
15864 esac
15866 if test ! -d ${aros_inc_dir} ; then
15867 ${MKDIR} ${aros_inc_dir}
15869 if test ! -d ${aros_geninc_dir} ; then
15870 ${MKDIR} ${aros_geninc_dir}
15872 if test ! -d ${aros_hostcfg_dir} ; then
15873 ${MKDIR} ${aros_hostcfg_dir}
15875 if test ! -d ${aros_targetcfg_dir} ; then
15876 ${MKDIR} ${aros_targetcfg_dir}
15878 if test ! -d ${aros_tools_dir} ; then
15879 ${MKDIR} ${aros_tools_dir}
15881 if test ! -d ${aros_scripts_dir} ; then
15882 ${MKDIR} ${aros_scripts_dir}
15885 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15888 # Generic build tools (metamake, etc)
15889 ac_config_commands="$ac_config_commands genmf-executable-support"
15891 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"
15894 # Binutils
15895 ac_config_commands="$ac_config_commands binutils-support"
15897 if test "${use_ld_wrapper}" = "yes"; then
15898 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"
15901 # Bare Elf support script and spec
15902 if test "${use_kernel_cc_wrapper}" = "yes"; then
15903 ac_config_commands="$ac_config_commands elf-compiler-support"
15905 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"
15909 # Host compiler support scripts and spec
15910 if test "${aros_target_toolchain}" = "no"; then
15911 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15913 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"
15917 # Android support
15918 if test "$aros_target_variant" == "android"; then
15919 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15923 # cmake helper
15924 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15927 cat >confcache <<\_ACEOF
15928 # This file is a shell script that caches the results of configure
15929 # tests run on this system so they can be shared between configure
15930 # scripts and configure runs, see configure's option --config-cache.
15931 # It is not useful on other systems. If it contains results you don't
15932 # want to keep, you may remove or edit it.
15934 # config.status only pays attention to the cache file if you give it
15935 # the --recheck option to rerun configure.
15937 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15938 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15939 # following values.
15941 _ACEOF
15943 # The following way of writing the cache mishandles newlines in values,
15944 # but we know of no workaround that is simple, portable, and efficient.
15945 # So, we kill variables containing newlines.
15946 # Ultrix sh set writes to stderr and can't be redirected directly,
15947 # and sets the high bit in the cache file unless we assign to the vars.
15949 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15950 eval ac_val=\$$ac_var
15951 case $ac_val in #(
15952 *${as_nl}*)
15953 case $ac_var in #(
15954 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15955 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15956 esac
15957 case $ac_var in #(
15958 _ | IFS | as_nl) ;; #(
15959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15960 *) { eval $ac_var=; unset $ac_var;} ;;
15961 esac ;;
15962 esac
15963 done
15965 (set) 2>&1 |
15966 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15967 *${as_nl}ac_space=\ *)
15968 # `set' does not quote correctly, so add quotes: double-quote
15969 # substitution turns \\\\ into \\, and sed turns \\ into \.
15970 sed -n \
15971 "s/'/'\\\\''/g;
15972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15973 ;; #(
15975 # `set' quotes correctly as required by POSIX, so do not add quotes.
15976 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15978 esac |
15979 sort
15981 sed '
15982 /^ac_cv_env_/b end
15983 t clear
15984 :clear
15985 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15986 t end
15987 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15988 :end' >>confcache
15989 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15990 if test -w "$cache_file"; then
15991 if test "x$cache_file" != "x/dev/null"; then
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15993 $as_echo "$as_me: updating cache $cache_file" >&6;}
15994 if test ! -f "$cache_file" || test -h "$cache_file"; then
15995 cat confcache >"$cache_file"
15996 else
15997 case $cache_file in #(
15998 */* | ?:*)
15999 mv -f confcache "$cache_file"$$ &&
16000 mv -f "$cache_file"$$ "$cache_file" ;; #(
16002 mv -f confcache "$cache_file" ;;
16003 esac
16006 else
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16008 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16011 rm -f confcache
16013 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16014 # Let make expand exec_prefix.
16015 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16017 DEFS=-DHAVE_CONFIG_H
16019 ac_libobjs=
16020 ac_ltlibobjs=
16022 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16023 # 1. Remove the extension, and $U if already installed.
16024 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16025 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16026 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16027 # will be set to the directory where LIBOBJS objects are built.
16028 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16029 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16030 done
16031 LIBOBJS=$ac_libobjs
16033 LTLIBOBJS=$ac_ltlibobjs
16037 : "${CONFIG_STATUS=./config.status}"
16038 ac_write_fail=0
16039 ac_clean_files_save=$ac_clean_files
16040 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16042 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16043 as_write_fail=0
16044 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16045 #! $SHELL
16046 # Generated by $as_me.
16047 # Run this file to recreate the current configuration.
16048 # Compiler output produced by configure, useful for debugging
16049 # configure, is in config.log if it exists.
16051 debug=false
16052 ac_cs_recheck=false
16053 ac_cs_silent=false
16055 SHELL=\${CONFIG_SHELL-$SHELL}
16056 export SHELL
16057 _ASEOF
16058 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16059 ## -------------------- ##
16060 ## M4sh Initialization. ##
16061 ## -------------------- ##
16063 # Be more Bourne compatible
16064 DUALCASE=1; export DUALCASE # for MKS sh
16065 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16066 emulate sh
16067 NULLCMD=:
16068 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16069 # is contrary to our usage. Disable this feature.
16070 alias -g '${1+"$@"}'='"$@"'
16071 setopt NO_GLOB_SUBST
16072 else
16073 case `(set -o) 2>/dev/null` in #(
16074 *posix*) :
16075 set -o posix ;; #(
16076 *) :
16078 esac
16082 as_nl='
16084 export as_nl
16085 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16086 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16087 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16088 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16089 # Prefer a ksh shell builtin over an external printf program on Solaris,
16090 # but without wasting forks for bash or zsh.
16091 if test -z "$BASH_VERSION$ZSH_VERSION" \
16092 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16093 as_echo='print -r --'
16094 as_echo_n='print -rn --'
16095 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16096 as_echo='printf %s\n'
16097 as_echo_n='printf %s'
16098 else
16099 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16100 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16101 as_echo_n='/usr/ucb/echo -n'
16102 else
16103 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16104 as_echo_n_body='eval
16105 arg=$1;
16106 case $arg in #(
16107 *"$as_nl"*)
16108 expr "X$arg" : "X\\(.*\\)$as_nl";
16109 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16110 esac;
16111 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16113 export as_echo_n_body
16114 as_echo_n='sh -c $as_echo_n_body as_echo'
16116 export as_echo_body
16117 as_echo='sh -c $as_echo_body as_echo'
16120 # The user is always right.
16121 if test "${PATH_SEPARATOR+set}" != set; then
16122 PATH_SEPARATOR=:
16123 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16124 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16125 PATH_SEPARATOR=';'
16130 # IFS
16131 # We need space, tab and new line, in precisely that order. Quoting is
16132 # there to prevent editors from complaining about space-tab.
16133 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16134 # splitting by setting IFS to empty value.)
16135 IFS=" "" $as_nl"
16137 # Find who we are. Look in the path if we contain no directory separator.
16138 as_myself=
16139 case $0 in #((
16140 *[\\/]* ) as_myself=$0 ;;
16141 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16142 for as_dir in $PATH
16144 IFS=$as_save_IFS
16145 test -z "$as_dir" && as_dir=.
16146 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16147 done
16148 IFS=$as_save_IFS
16151 esac
16152 # We did not find ourselves, most probably we were run as `sh COMMAND'
16153 # in which case we are not to be found in the path.
16154 if test "x$as_myself" = x; then
16155 as_myself=$0
16157 if test ! -f "$as_myself"; then
16158 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16159 exit 1
16162 # Unset variables that we do not need and which cause bugs (e.g. in
16163 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16164 # suppresses any "Segmentation fault" message there. '((' could
16165 # trigger a bug in pdksh 5.2.14.
16166 for as_var in BASH_ENV ENV MAIL MAILPATH
16167 do eval test x\${$as_var+set} = xset \
16168 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16169 done
16170 PS1='$ '
16171 PS2='> '
16172 PS4='+ '
16174 # NLS nuisances.
16175 LC_ALL=C
16176 export LC_ALL
16177 LANGUAGE=C
16178 export LANGUAGE
16180 # CDPATH.
16181 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16184 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16185 # ----------------------------------------
16186 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16187 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16188 # script with STATUS, using 1 if that was 0.
16189 as_fn_error ()
16191 as_status=$1; test $as_status -eq 0 && as_status=1
16192 if test "$4"; then
16193 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16194 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16196 $as_echo "$as_me: error: $2" >&2
16197 as_fn_exit $as_status
16198 } # as_fn_error
16201 # as_fn_set_status STATUS
16202 # -----------------------
16203 # Set $? to STATUS, without forking.
16204 as_fn_set_status ()
16206 return $1
16207 } # as_fn_set_status
16209 # as_fn_exit STATUS
16210 # -----------------
16211 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16212 as_fn_exit ()
16214 set +e
16215 as_fn_set_status $1
16216 exit $1
16217 } # as_fn_exit
16219 # as_fn_unset VAR
16220 # ---------------
16221 # Portably unset VAR.
16222 as_fn_unset ()
16224 { eval $1=; unset $1;}
16226 as_unset=as_fn_unset
16227 # as_fn_append VAR VALUE
16228 # ----------------------
16229 # Append the text in VALUE to the end of the definition contained in VAR. Take
16230 # advantage of any shell optimizations that allow amortized linear growth over
16231 # repeated appends, instead of the typical quadratic growth present in naive
16232 # implementations.
16233 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16234 eval 'as_fn_append ()
16236 eval $1+=\$2
16238 else
16239 as_fn_append ()
16241 eval $1=\$$1\$2
16243 fi # as_fn_append
16245 # as_fn_arith ARG...
16246 # ------------------
16247 # Perform arithmetic evaluation on the ARGs, and store the result in the
16248 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16249 # must be portable across $(()) and expr.
16250 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16251 eval 'as_fn_arith ()
16253 as_val=$(( $* ))
16255 else
16256 as_fn_arith ()
16258 as_val=`expr "$@" || test $? -eq 1`
16260 fi # as_fn_arith
16263 if expr a : '\(a\)' >/dev/null 2>&1 &&
16264 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16265 as_expr=expr
16266 else
16267 as_expr=false
16270 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16271 as_basename=basename
16272 else
16273 as_basename=false
16276 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16277 as_dirname=dirname
16278 else
16279 as_dirname=false
16282 as_me=`$as_basename -- "$0" ||
16283 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16284 X"$0" : 'X\(//\)$' \| \
16285 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16286 $as_echo X/"$0" |
16287 sed '/^.*\/\([^/][^/]*\)\/*$/{
16288 s//\1/
16291 /^X\/\(\/\/\)$/{
16292 s//\1/
16295 /^X\/\(\/\).*/{
16296 s//\1/
16299 s/.*/./; q'`
16301 # Avoid depending upon Character Ranges.
16302 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16303 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16304 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16305 as_cr_digits='0123456789'
16306 as_cr_alnum=$as_cr_Letters$as_cr_digits
16308 ECHO_C= ECHO_N= ECHO_T=
16309 case `echo -n x` in #(((((
16310 -n*)
16311 case `echo 'xy\c'` in
16312 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16313 xy) ECHO_C='\c';;
16314 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16315 ECHO_T=' ';;
16316 esac;;
16318 ECHO_N='-n';;
16319 esac
16321 rm -f conf$$ conf$$.exe conf$$.file
16322 if test -d conf$$.dir; then
16323 rm -f conf$$.dir/conf$$.file
16324 else
16325 rm -f conf$$.dir
16326 mkdir conf$$.dir 2>/dev/null
16328 if (echo >conf$$.file) 2>/dev/null; then
16329 if ln -s conf$$.file conf$$ 2>/dev/null; then
16330 as_ln_s='ln -s'
16331 # ... but there are two gotchas:
16332 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16333 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16334 # In both cases, we have to default to `cp -pR'.
16335 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16336 as_ln_s='cp -pR'
16337 elif ln conf$$.file conf$$ 2>/dev/null; then
16338 as_ln_s=ln
16339 else
16340 as_ln_s='cp -pR'
16342 else
16343 as_ln_s='cp -pR'
16345 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16346 rmdir conf$$.dir 2>/dev/null
16349 # as_fn_mkdir_p
16350 # -------------
16351 # Create "$as_dir" as a directory, including parents if necessary.
16352 as_fn_mkdir_p ()
16355 case $as_dir in #(
16356 -*) as_dir=./$as_dir;;
16357 esac
16358 test -d "$as_dir" || eval $as_mkdir_p || {
16359 as_dirs=
16360 while :; do
16361 case $as_dir in #(
16362 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16363 *) as_qdir=$as_dir;;
16364 esac
16365 as_dirs="'$as_qdir' $as_dirs"
16366 as_dir=`$as_dirname -- "$as_dir" ||
16367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16368 X"$as_dir" : 'X\(//\)[^/]' \| \
16369 X"$as_dir" : 'X\(//\)$' \| \
16370 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16371 $as_echo X"$as_dir" |
16372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16373 s//\1/
16376 /^X\(\/\/\)[^/].*/{
16377 s//\1/
16380 /^X\(\/\/\)$/{
16381 s//\1/
16384 /^X\(\/\).*/{
16385 s//\1/
16388 s/.*/./; q'`
16389 test -d "$as_dir" && break
16390 done
16391 test -z "$as_dirs" || eval "mkdir $as_dirs"
16392 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16395 } # as_fn_mkdir_p
16396 if mkdir -p . 2>/dev/null; then
16397 as_mkdir_p='mkdir -p "$as_dir"'
16398 else
16399 test -d ./-p && rmdir ./-p
16400 as_mkdir_p=false
16404 # as_fn_executable_p FILE
16405 # -----------------------
16406 # Test if FILE is an executable regular file.
16407 as_fn_executable_p ()
16409 test -f "$1" && test -x "$1"
16410 } # as_fn_executable_p
16411 as_test_x='test -x'
16412 as_executable_p=as_fn_executable_p
16414 # Sed expression to map a string onto a valid CPP name.
16415 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16417 # Sed expression to map a string onto a valid variable name.
16418 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16421 exec 6>&1
16422 ## ----------------------------------- ##
16423 ## Main body of $CONFIG_STATUS script. ##
16424 ## ----------------------------------- ##
16425 _ASEOF
16426 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16429 # Save the log message, to keep $0 and so on meaningful, and to
16430 # report actual input values of CONFIG_FILES etc. instead of their
16431 # values after options handling.
16432 ac_log="
16433 This file was extended by $as_me, which was
16434 generated by GNU Autoconf 2.69. Invocation command line was
16436 CONFIG_FILES = $CONFIG_FILES
16437 CONFIG_HEADERS = $CONFIG_HEADERS
16438 CONFIG_LINKS = $CONFIG_LINKS
16439 CONFIG_COMMANDS = $CONFIG_COMMANDS
16440 $ $0 $@
16442 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16445 _ACEOF
16447 case $ac_config_files in *"
16448 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16449 esac
16451 case $ac_config_headers in *"
16452 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16453 esac
16456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16457 # Files that config.status was made for.
16458 config_files="$ac_config_files"
16459 config_headers="$ac_config_headers"
16460 config_commands="$ac_config_commands"
16462 _ACEOF
16464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16465 ac_cs_usage="\
16466 \`$as_me' instantiates files and other configuration actions
16467 from templates according to the current configuration. Unless the files
16468 and actions are specified as TAGs, all are instantiated by default.
16470 Usage: $0 [OPTION]... [TAG]...
16472 -h, --help print this help, then exit
16473 -V, --version print version number and configuration settings, then exit
16474 --config print configuration, then exit
16475 -q, --quiet, --silent
16476 do not print progress messages
16477 -d, --debug don't remove temporary files
16478 --recheck update $as_me by reconfiguring in the same conditions
16479 --file=FILE[:TEMPLATE]
16480 instantiate the configuration file FILE
16481 --header=FILE[:TEMPLATE]
16482 instantiate the configuration header FILE
16484 Configuration files:
16485 $config_files
16487 Configuration headers:
16488 $config_headers
16490 Configuration commands:
16491 $config_commands
16493 Report bugs to the package provider."
16495 _ACEOF
16496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16497 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16498 ac_cs_version="\\
16499 config.status
16500 configured by $0, generated by GNU Autoconf 2.69,
16501 with options \\"\$ac_cs_config\\"
16503 Copyright (C) 2012 Free Software Foundation, Inc.
16504 This config.status script is free software; the Free Software Foundation
16505 gives unlimited permission to copy, distribute and modify it."
16507 ac_pwd='$ac_pwd'
16508 srcdir='$srcdir'
16509 test -n "\$AWK" || AWK=awk
16510 _ACEOF
16512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16513 # The default lists apply if the user does not specify any file.
16514 ac_need_defaults=:
16515 while test $# != 0
16517 case $1 in
16518 --*=?*)
16519 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16520 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16521 ac_shift=:
16523 --*=)
16524 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16525 ac_optarg=
16526 ac_shift=:
16529 ac_option=$1
16530 ac_optarg=$2
16531 ac_shift=shift
16533 esac
16535 case $ac_option in
16536 # Handling of the options.
16537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16538 ac_cs_recheck=: ;;
16539 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16540 $as_echo "$ac_cs_version"; exit ;;
16541 --config | --confi | --conf | --con | --co | --c )
16542 $as_echo "$ac_cs_config"; exit ;;
16543 --debug | --debu | --deb | --de | --d | -d )
16544 debug=: ;;
16545 --file | --fil | --fi | --f )
16546 $ac_shift
16547 case $ac_optarg in
16548 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16549 '') as_fn_error $? "missing file argument" ;;
16550 esac
16551 as_fn_append CONFIG_FILES " '$ac_optarg'"
16552 ac_need_defaults=false;;
16553 --header | --heade | --head | --hea )
16554 $ac_shift
16555 case $ac_optarg in
16556 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16557 esac
16558 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16559 ac_need_defaults=false;;
16560 --he | --h)
16561 # Conflict between --help and --header
16562 as_fn_error $? "ambiguous option: \`$1'
16563 Try \`$0 --help' for more information.";;
16564 --help | --hel | -h )
16565 $as_echo "$ac_cs_usage"; exit ;;
16566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16567 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16568 ac_cs_silent=: ;;
16570 # This is an error.
16571 -*) as_fn_error $? "unrecognized option: \`$1'
16572 Try \`$0 --help' for more information." ;;
16574 *) as_fn_append ac_config_targets " $1"
16575 ac_need_defaults=false ;;
16577 esac
16578 shift
16579 done
16581 ac_configure_extra_args=
16583 if $ac_cs_silent; then
16584 exec 6>/dev/null
16585 ac_configure_extra_args="$ac_configure_extra_args --silent"
16588 _ACEOF
16589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16590 if \$ac_cs_recheck; then
16591 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16592 shift
16593 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16594 CONFIG_SHELL='$SHELL'
16595 export CONFIG_SHELL
16596 exec "\$@"
16599 _ACEOF
16600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16601 exec 5>>config.log
16603 echo
16604 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16605 ## Running $as_me. ##
16606 _ASBOX
16607 $as_echo "$ac_log"
16608 } >&5
16610 _ACEOF
16611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16613 # INIT-COMMANDS
16616 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16617 aros_tools_dir=${aros_tools_dir}
16621 aros_host_exe_suffix=${aros_host_exe_suffix}
16622 aros_tools_dir=${aros_tools_dir}
16623 aros_target_cpu=${aros_target_cpu}
16624 aros_target_arch=${aros_target_arch}
16625 aros_target_suffix=${aros_target_suffix}
16626 orig_target_nm=${orig_target_nm}
16627 orig_target_as=${orig_target_as}
16628 orig_target_ar=${orig_target_ar}
16629 orig_target_ranlib=${orig_target_ranlib}
16630 orig_target_objdump=${orig_target_objdump}
16631 orig_target_objcopy=${orig_target_objcopy}
16632 orig_target_strip=${orig_target_strip}
16633 aros_kernel_ld=${aros_kernel_ld}
16637 aros_host_exe_suffix=${aros_host_exe_suffix}
16638 aros_tools_dir=${aros_tools_dir}
16639 aros_target_cpu=${aros_target_cpu}
16640 aros_target_arch=${aros_target_arch}
16641 aros_target_suffix=${aros_target_suffix}
16642 aros_kernel_ld=${aros_kernel_ld}
16646 aros_host_exe_suffix=${aros_host_exe_suffix}
16647 aros_tools_dir=${aros_tools_dir}
16648 aros_target_cpu=${aros_target_cpu}
16649 aros_target_arch=${aros_target_arch}
16650 aros_target_suffix=${aros_target_suffix}
16654 _ACEOF
16656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16658 # Handling of arguments.
16659 for ac_config_target in $ac_config_targets
16661 case $ac_config_target in
16662 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16663 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16664 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16665 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16666 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16667 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16668 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16669 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16670 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16671 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16672 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16673 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16674 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16675 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16676 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16677 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16678 "${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" ;;
16679 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16680 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16681 "${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" ;;
16682 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16683 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16684 "${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" ;;
16685 "${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" ;;
16686 "${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" ;;
16687 "${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" ;;
16688 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16690 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16691 esac
16692 done
16695 # If the user did not use the arguments to specify the items to instantiate,
16696 # then the envvar interface is used. Set only those that are not.
16697 # We use the long form for the default assignment because of an extremely
16698 # bizarre bug on SunOS 4.1.3.
16699 if $ac_need_defaults; then
16700 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16701 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16702 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16705 # Have a temporary directory for convenience. Make it in the build tree
16706 # simply because there is no reason against having it here, and in addition,
16707 # creating and moving files from /tmp can sometimes cause problems.
16708 # Hook for its removal unless debugging.
16709 # Note that there is a small window in which the directory will not be cleaned:
16710 # after its creation but before its name has been assigned to `$tmp'.
16711 $debug ||
16713 tmp= ac_tmp=
16714 trap 'exit_status=$?
16715 : "${ac_tmp:=$tmp}"
16716 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16718 trap 'as_fn_exit 1' 1 2 13 15
16720 # Create a (secure) tmp directory for tmp files.
16723 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16724 test -d "$tmp"
16725 } ||
16727 tmp=./conf$$-$RANDOM
16728 (umask 077 && mkdir "$tmp")
16729 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16730 ac_tmp=$tmp
16732 # Set up the scripts for CONFIG_FILES section.
16733 # No need to generate them if there are no CONFIG_FILES.
16734 # This happens for instance with `./config.status config.h'.
16735 if test -n "$CONFIG_FILES"; then
16738 ac_cr=`echo X | tr X '\015'`
16739 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16740 # But we know of no other shell where ac_cr would be empty at this
16741 # point, so we can use a bashism as a fallback.
16742 if test "x$ac_cr" = x; then
16743 eval ac_cr=\$\'\\r\'
16745 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16746 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16747 ac_cs_awk_cr='\\r'
16748 else
16749 ac_cs_awk_cr=$ac_cr
16752 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16753 _ACEOF
16757 echo "cat >conf$$subs.awk <<_ACEOF" &&
16758 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16759 echo "_ACEOF"
16760 } >conf$$subs.sh ||
16761 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16762 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16763 ac_delim='%!_!# '
16764 for ac_last_try in false false false false false :; do
16765 . ./conf$$subs.sh ||
16766 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16768 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16769 if test $ac_delim_n = $ac_delim_num; then
16770 break
16771 elif $ac_last_try; then
16772 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16773 else
16774 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16776 done
16777 rm -f conf$$subs.sh
16779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16780 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16781 _ACEOF
16782 sed -n '
16784 s/^/S["/; s/!.*/"]=/
16787 s/^[^!]*!//
16788 :repl
16789 t repl
16790 s/'"$ac_delim"'$//
16791 t delim
16794 s/\(.\{148\}\)..*/\1/
16795 t more1
16796 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16799 b repl
16800 :more1
16801 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16804 s/.\{148\}//
16805 t nl
16806 :delim
16808 s/\(.\{148\}\)..*/\1/
16809 t more2
16810 s/["\\]/\\&/g; s/^/"/; s/$/"/
16813 :more2
16814 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16817 s/.\{148\}//
16818 t delim
16819 ' <conf$$subs.awk | sed '
16820 /^[^""]/{
16822 s/\n//
16824 ' >>$CONFIG_STATUS || ac_write_fail=1
16825 rm -f conf$$subs.awk
16826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16827 _ACAWK
16828 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16829 for (key in S) S_is_set[key] = 1
16830 FS = "\a"
16834 line = $ 0
16835 nfields = split(line, field, "@")
16836 substed = 0
16837 len = length(field[1])
16838 for (i = 2; i < nfields; i++) {
16839 key = field[i]
16840 keylen = length(key)
16841 if (S_is_set[key]) {
16842 value = S[key]
16843 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16844 len += length(value) + length(field[++i])
16845 substed = 1
16846 } else
16847 len += 1 + keylen
16850 print line
16853 _ACAWK
16854 _ACEOF
16855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16856 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16857 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16858 else
16860 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16861 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16862 _ACEOF
16864 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16865 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16866 # trailing colons and then remove the whole line if VPATH becomes empty
16867 # (actually we leave an empty line to preserve line numbers).
16868 if test "x$srcdir" = x.; then
16869 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16871 s///
16872 s/^/:/
16873 s/[ ]*$/:/
16874 s/:\$(srcdir):/:/g
16875 s/:\${srcdir}:/:/g
16876 s/:@srcdir@:/:/g
16877 s/^:*//
16878 s/:*$//
16880 s/\(=[ ]*\).*/\1/
16882 s/\n//
16883 s/^[^=]*=[ ]*$//
16887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16888 fi # test -n "$CONFIG_FILES"
16890 # Set up the scripts for CONFIG_HEADERS section.
16891 # No need to generate them if there are no CONFIG_HEADERS.
16892 # This happens for instance with `./config.status Makefile'.
16893 if test -n "$CONFIG_HEADERS"; then
16894 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16895 BEGIN {
16896 _ACEOF
16898 # Transform confdefs.h into an awk script `defines.awk', embedded as
16899 # here-document in config.status, that substitutes the proper values into
16900 # config.h.in to produce config.h.
16902 # Create a delimiter string that does not exist in confdefs.h, to ease
16903 # handling of long lines.
16904 ac_delim='%!_!# '
16905 for ac_last_try in false false :; do
16906 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16907 if test -z "$ac_tt"; then
16908 break
16909 elif $ac_last_try; then
16910 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16911 else
16912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16914 done
16916 # For the awk script, D is an array of macro values keyed by name,
16917 # likewise P contains macro parameters if any. Preserve backslash
16918 # newline sequences.
16920 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16921 sed -n '
16922 s/.\{148\}/&'"$ac_delim"'/g
16923 t rset
16924 :rset
16925 s/^[ ]*#[ ]*define[ ][ ]*/ /
16926 t def
16928 :def
16929 s/\\$//
16930 t bsnl
16931 s/["\\]/\\&/g
16932 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16933 D["\1"]=" \3"/p
16934 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16936 :bsnl
16937 s/["\\]/\\&/g
16938 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16939 D["\1"]=" \3\\\\\\n"\\/p
16940 t cont
16941 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16942 t cont
16944 :cont
16946 s/.\{148\}/&'"$ac_delim"'/g
16947 t clear
16948 :clear
16949 s/\\$//
16950 t bsnlc
16951 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16953 :bsnlc
16954 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16955 b cont
16956 ' <confdefs.h | sed '
16957 s/'"$ac_delim"'/"\\\
16958 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16961 for (key in D) D_is_set[key] = 1
16962 FS = "\a"
16964 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16965 line = \$ 0
16966 split(line, arg, " ")
16967 if (arg[1] == "#") {
16968 defundef = arg[2]
16969 mac1 = arg[3]
16970 } else {
16971 defundef = substr(arg[1], 2)
16972 mac1 = arg[2]
16974 split(mac1, mac2, "(") #)
16975 macro = mac2[1]
16976 prefix = substr(line, 1, index(line, defundef) - 1)
16977 if (D_is_set[macro]) {
16978 # Preserve the white space surrounding the "#".
16979 print prefix "define", macro P[macro] D[macro]
16980 next
16981 } else {
16982 # Replace #undef with comments. This is necessary, for example,
16983 # in the case of _POSIX_SOURCE, which is predefined and required
16984 # on some systems where configure will not decide to define it.
16985 if (defundef == "undef") {
16986 print "/*", prefix defundef, macro, "*/"
16987 next
16991 { print }
16992 _ACAWK
16993 _ACEOF
16994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16995 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16996 fi # test -n "$CONFIG_HEADERS"
16999 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17000 shift
17001 for ac_tag
17003 case $ac_tag in
17004 :[FHLC]) ac_mode=$ac_tag; continue;;
17005 esac
17006 case $ac_mode$ac_tag in
17007 :[FHL]*:*);;
17008 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17009 :[FH]-) ac_tag=-:-;;
17010 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17011 esac
17012 ac_save_IFS=$IFS
17013 IFS=:
17014 set x $ac_tag
17015 IFS=$ac_save_IFS
17016 shift
17017 ac_file=$1
17018 shift
17020 case $ac_mode in
17021 :L) ac_source=$1;;
17022 :[FH])
17023 ac_file_inputs=
17024 for ac_f
17026 case $ac_f in
17027 -) ac_f="$ac_tmp/stdin";;
17028 *) # Look for the file first in the build tree, then in the source tree
17029 # (if the path is not absolute). The absolute path cannot be DOS-style,
17030 # because $ac_f cannot contain `:'.
17031 test -f "$ac_f" ||
17032 case $ac_f in
17033 [\\/$]*) false;;
17034 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17035 esac ||
17036 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17037 esac
17038 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17039 as_fn_append ac_file_inputs " '$ac_f'"
17040 done
17042 # Let's still pretend it is `configure' which instantiates (i.e., don't
17043 # use $as_me), people would be surprised to read:
17044 # /* config.h. Generated by config.status. */
17045 configure_input='Generated from '`
17046 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17047 `' by configure.'
17048 if test x"$ac_file" != x-; then
17049 configure_input="$ac_file. $configure_input"
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17051 $as_echo "$as_me: creating $ac_file" >&6;}
17053 # Neutralize special characters interpreted by sed in replacement strings.
17054 case $configure_input in #(
17055 *\&* | *\|* | *\\* )
17056 ac_sed_conf_input=`$as_echo "$configure_input" |
17057 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17058 *) ac_sed_conf_input=$configure_input;;
17059 esac
17061 case $ac_tag in
17062 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17063 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17064 esac
17066 esac
17068 ac_dir=`$as_dirname -- "$ac_file" ||
17069 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17070 X"$ac_file" : 'X\(//\)[^/]' \| \
17071 X"$ac_file" : 'X\(//\)$' \| \
17072 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17073 $as_echo X"$ac_file" |
17074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17075 s//\1/
17078 /^X\(\/\/\)[^/].*/{
17079 s//\1/
17082 /^X\(\/\/\)$/{
17083 s//\1/
17086 /^X\(\/\).*/{
17087 s//\1/
17090 s/.*/./; q'`
17091 as_dir="$ac_dir"; as_fn_mkdir_p
17092 ac_builddir=.
17094 case "$ac_dir" in
17095 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17097 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17098 # A ".." for each directory in $ac_dir_suffix.
17099 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17100 case $ac_top_builddir_sub in
17101 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17102 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17103 esac ;;
17104 esac
17105 ac_abs_top_builddir=$ac_pwd
17106 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17107 # for backward compatibility:
17108 ac_top_builddir=$ac_top_build_prefix
17110 case $srcdir in
17111 .) # We are building in place.
17112 ac_srcdir=.
17113 ac_top_srcdir=$ac_top_builddir_sub
17114 ac_abs_top_srcdir=$ac_pwd ;;
17115 [\\/]* | ?:[\\/]* ) # Absolute name.
17116 ac_srcdir=$srcdir$ac_dir_suffix;
17117 ac_top_srcdir=$srcdir
17118 ac_abs_top_srcdir=$srcdir ;;
17119 *) # Relative name.
17120 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17121 ac_top_srcdir=$ac_top_build_prefix$srcdir
17122 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17123 esac
17124 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17127 case $ac_mode in
17130 # CONFIG_FILE
17133 _ACEOF
17135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17136 # If the template does not know about datarootdir, expand it.
17137 # FIXME: This hack should be removed a few years after 2.60.
17138 ac_datarootdir_hack=; ac_datarootdir_seen=
17139 ac_sed_dataroot='
17140 /datarootdir/ {
17144 /@datadir@/p
17145 /@docdir@/p
17146 /@infodir@/p
17147 /@localedir@/p
17148 /@mandir@/p'
17149 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17150 *datarootdir*) ac_datarootdir_seen=yes;;
17151 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17153 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17154 _ACEOF
17155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17156 ac_datarootdir_hack='
17157 s&@datadir@&$datadir&g
17158 s&@docdir@&$docdir&g
17159 s&@infodir@&$infodir&g
17160 s&@localedir@&$localedir&g
17161 s&@mandir@&$mandir&g
17162 s&\\\${datarootdir}&$datarootdir&g' ;;
17163 esac
17164 _ACEOF
17166 # Neutralize VPATH when `$srcdir' = `.'.
17167 # Shell code in configure.ac might set extrasub.
17168 # FIXME: do we really want to maintain this feature?
17169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17170 ac_sed_extra="$ac_vpsub
17171 $extrasub
17172 _ACEOF
17173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17175 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17176 s|@configure_input@|$ac_sed_conf_input|;t t
17177 s&@top_builddir@&$ac_top_builddir_sub&;t t
17178 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17179 s&@srcdir@&$ac_srcdir&;t t
17180 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17181 s&@top_srcdir@&$ac_top_srcdir&;t t
17182 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17183 s&@builddir@&$ac_builddir&;t t
17184 s&@abs_builddir@&$ac_abs_builddir&;t t
17185 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17186 $ac_datarootdir_hack
17188 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17189 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17191 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17192 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17193 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17194 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17196 which seems to be undefined. Please make sure it is defined" >&5
17197 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17198 which seems to be undefined. Please make sure it is defined" >&2;}
17200 rm -f "$ac_tmp/stdin"
17201 case $ac_file in
17202 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17203 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17204 esac \
17205 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17209 # CONFIG_HEADER
17211 if test x"$ac_file" != x-; then
17213 $as_echo "/* $configure_input */" \
17214 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17215 } >"$ac_tmp/config.h" \
17216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17217 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17219 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17220 else
17221 rm -f "$ac_file"
17222 mv "$ac_tmp/config.h" "$ac_file" \
17223 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17225 else
17226 $as_echo "/* $configure_input */" \
17227 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17228 || as_fn_error $? "could not create -" "$LINENO" 5
17232 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17233 $as_echo "$as_me: executing $ac_file commands" >&6;}
17235 esac
17238 case $ac_file$ac_mode in
17239 "genmf-executable-support":C)
17240 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
17241 chmod a+x ${aros_tools_dir}/genmf.py
17243 "binutils-support":C)
17244 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17245 mkdir -p $prefix
17246 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17248 chmod a+x ${prefix2}-ld
17250 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
17251 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
17252 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
17253 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
17254 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
17255 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
17256 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
17258 "elf-compiler-support":C)
17259 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17260 mkdir -p $prefix
17261 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
17263 chmod a+x ${prefix2}-gcc
17265 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
17267 "host-compiler-wrapper-support":C)
17268 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17269 mkdir -p $prefix
17270 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17272 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
17275 esac
17276 done # for ac_tag
17279 as_fn_exit 0
17280 _ACEOF
17281 ac_clean_files=$ac_clean_files_save
17283 test $ac_write_fail = 0 ||
17284 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17287 # configure is writing to config.log, and then calls config.status.
17288 # config.status does its own redirection, appending to config.log.
17289 # Unfortunately, on DOS this fails, as config.log is still kept open
17290 # by configure, so config.status won't be able to write to it; its
17291 # output is simply discarded. So we exec the FD to /dev/null,
17292 # effectively closing config.log, so it can be properly (re)opened and
17293 # appended to by config.status. When coming back to configure, we
17294 # need to make the FD available again.
17295 if test "$no_create" != yes; then
17296 ac_cs_success=:
17297 ac_config_status_args=
17298 test "$silent" = yes &&
17299 ac_config_status_args="$ac_config_status_args --quiet"
17300 exec 5>/dev/null
17301 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17302 exec 5>>config.log
17303 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17304 # would make configure fail if this is the last instruction.
17305 $ac_cs_success || as_fn_exit 1
17307 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17309 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17314 #XXX compatability...
17315 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
17317 if test -n "$aros_shared_cflags" ; then
17318 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
17319 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg