Build version 1 of all catalogs.
[AROS.git] / configure
blob5073cc29b4925d835c3ee6febdf78b89a7b479a3
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 java_target
626 objc_target
627 target_binutils_version
628 gcc_target_cpu
629 ignore_undefined_symbols
630 aros_modules_debug
631 aros_stack_debug
632 aros_mungwall_debug
633 aros_debug
634 ENABLE_X11
635 KERNEL_DBUS_INCLUDES
636 KERNEL_DBUS_KOBJ
637 DBUS_LIBFLAGS
638 DBUS_CFLAGS
639 ENABLE_DBUS
640 aros_android_antapk
641 aros_android_level
642 gcc_default_mode
643 gcc_default_float_abi
644 gcc_default_fpu
645 gcc_default_cpu_tune
646 gcc_default_cpu
647 aros_ios_sdk
648 aros_ios_version
649 aros_ios_platform
650 aros_enable_mmu
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 ENABLE_EXECSMP
654 aros_serial_debug
655 aros_host_sdl_libs
656 aros_host_sdl_cflags
657 aros_host_x11_libdirs
658 aros_host_x11_includes
659 DO_VIDMODE_SUPPORT
660 DO_XSHM_SUPPORT
661 aros_nominal_depth
662 aros_nominal_height
663 aros_nominal_width
664 pci_hidd_target
665 host_android_gfx
666 host_sdl_gfx
667 host_x_gfx
668 crosstools_cxx_target
669 crosstools_target
670 aros_isa_flags
671 aros_optimization_cflags
672 aros_target_strip_flags
673 aros_target_genmap
674 aros_debug_ldflags
675 aros_debug_aflags
676 aros_debug_cflags
677 aros_target_cflags
678 aros_kernel_ldflags
679 aros_kernel_objcflags
680 aros_kernel_includes
681 aros_kernel_cflags
682 aros_kernel_sysroot
683 aros_config_ldflags
684 aros_config_aflags
685 aros_config_cflags
686 aros_nowarn_flags
687 aros_config_sysroot
688 aros_shared_ldflags
689 aros_shared_aflags
690 aros_shared_cflags
691 aros_arch_libs
692 aros_compiler_libs
693 spec_obj_format
694 aros_object_format
695 aros_shared_ld
696 aros_shared_default
697 aros_target_nm
698 aros_target_strip
699 aros_target_objcopy
700 aros_target_objdump
701 aros_target_cc_path
702 aros_target_cc_includes
703 aros_target_ld
704 aros_target_as
705 aros_target_cpp
706 aros_target_cxx
707 aros_target_cc
708 aros_plain_ar
709 aros_plain_nm
710 aros_target_ranlib
711 aros_target_ar
712 aros_target_suffix
713 aros_target_variant
714 aros_target_cpu_mode
715 aros_target_cpu
716 aros_target_family
717 aros_target_arch
718 aros_target_bootloader
719 aros_target_iconset
720 aros_target_guitheme
721 aros_tools_dir
722 aros_host_lib_suffix
723 aros_host_exe_suffix
724 aros_host_mkargs
725 aros_host_mkdep
726 aros_host_debug
727 aros_host_ldflags
728 gnu89_inline
729 aros_host_cxxflags
730 aros_host_cflags
731 aros_host_make
732 aros_host_cxx
733 aros_host_cc
734 aros_host_def_cc
735 aros_host_cpp
736 aros_host_cpu
737 aros_host_arch
738 aros_cc_pre
739 aros_amigaos_compliance
740 AROS_PORTSSRCDIR
741 AROS_CROSSTOOLSDIR
742 SRCDIR
743 AROS_BUILDDIR_UNIX
744 AROS_BUILDDIR
745 aros_build_host
746 aros_target_toolchain
747 aros_flavour_uc
748 aros_flavour
749 aros_cpu
750 aros_arch
751 SDL_LIBS
752 SDL_CFLAGS
753 SDL_CONFIG
754 XMKMF
755 aros_cflags_iquote_end
756 aros_cflags_iquote
757 kernel_cflags_iquote_end
758 kernel_cflags_iquote
759 host_cflags_iquote_end
760 host_cflags_iquote
761 aros_toolchain
762 aros_target_nostdlib_ldflags
763 aros_target_detach_ldflags
764 aros_target_nix_ldflags
765 aros_target_nostartup_ldflags
766 aros_target_nostdinc_cflags
767 aros_kernel_rescomp
768 orig_target_objdump
769 orig_target_objcopy
770 orig_target_strip
771 orig_target_nm
772 orig_target_ranlib
773 orig_target_ar
774 orig_target_as
775 orig_target_ld
776 orig_target_cxx
777 orig_target_cc
778 orig_target_cpp
779 aros_kernel_objdump
780 aros_kernel_objcopy
781 aros_kernel_strip
782 aros_kernel_nm
783 aros_kernel_ranlib
784 aros_kernel_ar
785 aros_kernel_as
786 aros_kernel_ld
787 aros_kernel_cxx
788 aros_kernel_cc
789 aros_kernel_cpp
790 target_gcc_version
792 android_tool
793 CCACHE
794 DISTCC
795 LIBOBJS
796 EGREP
797 GREP
799 TEST
802 libpng
803 pkgpyexecdir
804 pyexecdir
805 pkgpythondir
806 pythondir
807 PYTHON_PLATFORM
808 PYTHON_EXEC_PREFIX
809 PYTHON_PREFIX
810 PYTHON_VERSION
811 PYTHON
812 PATCH
813 CHMOD
815 PPMTOILBM
816 PNGTOPNM
817 FLEX
818 BISON
821 UNIQ
822 SORT
823 TOUCH
824 MKDIR
825 ECHO
829 aros_host_strip
830 aros_host_ranlib
831 aros_host_ar
832 aros_host_automake
833 aros_host_autoheader
834 aros_host_autoconf
835 aros_host_aclocal
836 aros_host_ld
837 MMAKE
840 ac_ct_CC
841 CFLAGS
843 OBJEXT
844 EXEEXT
845 ac_ct_CXX
846 CPPFLAGS
847 LDFLAGS
848 CXXFLAGS
850 host_os
851 host_vendor
852 host_cpu
853 host
854 build_os
855 build_vendor
856 build_cpu
857 build
858 target_alias
859 host_alias
860 build_alias
861 LIBS
862 ECHO_T
863 ECHO_N
864 ECHO_C
865 DEFS
866 mandir
867 localedir
868 libdir
869 psdir
870 pdfdir
871 dvidir
872 htmldir
873 infodir
874 docdir
875 oldincludedir
876 includedir
877 localstatedir
878 sharedstatedir
879 sysconfdir
880 datadir
881 datarootdir
882 libexecdir
883 sbindir
884 bindir
885 program_transform_name
886 prefix
887 exec_prefix
888 PACKAGE_URL
889 PACKAGE_BUGREPORT
890 PACKAGE_STRING
891 PACKAGE_VERSION
892 PACKAGE_TARNAME
893 PACKAGE_NAME
894 PATH_SEPARATOR
895 SHELL'
896 ac_subst_files=''
897 ac_user_opts='
898 enable_option_checking
899 with_c_compiler
900 with_cxx_compiler
901 with_toolchain
902 enable_build_type
903 enable_debug
904 enable_distcc
905 enable_ccache
906 with_kernel_gcc_version
907 with_optimization
908 with_paranoia
909 enable_target_variant
910 with_xcode
911 with_sdk_version
912 with_sdk
913 with_ndk
914 with_ndk_version
915 with_apk_version
916 enable_amigaos_compliance
917 with_kernel_toolchain_prefix
918 with_elf_toolchain_prefix
919 with_aros_toolchain
920 enable_crosstools
921 with_aros_toolchain_install
922 with_binutils_version
923 with_gcc_version
924 enable_objc
925 enable_java
926 with_cpu
927 with_fpu
928 with_float
929 with_portssources
930 with_bootloader
931 with_iconset
932 with_theme
933 enable_includes
934 with_resolution
935 with_serial_debug
936 enable_palm_debug_hack
937 enable_usb30_code
938 enable_nesting_supervisor
939 enable_mmu
940 enable_x11_hidd
941 with_x
942 enable_x11_shm
943 enable_x11_vidmode
944 enable_sdl_hidd
945 with_sdl_prefix
946 with_sdl_exec_prefix
947 enable_sdltest
948 enable_dbus
950 ac_precious_vars='build_alias
951 host_alias
952 target_alias
954 CXXFLAGS
955 LDFLAGS
956 LIBS
957 CPPFLAGS
960 CFLAGS
962 PYTHON
963 XMKMF'
966 # Initialize some variables set by options.
967 ac_init_help=
968 ac_init_version=false
969 ac_unrecognized_opts=
970 ac_unrecognized_sep=
971 # The variables have the same names as the options, with
972 # dashes changed to underlines.
973 cache_file=/dev/null
974 exec_prefix=NONE
975 no_create=
976 no_recursion=
977 prefix=NONE
978 program_prefix=NONE
979 program_suffix=NONE
980 program_transform_name=s,x,x,
981 silent=
982 site=
983 srcdir=
984 verbose=
985 x_includes=NONE
986 x_libraries=NONE
988 # Installation directory options.
989 # These are left unexpanded so users can "make install exec_prefix=/foo"
990 # and all the variables that are supposed to be based on exec_prefix
991 # by default will actually change.
992 # Use braces instead of parens because sh, perl, etc. also accept them.
993 # (The list follows the same order as the GNU Coding Standards.)
994 bindir='${exec_prefix}/bin'
995 sbindir='${exec_prefix}/sbin'
996 libexecdir='${exec_prefix}/libexec'
997 datarootdir='${prefix}/share'
998 datadir='${datarootdir}'
999 sysconfdir='${prefix}/etc'
1000 sharedstatedir='${prefix}/com'
1001 localstatedir='${prefix}/var'
1002 includedir='${prefix}/include'
1003 oldincludedir='/usr/include'
1004 docdir='${datarootdir}/doc/${PACKAGE}'
1005 infodir='${datarootdir}/info'
1006 htmldir='${docdir}'
1007 dvidir='${docdir}'
1008 pdfdir='${docdir}'
1009 psdir='${docdir}'
1010 libdir='${exec_prefix}/lib'
1011 localedir='${datarootdir}/locale'
1012 mandir='${datarootdir}/man'
1014 ac_prev=
1015 ac_dashdash=
1016 for ac_option
1018 # If the previous option needs an argument, assign it.
1019 if test -n "$ac_prev"; then
1020 eval $ac_prev=\$ac_option
1021 ac_prev=
1022 continue
1025 case $ac_option in
1026 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027 *=) ac_optarg= ;;
1028 *) ac_optarg=yes ;;
1029 esac
1031 # Accept the important Cygnus configure options, so we can diagnose typos.
1033 case $ac_dashdash$ac_option in
1035 ac_dashdash=yes ;;
1037 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038 ac_prev=bindir ;;
1039 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1040 bindir=$ac_optarg ;;
1042 -build | --build | --buil | --bui | --bu)
1043 ac_prev=build_alias ;;
1044 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1045 build_alias=$ac_optarg ;;
1047 -cache-file | --cache-file | --cache-fil | --cache-fi \
1048 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049 ac_prev=cache_file ;;
1050 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1051 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1052 cache_file=$ac_optarg ;;
1054 --config-cache | -C)
1055 cache_file=config.cache ;;
1057 -datadir | --datadir | --datadi | --datad)
1058 ac_prev=datadir ;;
1059 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1060 datadir=$ac_optarg ;;
1062 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1063 | --dataroo | --dataro | --datar)
1064 ac_prev=datarootdir ;;
1065 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1066 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1067 datarootdir=$ac_optarg ;;
1069 -disable-* | --disable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error $? "invalid feature name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=no ;;
1085 -docdir | --docdir | --docdi | --doc | --do)
1086 ac_prev=docdir ;;
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 ac_prev=dvidir ;;
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
1095 -enable-* | --enable-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=\$ac_optarg ;;
1111 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113 | --exec | --exe | --ex)
1114 ac_prev=exec_prefix ;;
1115 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117 | --exec=* | --exe=* | --ex=*)
1118 exec_prefix=$ac_optarg ;;
1120 -gas | --gas | --ga | --g)
1121 # Obsolete; use --with-gas.
1122 with_gas=yes ;;
1124 -help | --help | --hel | --he | -h)
1125 ac_init_help=long ;;
1126 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127 ac_init_help=recursive ;;
1128 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129 ac_init_help=short ;;
1131 -host | --host | --hos | --ho)
1132 ac_prev=host_alias ;;
1133 -host=* | --host=* | --hos=* | --ho=*)
1134 host_alias=$ac_optarg ;;
1136 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137 ac_prev=htmldir ;;
1138 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139 | --ht=*)
1140 htmldir=$ac_optarg ;;
1142 -includedir | --includedir | --includedi | --included | --include \
1143 | --includ | --inclu | --incl | --inc)
1144 ac_prev=includedir ;;
1145 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146 | --includ=* | --inclu=* | --incl=* | --inc=*)
1147 includedir=$ac_optarg ;;
1149 -infodir | --infodir | --infodi | --infod | --info | --inf)
1150 ac_prev=infodir ;;
1151 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152 infodir=$ac_optarg ;;
1154 -libdir | --libdir | --libdi | --libd)
1155 ac_prev=libdir ;;
1156 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157 libdir=$ac_optarg ;;
1159 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160 | --libexe | --libex | --libe)
1161 ac_prev=libexecdir ;;
1162 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163 | --libexe=* | --libex=* | --libe=*)
1164 libexecdir=$ac_optarg ;;
1166 -localedir | --localedir | --localedi | --localed | --locale)
1167 ac_prev=localedir ;;
1168 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169 localedir=$ac_optarg ;;
1171 -localstatedir | --localstatedir | --localstatedi | --localstated \
1172 | --localstate | --localstat | --localsta | --localst | --locals)
1173 ac_prev=localstatedir ;;
1174 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176 localstatedir=$ac_optarg ;;
1178 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179 ac_prev=mandir ;;
1180 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181 mandir=$ac_optarg ;;
1183 -nfp | --nfp | --nf)
1184 # Obsolete; use --without-fp.
1185 with_fp=no ;;
1187 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188 | --no-cr | --no-c | -n)
1189 no_create=yes ;;
1191 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193 no_recursion=yes ;;
1195 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197 | --oldin | --oldi | --old | --ol | --o)
1198 ac_prev=oldincludedir ;;
1199 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202 oldincludedir=$ac_optarg ;;
1204 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205 ac_prev=prefix ;;
1206 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207 prefix=$ac_optarg ;;
1209 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210 | --program-pre | --program-pr | --program-p)
1211 ac_prev=program_prefix ;;
1212 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214 program_prefix=$ac_optarg ;;
1216 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217 | --program-suf | --program-su | --program-s)
1218 ac_prev=program_suffix ;;
1219 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221 program_suffix=$ac_optarg ;;
1223 -program-transform-name | --program-transform-name \
1224 | --program-transform-nam | --program-transform-na \
1225 | --program-transform-n | --program-transform- \
1226 | --program-transform | --program-transfor \
1227 | --program-transfo | --program-transf \
1228 | --program-trans | --program-tran \
1229 | --progr-tra | --program-tr | --program-t)
1230 ac_prev=program_transform_name ;;
1231 -program-transform-name=* | --program-transform-name=* \
1232 | --program-transform-nam=* | --program-transform-na=* \
1233 | --program-transform-n=* | --program-transform-=* \
1234 | --program-transform=* | --program-transfor=* \
1235 | --program-transfo=* | --program-transf=* \
1236 | --program-trans=* | --program-tran=* \
1237 | --progr-tra=* | --program-tr=* | --program-t=*)
1238 program_transform_name=$ac_optarg ;;
1240 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241 ac_prev=pdfdir ;;
1242 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243 pdfdir=$ac_optarg ;;
1245 -psdir | --psdir | --psdi | --psd | --ps)
1246 ac_prev=psdir ;;
1247 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248 psdir=$ac_optarg ;;
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1252 silent=yes ;;
1254 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255 ac_prev=sbindir ;;
1256 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257 | --sbi=* | --sb=*)
1258 sbindir=$ac_optarg ;;
1260 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262 | --sharedst | --shareds | --shared | --share | --shar \
1263 | --sha | --sh)
1264 ac_prev=sharedstatedir ;;
1265 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268 | --sha=* | --sh=*)
1269 sharedstatedir=$ac_optarg ;;
1271 -site | --site | --sit)
1272 ac_prev=site ;;
1273 -site=* | --site=* | --sit=*)
1274 site=$ac_optarg ;;
1276 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277 ac_prev=srcdir ;;
1278 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279 srcdir=$ac_optarg ;;
1281 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282 | --syscon | --sysco | --sysc | --sys | --sy)
1283 ac_prev=sysconfdir ;;
1284 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286 sysconfdir=$ac_optarg ;;
1288 -target | --target | --targe | --targ | --tar | --ta | --t)
1289 ac_prev=target_alias ;;
1290 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291 target_alias=$ac_optarg ;;
1293 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294 verbose=yes ;;
1296 -version | --version | --versio | --versi | --vers | -V)
1297 ac_init_version=: ;;
1299 -with-* | --with-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error $? "invalid package name: $ac_useropt"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1308 "with_$ac_useropt"
1309 "*) ;;
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1312 esac
1313 eval with_$ac_useropt=\$ac_optarg ;;
1315 -without-* | --without-*)
1316 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319 as_fn_error $? "invalid package name: $ac_useropt"
1320 ac_useropt_orig=$ac_useropt
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1324 "with_$ac_useropt"
1325 "*) ;;
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327 ac_unrecognized_sep=', ';;
1328 esac
1329 eval with_$ac_useropt=no ;;
1331 --x)
1332 # Obsolete; use --with-x.
1333 with_x=yes ;;
1335 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336 | --x-incl | --x-inc | --x-in | --x-i)
1337 ac_prev=x_includes ;;
1338 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340 x_includes=$ac_optarg ;;
1342 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344 ac_prev=x_libraries ;;
1345 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347 x_libraries=$ac_optarg ;;
1349 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1350 Try \`$0 --help' for more information"
1353 *=*)
1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 case $ac_envvar in #(
1357 '' | [0-9]* | *[!_$as_cr_alnum]* )
1358 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1359 esac
1360 eval $ac_envvar=\$ac_optarg
1361 export $ac_envvar ;;
1364 # FIXME: should be removed in autoconf 3.0.
1365 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1371 esac
1372 done
1374 if test -n "$ac_prev"; then
1375 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376 as_fn_error $? "missing argument to $ac_option"
1379 if test -n "$ac_unrecognized_opts"; then
1380 case $enable_option_checking in
1381 no) ;;
1382 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384 esac
1387 # Check all directory arguments for consistency.
1388 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389 datadir sysconfdir sharedstatedir localstatedir includedir \
1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391 libdir localedir mandir
1393 eval ac_val=\$$ac_var
1394 # Remove trailing slashes.
1395 case $ac_val in
1396 */ )
1397 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398 eval $ac_var=\$ac_val;;
1399 esac
1400 # Be sure to have absolute directory names.
1401 case $ac_val in
1402 [\\/$]* | ?:[\\/]* ) continue;;
1403 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404 esac
1405 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1406 done
1408 # There might be people who depend on the old broken behavior: `$host'
1409 # used to hold the argument of --host etc.
1410 # FIXME: To remove some day.
1411 build=$build_alias
1412 host=$host_alias
1413 target=$target_alias
1415 # FIXME: To remove some day.
1416 if test "x$host_alias" != x; then
1417 if test "x$build_alias" = x; then
1418 cross_compiling=maybe
1419 elif test "x$build_alias" != "x$host_alias"; then
1420 cross_compiling=yes
1424 ac_tool_prefix=
1425 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1427 test "$silent" = yes && exec 6>/dev/null
1430 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di=`ls -di .` &&
1432 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433 as_fn_error $? "working directory cannot be determined"
1434 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435 as_fn_error $? "pwd does not report name of working directory"
1438 # Find the source files, if location was not specified.
1439 if test -z "$srcdir"; then
1440 ac_srcdir_defaulted=yes
1441 # Try the directory containing this script, then the parent directory.
1442 ac_confdir=`$as_dirname -- "$as_myself" ||
1443 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444 X"$as_myself" : 'X\(//\)[^/]' \| \
1445 X"$as_myself" : 'X\(//\)$' \| \
1446 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447 $as_echo X"$as_myself" |
1448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 s//\1/
1452 /^X\(\/\/\)[^/].*/{
1453 s//\1/
1456 /^X\(\/\/\)$/{
1457 s//\1/
1460 /^X\(\/\).*/{
1461 s//\1/
1464 s/.*/./; q'`
1465 srcdir=$ac_confdir
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 srcdir=..
1469 else
1470 ac_srcdir_defaulted=no
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1476 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1477 ac_abs_confdir=`(
1478 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1479 pwd)`
1480 # When building in place, set srcdir=.
1481 if test "$ac_abs_confdir" = "$ac_pwd"; then
1482 srcdir=.
1484 # Remove unnecessary trailing slashes from srcdir.
1485 # Double slashes in file names in object file debugging info
1486 # mess up M-x gdb in Emacs.
1487 case $srcdir in
1488 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489 esac
1490 for ac_var in $ac_precious_vars; do
1491 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1492 eval ac_env_${ac_var}_value=\$${ac_var}
1493 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1495 done
1498 # Report the --help message.
1500 if test "$ac_init_help" = "long"; then
1501 # Omit some internal or obsolete options to make the list less imposing.
1502 # This message is too long to be a string in the A/UX 3.1 sh.
1503 cat <<_ACEOF
1504 \`configure' configures this package to adapt to many kinds of systems.
1506 Usage: $0 [OPTION]... [VAR=VALUE]...
1508 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509 VAR=VALUE. See below for descriptions of some of the useful variables.
1511 Defaults for the options are specified in brackets.
1513 Configuration:
1514 -h, --help display this help and exit
1515 --help=short display options specific to this package
1516 --help=recursive display the short help of all the included packages
1517 -V, --version display version information and exit
1518 -q, --quiet, --silent do not print \`checking ...' messages
1519 --cache-file=FILE cache test results in FILE [disabled]
1520 -C, --config-cache alias for \`--cache-file=config.cache'
1521 -n, --no-create do not create output files
1522 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1524 Installation directories:
1525 --prefix=PREFIX install architecture-independent files in PREFIX
1526 [$ac_default_prefix]
1527 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1528 [PREFIX]
1530 By default, \`make install' will install all the files in
1531 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1532 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533 for instance \`--prefix=\$HOME'.
1535 For better control, use the options below.
1537 Fine tuning of the installation directories:
1538 --bindir=DIR user executables [EPREFIX/bin]
1539 --sbindir=DIR system admin executables [EPREFIX/sbin]
1540 --libexecdir=DIR program executables [EPREFIX/libexec]
1541 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1542 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1543 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1544 --libdir=DIR object code libraries [EPREFIX/lib]
1545 --includedir=DIR C header files [PREFIX/include]
1546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1549 --infodir=DIR info documentation [DATAROOTDIR/info]
1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1551 --mandir=DIR man documentation [DATAROOTDIR/man]
1552 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1553 --htmldir=DIR html documentation [DOCDIR]
1554 --dvidir=DIR dvi documentation [DOCDIR]
1555 --pdfdir=DIR pdf documentation [DOCDIR]
1556 --psdir=DIR ps documentation [DOCDIR]
1557 _ACEOF
1559 cat <<\_ACEOF
1561 X features:
1562 --x-includes=DIR X include files are in DIR
1563 --x-libraries=DIR X library files are in DIR
1565 System types:
1566 --build=BUILD configure for building on BUILD [guessed]
1567 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1568 _ACEOF
1571 if test -n "$ac_init_help"; then
1573 cat <<\_ACEOF
1575 Optional Features:
1576 --disable-option-checking ignore unrecognized --enable/--with options
1577 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1578 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1579 --enable-build-type=TYPE
1580 Select the build type. Available types are:
1581 personal, nightly, snapshot, milestone, release. Do
1582 NOT use this option unless you know what you are
1583 doing! (default=personal)
1584 --enable-debug=list Enable different types of debug. Commas or
1585 whitespaces can be used to separate the items in the
1586 list. Available types of debug are: all, none,
1587 messages, stack, mungwall, modules, symbols. If no
1588 list is provided then "all" is assumed.
1589 (default=none)
1590 --enable-distcc Use distcc as a front end to the compiler
1591 (default=no).
1592 --enable-ccache Use ccache as a front end to the compiler
1593 (default=no).
1594 --enable-target-variant=NAME
1595 Enable a specific target variant(default=none)
1596 --enable-amigaos-compliance=VERSION
1597 Enforce userspace AmigaOS compliance to a specific
1598 KickStart version (default=none).
1599 --disable-crosstools Do not build cross-compiler toolchain
1600 --enable-objc Enable Objectve-C support (default=no)
1601 --enable-java Enable Java support (default=no)
1602 --enable-includes=dir Alternative system include directory
1603 --enable-palm-debug-hack
1604 Enable palm debug output hack in palm native
1605 (default=no)
1606 --enable-usb30-code Enable usb3.0 code (default=no)
1607 --enable-nesting-supervisor
1608 Enable nesting supervisor support in unix
1609 (default=no)
1610 --disable-mmu Disable MMU support (default=enabled)
1611 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1612 --enable-x11-shm use X11 shared memory (default=auto)
1613 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1614 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1615 --disable-sdltest Do not try to compile and run a test SDL program
1616 --enable-dbus Enable DBUS support via dbus.library (default=no)
1618 Optional Packages:
1619 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1620 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1621 --with-c-compiler=VERSION
1622 Use specified c compiler for building AROS
1623 --with-cxx-compiler=VERSION
1624 Use specified c++ compiler building AROS
1625 --with-toolchain=family Which toolchain family to crosscompile with
1626 (defaults to gnu)
1627 --with-kernel-gcc-version=VERSION
1628 Use gcc-VERSION for building bootstrap
1629 --with-optimization=FLAGS
1630 Use optimization flags FLAGS (default=-O2).
1631 --with-paranoia=FLAGS compiler warning flags to enable for paranoia
1632 --with-xcode=PATH Specify XCode path for iOS targets
1633 (default=/Developer).
1634 --with-sdk-version=VERSION
1635 Use iOS SDK version VERSION (default=4.1).
1636 --with-sdk=PATH Specify Android SDK path
1637 (default=$default_android_sdk).
1638 --with-ndk=PATH Specify Android NDK path (default=none).
1639 --with-sdk-version=LEVEL
1640 Use Android SDK for API LEVEL (default=12).
1641 --with-ndk-version=LEVEL
1642 Use Android NDK for API LEVEL (default=9).
1643 --with-apk-version=(release|debug)
1644 Which version of AROSBootstrap.apk to compile.
1645 Release version needs key for signing, debug version
1646 will only run in emulator. (default=release)
1647 --with-kernel-toolchain-prefix=...
1648 Specify crosscompile toolchain prefix for kernel
1649 objects
1650 --with-elf-toolchain-prefix=...
1651 Specify crosscompile toolchain prefix to wrap for
1652 AROS objects
1653 --with-aros-toolchain=PREFIX
1654 Specify prebuilt AROS toolchain. Use yes for default
1655 name
1656 --with-aros-toolchain-install=DIR
1657 Where to install or search for cross tools binaries
1658 --with-binutils-version=VERSION
1659 Use binutils-VERSION for building AROS
1660 --with-gcc-version=VERSION
1661 Compile gcc-VERSION for AROS
1662 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1663 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1664 --with-float=<spec> Specify floating point ABI
1665 (default=$gcc_default_float_abi).
1666 --with-portssources=DIR Where to download sourcecode for external ports
1667 --with-bootloader=NAME Use a specific bootloader
1668 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1669 --with-theme=NAME Use a specific GUI Theme
1670 --with-resolution=XRESxYRESxDEPTH
1671 Default resolution of the initial WorkbenchScreen
1672 --with-serial-debug Enable serial debug output in native (default=no)
1673 --with-x use the X Window System
1674 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1675 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1677 Some influential environment variables:
1678 CXX C++ compiler command
1679 CXXFLAGS C++ compiler flags
1680 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1681 nonstandard directory <lib dir>
1682 LIBS libraries to pass to the linker, e.g. -l<library>
1683 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1684 you have headers in a nonstandard directory <include dir>
1685 CC C compiler command
1686 CFLAGS C compiler flags
1687 CPP C preprocessor
1688 PYTHON the Python interpreter
1689 XMKMF Path to xmkmf, Makefile generator for X Window System
1691 Use these variables to override the choices made by `configure' or to help
1692 it to find libraries and programs with nonstandard names/locations.
1694 Report bugs to the package provider.
1695 _ACEOF
1696 ac_status=$?
1699 if test "$ac_init_help" = "recursive"; then
1700 # If there are subdirs, report their specific --help.
1701 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1702 test -d "$ac_dir" ||
1703 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1704 continue
1705 ac_builddir=.
1707 case "$ac_dir" in
1708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1711 # A ".." for each directory in $ac_dir_suffix.
1712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1713 case $ac_top_builddir_sub in
1714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1716 esac ;;
1717 esac
1718 ac_abs_top_builddir=$ac_pwd
1719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1720 # for backward compatibility:
1721 ac_top_builddir=$ac_top_build_prefix
1723 case $srcdir in
1724 .) # We are building in place.
1725 ac_srcdir=.
1726 ac_top_srcdir=$ac_top_builddir_sub
1727 ac_abs_top_srcdir=$ac_pwd ;;
1728 [\\/]* | ?:[\\/]* ) # Absolute name.
1729 ac_srcdir=$srcdir$ac_dir_suffix;
1730 ac_top_srcdir=$srcdir
1731 ac_abs_top_srcdir=$srcdir ;;
1732 *) # Relative name.
1733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734 ac_top_srcdir=$ac_top_build_prefix$srcdir
1735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1736 esac
1737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1739 cd "$ac_dir" || { ac_status=$?; continue; }
1740 # Check for guested configure.
1741 if test -f "$ac_srcdir/configure.gnu"; then
1742 echo &&
1743 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744 elif test -f "$ac_srcdir/configure"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure" --help=recursive
1747 else
1748 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1749 fi || ac_status=$?
1750 cd "$ac_pwd" || { ac_status=$?; break; }
1751 done
1754 test -n "$ac_init_help" && exit $ac_status
1755 if $ac_init_version; then
1756 cat <<\_ACEOF
1757 configure
1758 generated by GNU Autoconf 2.69
1760 Copyright (C) 2012 Free Software Foundation, Inc.
1761 This configure script is free software; the Free Software Foundation
1762 gives unlimited permission to copy, distribute and modify it.
1763 _ACEOF
1764 exit
1767 ## ------------------------ ##
1768 ## Autoconf initialization. ##
1769 ## ------------------------ ##
1771 # ac_fn_cxx_try_compile LINENO
1772 # ----------------------------
1773 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_cxx_try_compile ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext
1778 if { { ac_try="$ac_compile"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_compile") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_cxx_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest.$ac_objext; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1802 ac_retval=1
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1807 } # ac_fn_cxx_try_compile
1809 # ac_fn_c_try_compile LINENO
1810 # --------------------------
1811 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_compile ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext
1816 if { { ac_try="$ac_compile"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_compile") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest.$ac_objext; then :
1835 ac_retval=0
1836 else
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1840 ac_retval=1
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1845 } # ac_fn_c_try_compile
1847 # ac_fn_c_try_cpp LINENO
1848 # ----------------------
1849 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_c_try_cpp ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 if { { ac_try="$ac_cpp conftest.$ac_ext"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } > conftest.i && {
1869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1871 }; then :
1872 ac_retval=0
1873 else
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1877 ac_retval=1
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1882 } # ac_fn_c_try_cpp
1884 # ac_fn_c_try_link LINENO
1885 # -----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_c_try_link ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 test -x conftest$ac_exeext
1912 }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 ac_retval=1
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_c_try_link
1930 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1933 # the include files in INCLUDES and setting the cache variable VAR
1934 # accordingly.
1935 ac_fn_c_check_header_mongrel ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 if eval \${$3+:} false; then :
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 else
1948 # Is the header compilable?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1950 $as_echo_n "checking $2 usability... " >&6; }
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 ac_header_compiler=yes
1958 else
1959 ac_header_compiler=no
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1963 $as_echo "$ac_header_compiler" >&6; }
1965 # Is the header present?
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1967 $as_echo_n "checking $2 presence... " >&6; }
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 #include <$2>
1971 _ACEOF
1972 if ac_fn_c_try_cpp "$LINENO"; then :
1973 ac_header_preproc=yes
1974 else
1975 ac_header_preproc=no
1977 rm -f conftest.err conftest.i conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1979 $as_echo "$ac_header_preproc" >&6; }
1981 # So? What about this header?
1982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1983 yes:no: )
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1985 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989 no:yes:* )
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1991 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1993 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1995 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1997 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001 esac
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 eval "$3=\$ac_header_compiler"
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 } # ac_fn_c_check_header_mongrel
2017 # ac_fn_c_try_run LINENO
2018 # ----------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2020 # that executables *can* be run.
2021 ac_fn_c_try_run ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 if { { ac_try="$ac_link"
2025 case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>&5
2032 ac_status=$?
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2035 { { case "(($ac_try" in
2036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2037 *) ac_try_echo=$ac_try;;
2038 esac
2039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040 $as_echo "$ac_try_echo"; } >&5
2041 (eval "$ac_try") 2>&5
2042 ac_status=$?
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; }; }; then :
2045 ac_retval=0
2046 else
2047 $as_echo "$as_me: program exited with status $ac_status" >&5
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2051 ac_retval=$ac_status
2053 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 as_fn_set_status $ac_retval
2057 } # ac_fn_c_try_run
2059 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2060 # -------------------------------------------------------
2061 # Tests whether HEADER exists and can be compiled using the include files in
2062 # INCLUDES, setting the cache variable VAR accordingly.
2063 ac_fn_c_check_header_compile ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2070 else
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2074 #include <$2>
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 eval "$3=yes"
2078 else
2079 eval "$3=no"
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 eval ac_res=\$$3
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088 } # ac_fn_c_check_header_compile
2090 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2091 # ----------------------------------------------------
2092 # Tries to find if the field MEMBER exists in type AGGR, after including
2093 # INCLUDES, setting cache variable VAR accordingly.
2094 ac_fn_c_check_member ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2098 $as_echo_n "checking for $2.$3... " >&6; }
2099 if eval \${$4+:} false; then :
2100 $as_echo_n "(cached) " >&6
2101 else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2106 main ()
2108 static $2 ac_aggr;
2109 if (ac_aggr.$3)
2110 return 0;
2112 return 0;
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116 eval "$4=yes"
2117 else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2122 main ()
2124 static $2 ac_aggr;
2125 if (sizeof ac_aggr.$3)
2126 return 0;
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 eval "$4=yes"
2133 else
2134 eval "$4=no"
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 eval ac_res=\$$4
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 } # ac_fn_c_check_member
2147 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2148 # ---------------------------------------------
2149 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2150 # accordingly.
2151 ac_fn_c_check_decl ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 as_decl_name=`echo $2|sed 's/ *(.*//'`
2155 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2157 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2158 if eval \${$3+:} false; then :
2159 $as_echo_n "(cached) " >&6
2160 else
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2165 main ()
2167 #ifndef $as_decl_name
2168 #ifdef __cplusplus
2169 (void) $as_decl_use;
2170 #else
2171 (void) $as_decl_name;
2172 #endif
2173 #endif
2176 return 0;
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180 eval "$3=yes"
2181 else
2182 eval "$3=no"
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_check_decl
2193 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2194 # -------------------------------------------
2195 # Tests whether TYPE exists after having included INCLUDES, setting cache
2196 # variable VAR accordingly.
2197 ac_fn_c_check_type ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201 $as_echo_n "checking for $2... " >&6; }
2202 if eval \${$3+:} false; then :
2203 $as_echo_n "(cached) " >&6
2204 else
2205 eval "$3=no"
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2210 main ()
2212 if (sizeof ($2))
2213 return 0;
2215 return 0;
2217 _ACEOF
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2223 main ()
2225 if (sizeof (($2)))
2226 return 0;
2228 return 0;
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2233 else
2234 eval "$3=yes"
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 eval ac_res=\$$3
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_c_check_type
2247 # ac_fn_c_check_func LINENO FUNC VAR
2248 # ----------------------------------
2249 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2250 ac_fn_c_check_func ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if eval \${$3+:} false; then :
2256 $as_echo_n "(cached) " >&6
2257 else
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2260 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2262 #define $2 innocuous_$2
2264 /* System header to define __stub macros and hopefully few prototypes,
2265 which can conflict with char $2 (); below.
2266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2267 <limits.h> exists even on freestanding compilers. */
2269 #ifdef __STDC__
2270 # include <limits.h>
2271 #else
2272 # include <assert.h>
2273 #endif
2275 #undef $2
2277 /* Override any GCC internal prototype to avoid an error.
2278 Use char because int might match the return type of a GCC
2279 builtin and then its argument prototype would still apply. */
2280 #ifdef __cplusplus
2281 extern "C"
2282 #endif
2283 char $2 ();
2284 /* The GNU C library defines this for functions which it implements
2285 to always fail with ENOSYS. Some functions are actually named
2286 something starting with __ and the normal name is an alias. */
2287 #if defined __stub_$2 || defined __stub___$2
2288 choke me
2289 #endif
2292 main ()
2294 return $2 ();
2296 return 0;
2298 _ACEOF
2299 if ac_fn_c_try_link "$LINENO"; then :
2300 eval "$3=yes"
2301 else
2302 eval "$3=no"
2304 rm -f core conftest.err conftest.$ac_objext \
2305 conftest$ac_exeext conftest.$ac_ext
2307 eval ac_res=\$$3
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312 } # ac_fn_c_check_func
2313 cat >config.log <<_ACEOF
2314 This file contains any messages produced by compilers while
2315 running configure, to aid debugging if configure makes a mistake.
2317 It was created by $as_me, which was
2318 generated by GNU Autoconf 2.69. Invocation command line was
2320 $ $0 $@
2322 _ACEOF
2323 exec 5>>config.log
2325 cat <<_ASUNAME
2326 ## --------- ##
2327 ## Platform. ##
2328 ## --------- ##
2330 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2331 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2332 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2333 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2334 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2336 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2337 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2339 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2340 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2341 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2342 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2343 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2344 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2345 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2347 _ASUNAME
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 $as_echo "PATH: $as_dir"
2355 done
2356 IFS=$as_save_IFS
2358 } >&5
2360 cat >&5 <<_ACEOF
2363 ## ----------- ##
2364 ## Core tests. ##
2365 ## ----------- ##
2367 _ACEOF
2370 # Keep a trace of the command line.
2371 # Strip out --no-create and --no-recursion so they do not pile up.
2372 # Strip out --silent because we don't want to record it for future runs.
2373 # Also quote any args containing shell meta-characters.
2374 # Make two passes to allow for proper duplicate-argument suppression.
2375 ac_configure_args=
2376 ac_configure_args0=
2377 ac_configure_args1=
2378 ac_must_keep_next=false
2379 for ac_pass in 1 2
2381 for ac_arg
2383 case $ac_arg in
2384 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2386 | -silent | --silent | --silen | --sile | --sil)
2387 continue ;;
2388 *\'*)
2389 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2390 esac
2391 case $ac_pass in
2392 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2394 as_fn_append ac_configure_args1 " '$ac_arg'"
2395 if test $ac_must_keep_next = true; then
2396 ac_must_keep_next=false # Got value, back to normal.
2397 else
2398 case $ac_arg in
2399 *=* | --config-cache | -C | -disable-* | --disable-* \
2400 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2401 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2402 | -with-* | --with-* | -without-* | --without-* | --x)
2403 case "$ac_configure_args0 " in
2404 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2405 esac
2407 -* ) ac_must_keep_next=true ;;
2408 esac
2410 as_fn_append ac_configure_args " '$ac_arg'"
2412 esac
2413 done
2414 done
2415 { ac_configure_args0=; unset ac_configure_args0;}
2416 { ac_configure_args1=; unset ac_configure_args1;}
2418 # When interrupted or exit'd, cleanup temporary files, and complete
2419 # config.log. We remove comments because anyway the quotes in there
2420 # would cause problems or look ugly.
2421 # WARNING: Use '\'' to represent an apostrophe within the trap.
2422 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2423 trap 'exit_status=$?
2424 # Save into config.log some information that might help in debugging.
2426 echo
2428 $as_echo "## ---------------- ##
2429 ## Cache variables. ##
2430 ## ---------------- ##"
2431 echo
2432 # The following way of writing the cache mishandles newlines in values,
2434 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2435 eval ac_val=\$$ac_var
2436 case $ac_val in #(
2437 *${as_nl}*)
2438 case $ac_var in #(
2439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2440 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2441 esac
2442 case $ac_var in #(
2443 _ | IFS | as_nl) ;; #(
2444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2445 *) { eval $ac_var=; unset $ac_var;} ;;
2446 esac ;;
2447 esac
2448 done
2449 (set) 2>&1 |
2450 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2451 *${as_nl}ac_space=\ *)
2452 sed -n \
2453 "s/'\''/'\''\\\\'\'''\''/g;
2454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2455 ;; #(
2457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2459 esac |
2460 sort
2462 echo
2464 $as_echo "## ----------------- ##
2465 ## Output variables. ##
2466 ## ----------------- ##"
2467 echo
2468 for ac_var in $ac_subst_vars
2470 eval ac_val=\$$ac_var
2471 case $ac_val in
2472 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2473 esac
2474 $as_echo "$ac_var='\''$ac_val'\''"
2475 done | sort
2476 echo
2478 if test -n "$ac_subst_files"; then
2479 $as_echo "## ------------------- ##
2480 ## File substitutions. ##
2481 ## ------------------- ##"
2482 echo
2483 for ac_var in $ac_subst_files
2485 eval ac_val=\$$ac_var
2486 case $ac_val in
2487 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2488 esac
2489 $as_echo "$ac_var='\''$ac_val'\''"
2490 done | sort
2491 echo
2494 if test -s confdefs.h; then
2495 $as_echo "## ----------- ##
2496 ## confdefs.h. ##
2497 ## ----------- ##"
2498 echo
2499 cat confdefs.h
2500 echo
2502 test "$ac_signal" != 0 &&
2503 $as_echo "$as_me: caught signal $ac_signal"
2504 $as_echo "$as_me: exit $exit_status"
2505 } >&5
2506 rm -f core *.core core.conftest.* &&
2507 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2508 exit $exit_status
2510 for ac_signal in 1 2 13 15; do
2511 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2512 done
2513 ac_signal=0
2515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2516 rm -f -r conftest* confdefs.h
2518 $as_echo "/* confdefs.h */" > confdefs.h
2520 # Predefined preprocessor variables.
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_NAME "$PACKAGE_NAME"
2524 _ACEOF
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2528 _ACEOF
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2532 _ACEOF
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE_STRING "$PACKAGE_STRING"
2536 _ACEOF
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2540 _ACEOF
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_URL "$PACKAGE_URL"
2544 _ACEOF
2547 # Let the site file select an alternate cache file if it wants to.
2548 # Prefer an explicitly selected file to automatically selected ones.
2549 ac_site_file1=NONE
2550 ac_site_file2=NONE
2551 if test -n "$CONFIG_SITE"; then
2552 # We do not want a PATH search for config.site.
2553 case $CONFIG_SITE in #((
2554 -*) ac_site_file1=./$CONFIG_SITE;;
2555 */*) ac_site_file1=$CONFIG_SITE;;
2556 *) ac_site_file1=./$CONFIG_SITE;;
2557 esac
2558 elif test "x$prefix" != xNONE; then
2559 ac_site_file1=$prefix/share/config.site
2560 ac_site_file2=$prefix/etc/config.site
2561 else
2562 ac_site_file1=$ac_default_prefix/share/config.site
2563 ac_site_file2=$ac_default_prefix/etc/config.site
2565 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2567 test "x$ac_site_file" = xNONE && continue
2568 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2570 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2571 sed 's/^/| /' "$ac_site_file" >&5
2572 . "$ac_site_file" \
2573 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575 as_fn_error $? "failed to load site script $ac_site_file
2576 See \`config.log' for more details" "$LINENO" 5; }
2578 done
2580 if test -r "$cache_file"; then
2581 # Some versions of bash will fail to source /dev/null (special files
2582 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2583 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2585 $as_echo "$as_me: loading cache $cache_file" >&6;}
2586 case $cache_file in
2587 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2588 *) . "./$cache_file";;
2589 esac
2591 else
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2593 $as_echo "$as_me: creating cache $cache_file" >&6;}
2594 >$cache_file
2597 as_fn_append ac_header_list " stdlib.h"
2598 as_fn_append ac_header_list " unistd.h"
2599 as_fn_append ac_header_list " sys/param.h"
2600 # Check that the precious variables saved in the cache have kept the same
2601 # value.
2602 ac_cache_corrupted=false
2603 for ac_var in $ac_precious_vars; do
2604 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2605 eval ac_new_set=\$ac_env_${ac_var}_set
2606 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2607 eval ac_new_val=\$ac_env_${ac_var}_value
2608 case $ac_old_set,$ac_new_set in
2609 set,)
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2611 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2612 ac_cache_corrupted=: ;;
2613 ,set)
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2615 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2616 ac_cache_corrupted=: ;;
2617 ,);;
2619 if test "x$ac_old_val" != "x$ac_new_val"; then
2620 # differences in whitespace do not lead to failure.
2621 ac_old_val_w=`echo x $ac_old_val`
2622 ac_new_val_w=`echo x $ac_new_val`
2623 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2625 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2626 ac_cache_corrupted=:
2627 else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2629 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2630 eval $ac_var=\$ac_old_val
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2633 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2635 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2636 fi;;
2637 esac
2638 # Pass precious variables to config.status.
2639 if test "$ac_new_set" = set; then
2640 case $ac_new_val in
2641 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2642 *) ac_arg=$ac_var=$ac_new_val ;;
2643 esac
2644 case " $ac_configure_args " in
2645 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2646 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2647 esac
2649 done
2650 if $ac_cache_corrupted; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2654 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2655 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2657 ## -------------------- ##
2658 ## Main body of script. ##
2659 ## -------------------- ##
2661 ac_ext=c
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669 ac_aux_dir=
2670 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2671 if test -f "$ac_dir/install-sh"; then
2672 ac_aux_dir=$ac_dir
2673 ac_install_sh="$ac_aux_dir/install-sh -c"
2674 break
2675 elif test -f "$ac_dir/install.sh"; then
2676 ac_aux_dir=$ac_dir
2677 ac_install_sh="$ac_aux_dir/install.sh -c"
2678 break
2679 elif test -f "$ac_dir/shtool"; then
2680 ac_aux_dir=$ac_dir
2681 ac_install_sh="$ac_aux_dir/shtool install -c"
2682 break
2684 done
2685 if test -z "$ac_aux_dir"; then
2686 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2689 # These three variables are undocumented and unsupported,
2690 # and are intended to be withdrawn in a future Autoconf release.
2691 # They can cause serious problems if a builder's source tree is in a directory
2692 # whose full name contains unusual characters.
2693 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2694 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2695 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2699 # Check what host we are running on.
2700 # If a target is not suggested, we use this one.
2701 # Note that what we call a target, Autoconf calls a host.
2702 # Make sure we can run config.sub.
2703 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2704 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2707 $as_echo_n "checking build system type... " >&6; }
2708 if ${ac_cv_build+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 ac_build_alias=$build_alias
2712 test "x$ac_build_alias" = x &&
2713 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2714 test "x$ac_build_alias" = x &&
2715 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2716 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2717 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2721 $as_echo "$ac_cv_build" >&6; }
2722 case $ac_cv_build in
2723 *-*-*) ;;
2724 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2725 esac
2726 build=$ac_cv_build
2727 ac_save_IFS=$IFS; IFS='-'
2728 set x $ac_cv_build
2729 shift
2730 build_cpu=$1
2731 build_vendor=$2
2732 shift; shift
2733 # Remember, the first character of IFS is used to create $*,
2734 # except with old shells:
2735 build_os=$*
2736 IFS=$ac_save_IFS
2737 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2741 $as_echo_n "checking host system type... " >&6; }
2742 if ${ac_cv_host+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test "x$host_alias" = x; then
2746 ac_cv_host=$ac_cv_build
2747 else
2748 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2749 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2754 $as_echo "$ac_cv_host" >&6; }
2755 case $ac_cv_host in
2756 *-*-*) ;;
2757 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2758 esac
2759 host=$ac_cv_host
2760 ac_save_IFS=$IFS; IFS='-'
2761 set x $ac_cv_host
2762 shift
2763 host_cpu=$1
2764 host_vendor=$2
2765 shift; shift
2766 # Remember, the first character of IFS is used to create $*,
2767 # except with old shells:
2768 host_os=$*
2769 IFS=$ac_save_IFS
2770 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2774 # Default versions for the gnu tools we build
2775 default_gcc_version="4.6.4"
2776 default_binutils_version="2.23.2"
2778 # The AROS target is slightly different to the normal GNU style
2779 # format. We don't have the middle part, and we reverse the order
2780 # of the $(CPU) and $(OS) bits.
2782 # Don't strip the version of the target yet, it might be
2783 # useful on some systems.
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2786 $as_echo_n "checking for AROS style target... " >&6; }
2788 if test "$target" = "NONE" ; then
2789 target=$host_os-$host_cpu
2790 else
2791 if test "$target" = "" ; then
2792 target=$host_os-$host_cpu
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2796 $as_echo "$target" >&6; }
2798 if test "$host_os" = "mingw32" ; then
2799 PWDCMD="pwd -W"
2802 # Don't know where else to put this...
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2804 $as_echo_n "checking building AROS in... " >&6; }
2805 AROS_BUILDDIR=`${PWDCMD-pwd}`
2806 AROS_BUILDDIR_UNIX=${PWD}
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2808 $as_echo "$AROS_BUILDDIR" >&6; }
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2811 $as_echo_n "checking AROS source in... " >&6; }
2812 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2813 SRCDIR=${srcpwd}
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2815 $as_echo "$SRCDIR" >&6; }
2817 # Parse the target field into something useful.
2819 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2820 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2823 # Some debug output, to be removed again.
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2825 $as_echo_n "checking for target system (debug output)... " >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2827 $as_echo "$target_os" >&6; }
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2829 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2831 $as_echo "$target_cpu" >&6; }
2833 aros_nominal_width=800
2834 aros_nominal_height=600
2835 aros_nominal_depth=4
2838 default_c_compilers="gcc clang cc"
2840 # Check whether --with-c-compiler was given.
2841 if test "${with_c_compiler+set}" = set; then :
2842 withval=$with_c_compiler; use_c_compiler="$withval"
2843 else
2844 use_c_compiler=""
2847 if test "$use_c_compiler" = ""; then
2848 host_c_compilers="$default_c_compilers"
2849 else
2850 host_c_compilers="$use_c_compiler"
2853 default_cxx_compilers="g++ clang++ c++"
2855 # Check whether --with-cxx-compiler was given.
2856 if test "${with_cxx_compiler+set}" = set; then :
2857 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2858 else
2859 use_cxx_compiler=""
2862 if test "$use_cxx_compiler" = ""; then
2863 host_cxx_compilers="$default_cxx_compilers"
2864 else
2865 host_cxx_compilers="$use_cxx_compiler"
2869 # The first step is to find the host binaries.
2870 # Check for a compiler.
2871 # Due to a bug in autoconf check for c++ compiler first.
2872 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2873 ac_ext=cpp
2874 ac_cpp='$CXXCPP $CPPFLAGS'
2875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2878 if test -z "$CXX"; then
2879 if test -n "$CCC"; then
2880 CXX=$CCC
2881 else
2882 if test -n "$ac_tool_prefix"; then
2883 for ac_prog in ${host_cxx_compilers}
2885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if ${ac_cv_prog_CXX+:} false; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$CXX"; then
2893 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2906 done
2907 done
2908 IFS=$as_save_IFS
2912 CXX=$ac_cv_prog_CXX
2913 if test -n "$CXX"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2915 $as_echo "$CXX" >&6; }
2916 else
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2922 test -n "$CXX" && break
2923 done
2925 if test -z "$CXX"; then
2926 ac_ct_CXX=$CXX
2927 for ac_prog in ${host_cxx_compilers}
2929 # Extract the first word of "$ac_prog", so it can be a program name with args.
2930 set dummy $ac_prog; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 if test -n "$ac_ct_CXX"; then
2937 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_ac_ct_CXX="$ac_prog"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2950 done
2951 done
2952 IFS=$as_save_IFS
2956 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2957 if test -n "$ac_ct_CXX"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2959 $as_echo "$ac_ct_CXX" >&6; }
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2966 test -n "$ac_ct_CXX" && break
2967 done
2969 if test "x$ac_ct_CXX" = x; then
2970 CXX="g++"
2971 else
2972 case $cross_compiling:$ac_tool_warned in
2973 yes:)
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976 ac_tool_warned=yes ;;
2977 esac
2978 CXX=$ac_ct_CXX
2984 # Provide some information about the compiler.
2985 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2986 set X $ac_compile
2987 ac_compiler=$2
2988 for ac_option in --version -v -V -qversion; do
2989 { { ac_try="$ac_compiler $ac_option >&5"
2990 case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993 esac
2994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2995 $as_echo "$ac_try_echo"; } >&5
2996 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2997 ac_status=$?
2998 if test -s conftest.err; then
2999 sed '10a\
3000 ... rest of stderr output deleted ...
3001 10q' conftest.err >conftest.er1
3002 cat conftest.er1 >&5
3004 rm -f conftest.er1 conftest.err
3005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3006 test $ac_status = 0; }
3007 done
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3013 main ()
3017 return 0;
3019 _ACEOF
3020 ac_clean_files_save=$ac_clean_files
3021 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3022 # Try to create an executable without -o first, disregard a.out.
3023 # It will help us diagnose broken compilers, and finding out an intuition
3024 # of exeext.
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3026 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3027 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3029 # The possible output files:
3030 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3032 ac_rmfiles=
3033 for ac_file in $ac_files
3035 case $ac_file in
3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3037 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3038 esac
3039 done
3040 rm -f $ac_rmfiles
3042 if { { ac_try="$ac_link_default"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048 $as_echo "$ac_try_echo"; } >&5
3049 (eval "$ac_link_default") 2>&5
3050 ac_status=$?
3051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }; then :
3053 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3054 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3055 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3056 # so that the user can short-circuit this test for compilers unknown to
3057 # Autoconf.
3058 for ac_file in $ac_files ''
3060 test -f "$ac_file" || continue
3061 case $ac_file in
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3064 [ab].out )
3065 # We found the default executable, but exeext='' is most
3066 # certainly right.
3067 break;;
3068 *.* )
3069 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3070 then :; else
3071 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073 # We set ac_cv_exeext here because the later test for it is not
3074 # safe: cross compilers may not add the suffix if given an `-o'
3075 # argument, so we may need to know it at that point already.
3076 # Even if this section looks crufty: it has the advantage of
3077 # actually working.
3078 break;;
3080 break;;
3081 esac
3082 done
3083 test "$ac_cv_exeext" = no && ac_cv_exeext=
3085 else
3086 ac_file=''
3088 if test -z "$ac_file"; then :
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 $as_echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096 as_fn_error 77 "C++ compiler cannot create executables
3097 See \`config.log' for more details" "$LINENO" 5; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3100 $as_echo "yes" >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3103 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3105 $as_echo "$ac_file" >&6; }
3106 ac_exeext=$ac_cv_exeext
3108 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3109 ac_clean_files=$ac_clean_files_save
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3111 $as_echo_n "checking for suffix of executables... " >&6; }
3112 if { { ac_try="$ac_link"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_link") 2>&5
3120 ac_status=$?
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }; then :
3123 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3124 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3125 # work properly (i.e., refer to `conftest.exe'), while it won't with
3126 # `rm'.
3127 for ac_file in conftest.exe conftest conftest.*; do
3128 test -f "$ac_file" || continue
3129 case $ac_file in
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3131 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 break;;
3133 * ) break;;
3134 esac
3135 done
3136 else
3137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3140 See \`config.log' for more details" "$LINENO" 5; }
3142 rm -f conftest conftest$ac_cv_exeext
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3144 $as_echo "$ac_cv_exeext" >&6; }
3146 rm -f conftest.$ac_ext
3147 EXEEXT=$ac_cv_exeext
3148 ac_exeext=$EXEEXT
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h. */
3151 #include <stdio.h>
3153 main ()
3155 FILE *f = fopen ("conftest.out", "w");
3156 return ferror (f) || fclose (f) != 0;
3159 return 0;
3161 _ACEOF
3162 ac_clean_files="$ac_clean_files conftest.out"
3163 # Check that the compiler produces executables we can run. If not, either
3164 # the compiler is broken, or we cross compile.
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3166 $as_echo_n "checking whether we are cross compiling... " >&6; }
3167 if test "$cross_compiling" != yes; then
3168 { { ac_try="$ac_link"
3169 case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172 esac
3173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174 $as_echo "$ac_try_echo"; } >&5
3175 (eval "$ac_link") 2>&5
3176 ac_status=$?
3177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178 test $ac_status = 0; }
3179 if { ac_try='./conftest$ac_cv_exeext'
3180 { { case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185 $as_echo "$ac_try_echo"; } >&5
3186 (eval "$ac_try") 2>&5
3187 ac_status=$?
3188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189 test $ac_status = 0; }; }; then
3190 cross_compiling=no
3191 else
3192 if test "$cross_compiling" = maybe; then
3193 cross_compiling=yes
3194 else
3195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error $? "cannot run C++ compiled programs.
3198 If you meant to cross compile, use \`--host'.
3199 See \`config.log' for more details" "$LINENO" 5; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3204 $as_echo "$cross_compiling" >&6; }
3206 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3207 ac_clean_files=$ac_clean_files_save
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3209 $as_echo_n "checking for suffix of object files... " >&6; }
3210 if ${ac_cv_objext+:} false; then :
3211 $as_echo_n "(cached) " >&6
3212 else
3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h. */
3217 main ()
3221 return 0;
3223 _ACEOF
3224 rm -f conftest.o conftest.obj
3225 if { { ac_try="$ac_compile"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_compile") 2>&5
3233 ac_status=$?
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }; then :
3236 for ac_file in conftest.o conftest.obj conftest.*; do
3237 test -f "$ac_file" || continue;
3238 case $ac_file in
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3240 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3241 break;;
3242 esac
3243 done
3244 else
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 as_fn_error $? "cannot compute suffix of object files: cannot compile
3251 See \`config.log' for more details" "$LINENO" 5; }
3253 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3256 $as_echo "$ac_cv_objext" >&6; }
3257 OBJEXT=$ac_cv_objext
3258 ac_objext=$OBJEXT
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3260 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3261 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3268 main ()
3270 #ifndef __GNUC__
3271 choke me
3272 #endif
3275 return 0;
3277 _ACEOF
3278 if ac_fn_cxx_try_compile "$LINENO"; then :
3279 ac_compiler_gnu=yes
3280 else
3281 ac_compiler_gnu=no
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3288 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3289 if test $ac_compiler_gnu = yes; then
3290 GXX=yes
3291 else
3292 GXX=
3294 ac_test_CXXFLAGS=${CXXFLAGS+set}
3295 ac_save_CXXFLAGS=$CXXFLAGS
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3297 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3298 if ${ac_cv_prog_cxx_g+:} false; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3302 ac_cxx_werror_flag=yes
3303 ac_cv_prog_cxx_g=no
3304 CXXFLAGS="-g"
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3309 main ()
3313 return 0;
3315 _ACEOF
3316 if ac_fn_cxx_try_compile "$LINENO"; then :
3317 ac_cv_prog_cxx_g=yes
3318 else
3319 CXXFLAGS=""
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3324 main ()
3328 return 0;
3330 _ACEOF
3331 if ac_fn_cxx_try_compile "$LINENO"; then :
3333 else
3334 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3335 CXXFLAGS="-g"
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3340 main ()
3344 return 0;
3346 _ACEOF
3347 if ac_fn_cxx_try_compile "$LINENO"; then :
3348 ac_cv_prog_cxx_g=yes
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3358 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3359 if test "$ac_test_CXXFLAGS" = set; then
3360 CXXFLAGS=$ac_save_CXXFLAGS
3361 elif test $ac_cv_prog_cxx_g = yes; then
3362 if test "$GXX" = yes; then
3363 CXXFLAGS="-g -O2"
3364 else
3365 CXXFLAGS="-g"
3367 else
3368 if test "$GXX" = yes; then
3369 CXXFLAGS="-O2"
3370 else
3371 CXXFLAGS=
3374 ac_ext=c
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380 ac_ext=c
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 if test -n "$ac_tool_prefix"; then
3386 for ac_prog in ${host_c_compilers}
3388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if ${ac_cv_prog_CC+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 if test -n "$CC"; then
3396 ac_cv_prog_CC="$CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3409 done
3410 done
3411 IFS=$as_save_IFS
3415 CC=$ac_cv_prog_CC
3416 if test -n "$CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 $as_echo "$CC" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3425 test -n "$CC" && break
3426 done
3428 if test -z "$CC"; then
3429 ac_ct_CC=$CC
3430 for ac_prog in ${host_c_compilers}
3432 # Extract the first word of "$ac_prog", so it can be a program name with args.
3433 set dummy $ac_prog; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3437 $as_echo_n "(cached) " >&6
3438 else
3439 if test -n "$ac_ct_CC"; then
3440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3441 else
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 ac_cv_prog_ac_ct_CC="$ac_prog"
3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 break 2
3453 done
3454 done
3455 IFS=$as_save_IFS
3459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3460 if test -n "$ac_ct_CC"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3462 $as_echo "$ac_ct_CC" >&6; }
3463 else
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3469 test -n "$ac_ct_CC" && break
3470 done
3472 if test "x$ac_ct_CC" = x; then
3473 CC=""
3474 else
3475 case $cross_compiling:$ac_tool_warned in
3476 yes:)
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3479 ac_tool_warned=yes ;;
3480 esac
3481 CC=$ac_ct_CC
3486 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 as_fn_error $? "no acceptable C compiler found in \$PATH
3489 See \`config.log' for more details" "$LINENO" 5; }
3491 # Provide some information about the compiler.
3492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3493 set X $ac_compile
3494 ac_compiler=$2
3495 for ac_option in --version -v -V -qversion; do
3496 { { ac_try="$ac_compiler $ac_option >&5"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3504 ac_status=$?
3505 if test -s conftest.err; then
3506 sed '10a\
3507 ... rest of stderr output deleted ...
3508 10q' conftest.err >conftest.er1
3509 cat conftest.er1 >&5
3511 rm -f conftest.er1 conftest.err
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }
3514 done
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3517 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3518 if ${ac_cv_c_compiler_gnu+:} false; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3525 main ()
3527 #ifndef __GNUC__
3528 choke me
3529 #endif
3532 return 0;
3534 _ACEOF
3535 if ac_fn_c_try_compile "$LINENO"; then :
3536 ac_compiler_gnu=yes
3537 else
3538 ac_compiler_gnu=no
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3545 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3546 if test $ac_compiler_gnu = yes; then
3547 GCC=yes
3548 else
3549 GCC=
3551 ac_test_CFLAGS=${CFLAGS+set}
3552 ac_save_CFLAGS=$CFLAGS
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3554 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3555 if ${ac_cv_prog_cc_g+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 ac_save_c_werror_flag=$ac_c_werror_flag
3559 ac_c_werror_flag=yes
3560 ac_cv_prog_cc_g=no
3561 CFLAGS="-g"
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3566 main ()
3570 return 0;
3572 _ACEOF
3573 if ac_fn_c_try_compile "$LINENO"; then :
3574 ac_cv_prog_cc_g=yes
3575 else
3576 CFLAGS=""
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3581 main ()
3585 return 0;
3587 _ACEOF
3588 if ac_fn_c_try_compile "$LINENO"; then :
3590 else
3591 ac_c_werror_flag=$ac_save_c_werror_flag
3592 CFLAGS="-g"
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3597 main ()
3601 return 0;
3603 _ACEOF
3604 if ac_fn_c_try_compile "$LINENO"; then :
3605 ac_cv_prog_cc_g=yes
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 ac_c_werror_flag=$ac_save_c_werror_flag
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3615 $as_echo "$ac_cv_prog_cc_g" >&6; }
3616 if test "$ac_test_CFLAGS" = set; then
3617 CFLAGS=$ac_save_CFLAGS
3618 elif test $ac_cv_prog_cc_g = yes; then
3619 if test "$GCC" = yes; then
3620 CFLAGS="-g -O2"
3621 else
3622 CFLAGS="-g"
3624 else
3625 if test "$GCC" = yes; then
3626 CFLAGS="-O2"
3627 else
3628 CFLAGS=
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3632 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3633 if ${ac_cv_prog_cc_c89+:} false; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 ac_cv_prog_cc_c89=no
3637 ac_save_CC=$CC
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3640 #include <stdarg.h>
3641 #include <stdio.h>
3642 struct stat;
3643 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3644 struct buf { int x; };
3645 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3646 static char *e (p, i)
3647 char **p;
3648 int i;
3650 return p[i];
3652 static char *f (char * (*g) (char **, int), char **p, ...)
3654 char *s;
3655 va_list v;
3656 va_start (v,p);
3657 s = g (p, va_arg (v,int));
3658 va_end (v);
3659 return s;
3662 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3663 function prototypes and stuff, but not '\xHH' hex character constants.
3664 These don't provoke an error unfortunately, instead are silently treated
3665 as 'x'. The following induces an error, until -std is added to get
3666 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3667 array size at least. It's necessary to write '\x00'==0 to get something
3668 that's true only with -std. */
3669 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3671 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3672 inside strings and character constants. */
3673 #define FOO(x) 'x'
3674 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3676 int test (int i, double x);
3677 struct s1 {int (*f) (int a);};
3678 struct s2 {int (*f) (double a);};
3679 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3680 int argc;
3681 char **argv;
3683 main ()
3685 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3687 return 0;
3689 _ACEOF
3690 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3691 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3693 CC="$ac_save_CC $ac_arg"
3694 if ac_fn_c_try_compile "$LINENO"; then :
3695 ac_cv_prog_cc_c89=$ac_arg
3697 rm -f core conftest.err conftest.$ac_objext
3698 test "x$ac_cv_prog_cc_c89" != "xno" && break
3699 done
3700 rm -f conftest.$ac_ext
3701 CC=$ac_save_CC
3704 # AC_CACHE_VAL
3705 case "x$ac_cv_prog_cc_c89" in
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3708 $as_echo "none needed" >&6; } ;;
3709 xno)
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3711 $as_echo "unsupported" >&6; } ;;
3713 CC="$CC $ac_cv_prog_cc_c89"
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3715 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3716 esac
3717 if test "x$ac_cv_prog_cc_c89" != xno; then :
3721 ac_ext=c
3722 ac_cpp='$CPP $CPPFLAGS'
3723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727 aros_host_def_cc="$CC"
3728 case $ac_cv_prog_cc_stdc in #(
3729 no) :
3730 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3731 *) :
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3733 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3734 if ${ac_cv_prog_cc_c99+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 ac_cv_prog_cc_c99=no
3738 ac_save_CC=$CC
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741 #include <stdarg.h>
3742 #include <stdbool.h>
3743 #include <stdlib.h>
3744 #include <wchar.h>
3745 #include <stdio.h>
3747 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3748 #define debug(...) fprintf (stderr, __VA_ARGS__)
3749 #define showlist(...) puts (#__VA_ARGS__)
3750 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3751 static void
3752 test_varargs_macros (void)
3754 int x = 1234;
3755 int y = 5678;
3756 debug ("Flag");
3757 debug ("X = %d\n", x);
3758 showlist (The first, second, and third items.);
3759 report (x>y, "x is %d but y is %d", x, y);
3762 // Check long long types.
3763 #define BIG64 18446744073709551615ull
3764 #define BIG32 4294967295ul
3765 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3766 #if !BIG_OK
3767 your preprocessor is broken;
3768 #endif
3769 #if BIG_OK
3770 #else
3771 your preprocessor is broken;
3772 #endif
3773 static long long int bignum = -9223372036854775807LL;
3774 static unsigned long long int ubignum = BIG64;
3776 struct incomplete_array
3778 int datasize;
3779 double data[];
3782 struct named_init {
3783 int number;
3784 const wchar_t *name;
3785 double average;
3788 typedef const char *ccp;
3790 static inline int
3791 test_restrict (ccp restrict text)
3793 // See if C++-style comments work.
3794 // Iterate through items via the restricted pointer.
3795 // Also check for declarations in for loops.
3796 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3797 continue;
3798 return 0;
3801 // Check varargs and va_copy.
3802 static void
3803 test_varargs (const char *format, ...)
3805 va_list args;
3806 va_start (args, format);
3807 va_list args_copy;
3808 va_copy (args_copy, args);
3810 const char *str;
3811 int number;
3812 float fnumber;
3814 while (*format)
3816 switch (*format++)
3818 case 's': // string
3819 str = va_arg (args_copy, const char *);
3820 break;
3821 case 'd': // int
3822 number = va_arg (args_copy, int);
3823 break;
3824 case 'f': // float
3825 fnumber = va_arg (args_copy, double);
3826 break;
3827 default:
3828 break;
3831 va_end (args_copy);
3832 va_end (args);
3836 main ()
3839 // Check bool.
3840 _Bool success = false;
3842 // Check restrict.
3843 if (test_restrict ("String literal") == 0)
3844 success = true;
3845 char *restrict newvar = "Another string";
3847 // Check varargs.
3848 test_varargs ("s, d' f .", "string", 65, 34.234);
3849 test_varargs_macros ();
3851 // Check flexible array members.
3852 struct incomplete_array *ia =
3853 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3854 ia->datasize = 10;
3855 for (int i = 0; i < ia->datasize; ++i)
3856 ia->data[i] = i * 1.234;
3858 // Check named initializers.
3859 struct named_init ni = {
3860 .number = 34,
3861 .name = L"Test wide string",
3862 .average = 543.34343,
3865 ni.number = 58;
3867 int dynamic_array[ni.number];
3868 dynamic_array[ni.number - 1] = 543;
3870 // work around unused variable warnings
3871 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3872 || dynamic_array[ni.number - 1] != 543);
3875 return 0;
3877 _ACEOF
3878 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3880 CC="$ac_save_CC $ac_arg"
3881 if ac_fn_c_try_compile "$LINENO"; then :
3882 ac_cv_prog_cc_c99=$ac_arg
3884 rm -f core conftest.err conftest.$ac_objext
3885 test "x$ac_cv_prog_cc_c99" != "xno" && break
3886 done
3887 rm -f conftest.$ac_ext
3888 CC=$ac_save_CC
3891 # AC_CACHE_VAL
3892 case "x$ac_cv_prog_cc_c99" in
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3895 $as_echo "none needed" >&6; } ;;
3896 xno)
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3898 $as_echo "unsupported" >&6; } ;;
3900 CC="$CC $ac_cv_prog_cc_c99"
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3902 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3903 esac
3904 if test "x$ac_cv_prog_cc_c99" != xno; then :
3905 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3906 else
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3908 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3909 if ${ac_cv_prog_cc_c89+:} false; then :
3910 $as_echo_n "(cached) " >&6
3911 else
3912 ac_cv_prog_cc_c89=no
3913 ac_save_CC=$CC
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3916 #include <stdarg.h>
3917 #include <stdio.h>
3918 struct stat;
3919 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3920 struct buf { int x; };
3921 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3922 static char *e (p, i)
3923 char **p;
3924 int i;
3926 return p[i];
3928 static char *f (char * (*g) (char **, int), char **p, ...)
3930 char *s;
3931 va_list v;
3932 va_start (v,p);
3933 s = g (p, va_arg (v,int));
3934 va_end (v);
3935 return s;
3938 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3939 function prototypes and stuff, but not '\xHH' hex character constants.
3940 These don't provoke an error unfortunately, instead are silently treated
3941 as 'x'. The following induces an error, until -std is added to get
3942 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3943 array size at least. It's necessary to write '\x00'==0 to get something
3944 that's true only with -std. */
3945 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3947 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3948 inside strings and character constants. */
3949 #define FOO(x) 'x'
3950 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3952 int test (int i, double x);
3953 struct s1 {int (*f) (int a);};
3954 struct s2 {int (*f) (double a);};
3955 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3956 int argc;
3957 char **argv;
3959 main ()
3961 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3963 return 0;
3965 _ACEOF
3966 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3967 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3969 CC="$ac_save_CC $ac_arg"
3970 if ac_fn_c_try_compile "$LINENO"; then :
3971 ac_cv_prog_cc_c89=$ac_arg
3973 rm -f core conftest.err conftest.$ac_objext
3974 test "x$ac_cv_prog_cc_c89" != "xno" && break
3975 done
3976 rm -f conftest.$ac_ext
3977 CC=$ac_save_CC
3980 # AC_CACHE_VAL
3981 case "x$ac_cv_prog_cc_c89" in
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3984 $as_echo "none needed" >&6; } ;;
3985 xno)
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3987 $as_echo "unsupported" >&6; } ;;
3989 CC="$CC $ac_cv_prog_cc_c89"
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3991 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3992 esac
3993 if test "x$ac_cv_prog_cc_c89" != xno; then :
3994 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3995 else
3996 ac_cv_prog_cc_stdc=no
4001 esac
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4003 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4004 if ${ac_cv_prog_cc_stdc+:} false; then :
4005 $as_echo_n "(cached) " >&6
4008 case $ac_cv_prog_cc_stdc in #(
4009 no) :
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4011 $as_echo "unsupported" >&6; } ;; #(
4012 '') :
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4014 $as_echo "none needed" >&6; } ;; #(
4015 *) :
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4017 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4018 esac
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4026 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4027 # On Suns, sometimes $CPP names a directory.
4028 if test -n "$CPP" && test -d "$CPP"; then
4029 CPP=
4031 if test -z "$CPP"; then
4032 if ${ac_cv_prog_CPP+:} false; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 # Double quotes because CPP needs to be expanded
4036 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4038 ac_preproc_ok=false
4039 for ac_c_preproc_warn_flag in '' yes
4041 # Use a header file that comes with gcc, so configuring glibc
4042 # with a fresh cross-compiler works.
4043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4044 # <limits.h> exists even on freestanding compilers.
4045 # On the NeXT, cc -E runs the code through the compiler's parser,
4046 # not just through cpp. "Syntax error" is here to catch this case.
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 #ifdef __STDC__
4050 # include <limits.h>
4051 #else
4052 # include <assert.h>
4053 #endif
4054 Syntax error
4055 _ACEOF
4056 if ac_fn_c_try_cpp "$LINENO"; then :
4058 else
4059 # Broken: fails on valid input.
4060 continue
4062 rm -f conftest.err conftest.i conftest.$ac_ext
4064 # OK, works on sane cases. Now check whether nonexistent headers
4065 # can be detected and how.
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4068 #include <ac_nonexistent.h>
4069 _ACEOF
4070 if ac_fn_c_try_cpp "$LINENO"; then :
4071 # Broken: success on invalid input.
4072 continue
4073 else
4074 # Passes both tests.
4075 ac_preproc_ok=:
4076 break
4078 rm -f conftest.err conftest.i conftest.$ac_ext
4080 done
4081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4082 rm -f conftest.i conftest.err conftest.$ac_ext
4083 if $ac_preproc_ok; then :
4084 break
4087 done
4088 ac_cv_prog_CPP=$CPP
4091 CPP=$ac_cv_prog_CPP
4092 else
4093 ac_cv_prog_CPP=$CPP
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4096 $as_echo "$CPP" >&6; }
4097 ac_preproc_ok=false
4098 for ac_c_preproc_warn_flag in '' yes
4100 # Use a header file that comes with gcc, so configuring glibc
4101 # with a fresh cross-compiler works.
4102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4103 # <limits.h> exists even on freestanding compilers.
4104 # On the NeXT, cc -E runs the code through the compiler's parser,
4105 # not just through cpp. "Syntax error" is here to catch this case.
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108 #ifdef __STDC__
4109 # include <limits.h>
4110 #else
4111 # include <assert.h>
4112 #endif
4113 Syntax error
4114 _ACEOF
4115 if ac_fn_c_try_cpp "$LINENO"; then :
4117 else
4118 # Broken: fails on valid input.
4119 continue
4121 rm -f conftest.err conftest.i conftest.$ac_ext
4123 # OK, works on sane cases. Now check whether nonexistent headers
4124 # can be detected and how.
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127 #include <ac_nonexistent.h>
4128 _ACEOF
4129 if ac_fn_c_try_cpp "$LINENO"; then :
4130 # Broken: success on invalid input.
4131 continue
4132 else
4133 # Passes both tests.
4134 ac_preproc_ok=:
4135 break
4137 rm -f conftest.err conftest.i conftest.$ac_ext
4139 done
4140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4141 rm -f conftest.i conftest.err conftest.$ac_ext
4142 if $ac_preproc_ok; then :
4144 else
4145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4148 See \`config.log' for more details" "$LINENO" 5; }
4151 ac_ext=c
4152 ac_cpp='$CPP $CPPFLAGS'
4153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158 # Check for a compatible awk
4159 for ac_prog in gawk nawk
4161 # Extract the first word of "$ac_prog", so it can be a program name with args.
4162 set dummy $ac_prog; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if ${ac_cv_prog_AWK+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 if test -n "$AWK"; then
4169 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_AWK="$ac_prog"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4182 done
4183 done
4184 IFS=$as_save_IFS
4188 AWK=$ac_cv_prog_AWK
4189 if test -n "$AWK"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4191 $as_echo "$AWK" >&6; }
4192 else
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4198 test -n "$AWK" && break
4199 done
4201 req_avail=yes
4202 if test "$AWK" = ""; then
4203 req_avail=no
4205 if test "$AWK" = "no"; then
4206 req_avail=no
4208 if test "$req_avail" = "no"; then
4209 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4211 # Extract the first word of "mmake", so it can be a program name with args.
4212 set dummy mmake; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_MMAKE+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -n "$MMAKE"; then
4219 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228 ac_cv_prog_MMAKE="mmake "
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4232 done
4233 done
4234 IFS=$as_save_IFS
4238 MMAKE=$ac_cv_prog_MMAKE
4239 if test -n "$MMAKE"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4241 $as_echo "$MMAKE" >&6; }
4242 else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4249 # Perform some default variable assignments. Note all of these will be
4250 # Regenerated from the script, so there is no need to cache them.
4252 aros_build_host=$host
4253 aros_host_cpp="$CPP"
4254 aros_host_cc="$CC"
4255 aros_host_cxx="$CXX"
4256 if test "$GCC" = "yes"; then
4257 aros_gcc_ld=`$CC -print-prog-name=ld`
4258 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4259 set dummy `basename $aros_gcc_ld`; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if ${ac_cv_path_aros_host_ld+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 case $aros_host_ld in
4266 [\\/]* | ?:[\\/]*)
4267 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in `dirname $aros_gcc_ld`
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4281 done
4282 done
4283 IFS=$as_save_IFS
4286 esac
4288 aros_host_ld=$ac_cv_path_aros_host_ld
4289 if test -n "$aros_host_ld"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4291 $as_echo "$aros_host_ld" >&6; }
4292 else
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4299 if test "$aros_host_ld" = ""; then
4300 # Extract the first word of "ld", so it can be a program name with args.
4301 set dummy ld; ac_word=$2
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303 $as_echo_n "checking for $ac_word... " >&6; }
4304 if ${ac_cv_path_aros_host_ld+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 case $aros_host_ld in
4308 [\\/]* | ?:[\\/]*)
4309 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4323 done
4324 done
4325 IFS=$as_save_IFS
4328 esac
4330 aros_host_ld=$ac_cv_path_aros_host_ld
4331 if test -n "$aros_host_ld"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4333 $as_echo "$aros_host_ld" >&6; }
4334 else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4341 req_avail=yes
4342 if test "$aros_host_ld" = ""; then
4343 req_avail=no
4345 if test "$aros_host_ld" = "no"; then
4346 req_avail=no
4348 if test "$req_avail" = "no"; then
4349 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4351 aros_host_make="make"
4352 aros_host_cflags="$CFLAGS"
4353 aros_host_cxxflags="$CXXFLAGS"
4354 aros_host_ldflags="$LDFLAGS"
4355 aros_host_debug="-g -O0"
4356 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4357 aros_host_mkargs="--no-print-directory"
4358 aros_host_exe_suffix="$EXEEXT"
4359 aros_host_lib_suffix=""
4361 # Ignore all compliance, AROS ROMs = 0
4362 # KickStart v1.0 = 30
4363 # KickStart v1.3 = 34
4364 # KickStart v2.0 = 37
4365 # KickStart v3.0 = 39
4366 # KickStart v3.1 = 40
4367 # AmigaOS v3.5 = 44
4368 aros_amigaos_compliance=0
4370 for ac_prog in aclocal aclocal19 aclocal-1.9
4372 # Extract the first word of "$ac_prog", so it can be a program name with args.
4373 set dummy $ac_prog; ac_word=$2
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375 $as_echo_n "checking for $ac_word... " >&6; }
4376 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 if test -n "$aros_host_aclocal"; then
4380 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4381 else
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389 ac_cv_prog_aros_host_aclocal="$ac_prog"
4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4393 done
4394 done
4395 IFS=$as_save_IFS
4399 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4400 if test -n "$aros_host_aclocal"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4402 $as_echo "$aros_host_aclocal" >&6; }
4403 else
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4409 test -n "$aros_host_aclocal" && break
4410 done
4412 for ac_prog in autoconf autoconf259 autoconf253
4414 # Extract the first word of "$ac_prog", so it can be a program name with args.
4415 set dummy $ac_prog; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 if test -n "$aros_host_autoconf"; then
4422 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_aros_host_autoconf="$ac_prog"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4435 done
4436 done
4437 IFS=$as_save_IFS
4441 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4442 if test -n "$aros_host_autoconf"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4444 $as_echo "$aros_host_autoconf" >&6; }
4445 else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4451 test -n "$aros_host_autoconf" && break
4452 done
4454 for ac_prog in autoheader autoheader259 autoheader253
4456 # Extract the first word of "$ac_prog", so it can be a program name with args.
4457 set dummy $ac_prog; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if test -n "$aros_host_autoheader"; then
4464 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473 ac_cv_prog_aros_host_autoheader="$ac_prog"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4477 done
4478 done
4479 IFS=$as_save_IFS
4483 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4484 if test -n "$aros_host_autoheader"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4486 $as_echo "$aros_host_autoheader" >&6; }
4487 else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4493 test -n "$aros_host_autoheader" && break
4494 done
4496 for ac_prog in automake automake19 automake-1.9
4498 # Extract the first word of "$ac_prog", so it can be a program name with args.
4499 set dummy $ac_prog; ac_word=$2
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501 $as_echo_n "checking for $ac_word... " >&6; }
4502 if ${ac_cv_prog_aros_host_automake+:} false; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 if test -n "$aros_host_automake"; then
4506 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4507 else
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH
4511 IFS=$as_save_IFS
4512 test -z "$as_dir" && as_dir=.
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4515 ac_cv_prog_aros_host_automake="$ac_prog"
4516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 break 2
4519 done
4520 done
4521 IFS=$as_save_IFS
4525 aros_host_automake=$ac_cv_prog_aros_host_automake
4526 if test -n "$aros_host_automake"; then
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4528 $as_echo "$aros_host_automake" >&6; }
4529 else
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 $as_echo "no" >&6; }
4535 test -n "$aros_host_automake" && break
4536 done
4539 req_avail=yes
4540 if test "$aros_host_aclocal" = ""; then
4541 req_avail=no
4543 if test "$aros_host_aclocal" = "no"; then
4544 req_avail=no
4546 if test "$req_avail" = "no"; then
4547 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4549 req_avail=yes
4550 if test "$aros_host_automake" = ""; then
4551 req_avail=no
4553 if test "$aros_host_automake" = "no"; then
4554 req_avail=no
4556 if test "$req_avail" = "no"; then
4557 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4560 case "$aros_host_cc" in
4561 *clang*)
4562 aros_host_cc_pipe=""
4564 *gcc*)
4565 aros_host_cc_pipe="-pipe"
4567 icc)
4568 aros_host_cc_pipe=""
4571 aros_host_cc_pipe=""
4573 esac
4575 aros_kernel_cc_includes=""
4576 aros_target_cc_includes=""
4577 host_cc_elf=yes
4579 # ----------------------------------------------------------------------------------------
4580 # Host-specific defaults
4582 # This is the main host configuration section. It is where the host
4583 # can change the values of any variables it needs to change. We do
4584 # not look at anything that compiles to the target yet, we'll get
4585 # to that later.
4587 case "$host_os" in
4588 aros*)
4589 aros_host_arch="aros"
4590 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4591 case "$host_cpu" in
4592 *i?86*)
4593 aros_host_cpu="i386"
4595 *x86_64*)
4596 aros_host_cpu="x86_64"
4598 *powerpc*)
4599 aros_host_cpu="ppc"
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4603 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4604 aros_host_cpu="$host_cpu"
4606 esac
4609 linux*)
4610 aros_host_arch="linux"
4611 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4612 android_build_os="linux-x86"
4613 android_tool="android"
4614 default_android_sdk="/opt/android-sdk-linux_x86"
4615 case "$host_cpu" in
4616 *i?86*)
4617 aros_host_cpu="i386"
4619 *x86_64*)
4620 aros_host_cpu="x86_64"
4622 *m68k*)
4623 aros_host_cpu="m68k"
4625 *powerpc*)
4626 aros_host_cpu="ppc"
4628 *arm*)
4629 aros_host_cpu="arm"
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4633 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4634 aros_host_cpu="$host_cpu"
4636 esac
4639 freebsd*)
4640 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4641 aros_host_make="gmake"
4642 aros_host_arch="freebsd"
4643 aros_host_cpu="i386"
4645 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4647 case $host_os in
4648 freebsd[234]*)
4649 aros_object_format="elf_i386"
4653 aros_object_format="elf_i386_fbsd"
4655 esac
4659 darwin*)
4660 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4661 aros_host_arch="darwin"
4662 host_cc_elf=no
4663 if [ -z ${SED+x} ]; then SED="gsed"; fi
4664 android_build_os="darwin-x86"
4665 android_tool="android"
4666 default_android_sdk="/android-sdk-mac_x86"
4667 case "$host_cpu" in
4668 *i?86*)
4669 aros_host_cpu="i386"
4671 *x86_64*)
4672 aros_host_cpu="x86_64"
4674 *powerpc*)
4675 aros_host_cpu="ppc"
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4679 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4680 aros_host_cpu="$host_cpu"
4682 esac
4684 aros_host_ldflags="$aros_host_ldflags -liconv"
4688 dragonfly*)
4689 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4690 aros_host_make="gmake"
4691 aros_host_arch="dragonfly"
4692 case $host_cpu in
4693 *i?86*)
4694 aros_host_cpu="i386"
4696 *amd64*)
4697 aros_host_cpu="x86_64"
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4701 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4702 aros_host_cpu="$host_cpu"
4704 esac
4707 netbsd*)
4708 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4709 aros_host_make="gmake"
4710 aros_host_arch="netbsd"
4711 case "$host_cpu" in
4712 *i?86*)
4713 aros_host_cpu="i386"
4715 *m68k*)
4716 aros_host_cpu="m68k"
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4720 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4721 aros_host_cpu="$host_cpu"
4723 esac
4724 aros_host_lib_suffix=".0.0"
4727 openbsd*)
4728 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4729 aros_host_make="gmake"
4730 aros_host_arch="openbsd"
4731 case "$host_cpu" in
4732 *i?86*)
4733 aros_host_cpu="i386"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4737 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4738 aros_host_cpu="$host_cpu"
4740 esac
4743 solaris*)
4744 aros_host_arch="solaris"
4745 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4746 case "$host_cpu" in
4747 *i?86*)
4748 aros_host_cpu="i386"
4750 *sparc*)
4751 aros_host_cpu="sparc"
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4755 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4756 aros_host_cpu="$host_cpu"
4758 esac
4761 morphos*)
4762 aros_host_arch="morphos"
4763 aros_host_cpu="ppc"
4764 host_cc_elf=no
4767 amiga*)
4768 aros_host_arch="amiga"
4769 host_cc_elf=no
4770 SORT="/gg/bin/sort"
4771 TEST="/gg/bin/test"
4772 UNIQ="/gg/bin/uniq"
4773 FOR="for"
4774 TOUCH="/gg/bin/touch"
4775 case "$host_cpu" in
4776 *m68k*)
4777 aros_host_cpu="m68k"
4779 *powerpc*)
4780 aros_host_cpu="ppc"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4784 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4785 aros_host_cpu="$host_cpu"
4787 esac
4790 cygwin*)
4791 aros_host_arch="cygwin"
4792 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4793 host_cc_elf=no
4794 android_build_os="windows"
4795 android_tool="android.bat"
4796 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4798 case "$host_cpu" in
4799 *i?86*)
4800 aros_host_cpu="i386"
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4804 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4805 aros_host_cpu="$host_cpu"
4807 esac
4810 mingw32*)
4811 aros_host_arch="mingw32"
4812 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4813 host_cc_elf=no
4814 android_build_os="windows"
4815 android_tool="android.bat"
4816 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4818 case "$host_cpu" in
4819 *i?86*)
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4822 $as_echo_n "checking for Windows native gcc target... " >&6; }
4823 host_cpu=`gcc -dumpmachine`
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4825 $as_echo "$host_cpu" >&6; }
4828 esac
4830 case "$host_cpu" in
4831 *i?86*)
4832 aros_host_cpu="i386"
4835 mingw32*)
4836 aros_host_cpu="i386"
4839 *x86_64*)
4840 aros_host_cpu="x86_64"
4841 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4846 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4847 aros_host_cpu="$host_cpu"
4849 esac
4852 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4854 esac
4856 # Extract the first word of "ar", so it can be a program name with args.
4857 set dummy ar; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if ${ac_cv_prog_aros_host_ar+:} false; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$aros_host_ar"; then
4864 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_prog_aros_host_ar="ar cr"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4877 done
4878 done
4879 IFS=$as_save_IFS
4883 aros_host_ar=$ac_cv_prog_aros_host_ar
4884 if test -n "$aros_host_ar"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4886 $as_echo "$aros_host_ar" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4893 req_avail=yes
4894 if test "$aros_host_ar" = ""; then
4895 req_avail=no
4897 if test "$aros_host_ar" = "no"; then
4898 req_avail=no
4900 if test "$req_avail" = "no"; then
4901 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4903 # Extract the first word of "ranlib", so it can be a program name with args.
4904 set dummy ranlib; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$aros_host_ranlib"; then
4911 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920 ac_cv_prog_aros_host_ranlib="ranlib "
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4924 done
4925 done
4926 IFS=$as_save_IFS
4930 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4931 if test -n "$aros_host_ranlib"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4933 $as_echo "$aros_host_ranlib" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4940 req_avail=yes
4941 if test "$aros_host_ranlib" = ""; then
4942 req_avail=no
4944 if test "$aros_host_ranlib" = "no"; then
4945 req_avail=no
4947 if test "$req_avail" = "no"; then
4948 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4950 # Extract the first word of "strip", so it can be a program name with args.
4951 set dummy strip; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_aros_host_strip+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$aros_host_strip"; then
4958 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967 ac_cv_prog_aros_host_strip="strip "
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4971 done
4972 done
4973 IFS=$as_save_IFS
4977 aros_host_strip=$ac_cv_prog_aros_host_strip
4978 if test -n "$aros_host_strip"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4980 $as_echo "$aros_host_strip" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4987 req_avail=yes
4988 if test "$aros_host_strip" = ""; then
4989 req_avail=no
4991 if test "$aros_host_strip" = "no"; then
4992 req_avail=no
4994 if test "$req_avail" = "no"; then
4995 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4998 # Extract the first word of "rm", so it can be a program name with args.
4999 set dummy rm; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if ${ac_cv_prog_RM+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 if test -n "$RM"; then
5006 ac_cv_prog_RM="$RM" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_RM="rm -rf"
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5019 done
5020 done
5021 IFS=$as_save_IFS
5025 RM=$ac_cv_prog_RM
5026 if test -n "$RM"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5028 $as_echo "$RM" >&6; }
5029 else
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5035 req_avail=yes
5036 if test "$RM" = ""; then
5037 req_avail=no
5039 if test "$RM" = "no"; then
5040 req_avail=no
5042 if test "$req_avail" = "no"; then
5043 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5045 # Extract the first word of "cp", so it can be a program name with args.
5046 set dummy cp; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if ${ac_cv_prog_CP+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$CP"; then
5053 ac_cv_prog_CP="$CP" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5062 ac_cv_prog_CP="cp "
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5066 done
5067 done
5068 IFS=$as_save_IFS
5072 CP=$ac_cv_prog_CP
5073 if test -n "$CP"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5075 $as_echo "$CP" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5082 req_avail=yes
5083 if test "$CP" = ""; then
5084 req_avail=no
5086 if test "$CP" = "no"; then
5087 req_avail=no
5089 if test "$req_avail" = "no"; then
5090 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5092 # Extract the first word of "mv", so it can be a program name with args.
5093 set dummy mv; ac_word=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if ${ac_cv_prog_MV+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 if test -n "$MV"; then
5100 ac_cv_prog_MV="$MV" # Let the user override the test.
5101 else
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5109 ac_cv_prog_MV="mv "
5110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 break 2
5113 done
5114 done
5115 IFS=$as_save_IFS
5119 MV=$ac_cv_prog_MV
5120 if test -n "$MV"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5122 $as_echo "$MV" >&6; }
5123 else
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5129 req_avail=yes
5130 if test "$MV" = ""; then
5131 req_avail=no
5133 if test "$MV" = "no"; then
5134 req_avail=no
5136 if test "$req_avail" = "no"; then
5137 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5139 # Extract the first word of "echo", so it can be a program name with args.
5140 set dummy echo; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_prog_ECHO+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 if test -n "$ECHO"; then
5147 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156 ac_cv_prog_ECHO="echo "
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5160 done
5161 done
5162 IFS=$as_save_IFS
5166 ECHO=$ac_cv_prog_ECHO
5167 if test -n "$ECHO"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5169 $as_echo "$ECHO" >&6; }
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5176 req_avail=yes
5177 if test "$ECHO" = ""; then
5178 req_avail=no
5180 if test "$ECHO" = "no"; then
5181 req_avail=no
5183 if test "$req_avail" = "no"; then
5184 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5186 # Extract the first word of "mkdir", so it can be a program name with args.
5187 set dummy mkdir; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_MKDIR+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -n "$MKDIR"; then
5194 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_MKDIR="mkdir -p"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5207 done
5208 done
5209 IFS=$as_save_IFS
5213 MKDIR=$ac_cv_prog_MKDIR
5214 if test -n "$MKDIR"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5216 $as_echo "$MKDIR" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5223 req_avail=yes
5224 if test "$MKDIR" = ""; then
5225 req_avail=no
5227 if test "$MKDIR" = "no"; then
5228 req_avail=no
5230 if test "$req_avail" = "no"; then
5231 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5233 # Extract the first word of "touch", so it can be a program name with args.
5234 set dummy touch; ac_word=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if ${ac_cv_prog_TOUCH+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 if test -n "$TOUCH"; then
5241 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5242 else
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_prog_TOUCH="touch "
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5254 done
5255 done
5256 IFS=$as_save_IFS
5260 TOUCH=$ac_cv_prog_TOUCH
5261 if test -n "$TOUCH"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5263 $as_echo "$TOUCH" >&6; }
5264 else
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 $as_echo "no" >&6; }
5270 req_avail=yes
5271 if test "$TOUCH" = ""; then
5272 req_avail=no
5274 if test "$TOUCH" = "no"; then
5275 req_avail=no
5277 if test "$req_avail" = "no"; then
5278 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5280 # Extract the first word of "sort", so it can be a program name with args.
5281 set dummy sort; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if ${ac_cv_prog_SORT+:} false; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 if test -n "$SORT"; then
5288 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297 ac_cv_prog_SORT="sort "
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5301 done
5302 done
5303 IFS=$as_save_IFS
5307 SORT=$ac_cv_prog_SORT
5308 if test -n "$SORT"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5310 $as_echo "$SORT" >&6; }
5311 else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5317 req_avail=yes
5318 if test "$SORT" = ""; then
5319 req_avail=no
5321 if test "$SORT" = "no"; then
5322 req_avail=no
5324 if test "$req_avail" = "no"; then
5325 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5327 # Extract the first word of "uniq", so it can be a program name with args.
5328 set dummy uniq; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_prog_UNIQ+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$UNIQ"; then
5335 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_prog_UNIQ="uniq "
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5348 done
5349 done
5350 IFS=$as_save_IFS
5354 UNIQ=$ac_cv_prog_UNIQ
5355 if test -n "$UNIQ"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5357 $as_echo "$UNIQ" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5364 req_avail=yes
5365 if test "$UNIQ" = ""; then
5366 req_avail=no
5368 if test "$UNIQ" = "no"; then
5369 req_avail=no
5371 if test "$req_avail" = "no"; then
5372 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5374 # Extract the first word of "true", so it can be a program name with args.
5375 set dummy true; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if ${ac_cv_prog_NOP+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if test -n "$NOP"; then
5382 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5391 ac_cv_prog_NOP="true "
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5395 done
5396 done
5397 IFS=$as_save_IFS
5401 NOP=$ac_cv_prog_NOP
5402 if test -n "$NOP"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5404 $as_echo "$NOP" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5411 req_avail=yes
5412 if test "$NOP" = ""; then
5413 req_avail=no
5415 if test "$NOP" = "no"; then
5416 req_avail=no
5418 if test "$req_avail" = "no"; then
5419 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5421 # Extract the first word of "cat", so it can be a program name with args.
5422 set dummy cat; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_prog_CAT+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 if test -n "$CAT"; then
5429 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_CAT="cat "
5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5442 done
5443 done
5444 IFS=$as_save_IFS
5448 CAT=$ac_cv_prog_CAT
5449 if test -n "$CAT"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5451 $as_echo "$CAT" >&6; }
5452 else
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5458 req_avail=yes
5459 if test "$CAT" = ""; then
5460 req_avail=no
5462 if test "$CAT" = "no"; then
5463 req_avail=no
5465 if test "$req_avail" = "no"; then
5466 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5468 # Extract the first word of "bison", so it can be a program name with args.
5469 set dummy bison; ac_word=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if ${ac_cv_prog_BISON+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 if test -n "$BISON"; then
5476 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_BISON="bison "
5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5489 done
5490 done
5491 IFS=$as_save_IFS
5495 BISON=$ac_cv_prog_BISON
5496 if test -n "$BISON"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5498 $as_echo "$BISON" >&6; }
5499 else
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5505 req_avail=yes
5506 if test "$BISON" = ""; then
5507 req_avail=no
5509 if test "$BISON" = "no"; then
5510 req_avail=no
5512 if test "$req_avail" = "no"; then
5513 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5515 # Extract the first word of "flex", so it can be a program name with args.
5516 set dummy flex; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_FLEX+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -n "$FLEX"; then
5523 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_FLEX="flex "
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5536 done
5537 done
5538 IFS=$as_save_IFS
5542 FLEX=$ac_cv_prog_FLEX
5543 if test -n "$FLEX"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5545 $as_echo "$FLEX" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5552 req_avail=yes
5553 if test "$FLEX" = ""; then
5554 req_avail=no
5556 if test "$FLEX" = "no"; then
5557 req_avail=no
5559 if test "$req_avail" = "no"; then
5560 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5562 # Extract the first word of "pngtopnm", so it can be a program name with args.
5563 set dummy pngtopnm; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 if test -n "$PNGTOPNM"; then
5570 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5571 else
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579 ac_cv_prog_PNGTOPNM="pngtopnm "
5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 break 2
5583 done
5584 done
5585 IFS=$as_save_IFS
5589 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5590 if test -n "$PNGTOPNM"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5592 $as_echo "$PNGTOPNM" >&6; }
5593 else
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5599 req_avail=yes
5600 if test "$PNGTOPNM" = ""; then
5601 req_avail=no
5603 if test "$PNGTOPNM" = "no"; then
5604 req_avail=no
5606 if test "$req_avail" = "no"; then
5607 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5609 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5610 set dummy ppmtoilbm; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 if test -n "$PPMTOILBM"; then
5617 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5630 done
5631 done
5632 IFS=$as_save_IFS
5636 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5637 if test -n "$PPMTOILBM"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5639 $as_echo "$PPMTOILBM" >&6; }
5640 else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5646 req_avail=yes
5647 if test "$PPMTOILBM" = ""; then
5648 req_avail=no
5650 if test "$PPMTOILBM" = "no"; then
5651 req_avail=no
5653 if test "$req_avail" = "no"; then
5654 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5656 # Extract the first word of "sed", so it can be a program name with args.
5657 set dummy sed; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_SED+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 if test -n "$SED"; then
5664 ac_cv_prog_SED="$SED" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_SED="sed "
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5677 done
5678 done
5679 IFS=$as_save_IFS
5683 SED=$ac_cv_prog_SED
5684 if test -n "$SED"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5686 $as_echo "$SED" >&6; }
5687 else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5693 req_avail=yes
5694 if test "$SED" = ""; then
5695 req_avail=no
5697 if test "$SED" = "no"; then
5698 req_avail=no
5700 if test "$req_avail" = "no"; then
5701 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5703 # Extract the first word of "chmod", so it can be a program name with args.
5704 set dummy chmod; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if ${ac_cv_prog_CHMOD+:} false; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 if test -n "$CHMOD"; then
5711 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720 ac_cv_prog_CHMOD="chmod "
5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 break 2
5724 done
5725 done
5726 IFS=$as_save_IFS
5730 CHMOD=$ac_cv_prog_CHMOD
5731 if test -n "$CHMOD"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5733 $as_echo "$CHMOD" >&6; }
5734 else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5740 req_avail=yes
5741 if test "$CHMOD" = ""; then
5742 req_avail=no
5744 if test "$CHMOD" = "no"; then
5745 req_avail=no
5747 if test "$req_avail" = "no"; then
5748 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5750 # Extract the first word of "patch", so it can be a program name with args.
5751 set dummy patch; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if ${ac_cv_prog_PATCH+:} false; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 if test -n "$PATCH"; then
5758 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767 ac_cv_prog_PATCH="patch "
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5771 done
5772 done
5773 IFS=$as_save_IFS
5777 PATCH=$ac_cv_prog_PATCH
5778 if test -n "$PATCH"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5780 $as_echo "$PATCH" >&6; }
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5787 req_avail=yes
5788 if test "$PATCH" = ""; then
5789 req_avail=no
5791 if test "$PATCH" = "no"; then
5792 req_avail=no
5794 if test "$req_avail" = "no"; then
5795 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5804 if test -n "$PYTHON"; then
5805 # If the user set $PYTHON, use it and don't search something else.
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5807 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5808 prog="import sys
5809 # split strings by '.' and convert to numeric. Append some zeros
5810 # because we need at least 4 digits for the hex conversion.
5811 # map returns an iterator in Python 3.0 and a list in 2.x
5812 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5813 minverhex = 0
5814 # xrange is not present in Python 3.0 and range returns an iterator
5815 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5816 sys.exit(sys.hexversion < minverhex)"
5817 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5818 ($PYTHON -c "$prog") >&5 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; then :
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5823 $as_echo "yes" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5829 am_display_PYTHON=$PYTHON
5830 else
5831 # Otherwise, try each interpreter until we find one that satisfies
5832 # VERSION.
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5834 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5835 if ${am_cv_pathless_PYTHON+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5839 for am_cv_pathless_PYTHON in python python2 python3 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
5840 test "$am_cv_pathless_PYTHON" = none && break
5841 prog="import sys
5842 # split strings by '.' and convert to numeric. Append some zeros
5843 # because we need at least 4 digits for the hex conversion.
5844 # map returns an iterator in Python 3.0 and a list in 2.x
5845 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5846 minverhex = 0
5847 # xrange is not present in Python 3.0 and range returns an iterator
5848 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5849 sys.exit(sys.hexversion < minverhex)"
5850 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5851 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; then :
5855 break
5857 done
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5860 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5861 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5862 if test "$am_cv_pathless_PYTHON" = none; then
5863 PYTHON=:
5864 else
5865 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5866 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_path_PYTHON+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 case $PYTHON in
5873 [\\/]* | ?:[\\/]*)
5874 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 2
5888 done
5889 done
5890 IFS=$as_save_IFS
5893 esac
5895 PYTHON=$ac_cv_path_PYTHON
5896 if test -n "$PYTHON"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5898 $as_echo "$PYTHON" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5906 am_display_PYTHON=$am_cv_pathless_PYTHON
5910 if test "$PYTHON" = :; then
5911 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5912 else
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5916 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5917 if ${am_cv_python_version+:} false; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5920 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5923 $as_echo "$am_cv_python_version" >&6; }
5924 PYTHON_VERSION=$am_cv_python_version
5928 PYTHON_PREFIX='${prefix}'
5930 PYTHON_EXEC_PREFIX='${exec_prefix}'
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5935 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5936 if ${am_cv_python_platform+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5942 $as_echo "$am_cv_python_platform" >&6; }
5943 PYTHON_PLATFORM=$am_cv_python_platform
5946 # Just factor out some code duplication.
5947 am_python_setup_sysconfig="\
5948 import sys
5949 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5950 # with python 3.x. See automake bug#10227.
5951 try:
5952 import sysconfig
5953 except ImportError:
5954 can_use_sysconfig = 0
5955 else:
5956 can_use_sysconfig = 1
5957 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5958 # <https://github.com/pypa/virtualenv/issues/118>
5959 try:
5960 from platform import python_implementation
5961 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5962 can_use_sysconfig = 0
5963 except ImportError:
5964 pass"
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5968 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5969 if ${am_cv_python_pythondir+:} false; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5972 if test "x$prefix" = xNONE
5973 then
5974 am_py_prefix=$ac_default_prefix
5975 else
5976 am_py_prefix=$prefix
5978 am_cv_python_pythondir=`$PYTHON -c "
5979 $am_python_setup_sysconfig
5980 if can_use_sysconfig:
5981 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5982 else:
5983 from distutils import sysconfig
5984 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5985 sys.stdout.write(sitedir)"`
5986 case $am_cv_python_pythondir in
5987 $am_py_prefix*)
5988 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5989 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5992 case $am_py_prefix in
5993 /usr|/System*) ;;
5995 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5997 esac
5999 esac
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6003 $as_echo "$am_cv_python_pythondir" >&6; }
6004 pythondir=$am_cv_python_pythondir
6008 pkgpythondir=\${pythondir}/$PACKAGE
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6012 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6013 if ${am_cv_python_pyexecdir+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 if test "x$exec_prefix" = xNONE
6017 then
6018 am_py_exec_prefix=$am_py_prefix
6019 else
6020 am_py_exec_prefix=$exec_prefix
6022 am_cv_python_pyexecdir=`$PYTHON -c "
6023 $am_python_setup_sysconfig
6024 if can_use_sysconfig:
6025 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6026 else:
6027 from distutils import sysconfig
6028 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6029 sys.stdout.write(sitedir)"`
6030 case $am_cv_python_pyexecdir in
6031 $am_py_exec_prefix*)
6032 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6033 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6036 case $am_py_exec_prefix in
6037 /usr|/System*) ;;
6039 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6041 esac
6043 esac
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6047 $as_echo "$am_cv_python_pyexecdir" >&6; }
6048 pyexecdir=$am_cv_python_pyexecdir
6052 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6062 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6063 if ${ac_cv_lib_png_png_read_png+:} false; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 ac_check_lib_save_LIBS=$LIBS
6067 LIBS="-lpng $LIBS"
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6071 /* Override any GCC internal prototype to avoid an error.
6072 Use char because int might match the return type of a GCC
6073 builtin and then its argument prototype would still apply. */
6074 #ifdef __cplusplus
6075 extern "C"
6076 #endif
6077 char png_read_png ();
6079 main ()
6081 return png_read_png ();
6083 return 0;
6085 _ACEOF
6086 if ac_fn_c_try_link "$LINENO"; then :
6087 ac_cv_lib_png_png_read_png=yes
6088 else
6089 ac_cv_lib_png_png_read_png=no
6091 rm -f core conftest.err conftest.$ac_objext \
6092 conftest$ac_exeext conftest.$ac_ext
6093 LIBS=$ac_check_lib_save_LIBS
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6096 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6097 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6098 libpng="png"
6099 else
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng16" >&5
6101 $as_echo_n "checking for png_read_png in -lpng16... " >&6; }
6102 if ${ac_cv_lib_png16_png_read_png+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 ac_check_lib_save_LIBS=$LIBS
6106 LIBS="-lpng16 $LIBS"
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6110 /* Override any GCC internal prototype to avoid an error.
6111 Use char because int might match the return type of a GCC
6112 builtin and then its argument prototype would still apply. */
6113 #ifdef __cplusplus
6114 extern "C"
6115 #endif
6116 char png_read_png ();
6118 main ()
6120 return png_read_png ();
6122 return 0;
6124 _ACEOF
6125 if ac_fn_c_try_link "$LINENO"; then :
6126 ac_cv_lib_png16_png_read_png=yes
6127 else
6128 ac_cv_lib_png16_png_read_png=no
6130 rm -f core conftest.err conftest.$ac_objext \
6131 conftest$ac_exeext conftest.$ac_ext
6132 LIBS=$ac_check_lib_save_LIBS
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_read_png" >&5
6135 $as_echo "$ac_cv_lib_png16_png_read_png" >&6; }
6136 if test "x$ac_cv_lib_png16_png_read_png" = xyes; then :
6137 libpng="png16"
6138 else
6139 libpng="no"
6144 req_avail=yes
6145 if test "$libpng" = ""; then
6146 req_avail=no
6148 if test "$libpng" = "no"; then
6149 req_avail=no
6151 if test "$req_avail" = "no"; then
6152 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6156 FOR=for
6158 IF=if
6160 TEST=test
6162 CMP=cmp
6166 # Check for some includes for the X11 HIDD and the kernel
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6169 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6170 if ${ac_cv_path_GREP+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 if test -z "$GREP"; then
6174 ac_path_GREP_found=false
6175 # Loop through the user's path and test for each of PROGNAME-LIST
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_prog in grep ggrep; do
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6184 as_fn_executable_p "$ac_path_GREP" || continue
6185 # Check for GNU ac_path_GREP and select it if it is found.
6186 # Check for GNU $ac_path_GREP
6187 case `"$ac_path_GREP" --version 2>&1` in
6188 *GNU*)
6189 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6191 ac_count=0
6192 $as_echo_n 0123456789 >"conftest.in"
6193 while :
6195 cat "conftest.in" "conftest.in" >"conftest.tmp"
6196 mv "conftest.tmp" "conftest.in"
6197 cp "conftest.in" "conftest.nl"
6198 $as_echo 'GREP' >> "conftest.nl"
6199 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6201 as_fn_arith $ac_count + 1 && ac_count=$as_val
6202 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6203 # Best one so far, save it but keep looking for a better one
6204 ac_cv_path_GREP="$ac_path_GREP"
6205 ac_path_GREP_max=$ac_count
6207 # 10*(2^10) chars as input seems more than enough
6208 test $ac_count -gt 10 && break
6209 done
6210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6211 esac
6213 $ac_path_GREP_found && break 3
6214 done
6215 done
6216 done
6217 IFS=$as_save_IFS
6218 if test -z "$ac_cv_path_GREP"; then
6219 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6221 else
6222 ac_cv_path_GREP=$GREP
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6227 $as_echo "$ac_cv_path_GREP" >&6; }
6228 GREP="$ac_cv_path_GREP"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6232 $as_echo_n "checking for egrep... " >&6; }
6233 if ${ac_cv_path_EGREP+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6237 then ac_cv_path_EGREP="$GREP -E"
6238 else
6239 if test -z "$EGREP"; then
6240 ac_path_EGREP_found=false
6241 # Loop through the user's path and test for each of PROGNAME-LIST
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_prog in egrep; do
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6250 as_fn_executable_p "$ac_path_EGREP" || continue
6251 # Check for GNU ac_path_EGREP and select it if it is found.
6252 # Check for GNU $ac_path_EGREP
6253 case `"$ac_path_EGREP" --version 2>&1` in
6254 *GNU*)
6255 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6257 ac_count=0
6258 $as_echo_n 0123456789 >"conftest.in"
6259 while :
6261 cat "conftest.in" "conftest.in" >"conftest.tmp"
6262 mv "conftest.tmp" "conftest.in"
6263 cp "conftest.in" "conftest.nl"
6264 $as_echo 'EGREP' >> "conftest.nl"
6265 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6267 as_fn_arith $ac_count + 1 && ac_count=$as_val
6268 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6269 # Best one so far, save it but keep looking for a better one
6270 ac_cv_path_EGREP="$ac_path_EGREP"
6271 ac_path_EGREP_max=$ac_count
6273 # 10*(2^10) chars as input seems more than enough
6274 test $ac_count -gt 10 && break
6275 done
6276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6277 esac
6279 $ac_path_EGREP_found && break 3
6280 done
6281 done
6282 done
6283 IFS=$as_save_IFS
6284 if test -z "$ac_cv_path_EGREP"; then
6285 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6287 else
6288 ac_cv_path_EGREP=$EGREP
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6294 $as_echo "$ac_cv_path_EGREP" >&6; }
6295 EGREP="$ac_cv_path_EGREP"
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6299 $as_echo_n "checking for ANSI C header files... " >&6; }
6300 if ${ac_cv_header_stdc+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6305 #include <stdlib.h>
6306 #include <stdarg.h>
6307 #include <string.h>
6308 #include <float.h>
6311 main ()
6315 return 0;
6317 _ACEOF
6318 if ac_fn_c_try_compile "$LINENO"; then :
6319 ac_cv_header_stdc=yes
6320 else
6321 ac_cv_header_stdc=no
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 if test $ac_cv_header_stdc = yes; then
6326 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 #include <string.h>
6331 _ACEOF
6332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6333 $EGREP "memchr" >/dev/null 2>&1; then :
6335 else
6336 ac_cv_header_stdc=no
6338 rm -f conftest*
6342 if test $ac_cv_header_stdc = yes; then
6343 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346 #include <stdlib.h>
6348 _ACEOF
6349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6350 $EGREP "free" >/dev/null 2>&1; then :
6352 else
6353 ac_cv_header_stdc=no
6355 rm -f conftest*
6359 if test $ac_cv_header_stdc = yes; then
6360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6361 if test "$cross_compiling" = yes; then :
6363 else
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6366 #include <ctype.h>
6367 #include <stdlib.h>
6368 #if ((' ' & 0x0FF) == 0x020)
6369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6371 #else
6372 # define ISLOWER(c) \
6373 (('a' <= (c) && (c) <= 'i') \
6374 || ('j' <= (c) && (c) <= 'r') \
6375 || ('s' <= (c) && (c) <= 'z'))
6376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6377 #endif
6379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6381 main ()
6383 int i;
6384 for (i = 0; i < 256; i++)
6385 if (XOR (islower (i), ISLOWER (i))
6386 || toupper (i) != TOUPPER (i))
6387 return 2;
6388 return 0;
6390 _ACEOF
6391 if ac_fn_c_try_run "$LINENO"; then :
6393 else
6394 ac_cv_header_stdc=no
6396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6397 conftest.$ac_objext conftest.beam conftest.$ac_ext
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6403 $as_echo "$ac_cv_header_stdc" >&6; }
6404 if test $ac_cv_header_stdc = yes; then
6406 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6410 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6411 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6412 inttypes.h stdint.h unistd.h
6413 do :
6414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6415 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6417 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6418 cat >>confdefs.h <<_ACEOF
6419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6420 _ACEOF
6424 done
6427 for ac_header in sys/ipc.h sys/shm.h \
6428 sys/mmap.h sys/mman.h sysexits.h \
6429 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6431 do :
6432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6433 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6435 cat >>confdefs.h <<_ACEOF
6436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6437 _ACEOF
6441 done
6444 for ac_header in sys/mount.h
6445 do :
6446 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6448 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6449 cat >>confdefs.h <<_ACEOF
6450 #define HAVE_SYS_MOUNT_H 1
6451 _ACEOF
6455 done
6458 ac_header_dirent=no
6459 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6460 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6462 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6463 if eval \${$as_ac_Header+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 #include <sys/types.h>
6469 #include <$ac_hdr>
6472 main ()
6474 if ((DIR *) 0)
6475 return 0;
6477 return 0;
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"; then :
6481 eval "$as_ac_Header=yes"
6482 else
6483 eval "$as_ac_Header=no"
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 eval ac_res=\$$as_ac_Header
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6489 $as_echo "$ac_res" >&6; }
6490 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6491 cat >>confdefs.h <<_ACEOF
6492 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6493 _ACEOF
6495 ac_header_dirent=$ac_hdr; break
6498 done
6499 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6500 if test $ac_header_dirent = dirent.h; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6502 $as_echo_n "checking for library containing opendir... " >&6; }
6503 if ${ac_cv_search_opendir+:} false; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 ac_func_search_save_LIBS=$LIBS
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6510 /* Override any GCC internal prototype to avoid an error.
6511 Use char because int might match the return type of a GCC
6512 builtin and then its argument prototype would still apply. */
6513 #ifdef __cplusplus
6514 extern "C"
6515 #endif
6516 char opendir ();
6518 main ()
6520 return opendir ();
6522 return 0;
6524 _ACEOF
6525 for ac_lib in '' dir; do
6526 if test -z "$ac_lib"; then
6527 ac_res="none required"
6528 else
6529 ac_res=-l$ac_lib
6530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6532 if ac_fn_c_try_link "$LINENO"; then :
6533 ac_cv_search_opendir=$ac_res
6535 rm -f core conftest.err conftest.$ac_objext \
6536 conftest$ac_exeext
6537 if ${ac_cv_search_opendir+:} false; then :
6538 break
6540 done
6541 if ${ac_cv_search_opendir+:} false; then :
6543 else
6544 ac_cv_search_opendir=no
6546 rm conftest.$ac_ext
6547 LIBS=$ac_func_search_save_LIBS
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6550 $as_echo "$ac_cv_search_opendir" >&6; }
6551 ac_res=$ac_cv_search_opendir
6552 if test "$ac_res" != no; then :
6553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6557 else
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6559 $as_echo_n "checking for library containing opendir... " >&6; }
6560 if ${ac_cv_search_opendir+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 ac_func_search_save_LIBS=$LIBS
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6567 /* Override any GCC internal prototype to avoid an error.
6568 Use char because int might match the return type of a GCC
6569 builtin and then its argument prototype would still apply. */
6570 #ifdef __cplusplus
6571 extern "C"
6572 #endif
6573 char opendir ();
6575 main ()
6577 return opendir ();
6579 return 0;
6581 _ACEOF
6582 for ac_lib in '' x; do
6583 if test -z "$ac_lib"; then
6584 ac_res="none required"
6585 else
6586 ac_res=-l$ac_lib
6587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6589 if ac_fn_c_try_link "$LINENO"; then :
6590 ac_cv_search_opendir=$ac_res
6592 rm -f core conftest.err conftest.$ac_objext \
6593 conftest$ac_exeext
6594 if ${ac_cv_search_opendir+:} false; then :
6595 break
6597 done
6598 if ${ac_cv_search_opendir+:} false; then :
6600 else
6601 ac_cv_search_opendir=no
6603 rm conftest.$ac_ext
6604 LIBS=$ac_func_search_save_LIBS
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6607 $as_echo "$ac_cv_search_opendir" >&6; }
6608 ac_res=$ac_cv_search_opendir
6609 if test "$ac_res" != no; then :
6610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6617 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6618 if ${ac_cv_header_stat_broken+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 #include <sys/types.h>
6624 #include <sys/stat.h>
6626 #if defined S_ISBLK && defined S_IFDIR
6627 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6628 #endif
6630 #if defined S_ISBLK && defined S_IFCHR
6631 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6632 #endif
6634 #if defined S_ISLNK && defined S_IFREG
6635 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6636 #endif
6638 #if defined S_ISSOCK && defined S_IFREG
6639 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6640 #endif
6642 _ACEOF
6643 if ac_fn_c_try_compile "$LINENO"; then :
6644 ac_cv_header_stat_broken=no
6645 else
6646 ac_cv_header_stat_broken=yes
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6651 $as_echo "$ac_cv_header_stat_broken" >&6; }
6652 if test $ac_cv_header_stat_broken = yes; then
6654 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6659 $as_echo_n "checking for ANSI C header files... " >&6; }
6660 if ${ac_cv_header_stdc+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6665 #include <stdlib.h>
6666 #include <stdarg.h>
6667 #include <string.h>
6668 #include <float.h>
6671 main ()
6675 return 0;
6677 _ACEOF
6678 if ac_fn_c_try_compile "$LINENO"; then :
6679 ac_cv_header_stdc=yes
6680 else
6681 ac_cv_header_stdc=no
6683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 if test $ac_cv_header_stdc = yes; then
6686 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6689 #include <string.h>
6691 _ACEOF
6692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6693 $EGREP "memchr" >/dev/null 2>&1; then :
6695 else
6696 ac_cv_header_stdc=no
6698 rm -f conftest*
6702 if test $ac_cv_header_stdc = yes; then
6703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 #include <stdlib.h>
6708 _ACEOF
6709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6710 $EGREP "free" >/dev/null 2>&1; then :
6712 else
6713 ac_cv_header_stdc=no
6715 rm -f conftest*
6719 if test $ac_cv_header_stdc = yes; then
6720 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6721 if test "$cross_compiling" = yes; then :
6723 else
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726 #include <ctype.h>
6727 #include <stdlib.h>
6728 #if ((' ' & 0x0FF) == 0x020)
6729 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6730 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6731 #else
6732 # define ISLOWER(c) \
6733 (('a' <= (c) && (c) <= 'i') \
6734 || ('j' <= (c) && (c) <= 'r') \
6735 || ('s' <= (c) && (c) <= 'z'))
6736 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6737 #endif
6739 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6741 main ()
6743 int i;
6744 for (i = 0; i < 256; i++)
6745 if (XOR (islower (i), ISLOWER (i))
6746 || toupper (i) != TOUPPER (i))
6747 return 2;
6748 return 0;
6750 _ACEOF
6751 if ac_fn_c_try_run "$LINENO"; then :
6753 else
6754 ac_cv_header_stdc=no
6756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6757 conftest.$ac_objext conftest.beam conftest.$ac_ext
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6763 $as_echo "$ac_cv_header_stdc" >&6; }
6764 if test $ac_cv_header_stdc = yes; then
6766 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6771 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6772 if ${ac_cv_header_sys_wait_h+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 #include <sys/types.h>
6778 #include <sys/wait.h>
6779 #ifndef WEXITSTATUS
6780 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6781 #endif
6782 #ifndef WIFEXITED
6783 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6784 #endif
6787 main ()
6789 int s;
6790 wait (&s);
6791 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6793 return 0;
6795 _ACEOF
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797 ac_cv_header_sys_wait_h=yes
6798 else
6799 ac_cv_header_sys_wait_h=no
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6804 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6805 if test $ac_cv_header_sys_wait_h = yes; then
6807 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6812 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6813 if ${ac_cv_header_time+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 #include <sys/types.h>
6819 #include <sys/time.h>
6820 #include <time.h>
6823 main ()
6825 if ((struct tm *) 0)
6826 return 0;
6828 return 0;
6830 _ACEOF
6831 if ac_fn_c_try_compile "$LINENO"; then :
6832 ac_cv_header_time=yes
6833 else
6834 ac_cv_header_time=no
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6839 $as_echo "$ac_cv_header_time" >&6; }
6840 if test $ac_cv_header_time = yes; then
6842 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6846 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6847 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6849 cat >>confdefs.h <<_ACEOF
6850 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6851 _ACEOF
6854 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6859 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6860 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6862 cat >>confdefs.h <<_ACEOF
6863 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6864 _ACEOF
6867 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6869 else
6870 case " $LIBOBJS " in
6871 *" fileblocks.$ac_objext "* ) ;;
6872 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6874 esac
6879 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6880 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6882 cat >>confdefs.h <<_ACEOF
6883 #define HAVE_STRUCT_STAT_ST_RDEV 1
6884 _ACEOF
6887 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6893 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6894 if ${ac_cv_struct_tm+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 #include <sys/types.h>
6900 #include <time.h>
6903 main ()
6905 struct tm tm;
6906 int *p = &tm.tm_sec;
6907 return !p;
6909 return 0;
6911 _ACEOF
6912 if ac_fn_c_try_compile "$LINENO"; then :
6913 ac_cv_struct_tm=time.h
6914 else
6915 ac_cv_struct_tm=sys/time.h
6917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6920 $as_echo "$ac_cv_struct_tm" >&6; }
6921 if test $ac_cv_struct_tm = sys/time.h; then
6923 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6927 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6928 #include <$ac_cv_struct_tm>
6931 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6933 cat >>confdefs.h <<_ACEOF
6934 #define HAVE_STRUCT_TM_TM_ZONE 1
6935 _ACEOF
6940 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6942 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6944 else
6945 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6947 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6948 ac_have_decl=1
6949 else
6950 ac_have_decl=0
6953 cat >>confdefs.h <<_ACEOF
6954 #define HAVE_DECL_TZNAME $ac_have_decl
6955 _ACEOF
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6958 $as_echo_n "checking for tzname... " >&6; }
6959 if ${ac_cv_var_tzname+:} false; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6964 #include <time.h>
6965 #if !HAVE_DECL_TZNAME
6966 extern char *tzname[];
6967 #endif
6970 main ()
6972 return tzname[0][0];
6974 return 0;
6976 _ACEOF
6977 if ac_fn_c_try_link "$LINENO"; then :
6978 ac_cv_var_tzname=yes
6979 else
6980 ac_cv_var_tzname=no
6982 rm -f core conftest.err conftest.$ac_objext \
6983 conftest$ac_exeext conftest.$ac_ext
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6986 $as_echo "$ac_cv_var_tzname" >&6; }
6987 if test $ac_cv_var_tzname = yes; then
6989 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6994 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6995 if test "x$ac_cv_type_off_t" = xyes; then :
6997 else
6999 cat >>confdefs.h <<_ACEOF
7000 #define off_t long int
7001 _ACEOF
7005 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7006 if test "x$ac_cv_type_pid_t" = xyes; then :
7008 else
7010 cat >>confdefs.h <<_ACEOF
7011 #define pid_t int
7012 _ACEOF
7016 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7017 if test "x$ac_cv_type_size_t" = xyes; then :
7019 else
7021 cat >>confdefs.h <<_ACEOF
7022 #define size_t unsigned int
7023 _ACEOF
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7028 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7029 if ${ac_cv_type_uid_t+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034 #include <sys/types.h>
7036 _ACEOF
7037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7038 $EGREP "uid_t" >/dev/null 2>&1; then :
7039 ac_cv_type_uid_t=yes
7040 else
7041 ac_cv_type_uid_t=no
7043 rm -f conftest*
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7047 $as_echo "$ac_cv_type_uid_t" >&6; }
7048 if test $ac_cv_type_uid_t = no; then
7050 $as_echo "#define uid_t int" >>confdefs.h
7053 $as_echo "#define gid_t int" >>confdefs.h
7058 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7059 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7061 cat >>confdefs.h <<_ACEOF
7062 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7063 _ACEOF
7069 # Look for some functions
7070 for ac_func in getpagesize kqueue statfs statvfs \
7071 clone kse_create rfork_thread thr_create sa_register \
7072 getcontext makecontext setcontext sigaltstack swapcontext
7073 do :
7074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7075 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7076 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7077 cat >>confdefs.h <<_ACEOF
7078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7079 _ACEOF
7082 done
7088 for ac_header in $ac_header_list
7089 do :
7090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7091 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7093 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7094 cat >>confdefs.h <<_ACEOF
7095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7096 _ACEOF
7100 done
7109 for ac_func in getpagesize
7110 do :
7111 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7112 if test "x$ac_cv_func_getpagesize" = xyes; then :
7113 cat >>confdefs.h <<_ACEOF
7114 #define HAVE_GETPAGESIZE 1
7115 _ACEOF
7118 done
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7121 $as_echo_n "checking for working mmap... " >&6; }
7122 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 if test "$cross_compiling" = yes; then :
7126 ac_cv_func_mmap_fixed_mapped=no
7127 else
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7130 $ac_includes_default
7131 /* malloc might have been renamed as rpl_malloc. */
7132 #undef malloc
7134 /* Thanks to Mike Haertel and Jim Avera for this test.
7135 Here is a matrix of mmap possibilities:
7136 mmap private not fixed
7137 mmap private fixed at somewhere currently unmapped
7138 mmap private fixed at somewhere already mapped
7139 mmap shared not fixed
7140 mmap shared fixed at somewhere currently unmapped
7141 mmap shared fixed at somewhere already mapped
7142 For private mappings, we should verify that changes cannot be read()
7143 back from the file, nor mmap's back from the file at a different
7144 address. (There have been systems where private was not correctly
7145 implemented like the infamous i386 svr4.0, and systems where the
7146 VM page cache was not coherent with the file system buffer cache
7147 like early versions of FreeBSD and possibly contemporary NetBSD.)
7148 For shared mappings, we should conversely verify that changes get
7149 propagated back to all the places they're supposed to be.
7151 Grep wants private fixed already mapped.
7152 The main things grep needs to know about mmap are:
7153 * does it exist and is it safe to write into the mmap'd area
7154 * how to use it (BSD variants) */
7156 #include <fcntl.h>
7157 #include <sys/mman.h>
7159 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7160 char *malloc ();
7161 #endif
7163 /* This mess was copied from the GNU getpagesize.h. */
7164 #ifndef HAVE_GETPAGESIZE
7165 # ifdef _SC_PAGESIZE
7166 # define getpagesize() sysconf(_SC_PAGESIZE)
7167 # else /* no _SC_PAGESIZE */
7168 # ifdef HAVE_SYS_PARAM_H
7169 # include <sys/param.h>
7170 # ifdef EXEC_PAGESIZE
7171 # define getpagesize() EXEC_PAGESIZE
7172 # else /* no EXEC_PAGESIZE */
7173 # ifdef NBPG
7174 # define getpagesize() NBPG * CLSIZE
7175 # ifndef CLSIZE
7176 # define CLSIZE 1
7177 # endif /* no CLSIZE */
7178 # else /* no NBPG */
7179 # ifdef NBPC
7180 # define getpagesize() NBPC
7181 # else /* no NBPC */
7182 # ifdef PAGESIZE
7183 # define getpagesize() PAGESIZE
7184 # endif /* PAGESIZE */
7185 # endif /* no NBPC */
7186 # endif /* no NBPG */
7187 # endif /* no EXEC_PAGESIZE */
7188 # else /* no HAVE_SYS_PARAM_H */
7189 # define getpagesize() 8192 /* punt totally */
7190 # endif /* no HAVE_SYS_PARAM_H */
7191 # endif /* no _SC_PAGESIZE */
7193 #endif /* no HAVE_GETPAGESIZE */
7196 main ()
7198 char *data, *data2, *data3;
7199 const char *cdata2;
7200 int i, pagesize;
7201 int fd, fd2;
7203 pagesize = getpagesize ();
7205 /* First, make a file with some known garbage in it. */
7206 data = (char *) malloc (pagesize);
7207 if (!data)
7208 return 1;
7209 for (i = 0; i < pagesize; ++i)
7210 *(data + i) = rand ();
7211 umask (0);
7212 fd = creat ("conftest.mmap", 0600);
7213 if (fd < 0)
7214 return 2;
7215 if (write (fd, data, pagesize) != pagesize)
7216 return 3;
7217 close (fd);
7219 /* Next, check that the tail of a page is zero-filled. File must have
7220 non-zero length, otherwise we risk SIGBUS for entire page. */
7221 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7222 if (fd2 < 0)
7223 return 4;
7224 cdata2 = "";
7225 if (write (fd2, cdata2, 1) != 1)
7226 return 5;
7227 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7228 if (data2 == MAP_FAILED)
7229 return 6;
7230 for (i = 0; i < pagesize; ++i)
7231 if (*(data2 + i))
7232 return 7;
7233 close (fd2);
7234 if (munmap (data2, pagesize))
7235 return 8;
7237 /* Next, try to mmap the file at a fixed address which already has
7238 something else allocated at it. If we can, also make sure that
7239 we see the same garbage. */
7240 fd = open ("conftest.mmap", O_RDWR);
7241 if (fd < 0)
7242 return 9;
7243 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7244 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7245 return 10;
7246 for (i = 0; i < pagesize; ++i)
7247 if (*(data + i) != *(data2 + i))
7248 return 11;
7250 /* Finally, make sure that changes to the mapped area do not
7251 percolate back to the file as seen by read(). (This is a bug on
7252 some variants of i386 svr4.0.) */
7253 for (i = 0; i < pagesize; ++i)
7254 *(data2 + i) = *(data2 + i) + 1;
7255 data3 = (char *) malloc (pagesize);
7256 if (!data3)
7257 return 12;
7258 if (read (fd, data3, pagesize) != pagesize)
7259 return 13;
7260 for (i = 0; i < pagesize; ++i)
7261 if (*(data + i) != *(data3 + i))
7262 return 14;
7263 close (fd);
7264 return 0;
7266 _ACEOF
7267 if ac_fn_c_try_run "$LINENO"; then :
7268 ac_cv_func_mmap_fixed_mapped=yes
7269 else
7270 ac_cv_func_mmap_fixed_mapped=no
7272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7273 conftest.$ac_objext conftest.beam conftest.$ac_ext
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7278 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7279 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7281 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7284 rm -f conftest.mmap conftest.txt
7287 #-----------------------------------------------------------------------------
7290 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7291 # it switched on by default, and we use the host compiler, so it compiles AROS
7292 # code with this enabled resulting in link failures as we don't have support
7293 # for it.
7295 # We use two methods to disable it. For the host compiler (used to compile
7296 # some hosted modules), we test to see if the compiler supports stack
7297 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7298 # work on all platforms.
7300 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7301 # (this is done unconditionally, as it should have no effect on compilers
7302 # without the stack protection feature). This may be specific to the way that
7303 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7304 # strong enough to disable it in a generic way though, so we'll live with it
7305 # until another vendor ships GCC with it enabled in a different way, and deal
7306 # with it then.
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7310 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7311 save_cflags="$CFLAGS"
7312 CFLAGS="$CFLAGS -fno-stack-protector"
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7317 main ()
7321 return 0;
7323 _ACEOF
7324 if ac_fn_c_try_compile "$LINENO"; then :
7325 use_no_stack_protector="yes"
7326 else
7327 use_no_stack_protector="no"
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7331 $as_echo "$use_no_stack_protector" >&6; }
7332 if test "x-$use_no_stack_protector" = "x-yes" ; then
7333 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7335 CFLAGS="$save_cflags"
7337 #-----------------------------------------------------------------------------
7339 # Disable pointer-signedness warnings if the compiler recognises the option
7340 # (this only works for the host compiler at the moment)
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7343 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7344 save_cflags="$CFLAGS"
7345 CFLAGS="$CFLAGS -Wno-pointer-sign"
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7350 main ()
7354 return 0;
7356 _ACEOF
7357 if ac_fn_c_try_compile "$LINENO"; then :
7358 use_no_sign_warning="yes"
7359 else
7360 use_no_sign_warning="no"
7362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7364 $as_echo "$use_no_sign_warning" >&6; }
7365 if test "x-$use_no_sign_warning" = "x-yes" ; then
7366 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7368 CFLAGS="$save_cflags"
7370 #-----------------------------------------------------------------------------
7372 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7375 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7376 save_cflags="$CFLAGS"
7377 CFLAGS="$CFLAGS -fgnu89-inline"
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7382 main ()
7386 return 0;
7388 _ACEOF
7389 if ac_fn_c_try_compile "$LINENO"; then :
7390 use_gnu89_inline="yes"
7391 else
7392 use_gnu89_inline="no"
7394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7396 $as_echo "$use_gnu89_inline" >&6; }
7397 if test "x-$use_gnu89_inline" = "x-yes" ; then
7398 gnu89_inline="-fgnu89-inline"
7400 CFLAGS="$save_cflags"
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7403 $as_echo "$as_me: Performing target configuration..." >&6;}
7406 aros_nowarn_flags="NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7408 toolchain_needs_sysroot=no
7410 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7411 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7412 aros_config_ldflags=""
7414 aros_shared_default=yes
7416 aros_shared_cflags="-fPIC"
7417 aros_shared_aflags=""
7418 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7419 aros_kernel_ldflags="-Wl,-rpath,./lib"
7421 aros_kernel_ar_flags="cr"
7422 aros_target_ar_flags="cr"
7423 aros_target_nm_flags="-C -ul"
7424 aros_target_strip_flags="--strip-unneeded -R.comment"
7426 aros_compiler_libs=
7427 aros_arch_libs=
7429 aros_target_genmap="-Wl,-Map -Xlinker"
7431 # Native flavour stuff
7432 aros_serial_debug="0"
7434 # Palm native flavour stuff
7435 aros_palm_debug_hack="0"
7437 # Unix flavour stuff
7438 aros_nesting_supervisor="0"
7440 # Collect-aros stuff: "-ius" to ignore undefined symbols
7441 ignore_undefined_symbols=""
7443 # Check for X11 by default
7444 need_x11="auto"
7446 host_x_gfx=no
7447 host_sdl_gfx=no
7448 host_android_gfx=no
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7452 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7454 # Check whether --with-toolchain was given.
7455 if test "${with_toolchain+set}" = set; then :
7456 withval=$with_toolchain; aros_toolchain="$withval"
7457 else
7458 aros_toolchain="gnu"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7462 $as_echo "$aros_toolchain" >&6; }
7464 case "$aros_toolchain" in
7465 *llvm*)
7466 # toolchain_needs_sysroot=yes
7467 toolchain_c_compiler="clang"
7468 toolchain_cxx_compiler="clang++"
7469 toolchain_cpp_preprocessor="clang -E"
7470 toolchain_ld="lld"
7471 toolchain_as="llvm-as"
7472 toolchain_ar="llvm-ar"
7473 toolchain_ranlib="llvm-ranlib"
7474 toolchain_nm="llvm-nm"
7475 toolchain_strip="true"
7476 toolchain_objcopy="llvm-objcopy"
7477 toolchain_objdump="llvm-objdump"
7479 *gnu*)
7480 toolchain_c_compiler="gcc"
7481 toolchain_cxx_compiler="g++"
7482 toolchain_cpp_preprocessor="cpp"
7483 toolchain_ld="ld"
7484 toolchain_as="as"
7485 toolchain_ar="ar"
7486 toolchain_ranlib="ranlib"
7487 toolchain_nm="nm"
7488 toolchain_strip="strip"
7489 toolchain_objcopy="objcopy"
7490 toolchain_objdump="objdump"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7494 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7495 toolchain_c_compiler="cc"
7496 toolchain_cxx_compiler="c++"
7497 toolchain_cpp_preprocessor="cpp"
7498 toolchain_ld="ld"
7499 toolchain_as="as"
7500 toolchain_ar="ar"
7501 toolchain_ranlib="ranlib"
7502 toolchain_nm="nm"
7503 toolchain_strip="strip"
7504 toolchain_objcopy="objcopy"
7505 toolchain_objdump="objdump"
7507 esac
7509 #-----------------------------------------------------------------------------
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7512 $as_echo_n "checking which type of build to do... " >&6; }
7513 # Check whether --enable-build_type was given.
7514 if test "${enable_build_type+set}" = set; then :
7515 enableval=$enable_build_type; build_type=$enableval
7516 else
7517 build_type="personal"
7521 if test "$build_type" = "nightly"; then
7522 build_type_string="NIGHTLY"
7523 elif test "$build_type" = "snapshot"; then
7524 build_type_string="SNAPSHOT"
7525 elif test "$build_type" = "milestone"; then
7526 build_type_string="MILESTONE"
7527 elif test "$build_type" = "release"; then
7528 build_type_string="RELEASE"
7529 else
7530 build_type_string="PERSONAL"
7531 build_type="personal"
7534 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7537 $as_echo "$build_type" >&6; }
7539 #-----------------------------------------------------------------------------
7540 all_debug_types="messages stack modules mungwall symbols"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7543 $as_echo_n "checking which debug types to enable... " >&6; }
7544 # Check whether --enable-debug was given.
7545 if test "${enable_debug+set}" = set; then :
7546 enableval=$enable_debug; debug="$enableval"
7547 else
7548 debug=""
7552 if test "$debug" = "" -o "$debug" = "no"; then
7553 debug="none"
7554 elif test "$debug" = "yes"; then
7555 debug="all"
7558 if test "$debug" = "all" ; then
7559 debug="messages stack modules symbols"
7560 for d in $all_debug_types; do
7561 export aros_${d}_debug="1"
7562 done
7563 else
7564 for d in $all_debug_types; do
7565 export aros_${d}_debug="0"
7566 done
7569 if test "$debug" != "none"; then
7570 debug=`echo $debug | sed s/,/\ /g`
7571 for d in $debug; do
7572 found="0"
7573 for d2 in $all_debug_types; do
7574 if test "$d2" = "$d"; then
7575 found="1"
7576 break
7578 done
7579 if test "$found" = "0"; then
7580 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7582 export aros_${d}_debug="1"
7583 done
7584 aros_debug="yes"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7587 $as_echo "$debug" >&6; }
7589 if test "$aros_messages_debug" = "1"; then
7590 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7591 else
7592 aros_messages_debug=""
7594 if test "$aros_symbols_debug" = "1"; then
7595 aros_symbols_debug="-g"
7596 else
7597 aros_symbols_debug=""
7600 # These are the flags to pass when compiling debugged programs
7601 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7602 aros_debug_aflags=""
7603 aros_debug_ldflags="$aros_symbols_debug"
7605 #-----------------------------------------------------------------------------
7606 # Checking for distcc and ccache.
7608 # Always apply the transforms in this particular order. Basically you should
7609 # always run 'ccache distcc compiler' in that order for the best performance.
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7612 $as_echo_n "checking whether to enable distcc... " >&6; }
7613 # Check whether --enable-distcc was given.
7614 if test "${enable_distcc+set}" = set; then :
7615 enableval=$enable_distcc; distcc="$enableval"
7616 else
7617 distcc="no"
7620 if test "$distcc" != "" -a "$distcc" != "no"; then
7621 # AC_CHECK_PROG will print out the result in this case
7622 # Extract the first word of "distcc", so it can be a program name with args.
7623 set dummy distcc; ac_word=$2
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625 $as_echo_n "checking for $ac_word... " >&6; }
7626 if ${ac_cv_path_DISTCC+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 case $DISTCC in
7630 [\\/]* | ?:[\\/]*)
7631 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7637 IFS=$as_save_IFS
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 break 2
7645 done
7646 done
7647 IFS=$as_save_IFS
7649 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7651 esac
7653 DISTCC=$ac_cv_path_DISTCC
7654 if test -n "$DISTCC"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7656 $as_echo "$DISTCC" >&6; }
7657 else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7663 else
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7669 $as_echo_n "checking whether to enable ccache... " >&6; }
7670 # Check whether --enable-ccache was given.
7671 if test "${enable_ccache+set}" = set; then :
7672 enableval=$enable_ccache; ccache="$enableval"
7673 else
7674 ccache="no"
7677 if test "$ccache" != "" -a "$ccache" != "no"; then
7678 # AC_CHECK_PROG will print out the result in this case
7679 # Extract the first word of "ccache", so it can be a program name with args.
7680 set dummy ccache; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_CCACHE+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 if test -n "$CCACHE"; then
7687 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_CCACHE="ccache"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7700 done
7701 done
7702 IFS=$as_save_IFS
7706 CCACHE=$ac_cv_prog_CCACHE
7707 if test -n "$CCACHE"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7709 $as_echo "$CCACHE" >&6; }
7710 else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7716 else
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7721 #-----------------------------------------------------------------------------
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7723 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7725 # Check whether --with-kernel-gcc-version was given.
7726 if test "${with_kernel_gcc_version+set}" = set; then :
7727 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7728 else
7729 kernel_tool_version=""
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7733 $as_echo "$kernel_tool_version" >&6; }
7735 #-----------------------------------------------------------------------------
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7737 $as_echo_n "checking what optimization flags to use... " >&6; }
7739 # Check whether --with-optimization was given.
7740 if test "${with_optimization+set}" = set; then :
7741 withval=$with_optimization; optimization="$withval"
7742 else
7743 optimization="unknown"
7746 if test "$optimization" = "unknown"; then
7747 if test "$debug" != "none"; then
7748 optimization="-O0"
7749 else
7750 optimization="-O2"
7753 aros_optimization_cflags="$optimization"
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7755 $as_echo "$optimization" >&6; }
7757 #-----------------------------------------------------------------------------
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7759 $as_echo_n "checking which paranoia flags to use... " >&6; }
7761 # Check whether --with-paranoia was given.
7762 if test "${with_paranoia+set}" = set; then :
7763 withval=$with_paranoia; paranoia_flags="$withval"
7764 else
7765 paranoia_flags="default"
7768 if test "$paranoia_flags" = "default"; then
7769 paranoia_flags=""
7770 msg_result="none"
7771 else if test "$paranoia_flags" = "yes"; then
7772 paranoia_flags="-Wall -Werror"
7773 msg_result="$paranoia_flags"
7774 fi fi
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7776 $as_echo "$msg_result" >&6; }
7777 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7779 #-----------------------------------------------------------------------------
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7781 $as_echo_n "checking what target variant to enable... " >&6; }
7782 # Check whether --enable-target_variant was given.
7783 if test "${enable_target_variant+set}" = set; then :
7784 enableval=$enable_target_variant; target_variant=$enableval
7785 else
7786 target_variant=""
7789 if test "$target_variant" = ""; then
7790 aros_target_variant=""
7791 aros_target_suffix=""
7792 enableval="none"
7793 else
7794 aros_target_variant="$target_variant"
7795 aros_target_suffix="-$target_variant"
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7798 $as_echo "$enableval" >&6; }
7800 #-----------------------------------------------------------------------------
7801 # Target-specific defaults. You can override then on a per-target basis.
7803 # Bootloader name. Currently used by PC target.
7804 target_bootloader="none"
7805 ENABLE_EXECSMP=
7807 #-----------------------------------------------------------------------------
7808 # Additional options for some specific targets
7810 case "$aros_target_variant" in
7811 ios)
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7813 $as_echo_n "checking XCode path... " >&6; }
7815 # Check whether --with-xcode was given.
7816 if test "${with_xcode+set}" = set; then :
7817 withval=$with_xcode; aros_xcode_path="$withval"
7818 else
7819 aros_xcode_path="/Developer"
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7823 $as_echo "$aros_xcode_path" >&6; }
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7826 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7828 # Check whether --with-sdk-version was given.
7829 if test "${with_sdk_version+set}" = set; then :
7830 withval=$with_sdk_version; aros_sdk_version="$withval"
7831 else
7832 aros_sdk_version="4.1"
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7836 $as_echo "$aros_sdk_version" >&6; }
7840 "android")
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7842 $as_echo_n "checking Android SDK path... " >&6; }
7844 # Check whether --with-sdk was given.
7845 if test "${with_sdk+set}" = set; then :
7846 withval=$with_sdk; aros_android_sdk="$withval"
7847 else
7848 aros_android_sdk=$default_android_sdk
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7852 $as_echo "$aros_android_sdk" >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7855 $as_echo_n "checking Android NDK path... " >&6; }
7857 # Check whether --with-ndk was given.
7858 if test "${with_ndk+set}" = set; then :
7859 withval=$with_ndk; aros_android_ndk="$withval"
7860 else
7861 aros_android_ndk="none"
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7865 $as_echo "$aros_android_ndk" >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7868 $as_echo_n "checking what Android SDK version to use... " >&6; }
7870 # Check whether --with-sdk-version was given.
7871 if test "${with_sdk_version+set}" = set; then :
7872 withval=$with_sdk_version; aros_sdk_version="$withval"
7873 else
7874 aros_sdk_version="12"
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7878 $as_echo "$aros_sdk_version" >&6; }
7880 aros_android_level=android-$aros_sdk_version
7881 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7882 echo "Platform $aros_android_level is not installed in your SDK"
7883 echo "Use --with-sdk-version=<API level number> to select another platform version"
7884 echo "You can check what plaform versions are installed in your SDK"
7885 echo "by examining contents of $aros_android_sdk/platforms directory"
7886 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7889 export PATH="$aros_android_sdk/tools:$PATH"
7890 # Extract the first word of "$android_tool", so it can be a program name with args.
7891 set dummy $android_tool; ac_word=$2
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893 $as_echo_n "checking for $ac_word... " >&6; }
7894 if ${ac_cv_path_android_tool+:} false; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 case $android_tool in
7898 [\\/]* | ?:[\\/]*)
7899 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7913 done
7914 done
7915 IFS=$as_save_IFS
7918 esac
7920 android_tool=$ac_cv_path_android_tool
7921 if test -n "$android_tool"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7923 $as_echo "$android_tool" >&6; }
7924 else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7930 req_avail=yes
7931 if test "$android_tool" = ""; then
7932 req_avail=no
7934 if test "$android_tool" = "no"; then
7935 req_avail=no
7937 if test "$req_avail" = "no"; then
7938 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7941 if test "$aros_android_ndk" != "none"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7943 $as_echo_n "checking what Android NDK version to use... " >&6; }
7945 # Check whether --with-ndk-version was given.
7946 if test "${with_ndk_version+set}" = set; then :
7947 withval=$with_ndk_version; aros_ndk_version="$withval"
7948 else
7949 aros_ndk_version="9"
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7953 $as_echo "$aros_ndk_version" >&6; }
7956 # Extract the first word of "ant", so it can be a program name with args.
7957 set dummy ant; ac_word=$2
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if ${ac_cv_path_ant+:} false; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 case $ant in
7964 [\\/]* | ?:[\\/]*)
7965 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7979 done
7980 done
7981 IFS=$as_save_IFS
7984 esac
7986 ant=$ac_cv_path_ant
7987 if test -n "$ant"; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7989 $as_echo "$ant" >&6; }
7990 else
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7996 if test "$ant" = ""; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7998 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8002 $as_echo_n "checking Build debug or release apk... " >&6; }
8004 # Check whether --with-apk-version was given.
8005 if test "${with_apk_version+set}" = set; then :
8006 withval=$with_apk_version; aros_android_antapk=$withval
8007 else
8008 aros_android_antapk=release
8011 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8012 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8015 $as_echo "$aros_android_antapk" >&6; }
8017 if test "$host_os" = "mingw32"; then
8018 android_tool="cmd //c $android_tool"
8021 need_dlopen="no"
8024 esac
8026 #-----------------------------------------------------------------------------
8027 # External toolchains
8028 kernel_tool_prefix="none"
8029 aros_tool_prefix="none"
8030 elf_tool_prefix="${target_cpu}-elf-"
8032 # This is the target configuration switch.
8033 case "$target_os" in
8034 linux*)
8035 aros_target_arch="linux"
8036 aros_target_family="unix"
8037 case "$target_cpu" in
8038 *m68k*)
8039 aros_target_cpu="m68k"
8040 aros_object_format="m68kelf"
8041 aros_flavour="emulcompat"
8042 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8043 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8044 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8045 gcc_target_cpu="mc68000"
8047 *i?86*)
8048 aros_target_cpu="i386"
8049 aros_object_format="elf_i386"
8050 aros_flavour="emulation"
8051 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8052 aros_kernel_ldflags="-Wl,-melf_i386"
8053 aros_nominal_depth=8
8054 gcc_target_cpu="i386"
8055 pci_hidd_target="hidd-pci-linux"
8056 android_tool_dir_prefix="x86"
8057 android_tool_prefix="i686-android-linux"
8058 android_ndk_arch="x86"
8060 *x86_64*)
8061 aros_target_cpu="x86_64"
8062 aros_object_format="elf_x86_64"
8063 aros_flavour="emulation"
8064 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8065 aros_config_cflags="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
8066 aros_nominal_depth=8
8067 pci_hidd_target="hidd-pci-linux"
8069 *powerpc*)
8070 aros_target_cpu="ppc"
8071 aros_object_format="elf32ppc"
8072 aros_flavour="emulation"
8073 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8074 aros_nominal_depth=8
8075 gcc_target_cpu="ppc"
8077 # TODO
8078 # Same as powerpc, but I need this for the nightly build to work again.
8079 # Actually, the nightly should be made working with powerpc target.
8080 # That just was too much work for the moment, another week or two.
8081 *ppc*)
8082 aros_target_cpu="ppc"
8083 aros_object_format="elf32ppc"
8084 aros_flavour="emulation"
8085 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8086 aros_nominal_depth=8
8087 gcc_target_cpu="ppc"
8089 *aarch64*)
8090 aros_target_cpu="aarch64"
8091 target_cpu="aarch64"
8092 aros_object_format="aarch64elf_aros"
8093 aros_flavour="emulation"
8094 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8095 gcc_target_cpu="aarch64"
8096 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8097 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8098 aros_arch_libs="-laeabi"
8099 gcc_default_float_abi="hard"
8100 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8102 *armhf*)
8103 aros_target_cpu="arm"
8104 target_cpu="arm"
8105 aros_object_format="armelf_aros"
8106 aros_flavour="emulation"
8107 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8108 gcc_target_cpu="arm"
8109 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8110 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8111 aros_arch_libs="-laeabi"
8112 gcc_default_float_abi="hard"
8113 android_tool_dir_prefix="arm-linux-androideabi"
8114 android_tool_prefix="arm-linux-androideabi"
8115 android_ndk_arch="arm"
8116 kernel_tool_prefix="arm-linux-gnueabihf-"
8118 *arm*)
8119 aros_target_cpu="arm"
8120 aros_object_format="armelf_aros"
8121 aros_flavour="emulation"
8122 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8123 gcc_target_cpu="arm"
8124 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8125 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8126 aros_arch_libs="-laeabi"
8127 android_tool_dir_prefix="arm-linux-androideabi"
8128 android_tool_prefix="arm-linux-androideabi"
8129 android_ndk_arch="arm"
8130 kernel_tool_prefix="arm-linux-gnueabi-"
8133 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8135 esac
8136 case "$aros_target_variant" in
8137 android)
8139 if test "$android_ndk_arch" = ""; then
8140 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8143 aros_nominal_width=320
8144 aros_nominal_height=480
8145 if test "$aros_android_ndk" = "none"; then
8146 aros_kernel_cflags="-mandroid"
8147 aros_kernel_ldflags="-mandroid"
8148 CFLAGS="-mandroid"
8149 else
8150 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8151 kernel_tool_version=""
8152 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8153 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8154 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8155 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8156 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8158 need_x11=no
8159 host_android_gfx=yes
8160 # Disable implicit PIC mode
8161 aros_target_cflags="$aros_target_cflags -fno-pic"
8162 kernel_tool_prefix="$android_tool_prefix-"
8164 esac
8168 aros_target_arch="pc"
8169 aros_shared_default="no"
8170 target_bootloader="grub2"
8171 case "$target_cpu" in
8172 *i?86*)
8173 aros_target_cpu="i386"
8176 if test "$aros_object_format" = "" ; then
8177 aros_object_format="elf_i386"
8179 aros_flavour="standalone"
8180 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8181 aros_kernel_ldflags="-Wl,-melf_i386"
8182 aros_nominal_width=640
8183 aros_nominal_height=480
8184 gcc_target_cpu="i386"
8186 *x86_64*)
8187 aros_target_cpu="x86_64"
8188 aros_serial_debug=1
8189 if test "$aros_object_format" = "" ; then
8190 aros_object_format="elf_x86_64"
8192 aros_flavour="standalone"
8193 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8194 aros_config_cflags="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8195 aros_kernel_ldflags=""
8196 aros_nominal_width=640
8197 aros_nominal_height=480
8198 case "$aros_target_variant" in
8199 smp)
8200 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8202 esac
8205 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8207 esac
8210 prep)
8211 aros_target_arch="prep"
8212 aros_shared_default="no"
8213 aros_target_cpu="ppc"
8214 aros_object_format="elf32ppc"
8215 aros_flavour="ppcnative"
8216 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8217 aros_kernel_ldflags=""
8218 aros_nominal_width=640
8219 aros_nominal_height=480
8220 gcc_target_cpu="ppc"
8223 freebsd*)
8224 aros_target_arch="freebsd"
8225 aros_target_family="unix"
8226 aros_target_cpu="i386"
8227 aros_flavour="emulation"
8228 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8229 gcc_target_cpu="i386"
8231 aros_target_strip_flags="-x"
8234 darwin*)
8235 aros_target_arch="darwin"
8236 aros_target_family="unix"
8237 aros_flavour="emulation"
8238 case "$target_cpu" in
8239 *i?86*)
8240 aros_ios_platform="iPhoneSimulator"
8241 aros_target_cpu="i386"
8242 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8243 aros_kernel_ldflags=""
8244 aros_macosx_version="10.4"
8245 aros_nominal_depth=8
8246 gcc_target_cpu="i386"
8247 aros_object_format="elf_i386"
8248 aros_kernel_ar_flags="-cr"
8249 aros_target_strip_flags="-x"
8250 kernel_tool_flags="-m32"
8252 *x86_64*)
8253 aros_target_cpu="x86_64"
8254 aros_object_format="elf_x86_64"
8255 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8256 aros_macosx_version="10.6"
8257 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8258 aros_kernel_cflags="-m64"
8259 aros_kernel_ldflags="-m64"
8260 aros_target_cflags="-mcmodel=large"
8261 aros_nominal_depth=8
8262 aros_kernel_ar="ar"
8263 aros_kernel_ar_flags="-cr"
8264 aros_kernel_ld="ld"
8265 aros_kernel_as="as"
8266 aros_kernel_ranlib="ranlib"
8267 aros_kernel_nm="nm"
8268 aros_kernel_strip="strip"
8269 kernel_tool_prefix="i686-apple-darwin10-"
8271 *ppc*)
8272 aros_target_cpu="ppc"
8273 aros_object_format="elf32ppc"
8274 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8275 aros_kernel_ldflags=""
8276 aros_macosx_version="10.0"
8277 aros_nominal_depth=8
8278 gcc_target_cpu="ppc"
8279 aros_kernel_ar="ar"
8280 aros_kernel_ar_flags="-cr"
8281 aros_kernel_ld="ld -arch ppc"
8282 aros_kernel_as="as -arch ppc"
8283 aros_kernel_ranlib="ranlib -arch ppc"
8284 aros_kernel_nm="nm -arch ppc"
8285 aros_kernel_strip="strip -arch ppc"
8286 kernel_tool_prefix="powerpc-apple-darwin10-"
8288 *arm*)
8289 aros_ios_platform="iPhoneOS"
8290 aros_target_cpu="arm"
8291 aros_object_format="armelf_aros"
8292 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8293 aros_arch_libs="-laeabi"
8294 aros_nominal_depth=8
8295 gcc_target_cpu="arm"
8296 aros_kernel_ar="ar"
8297 aros_kernel_ar_flags="-cr"
8298 aros_kernel_ld="ld -arch arm"
8299 aros_kernel_ranlib="ranlib -arch arm"
8300 kernel_tool_prefix="arm-apple-darwin10-"
8301 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8304 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8306 esac
8307 case "$aros_target_variant" in
8308 ios)
8309 aros_ios_version="3.0"
8310 aros_nominal_width=320
8311 aros_nominal_height=480
8312 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8313 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8314 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8315 need_x11=no
8316 # This is here because it may depend on iOS or SDK version
8317 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8318 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8319 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8322 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8323 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8325 esac
8328 dragonfly*)
8329 aros_target_arch="dragonfly"
8330 aros_target_family="unix"
8331 aros_flavour="emulation"
8332 case "$target_cpu" in
8333 *i?86*)
8334 aros_target_cpu="i386"
8335 aros_object_format="elf_i386"
8336 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8338 *x86_64*)
8339 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8340 aros_target_cpu="x86_64"
8341 aros_object_format="elf_x86_64"
8342 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8345 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8347 esac
8350 netbsd*)
8351 aros_target_arch="netbsd"
8352 aros_target_family="unix"
8353 case "$target_cpu" in
8354 *m68k*)
8355 aros_target_cpu="m68k"
8356 aros_object_format="m68kelf"
8357 aros_flavour="emulcompat"
8358 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8359 gcc_target_cpu="mc68000"
8361 *i?86*)
8362 aros_target_cpu="i386"
8363 aros_object_format="elf_i386"
8364 aros_flavour="emulation"
8365 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8366 aros_nominal_depth=8
8367 gcc_target_cpu="i386"
8370 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8372 esac
8373 aros_target_genmap="-Wl,-M -Xlinker >"
8374 aros_flavour="emulation"
8375 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8378 openbsd*)
8379 aros_target_arch="openbsd"
8380 aros_target_family="unix"
8381 case "$target_cpu" in
8382 *i?86*)
8383 aros_target_cpu="i386"
8384 aros_object_format="elf_i386"
8385 aros_flavour="emulation"
8386 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8387 gcc_target_cpu="i386"
8390 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8392 esac
8393 aros_target_genmap="-Wl,-M -Xlinker >"
8394 aros_target_nm_flags="-u"
8395 aros_flavour="emulation"
8398 solaris*)
8399 aros_target_arch="solaris"
8400 aros_target_family="unix"
8401 case "$target_cpu" in
8402 *i?86*)
8403 aros_target_cpu="i386"
8404 aros_object_format="elf_i386"
8405 aros_flavour="emulation"
8406 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8407 aros_nominal_depth=8
8408 gcc_target_cpu="i386"
8410 *sparc*)
8411 aros_target_cpu="sparc"
8412 aros_object_format="elf_sparc"
8413 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8414 gcc_target_cpu="sparc"
8417 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8419 esac
8420 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8421 aros_flavour="emulation"
8424 morphos*)
8425 aros_target_arch="morphos"
8426 aros_shared_default="no"
8427 aros_target_cpu="ppc"
8428 aros_object_format="elf_ppc"
8429 aros_flavour="nativecompat"
8430 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8431 gcc_target_cpu="ppc"
8434 sam440)
8435 aros_target_arch="sam440"
8436 aros_shared_default="no"
8437 aros_target_cpu="ppc"
8438 aros_object_format="elf32ppc"
8439 aros_flavour="ppcnative"
8440 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8441 aros_kernel_ldflags=""
8442 aros_nominal_width=1024
8443 aros_nominal_height=768
8444 aros_nominal_depth=24
8445 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8446 gcc_target_cpu="powerpc"
8449 efika)
8450 aros_target_arch="efika"
8451 aros_shared_default="no"
8452 aros_target_cpu="arm"
8453 aros_object_format="armelf_aros"
8454 aros_flavour="standalone"
8455 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8456 aros_kernel_ldflags=""
8457 aros_nominal_width=1024
8458 aros_nominal_height=600
8459 aros_arch_libs="-laeabi"
8460 gcc_default_cpu="armv7-a"
8461 gcc_default_fpu="vfpv3"
8462 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8463 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8464 aros_optimization_cflags="$aros_optimization_cflags -Os"
8465 case "$target_cpu" in
8466 *armhf*)
8467 gcc_default_float_abi="hard"
8468 target_cpu=arm
8469 aros_target_cpu=arm
8471 *arm*)
8472 gcc_default_float_abi="softfp"
8475 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8477 esac
8480 chrp)
8481 aros_target_arch="chrp"
8482 aros_shared_default="no"
8483 aros_target_cpu="ppc"
8484 aros_object_format="elf32ppc"
8485 aros_flavour="ppcnative"
8486 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8487 aros_kernel_ldflags=""
8488 aros_nominal_width=640
8489 aros_nominal_height=480
8490 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8491 gcc_target_cpu="powerpc"
8492 case "$aros_target_variant" in
8493 efika)
8494 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8496 esac
8499 r*pi)
8500 aros_flavour="standalone"
8501 aros_target_arch="raspi"
8503 aros_shared_default="no"
8504 aros_arch_libs="-laeabi"
8506 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8507 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8508 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8509 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8510 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8511 case "$target_cpu" in
8512 *aarch64*)
8513 aros_target_cpu="aarch64"
8514 gcc_default_cpu="aarch64"
8515 aros_object_format="aarch64elf_aros"
8517 *armhf*)
8518 aros_target_cpu="arm"
8519 gcc_default_cpu="armv6zk"
8520 gcc_default_cpu_tune="arm1176jzf-s"
8521 aros_object_format="armelf_aros"
8523 *arm*)
8524 aros_target_cpu="arm"
8525 gcc_default_cpu="armv6zk"
8526 gcc_default_cpu_tune="arm1176jzf-s"
8527 aros_object_format="armelf_aros"
8530 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8532 esac
8534 case "$aros_target_variant" in
8535 smp)
8536 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8538 esac
8541 stm32f7_discovery)
8542 aros_flavour="standalone"
8543 aros_target_arch="stm32f7_discovery"
8544 aros_target_cpu="arm"
8545 aros_target_cpu_mode="thumb2"
8546 aros_object_format="armelf_aros"
8547 aros_shared_default="no"
8549 # stm32f7 has DSP opcode support
8550 gcc_default_cpu="armv7e-m"
8551 # gcc_default_cpu="armv7-m"
8552 gcc_default_cpu_tune="cortex-m7"
8553 gcc_default_fpu="fpv4-sp-d16"
8554 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8555 # gcc_default_fpu="fpv5-sp-d16"
8556 gcc_default_float_abi="hard"
8558 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8561 amiga*)
8562 aros_target_arch="amiga"
8563 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8564 aros_shared_default="no"
8566 case "$target_cpu" in
8567 *m68k*)
8568 # Check whether --enable-amigaos_compliance was given.
8569 if test "${enable_amigaos_compliance+set}" = set; then :
8570 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8573 aros_enable_mmu=no
8574 aros_target_cpu="m68k"
8575 aros_object_format="m68kelf"
8576 aros_flavour="standcompat"
8577 gcc_target_cpu="m68000"
8578 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8579 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -DNOLIBINLINE"
8580 aros_optimization_cflags="$aros_optimization_cflags -Os"
8581 aros_config_aflags="$aros_config_aflags"
8582 aros_target_strip_flags="-R.comment --strip-debug"
8583 aros_nominal_width=640
8584 aros_nominal_height=256
8585 aros_nominal_depth=2
8587 *ppc*)
8588 aros_cpu="ppc"
8589 aros_flavour="native"
8590 gcc_target_cpu="ppc"
8593 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8595 esac
8598 mingw*)
8599 aros_target_arch="mingw32"
8600 aros_shared_default="no"
8601 aros_flavour="emulation"
8602 aros_shared_cflags=""
8603 need_crosstools="yes"
8604 need_dlopen="no"
8605 rescomp="windres"
8606 case "$target_cpu" in
8607 *i?86*)
8608 aros_target_cpu="i386"
8609 aros_object_format="elf_i386"
8610 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8611 aros_nominal_depth=8
8612 gcc_target_cpu="i386"
8614 kernel_tool_prefix="i386-mingw32-"
8616 *x86_64*)
8617 aros_target_cpu="x86_64"
8618 aros_object_format="elf_x86_64"
8619 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8620 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8621 aros_nominal_depth=8
8622 kernel_tool_prefix="x86_64-w64-mingw32-"
8624 *arm*)
8625 aros_target_cpu="arm"
8626 aros_object_format="armelf_aros"
8627 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8628 aros_arch_libs="-laeabi"
8629 aros_nominal_depth=8
8630 gcc_target_cpu="arm"
8631 gcc_default_float_abi="soft"
8632 kernel_tool_prefix="arm-mingw32ce-"
8633 aros_nominal_width=160
8634 aros_nominal_height=160
8637 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8639 esac
8640 if test $host_os = "cygwin"; then
8641 aros_kernel_cflags="-mno-cygwin"
8644 pp*)
8645 aros_target_arch="pp"
8646 aros_shared_default="no"
8647 case "$target_cpu" in
8648 *m68k*)
8649 aros_target_cpu="m68k"
8650 aros_object_format="m68kelf"
8651 aros_flavour="palmnative"
8652 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8653 aros_nominal_width=160
8654 aros_nominal_height=160
8655 aros_nominal_depth=1
8656 aros_target_ar_flags="cru"
8657 aros_compiler_libs="-lgcc1"
8658 aros_shared_default=no
8659 aros_shared_cflags="-fpic"
8660 aros_shared_aflags=""
8661 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8662 aros_kernel_ldflags="-Wl,-rpath,./lib"
8663 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8664 aros_debug_aflags=""
8665 aros_debug_ldflags="$aros_symbols_debug"
8666 aros_mungwall_debug="0"
8667 aros_modules_debug="0"
8668 gcc_target_cpu="mc68000"
8669 ignore_undefined_symbols="-ius"
8672 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8674 esac
8677 mac*)
8678 aros_target_arch="mac"
8679 aros_shared_default="no"
8680 case "$target_cpu" in
8681 *m68k*)
8682 aros_target_cpu="m68k"
8683 aros_object_format="m68kelf"
8684 aros_flavour="mac68knative"
8685 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8686 aros_nominal_width=512
8687 aros_nominal_height=384
8688 aros_nominal_depth=8
8689 aros_target_ar_flags="cru"
8690 aros_compiler_libs="-lgcc1"
8691 aros_shared_default=no
8692 aros_shared_cflags="-fpic"
8693 aros_shared_aflags=""
8694 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8695 aros_kernel_ldflags="-Wl,-rpath,./lib"
8696 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8697 aros_debug_aflags=""
8698 aros_debug_ldflags="$aros_symbols_debug"
8699 aros_mungwall_debug="0"
8700 aros_modules_debug="0"
8701 gcc_target_cpu="mc68000"
8702 ignore_undefined_symbols="-ius"
8705 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8707 esac
8711 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8713 esac
8715 #-----------------------------------------------------------------------------
8716 crosstools_guess="yes"
8717 aros_target_toolchain="no"
8718 aros_config_sysroot=""
8719 aros_kernel_sysroot=""
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8722 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8724 # Check whether --with-kernel-toolchain-prefix was given.
8725 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8726 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8730 $as_echo "$kernel_tool_prefix" >&6; }
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8733 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8735 # Check whether --with-elf-toolchain-prefix was given.
8736 if test "${with_elf_toolchain_prefix+set}" = set; then :
8737 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8738 crosstools_guess="no"
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8742 $as_echo "$elf_tool_prefix" >&6; }
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8745 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8747 # Check whether --with-aros-toolchain was given.
8748 if test "${with_aros_toolchain+set}" = set; then :
8749 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8750 crosstools_guess="no"
8753 if test "$aros_tool_prefix" = "yes" ; then
8754 aros_tool_prefix=$aros_target_cpu-aros-
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8757 $as_echo "$aros_tool_prefix" >&6; }
8759 #-----------------------------------------------------------------------------
8760 # Checking if we should build crosstools..
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8762 $as_echo_n "checking whether to build crosstools... " >&6; }
8763 # Check whether --enable-crosstools was given.
8764 if test "${enable_crosstools+set}" = set; then :
8765 enableval=$enable_crosstools; crosstools="$enableval"
8766 else
8767 crosstools="$crosstools_guess"
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8771 $as_echo "$crosstools" >&6; }
8773 if test "${crosstools}" = "yes"; then
8774 if test "${crosstools_guess}" = "no"; then
8775 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8779 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8780 aros_target_toolchain="yes"
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8784 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8786 # Check whether --with-aros-toolchain-install was given.
8787 if test "${with_aros_toolchain_install+set}" = set; then :
8788 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8791 if test "x$aros_toolchain_install" = "x"; then
8792 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8793 else
8794 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8795 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8796 if test "$crosstools_guess" = "no" ; then
8797 toolchain_needs_sysroot=yes
8799 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8800 aros_kernel_sysroot = $aros_config_sysroot
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8805 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8808 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8809 if test "$toolchain_needs_sysroot" = "yes" ; then
8810 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8813 $as_echo "$toolchain_needs_sysroot" >&6; }
8815 #-----------------------------------------------------------------------------
8816 if test "$aros_toolchain" = "gnu" ; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8818 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8821 # Check whether --with-binutils-version was given.
8822 if test "${with_binutils_version+set}" = set; then :
8823 withval=$with_binutils_version; use_binutils_version="$withval"
8824 else
8825 use_binutils_version=""
8828 if test "$use_binutils_version" = ""; then
8829 target_binutils_version="$default_binutils_version"
8830 else
8831 target_binutils_version="$use_binutils_version"
8833 if test "$aros_toolchain" = "gnu" ; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8835 $as_echo "$target_binutils_version" >&6; }
8839 # Helper to identify gcc version
8842 #-----------------------------------------------------------------------------
8843 if test "$aros_toolchain" = "gnu" ; then
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8845 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8848 # Check whether --with-gcc-version was given.
8849 if test "${with_gcc_version+set}" = set; then :
8850 withval=$with_gcc_version; use_gcc_version="$withval"
8851 else
8852 use_gcc_version=""
8855 if test "$use_gcc_version" = ""; then
8856 if test "${crosstools}" = "no"; then
8857 if test "x$aros_toolchain_install" != "x"; then
8859 target_gcc_version=""
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8861 $as_echo_n "checking gcc version... " >&6; }
8862 if ${ax_cv_gcc_version+:} false; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8866 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
8867 if test "x$ax_cv_gcc_version" = "x"; then :
8869 ax_cv_gcc_version=""
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8875 $as_echo "$ax_cv_gcc_version" >&6; }
8876 target_gcc_version=$ax_cv_gcc_version
8881 if test "$use_gcc_version" = ""; then
8882 target_gcc_version="$default_gcc_version"
8884 else
8885 target_gcc_version="$use_gcc_version"
8887 if test "$aros_toolchain" = "gnu" ; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8889 $as_echo "$target_gcc_version" >&6; }
8891 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
8892 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
8893 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
8895 gcc_fix_bitfields="false"
8896 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
8897 gcc_fix_bitfields="true"
8898 else
8899 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
8900 if test "$GCC_VERSION_MINOR" -gt "6" ; then
8901 gcc_fix_bitfields="true"
8906 if test "$gcc_fix_bitfields" = "true" ; then
8907 case "$aros_target_cpu" in
8908 *x86_64*)
8909 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8910 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8912 i386)
8913 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8914 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8916 esac
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8921 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8922 # Check whether --enable-objc was given.
8923 if test "${enable_objc+set}" = set; then :
8924 enableval=$enable_objc; objc="$enableval"
8925 else
8926 objc="no"
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8930 $as_echo "$objc" >&6; }
8931 if test "x$objc" = "xyes"; then
8932 objc_target="$objc"
8933 else
8934 objc_target="no-objc"
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8938 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8939 # Check whether --enable-java was given.
8940 if test "${enable_java+set}" = set; then :
8941 enableval=$enable_java; java="$enableval"
8942 else
8943 java="no"
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8947 $as_echo "$java" >&6; }
8948 if test "x$java" != "xno"; then
8949 java_target="$java"
8950 else
8951 java_target="no-java"
8954 spec_obj_format="-m $aros_object_format"
8955 # Now process extra architecture-specific options.
8956 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8957 # as well as floating-point ABI.
8958 case "$aros_target_cpu" in
8959 *x86_64*)
8960 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8962 arm*)
8963 if test "$gcc_default_cpu" = ""; then
8964 gcc_default_cpu="armv6"
8966 if test "$gcc_default_fpu" = ""; then
8967 gcc_default_fpu="vfp"
8969 if test "$gcc_default_float_abi" = ""; then
8970 if test "$target_cpu" = "armhf"; then
8971 gcc_default_float_abi="hard"
8972 else
8973 gcc_default_float_abi="softfp"
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8978 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8980 # Check whether --with-cpu was given.
8981 if test "${with_cpu+set}" = set; then :
8982 withval=$with_cpu; aros_gcc_cpu="$withval"
8983 else
8984 aros_gcc_cpu=$gcc_default_cpu
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8988 $as_echo "$aros_gcc_cpu" >&6; }
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8991 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8993 # Check whether --with-fpu was given.
8994 if test "${with_fpu+set}" = set; then :
8995 withval=$with_fpu; aros_gcc_fpu="$withval"
8996 else
8997 aros_gcc_fpu=$gcc_default_fpu
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9001 $as_echo "$aros_gcc_fpu" >&6; }
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9004 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9006 # Check whether --with-float was given.
9007 if test "${with_float+set}" = set; then :
9008 withval=$with_float; aros_gcc_float_abi="$withval"
9009 else
9010 aros_gcc_float_abi=$gcc_default_float_abi
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9014 $as_echo "$aros_gcc_float_abi" >&6; }
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9017 $as_echo_n "checking Which ARM mode to use... " >&6; }
9018 if test "$aros_target_cpu_mode" = ""; then
9019 aros_target_cpu_mode="arm32"
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9021 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9022 else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9024 $as_echo "$aros_target_cpu_mode" >&6; }
9027 case "$aros_target_cpu_mode" in
9028 arm32)
9029 gcc_default_mode="arm"
9030 aros_isa_flags="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9032 arm64)
9033 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9035 thumb)
9036 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9038 thumb1)
9039 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9041 thumb2)
9042 gcc_default_mode="thumb"
9043 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9044 aros_isa_flags="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9047 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9049 esac
9051 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9052 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9054 i386)
9055 aros_isa_flags="-m32 -march=i486"
9056 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
9057 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9059 esac
9061 # Some architectures may need custom ELF specs.
9062 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9063 elf_specs_in=config/${aros_object_format}-specs.in
9064 else
9065 elf_specs_in=config/elf-specs.in
9068 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9069 # Since we override specs, we may need to put these defines there
9070 if test "$gcc_target_cpu" != ""; then
9071 gcc_target_cpu="-D__${gcc_target_cpu}__"
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9075 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9077 # Check whether --with-portssources was given.
9078 if test "${with_portssources+set}" = set; then :
9079 withval=$with_portssources; with_portssrcdir=$withval
9080 else
9081 with_portssrcdir="default"
9084 if test "$with_portssrcdir" = "default"; then
9085 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9086 else
9087 AROS_PORTSSRCDIR="$with_portssrcdir"
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9090 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9093 $as_echo_n "checking which bootloader to use... " >&6; }
9095 # Check whether --with-bootloader was given.
9096 if test "${with_bootloader+set}" = set; then :
9097 withval=$with_bootloader; target_bootloader=$withval
9098 else
9099 target_bootloader=$target_bootloader
9102 if test "$target_bootloader" = "none"; then
9103 aros_target_bootloader=""
9104 else
9105 aros_target_bootloader="$target_bootloader"
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9108 $as_echo "$target_bootloader" >&6; }
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9111 $as_echo_n "checking which icon-set to use... " >&6; }
9113 # Check whether --with-iconset was given.
9114 if test "${with_iconset+set}" = set; then :
9115 withval=$with_iconset; target_iconset=$withval
9116 else
9117 target_iconset="default"
9120 if test "$target_iconset" = "default"; then
9121 aros_target_iconset="Gorilla"
9122 target_iconset="default (Gorilla)"
9123 else
9124 aros_target_iconset="$target_iconset"
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9127 $as_echo "$target_iconset" >&6; }
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9130 $as_echo_n "checking which GUI Theme to use... " >&6; }
9132 # Check whether --with-theme was given.
9133 if test "${with_theme+set}" = set; then :
9134 withval=$with_theme; target_guitheme=$withval
9135 else
9136 target_guitheme="default"
9139 if test "$target_guitheme" = "default"; then
9140 aros_target_guitheme="Ice"
9141 else
9142 aros_target_guitheme="$target_guitheme"
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9145 $as_echo "$aros_target_guitheme" >&6; }
9147 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9148 # for target code)
9149 cross_compiling=no
9151 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9152 cross_compiling=yes
9155 if test "$aros_host_cpu" == "x86_64" ; then
9156 if test "$aros_target_cpu" == "i386" ; then
9157 cross_compiling=no
9161 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9162 if test "$aros_host_arch" != "$aros_target_arch" ; then
9163 cross_compiling=yes
9165 else
9166 if test "$host_cc_elf" = "no" ; then
9167 cross_compiling=yes
9171 if test "$cross_compiling" = "no" ; then
9172 kernel_tool_prefix=""
9173 if test "$host_cc_elf" = "yes" ; then
9174 elf_tool_prefix=""
9178 if test "$kernel_tool_version" != ""; then
9179 kernel_tool_version="-$kernel_tool_version"
9182 #######################################################################
9183 ## Compute what toolchains to use, and their paths ##
9184 #######################################################################
9186 # This takes, as input:
9187 # crosstools {yes,no}
9188 # kernel_tool_version {"",[version]}
9189 # target_tool_version {"",[version]}
9190 # kernel_tool_prefix {none,[some-arch-os-]}
9191 # gnu-toolchain -:
9192 # target_tool_prefix ${aros_target_cpu}-aros-
9193 # aros_tool_prefix ${aros_target_cpu}-aros-
9195 # The output is
9196 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9197 # Where the 'kernel' binaries are located
9198 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9199 # Where the 'target' binaries are located
9200 # (not the symlink farm - that is aros_target_*!)
9202 # The rules are:
9203 # if crosstools then
9204 # if kernel_tools_prefix = "no-kernel-prefix-"
9205 # aros_kernel_* = crosstools cc paths
9206 # aros_kernel_cc = elf cc wrapper around crosstools cc
9207 # else
9208 # VALIDATE(${kernel_tools_prefix}*)
9209 # aros_kernel_* = ${kernel_tools_prefix}*
9210 # if ${kernel_tools_prefix}cc is an AROS gcc
9211 # aros_kernel_cc = ${kernel_tools_prefix}cc
9212 # else
9213 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9214 # fi
9215 # fi
9217 # orig_target_* = aros built crosstools
9218 # orig_target_cc = elf cc wrapper around crosstools cc
9219 # else
9220 # VALIDATE(${kernel_tools_prefix}*)
9222 # orig_target_* = aros_kernel_*
9223 # if aros_kernel_cc is an AROS gcc
9224 # orig_target_cc = aros_kernel_cc
9225 # else
9226 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9227 # fi
9228 # fi
9230 if test "$aros_toolchain" = "gnu" ; then
9231 target_tool_prefix="${aros_target_cpu}-aros-"
9232 elif test "$aros_toolchain" = "llvm" ; then
9233 target_tool_prefix="bin/"
9236 if test "$kernel_tool_prefix" != "" ; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9238 $as_echo_n "checking which kernel tools... " >&6; }
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9240 $as_echo "$kernel_tool_prefix" >&6; };
9243 if test "$kernel_tool_prefix" = "none" ; then
9244 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9245 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9247 else
9248 # Kernel tools required - find them
9249 # Note that 'normally', aros_kernel_* overrides will be
9250 # empty, unless specified in the per-arch sections above.
9251 if test "x$aros_kernel_cpp" = "x"; then
9252 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9255 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
9256 if test "$cross_compiling" = "yes" ; then
9257 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9258 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9260 $as_echo_n "checking for $ac_word... " >&6; }
9261 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 case $aros_kernel_cpp in
9265 [\\/]* | ?:[\\/]*)
9266 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9270 for as_dir in $PATH
9272 IFS=$as_save_IFS
9273 test -z "$as_dir" && as_dir=.
9274 for ac_exec_ext in '' $ac_executable_extensions; do
9275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9276 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9278 break 2
9280 done
9281 done
9282 IFS=$as_save_IFS
9285 esac
9287 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9288 if test -n "$aros_kernel_cpp"; then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9290 $as_echo "$aros_kernel_cpp" >&6; }
9291 else
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9293 $as_echo "no" >&6; }
9297 else
9298 if test "$GCC" = "yes"; then
9299 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9300 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9301 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9303 $as_echo_n "checking for $ac_word... " >&6; }
9304 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9305 $as_echo_n "(cached) " >&6
9306 else
9307 case $aros_kernel_cpp in
9308 [\\/]* | ?:[\\/]*)
9309 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313 for as_dir in `dirname $aros_gcc_cpp`
9315 IFS=$as_save_IFS
9316 test -z "$as_dir" && as_dir=.
9317 for ac_exec_ext in '' $ac_executable_extensions; do
9318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9319 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9321 break 2
9323 done
9324 done
9325 IFS=$as_save_IFS
9328 esac
9330 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9331 if test -n "$aros_kernel_cpp"; then
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9333 $as_echo "$aros_kernel_cpp" >&6; }
9334 else
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 $as_echo "no" >&6; }
9341 if test "$aros_kernel_cpp" = ""; then
9342 # Extract the first word of "cpp", so it can be a program name with args.
9343 set dummy cpp; ac_word=$2
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9345 $as_echo_n "checking for $ac_word... " >&6; }
9346 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9347 $as_echo_n "(cached) " >&6
9348 else
9349 case $aros_kernel_cpp in
9350 [\\/]* | ?:[\\/]*)
9351 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355 for as_dir in $PATH
9357 IFS=$as_save_IFS
9358 test -z "$as_dir" && as_dir=.
9359 for ac_exec_ext in '' $ac_executable_extensions; do
9360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9361 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9363 break 2
9365 done
9366 done
9367 IFS=$as_save_IFS
9370 esac
9372 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9373 if test -n "$aros_kernel_cpp"; then
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9375 $as_echo "$aros_kernel_cpp" >&6; }
9376 else
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9378 $as_echo "no" >&6; }
9384 else
9385 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9386 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9388 $as_echo_n "checking for $ac_word... " >&6; }
9389 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9390 $as_echo_n "(cached) " >&6
9391 else
9392 case $aros_kernel_cpp in
9393 [\\/]* | ?:[\\/]*)
9394 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398 for as_dir in $PATH
9400 IFS=$as_save_IFS
9401 test -z "$as_dir" && as_dir=.
9402 for ac_exec_ext in '' $ac_executable_extensions; do
9403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9404 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9406 break 2
9408 done
9409 done
9410 IFS=$as_save_IFS
9413 esac
9415 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9416 if test -n "$aros_kernel_cpp"; then
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9418 $as_echo "$aros_kernel_cpp" >&6; }
9419 else
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421 $as_echo "no" >&6; }
9427 req_avail=yes
9428 if test "$aros_kernel_cpp" = ""; then
9429 req_avail=no
9431 if test "$aros_kernel_cpp" = "no"; then
9432 req_avail=no
9434 if test "$req_avail" = "no"; then
9435 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9437 if test "x$aros_kernel_cc" = "x"; then
9438 aros_kernel_cc=${kernel_tool_prefix}${CC}
9441 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9442 if test "$cross_compiling" = "yes" ; then
9443 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9444 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9446 $as_echo_n "checking for $ac_word... " >&6; }
9447 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 case $aros_kernel_cc in
9451 [\\/]* | ?:[\\/]*)
9452 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9456 for as_dir in $PATH
9458 IFS=$as_save_IFS
9459 test -z "$as_dir" && as_dir=.
9460 for ac_exec_ext in '' $ac_executable_extensions; do
9461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9462 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9464 break 2
9466 done
9467 done
9468 IFS=$as_save_IFS
9471 esac
9473 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9474 if test -n "$aros_kernel_cc"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9476 $as_echo "$aros_kernel_cc" >&6; }
9477 else
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9483 else
9484 if test "$GCC" = "yes"; then
9485 aros_gcc_cc=`$CC -print-prog-name=cc`
9486 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9487 set dummy `basename $aros_gcc_cc`; ac_word=$2
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9489 $as_echo_n "checking for $ac_word... " >&6; }
9490 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 case $aros_kernel_cc in
9494 [\\/]* | ?:[\\/]*)
9495 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499 for as_dir in `dirname $aros_gcc_cc`
9501 IFS=$as_save_IFS
9502 test -z "$as_dir" && as_dir=.
9503 for ac_exec_ext in '' $ac_executable_extensions; do
9504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9505 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9507 break 2
9509 done
9510 done
9511 IFS=$as_save_IFS
9514 esac
9516 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9517 if test -n "$aros_kernel_cc"; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9519 $as_echo "$aros_kernel_cc" >&6; }
9520 else
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 $as_echo "no" >&6; }
9527 if test "$aros_kernel_cc" = ""; then
9528 # Extract the first word of "cc", so it can be a program name with args.
9529 set dummy cc; ac_word=$2
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531 $as_echo_n "checking for $ac_word... " >&6; }
9532 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9533 $as_echo_n "(cached) " >&6
9534 else
9535 case $aros_kernel_cc in
9536 [\\/]* | ?:[\\/]*)
9537 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 for as_dir in $PATH
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9547 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549 break 2
9551 done
9552 done
9553 IFS=$as_save_IFS
9556 esac
9558 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9559 if test -n "$aros_kernel_cc"; then
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9561 $as_echo "$aros_kernel_cc" >&6; }
9562 else
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9570 else
9571 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9572 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574 $as_echo_n "checking for $ac_word... " >&6; }
9575 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 case $aros_kernel_cc in
9579 [\\/]* | ?:[\\/]*)
9580 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 for as_dir in $PATH
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9590 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9592 break 2
9594 done
9595 done
9596 IFS=$as_save_IFS
9599 esac
9601 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9602 if test -n "$aros_kernel_cc"; then
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9604 $as_echo "$aros_kernel_cc" >&6; }
9605 else
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607 $as_echo "no" >&6; }
9613 req_avail=yes
9614 if test "$aros_kernel_cc" = ""; then
9615 req_avail=no
9617 if test "$aros_kernel_cc" = "no"; then
9618 req_avail=no
9620 if test "$req_avail" = "no"; then
9621 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9623 if test "x$aros_kernel_cxx" = "x"; then
9624 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9627 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9628 if test "$cross_compiling" = "yes" ; then
9629 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9630 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632 $as_echo_n "checking for $ac_word... " >&6; }
9633 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 case $aros_kernel_cxx in
9637 [\\/]* | ?:[\\/]*)
9638 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642 for as_dir in $PATH
9644 IFS=$as_save_IFS
9645 test -z "$as_dir" && as_dir=.
9646 for ac_exec_ext in '' $ac_executable_extensions; do
9647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9648 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9650 break 2
9652 done
9653 done
9654 IFS=$as_save_IFS
9657 esac
9659 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9660 if test -n "$aros_kernel_cxx"; then
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9662 $as_echo "$aros_kernel_cxx" >&6; }
9663 else
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665 $as_echo "no" >&6; }
9669 else
9670 if test "$GCC" = "yes"; then
9671 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9672 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9673 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9675 $as_echo_n "checking for $ac_word... " >&6; }
9676 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9677 $as_echo_n "(cached) " >&6
9678 else
9679 case $aros_kernel_cxx in
9680 [\\/]* | ?:[\\/]*)
9681 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9685 for as_dir in `dirname $aros_gcc_cxx`
9687 IFS=$as_save_IFS
9688 test -z "$as_dir" && as_dir=.
9689 for ac_exec_ext in '' $ac_executable_extensions; do
9690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9691 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9693 break 2
9695 done
9696 done
9697 IFS=$as_save_IFS
9700 esac
9702 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9703 if test -n "$aros_kernel_cxx"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9705 $as_echo "$aros_kernel_cxx" >&6; }
9706 else
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9713 if test "$aros_kernel_cxx" = ""; then
9714 # Extract the first word of "cxx", so it can be a program name with args.
9715 set dummy cxx; ac_word=$2
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9719 $as_echo_n "(cached) " >&6
9720 else
9721 case $aros_kernel_cxx in
9722 [\\/]* | ?:[\\/]*)
9723 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727 for as_dir in $PATH
9729 IFS=$as_save_IFS
9730 test -z "$as_dir" && as_dir=.
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9733 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9735 break 2
9737 done
9738 done
9739 IFS=$as_save_IFS
9742 esac
9744 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9745 if test -n "$aros_kernel_cxx"; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9747 $as_echo "$aros_kernel_cxx" >&6; }
9748 else
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750 $as_echo "no" >&6; }
9756 else
9757 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9758 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760 $as_echo_n "checking for $ac_word... " >&6; }
9761 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764 case $aros_kernel_cxx in
9765 [\\/]* | ?:[\\/]*)
9766 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770 for as_dir in $PATH
9772 IFS=$as_save_IFS
9773 test -z "$as_dir" && as_dir=.
9774 for ac_exec_ext in '' $ac_executable_extensions; do
9775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9776 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778 break 2
9780 done
9781 done
9782 IFS=$as_save_IFS
9785 esac
9787 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9788 if test -n "$aros_kernel_cxx"; then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9790 $as_echo "$aros_kernel_cxx" >&6; }
9791 else
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9793 $as_echo "no" >&6; }
9799 # If it's set, make sure it's really there
9800 if test "x$aros_kernel_cxx" != "x" ; then
9801 req_avail=yes
9802 if test "$aros_kernel_cxx" = ""; then
9803 req_avail=no
9805 if test "$aros_kernel_cxx" = "no"; then
9806 req_avail=no
9808 if test "$req_avail" = "no"; then
9809 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9813 if test "$aros_kernel_ld" = ""; then
9814 if test "$cross_compiling" = "yes" ; then
9815 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9816 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818 $as_echo_n "checking for $ac_word... " >&6; }
9819 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 case $aros_kernel_ld in
9823 [\\/]* | ?:[\\/]*)
9824 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828 for as_dir in $PATH
9830 IFS=$as_save_IFS
9831 test -z "$as_dir" && as_dir=.
9832 for ac_exec_ext in '' $ac_executable_extensions; do
9833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9834 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9836 break 2
9838 done
9839 done
9840 IFS=$as_save_IFS
9843 esac
9845 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9846 if test -n "$aros_kernel_ld"; then
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9848 $as_echo "$aros_kernel_ld" >&6; }
9849 else
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851 $as_echo "no" >&6; }
9855 else
9856 if test "$GCC" = "yes"; then
9857 aros_gcc_ld=`$CC -print-prog-name=ld`
9858 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9859 set dummy `basename $aros_gcc_ld`; ac_word=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 case $aros_kernel_ld in
9866 [\\/]* | ?:[\\/]*)
9867 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in `dirname $aros_gcc_ld`
9873 IFS=$as_save_IFS
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 break 2
9881 done
9882 done
9883 IFS=$as_save_IFS
9886 esac
9888 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9889 if test -n "$aros_kernel_ld"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9891 $as_echo "$aros_kernel_ld" >&6; }
9892 else
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9899 if test "$aros_kernel_ld" = ""; then
9900 # Extract the first word of "ld", so it can be a program name with args.
9901 set dummy ld; ac_word=$2
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903 $as_echo_n "checking for $ac_word... " >&6; }
9904 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 case $aros_kernel_ld in
9908 [\\/]* | ?:[\\/]*)
9909 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 for as_dir in $PATH
9915 IFS=$as_save_IFS
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 break 2
9923 done
9924 done
9925 IFS=$as_save_IFS
9928 esac
9930 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9931 if test -n "$aros_kernel_ld"; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9933 $as_echo "$aros_kernel_ld" >&6; }
9934 else
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 $as_echo "no" >&6; }
9942 else
9943 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9944 set dummy $aros_kernel_ld; ac_word=$2
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9946 $as_echo_n "checking for $ac_word... " >&6; }
9947 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9948 $as_echo_n "(cached) " >&6
9949 else
9950 case $aros_kernel_ld in
9951 [\\/]* | ?:[\\/]*)
9952 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 for as_dir in $PATH
9958 IFS=$as_save_IFS
9959 test -z "$as_dir" && as_dir=.
9960 for ac_exec_ext in '' $ac_executable_extensions; do
9961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9962 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9964 break 2
9966 done
9967 done
9968 IFS=$as_save_IFS
9971 esac
9973 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9974 if test -n "$aros_kernel_ld"; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9976 $as_echo "$aros_kernel_ld" >&6; }
9977 else
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9979 $as_echo "no" >&6; }
9985 req_avail=yes
9986 if test "$aros_kernel_ld" = ""; then
9987 req_avail=no
9989 if test "$aros_kernel_ld" = "no"; then
9990 req_avail=no
9992 if test "$req_avail" = "no"; then
9993 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9996 if test "$aros_kernel_as" = ""; then
9997 if test "$cross_compiling" = "yes" ; then
9998 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9999 set dummy ${kernel_tool_prefix}as; ac_word=$2
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10001 $as_echo_n "checking for $ac_word... " >&6; }
10002 if ${ac_cv_path_aros_kernel_as+:} false; then :
10003 $as_echo_n "(cached) " >&6
10004 else
10005 case $aros_kernel_as in
10006 [\\/]* | ?:[\\/]*)
10007 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011 for as_dir in $PATH
10013 IFS=$as_save_IFS
10014 test -z "$as_dir" && as_dir=.
10015 for ac_exec_ext in '' $ac_executable_extensions; do
10016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10017 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 break 2
10021 done
10022 done
10023 IFS=$as_save_IFS
10026 esac
10028 aros_kernel_as=$ac_cv_path_aros_kernel_as
10029 if test -n "$aros_kernel_as"; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10031 $as_echo "$aros_kernel_as" >&6; }
10032 else
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 $as_echo "no" >&6; }
10038 else
10039 if test "$GCC" = "yes"; then
10040 aros_gcc_as=`$CC -print-prog-name=as`
10041 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10042 set dummy `basename $aros_gcc_as`; ac_word=$2
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044 $as_echo_n "checking for $ac_word... " >&6; }
10045 if ${ac_cv_path_aros_kernel_as+:} false; then :
10046 $as_echo_n "(cached) " >&6
10047 else
10048 case $aros_kernel_as in
10049 [\\/]* | ?:[\\/]*)
10050 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in `dirname $aros_gcc_as`
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10064 done
10065 done
10066 IFS=$as_save_IFS
10069 esac
10071 aros_kernel_as=$ac_cv_path_aros_kernel_as
10072 if test -n "$aros_kernel_as"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10074 $as_echo "$aros_kernel_as" >&6; }
10075 else
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10082 if test "$aros_kernel_as" = ""; then
10083 # Extract the first word of "as", so it can be a program name with args.
10084 set dummy as; ac_word=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if ${ac_cv_path_aros_kernel_as+:} false; then :
10088 $as_echo_n "(cached) " >&6
10089 else
10090 case $aros_kernel_as in
10091 [\\/]* | ?:[\\/]*)
10092 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in $PATH
10098 IFS=$as_save_IFS
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
10101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104 break 2
10106 done
10107 done
10108 IFS=$as_save_IFS
10111 esac
10113 aros_kernel_as=$ac_cv_path_aros_kernel_as
10114 if test -n "$aros_kernel_as"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10116 $as_echo "$aros_kernel_as" >&6; }
10117 else
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10125 else
10126 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10127 set dummy $aros_kernel_as; ac_word=$2
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129 $as_echo_n "checking for $ac_word... " >&6; }
10130 if ${ac_cv_path_aros_kernel_as+:} false; then :
10131 $as_echo_n "(cached) " >&6
10132 else
10133 case $aros_kernel_as in
10134 [\\/]* | ?:[\\/]*)
10135 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139 for as_dir in $PATH
10141 IFS=$as_save_IFS
10142 test -z "$as_dir" && as_dir=.
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10145 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10147 break 2
10149 done
10150 done
10151 IFS=$as_save_IFS
10154 esac
10156 aros_kernel_as=$ac_cv_path_aros_kernel_as
10157 if test -n "$aros_kernel_as"; then
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10159 $as_echo "$aros_kernel_as" >&6; }
10160 else
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 $as_echo "no" >&6; }
10168 req_avail=yes
10169 if test "$aros_kernel_as" = ""; then
10170 req_avail=no
10172 if test "$aros_kernel_as" = "no"; then
10173 req_avail=no
10175 if test "$req_avail" = "no"; then
10176 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10179 if test "$aros_kernel_ar" = ""; then
10180 if test "$cross_compiling" = "yes" ; then
10181 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10182 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10184 $as_echo_n "checking for $ac_word... " >&6; }
10185 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10186 $as_echo_n "(cached) " >&6
10187 else
10188 case $aros_kernel_ar in
10189 [\\/]* | ?:[\\/]*)
10190 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10202 break 2
10204 done
10205 done
10206 IFS=$as_save_IFS
10209 esac
10211 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10212 if test -n "$aros_kernel_ar"; then
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10214 $as_echo "$aros_kernel_ar" >&6; }
10215 else
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10221 else
10222 if test "$GCC" = "yes"; then
10223 aros_gcc_ar=`$CC -print-prog-name=ar`
10224 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10225 set dummy `basename $aros_gcc_ar`; ac_word=$2
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10227 $as_echo_n "checking for $ac_word... " >&6; }
10228 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10229 $as_echo_n "(cached) " >&6
10230 else
10231 case $aros_kernel_ar in
10232 [\\/]* | ?:[\\/]*)
10233 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237 for as_dir in `dirname $aros_gcc_ar`
10239 IFS=$as_save_IFS
10240 test -z "$as_dir" && as_dir=.
10241 for ac_exec_ext in '' $ac_executable_extensions; do
10242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10243 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10245 break 2
10247 done
10248 done
10249 IFS=$as_save_IFS
10252 esac
10254 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10255 if test -n "$aros_kernel_ar"; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10257 $as_echo "$aros_kernel_ar" >&6; }
10258 else
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260 $as_echo "no" >&6; }
10265 if test "$aros_kernel_ar" = ""; then
10266 # Extract the first word of "ar", so it can be a program name with args.
10267 set dummy ar; ac_word=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10271 $as_echo_n "(cached) " >&6
10272 else
10273 case $aros_kernel_ar in
10274 [\\/]* | ?:[\\/]*)
10275 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279 for as_dir in $PATH
10281 IFS=$as_save_IFS
10282 test -z "$as_dir" && as_dir=.
10283 for ac_exec_ext in '' $ac_executable_extensions; do
10284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10285 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10287 break 2
10289 done
10290 done
10291 IFS=$as_save_IFS
10294 esac
10296 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10297 if test -n "$aros_kernel_ar"; then
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10299 $as_echo "$aros_kernel_ar" >&6; }
10300 else
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302 $as_echo "no" >&6; }
10308 else
10309 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10310 set dummy $aros_kernel_ar; ac_word=$2
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10312 $as_echo_n "checking for $ac_word... " >&6; }
10313 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10314 $as_echo_n "(cached) " >&6
10315 else
10316 case $aros_kernel_ar in
10317 [\\/]* | ?:[\\/]*)
10318 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 break 2
10332 done
10333 done
10334 IFS=$as_save_IFS
10337 esac
10339 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10340 if test -n "$aros_kernel_ar"; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10342 $as_echo "$aros_kernel_ar" >&6; }
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10351 req_avail=yes
10352 if test "$aros_kernel_ar" = ""; then
10353 req_avail=no
10355 if test "$aros_kernel_ar" = "no"; then
10356 req_avail=no
10358 if test "$req_avail" = "no"; then
10359 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10362 if test "$aros_kernel_ranlib" = ""; then
10363 if test "$cross_compiling" = "yes" ; then
10364 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10365 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367 $as_echo_n "checking for $ac_word... " >&6; }
10368 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10369 $as_echo_n "(cached) " >&6
10370 else
10371 case $aros_kernel_ranlib in
10372 [\\/]* | ?:[\\/]*)
10373 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377 for as_dir in $PATH
10379 IFS=$as_save_IFS
10380 test -z "$as_dir" && as_dir=.
10381 for ac_exec_ext in '' $ac_executable_extensions; do
10382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10383 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385 break 2
10387 done
10388 done
10389 IFS=$as_save_IFS
10392 esac
10394 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10395 if test -n "$aros_kernel_ranlib"; then
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10397 $as_echo "$aros_kernel_ranlib" >&6; }
10398 else
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400 $as_echo "no" >&6; }
10404 else
10405 if test "$GCC" = "yes"; then
10406 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10407 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10408 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10410 $as_echo_n "checking for $ac_word... " >&6; }
10411 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10412 $as_echo_n "(cached) " >&6
10413 else
10414 case $aros_kernel_ranlib in
10415 [\\/]* | ?:[\\/]*)
10416 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420 for as_dir in `dirname $aros_gcc_ranlib`
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10426 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10428 break 2
10430 done
10431 done
10432 IFS=$as_save_IFS
10435 esac
10437 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10438 if test -n "$aros_kernel_ranlib"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10440 $as_echo "$aros_kernel_ranlib" >&6; }
10441 else
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10448 if test "$aros_kernel_ranlib" = ""; then
10449 # Extract the first word of "ranlib", so it can be a program name with args.
10450 set dummy ranlib; ac_word=$2
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10452 $as_echo_n "checking for $ac_word... " >&6; }
10453 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10454 $as_echo_n "(cached) " >&6
10455 else
10456 case $aros_kernel_ranlib in
10457 [\\/]* | ?:[\\/]*)
10458 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10462 for as_dir in $PATH
10464 IFS=$as_save_IFS
10465 test -z "$as_dir" && as_dir=.
10466 for ac_exec_ext in '' $ac_executable_extensions; do
10467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10468 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10470 break 2
10472 done
10473 done
10474 IFS=$as_save_IFS
10477 esac
10479 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10480 if test -n "$aros_kernel_ranlib"; then
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10482 $as_echo "$aros_kernel_ranlib" >&6; }
10483 else
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485 $as_echo "no" >&6; }
10491 else
10492 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10493 set dummy $aros_kernel_ranlib; ac_word=$2
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495 $as_echo_n "checking for $ac_word... " >&6; }
10496 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10497 $as_echo_n "(cached) " >&6
10498 else
10499 case $aros_kernel_ranlib in
10500 [\\/]* | ?:[\\/]*)
10501 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10515 done
10516 done
10517 IFS=$as_save_IFS
10520 esac
10522 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10523 if test -n "$aros_kernel_ranlib"; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10525 $as_echo "$aros_kernel_ranlib" >&6; }
10526 else
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10534 req_avail=yes
10535 if test "$aros_kernel_ranlib" = ""; then
10536 req_avail=no
10538 if test "$aros_kernel_ranlib" = "no"; then
10539 req_avail=no
10541 if test "$req_avail" = "no"; then
10542 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10545 if test "$aros_kernel_nm" = ""; then
10546 if test "$cross_compiling" = "yes" ; then
10547 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10548 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550 $as_echo_n "checking for $ac_word... " >&6; }
10551 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10552 $as_echo_n "(cached) " >&6
10553 else
10554 case $aros_kernel_nm in
10555 [\\/]* | ?:[\\/]*)
10556 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560 for as_dir in $PATH
10562 IFS=$as_save_IFS
10563 test -z "$as_dir" && as_dir=.
10564 for ac_exec_ext in '' $ac_executable_extensions; do
10565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10566 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10568 break 2
10570 done
10571 done
10572 IFS=$as_save_IFS
10575 esac
10577 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10578 if test -n "$aros_kernel_nm"; then
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10580 $as_echo "$aros_kernel_nm" >&6; }
10581 else
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10587 else
10588 if test "$GCC" = "yes"; then
10589 aros_gcc_nm=`$CC -print-prog-name=nm`
10590 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10591 set dummy `basename $aros_gcc_nm`; ac_word=$2
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593 $as_echo_n "checking for $ac_word... " >&6; }
10594 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10595 $as_echo_n "(cached) " >&6
10596 else
10597 case $aros_kernel_nm in
10598 [\\/]* | ?:[\\/]*)
10599 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10603 for as_dir in `dirname $aros_gcc_nm`
10605 IFS=$as_save_IFS
10606 test -z "$as_dir" && as_dir=.
10607 for ac_exec_ext in '' $ac_executable_extensions; do
10608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10609 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10611 break 2
10613 done
10614 done
10615 IFS=$as_save_IFS
10618 esac
10620 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10621 if test -n "$aros_kernel_nm"; then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10623 $as_echo "$aros_kernel_nm" >&6; }
10624 else
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626 $as_echo "no" >&6; }
10631 if test "$aros_kernel_nm" = ""; then
10632 # Extract the first word of "nm", so it can be a program name with args.
10633 set dummy nm; ac_word=$2
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10635 $as_echo_n "checking for $ac_word... " >&6; }
10636 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 case $aros_kernel_nm in
10640 [\\/]* | ?:[\\/]*)
10641 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645 for as_dir in $PATH
10647 IFS=$as_save_IFS
10648 test -z "$as_dir" && as_dir=.
10649 for ac_exec_ext in '' $ac_executable_extensions; do
10650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10651 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10653 break 2
10655 done
10656 done
10657 IFS=$as_save_IFS
10660 esac
10662 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10663 if test -n "$aros_kernel_nm"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10665 $as_echo "$aros_kernel_nm" >&6; }
10666 else
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668 $as_echo "no" >&6; }
10674 else
10675 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10676 set dummy $aros_kernel_nm; ac_word=$2
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10678 $as_echo_n "checking for $ac_word... " >&6; }
10679 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10680 $as_echo_n "(cached) " >&6
10681 else
10682 case $aros_kernel_nm in
10683 [\\/]* | ?:[\\/]*)
10684 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688 for as_dir in $PATH
10690 IFS=$as_save_IFS
10691 test -z "$as_dir" && as_dir=.
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10694 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 break 2
10698 done
10699 done
10700 IFS=$as_save_IFS
10703 esac
10705 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10706 if test -n "$aros_kernel_nm"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10708 $as_echo "$aros_kernel_nm" >&6; }
10709 else
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; }
10717 req_avail=yes
10718 if test "$aros_kernel_nm" = ""; then
10719 req_avail=no
10721 if test "$aros_kernel_nm" = "no"; then
10722 req_avail=no
10724 if test "$req_avail" = "no"; then
10725 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10728 if test "$aros_kernel_strip" = ""; then
10729 if test "$cross_compiling" = "yes" ; then
10730 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10731 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 case $aros_kernel_strip in
10738 [\\/]* | ?:[\\/]*)
10739 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743 for as_dir in $PATH
10745 IFS=$as_save_IFS
10746 test -z "$as_dir" && as_dir=.
10747 for ac_exec_ext in '' $ac_executable_extensions; do
10748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10749 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10751 break 2
10753 done
10754 done
10755 IFS=$as_save_IFS
10758 esac
10760 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10761 if test -n "$aros_kernel_strip"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10763 $as_echo "$aros_kernel_strip" >&6; }
10764 else
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10770 else
10771 if test "$GCC" = "yes"; then
10772 aros_gcc_strip=`$CC -print-prog-name=strip`
10773 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10774 set dummy `basename $aros_gcc_strip`; ac_word=$2
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10776 $as_echo_n "checking for $ac_word... " >&6; }
10777 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10778 $as_echo_n "(cached) " >&6
10779 else
10780 case $aros_kernel_strip in
10781 [\\/]* | ?:[\\/]*)
10782 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786 for as_dir in `dirname $aros_gcc_strip`
10788 IFS=$as_save_IFS
10789 test -z "$as_dir" && as_dir=.
10790 for ac_exec_ext in '' $ac_executable_extensions; do
10791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10792 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10794 break 2
10796 done
10797 done
10798 IFS=$as_save_IFS
10801 esac
10803 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10804 if test -n "$aros_kernel_strip"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10806 $as_echo "$aros_kernel_strip" >&6; }
10807 else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10814 if test "$aros_kernel_strip" = ""; then
10815 # Extract the first word of "strip", so it can be a program name with args.
10816 set dummy strip; ac_word=$2
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10818 $as_echo_n "checking for $ac_word... " >&6; }
10819 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 case $aros_kernel_strip in
10823 [\\/]* | ?:[\\/]*)
10824 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828 for as_dir in $PATH
10830 IFS=$as_save_IFS
10831 test -z "$as_dir" && as_dir=.
10832 for ac_exec_ext in '' $ac_executable_extensions; do
10833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10834 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10836 break 2
10838 done
10839 done
10840 IFS=$as_save_IFS
10843 esac
10845 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10846 if test -n "$aros_kernel_strip"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10848 $as_echo "$aros_kernel_strip" >&6; }
10849 else
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10857 else
10858 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10859 set dummy $aros_kernel_strip; ac_word=$2
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10861 $as_echo_n "checking for $ac_word... " >&6; }
10862 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10863 $as_echo_n "(cached) " >&6
10864 else
10865 case $aros_kernel_strip in
10866 [\\/]* | ?:[\\/]*)
10867 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871 for as_dir in $PATH
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10877 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10879 break 2
10881 done
10882 done
10883 IFS=$as_save_IFS
10886 esac
10888 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10889 if test -n "$aros_kernel_strip"; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10891 $as_echo "$aros_kernel_strip" >&6; }
10892 else
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 $as_echo "no" >&6; }
10900 req_avail=yes
10901 if test "$aros_kernel_strip" = ""; then
10902 req_avail=no
10904 if test "$aros_kernel_strip" = "no"; then
10905 req_avail=no
10907 if test "$req_avail" = "no"; then
10908 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10911 # Objcopy and objdump are not required for the kernel
10912 # toolchain on many architectures.
10913 # So we'll look for them, but not make them strictly required.
10915 if test "$aros_kernel_objcopy" = ""; then
10916 if test "$cross_compiling" = "yes" ; then
10917 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10918 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920 $as_echo_n "checking for $ac_word... " >&6; }
10921 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924 case $aros_kernel_objcopy in
10925 [\\/]* | ?:[\\/]*)
10926 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930 for as_dir in $PATH
10932 IFS=$as_save_IFS
10933 test -z "$as_dir" && as_dir=.
10934 for ac_exec_ext in '' $ac_executable_extensions; do
10935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10936 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10938 break 2
10940 done
10941 done
10942 IFS=$as_save_IFS
10945 esac
10947 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10948 if test -n "$aros_kernel_objcopy"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10950 $as_echo "$aros_kernel_objcopy" >&6; }
10951 else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953 $as_echo "no" >&6; }
10957 else
10958 if test "$GCC" = "yes"; then
10959 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10960 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10961 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963 $as_echo_n "checking for $ac_word... " >&6; }
10964 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10965 $as_echo_n "(cached) " >&6
10966 else
10967 case $aros_kernel_objcopy in
10968 [\\/]* | ?:[\\/]*)
10969 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973 for as_dir in `dirname $aros_gcc_objcopy`
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10979 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10981 break 2
10983 done
10984 done
10985 IFS=$as_save_IFS
10988 esac
10990 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10991 if test -n "$aros_kernel_objcopy"; then
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10993 $as_echo "$aros_kernel_objcopy" >&6; }
10994 else
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996 $as_echo "no" >&6; }
11001 if test "$aros_kernel_objcopy" = ""; then
11002 # Extract the first word of "objcopy", so it can be a program name with args.
11003 set dummy objcopy; ac_word=$2
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11005 $as_echo_n "checking for $ac_word... " >&6; }
11006 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11007 $as_echo_n "(cached) " >&6
11008 else
11009 case $aros_kernel_objcopy in
11010 [\\/]* | ?:[\\/]*)
11011 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015 for as_dir in $PATH
11017 IFS=$as_save_IFS
11018 test -z "$as_dir" && as_dir=.
11019 for ac_exec_ext in '' $ac_executable_extensions; do
11020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11021 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11023 break 2
11025 done
11026 done
11027 IFS=$as_save_IFS
11030 esac
11032 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11033 if test -n "$aros_kernel_objcopy"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11035 $as_echo "$aros_kernel_objcopy" >&6; }
11036 else
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11044 else
11045 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11046 set dummy $aros_kernel_objcopy; ac_word=$2
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11048 $as_echo_n "checking for $ac_word... " >&6; }
11049 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11050 $as_echo_n "(cached) " >&6
11051 else
11052 case $aros_kernel_objcopy in
11053 [\\/]* | ?:[\\/]*)
11054 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058 for as_dir in $PATH
11060 IFS=$as_save_IFS
11061 test -z "$as_dir" && as_dir=.
11062 for ac_exec_ext in '' $ac_executable_extensions; do
11063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11064 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11066 break 2
11068 done
11069 done
11070 IFS=$as_save_IFS
11073 esac
11075 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11076 if test -n "$aros_kernel_objcopy"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11078 $as_echo "$aros_kernel_objcopy" >&6; }
11079 else
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081 $as_echo "no" >&6; }
11088 if test "$aros_kernel_objdump" = ""; then
11089 if test "$cross_compiling" = "yes" ; then
11090 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11091 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 case $aros_kernel_objdump in
11098 [\\/]* | ?:[\\/]*)
11099 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 for as_dir in $PATH
11105 IFS=$as_save_IFS
11106 test -z "$as_dir" && as_dir=.
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11109 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111 break 2
11113 done
11114 done
11115 IFS=$as_save_IFS
11118 esac
11120 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11121 if test -n "$aros_kernel_objdump"; then
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11123 $as_echo "$aros_kernel_objdump" >&6; }
11124 else
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 $as_echo "no" >&6; }
11130 else
11131 if test "$GCC" = "yes"; then
11132 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11133 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11134 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11136 $as_echo_n "checking for $ac_word... " >&6; }
11137 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 case $aros_kernel_objdump in
11141 [\\/]* | ?:[\\/]*)
11142 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146 for as_dir in `dirname $aros_gcc_objdump`
11148 IFS=$as_save_IFS
11149 test -z "$as_dir" && as_dir=.
11150 for ac_exec_ext in '' $ac_executable_extensions; do
11151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11152 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154 break 2
11156 done
11157 done
11158 IFS=$as_save_IFS
11161 esac
11163 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11164 if test -n "$aros_kernel_objdump"; then
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11166 $as_echo "$aros_kernel_objdump" >&6; }
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11174 if test "$aros_kernel_objdump" = ""; then
11175 # Extract the first word of "objdump", so it can be a program name with args.
11176 set dummy objdump; ac_word=$2
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 $as_echo_n "checking for $ac_word... " >&6; }
11179 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 case $aros_kernel_objdump in
11183 [\\/]* | ?:[\\/]*)
11184 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11194 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196 break 2
11198 done
11199 done
11200 IFS=$as_save_IFS
11203 esac
11205 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11206 if test -n "$aros_kernel_objdump"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11208 $as_echo "$aros_kernel_objdump" >&6; }
11209 else
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 $as_echo "no" >&6; }
11217 else
11218 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11219 set dummy $aros_kernel_objdump; ac_word=$2
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11221 $as_echo_n "checking for $ac_word... " >&6; }
11222 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 case $aros_kernel_objdump in
11226 [\\/]* | ?:[\\/]*)
11227 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231 for as_dir in $PATH
11233 IFS=$as_save_IFS
11234 test -z "$as_dir" && as_dir=.
11235 for ac_exec_ext in '' $ac_executable_extensions; do
11236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11237 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11239 break 2
11241 done
11242 done
11243 IFS=$as_save_IFS
11246 esac
11248 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11249 if test -n "$aros_kernel_objdump"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11251 $as_echo "$aros_kernel_objdump" >&6; }
11252 else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11260 if test "x${crosstools}" != "xyes" ; then
11261 req_avail=yes
11262 if test "$aros_kernel_objcopy" = ""; then
11263 req_avail=no
11265 if test "$aros_kernel_objcopy" = "no"; then
11266 req_avail=no
11268 if test "$req_avail" = "no"; then
11269 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11271 req_avail=yes
11272 if test "$aros_kernel_objdump" = ""; then
11273 req_avail=no
11275 if test "$aros_kernel_objdump" = "no"; then
11276 req_avail=no
11278 if test "$req_avail" = "no"; then
11279 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11285 $as_echo_n "checking which target tools to use... " >&6; }
11286 if test "$aros_target_toolchain" = "yes"; then
11287 if test "$aros_toolchain" = "llvm" ; then
11288 msg_result="llvm"
11289 else
11290 msg_result=$target_tool_prefix
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11293 $as_echo "$msg_result" >&6; }
11294 # We are building AROS crosstools
11295 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11296 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11297 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11298 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11299 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11300 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11301 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11302 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11303 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11304 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11305 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11306 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11307 else
11308 # Determine whether AROS or ELF tools should be used
11309 if test "$aros_tool_prefix" = "none"; then
11310 aros_tool_prefix="${elf_tool_prefix}"
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11314 $as_echo "$aros_tool_prefix" >&6; }
11315 # We are *not* building AROS crosstools - use the AROS or ELF tools
11317 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11318 if test "$cross_compiling" = "yes" ; then
11319 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11320 set dummy ${target_tool_prefix}cpp; ac_word=$2
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11322 $as_echo_n "checking for $ac_word... " >&6; }
11323 if ${ac_cv_path_orig_target_cpp+:} false; then :
11324 $as_echo_n "(cached) " >&6
11325 else
11326 case $orig_target_cpp in
11327 [\\/]* | ?:[\\/]*)
11328 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332 for as_dir in $PATH
11334 IFS=$as_save_IFS
11335 test -z "$as_dir" && as_dir=.
11336 for ac_exec_ext in '' $ac_executable_extensions; do
11337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11338 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11340 break 2
11342 done
11343 done
11344 IFS=$as_save_IFS
11347 esac
11349 orig_target_cpp=$ac_cv_path_orig_target_cpp
11350 if test -n "$orig_target_cpp"; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11352 $as_echo "$orig_target_cpp" >&6; }
11353 else
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11359 else
11360 if test "$GCC" = "yes"; then
11361 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11362 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11363 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11365 $as_echo_n "checking for $ac_word... " >&6; }
11366 if ${ac_cv_path_orig_target_cpp+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369 case $orig_target_cpp in
11370 [\\/]* | ?:[\\/]*)
11371 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11375 for as_dir in `dirname $aros_gcc_cpp`
11377 IFS=$as_save_IFS
11378 test -z "$as_dir" && as_dir=.
11379 for ac_exec_ext in '' $ac_executable_extensions; do
11380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11381 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11383 break 2
11385 done
11386 done
11387 IFS=$as_save_IFS
11390 esac
11392 orig_target_cpp=$ac_cv_path_orig_target_cpp
11393 if test -n "$orig_target_cpp"; then
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11395 $as_echo "$orig_target_cpp" >&6; }
11396 else
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398 $as_echo "no" >&6; }
11403 if test "$orig_target_cpp" = ""; then
11404 # Extract the first word of "cpp", so it can be a program name with args.
11405 set dummy cpp; ac_word=$2
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11407 $as_echo_n "checking for $ac_word... " >&6; }
11408 if ${ac_cv_path_orig_target_cpp+:} false; then :
11409 $as_echo_n "(cached) " >&6
11410 else
11411 case $orig_target_cpp in
11412 [\\/]* | ?:[\\/]*)
11413 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11417 for as_dir in $PATH
11419 IFS=$as_save_IFS
11420 test -z "$as_dir" && as_dir=.
11421 for ac_exec_ext in '' $ac_executable_extensions; do
11422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11423 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11425 break 2
11427 done
11428 done
11429 IFS=$as_save_IFS
11432 esac
11434 orig_target_cpp=$ac_cv_path_orig_target_cpp
11435 if test -n "$orig_target_cpp"; then
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11437 $as_echo "$orig_target_cpp" >&6; }
11438 else
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11440 $as_echo "no" >&6; }
11446 else
11447 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11448 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450 $as_echo_n "checking for $ac_word... " >&6; }
11451 if ${ac_cv_path_orig_target_cpp+:} false; then :
11452 $as_echo_n "(cached) " >&6
11453 else
11454 case $orig_target_cpp in
11455 [\\/]* | ?:[\\/]*)
11456 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460 for as_dir in $PATH
11462 IFS=$as_save_IFS
11463 test -z "$as_dir" && as_dir=.
11464 for ac_exec_ext in '' $ac_executable_extensions; do
11465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11466 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11468 break 2
11470 done
11471 done
11472 IFS=$as_save_IFS
11475 esac
11477 orig_target_cpp=$ac_cv_path_orig_target_cpp
11478 if test -n "$orig_target_cpp"; then
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11480 $as_echo "$orig_target_cpp" >&6; }
11481 else
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483 $as_echo "no" >&6; }
11489 req_avail=yes
11490 if test "$orig_target_cpp" = ""; then
11491 req_avail=no
11493 if test "$orig_target_cpp" = "no"; then
11494 req_avail=no
11496 if test "$req_avail" = "no"; then
11497 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11500 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11501 if test "$cross_compiling" = "yes" ; then
11502 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11503 set dummy ${target_tool_prefix}gcc; ac_word=$2
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 $as_echo_n "checking for $ac_word... " >&6; }
11506 if ${ac_cv_path_orig_target_cc+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 case $orig_target_cc in
11510 [\\/]* | ?:[\\/]*)
11511 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11521 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 break 2
11525 done
11526 done
11527 IFS=$as_save_IFS
11530 esac
11532 orig_target_cc=$ac_cv_path_orig_target_cc
11533 if test -n "$orig_target_cc"; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11535 $as_echo "$orig_target_cc" >&6; }
11536 else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11542 else
11543 if test "$GCC" = "yes"; then
11544 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11545 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11546 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if ${ac_cv_path_orig_target_cc+:} false; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 case $orig_target_cc in
11553 [\\/]* | ?:[\\/]*)
11554 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558 for as_dir in `dirname $aros_gcc_gcc`
11560 IFS=$as_save_IFS
11561 test -z "$as_dir" && as_dir=.
11562 for ac_exec_ext in '' $ac_executable_extensions; do
11563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11564 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11566 break 2
11568 done
11569 done
11570 IFS=$as_save_IFS
11573 esac
11575 orig_target_cc=$ac_cv_path_orig_target_cc
11576 if test -n "$orig_target_cc"; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11578 $as_echo "$orig_target_cc" >&6; }
11579 else
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11586 if test "$orig_target_cc" = ""; then
11587 # Extract the first word of "gcc", so it can be a program name with args.
11588 set dummy gcc; ac_word=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if ${ac_cv_path_orig_target_cc+:} false; then :
11592 $as_echo_n "(cached) " >&6
11593 else
11594 case $orig_target_cc in
11595 [\\/]* | ?:[\\/]*)
11596 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11606 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 break 2
11610 done
11611 done
11612 IFS=$as_save_IFS
11615 esac
11617 orig_target_cc=$ac_cv_path_orig_target_cc
11618 if test -n "$orig_target_cc"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11620 $as_echo "$orig_target_cc" >&6; }
11621 else
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11629 else
11630 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11631 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 $as_echo_n "checking for $ac_word... " >&6; }
11634 if ${ac_cv_path_orig_target_cc+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 case $orig_target_cc in
11638 [\\/]* | ?:[\\/]*)
11639 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643 for as_dir in $PATH
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11649 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 break 2
11653 done
11654 done
11655 IFS=$as_save_IFS
11658 esac
11660 orig_target_cc=$ac_cv_path_orig_target_cc
11661 if test -n "$orig_target_cc"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11663 $as_echo "$orig_target_cc" >&6; }
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11672 req_avail=yes
11673 if test "$orig_target_cc" = ""; then
11674 req_avail=no
11676 if test "$orig_target_cc" = "no"; then
11677 req_avail=no
11679 if test "$req_avail" = "no"; then
11680 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11683 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11684 if test "$cross_compiling" = "yes" ; then
11685 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11686 set dummy ${target_tool_prefix}g++; ac_word=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if ${ac_cv_path_orig_target_cxx+:} false; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 case $orig_target_cxx in
11693 [\\/]* | ?:[\\/]*)
11694 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in $PATH
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
11703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11704 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 break 2
11708 done
11709 done
11710 IFS=$as_save_IFS
11713 esac
11715 orig_target_cxx=$ac_cv_path_orig_target_cxx
11716 if test -n "$orig_target_cxx"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11718 $as_echo "$orig_target_cxx" >&6; }
11719 else
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11725 else
11726 if test "$GCC" = "yes"; then
11727 aros_gcc_g++=`$CC -print-prog-name=g++`
11728 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11729 set dummy `basename $aros_gcc_g++`; ac_word=$2
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731 $as_echo_n "checking for $ac_word... " >&6; }
11732 if ${ac_cv_path_orig_target_cxx+:} false; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 case $orig_target_cxx in
11736 [\\/]* | ?:[\\/]*)
11737 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in `dirname $aros_gcc_g++`
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11747 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 break 2
11751 done
11752 done
11753 IFS=$as_save_IFS
11756 esac
11758 orig_target_cxx=$ac_cv_path_orig_target_cxx
11759 if test -n "$orig_target_cxx"; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11761 $as_echo "$orig_target_cxx" >&6; }
11762 else
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11769 if test "$orig_target_cxx" = ""; then
11770 # Extract the first word of "g++", so it can be a program name with args.
11771 set dummy g++; ac_word=$2
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773 $as_echo_n "checking for $ac_word... " >&6; }
11774 if ${ac_cv_path_orig_target_cxx+:} false; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 case $orig_target_cxx in
11778 [\\/]* | ?:[\\/]*)
11779 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783 for as_dir in $PATH
11785 IFS=$as_save_IFS
11786 test -z "$as_dir" && as_dir=.
11787 for ac_exec_ext in '' $ac_executable_extensions; do
11788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11789 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11791 break 2
11793 done
11794 done
11795 IFS=$as_save_IFS
11798 esac
11800 orig_target_cxx=$ac_cv_path_orig_target_cxx
11801 if test -n "$orig_target_cxx"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11803 $as_echo "$orig_target_cxx" >&6; }
11804 else
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11812 else
11813 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
11814 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if ${ac_cv_path_orig_target_cxx+:} false; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 case $orig_target_cxx in
11821 [\\/]* | ?:[\\/]*)
11822 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $PATH
11828 IFS=$as_save_IFS
11829 test -z "$as_dir" && as_dir=.
11830 for ac_exec_ext in '' $ac_executable_extensions; do
11831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11832 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11834 break 2
11836 done
11837 done
11838 IFS=$as_save_IFS
11841 esac
11843 orig_target_cxx=$ac_cv_path_orig_target_cxx
11844 if test -n "$orig_target_cxx"; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11846 $as_echo "$orig_target_cxx" >&6; }
11847 else
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11855 req_avail=yes
11856 if test "$orig_target_cxx" = ""; then
11857 req_avail=no
11859 if test "$orig_target_cxx" = "no"; then
11860 req_avail=no
11862 if test "$req_avail" = "no"; then
11863 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11866 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
11867 if test "$cross_compiling" = "yes" ; then
11868 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11869 set dummy ${target_tool_prefix}gcc; ac_word=$2
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if ${ac_cv_path_orig_target_ld+:} false; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 case $orig_target_ld in
11876 [\\/]* | ?:[\\/]*)
11877 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11883 IFS=$as_save_IFS
11884 test -z "$as_dir" && as_dir=.
11885 for ac_exec_ext in '' $ac_executable_extensions; do
11886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11887 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11889 break 2
11891 done
11892 done
11893 IFS=$as_save_IFS
11896 esac
11898 orig_target_ld=$ac_cv_path_orig_target_ld
11899 if test -n "$orig_target_ld"; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11901 $as_echo "$orig_target_ld" >&6; }
11902 else
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904 $as_echo "no" >&6; }
11908 else
11909 if test "$GCC" = "yes"; then
11910 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11911 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11912 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if ${ac_cv_path_orig_target_ld+:} false; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 case $orig_target_ld in
11919 [\\/]* | ?:[\\/]*)
11920 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924 for as_dir in `dirname $aros_gcc_gcc`
11926 IFS=$as_save_IFS
11927 test -z "$as_dir" && as_dir=.
11928 for ac_exec_ext in '' $ac_executable_extensions; do
11929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11930 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932 break 2
11934 done
11935 done
11936 IFS=$as_save_IFS
11939 esac
11941 orig_target_ld=$ac_cv_path_orig_target_ld
11942 if test -n "$orig_target_ld"; then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11944 $as_echo "$orig_target_ld" >&6; }
11945 else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11952 if test "$orig_target_ld" = ""; then
11953 # Extract the first word of "gcc", so it can be a program name with args.
11954 set dummy gcc; ac_word=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if ${ac_cv_path_orig_target_ld+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 case $orig_target_ld in
11961 [\\/]* | ?:[\\/]*)
11962 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966 for as_dir in $PATH
11968 IFS=$as_save_IFS
11969 test -z "$as_dir" && as_dir=.
11970 for ac_exec_ext in '' $ac_executable_extensions; do
11971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11972 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11974 break 2
11976 done
11977 done
11978 IFS=$as_save_IFS
11981 esac
11983 orig_target_ld=$ac_cv_path_orig_target_ld
11984 if test -n "$orig_target_ld"; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11986 $as_echo "$orig_target_ld" >&6; }
11987 else
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989 $as_echo "no" >&6; }
11995 else
11996 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
11997 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999 $as_echo_n "checking for $ac_word... " >&6; }
12000 if ${ac_cv_path_orig_target_ld+:} false; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003 case $orig_target_ld in
12004 [\\/]* | ?:[\\/]*)
12005 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009 for as_dir in $PATH
12011 IFS=$as_save_IFS
12012 test -z "$as_dir" && as_dir=.
12013 for ac_exec_ext in '' $ac_executable_extensions; do
12014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12015 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12017 break 2
12019 done
12020 done
12021 IFS=$as_save_IFS
12024 esac
12026 orig_target_ld=$ac_cv_path_orig_target_ld
12027 if test -n "$orig_target_ld"; then
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12029 $as_echo "$orig_target_ld" >&6; }
12030 else
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 $as_echo "no" >&6; }
12038 req_avail=yes
12039 if test "$orig_target_ld" = ""; then
12040 req_avail=no
12042 if test "$orig_target_ld" = "no"; then
12043 req_avail=no
12045 if test "$req_avail" = "no"; then
12046 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12049 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12050 if test "$cross_compiling" = "yes" ; then
12051 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12052 set dummy ${target_tool_prefix}as; ac_word=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if ${ac_cv_path_orig_target_as+:} false; then :
12056 $as_echo_n "(cached) " >&6
12057 else
12058 case $orig_target_as in
12059 [\\/]* | ?:[\\/]*)
12060 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12070 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 break 2
12074 done
12075 done
12076 IFS=$as_save_IFS
12079 esac
12081 orig_target_as=$ac_cv_path_orig_target_as
12082 if test -n "$orig_target_as"; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12084 $as_echo "$orig_target_as" >&6; }
12085 else
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087 $as_echo "no" >&6; }
12091 else
12092 if test "$GCC" = "yes"; then
12093 aros_gcc_as=`$CC -print-prog-name=as`
12094 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12095 set dummy `basename $aros_gcc_as`; ac_word=$2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097 $as_echo_n "checking for $ac_word... " >&6; }
12098 if ${ac_cv_path_orig_target_as+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 case $orig_target_as in
12102 [\\/]* | ?:[\\/]*)
12103 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12107 for as_dir in `dirname $aros_gcc_as`
12109 IFS=$as_save_IFS
12110 test -z "$as_dir" && as_dir=.
12111 for ac_exec_ext in '' $ac_executable_extensions; do
12112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12113 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 break 2
12117 done
12118 done
12119 IFS=$as_save_IFS
12122 esac
12124 orig_target_as=$ac_cv_path_orig_target_as
12125 if test -n "$orig_target_as"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12127 $as_echo "$orig_target_as" >&6; }
12128 else
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; }
12135 if test "$orig_target_as" = ""; then
12136 # Extract the first word of "as", so it can be a program name with args.
12137 set dummy as; ac_word=$2
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12139 $as_echo_n "checking for $ac_word... " >&6; }
12140 if ${ac_cv_path_orig_target_as+:} false; then :
12141 $as_echo_n "(cached) " >&6
12142 else
12143 case $orig_target_as in
12144 [\\/]* | ?:[\\/]*)
12145 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12151 IFS=$as_save_IFS
12152 test -z "$as_dir" && as_dir=.
12153 for ac_exec_ext in '' $ac_executable_extensions; do
12154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12155 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12157 break 2
12159 done
12160 done
12161 IFS=$as_save_IFS
12164 esac
12166 orig_target_as=$ac_cv_path_orig_target_as
12167 if test -n "$orig_target_as"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12169 $as_echo "$orig_target_as" >&6; }
12170 else
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12178 else
12179 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12180 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182 $as_echo_n "checking for $ac_word... " >&6; }
12183 if ${ac_cv_path_orig_target_as+:} false; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12186 case $orig_target_as in
12187 [\\/]* | ?:[\\/]*)
12188 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH
12194 IFS=$as_save_IFS
12195 test -z "$as_dir" && as_dir=.
12196 for ac_exec_ext in '' $ac_executable_extensions; do
12197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12198 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12200 break 2
12202 done
12203 done
12204 IFS=$as_save_IFS
12207 esac
12209 orig_target_as=$ac_cv_path_orig_target_as
12210 if test -n "$orig_target_as"; then
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12212 $as_echo "$orig_target_as" >&6; }
12213 else
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12221 req_avail=yes
12222 if test "$orig_target_as" = ""; then
12223 req_avail=no
12225 if test "$orig_target_as" = "no"; then
12226 req_avail=no
12228 if test "$req_avail" = "no"; then
12229 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12232 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12233 if test "$cross_compiling" = "yes" ; then
12234 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12235 set dummy ${target_tool_prefix}ar; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if ${ac_cv_path_orig_target_ar+:} false; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 case $orig_target_ar in
12242 [\\/]* | ?:[\\/]*)
12243 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12249 IFS=$as_save_IFS
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12255 break 2
12257 done
12258 done
12259 IFS=$as_save_IFS
12262 esac
12264 orig_target_ar=$ac_cv_path_orig_target_ar
12265 if test -n "$orig_target_ar"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12267 $as_echo "$orig_target_ar" >&6; }
12268 else
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12274 else
12275 if test "$GCC" = "yes"; then
12276 aros_gcc_ar=`$CC -print-prog-name=ar`
12277 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12278 set dummy `basename $aros_gcc_ar`; ac_word=$2
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12280 $as_echo_n "checking for $ac_word... " >&6; }
12281 if ${ac_cv_path_orig_target_ar+:} false; then :
12282 $as_echo_n "(cached) " >&6
12283 else
12284 case $orig_target_ar in
12285 [\\/]* | ?:[\\/]*)
12286 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290 for as_dir in `dirname $aros_gcc_ar`
12292 IFS=$as_save_IFS
12293 test -z "$as_dir" && as_dir=.
12294 for ac_exec_ext in '' $ac_executable_extensions; do
12295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12296 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298 break 2
12300 done
12301 done
12302 IFS=$as_save_IFS
12305 esac
12307 orig_target_ar=$ac_cv_path_orig_target_ar
12308 if test -n "$orig_target_ar"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12310 $as_echo "$orig_target_ar" >&6; }
12311 else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12318 if test "$orig_target_ar" = ""; then
12319 # Extract the first word of "ar", so it can be a program name with args.
12320 set dummy ar; ac_word=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322 $as_echo_n "checking for $ac_word... " >&6; }
12323 if ${ac_cv_path_orig_target_ar+:} false; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 case $orig_target_ar in
12327 [\\/]* | ?:[\\/]*)
12328 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332 for as_dir in $PATH
12334 IFS=$as_save_IFS
12335 test -z "$as_dir" && as_dir=.
12336 for ac_exec_ext in '' $ac_executable_extensions; do
12337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12338 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12340 break 2
12342 done
12343 done
12344 IFS=$as_save_IFS
12347 esac
12349 orig_target_ar=$ac_cv_path_orig_target_ar
12350 if test -n "$orig_target_ar"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12352 $as_echo "$orig_target_ar" >&6; }
12353 else
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12361 else
12362 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12363 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365 $as_echo_n "checking for $ac_word... " >&6; }
12366 if ${ac_cv_path_orig_target_ar+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 case $orig_target_ar in
12370 [\\/]* | ?:[\\/]*)
12371 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12377 IFS=$as_save_IFS
12378 test -z "$as_dir" && as_dir=.
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12381 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12383 break 2
12385 done
12386 done
12387 IFS=$as_save_IFS
12390 esac
12392 orig_target_ar=$ac_cv_path_orig_target_ar
12393 if test -n "$orig_target_ar"; then
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12395 $as_echo "$orig_target_ar" >&6; }
12396 else
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; }
12404 req_avail=yes
12405 if test "$orig_target_ar" = ""; then
12406 req_avail=no
12408 if test "$orig_target_ar" = "no"; then
12409 req_avail=no
12411 if test "$req_avail" = "no"; then
12412 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12415 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12416 if test "$cross_compiling" = "yes" ; then
12417 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12418 set dummy ${target_tool_prefix}ar; ac_word=$2
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12420 $as_echo_n "checking for $ac_word... " >&6; }
12421 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12422 $as_echo_n "(cached) " >&6
12423 else
12424 case $orig_target_ranlib in
12425 [\\/]* | ?:[\\/]*)
12426 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430 for as_dir in $PATH
12432 IFS=$as_save_IFS
12433 test -z "$as_dir" && as_dir=.
12434 for ac_exec_ext in '' $ac_executable_extensions; do
12435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12436 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12438 break 2
12440 done
12441 done
12442 IFS=$as_save_IFS
12445 esac
12447 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12448 if test -n "$orig_target_ranlib"; then
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12450 $as_echo "$orig_target_ranlib" >&6; }
12451 else
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; }
12457 else
12458 if test "$GCC" = "yes"; then
12459 aros_gcc_ar=`$CC -print-prog-name=ar`
12460 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12461 set dummy `basename $aros_gcc_ar`; ac_word=$2
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463 $as_echo_n "checking for $ac_word... " >&6; }
12464 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 case $orig_target_ranlib in
12468 [\\/]* | ?:[\\/]*)
12469 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473 for as_dir in `dirname $aros_gcc_ar`
12475 IFS=$as_save_IFS
12476 test -z "$as_dir" && as_dir=.
12477 for ac_exec_ext in '' $ac_executable_extensions; do
12478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12479 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12481 break 2
12483 done
12484 done
12485 IFS=$as_save_IFS
12488 esac
12490 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12491 if test -n "$orig_target_ranlib"; then
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12493 $as_echo "$orig_target_ranlib" >&6; }
12494 else
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; }
12501 if test "$orig_target_ranlib" = ""; then
12502 # Extract the first word of "ar", so it can be a program name with args.
12503 set dummy ar; 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_ranlib+:} false; then :
12507 $as_echo_n "(cached) " >&6
12508 else
12509 case $orig_target_ranlib in
12510 [\\/]* | ?:[\\/]*)
12511 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # 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_ranlib="$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_ranlib=$ac_cv_path_orig_target_ranlib
12533 if test -n "$orig_target_ranlib"; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12535 $as_echo "$orig_target_ranlib" >&6; }
12536 else
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12544 else
12545 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12546 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 case $orig_target_ranlib in
12553 [\\/]* | ?:[\\/]*)
12554 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558 for as_dir in $PATH
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12564 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12566 break 2
12568 done
12569 done
12570 IFS=$as_save_IFS
12573 esac
12575 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12576 if test -n "$orig_target_ranlib"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12578 $as_echo "$orig_target_ranlib" >&6; }
12579 else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 $as_echo "no" >&6; }
12587 req_avail=yes
12588 if test "$orig_target_ranlib" = ""; then
12589 req_avail=no
12591 if test "$orig_target_ranlib" = "no"; then
12592 req_avail=no
12594 if test "$req_avail" = "no"; then
12595 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12598 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12599 if test "$cross_compiling" = "yes" ; then
12600 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12601 set dummy ${target_tool_prefix}nm; ac_word=$2
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603 $as_echo_n "checking for $ac_word... " >&6; }
12604 if ${ac_cv_path_orig_target_nm+:} false; then :
12605 $as_echo_n "(cached) " >&6
12606 else
12607 case $orig_target_nm in
12608 [\\/]* | ?:[\\/]*)
12609 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613 for as_dir in $PATH
12615 IFS=$as_save_IFS
12616 test -z "$as_dir" && as_dir=.
12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12619 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12621 break 2
12623 done
12624 done
12625 IFS=$as_save_IFS
12628 esac
12630 orig_target_nm=$ac_cv_path_orig_target_nm
12631 if test -n "$orig_target_nm"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12633 $as_echo "$orig_target_nm" >&6; }
12634 else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12640 else
12641 if test "$GCC" = "yes"; then
12642 aros_gcc_nm=`$CC -print-prog-name=nm`
12643 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12644 set dummy `basename $aros_gcc_nm`; 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_nm+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 case $orig_target_nm in
12651 [\\/]* | ?:[\\/]*)
12652 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in `dirname $aros_gcc_nm`
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_nm="$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_nm=$ac_cv_path_orig_target_nm
12674 if test -n "$orig_target_nm"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12676 $as_echo "$orig_target_nm" >&6; }
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12684 if test "$orig_target_nm" = ""; then
12685 # Extract the first word of "nm", so it can be a program name with args.
12686 set dummy nm; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if ${ac_cv_path_orig_target_nm+:} false; then :
12690 $as_echo_n "(cached) " >&6
12691 else
12692 case $orig_target_nm in
12693 [\\/]* | ?:[\\/]*)
12694 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698 for as_dir in $PATH
12700 IFS=$as_save_IFS
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12704 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 break 2
12708 done
12709 done
12710 IFS=$as_save_IFS
12713 esac
12715 orig_target_nm=$ac_cv_path_orig_target_nm
12716 if test -n "$orig_target_nm"; then
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12718 $as_echo "$orig_target_nm" >&6; }
12719 else
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 $as_echo "no" >&6; }
12727 else
12728 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12729 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731 $as_echo_n "checking for $ac_word... " >&6; }
12732 if ${ac_cv_path_orig_target_nm+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 case $orig_target_nm in
12736 [\\/]* | ?:[\\/]*)
12737 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741 for as_dir in $PATH
12743 IFS=$as_save_IFS
12744 test -z "$as_dir" && as_dir=.
12745 for ac_exec_ext in '' $ac_executable_extensions; do
12746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12747 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749 break 2
12751 done
12752 done
12753 IFS=$as_save_IFS
12756 esac
12758 orig_target_nm=$ac_cv_path_orig_target_nm
12759 if test -n "$orig_target_nm"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12761 $as_echo "$orig_target_nm" >&6; }
12762 else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12770 req_avail=yes
12771 if test "$orig_target_nm" = ""; then
12772 req_avail=no
12774 if test "$orig_target_nm" = "no"; then
12775 req_avail=no
12777 if test "$req_avail" = "no"; then
12778 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12781 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
12782 if test "$cross_compiling" = "yes" ; then
12783 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12784 set dummy ${target_tool_prefix}strip; ac_word=$2
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12786 $as_echo_n "checking for $ac_word... " >&6; }
12787 if ${ac_cv_path_orig_target_strip+:} false; then :
12788 $as_echo_n "(cached) " >&6
12789 else
12790 case $orig_target_strip in
12791 [\\/]* | ?:[\\/]*)
12792 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796 for as_dir in $PATH
12798 IFS=$as_save_IFS
12799 test -z "$as_dir" && as_dir=.
12800 for ac_exec_ext in '' $ac_executable_extensions; do
12801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12802 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12804 break 2
12806 done
12807 done
12808 IFS=$as_save_IFS
12811 esac
12813 orig_target_strip=$ac_cv_path_orig_target_strip
12814 if test -n "$orig_target_strip"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12816 $as_echo "$orig_target_strip" >&6; }
12817 else
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 $as_echo "no" >&6; }
12823 else
12824 if test "$GCC" = "yes"; then
12825 aros_gcc_strip=`$CC -print-prog-name=strip`
12826 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12827 set dummy `basename $aros_gcc_strip`; ac_word=$2
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12829 $as_echo_n "checking for $ac_word... " >&6; }
12830 if ${ac_cv_path_orig_target_strip+:} false; then :
12831 $as_echo_n "(cached) " >&6
12832 else
12833 case $orig_target_strip in
12834 [\\/]* | ?:[\\/]*)
12835 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839 for as_dir in `dirname $aros_gcc_strip`
12841 IFS=$as_save_IFS
12842 test -z "$as_dir" && as_dir=.
12843 for ac_exec_ext in '' $ac_executable_extensions; do
12844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12845 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12847 break 2
12849 done
12850 done
12851 IFS=$as_save_IFS
12854 esac
12856 orig_target_strip=$ac_cv_path_orig_target_strip
12857 if test -n "$orig_target_strip"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12859 $as_echo "$orig_target_strip" >&6; }
12860 else
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12867 if test "$orig_target_strip" = ""; then
12868 # Extract the first word of "strip", so it can be a program name with args.
12869 set dummy strip; ac_word=$2
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12871 $as_echo_n "checking for $ac_word... " >&6; }
12872 if ${ac_cv_path_orig_target_strip+:} false; then :
12873 $as_echo_n "(cached) " >&6
12874 else
12875 case $orig_target_strip in
12876 [\\/]* | ?:[\\/]*)
12877 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12887 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12891 done
12892 done
12893 IFS=$as_save_IFS
12896 esac
12898 orig_target_strip=$ac_cv_path_orig_target_strip
12899 if test -n "$orig_target_strip"; then
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12901 $as_echo "$orig_target_strip" >&6; }
12902 else
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904 $as_echo "no" >&6; }
12910 else
12911 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
12912 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12914 $as_echo_n "checking for $ac_word... " >&6; }
12915 if ${ac_cv_path_orig_target_strip+:} false; then :
12916 $as_echo_n "(cached) " >&6
12917 else
12918 case $orig_target_strip in
12919 [\\/]* | ?:[\\/]*)
12920 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924 for as_dir in $PATH
12926 IFS=$as_save_IFS
12927 test -z "$as_dir" && as_dir=.
12928 for ac_exec_ext in '' $ac_executable_extensions; do
12929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12930 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12932 break 2
12934 done
12935 done
12936 IFS=$as_save_IFS
12939 esac
12941 orig_target_strip=$ac_cv_path_orig_target_strip
12942 if test -n "$orig_target_strip"; then
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12944 $as_echo "$orig_target_strip" >&6; }
12945 else
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947 $as_echo "no" >&6; }
12953 req_avail=yes
12954 if test "$orig_target_strip" = ""; then
12955 req_avail=no
12957 if test "$orig_target_strip" = "no"; then
12958 req_avail=no
12960 if test "$req_avail" = "no"; then
12961 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12964 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
12965 if test "$cross_compiling" = "yes" ; then
12966 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12967 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12969 $as_echo_n "checking for $ac_word... " >&6; }
12970 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 case $orig_target_objcopy in
12974 [\\/]* | ?:[\\/]*)
12975 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979 for as_dir in $PATH
12981 IFS=$as_save_IFS
12982 test -z "$as_dir" && as_dir=.
12983 for ac_exec_ext in '' $ac_executable_extensions; do
12984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12985 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12987 break 2
12989 done
12990 done
12991 IFS=$as_save_IFS
12994 esac
12996 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12997 if test -n "$orig_target_objcopy"; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12999 $as_echo "$orig_target_objcopy" >&6; }
13000 else
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13006 else
13007 if test "$GCC" = "yes"; then
13008 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13009 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13010 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13012 $as_echo_n "checking for $ac_word... " >&6; }
13013 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13014 $as_echo_n "(cached) " >&6
13015 else
13016 case $orig_target_objcopy in
13017 [\\/]* | ?:[\\/]*)
13018 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022 for as_dir in `dirname $aros_gcc_objcopy`
13024 IFS=$as_save_IFS
13025 test -z "$as_dir" && as_dir=.
13026 for ac_exec_ext in '' $ac_executable_extensions; do
13027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13028 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13030 break 2
13032 done
13033 done
13034 IFS=$as_save_IFS
13037 esac
13039 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13040 if test -n "$orig_target_objcopy"; then
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13042 $as_echo "$orig_target_objcopy" >&6; }
13043 else
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045 $as_echo "no" >&6; }
13050 if test "$orig_target_objcopy" = ""; then
13051 # Extract the first word of "objcopy", so it can be a program name with args.
13052 set dummy objcopy; ac_word=$2
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13054 $as_echo_n "checking for $ac_word... " >&6; }
13055 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 case $orig_target_objcopy in
13059 [\\/]* | ?:[\\/]*)
13060 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064 for as_dir in $PATH
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
13068 for ac_exec_ext in '' $ac_executable_extensions; do
13069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13070 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 break 2
13074 done
13075 done
13076 IFS=$as_save_IFS
13079 esac
13081 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13082 if test -n "$orig_target_objcopy"; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13084 $as_echo "$orig_target_objcopy" >&6; }
13085 else
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087 $as_echo "no" >&6; }
13093 else
13094 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13095 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13097 $as_echo_n "checking for $ac_word... " >&6; }
13098 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101 case $orig_target_objcopy in
13102 [\\/]* | ?:[\\/]*)
13103 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13107 for as_dir in $PATH
13109 IFS=$as_save_IFS
13110 test -z "$as_dir" && as_dir=.
13111 for ac_exec_ext in '' $ac_executable_extensions; do
13112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13113 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13115 break 2
13117 done
13118 done
13119 IFS=$as_save_IFS
13122 esac
13124 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13125 if test -n "$orig_target_objcopy"; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13127 $as_echo "$orig_target_objcopy" >&6; }
13128 else
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 $as_echo "no" >&6; }
13136 req_avail=yes
13137 if test "$orig_target_objcopy" = ""; then
13138 req_avail=no
13140 if test "$orig_target_objcopy" = "no"; then
13141 req_avail=no
13143 if test "$req_avail" = "no"; then
13144 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13147 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13148 if test "$cross_compiling" = "yes" ; then
13149 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13150 set dummy ${target_tool_prefix}objdump; ac_word=$2
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152 $as_echo_n "checking for $ac_word... " >&6; }
13153 if ${ac_cv_path_orig_target_objdump+:} false; then :
13154 $as_echo_n "(cached) " >&6
13155 else
13156 case $orig_target_objdump in
13157 [\\/]* | ?:[\\/]*)
13158 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13162 for as_dir in $PATH
13164 IFS=$as_save_IFS
13165 test -z "$as_dir" && as_dir=.
13166 for ac_exec_ext in '' $ac_executable_extensions; do
13167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13168 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13170 break 2
13172 done
13173 done
13174 IFS=$as_save_IFS
13177 esac
13179 orig_target_objdump=$ac_cv_path_orig_target_objdump
13180 if test -n "$orig_target_objdump"; then
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13182 $as_echo "$orig_target_objdump" >&6; }
13183 else
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185 $as_echo "no" >&6; }
13189 else
13190 if test "$GCC" = "yes"; then
13191 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13192 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13193 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195 $as_echo_n "checking for $ac_word... " >&6; }
13196 if ${ac_cv_path_orig_target_objdump+:} false; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 case $orig_target_objdump in
13200 [\\/]* | ?:[\\/]*)
13201 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in `dirname $aros_gcc_objdump`
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13211 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 break 2
13215 done
13216 done
13217 IFS=$as_save_IFS
13220 esac
13222 orig_target_objdump=$ac_cv_path_orig_target_objdump
13223 if test -n "$orig_target_objdump"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13225 $as_echo "$orig_target_objdump" >&6; }
13226 else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13233 if test "$orig_target_objdump" = ""; then
13234 # Extract the first word of "objdump", so it can be a program name with args.
13235 set dummy objdump; 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_objdump+:} false; then :
13239 $as_echo_n "(cached) " >&6
13240 else
13241 case $orig_target_objdump in
13242 [\\/]* | ?:[\\/]*)
13243 ac_cv_path_orig_target_objdump="$orig_target_objdump" # 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_objdump="$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_objdump=$ac_cv_path_orig_target_objdump
13265 if test -n "$orig_target_objdump"; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13267 $as_echo "$orig_target_objdump" >&6; }
13268 else
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 $as_echo "no" >&6; }
13276 else
13277 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13278 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13280 $as_echo_n "checking for $ac_word... " >&6; }
13281 if ${ac_cv_path_orig_target_objdump+:} false; then :
13282 $as_echo_n "(cached) " >&6
13283 else
13284 case $orig_target_objdump in
13285 [\\/]* | ?:[\\/]*)
13286 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13290 for as_dir in $PATH
13292 IFS=$as_save_IFS
13293 test -z "$as_dir" && as_dir=.
13294 for ac_exec_ext in '' $ac_executable_extensions; do
13295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13296 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13298 break 2
13300 done
13301 done
13302 IFS=$as_save_IFS
13305 esac
13307 orig_target_objdump=$ac_cv_path_orig_target_objdump
13308 if test -n "$orig_target_objdump"; then
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13310 $as_echo "$orig_target_objdump" >&6; }
13311 else
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13313 $as_echo "no" >&6; }
13319 req_avail=yes
13320 if test "$orig_target_objdump" = ""; then
13321 req_avail=no
13323 if test "$orig_target_objdump" = "no"; then
13324 req_avail=no
13326 if test "$req_avail" = "no"; then
13327 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13331 if test "$kernel_tool_prefix" = "none" ; then
13332 # No kernel tools specified
13333 # Assume target tools == kernel tools with ELF wrapper
13334 aros_kernel_cc=$orig_target_cc
13335 aros_kernel_cxx=$orig_target_cxx
13336 aros_kernel_cpp=$orig_target_cpp
13337 aros_kernel_ld=$orig_target_ld
13338 aros_kernel_as=$orig_target_as
13339 aros_kernel_ar=$orig_target_ar
13340 aros_kernel_ranlib=$orig_target_ranlib
13341 aros_kernel_nm=$orig_target_nm
13342 aros_kernel_strip=$orig_target_strip
13343 aros_kernel_objcopy=$orig_target_objcopy
13344 aros_kernel_objdump=$orig_target_objdump
13345 use_kernel_cc_wrapper=yes
13348 # At this point, all aros_kernel_* and aros_target_*
13349 # tools should be set up correctly
13351 CC="$aros_kernel_cc $kernel_tool_flags"
13352 CPP="$aros_kernel_cpp"
13354 #-----------------------------------------------------------------------------
13356 # Find all the tools we need to compile. This could be cross-compiling
13357 # though! If that is the case we use the GNU form of the target and
13358 # simply add this to the front of the binary name. This is rather simple,
13359 # but it should work under most circumstances.
13361 # The default tools are to use the same as the host, but only if the
13362 # host and target CPU are the same. With GCC this is normally enough.
13365 aros_cc_pre=""
13366 aros_shared_ld="$aros_host_ld"
13368 aros_target_mkdep="$aros_host_mkdep"
13370 # The default tools executables to be linked to.
13371 if test "$rescomp" != ""; then
13372 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13373 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375 $as_echo_n "checking for $ac_word... " >&6; }
13376 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 case $aros_kernel_rescomp in
13380 [\\/]* | ?:[\\/]*)
13381 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13385 for as_dir in $PATH
13387 IFS=$as_save_IFS
13388 test -z "$as_dir" && as_dir=.
13389 for ac_exec_ext in '' $ac_executable_extensions; do
13390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13391 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13393 break 2
13395 done
13396 done
13397 IFS=$as_save_IFS
13400 esac
13402 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13403 if test -n "$aros_kernel_rescomp"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13405 $as_echo "$aros_kernel_rescomp" >&6; }
13406 else
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408 $as_echo "no" >&6; }
13412 req_avail=yes
13413 if test "$aros_kernel_rescomp" = ""; then
13414 req_avail=no
13416 if test "$aros_kernel_rescomp" = "no"; then
13417 req_avail=no
13419 if test "$req_avail" = "no"; then
13420 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13424 # Set up the sources for the symlink farm
13425 if test "$crosstools" = "yes"; then
13426 crosstools_target=tools-crosstools
13429 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13430 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13432 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13433 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13434 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13435 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13436 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13437 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13438 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13440 # aros_cc_pre is a variable that is added to the front of the compiler name
13441 # in the generated aros-gcc shell script. We need this to enable the cache
13442 # to work across cleaned builds. Also, support DISTCC using the correct
13443 # environment variable.
13446 if test "x${DISTCC}" != "x" ; then
13447 if test "x${CCACHE}" != "x" ; then
13448 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13449 else
13450 aros_cc_pre="${DISTCC} "
13452 else
13453 if test "x${CCACHE}" != "x" ; then
13454 aros_cc_pre="${CCACHE} "
13458 aros_target_nostdinc_cflags=-nostdinc
13460 aros_target_nostartup_ldflags=-nostartfiles
13462 aros_target_nix_ldflags=-nix
13464 aros_target_detach_ldflags=-detach
13466 aros_target_nostdlib_ldflags=-nostdlib
13469 # Target tools
13471 if test "$aros_target_toolchain" != "yes"; then
13472 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13473 if test "$GCC" = "yes"; then
13474 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13476 else
13477 # We do not know which c compiler version we are going to build and what we need to know
13478 # here is different for different versions so this will be set later during the
13479 # build of crosstools.
13480 if test "$aros_toolchain" = "gnu" ; then
13481 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13482 elif test "$aros_toolchain" = "llvm" ; then
13483 prefix="$AROS_CROSSTOOLSDIR/bin/"
13485 aros_target_cc_path=@aros_target_cc_path@
13487 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13488 aros_target_cc="${prefix}${toolchain_c_compiler}"
13489 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13490 aros_target_as="${prefix}${toolchain_as}"
13491 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_ld}"
13492 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13493 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13494 aros_target_objdump="${prefix}${toolchain_objdump}"
13495 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13496 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13497 aros_target_strip="${prefix}${toolchain_strip}"
13498 aros_plain_nm="${prefix}${toolchain_nm}"
13499 aros_plain_ar="${prefix}${toolchain_ar}"
13501 # Check whether --enable-includes was given.
13502 if test "${enable_includes+set}" = set; then :
13503 enableval=$enable_includes; aros_target_incl=$enable_includes
13504 else
13505 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13509 if test "$aros_kernel_includes" = ""; then
13510 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13511 aros_kernel_includes="-isystem $aros_target_incl"
13515 if test "$aros_kernel_includes" != "" ; then
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13517 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13518 if test "$aros_kernel_cc_includes" = "" ; then
13519 # Try to guess where the directory is.
13520 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13521 if test -d $aros_kernel_cc_includes; then
13522 # Check if there is also an include-fixed directory and add it
13523 # to kernel compiler's include path as it may contain some of
13524 # the headers we need.
13525 if test -d "$aros_kernel_cc_includes"-fixed; then
13526 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13528 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13529 case ${host_cpu} in
13530 i[3456]86)
13531 host_cpu_glibc=i386
13534 host_cpu_glibc=${host_cpu}
13536 esac
13537 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13538 aros_kernel_cc_includes+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13540 else
13541 # The directory doesn't exist, we need to do some more work.
13542 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13544 # These are the headers we're looking for.
13545 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13546 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13547 zutil.h stdint.h"
13549 dirs=
13550 for h in $headers; do
13551 # Which other headers are needed by each of the above?
13552 deps=$(echo "#include <$h>" | \
13553 $aros_kernel_cc -E -M - 2>/dev/null | \
13554 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13556 # Copy all the needed headers to a directory beneath gendir.
13557 for d in $deps; do
13558 h=$(basename $d)
13559 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13560 sed -n "s,^.*/include\(/.*\),\1,p")
13561 ! test -d $dir && mkdir -p $dir
13562 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13563 done
13564 done
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13568 $as_echo "$aros_kernel_cc_includes" >&6; }
13569 # Adding -nostdinc to kernel includes as they are always used together.
13570 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13573 if test "$crosstools" != "yes"; then
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13575 $as_echo_n "checking for the target compiler's include path... " >&6; }
13576 if test "$aros_target_cc_includes" = "" ; then
13577 #try to guess where the directory is
13578 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13579 if ! test -d $aros_target_cc_includes; then
13580 #the directory doesn't exist, we need to do some more work
13581 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13583 #these are the headers we're looking for
13584 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13585 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13586 zutil.h"
13588 dirs=
13589 for h in $headers; do
13590 #which other headers each of the above headers needs?
13591 deps=$(echo "#include <$h>" | \
13592 $orig_target_cc -E -M - 2>/dev/null | \
13593 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13595 #copy all the needed headers to a directory beneath gendir
13596 for d in $deps; do
13597 h=$(basename $d)
13598 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13599 sed -n "s,^.*/include\(/.*\),\1,p")
13600 ! test -d $dir && mkdir -p $dir
13601 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13602 done
13603 done
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13607 $as_echo "$aros_target_cc_includes" >&6; }
13608 else
13609 # We do not know which c compiler version we are going to build and what we need to know
13610 # here is different for different versions so this will be set later during the
13611 # build of crosstools.
13612 aros_target_cc_includes=@aros_target_cc_includes@
13616 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13617 # On GCC >= 4.0 -iquote should be used
13620 save_cc="$CC"
13621 save_cflags="$CFLAGS"
13622 CFLAGS="-iquote."
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13624 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13625 if test "x-$crosstools" != "x-yes"; then
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13630 main ()
13634 return 0;
13636 _ACEOF
13637 if ac_fn_c_try_compile "$LINENO"; then :
13638 has_iquote="yes"
13639 else
13640 has_iquote="no"
13642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643 else
13644 # we do know it is supported for the smallest version of ${toolchain_c_compiler} we are going to build
13645 # we assume it's also supported by later versions
13646 has_iquote=yes
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13649 $as_echo "$has_iquote" >&6; }
13650 if test "x-$has_iquote" = "x-yes" ; then
13651 host_cflags_iquote=-iquote
13652 host_cflags_iquote_end=
13653 else
13654 host_cflags_iquote=-I
13655 host_cflags_iquote_end=-I-
13657 kernel_cflags_iquote=$host_cflags_iquote
13658 kernel_cflags_iquote_end=$host_cflags_iquote_end
13659 if test "x-$cross_compiling" = "x-yes"; then
13660 CC="$aros_kernel_cc"
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13662 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13663 if test "x-$crosstools" != "x-yes"; then
13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13668 main ()
13672 return 0;
13674 _ACEOF
13675 if ac_fn_c_try_compile "$LINENO"; then :
13676 use_no_stack_protector="yes"
13677 else
13678 use_no_stack_protector="no"
13680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 else
13682 # we do know it is supported for the smallest version of gcc we are going to build
13683 # we assume it's also supported by later versions
13684 use_no_stack_protector=yes
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13687 $as_echo "$use_no_stack_protector" >&6; }
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13689 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13690 if test "x-$crosstools" != "x-yes"; then
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13695 main ()
13699 return 0;
13701 _ACEOF
13702 if ac_fn_c_try_compile "$LINENO"; then :
13703 has_iquote="yes"
13704 else
13705 has_iquote="no"
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708 else
13709 # we do know it is supported for the smallest version of gcc we are going to build
13710 # we assume it's also supported by later versions
13711 has_iquote=yes
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13714 $as_echo "$has_iquote" >&6; }
13715 if test "x-$has_iquote" = "x-yes" ; then
13716 kernel_cflags_iquote=-iquote
13717 kernel_cflags_iquote_end=
13718 else
13719 kernel_cflags_iquote=-I
13720 kernel_cflags_iquote_end=-I-
13723 aros_cflags_iquote=$kernel_cflags_iquote
13724 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13725 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13726 CC="$orig_target_cc"
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13728 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13729 if test "x-$crosstools" != "x-yes"; then
13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13734 main ()
13738 return 0;
13740 _ACEOF
13741 if ac_fn_c_try_compile "$LINENO"; then :
13742 has_iquote="yes"
13743 else
13744 has_iquote="no"
13746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13747 else
13748 # we do know it is supported for the smallest version of gcc we are going to build
13749 # we assume it's also supported by later versions
13750 has_iquote=yes
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13753 $as_echo "$has_iquote" >&6; }
13754 if test "x-$has_iquote" = "x-yes" ; then
13755 aros_cflags_iquote=-iquote
13756 aros_cflags_iquote_end=
13757 else
13758 aros_cflags_iquote=-I
13759 aros_cflags_iquote_end=-I-
13762 if test "x-$use_no_stack_protector" = "x-yes" ; then
13763 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13766 #-----------------------------------------------------------------------------
13768 # Check if we can explicitly choose older version of symbol hashing
13770 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13771 CC="$aros_kernel_cc"
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13773 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13778 main ()
13782 return 0;
13784 _ACEOF
13785 if ac_fn_c_try_link "$LINENO"; then :
13786 use_hash_style="yes"
13787 else
13788 use_hash_style="no"
13790 rm -f core conftest.err conftest.$ac_objext \
13791 conftest$ac_exeext conftest.$ac_ext
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13793 $as_echo "$use_hash_style" >&6; }
13794 if test "x-$use_hash_style" = "x-yes" ; then
13795 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13797 CC="$save_cc"
13798 CFLAGS="$save_cflags"
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13809 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13811 # Check whether --with-resolution was given.
13812 if test "${with_resolution+set}" = set; then :
13813 withval=$with_resolution; resolution=$withval
13814 else
13815 resolution=none
13818 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13819 if test "$resolution" = "yes" ; then
13820 resolution="none"
13822 if test "$resolution" = "no" ; then
13823 resolution="none"
13825 if test "$resolution" != "none" ; then
13826 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13827 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13828 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13831 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13832 aros_cv_nominal_width=$aros_nominal_width
13833 aros_cv_nominal_height=$aros_nominal_height
13834 aros_cv_nominal_depth=$aros_nominal_depth
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
13837 $as_echo_n "checking whether serial debug is enabled... " >&6; }
13839 # Check whether --with-serial-debug was given.
13840 if test "${with_serial_debug+set}" = set; then :
13841 withval=$with_serial_debug; serial_debug=$withval
13842 else
13843 serial_debug=none
13846 if test "$aros_serial_debug" = 0 ; then
13847 serial_debug_forced=""
13848 if test "$serial_debug" = "yes" ; then
13849 serial_debug="1"
13851 if test "$serial_debug" = "no" ; then
13852 serial_debug="none"
13854 else
13855 serial_debug_forced="(forced)"
13856 serial_debug=$aros_serial_debug
13858 if test "$serial_debug" != "none" ; then
13859 aros_serial_debug=$serial_debug
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13861 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13862 else
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864 $as_echo "no" >&6; }
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
13868 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
13869 # Check whether --enable-palm_debug_hack was given.
13870 if test "${enable_palm_debug_hack+set}" = set; then :
13871 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13872 else
13873 palm_debug_hack="no"
13876 if test "$palm_debug_hack" = "yes" ; then
13877 aros_palm_debug_hack="1"
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13880 $as_echo "$palm_debug_hack" >&6; }
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
13883 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
13884 # Check whether --enable-usb30_code was given.
13885 if test "${enable_usb30_code+set}" = set; then :
13886 enableval=$enable_usb30_code; usb30_code="yes"
13887 else
13888 usb30_code="no"
13891 if test "$usb30_code" = "yes" ; then
13892 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13893 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13896 $as_echo "$usb30_code" >&6; }
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
13899 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
13900 # Check whether --enable-nesting_supervisor was given.
13901 if test "${enable_nesting_supervisor+set}" = set; then :
13902 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13903 else
13904 nesting_supervisor="no"
13907 if test "$nesting_supervisor" = "yes" ; then
13908 aros_nesting_supervisor="1"
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13911 $as_echo "$nesting_supervisor" >&6; }
13913 if test "$aros_enable_mmu" = "" ; then
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
13915 $as_echo_n "checking whether MMU support is enabled... " >&6; }
13916 # Check whether --enable-mmu was given.
13917 if test "${enable_mmu+set}" = set; then :
13918 enableval=$enable_mmu; aros_enable_mmu=$enableval
13919 else
13920 aros_enable_mmu="yes"
13923 if test "$aros_enable_mmu" = "" ; then
13924 aros_enable_mmu="yes"
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13927 $as_echo "$aros_enable_mmu" >&6; }
13929 if test "$aros_enable_mmu" = "no" ; then
13930 aros_enable_mmu="0"
13931 else
13932 aros_enable_mmu="1"
13936 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13938 if test "x-$need_dlopen" != "x-no" ; then
13939 save_libs="$LIBS"
13940 LIBS=""
13941 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13942 if test "x$ac_cv_func_dlopen" = xyes; then :
13943 have_dl="yes"
13944 else
13945 have_dl="no"
13948 if test "x-$have_dl" = "x-no" ; then
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13950 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13951 if ${ac_cv_lib_dl_dlopen+:} false; then :
13952 $as_echo_n "(cached) " >&6
13953 else
13954 ac_check_lib_save_LIBS=$LIBS
13955 LIBS="-ldl $LIBS"
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13959 /* Override any GCC internal prototype to avoid an error.
13960 Use char because int might match the return type of a GCC
13961 builtin and then its argument prototype would still apply. */
13962 #ifdef __cplusplus
13963 extern "C"
13964 #endif
13965 char dlopen ();
13967 main ()
13969 return dlopen ();
13971 return 0;
13973 _ACEOF
13974 if ac_fn_c_try_link "$LINENO"; then :
13975 ac_cv_lib_dl_dlopen=yes
13976 else
13977 ac_cv_lib_dl_dlopen=no
13979 rm -f core conftest.err conftest.$ac_objext \
13980 conftest$ac_exeext conftest.$ac_ext
13981 LIBS=$ac_check_lib_save_LIBS
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13984 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13985 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13986 have_dl="yes"
13987 aros_host_ldflags="$aros_host_ldflags -ldl"
13988 else
13989 have_dl="no"
13993 if test "x-$have_dl" = "x-no" ; then
13994 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13996 LIBS="$save_libs"
14000 # Check whether --enable-x11_hidd was given.
14001 if test "${enable_x11_hidd+set}" = set; then :
14002 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14003 else
14004 x11_hidd="$need_x11"
14007 case "x-$x11_hidd" in
14008 x-yes|x-no|x-auto) ;;
14009 *) x11_hidd="$need_x11" ;;
14010 esac
14012 ENABLE_X11=0
14014 if test "x-$x11_hidd" != "x-no" ; then
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14017 $as_echo_n "checking for X... " >&6; }
14020 # Check whether --with-x was given.
14021 if test "${with_x+set}" = set; then :
14022 withval=$with_x;
14025 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14026 if test "x$with_x" = xno; then
14027 # The user explicitly disabled X.
14028 have_x=disabled
14029 else
14030 case $x_includes,$x_libraries in #(
14031 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14032 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14033 $as_echo_n "(cached) " >&6
14034 else
14035 # One or both of the vars are not set, and there is no cached value.
14036 ac_x_includes=no ac_x_libraries=no
14037 rm -f -r conftest.dir
14038 if mkdir conftest.dir; then
14039 cd conftest.dir
14040 cat >Imakefile <<'_ACEOF'
14041 incroot:
14042 @echo incroot='${INCROOT}'
14043 usrlibdir:
14044 @echo usrlibdir='${USRLIBDIR}'
14045 libdir:
14046 @echo libdir='${LIBDIR}'
14047 _ACEOF
14048 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14049 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14050 for ac_var in incroot usrlibdir libdir; do
14051 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14052 done
14053 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14054 for ac_extension in a so sl dylib la dll; do
14055 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14056 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14057 ac_im_usrlibdir=$ac_im_libdir; break
14059 done
14060 # Screen out bogus values from the imake configuration. They are
14061 # bogus both because they are the default anyway, and because
14062 # using them would break gcc on systems where it needs fixed includes.
14063 case $ac_im_incroot in
14064 /usr/include) ac_x_includes= ;;
14065 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14066 esac
14067 case $ac_im_usrlibdir in
14068 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14069 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14070 esac
14072 cd ..
14073 rm -f -r conftest.dir
14076 # Standard set of common directories for X headers.
14077 # Check X11 before X11Rn because it is often a symlink to the current release.
14078 ac_x_header_dirs='
14079 /usr/X11/include
14080 /usr/X11R7/include
14081 /usr/X11R6/include
14082 /usr/X11R5/include
14083 /usr/X11R4/include
14085 /usr/include/X11
14086 /usr/include/X11R7
14087 /usr/include/X11R6
14088 /usr/include/X11R5
14089 /usr/include/X11R4
14091 /usr/local/X11/include
14092 /usr/local/X11R7/include
14093 /usr/local/X11R6/include
14094 /usr/local/X11R5/include
14095 /usr/local/X11R4/include
14097 /usr/local/include/X11
14098 /usr/local/include/X11R7
14099 /usr/local/include/X11R6
14100 /usr/local/include/X11R5
14101 /usr/local/include/X11R4
14103 /usr/X386/include
14104 /usr/x386/include
14105 /usr/XFree86/include/X11
14107 /usr/include
14108 /usr/local/include
14109 /usr/unsupported/include
14110 /usr/athena/include
14111 /usr/local/x11r5/include
14112 /usr/lpp/Xamples/include
14114 /usr/openwin/include
14115 /usr/openwin/share/include'
14117 if test "$ac_x_includes" = no; then
14118 # Guess where to find include files, by looking for Xlib.h.
14119 # First, try using that file with no special directory specified.
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14122 #include <X11/Xlib.h>
14123 _ACEOF
14124 if ac_fn_c_try_cpp "$LINENO"; then :
14125 # We can compile using X headers with no special include directory.
14126 ac_x_includes=
14127 else
14128 for ac_dir in $ac_x_header_dirs; do
14129 if test -r "$ac_dir/X11/Xlib.h"; then
14130 ac_x_includes=$ac_dir
14131 break
14133 done
14135 rm -f conftest.err conftest.i conftest.$ac_ext
14136 fi # $ac_x_includes = no
14138 if test "$ac_x_libraries" = no; then
14139 # Check for the libraries.
14140 # See if we find them without any special options.
14141 # Don't add to $LIBS permanently.
14142 ac_save_LIBS=$LIBS
14143 LIBS="-lX11 $LIBS"
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 #include <X11/Xlib.h>
14148 main ()
14150 XrmInitialize ()
14152 return 0;
14154 _ACEOF
14155 if ac_fn_c_try_link "$LINENO"; then :
14156 LIBS=$ac_save_LIBS
14157 # We can link X programs with no special library path.
14158 ac_x_libraries=
14159 else
14160 LIBS=$ac_save_LIBS
14161 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14163 # Don't even attempt the hair of trying to link an X program!
14164 for ac_extension in a so sl dylib la dll; do
14165 if test -r "$ac_dir/libX11.$ac_extension"; then
14166 ac_x_libraries=$ac_dir
14167 break 2
14169 done
14170 done
14172 rm -f core conftest.err conftest.$ac_objext \
14173 conftest$ac_exeext conftest.$ac_ext
14174 fi # $ac_x_libraries = no
14176 case $ac_x_includes,$ac_x_libraries in #(
14177 no,* | *,no | *\'*)
14178 # Didn't find X, or a directory has "'" in its name.
14179 ac_cv_have_x="have_x=no";; #(
14181 # Record where we found X for the cache.
14182 ac_cv_have_x="have_x=yes\
14183 ac_x_includes='$ac_x_includes'\
14184 ac_x_libraries='$ac_x_libraries'"
14185 esac
14187 ;; #(
14188 *) have_x=yes;;
14189 esac
14190 eval "$ac_cv_have_x"
14191 fi # $with_x != no
14193 if test "$have_x" != yes; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14195 $as_echo "$have_x" >&6; }
14196 no_x=yes
14197 else
14198 # If each of the values was on the command line, it overrides each guess.
14199 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14200 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14201 # Update the cache value to reflect the command line values.
14202 ac_cv_have_x="have_x=yes\
14203 ac_x_includes='$x_includes'\
14204 ac_x_libraries='$x_libraries'"
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14206 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14210 x_cflags=
14211 for path in $x_libraries
14213 x_cflags="$x_cflags -L$path"
14214 done
14216 for path in $x_includes
14218 x_cflags="$x_cflags -I$path"
14219 done
14221 if test "x-$no_x" = "x-yes" ; then
14223 if test "x-$x11_hidd" != "x-auto" ; then
14224 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14227 else
14228 host_x_gfx=yes
14229 ENABLE_X11=1
14231 # Check whether --enable-x11_shm was given.
14232 if test "${enable_x11_shm+set}" = set; then :
14233 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14234 else
14235 x11_hidd_shm="auto"
14238 case "x-$x11_hidd_shm" in
14239 x-yes|x-no|x-auto) ;;
14240 *) x11_hidd_shm="auto" ;;
14241 esac
14243 have_xshm=no
14245 if test "x-$x11_hidd_shm" != "x-no" ; then
14247 for ac_header in sys/ipc.h
14248 do :
14249 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14250 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14251 cat >>confdefs.h <<_ACEOF
14252 #define HAVE_SYS_IPC_H 1
14253 _ACEOF
14257 done
14259 for ac_header in sys/shm.h
14260 do :
14261 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14262 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14263 cat >>confdefs.h <<_ACEOF
14264 #define HAVE_SYS_SHM_H 1
14265 _ACEOF
14269 done
14272 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14274 save_cflags="$CFLAGS"
14275 CFLAGS="$CFLAGS $x_cflags"
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14277 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14278 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14279 $as_echo_n "(cached) " >&6
14280 else
14281 ac_check_lib_save_LIBS=$LIBS
14282 LIBS="-lXext $LIBS"
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14286 /* Override any GCC internal prototype to avoid an error.
14287 Use char because int might match the return type of a GCC
14288 builtin and then its argument prototype would still apply. */
14289 #ifdef __cplusplus
14290 extern "C"
14291 #endif
14292 char XShmQueryExtension ();
14294 main ()
14296 return XShmQueryExtension ();
14298 return 0;
14300 _ACEOF
14301 if ac_fn_c_try_link "$LINENO"; then :
14302 ac_cv_lib_Xext_XShmQueryExtension=yes
14303 else
14304 ac_cv_lib_Xext_XShmQueryExtension=no
14306 rm -f core conftest.err conftest.$ac_objext \
14307 conftest$ac_exeext conftest.$ac_ext
14308 LIBS=$ac_check_lib_save_LIBS
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14311 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14312 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14313 have_xshm=yes
14316 CFLAGS="$save_cflags"
14320 if test "x-$have_xshm" = "x-yes" ; then
14321 DO_XSHM_SUPPORT="1"
14322 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14323 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14324 else
14325 DO_XSHM_SUPPORT="0"
14329 # Check whether --enable-x11_vidmode was given.
14330 if test "${enable_x11_vidmode+set}" = set; then :
14331 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14332 else
14333 x11_hidd_vidmode="auto"
14336 case "x-$x11_hidd_vidmode" in
14337 x-yes|x-no|x-auto) ;;
14338 *) x11_hidd_vidmode="auto" ;;
14339 esac
14341 have_vidmode=no
14343 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14345 save_cflags="$CFLAGS"
14346 CFLAGS="$CFLAGS $x_cflags"
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14348 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14349 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14350 $as_echo_n "(cached) " >&6
14351 else
14352 ac_check_lib_save_LIBS=$LIBS
14353 LIBS="-lXxf86vm $LIBS"
14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14357 /* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14360 #ifdef __cplusplus
14361 extern "C"
14362 #endif
14363 char XF86VidModeQueryExtension ();
14365 main ()
14367 return XF86VidModeQueryExtension ();
14369 return 0;
14371 _ACEOF
14372 if ac_fn_c_try_link "$LINENO"; then :
14373 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14374 else
14375 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14377 rm -f core conftest.err conftest.$ac_objext \
14378 conftest$ac_exeext conftest.$ac_ext
14379 LIBS=$ac_check_lib_save_LIBS
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14382 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14383 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14384 have_vidmode=yes
14387 CFLAGS="$save_cflags"
14390 if test "x-$have_vidmode" = "x-yes" ; then
14391 DO_VIDMODE_SUPPORT="1"
14392 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14393 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14394 else
14395 DO_VIDMODE_SUPPORT="0"
14399 aros_host_x11_includes=$x_includes
14400 aros_host_x11_libdirs=$x_libraries
14404 # Check whether --enable-sdl_hidd was given.
14405 if test "${enable_sdl_hidd+set}" = set; then :
14406 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14407 else
14408 sdl_hidd="auto"
14411 case "x-$sdl_hidd" in
14412 x-yes|x-no|x-auto) ;;
14413 *) sdl_hidd="auto" ;;
14414 esac
14416 if test "x-$sdl_hidd" != "x-no" ; then
14418 SDL_VERSION=1.2.5
14420 # Check whether --with-sdl-prefix was given.
14421 if test "${with_sdl_prefix+set}" = set; then :
14422 withval=$with_sdl_prefix; sdl_prefix="$withval"
14423 else
14424 sdl_prefix=""
14428 # Check whether --with-sdl-exec-prefix was given.
14429 if test "${with_sdl_exec_prefix+set}" = set; then :
14430 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14431 else
14432 sdl_exec_prefix=""
14435 # Check whether --enable-sdltest was given.
14436 if test "${enable_sdltest+set}" = set; then :
14437 enableval=$enable_sdltest;
14438 else
14439 enable_sdltest=yes
14443 if test x$sdl_exec_prefix != x ; then
14444 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14445 if test x${SDL_CONFIG+set} != xset ; then
14446 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14449 if test x$sdl_prefix != x ; then
14450 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14451 if test x${SDL_CONFIG+set} != xset ; then
14452 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14456 as_save_PATH="$PATH"
14457 if test "x$prefix" != xNONE; then
14458 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14460 # Extract the first word of "sdl-config", so it can be a program name with args.
14461 set dummy sdl-config; ac_word=$2
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14463 $as_echo_n "checking for $ac_word... " >&6; }
14464 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467 case $SDL_CONFIG in
14468 [\\/]* | ?:[\\/]*)
14469 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14473 for as_dir in $PATH
14475 IFS=$as_save_IFS
14476 test -z "$as_dir" && as_dir=.
14477 for ac_exec_ext in '' $ac_executable_extensions; do
14478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14479 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14481 break 2
14483 done
14484 done
14485 IFS=$as_save_IFS
14487 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14489 esac
14491 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14492 if test -n "$SDL_CONFIG"; then
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14494 $as_echo "$SDL_CONFIG" >&6; }
14495 else
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 $as_echo "no" >&6; }
14501 PATH="$as_save_PATH"
14502 min_sdl_version=$SDL_VERSION
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14504 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14505 no_sdl=""
14506 if test "$SDL_CONFIG" = "no" ; then
14507 no_sdl=yes
14508 else
14509 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14510 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14512 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14513 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14514 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14515 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14516 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14517 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14518 if test "x$enable_sdltest" = "xyes" ; then
14519 ac_save_CFLAGS="$CFLAGS"
14520 ac_save_CXXFLAGS="$CXXFLAGS"
14521 ac_save_LIBS="$LIBS"
14522 CFLAGS="$CFLAGS $SDL_CFLAGS"
14523 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14524 LIBS="$LIBS $SDL_LIBS"
14525 rm -f conf.sdltest
14526 if test "$cross_compiling" = yes; then :
14527 echo $ac_n "cross compiling; assumed OK... $ac_c"
14528 else
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14532 #include <stdio.h>
14533 #include <stdlib.h>
14534 #include <string.h>
14535 #include "SDL.h"
14537 char*
14538 my_strdup (char *str)
14540 char *new_str;
14542 if (str)
14544 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14545 strcpy (new_str, str);
14547 else
14548 new_str = NULL;
14550 return new_str;
14553 int main (int argc, char *argv[])
14555 int major, minor, micro;
14556 char *tmp_version;
14558 /* This hangs on some systems (?)
14559 system ("touch conf.sdltest");
14561 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14563 /* HP/UX 9 (%@#!) writes to sscanf strings */
14564 tmp_version = my_strdup("$min_sdl_version");
14565 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14566 printf("%s, bad version string\n", "$min_sdl_version");
14567 exit(1);
14570 if (($sdl_major_version > major) ||
14571 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14572 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14574 return 0;
14576 else
14578 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14579 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14580 printf("*** best to upgrade to the required version.\n");
14581 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14582 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14583 printf("*** config.cache before re-running configure\n");
14584 return 1;
14589 _ACEOF
14590 if ac_fn_c_try_run "$LINENO"; then :
14592 else
14593 no_sdl=yes
14595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14596 conftest.$ac_objext conftest.beam conftest.$ac_ext
14599 CFLAGS="$ac_save_CFLAGS"
14600 CXXFLAGS="$ac_save_CXXFLAGS"
14601 LIBS="$ac_save_LIBS"
14604 if test "x$no_sdl" = x ; then
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14606 $as_echo "yes" >&6; }
14607 have_sdl="yes"
14608 else
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14610 $as_echo "no" >&6; }
14611 if test "$SDL_CONFIG" = "no" ; then
14612 echo "*** The sdl-config script installed by SDL could not be found"
14613 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14614 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14615 echo "*** full path to sdl-config."
14616 else
14617 if test -f conf.sdltest ; then
14619 else
14620 echo "*** Could not run SDL test program, checking why..."
14621 CFLAGS="$CFLAGS $SDL_CFLAGS"
14622 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14623 LIBS="$LIBS $SDL_LIBS"
14624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625 /* end confdefs.h. */
14627 #include <stdio.h>
14628 #include "SDL.h"
14630 int main(int argc, char *argv[])
14631 { return 0; }
14632 #undef main
14633 #define main K_and_R_C_main
14636 main ()
14638 return 0;
14640 return 0;
14642 _ACEOF
14643 if ac_fn_c_try_link "$LINENO"; then :
14644 echo "*** The test program compiled, but did not run. This usually means"
14645 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14646 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14647 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14648 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14649 echo "*** is required on your system"
14650 echo "***"
14651 echo "*** If you have an old version installed, it is best to remove it, although"
14652 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14653 else
14654 echo "*** The test program failed to compile or link. See the file config.log for the"
14655 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14656 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14657 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14659 rm -f core conftest.err conftest.$ac_objext \
14660 conftest$ac_exeext conftest.$ac_ext
14661 CFLAGS="$ac_save_CFLAGS"
14662 CXXFLAGS="$ac_save_CXXFLAGS"
14663 LIBS="$ac_save_LIBS"
14666 SDL_CFLAGS=""
14667 SDL_LIBS=""
14668 have_sdl="no"
14672 rm -f conf.sdltest
14675 if test "x-$have_sdl" != "x-yes" ; then
14677 if test "x-$sdl_hidd" != "x-auto" ; then
14678 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14681 else
14682 host_sdl_gfx=yes
14683 aros_host_sdl_cflags=$SDL_CFLAGS
14684 aros_host_sdl_libs=$SDL_LIBS
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14692 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14693 # Check whether --enable-dbus was given.
14694 if test "${enable_dbus+set}" = set; then :
14695 enableval=$enable_dbus; dbus="yes"
14696 else
14697 dbus="no"
14700 if test "$dbus" = "yes" ; then
14701 ENABLE_DBUS=1
14702 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14703 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14704 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14705 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14706 else
14707 ENABLE_DBUS=0
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14710 $as_echo "$dbus" >&6; }
14712 if test "$use_kernel_cc_wrapper" = "yes" ; then
14713 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14717 # Generic
14730 # Compatability with other Amiga-like operation systems
14733 # Host related
14762 # Target Related
14834 # Hosted Graphics Related
14852 # Native version related
14856 # Palm native version related
14859 # Unix/Hosted version related
14862 # MMU related
14865 # Apple iOS related
14870 # ARM default GCC target related
14877 # Android related
14882 # DBUS related
14889 #X11 related
14892 # Debug related
14898 # Collect-aros stuff: "-ius" to ignore undefined symbols
14901 # C compiler related
14906 #ObjC compiler related
14909 #Java related
14912 # USB3.0 code
14915 case "$aros_flavour" in
14916 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14917 aros_flavour="emulation" ;;
14918 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14919 aros_flavour="emulation" ;;
14920 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14921 aros_flavour="standalone";;
14922 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14923 aros_flavour="standalone";;
14924 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14925 aros_flavour="native" ;;
14926 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14927 aros_flavour="native" ;;
14928 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14929 aros_flavour="linklib" ;;
14930 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14931 aros_flavour="palmnative" ;;
14932 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14933 aros_flavour="mac68knative" ;;
14934 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14935 aros_flavour="ppcnative" ;;
14936 esac
14938 if test ! -d ${aros_inc_dir} ; then
14939 ${MKDIR} ${aros_inc_dir}
14941 if test ! -d ${aros_geninc_dir} ; then
14942 ${MKDIR} ${aros_geninc_dir}
14944 if test ! -d ${aros_hostcfg_dir} ; then
14945 ${MKDIR} ${aros_hostcfg_dir}
14947 if test ! -d ${aros_targetcfg_dir} ; then
14948 ${MKDIR} ${aros_targetcfg_dir}
14950 if test ! -d ${aros_tools_dir} ; then
14951 ${MKDIR} ${aros_tools_dir}
14953 if test ! -d ${aros_scripts_dir} ; then
14954 ${MKDIR} ${aros_scripts_dir}
14957 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14960 # Generic build tools (metamake, etc)
14961 ac_config_commands="$ac_config_commands genmf-executable-support"
14963 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 ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
14966 # Binutils
14967 ac_config_commands="$ac_config_commands binutils-support"
14969 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14972 # Bare Elf support script and spec
14973 if test "${use_kernel_cc_wrapper}" = "yes"; then
14974 ac_config_commands="$ac_config_commands elf-compiler-support"
14976 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"
14980 # Host compiler support scripts and spec
14981 if test "${aros_target_toolchain}" = "no"; then
14982 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
14984 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"
14988 # Android support
14989 if test "$aros_target_variant" == "android"; then
14990 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14994 # cmake helper
14995 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
14998 cat >confcache <<\_ACEOF
14999 # This file is a shell script that caches the results of configure
15000 # tests run on this system so they can be shared between configure
15001 # scripts and configure runs, see configure's option --config-cache.
15002 # It is not useful on other systems. If it contains results you don't
15003 # want to keep, you may remove or edit it.
15005 # config.status only pays attention to the cache file if you give it
15006 # the --recheck option to rerun configure.
15008 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15009 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15010 # following values.
15012 _ACEOF
15014 # The following way of writing the cache mishandles newlines in values,
15015 # but we know of no workaround that is simple, portable, and efficient.
15016 # So, we kill variables containing newlines.
15017 # Ultrix sh set writes to stderr and can't be redirected directly,
15018 # and sets the high bit in the cache file unless we assign to the vars.
15020 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15021 eval ac_val=\$$ac_var
15022 case $ac_val in #(
15023 *${as_nl}*)
15024 case $ac_var in #(
15025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15026 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15027 esac
15028 case $ac_var in #(
15029 _ | IFS | as_nl) ;; #(
15030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15031 *) { eval $ac_var=; unset $ac_var;} ;;
15032 esac ;;
15033 esac
15034 done
15036 (set) 2>&1 |
15037 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15038 *${as_nl}ac_space=\ *)
15039 # `set' does not quote correctly, so add quotes: double-quote
15040 # substitution turns \\\\ into \\, and sed turns \\ into \.
15041 sed -n \
15042 "s/'/'\\\\''/g;
15043 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15044 ;; #(
15046 # `set' quotes correctly as required by POSIX, so do not add quotes.
15047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15049 esac |
15050 sort
15052 sed '
15053 /^ac_cv_env_/b end
15054 t clear
15055 :clear
15056 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15057 t end
15058 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15059 :end' >>confcache
15060 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15061 if test -w "$cache_file"; then
15062 if test "x$cache_file" != "x/dev/null"; then
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15064 $as_echo "$as_me: updating cache $cache_file" >&6;}
15065 if test ! -f "$cache_file" || test -h "$cache_file"; then
15066 cat confcache >"$cache_file"
15067 else
15068 case $cache_file in #(
15069 */* | ?:*)
15070 mv -f confcache "$cache_file"$$ &&
15071 mv -f "$cache_file"$$ "$cache_file" ;; #(
15073 mv -f confcache "$cache_file" ;;
15074 esac
15077 else
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15079 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15082 rm -f confcache
15084 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15085 # Let make expand exec_prefix.
15086 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15088 DEFS=-DHAVE_CONFIG_H
15090 ac_libobjs=
15091 ac_ltlibobjs=
15093 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15094 # 1. Remove the extension, and $U if already installed.
15095 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15096 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15097 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15098 # will be set to the directory where LIBOBJS objects are built.
15099 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15100 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15101 done
15102 LIBOBJS=$ac_libobjs
15104 LTLIBOBJS=$ac_ltlibobjs
15108 : "${CONFIG_STATUS=./config.status}"
15109 ac_write_fail=0
15110 ac_clean_files_save=$ac_clean_files
15111 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15113 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15114 as_write_fail=0
15115 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15116 #! $SHELL
15117 # Generated by $as_me.
15118 # Run this file to recreate the current configuration.
15119 # Compiler output produced by configure, useful for debugging
15120 # configure, is in config.log if it exists.
15122 debug=false
15123 ac_cs_recheck=false
15124 ac_cs_silent=false
15126 SHELL=\${CONFIG_SHELL-$SHELL}
15127 export SHELL
15128 _ASEOF
15129 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15130 ## -------------------- ##
15131 ## M4sh Initialization. ##
15132 ## -------------------- ##
15134 # Be more Bourne compatible
15135 DUALCASE=1; export DUALCASE # for MKS sh
15136 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15137 emulate sh
15138 NULLCMD=:
15139 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15140 # is contrary to our usage. Disable this feature.
15141 alias -g '${1+"$@"}'='"$@"'
15142 setopt NO_GLOB_SUBST
15143 else
15144 case `(set -o) 2>/dev/null` in #(
15145 *posix*) :
15146 set -o posix ;; #(
15147 *) :
15149 esac
15153 as_nl='
15155 export as_nl
15156 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15157 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15158 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15159 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15160 # Prefer a ksh shell builtin over an external printf program on Solaris,
15161 # but without wasting forks for bash or zsh.
15162 if test -z "$BASH_VERSION$ZSH_VERSION" \
15163 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15164 as_echo='print -r --'
15165 as_echo_n='print -rn --'
15166 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15167 as_echo='printf %s\n'
15168 as_echo_n='printf %s'
15169 else
15170 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15171 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15172 as_echo_n='/usr/ucb/echo -n'
15173 else
15174 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15175 as_echo_n_body='eval
15176 arg=$1;
15177 case $arg in #(
15178 *"$as_nl"*)
15179 expr "X$arg" : "X\\(.*\\)$as_nl";
15180 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15181 esac;
15182 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15184 export as_echo_n_body
15185 as_echo_n='sh -c $as_echo_n_body as_echo'
15187 export as_echo_body
15188 as_echo='sh -c $as_echo_body as_echo'
15191 # The user is always right.
15192 if test "${PATH_SEPARATOR+set}" != set; then
15193 PATH_SEPARATOR=:
15194 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15195 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15196 PATH_SEPARATOR=';'
15201 # IFS
15202 # We need space, tab and new line, in precisely that order. Quoting is
15203 # there to prevent editors from complaining about space-tab.
15204 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15205 # splitting by setting IFS to empty value.)
15206 IFS=" "" $as_nl"
15208 # Find who we are. Look in the path if we contain no directory separator.
15209 as_myself=
15210 case $0 in #((
15211 *[\\/]* ) as_myself=$0 ;;
15212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15213 for as_dir in $PATH
15215 IFS=$as_save_IFS
15216 test -z "$as_dir" && as_dir=.
15217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15218 done
15219 IFS=$as_save_IFS
15222 esac
15223 # We did not find ourselves, most probably we were run as `sh COMMAND'
15224 # in which case we are not to be found in the path.
15225 if test "x$as_myself" = x; then
15226 as_myself=$0
15228 if test ! -f "$as_myself"; then
15229 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15230 exit 1
15233 # Unset variables that we do not need and which cause bugs (e.g. in
15234 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15235 # suppresses any "Segmentation fault" message there. '((' could
15236 # trigger a bug in pdksh 5.2.14.
15237 for as_var in BASH_ENV ENV MAIL MAILPATH
15238 do eval test x\${$as_var+set} = xset \
15239 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15240 done
15241 PS1='$ '
15242 PS2='> '
15243 PS4='+ '
15245 # NLS nuisances.
15246 LC_ALL=C
15247 export LC_ALL
15248 LANGUAGE=C
15249 export LANGUAGE
15251 # CDPATH.
15252 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15255 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15256 # ----------------------------------------
15257 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15258 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15259 # script with STATUS, using 1 if that was 0.
15260 as_fn_error ()
15262 as_status=$1; test $as_status -eq 0 && as_status=1
15263 if test "$4"; then
15264 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15265 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15267 $as_echo "$as_me: error: $2" >&2
15268 as_fn_exit $as_status
15269 } # as_fn_error
15272 # as_fn_set_status STATUS
15273 # -----------------------
15274 # Set $? to STATUS, without forking.
15275 as_fn_set_status ()
15277 return $1
15278 } # as_fn_set_status
15280 # as_fn_exit STATUS
15281 # -----------------
15282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15283 as_fn_exit ()
15285 set +e
15286 as_fn_set_status $1
15287 exit $1
15288 } # as_fn_exit
15290 # as_fn_unset VAR
15291 # ---------------
15292 # Portably unset VAR.
15293 as_fn_unset ()
15295 { eval $1=; unset $1;}
15297 as_unset=as_fn_unset
15298 # as_fn_append VAR VALUE
15299 # ----------------------
15300 # Append the text in VALUE to the end of the definition contained in VAR. Take
15301 # advantage of any shell optimizations that allow amortized linear growth over
15302 # repeated appends, instead of the typical quadratic growth present in naive
15303 # implementations.
15304 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15305 eval 'as_fn_append ()
15307 eval $1+=\$2
15309 else
15310 as_fn_append ()
15312 eval $1=\$$1\$2
15314 fi # as_fn_append
15316 # as_fn_arith ARG...
15317 # ------------------
15318 # Perform arithmetic evaluation on the ARGs, and store the result in the
15319 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15320 # must be portable across $(()) and expr.
15321 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15322 eval 'as_fn_arith ()
15324 as_val=$(( $* ))
15326 else
15327 as_fn_arith ()
15329 as_val=`expr "$@" || test $? -eq 1`
15331 fi # as_fn_arith
15334 if expr a : '\(a\)' >/dev/null 2>&1 &&
15335 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15336 as_expr=expr
15337 else
15338 as_expr=false
15341 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15342 as_basename=basename
15343 else
15344 as_basename=false
15347 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15348 as_dirname=dirname
15349 else
15350 as_dirname=false
15353 as_me=`$as_basename -- "$0" ||
15354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15355 X"$0" : 'X\(//\)$' \| \
15356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15357 $as_echo X/"$0" |
15358 sed '/^.*\/\([^/][^/]*\)\/*$/{
15359 s//\1/
15362 /^X\/\(\/\/\)$/{
15363 s//\1/
15366 /^X\/\(\/\).*/{
15367 s//\1/
15370 s/.*/./; q'`
15372 # Avoid depending upon Character Ranges.
15373 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15374 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15375 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15376 as_cr_digits='0123456789'
15377 as_cr_alnum=$as_cr_Letters$as_cr_digits
15379 ECHO_C= ECHO_N= ECHO_T=
15380 case `echo -n x` in #(((((
15381 -n*)
15382 case `echo 'xy\c'` in
15383 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15384 xy) ECHO_C='\c';;
15385 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15386 ECHO_T=' ';;
15387 esac;;
15389 ECHO_N='-n';;
15390 esac
15392 rm -f conf$$ conf$$.exe conf$$.file
15393 if test -d conf$$.dir; then
15394 rm -f conf$$.dir/conf$$.file
15395 else
15396 rm -f conf$$.dir
15397 mkdir conf$$.dir 2>/dev/null
15399 if (echo >conf$$.file) 2>/dev/null; then
15400 if ln -s conf$$.file conf$$ 2>/dev/null; then
15401 as_ln_s='ln -s'
15402 # ... but there are two gotchas:
15403 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15404 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15405 # In both cases, we have to default to `cp -pR'.
15406 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15407 as_ln_s='cp -pR'
15408 elif ln conf$$.file conf$$ 2>/dev/null; then
15409 as_ln_s=ln
15410 else
15411 as_ln_s='cp -pR'
15413 else
15414 as_ln_s='cp -pR'
15416 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15417 rmdir conf$$.dir 2>/dev/null
15420 # as_fn_mkdir_p
15421 # -------------
15422 # Create "$as_dir" as a directory, including parents if necessary.
15423 as_fn_mkdir_p ()
15426 case $as_dir in #(
15427 -*) as_dir=./$as_dir;;
15428 esac
15429 test -d "$as_dir" || eval $as_mkdir_p || {
15430 as_dirs=
15431 while :; do
15432 case $as_dir in #(
15433 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15434 *) as_qdir=$as_dir;;
15435 esac
15436 as_dirs="'$as_qdir' $as_dirs"
15437 as_dir=`$as_dirname -- "$as_dir" ||
15438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15439 X"$as_dir" : 'X\(//\)[^/]' \| \
15440 X"$as_dir" : 'X\(//\)$' \| \
15441 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15442 $as_echo X"$as_dir" |
15443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15444 s//\1/
15447 /^X\(\/\/\)[^/].*/{
15448 s//\1/
15451 /^X\(\/\/\)$/{
15452 s//\1/
15455 /^X\(\/\).*/{
15456 s//\1/
15459 s/.*/./; q'`
15460 test -d "$as_dir" && break
15461 done
15462 test -z "$as_dirs" || eval "mkdir $as_dirs"
15463 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15466 } # as_fn_mkdir_p
15467 if mkdir -p . 2>/dev/null; then
15468 as_mkdir_p='mkdir -p "$as_dir"'
15469 else
15470 test -d ./-p && rmdir ./-p
15471 as_mkdir_p=false
15475 # as_fn_executable_p FILE
15476 # -----------------------
15477 # Test if FILE is an executable regular file.
15478 as_fn_executable_p ()
15480 test -f "$1" && test -x "$1"
15481 } # as_fn_executable_p
15482 as_test_x='test -x'
15483 as_executable_p=as_fn_executable_p
15485 # Sed expression to map a string onto a valid CPP name.
15486 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15488 # Sed expression to map a string onto a valid variable name.
15489 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15492 exec 6>&1
15493 ## ----------------------------------- ##
15494 ## Main body of $CONFIG_STATUS script. ##
15495 ## ----------------------------------- ##
15496 _ASEOF
15497 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15500 # Save the log message, to keep $0 and so on meaningful, and to
15501 # report actual input values of CONFIG_FILES etc. instead of their
15502 # values after options handling.
15503 ac_log="
15504 This file was extended by $as_me, which was
15505 generated by GNU Autoconf 2.69. Invocation command line was
15507 CONFIG_FILES = $CONFIG_FILES
15508 CONFIG_HEADERS = $CONFIG_HEADERS
15509 CONFIG_LINKS = $CONFIG_LINKS
15510 CONFIG_COMMANDS = $CONFIG_COMMANDS
15511 $ $0 $@
15513 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15516 _ACEOF
15518 case $ac_config_files in *"
15519 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15520 esac
15522 case $ac_config_headers in *"
15523 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15524 esac
15527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15528 # Files that config.status was made for.
15529 config_files="$ac_config_files"
15530 config_headers="$ac_config_headers"
15531 config_commands="$ac_config_commands"
15533 _ACEOF
15535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15536 ac_cs_usage="\
15537 \`$as_me' instantiates files and other configuration actions
15538 from templates according to the current configuration. Unless the files
15539 and actions are specified as TAGs, all are instantiated by default.
15541 Usage: $0 [OPTION]... [TAG]...
15543 -h, --help print this help, then exit
15544 -V, --version print version number and configuration settings, then exit
15545 --config print configuration, then exit
15546 -q, --quiet, --silent
15547 do not print progress messages
15548 -d, --debug don't remove temporary files
15549 --recheck update $as_me by reconfiguring in the same conditions
15550 --file=FILE[:TEMPLATE]
15551 instantiate the configuration file FILE
15552 --header=FILE[:TEMPLATE]
15553 instantiate the configuration header FILE
15555 Configuration files:
15556 $config_files
15558 Configuration headers:
15559 $config_headers
15561 Configuration commands:
15562 $config_commands
15564 Report bugs to the package provider."
15566 _ACEOF
15567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15568 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15569 ac_cs_version="\\
15570 config.status
15571 configured by $0, generated by GNU Autoconf 2.69,
15572 with options \\"\$ac_cs_config\\"
15574 Copyright (C) 2012 Free Software Foundation, Inc.
15575 This config.status script is free software; the Free Software Foundation
15576 gives unlimited permission to copy, distribute and modify it."
15578 ac_pwd='$ac_pwd'
15579 srcdir='$srcdir'
15580 test -n "\$AWK" || AWK=awk
15581 _ACEOF
15583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15584 # The default lists apply if the user does not specify any file.
15585 ac_need_defaults=:
15586 while test $# != 0
15588 case $1 in
15589 --*=?*)
15590 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15591 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15592 ac_shift=:
15594 --*=)
15595 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15596 ac_optarg=
15597 ac_shift=:
15600 ac_option=$1
15601 ac_optarg=$2
15602 ac_shift=shift
15604 esac
15606 case $ac_option in
15607 # Handling of the options.
15608 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15609 ac_cs_recheck=: ;;
15610 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15611 $as_echo "$ac_cs_version"; exit ;;
15612 --config | --confi | --conf | --con | --co | --c )
15613 $as_echo "$ac_cs_config"; exit ;;
15614 --debug | --debu | --deb | --de | --d | -d )
15615 debug=: ;;
15616 --file | --fil | --fi | --f )
15617 $ac_shift
15618 case $ac_optarg in
15619 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15620 '') as_fn_error $? "missing file argument" ;;
15621 esac
15622 as_fn_append CONFIG_FILES " '$ac_optarg'"
15623 ac_need_defaults=false;;
15624 --header | --heade | --head | --hea )
15625 $ac_shift
15626 case $ac_optarg in
15627 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15628 esac
15629 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15630 ac_need_defaults=false;;
15631 --he | --h)
15632 # Conflict between --help and --header
15633 as_fn_error $? "ambiguous option: \`$1'
15634 Try \`$0 --help' for more information.";;
15635 --help | --hel | -h )
15636 $as_echo "$ac_cs_usage"; exit ;;
15637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15638 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15639 ac_cs_silent=: ;;
15641 # This is an error.
15642 -*) as_fn_error $? "unrecognized option: \`$1'
15643 Try \`$0 --help' for more information." ;;
15645 *) as_fn_append ac_config_targets " $1"
15646 ac_need_defaults=false ;;
15648 esac
15649 shift
15650 done
15652 ac_configure_extra_args=
15654 if $ac_cs_silent; then
15655 exec 6>/dev/null
15656 ac_configure_extra_args="$ac_configure_extra_args --silent"
15659 _ACEOF
15660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15661 if \$ac_cs_recheck; then
15662 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15663 shift
15664 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15665 CONFIG_SHELL='$SHELL'
15666 export CONFIG_SHELL
15667 exec "\$@"
15670 _ACEOF
15671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15672 exec 5>>config.log
15674 echo
15675 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15676 ## Running $as_me. ##
15677 _ASBOX
15678 $as_echo "$ac_log"
15679 } >&5
15681 _ACEOF
15682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15684 # INIT-COMMANDS
15686 aros_tools_dir=${aros_tools_dir}
15689 aros_host_exe_suffix=${aros_host_exe_suffix}
15690 aros_tools_dir=${aros_tools_dir}
15691 aros_target_cpu=${aros_target_cpu}
15692 aros_target_arch=${aros_target_arch}
15693 aros_target_suffix=${aros_target_suffix}
15694 orig_target_nm=${orig_target_nm}
15695 orig_target_as=${orig_target_as}
15696 orig_target_ar=${orig_target_ar}
15697 orig_target_ranlib=${orig_target_ranlib}
15698 orig_target_objdump=${orig_target_objdump}
15699 orig_target_objcopy=${orig_target_objcopy}
15700 orig_target_strip=${orig_target_strip}
15701 aros_kernel_ld=${aros_kernel_ld}
15705 aros_host_exe_suffix=${aros_host_exe_suffix}
15706 aros_tools_dir=${aros_tools_dir}
15707 aros_target_cpu=${aros_target_cpu}
15708 aros_target_arch=${aros_target_arch}
15709 aros_target_suffix=${aros_target_suffix}
15710 aros_kernel_ld=${aros_kernel_ld}
15714 aros_host_exe_suffix=${aros_host_exe_suffix}
15715 aros_tools_dir=${aros_tools_dir}
15716 aros_target_cpu=${aros_target_cpu}
15717 aros_target_arch=${aros_target_arch}
15718 aros_target_suffix=${aros_target_suffix}
15722 _ACEOF
15724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15726 # Handling of arguments.
15727 for ac_config_target in $ac_config_targets
15729 case $ac_config_target in
15730 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15731 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15732 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15733 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15734 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15735 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15736 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15737 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15738 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15739 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15740 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15741 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15742 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15743 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15744 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in" ;;
15745 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15746 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15747 "${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" ;;
15748 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15749 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15750 "${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" ;;
15751 "${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" ;;
15752 "${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" ;;
15753 "${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" ;;
15754 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15756 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15757 esac
15758 done
15761 # If the user did not use the arguments to specify the items to instantiate,
15762 # then the envvar interface is used. Set only those that are not.
15763 # We use the long form for the default assignment because of an extremely
15764 # bizarre bug on SunOS 4.1.3.
15765 if $ac_need_defaults; then
15766 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15767 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15768 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15771 # Have a temporary directory for convenience. Make it in the build tree
15772 # simply because there is no reason against having it here, and in addition,
15773 # creating and moving files from /tmp can sometimes cause problems.
15774 # Hook for its removal unless debugging.
15775 # Note that there is a small window in which the directory will not be cleaned:
15776 # after its creation but before its name has been assigned to `$tmp'.
15777 $debug ||
15779 tmp= ac_tmp=
15780 trap 'exit_status=$?
15781 : "${ac_tmp:=$tmp}"
15782 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15784 trap 'as_fn_exit 1' 1 2 13 15
15786 # Create a (secure) tmp directory for tmp files.
15789 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15790 test -d "$tmp"
15791 } ||
15793 tmp=./conf$$-$RANDOM
15794 (umask 077 && mkdir "$tmp")
15795 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15796 ac_tmp=$tmp
15798 # Set up the scripts for CONFIG_FILES section.
15799 # No need to generate them if there are no CONFIG_FILES.
15800 # This happens for instance with `./config.status config.h'.
15801 if test -n "$CONFIG_FILES"; then
15804 ac_cr=`echo X | tr X '\015'`
15805 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15806 # But we know of no other shell where ac_cr would be empty at this
15807 # point, so we can use a bashism as a fallback.
15808 if test "x$ac_cr" = x; then
15809 eval ac_cr=\$\'\\r\'
15811 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15812 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15813 ac_cs_awk_cr='\\r'
15814 else
15815 ac_cs_awk_cr=$ac_cr
15818 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15819 _ACEOF
15823 echo "cat >conf$$subs.awk <<_ACEOF" &&
15824 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15825 echo "_ACEOF"
15826 } >conf$$subs.sh ||
15827 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15828 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15829 ac_delim='%!_!# '
15830 for ac_last_try in false false false false false :; do
15831 . ./conf$$subs.sh ||
15832 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15834 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15835 if test $ac_delim_n = $ac_delim_num; then
15836 break
15837 elif $ac_last_try; then
15838 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15839 else
15840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15842 done
15843 rm -f conf$$subs.sh
15845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15846 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15847 _ACEOF
15848 sed -n '
15850 s/^/S["/; s/!.*/"]=/
15853 s/^[^!]*!//
15854 :repl
15855 t repl
15856 s/'"$ac_delim"'$//
15857 t delim
15860 s/\(.\{148\}\)..*/\1/
15861 t more1
15862 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15865 b repl
15866 :more1
15867 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15870 s/.\{148\}//
15871 t nl
15872 :delim
15874 s/\(.\{148\}\)..*/\1/
15875 t more2
15876 s/["\\]/\\&/g; s/^/"/; s/$/"/
15879 :more2
15880 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15883 s/.\{148\}//
15884 t delim
15885 ' <conf$$subs.awk | sed '
15886 /^[^""]/{
15888 s/\n//
15890 ' >>$CONFIG_STATUS || ac_write_fail=1
15891 rm -f conf$$subs.awk
15892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15893 _ACAWK
15894 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15895 for (key in S) S_is_set[key] = 1
15896 FS = "\a"
15900 line = $ 0
15901 nfields = split(line, field, "@")
15902 substed = 0
15903 len = length(field[1])
15904 for (i = 2; i < nfields; i++) {
15905 key = field[i]
15906 keylen = length(key)
15907 if (S_is_set[key]) {
15908 value = S[key]
15909 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15910 len += length(value) + length(field[++i])
15911 substed = 1
15912 } else
15913 len += 1 + keylen
15916 print line
15919 _ACAWK
15920 _ACEOF
15921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15922 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15923 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15924 else
15926 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15927 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15928 _ACEOF
15930 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15931 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15932 # trailing colons and then remove the whole line if VPATH becomes empty
15933 # (actually we leave an empty line to preserve line numbers).
15934 if test "x$srcdir" = x.; then
15935 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15937 s///
15938 s/^/:/
15939 s/[ ]*$/:/
15940 s/:\$(srcdir):/:/g
15941 s/:\${srcdir}:/:/g
15942 s/:@srcdir@:/:/g
15943 s/^:*//
15944 s/:*$//
15946 s/\(=[ ]*\).*/\1/
15948 s/\n//
15949 s/^[^=]*=[ ]*$//
15953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15954 fi # test -n "$CONFIG_FILES"
15956 # Set up the scripts for CONFIG_HEADERS section.
15957 # No need to generate them if there are no CONFIG_HEADERS.
15958 # This happens for instance with `./config.status Makefile'.
15959 if test -n "$CONFIG_HEADERS"; then
15960 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15961 BEGIN {
15962 _ACEOF
15964 # Transform confdefs.h into an awk script `defines.awk', embedded as
15965 # here-document in config.status, that substitutes the proper values into
15966 # config.h.in to produce config.h.
15968 # Create a delimiter string that does not exist in confdefs.h, to ease
15969 # handling of long lines.
15970 ac_delim='%!_!# '
15971 for ac_last_try in false false :; do
15972 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15973 if test -z "$ac_tt"; then
15974 break
15975 elif $ac_last_try; then
15976 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15977 else
15978 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15980 done
15982 # For the awk script, D is an array of macro values keyed by name,
15983 # likewise P contains macro parameters if any. Preserve backslash
15984 # newline sequences.
15986 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15987 sed -n '
15988 s/.\{148\}/&'"$ac_delim"'/g
15989 t rset
15990 :rset
15991 s/^[ ]*#[ ]*define[ ][ ]*/ /
15992 t def
15994 :def
15995 s/\\$//
15996 t bsnl
15997 s/["\\]/\\&/g
15998 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15999 D["\1"]=" \3"/p
16000 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16002 :bsnl
16003 s/["\\]/\\&/g
16004 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16005 D["\1"]=" \3\\\\\\n"\\/p
16006 t cont
16007 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16008 t cont
16010 :cont
16012 s/.\{148\}/&'"$ac_delim"'/g
16013 t clear
16014 :clear
16015 s/\\$//
16016 t bsnlc
16017 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16019 :bsnlc
16020 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16021 b cont
16022 ' <confdefs.h | sed '
16023 s/'"$ac_delim"'/"\\\
16024 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16027 for (key in D) D_is_set[key] = 1
16028 FS = "\a"
16030 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16031 line = \$ 0
16032 split(line, arg, " ")
16033 if (arg[1] == "#") {
16034 defundef = arg[2]
16035 mac1 = arg[3]
16036 } else {
16037 defundef = substr(arg[1], 2)
16038 mac1 = arg[2]
16040 split(mac1, mac2, "(") #)
16041 macro = mac2[1]
16042 prefix = substr(line, 1, index(line, defundef) - 1)
16043 if (D_is_set[macro]) {
16044 # Preserve the white space surrounding the "#".
16045 print prefix "define", macro P[macro] D[macro]
16046 next
16047 } else {
16048 # Replace #undef with comments. This is necessary, for example,
16049 # in the case of _POSIX_SOURCE, which is predefined and required
16050 # on some systems where configure will not decide to define it.
16051 if (defundef == "undef") {
16052 print "/*", prefix defundef, macro, "*/"
16053 next
16057 { print }
16058 _ACAWK
16059 _ACEOF
16060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16061 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16062 fi # test -n "$CONFIG_HEADERS"
16065 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16066 shift
16067 for ac_tag
16069 case $ac_tag in
16070 :[FHLC]) ac_mode=$ac_tag; continue;;
16071 esac
16072 case $ac_mode$ac_tag in
16073 :[FHL]*:*);;
16074 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16075 :[FH]-) ac_tag=-:-;;
16076 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16077 esac
16078 ac_save_IFS=$IFS
16079 IFS=:
16080 set x $ac_tag
16081 IFS=$ac_save_IFS
16082 shift
16083 ac_file=$1
16084 shift
16086 case $ac_mode in
16087 :L) ac_source=$1;;
16088 :[FH])
16089 ac_file_inputs=
16090 for ac_f
16092 case $ac_f in
16093 -) ac_f="$ac_tmp/stdin";;
16094 *) # Look for the file first in the build tree, then in the source tree
16095 # (if the path is not absolute). The absolute path cannot be DOS-style,
16096 # because $ac_f cannot contain `:'.
16097 test -f "$ac_f" ||
16098 case $ac_f in
16099 [\\/$]*) false;;
16100 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16101 esac ||
16102 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16103 esac
16104 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16105 as_fn_append ac_file_inputs " '$ac_f'"
16106 done
16108 # Let's still pretend it is `configure' which instantiates (i.e., don't
16109 # use $as_me), people would be surprised to read:
16110 # /* config.h. Generated by config.status. */
16111 configure_input='Generated from '`
16112 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16113 `' by configure.'
16114 if test x"$ac_file" != x-; then
16115 configure_input="$ac_file. $configure_input"
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16117 $as_echo "$as_me: creating $ac_file" >&6;}
16119 # Neutralize special characters interpreted by sed in replacement strings.
16120 case $configure_input in #(
16121 *\&* | *\|* | *\\* )
16122 ac_sed_conf_input=`$as_echo "$configure_input" |
16123 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16124 *) ac_sed_conf_input=$configure_input;;
16125 esac
16127 case $ac_tag in
16128 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16130 esac
16132 esac
16134 ac_dir=`$as_dirname -- "$ac_file" ||
16135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16136 X"$ac_file" : 'X\(//\)[^/]' \| \
16137 X"$ac_file" : 'X\(//\)$' \| \
16138 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16139 $as_echo X"$ac_file" |
16140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16141 s//\1/
16144 /^X\(\/\/\)[^/].*/{
16145 s//\1/
16148 /^X\(\/\/\)$/{
16149 s//\1/
16152 /^X\(\/\).*/{
16153 s//\1/
16156 s/.*/./; q'`
16157 as_dir="$ac_dir"; as_fn_mkdir_p
16158 ac_builddir=.
16160 case "$ac_dir" in
16161 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16163 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16164 # A ".." for each directory in $ac_dir_suffix.
16165 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16166 case $ac_top_builddir_sub in
16167 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16168 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16169 esac ;;
16170 esac
16171 ac_abs_top_builddir=$ac_pwd
16172 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16173 # for backward compatibility:
16174 ac_top_builddir=$ac_top_build_prefix
16176 case $srcdir in
16177 .) # We are building in place.
16178 ac_srcdir=.
16179 ac_top_srcdir=$ac_top_builddir_sub
16180 ac_abs_top_srcdir=$ac_pwd ;;
16181 [\\/]* | ?:[\\/]* ) # Absolute name.
16182 ac_srcdir=$srcdir$ac_dir_suffix;
16183 ac_top_srcdir=$srcdir
16184 ac_abs_top_srcdir=$srcdir ;;
16185 *) # Relative name.
16186 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16187 ac_top_srcdir=$ac_top_build_prefix$srcdir
16188 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16189 esac
16190 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16193 case $ac_mode in
16196 # CONFIG_FILE
16199 _ACEOF
16201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16202 # If the template does not know about datarootdir, expand it.
16203 # FIXME: This hack should be removed a few years after 2.60.
16204 ac_datarootdir_hack=; ac_datarootdir_seen=
16205 ac_sed_dataroot='
16206 /datarootdir/ {
16210 /@datadir@/p
16211 /@docdir@/p
16212 /@infodir@/p
16213 /@localedir@/p
16214 /@mandir@/p'
16215 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16216 *datarootdir*) ac_datarootdir_seen=yes;;
16217 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16219 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16220 _ACEOF
16221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16222 ac_datarootdir_hack='
16223 s&@datadir@&$datadir&g
16224 s&@docdir@&$docdir&g
16225 s&@infodir@&$infodir&g
16226 s&@localedir@&$localedir&g
16227 s&@mandir@&$mandir&g
16228 s&\\\${datarootdir}&$datarootdir&g' ;;
16229 esac
16230 _ACEOF
16232 # Neutralize VPATH when `$srcdir' = `.'.
16233 # Shell code in configure.ac might set extrasub.
16234 # FIXME: do we really want to maintain this feature?
16235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16236 ac_sed_extra="$ac_vpsub
16237 $extrasub
16238 _ACEOF
16239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16241 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16242 s|@configure_input@|$ac_sed_conf_input|;t t
16243 s&@top_builddir@&$ac_top_builddir_sub&;t t
16244 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16245 s&@srcdir@&$ac_srcdir&;t t
16246 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16247 s&@top_srcdir@&$ac_top_srcdir&;t t
16248 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16249 s&@builddir@&$ac_builddir&;t t
16250 s&@abs_builddir@&$ac_abs_builddir&;t t
16251 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16252 $ac_datarootdir_hack
16254 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16255 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16257 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16258 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16259 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16260 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16262 which seems to be undefined. Please make sure it is defined" >&5
16263 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16264 which seems to be undefined. Please make sure it is defined" >&2;}
16266 rm -f "$ac_tmp/stdin"
16267 case $ac_file in
16268 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16269 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16270 esac \
16271 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16275 # CONFIG_HEADER
16277 if test x"$ac_file" != x-; then
16279 $as_echo "/* $configure_input */" \
16280 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16281 } >"$ac_tmp/config.h" \
16282 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16283 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16285 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16286 else
16287 rm -f "$ac_file"
16288 mv "$ac_tmp/config.h" "$ac_file" \
16289 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16291 else
16292 $as_echo "/* $configure_input */" \
16293 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16294 || as_fn_error $? "could not create -" "$LINENO" 5
16298 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16299 $as_echo "$as_me: executing $ac_file commands" >&6;}
16301 esac
16304 case $ac_file$ac_mode in
16305 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16306 "binutils-support":C)
16307 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16308 mkdir -p $prefix
16309 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16311 chmod a+x ${prefix2}-ld
16313 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16314 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16315 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16316 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16317 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16318 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16319 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16321 "elf-compiler-support":C)
16322 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16323 mkdir -p $prefix
16324 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16326 chmod a+x ${prefix2}-gcc
16328 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16330 "host-compiler-wrapper-support":C)
16331 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16332 mkdir -p $prefix
16333 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16335 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16338 esac
16339 done # for ac_tag
16342 as_fn_exit 0
16343 _ACEOF
16344 ac_clean_files=$ac_clean_files_save
16346 test $ac_write_fail = 0 ||
16347 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16350 # configure is writing to config.log, and then calls config.status.
16351 # config.status does its own redirection, appending to config.log.
16352 # Unfortunately, on DOS this fails, as config.log is still kept open
16353 # by configure, so config.status won't be able to write to it; its
16354 # output is simply discarded. So we exec the FD to /dev/null,
16355 # effectively closing config.log, so it can be properly (re)opened and
16356 # appended to by config.status. When coming back to configure, we
16357 # need to make the FD available again.
16358 if test "$no_create" != yes; then
16359 ac_cs_success=:
16360 ac_config_status_args=
16361 test "$silent" = yes &&
16362 ac_config_status_args="$ac_config_status_args --quiet"
16363 exec 5>/dev/null
16364 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16365 exec 5>>config.log
16366 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16367 # would make configure fail if this is the last instruction.
16368 $ac_cs_success || as_fn_exit 1
16370 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16372 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16377 #XXX compatability...
16378 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16380 if test -n "$aros_shared_cflags" ; then
16381 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16382 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg