make sure libatomic isn't requested on hosted ports.
[AROS.git] / configure
blob5620c718bc34629a5e8b6f9058bc6f1380df1913
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 aros_host_sdl_libs
626 aros_host_sdl_cflags
627 aros_host_x11_ldflags
628 aros_host_x11_cflags
629 DO_VIDMODE_SUPPORT
630 DO_XSHM_SUPPORT
631 ENABLE_X11
632 KERNEL_DBUS_INCLUDES
633 KERNEL_DBUS_KOBJ
634 DBUS_LIBFLAGS
635 DBUS_CFLAGS
636 ENABLE_DBUS
637 java_target
638 objc_target
639 target_binutils_version
640 gcc_target_cpu
641 ignore_undefined_symbols
642 aros_modules_debug
643 aros_stack_debug
644 aros_mungwall_debug
645 aros_debug
646 aros_android_antapk
647 aros_android_level
648 aros_ios_sdk
649 aros_ios_version
650 aros_ios_platform
651 aros_palm_debug_hack
652 gcc_default_mode
653 gcc_default_float_abi
654 gcc_default_fpu
655 gcc_default_cpu_tune
656 gcc_default_cpu
657 aros_nesting_supervisor
658 target_grub2_version
659 aros_enable_mmu
660 ENABLE_EXECSMP
661 PLATFORM_EXECSMP
662 aros_serial_debug
663 aros_nominal_depth
664 aros_nominal_height
665 aros_nominal_width
666 pci_hidd_target
667 use_libatomic
668 crosstools_cxx_target
669 crosstools_target
670 aros_isa_flags
671 aros_isa_extra
672 aros_optimization_cflags
673 aros_config_coverage
674 aros_config_lto
675 aros_target_strip_flags
676 aros_target_genmap
677 aros_debug_ldflags
678 aros_debug_aflags
679 aros_debug_cxxflags
680 aros_debug_cflags
681 aros_debug_cppflags
682 aros_kernel_ldflags
683 aros_kernel_objcflags
684 aros_kernel_includes
685 aros_kernel_cflags
686 aros_kernel_cppflags
687 aros_kernel_sysroot
688 aros_config_ldflags
689 aros_config_aflags
690 aros_config_cxxflags
691 aros_config_cflags
692 aros_config_cppflags
693 aros_nowarn_flags
694 aros_warn_flags
695 aros_shared_ldflags
696 aros_shared_aflags
697 aros_shared_cflags
698 aros_cxx_libs
699 aros_c_libs
700 spec_obj_format
701 aros_object_format
702 aros_shared_ld
703 aros_shared_default
704 aros_target_nm
705 aros_target_strip
706 aros_target_objcopy
707 aros_target_objdump
708 aros_target_cc_path
709 aros_target_cc_includes
710 aros_target_ld
711 aros_target_as
712 aros_target_cpp
713 aros_target_cxx
714 aros_target_cc
715 aros_plain_ar
716 aros_plain_nm
717 aros_target_ranlib
718 aros_target_ar
719 aros_target_suffix
720 aros_target_variant
721 aros_target_cpu_mode
722 aros_target_cpu
723 aros_target_family
724 aros_target_arch
725 aros_target_bootloader
726 aros_target_iconset
727 aros_target_guitheme
728 aros_target_options
729 target_extra_cfg
730 make_extra_targetcfg
731 make_extra_commands
732 aros_elf_translate
733 aros_tools_dir
734 aros_host_lib_suffix
735 aros_host_exe_suffix
736 aros_host_mkargs
737 aros_host_mkdep
738 aros_host_debug
739 aros_host_ldflags
740 gnu89_inline
741 aros_host_cxxflags
742 aros_host_cflags
743 aros_host_cppflags
744 aros_host_make
745 aros_host_cxx
746 aros_host_cc
747 aros_host_def_cc
748 aros_host_cpp
749 aros_host_cpu
750 aros_host_arch
751 aros_cc_pre
752 host_extra_cfg
753 host_stat_h__unused_used
754 aros_amigaos_compliance
755 AROS_PORTSSRCDIR
756 AROS_CROSSTOOLSDIR
757 SRCDIR
758 AROS_BUILDDIR_UNIX
759 AROS_BUILDDIR
760 aros_build_host
761 aros_toolchain_ld
762 aros_target_toolchain
763 aros_flavour_uc
764 aros_flavour
765 aros_cpu
766 aros_arch
767 SDL_LIBS
768 SDL_CFLAGS
769 SDL_CONFIG
770 XMKMF
771 kernel_cflags_iquote_end
772 kernel_cflags_iquote
773 host_cflags_iquote_end
774 host_cflags_iquote
775 aros_toolchain
776 aros_target_nostdlib_ldflags
777 aros_target_detach_ldflags
778 aros_target_nix_ldflags
779 aros_target_nostartup_ldflags
780 aros_target_nostdinc_cflags
781 aros_kernel_rescomp
782 orig_target_objdump
783 orig_target_objcopy
784 orig_target_strip
785 orig_target_nm
786 orig_target_ranlib
787 orig_target_ar
788 orig_target_as
789 orig_target_ld
790 orig_target_cxx
791 orig_target_cc
792 orig_target_cpp
793 aros_kernel_objdump
794 aros_kernel_objcopy
795 aros_kernel_strip
796 aros_kernel_nm
797 aros_kernel_ranlib
798 aros_kernel_ar
799 aros_kernel_as
800 aros_kernel_ld
801 aros_kernel_cxx
802 aros_kernel_cc
803 aros_kernel_cpp
804 target_gcc_version
806 android_tool
807 CCACHE
808 DISTCC
809 LIBOBJS
810 EGREP
811 GREP
813 TEST
816 libpng_incdir
817 libpng_libextra
818 libpng
819 arosconfig_use_libpngconfig
820 pkgpyexecdir
821 pyexecdir
822 pkgpythondir
823 pythondir
824 PYTHON_PLATFORM
825 PYTHON_EXEC_PREFIX
826 PYTHON_PREFIX
827 PYTHON_VERSION
828 PYTHON
829 PATCH
830 CHMOD
832 PPMTOILBM
833 PNGTOPNM
834 FLEX
835 BISON
838 UNIQ
839 SORT
840 TOUCH
841 MKDIR
842 ECHO
846 aros_host_strip
847 aros_host_ranlib
848 aros_host_ar
849 aros_host_automake
850 aros_host_autoheader
851 aros_host_autoconf
852 aros_host_aclocal
853 aros_host_ld
854 MMAKE
857 ac_ct_CC
858 CFLAGS
860 OBJEXT
861 EXEEXT
862 ac_ct_CXX
863 CPPFLAGS
864 LDFLAGS
865 CXXFLAGS
867 host_os
868 host_vendor
869 host_cpu
870 host
871 build_os
872 build_vendor
873 build_cpu
874 build
875 target_alias
876 host_alias
877 build_alias
878 LIBS
879 ECHO_T
880 ECHO_N
881 ECHO_C
882 DEFS
883 mandir
884 localedir
885 libdir
886 psdir
887 pdfdir
888 dvidir
889 htmldir
890 infodir
891 docdir
892 oldincludedir
893 includedir
894 runstatedir
895 localstatedir
896 sharedstatedir
897 sysconfdir
898 datadir
899 datarootdir
900 libexecdir
901 sbindir
902 bindir
903 program_transform_name
904 prefix
905 exec_prefix
906 PACKAGE_URL
907 PACKAGE_BUGREPORT
908 PACKAGE_STRING
909 PACKAGE_VERSION
910 PACKAGE_TARNAME
911 PACKAGE_NAME
912 PATH_SEPARATOR
913 SHELL'
914 ac_subst_files=''
915 ac_user_opts='
916 enable_option_checking
917 with_c_compiler
918 with_cxx_compiler
919 enable_libpng_config
920 with_toolchain
921 enable_lto
922 enable_coverage
923 enable_build_type
924 enable_debug
925 enable_distcc
926 enable_ccache
927 with_kernel_gcc_version
928 with_optimization
929 with_paranoia
930 enable_target_variant
931 with_xcode
932 with_sdk_version
933 with_sdk
934 with_ndk
935 with_ndk_version
936 with_apk_version
937 enable_amigaos_compliance
938 with_kernel_toolchain_prefix
939 with_elf_toolchain_prefix
940 with_aros_toolchain
941 enable_crosstools
942 with_aros_toolchain_install
943 with_binutils_version
944 with_gcc_version
945 enable_objc
946 enable_java
947 with_cpu
948 with_fpu
949 with_float
950 with_portssources
951 with_bootloader
952 with_iconset
953 with_theme
954 enable_includes
955 with_resolution
956 with_serial_debug
957 enable_palm_debug_hack
958 enable_usb30_code
959 enable_nesting_supervisor
960 enable_mmu
961 enable_x11_hidd
962 with_x
963 enable_x11_shm
964 enable_x11_vidmode
965 enable_sdl_hidd
966 with_sdl_prefix
967 with_sdl_exec_prefix
968 enable_sdltest
969 enable_dbus
971 ac_precious_vars='build_alias
972 host_alias
973 target_alias
975 CXXFLAGS
976 LDFLAGS
977 LIBS
978 CPPFLAGS
981 CFLAGS
983 PYTHON
984 XMKMF'
987 # Initialize some variables set by options.
988 ac_init_help=
989 ac_init_version=false
990 ac_unrecognized_opts=
991 ac_unrecognized_sep=
992 # The variables have the same names as the options, with
993 # dashes changed to underlines.
994 cache_file=/dev/null
995 exec_prefix=NONE
996 no_create=
997 no_recursion=
998 prefix=NONE
999 program_prefix=NONE
1000 program_suffix=NONE
1001 program_transform_name=s,x,x,
1002 silent=
1003 site=
1004 srcdir=
1005 verbose=
1006 x_includes=NONE
1007 x_libraries=NONE
1009 # Installation directory options.
1010 # These are left unexpanded so users can "make install exec_prefix=/foo"
1011 # and all the variables that are supposed to be based on exec_prefix
1012 # by default will actually change.
1013 # Use braces instead of parens because sh, perl, etc. also accept them.
1014 # (The list follows the same order as the GNU Coding Standards.)
1015 bindir='${exec_prefix}/bin'
1016 sbindir='${exec_prefix}/sbin'
1017 libexecdir='${exec_prefix}/libexec'
1018 datarootdir='${prefix}/share'
1019 datadir='${datarootdir}'
1020 sysconfdir='${prefix}/etc'
1021 sharedstatedir='${prefix}/com'
1022 localstatedir='${prefix}/var'
1023 runstatedir='${localstatedir}/run'
1024 includedir='${prefix}/include'
1025 oldincludedir='/usr/include'
1026 docdir='${datarootdir}/doc/${PACKAGE}'
1027 infodir='${datarootdir}/info'
1028 htmldir='${docdir}'
1029 dvidir='${docdir}'
1030 pdfdir='${docdir}'
1031 psdir='${docdir}'
1032 libdir='${exec_prefix}/lib'
1033 localedir='${datarootdir}/locale'
1034 mandir='${datarootdir}/man'
1036 ac_prev=
1037 ac_dashdash=
1038 for ac_option
1040 # If the previous option needs an argument, assign it.
1041 if test -n "$ac_prev"; then
1042 eval $ac_prev=\$ac_option
1043 ac_prev=
1044 continue
1047 case $ac_option in
1048 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1049 *=) ac_optarg= ;;
1050 *) ac_optarg=yes ;;
1051 esac
1053 # Accept the important Cygnus configure options, so we can diagnose typos.
1055 case $ac_dashdash$ac_option in
1057 ac_dashdash=yes ;;
1059 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1060 ac_prev=bindir ;;
1061 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1062 bindir=$ac_optarg ;;
1064 -build | --build | --buil | --bui | --bu)
1065 ac_prev=build_alias ;;
1066 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1067 build_alias=$ac_optarg ;;
1069 -cache-file | --cache-file | --cache-fil | --cache-fi \
1070 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1071 ac_prev=cache_file ;;
1072 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1073 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1074 cache_file=$ac_optarg ;;
1076 --config-cache | -C)
1077 cache_file=config.cache ;;
1079 -datadir | --datadir | --datadi | --datad)
1080 ac_prev=datadir ;;
1081 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1082 datadir=$ac_optarg ;;
1084 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1085 | --dataroo | --dataro | --datar)
1086 ac_prev=datarootdir ;;
1087 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1088 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1089 datarootdir=$ac_optarg ;;
1091 -disable-* | --disable-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid feature name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1100 "enable_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval enable_$ac_useropt=no ;;
1107 -docdir | --docdir | --docdi | --doc | --do)
1108 ac_prev=docdir ;;
1109 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1110 docdir=$ac_optarg ;;
1112 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1113 ac_prev=dvidir ;;
1114 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1115 dvidir=$ac_optarg ;;
1117 -enable-* | --enable-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid feature name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1126 "enable_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval enable_$ac_useropt=\$ac_optarg ;;
1133 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1134 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1135 | --exec | --exe | --ex)
1136 ac_prev=exec_prefix ;;
1137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1139 | --exec=* | --exe=* | --ex=*)
1140 exec_prefix=$ac_optarg ;;
1142 -gas | --gas | --ga | --g)
1143 # Obsolete; use --with-gas.
1144 with_gas=yes ;;
1146 -help | --help | --hel | --he | -h)
1147 ac_init_help=long ;;
1148 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1149 ac_init_help=recursive ;;
1150 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1151 ac_init_help=short ;;
1153 -host | --host | --hos | --ho)
1154 ac_prev=host_alias ;;
1155 -host=* | --host=* | --hos=* | --ho=*)
1156 host_alias=$ac_optarg ;;
1158 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1159 ac_prev=htmldir ;;
1160 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1161 | --ht=*)
1162 htmldir=$ac_optarg ;;
1164 -includedir | --includedir | --includedi | --included | --include \
1165 | --includ | --inclu | --incl | --inc)
1166 ac_prev=includedir ;;
1167 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1168 | --includ=* | --inclu=* | --incl=* | --inc=*)
1169 includedir=$ac_optarg ;;
1171 -infodir | --infodir | --infodi | --infod | --info | --inf)
1172 ac_prev=infodir ;;
1173 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1174 infodir=$ac_optarg ;;
1176 -libdir | --libdir | --libdi | --libd)
1177 ac_prev=libdir ;;
1178 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1179 libdir=$ac_optarg ;;
1181 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1182 | --libexe | --libex | --libe)
1183 ac_prev=libexecdir ;;
1184 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1185 | --libexe=* | --libex=* | --libe=*)
1186 libexecdir=$ac_optarg ;;
1188 -localedir | --localedir | --localedi | --localed | --locale)
1189 ac_prev=localedir ;;
1190 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1191 localedir=$ac_optarg ;;
1193 -localstatedir | --localstatedir | --localstatedi | --localstated \
1194 | --localstate | --localstat | --localsta | --localst | --locals)
1195 ac_prev=localstatedir ;;
1196 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1197 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1198 localstatedir=$ac_optarg ;;
1200 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1201 ac_prev=mandir ;;
1202 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1203 mandir=$ac_optarg ;;
1205 -nfp | --nfp | --nf)
1206 # Obsolete; use --without-fp.
1207 with_fp=no ;;
1209 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1210 | --no-cr | --no-c | -n)
1211 no_create=yes ;;
1213 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1214 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1215 no_recursion=yes ;;
1217 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1218 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1219 | --oldin | --oldi | --old | --ol | --o)
1220 ac_prev=oldincludedir ;;
1221 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1222 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1223 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1224 oldincludedir=$ac_optarg ;;
1226 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1227 ac_prev=prefix ;;
1228 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1229 prefix=$ac_optarg ;;
1231 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1232 | --program-pre | --program-pr | --program-p)
1233 ac_prev=program_prefix ;;
1234 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1235 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1236 program_prefix=$ac_optarg ;;
1238 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1239 | --program-suf | --program-su | --program-s)
1240 ac_prev=program_suffix ;;
1241 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1242 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1243 program_suffix=$ac_optarg ;;
1245 -program-transform-name | --program-transform-name \
1246 | --program-transform-nam | --program-transform-na \
1247 | --program-transform-n | --program-transform- \
1248 | --program-transform | --program-transfor \
1249 | --program-transfo | --program-transf \
1250 | --program-trans | --program-tran \
1251 | --progr-tra | --program-tr | --program-t)
1252 ac_prev=program_transform_name ;;
1253 -program-transform-name=* | --program-transform-name=* \
1254 | --program-transform-nam=* | --program-transform-na=* \
1255 | --program-transform-n=* | --program-transform-=* \
1256 | --program-transform=* | --program-transfor=* \
1257 | --program-transfo=* | --program-transf=* \
1258 | --program-trans=* | --program-tran=* \
1259 | --progr-tra=* | --program-tr=* | --program-t=*)
1260 program_transform_name=$ac_optarg ;;
1262 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1263 ac_prev=pdfdir ;;
1264 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1265 pdfdir=$ac_optarg ;;
1267 -psdir | --psdir | --psdi | --psd | --ps)
1268 ac_prev=psdir ;;
1269 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1270 psdir=$ac_optarg ;;
1272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1273 | -silent | --silent | --silen | --sile | --sil)
1274 silent=yes ;;
1276 -runstatedir | --runstatedir | --runstatedi | --runstated \
1277 | --runstate | --runstat | --runsta | --runst | --runs \
1278 | --run | --ru | --r)
1279 ac_prev=runstatedir ;;
1280 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1281 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1282 | --run=* | --ru=* | --r=*)
1283 runstatedir=$ac_optarg ;;
1285 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1286 ac_prev=sbindir ;;
1287 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1288 | --sbi=* | --sb=*)
1289 sbindir=$ac_optarg ;;
1291 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1292 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1293 | --sharedst | --shareds | --shared | --share | --shar \
1294 | --sha | --sh)
1295 ac_prev=sharedstatedir ;;
1296 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1297 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1298 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1299 | --sha=* | --sh=*)
1300 sharedstatedir=$ac_optarg ;;
1302 -site | --site | --sit)
1303 ac_prev=site ;;
1304 -site=* | --site=* | --sit=*)
1305 site=$ac_optarg ;;
1307 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1308 ac_prev=srcdir ;;
1309 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1310 srcdir=$ac_optarg ;;
1312 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1313 | --syscon | --sysco | --sysc | --sys | --sy)
1314 ac_prev=sysconfdir ;;
1315 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1316 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1317 sysconfdir=$ac_optarg ;;
1319 -target | --target | --targe | --targ | --tar | --ta | --t)
1320 ac_prev=target_alias ;;
1321 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1322 target_alias=$ac_optarg ;;
1324 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1325 verbose=yes ;;
1327 -version | --version | --versio | --versi | --vers | -V)
1328 ac_init_version=: ;;
1330 -with-* | --with-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334 as_fn_error $? "invalid package name: $ac_useropt"
1335 ac_useropt_orig=$ac_useropt
1336 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1339 "with_$ac_useropt"
1340 "*) ;;
1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1342 ac_unrecognized_sep=', ';;
1343 esac
1344 eval with_$ac_useropt=\$ac_optarg ;;
1346 -without-* | --without-*)
1347 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350 as_fn_error $? "invalid package name: $ac_useropt"
1351 ac_useropt_orig=$ac_useropt
1352 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353 case $ac_user_opts in
1355 "with_$ac_useropt"
1356 "*) ;;
1357 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1358 ac_unrecognized_sep=', ';;
1359 esac
1360 eval with_$ac_useropt=no ;;
1362 --x)
1363 # Obsolete; use --with-x.
1364 with_x=yes ;;
1366 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1367 | --x-incl | --x-inc | --x-in | --x-i)
1368 ac_prev=x_includes ;;
1369 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1370 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1371 x_includes=$ac_optarg ;;
1373 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1374 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1375 ac_prev=x_libraries ;;
1376 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1377 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1378 x_libraries=$ac_optarg ;;
1380 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1381 Try \`$0 --help' for more information"
1384 *=*)
1385 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1386 # Reject names that are not valid shell variable names.
1387 case $ac_envvar in #(
1388 '' | [0-9]* | *[!_$as_cr_alnum]* )
1389 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1390 esac
1391 eval $ac_envvar=\$ac_optarg
1392 export $ac_envvar ;;
1395 # FIXME: should be removed in autoconf 3.0.
1396 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1397 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1398 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1399 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1402 esac
1403 done
1405 if test -n "$ac_prev"; then
1406 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1407 as_fn_error $? "missing argument to $ac_option"
1410 if test -n "$ac_unrecognized_opts"; then
1411 case $enable_option_checking in
1412 no) ;;
1413 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1414 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1415 esac
1418 # Check all directory arguments for consistency.
1419 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1420 datadir sysconfdir sharedstatedir localstatedir includedir \
1421 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1422 libdir localedir mandir runstatedir
1424 eval ac_val=\$$ac_var
1425 # Remove trailing slashes.
1426 case $ac_val in
1427 */ )
1428 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1429 eval $ac_var=\$ac_val;;
1430 esac
1431 # Be sure to have absolute directory names.
1432 case $ac_val in
1433 [\\/$]* | ?:[\\/]* ) continue;;
1434 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1435 esac
1436 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1437 done
1439 # There might be people who depend on the old broken behavior: `$host'
1440 # used to hold the argument of --host etc.
1441 # FIXME: To remove some day.
1442 build=$build_alias
1443 host=$host_alias
1444 target=$target_alias
1446 # FIXME: To remove some day.
1447 if test "x$host_alias" != x; then
1448 if test "x$build_alias" = x; then
1449 cross_compiling=maybe
1450 elif test "x$build_alias" != "x$host_alias"; then
1451 cross_compiling=yes
1455 ac_tool_prefix=
1456 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1458 test "$silent" = yes && exec 6>/dev/null
1461 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1462 ac_ls_di=`ls -di .` &&
1463 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1464 as_fn_error $? "working directory cannot be determined"
1465 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1466 as_fn_error $? "pwd does not report name of working directory"
1469 # Find the source files, if location was not specified.
1470 if test -z "$srcdir"; then
1471 ac_srcdir_defaulted=yes
1472 # Try the directory containing this script, then the parent directory.
1473 ac_confdir=`$as_dirname -- "$as_myself" ||
1474 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1475 X"$as_myself" : 'X\(//\)[^/]' \| \
1476 X"$as_myself" : 'X\(//\)$' \| \
1477 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1478 $as_echo X"$as_myself" |
1479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1480 s//\1/
1483 /^X\(\/\/\)[^/].*/{
1484 s//\1/
1487 /^X\(\/\/\)$/{
1488 s//\1/
1491 /^X\(\/\).*/{
1492 s//\1/
1495 s/.*/./; q'`
1496 srcdir=$ac_confdir
1497 if test ! -r "$srcdir/$ac_unique_file"; then
1498 srcdir=..
1500 else
1501 ac_srcdir_defaulted=no
1503 if test ! -r "$srcdir/$ac_unique_file"; then
1504 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1505 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1507 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1508 ac_abs_confdir=`(
1509 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1510 pwd)`
1511 # When building in place, set srcdir=.
1512 if test "$ac_abs_confdir" = "$ac_pwd"; then
1513 srcdir=.
1515 # Remove unnecessary trailing slashes from srcdir.
1516 # Double slashes in file names in object file debugging info
1517 # mess up M-x gdb in Emacs.
1518 case $srcdir in
1519 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1520 esac
1521 for ac_var in $ac_precious_vars; do
1522 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1523 eval ac_env_${ac_var}_value=\$${ac_var}
1524 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1525 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1526 done
1529 # Report the --help message.
1531 if test "$ac_init_help" = "long"; then
1532 # Omit some internal or obsolete options to make the list less imposing.
1533 # This message is too long to be a string in the A/UX 3.1 sh.
1534 cat <<_ACEOF
1535 \`configure' configures this package to adapt to many kinds of systems.
1537 Usage: $0 [OPTION]... [VAR=VALUE]...
1539 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1540 VAR=VALUE. See below for descriptions of some of the useful variables.
1542 Defaults for the options are specified in brackets.
1544 Configuration:
1545 -h, --help display this help and exit
1546 --help=short display options specific to this package
1547 --help=recursive display the short help of all the included packages
1548 -V, --version display version information and exit
1549 -q, --quiet, --silent do not print \`checking ...' messages
1550 --cache-file=FILE cache test results in FILE [disabled]
1551 -C, --config-cache alias for \`--cache-file=config.cache'
1552 -n, --no-create do not create output files
1553 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1555 Installation directories:
1556 --prefix=PREFIX install architecture-independent files in PREFIX
1557 [$ac_default_prefix]
1558 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1559 [PREFIX]
1561 By default, \`make install' will install all the files in
1562 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1563 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1564 for instance \`--prefix=\$HOME'.
1566 For better control, use the options below.
1568 Fine tuning of the installation directories:
1569 --bindir=DIR user executables [EPREFIX/bin]
1570 --sbindir=DIR system admin executables [EPREFIX/sbin]
1571 --libexecdir=DIR program executables [EPREFIX/libexec]
1572 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1573 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1574 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1575 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1576 --libdir=DIR object code libraries [EPREFIX/lib]
1577 --includedir=DIR C header files [PREFIX/include]
1578 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1579 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1580 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1581 --infodir=DIR info documentation [DATAROOTDIR/info]
1582 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1583 --mandir=DIR man documentation [DATAROOTDIR/man]
1584 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1585 --htmldir=DIR html documentation [DOCDIR]
1586 --dvidir=DIR dvi documentation [DOCDIR]
1587 --pdfdir=DIR pdf documentation [DOCDIR]
1588 --psdir=DIR ps documentation [DOCDIR]
1589 _ACEOF
1591 cat <<\_ACEOF
1593 X features:
1594 --x-includes=DIR X include files are in DIR
1595 --x-libraries=DIR X library files are in DIR
1597 System types:
1598 --build=BUILD configure for building on BUILD [guessed]
1599 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1600 _ACEOF
1603 if test -n "$ac_init_help"; then
1605 cat <<\_ACEOF
1607 Optional Features:
1608 --disable-option-checking ignore unrecognized --enable/--with options
1609 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1610 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1611 --disable-libpng-config disable libpng-config test and configuration
1612 --enable-lto=yes|no Enable link time optimizations if the target
1613 compiler supports them (default=no)
1614 --enable-coverage=yes|no
1615 Enable coverage instrumentation if the target
1616 compiler supports it (default=no)
1617 --enable-build-type=TYPE
1618 Select the build type. Available types are:
1619 personal, nightly, snapshot, milestone, release. Do
1620 NOT use this option unless you know what you are
1621 doing! (default=personal)
1622 --enable-debug=list Enable different types of debug. Commas or
1623 whitespaces can be used to separate the items in the
1624 list. Available types of debug are: all, none,
1625 messages, stack, mungwall, modules, symbols. If no
1626 list is provided then "all" is assumed.
1627 (default=none)
1628 --enable-distcc Use distcc as a front end to the compiler
1629 (default=no).
1630 --enable-ccache Use ccache as a front end to the compiler
1631 (default=no).
1632 --enable-target-variant=NAME
1633 Enable a specific target variant (default=none)
1634 --enable-amigaos-compliance=VERSION
1635 Enforce userspace AmigaOS compliance to a specific
1636 KickStart version (default=none).
1637 --disable-crosstools Do not build cross-compiler toolchain
1638 --enable-objc Enable Objectve-C support (default=no)
1639 --enable-java Enable Java support (default=no)
1640 --enable-includes=dir Alternative system include directory
1641 --enable-palm-debug-hack
1642 Enable palm debug output hack in palm native
1643 (default=no)
1644 --enable-usb30-code Enable usb3.0 code (default=no)
1645 --enable-nesting-supervisor
1646 Enable nesting supervisor support in unix
1647 (default=no)
1648 --disable-mmu Disable MMU support (default=enabled)
1649 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1650 --enable-x11-shm use X11 shared memory (default=auto)
1651 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1652 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1653 --disable-sdltest Do not try to compile and run a test SDL program
1654 --enable-dbus Enable DBUS support via dbus.library (default=no)
1656 Optional Packages:
1657 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1658 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1659 --with-c-compiler=VERSION
1660 Use specified c compiler for building AROS
1661 --with-cxx-compiler=VERSION
1662 Use specified c++ compiler building AROS
1663 --with-toolchain=family Which toolchain family to crosscompile with
1664 (defaults to gnu)
1665 --with-kernel-gcc-version=VERSION
1666 Use gcc-VERSION for building bootstrap
1667 --with-optimization=FLAGS
1668 Use optimization flags FLAGS (e.g
1669 --with-optimization=-O2).
1670 --with-paranoia=(yes|no|FLAGS)
1671 Specific compiler warning FLAGS to enable for
1672 paranoia builds (default=-Wall -Werror)
1673 --with-xcode=PATH Specify XCode path for iOS targets
1674 (default=/Developer).
1675 --with-sdk-version=VERSION
1676 Use iOS SDK version VERSION (default=4.1).
1677 --with-sdk=PATH Specify Android SDK path
1678 (default=$default_android_sdk).
1679 --with-ndk=PATH Specify Android NDK path (default=none).
1680 --with-sdk-version=LEVEL
1681 Use Android SDK for API LEVEL (default=12).
1682 --with-ndk-version=LEVEL
1683 Use Android NDK for API LEVEL (default=9).
1684 --with-apk-version=(release|debug)
1685 Which version of AROSBootstrap.apk to compile.
1686 Release version needs key for signing, debug version
1687 will only run in emulator. (default=release)
1688 --with-kernel-toolchain-prefix=...
1689 Specify crosscompile toolchain prefix for kernel
1690 objects
1691 --with-elf-toolchain-prefix=...
1692 Specify crosscompile toolchain prefix to wrap for
1693 AROS objects
1694 --with-aros-toolchain=PREFIX
1695 Specify prebuilt AROS toolchain. Use yes for default
1696 name
1697 --with-aros-toolchain-install=DIR
1698 Where to install or search for cross tools binaries
1699 --with-binutils-version=VERSION
1700 Use binutils-VERSION for building AROS
1701 --with-gcc-version=VERSION
1702 Compile gcc-VERSION for AROS
1703 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1704 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1705 --with-float=<spec> Specify floating point ABI
1706 (default=$gcc_default_float_abi).
1707 --with-portssources=DIR Where to download sourcecode for external ports
1708 --with-bootloader=NAME Use a specific bootloader
1709 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1710 --with-theme=NAME Use a specific GUI Theme
1711 --with-resolution=XRESxYRESxDEPTH
1712 Default resolution of the initial WorkbenchScreen
1713 --with-serial-debug Enable serial debug output in native (default=no)
1714 --with-x use the X Window System
1715 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1716 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1718 Some influential environment variables:
1719 CXX C++ compiler command
1720 CXXFLAGS C++ compiler flags
1721 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1722 nonstandard directory <lib dir>
1723 LIBS libraries to pass to the linker, e.g. -l<library>
1724 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1725 you have headers in a nonstandard directory <include dir>
1726 CC C compiler command
1727 CFLAGS C compiler flags
1728 CPP C preprocessor
1729 PYTHON the Python interpreter
1730 XMKMF Path to xmkmf, Makefile generator for X Window System
1732 Use these variables to override the choices made by `configure' or to help
1733 it to find libraries and programs with nonstandard names/locations.
1735 Report bugs to the package provider.
1736 _ACEOF
1737 ac_status=$?
1740 if test "$ac_init_help" = "recursive"; then
1741 # If there are subdirs, report their specific --help.
1742 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1743 test -d "$ac_dir" ||
1744 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1745 continue
1746 ac_builddir=.
1748 case "$ac_dir" in
1749 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1751 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1752 # A ".." for each directory in $ac_dir_suffix.
1753 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1754 case $ac_top_builddir_sub in
1755 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1756 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1757 esac ;;
1758 esac
1759 ac_abs_top_builddir=$ac_pwd
1760 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1761 # for backward compatibility:
1762 ac_top_builddir=$ac_top_build_prefix
1764 case $srcdir in
1765 .) # We are building in place.
1766 ac_srcdir=.
1767 ac_top_srcdir=$ac_top_builddir_sub
1768 ac_abs_top_srcdir=$ac_pwd ;;
1769 [\\/]* | ?:[\\/]* ) # Absolute name.
1770 ac_srcdir=$srcdir$ac_dir_suffix;
1771 ac_top_srcdir=$srcdir
1772 ac_abs_top_srcdir=$srcdir ;;
1773 *) # Relative name.
1774 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1775 ac_top_srcdir=$ac_top_build_prefix$srcdir
1776 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1777 esac
1778 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1780 cd "$ac_dir" || { ac_status=$?; continue; }
1781 # Check for guested configure.
1782 if test -f "$ac_srcdir/configure.gnu"; then
1783 echo &&
1784 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1785 elif test -f "$ac_srcdir/configure"; then
1786 echo &&
1787 $SHELL "$ac_srcdir/configure" --help=recursive
1788 else
1789 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1790 fi || ac_status=$?
1791 cd "$ac_pwd" || { ac_status=$?; break; }
1792 done
1795 test -n "$ac_init_help" && exit $ac_status
1796 if $ac_init_version; then
1797 cat <<\_ACEOF
1798 configure
1799 generated by GNU Autoconf 2.69
1801 Copyright (C) 2012 Free Software Foundation, Inc.
1802 This configure script is free software; the Free Software Foundation
1803 gives unlimited permission to copy, distribute and modify it.
1804 _ACEOF
1805 exit
1808 ## ------------------------ ##
1809 ## Autoconf initialization. ##
1810 ## ------------------------ ##
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 ac_retval=1
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1848 } # ac_fn_cxx_try_compile
1850 # ac_fn_c_try_compile LINENO
1851 # --------------------------
1852 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_compile ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext
1857 if { { ac_try="$ac_compile"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_compile") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_c_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest.$ac_objext; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=1
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 as_fn_set_status $ac_retval
1886 } # ac_fn_c_try_compile
1888 # ac_fn_c_try_cpp LINENO
1889 # ----------------------
1890 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_c_try_cpp ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_cpp conftest.$ac_ext"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } > conftest.i && {
1910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1911 test ! -s conftest.err
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 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1923 } # ac_fn_c_try_cpp
1925 # ac_fn_c_try_link LINENO
1926 # -----------------------
1927 # Try to link conftest.$ac_ext, and return whether this succeeded.
1928 ac_fn_c_try_link ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 rm -f conftest.$ac_objext conftest$ac_exeext
1932 if { { ac_try="$ac_link"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_link") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_c_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest$ac_exeext && {
1951 test "$cross_compiling" = yes ||
1952 test -x conftest$ac_exeext
1953 }; then :
1954 ac_retval=0
1955 else
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1959 ac_retval=1
1961 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1962 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1963 # interfere with the next link command; also delete a directory that is
1964 # left behind by Apple's compiler. We do this before executing the actions.
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status $ac_retval
1969 } # ac_fn_c_try_link
1971 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1972 # -------------------------------------------------------
1973 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1974 # the include files in INCLUDES and setting the cache variable VAR
1975 # accordingly.
1976 ac_fn_c_check_header_mongrel ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if eval \${$3+:} false; then :
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 else
1989 # Is the header compilable?
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1991 $as_echo_n "checking $2 usability... " >&6; }
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_header_compiler=yes
1999 else
2000 ac_header_compiler=no
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2004 $as_echo "$ac_header_compiler" >&6; }
2006 # Is the header present?
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2008 $as_echo_n "checking $2 presence... " >&6; }
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 #include <$2>
2012 _ACEOF
2013 if ac_fn_c_try_cpp "$LINENO"; then :
2014 ac_header_preproc=yes
2015 else
2016 ac_header_preproc=no
2018 rm -f conftest.err conftest.i conftest.$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2020 $as_echo "$ac_header_preproc" >&6; }
2022 # So? What about this header?
2023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2024 yes:no: )
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2026 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2028 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2030 no:yes:* )
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2032 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2034 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2036 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2038 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2040 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042 esac
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if eval \${$3+:} false; then :
2046 $as_echo_n "(cached) " >&6
2047 else
2048 eval "$3=\$ac_header_compiler"
2050 eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_header_mongrel
2058 # ac_fn_c_try_run LINENO
2059 # ----------------------
2060 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2061 # that executables *can* be run.
2062 ac_fn_c_try_run ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 if { { ac_try="$ac_link"
2066 case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069 esac
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_link") 2>&5
2073 ac_status=$?
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2076 { { case "(($ac_try" in
2077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2079 esac
2080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_try") 2>&5
2083 ac_status=$?
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; }; }; then :
2086 ac_retval=0
2087 else
2088 $as_echo "$as_me: program exited with status $ac_status" >&5
2089 $as_echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.$ac_ext >&5
2092 ac_retval=$ac_status
2094 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096 as_fn_set_status $ac_retval
2098 } # ac_fn_c_try_run
2100 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2101 # -------------------------------------------------------
2102 # Tests whether HEADER exists and can be compiled using the include files in
2103 # INCLUDES, setting the cache variable VAR accordingly.
2104 ac_fn_c_check_header_compile ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110 $as_echo_n "(cached) " >&6
2111 else
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2115 #include <$2>
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2118 eval "$3=yes"
2119 else
2120 eval "$3=no"
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 } # ac_fn_c_check_header_compile
2131 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2132 # ----------------------------------------------------
2133 # Tries to find if the field MEMBER exists in type AGGR, after including
2134 # INCLUDES, setting cache variable VAR accordingly.
2135 ac_fn_c_check_member ()
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2139 $as_echo_n "checking for $2.$3... " >&6; }
2140 if eval \${$4+:} false; then :
2141 $as_echo_n "(cached) " >&6
2142 else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2147 main ()
2149 static $2 ac_aggr;
2150 if (ac_aggr.$3)
2151 return 0;
2153 return 0;
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 eval "$4=yes"
2158 else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2163 main ()
2165 static $2 ac_aggr;
2166 if (sizeof ac_aggr.$3)
2167 return 0;
2169 return 0;
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 eval "$4=yes"
2174 else
2175 eval "$4=no"
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 eval ac_res=\$$4
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 } # ac_fn_c_check_member
2188 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2189 # ---------------------------------------------
2190 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2191 # accordingly.
2192 ac_fn_c_check_decl ()
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 as_decl_name=`echo $2|sed 's/ *(.*//'`
2196 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2198 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2199 if eval \${$3+:} false; then :
2200 $as_echo_n "(cached) " >&6
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2206 main ()
2208 #ifndef $as_decl_name
2209 #ifdef __cplusplus
2210 (void) $as_decl_use;
2211 #else
2212 (void) $as_decl_name;
2213 #endif
2214 #endif
2217 return 0;
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"; then :
2221 eval "$3=yes"
2222 else
2223 eval "$3=no"
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 eval ac_res=\$$3
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2229 $as_echo "$ac_res" >&6; }
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232 } # ac_fn_c_check_decl
2234 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2235 # -------------------------------------------
2236 # Tests whether TYPE exists after having included INCLUDES, setting cache
2237 # variable VAR accordingly.
2238 ac_fn_c_check_type ()
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242 $as_echo_n "checking for $2... " >&6; }
2243 if eval \${$3+:} false; then :
2244 $as_echo_n "(cached) " >&6
2245 else
2246 eval "$3=no"
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2251 main ()
2253 if (sizeof ($2))
2254 return 0;
2256 return 0;
2258 _ACEOF
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2264 main ()
2266 if (sizeof (($2)))
2267 return 0;
2269 return 0;
2271 _ACEOF
2272 if ac_fn_c_try_compile "$LINENO"; then :
2274 else
2275 eval "$3=yes"
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 eval ac_res=\$$3
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 $as_echo "$ac_res" >&6; }
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286 } # ac_fn_c_check_type
2288 # ac_fn_c_check_func LINENO FUNC VAR
2289 # ----------------------------------
2290 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2291 ac_fn_c_check_func ()
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2295 $as_echo_n "checking for $2... " >&6; }
2296 if eval \${$3+:} false; then :
2297 $as_echo_n "(cached) " >&6
2298 else
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2301 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2303 #define $2 innocuous_$2
2305 /* System header to define __stub macros and hopefully few prototypes,
2306 which can conflict with char $2 (); below.
2307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2308 <limits.h> exists even on freestanding compilers. */
2310 #ifdef __STDC__
2311 # include <limits.h>
2312 #else
2313 # include <assert.h>
2314 #endif
2316 #undef $2
2318 /* Override any GCC internal prototype to avoid an error.
2319 Use char because int might match the return type of a GCC
2320 builtin and then its argument prototype would still apply. */
2321 #ifdef __cplusplus
2322 extern "C"
2323 #endif
2324 char $2 ();
2325 /* The GNU C library defines this for functions which it implements
2326 to always fail with ENOSYS. Some functions are actually named
2327 something starting with __ and the normal name is an alias. */
2328 #if defined __stub_$2 || defined __stub___$2
2329 choke me
2330 #endif
2333 main ()
2335 return $2 ();
2337 return 0;
2339 _ACEOF
2340 if ac_fn_c_try_link "$LINENO"; then :
2341 eval "$3=yes"
2342 else
2343 eval "$3=no"
2345 rm -f core conftest.err conftest.$ac_objext \
2346 conftest$ac_exeext conftest.$ac_ext
2348 eval ac_res=\$$3
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353 } # ac_fn_c_check_func
2354 cat >config.log <<_ACEOF
2355 This file contains any messages produced by compilers while
2356 running configure, to aid debugging if configure makes a mistake.
2358 It was created by $as_me, which was
2359 generated by GNU Autoconf 2.69. Invocation command line was
2361 $ $0 $@
2363 _ACEOF
2364 exec 5>>config.log
2366 cat <<_ASUNAME
2367 ## --------- ##
2368 ## Platform. ##
2369 ## --------- ##
2371 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2372 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2373 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2374 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2375 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2377 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2378 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2380 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2381 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2382 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2383 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2384 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2385 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2386 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2388 _ASUNAME
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 $as_echo "PATH: $as_dir"
2396 done
2397 IFS=$as_save_IFS
2399 } >&5
2401 cat >&5 <<_ACEOF
2404 ## ----------- ##
2405 ## Core tests. ##
2406 ## ----------- ##
2408 _ACEOF
2411 # Keep a trace of the command line.
2412 # Strip out --no-create and --no-recursion so they do not pile up.
2413 # Strip out --silent because we don't want to record it for future runs.
2414 # Also quote any args containing shell meta-characters.
2415 # Make two passes to allow for proper duplicate-argument suppression.
2416 ac_configure_args=
2417 ac_configure_args0=
2418 ac_configure_args1=
2419 ac_must_keep_next=false
2420 for ac_pass in 1 2
2422 for ac_arg
2424 case $ac_arg in
2425 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2427 | -silent | --silent | --silen | --sile | --sil)
2428 continue ;;
2429 *\'*)
2430 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2431 esac
2432 case $ac_pass in
2433 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2435 as_fn_append ac_configure_args1 " '$ac_arg'"
2436 if test $ac_must_keep_next = true; then
2437 ac_must_keep_next=false # Got value, back to normal.
2438 else
2439 case $ac_arg in
2440 *=* | --config-cache | -C | -disable-* | --disable-* \
2441 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2442 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2443 | -with-* | --with-* | -without-* | --without-* | --x)
2444 case "$ac_configure_args0 " in
2445 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2446 esac
2448 -* ) ac_must_keep_next=true ;;
2449 esac
2451 as_fn_append ac_configure_args " '$ac_arg'"
2453 esac
2454 done
2455 done
2456 { ac_configure_args0=; unset ac_configure_args0;}
2457 { ac_configure_args1=; unset ac_configure_args1;}
2459 # When interrupted or exit'd, cleanup temporary files, and complete
2460 # config.log. We remove comments because anyway the quotes in there
2461 # would cause problems or look ugly.
2462 # WARNING: Use '\'' to represent an apostrophe within the trap.
2463 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2464 trap 'exit_status=$?
2465 # Save into config.log some information that might help in debugging.
2467 echo
2469 $as_echo "## ---------------- ##
2470 ## Cache variables. ##
2471 ## ---------------- ##"
2472 echo
2473 # The following way of writing the cache mishandles newlines in values,
2475 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2476 eval ac_val=\$$ac_var
2477 case $ac_val in #(
2478 *${as_nl}*)
2479 case $ac_var in #(
2480 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2482 esac
2483 case $ac_var in #(
2484 _ | IFS | as_nl) ;; #(
2485 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2486 *) { eval $ac_var=; unset $ac_var;} ;;
2487 esac ;;
2488 esac
2489 done
2490 (set) 2>&1 |
2491 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2492 *${as_nl}ac_space=\ *)
2493 sed -n \
2494 "s/'\''/'\''\\\\'\'''\''/g;
2495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2496 ;; #(
2498 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2500 esac |
2501 sort
2503 echo
2505 $as_echo "## ----------------- ##
2506 ## Output variables. ##
2507 ## ----------------- ##"
2508 echo
2509 for ac_var in $ac_subst_vars
2511 eval ac_val=\$$ac_var
2512 case $ac_val in
2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514 esac
2515 $as_echo "$ac_var='\''$ac_val'\''"
2516 done | sort
2517 echo
2519 if test -n "$ac_subst_files"; then
2520 $as_echo "## ------------------- ##
2521 ## File substitutions. ##
2522 ## ------------------- ##"
2523 echo
2524 for ac_var in $ac_subst_files
2526 eval ac_val=\$$ac_var
2527 case $ac_val in
2528 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2529 esac
2530 $as_echo "$ac_var='\''$ac_val'\''"
2531 done | sort
2532 echo
2535 if test -s confdefs.h; then
2536 $as_echo "## ----------- ##
2537 ## confdefs.h. ##
2538 ## ----------- ##"
2539 echo
2540 cat confdefs.h
2541 echo
2543 test "$ac_signal" != 0 &&
2544 $as_echo "$as_me: caught signal $ac_signal"
2545 $as_echo "$as_me: exit $exit_status"
2546 } >&5
2547 rm -f core *.core core.conftest.* &&
2548 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2549 exit $exit_status
2551 for ac_signal in 1 2 13 15; do
2552 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2553 done
2554 ac_signal=0
2556 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2557 rm -f -r conftest* confdefs.h
2559 $as_echo "/* confdefs.h */" > confdefs.h
2561 # Predefined preprocessor variables.
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_NAME "$PACKAGE_NAME"
2565 _ACEOF
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2569 _ACEOF
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2573 _ACEOF
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_STRING "$PACKAGE_STRING"
2577 _ACEOF
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2581 _ACEOF
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_URL "$PACKAGE_URL"
2585 _ACEOF
2588 # Let the site file select an alternate cache file if it wants to.
2589 # Prefer an explicitly selected file to automatically selected ones.
2590 ac_site_file1=NONE
2591 ac_site_file2=NONE
2592 if test -n "$CONFIG_SITE"; then
2593 # We do not want a PATH search for config.site.
2594 case $CONFIG_SITE in #((
2595 -*) ac_site_file1=./$CONFIG_SITE;;
2596 */*) ac_site_file1=$CONFIG_SITE;;
2597 *) ac_site_file1=./$CONFIG_SITE;;
2598 esac
2599 elif test "x$prefix" != xNONE; then
2600 ac_site_file1=$prefix/share/config.site
2601 ac_site_file2=$prefix/etc/config.site
2602 else
2603 ac_site_file1=$ac_default_prefix/share/config.site
2604 ac_site_file2=$ac_default_prefix/etc/config.site
2606 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2608 test "x$ac_site_file" = xNONE && continue
2609 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2611 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2612 sed 's/^/| /' "$ac_site_file" >&5
2613 . "$ac_site_file" \
2614 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 as_fn_error $? "failed to load site script $ac_site_file
2617 See \`config.log' for more details" "$LINENO" 5; }
2619 done
2621 if test -r "$cache_file"; then
2622 # Some versions of bash will fail to source /dev/null (special files
2623 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2624 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2626 $as_echo "$as_me: loading cache $cache_file" >&6;}
2627 case $cache_file in
2628 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2629 *) . "./$cache_file";;
2630 esac
2632 else
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2634 $as_echo "$as_me: creating cache $cache_file" >&6;}
2635 >$cache_file
2638 as_fn_append ac_header_list " stdlib.h"
2639 as_fn_append ac_header_list " unistd.h"
2640 as_fn_append ac_header_list " sys/param.h"
2641 # Check that the precious variables saved in the cache have kept the same
2642 # value.
2643 ac_cache_corrupted=false
2644 for ac_var in $ac_precious_vars; do
2645 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2646 eval ac_new_set=\$ac_env_${ac_var}_set
2647 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2648 eval ac_new_val=\$ac_env_${ac_var}_value
2649 case $ac_old_set,$ac_new_set in
2650 set,)
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2652 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2653 ac_cache_corrupted=: ;;
2654 ,set)
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2656 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2657 ac_cache_corrupted=: ;;
2658 ,);;
2660 if test "x$ac_old_val" != "x$ac_new_val"; then
2661 # differences in whitespace do not lead to failure.
2662 ac_old_val_w=`echo x $ac_old_val`
2663 ac_new_val_w=`echo x $ac_new_val`
2664 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2666 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2667 ac_cache_corrupted=:
2668 else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2670 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2671 eval $ac_var=\$ac_old_val
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2674 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2676 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2677 fi;;
2678 esac
2679 # Pass precious variables to config.status.
2680 if test "$ac_new_set" = set; then
2681 case $ac_new_val in
2682 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2683 *) ac_arg=$ac_var=$ac_new_val ;;
2684 esac
2685 case " $ac_configure_args " in
2686 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2687 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2688 esac
2690 done
2691 if $ac_cache_corrupted; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2695 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2696 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2698 ## -------------------- ##
2699 ## Main body of script. ##
2700 ## -------------------- ##
2702 ac_ext=c
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710 ac_aux_dir=
2711 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2712 if test -f "$ac_dir/install-sh"; then
2713 ac_aux_dir=$ac_dir
2714 ac_install_sh="$ac_aux_dir/install-sh -c"
2715 break
2716 elif test -f "$ac_dir/install.sh"; then
2717 ac_aux_dir=$ac_dir
2718 ac_install_sh="$ac_aux_dir/install.sh -c"
2719 break
2720 elif test -f "$ac_dir/shtool"; then
2721 ac_aux_dir=$ac_dir
2722 ac_install_sh="$ac_aux_dir/shtool install -c"
2723 break
2725 done
2726 if test -z "$ac_aux_dir"; then
2727 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2730 # These three variables are undocumented and unsupported,
2731 # and are intended to be withdrawn in a future Autoconf release.
2732 # They can cause serious problems if a builder's source tree is in a directory
2733 # whose full name contains unusual characters.
2734 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2735 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2736 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2740 # Check what host we are running on.
2741 # If a target is not suggested, we use this one.
2742 # Note that what we call a target, Autoconf calls a host.
2743 # Make sure we can run config.sub.
2744 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2745 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2748 $as_echo_n "checking build system type... " >&6; }
2749 if ${ac_cv_build+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 ac_build_alias=$build_alias
2753 test "x$ac_build_alias" = x &&
2754 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2755 test "x$ac_build_alias" = x &&
2756 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2757 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2758 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2762 $as_echo "$ac_cv_build" >&6; }
2763 case $ac_cv_build in
2764 *-*-*) ;;
2765 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2766 esac
2767 build=$ac_cv_build
2768 ac_save_IFS=$IFS; IFS='-'
2769 set x $ac_cv_build
2770 shift
2771 build_cpu=$1
2772 build_vendor=$2
2773 shift; shift
2774 # Remember, the first character of IFS is used to create $*,
2775 # except with old shells:
2776 build_os=$*
2777 IFS=$ac_save_IFS
2778 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2782 $as_echo_n "checking host system type... " >&6; }
2783 if ${ac_cv_host+:} false; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 if test "x$host_alias" = x; then
2787 ac_cv_host=$ac_cv_build
2788 else
2789 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2790 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2795 $as_echo "$ac_cv_host" >&6; }
2796 case $ac_cv_host in
2797 *-*-*) ;;
2798 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2799 esac
2800 host=$ac_cv_host
2801 ac_save_IFS=$IFS; IFS='-'
2802 set x $ac_cv_host
2803 shift
2804 host_cpu=$1
2805 host_vendor=$2
2806 shift; shift
2807 # Remember, the first character of IFS is used to create $*,
2808 # except with old shells:
2809 host_os=$*
2810 IFS=$ac_save_IFS
2811 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2815 # Default versions for the gnu tools we build
2816 default_toolchain_family=`cat ${srcdir}/config/toolchain_def`
2817 default_gcc_version=`cat ${srcdir}/config/gcc_def`
2818 exp_gcc_version=`cat ${srcdir}/config/gcc_exp`
2819 default_binutils_version=`cat ${srcdir}/config/binutils_def`
2820 exp_binutils_version=`cat ${srcdir}/config/binutils_exp`
2821 default_grub2_version="2.02"
2822 target_grub2_version=$default_grub2_version
2824 # The AROS target is slightly different to the normal GNU style
2825 # format. We don't have the middle part, and we reverse the order
2826 # of the $(CPU) and $(OS) bits.
2828 # Don't strip the version of the target yet, it might be
2829 # useful on some systems.
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2832 $as_echo_n "checking for AROS style target... " >&6; }
2834 if test "$target" = "NONE" ; then
2835 target=$host_os-$host_cpu
2836 else
2837 if test "$target" = "" ; then
2838 target=$host_os-$host_cpu
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2842 $as_echo "$target" >&6; }
2844 if test "$host_os" = "mingw32" ; then
2845 PWDCMD="pwd -W"
2848 # Don't know where else to put this...
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2850 $as_echo_n "checking building AROS in... " >&6; }
2851 AROS_BUILDDIR=`${PWDCMD-pwd}`
2852 AROS_BUILDDIR_UNIX=${PWD}
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2854 $as_echo "$AROS_BUILDDIR" >&6; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2857 $as_echo_n "checking AROS source in... " >&6; }
2858 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2859 SRCDIR=${srcpwd}
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2861 $as_echo "$SRCDIR" >&6; }
2863 # Parse the target field into something useful.
2865 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2866 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2869 # Some debug output, to be removed again.
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2871 $as_echo_n "checking for target system (debug output)... " >&6; }
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2873 $as_echo "$target_os" >&6; }
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2875 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2877 $as_echo "$target_cpu" >&6; }
2879 aros_nominal_width=800
2880 aros_nominal_height=600
2881 aros_nominal_depth=4
2884 default_c_compilers="gcc clang cc"
2886 # Check whether --with-c-compiler was given.
2887 if test "${with_c_compiler+set}" = set; then :
2888 withval=$with_c_compiler; use_c_compiler="$withval"
2889 else
2890 use_c_compiler=""
2893 if test "$use_c_compiler" = ""; then
2894 host_c_compilers="$default_c_compilers"
2895 else
2896 host_c_compilers="$use_c_compiler"
2899 default_cxx_compilers="g++ clang++ c++"
2901 # Check whether --with-cxx-compiler was given.
2902 if test "${with_cxx_compiler+set}" = set; then :
2903 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2904 else
2905 use_cxx_compiler=""
2908 if test "$use_cxx_compiler" = ""; then
2909 host_cxx_compilers="$default_cxx_compilers"
2910 else
2911 host_cxx_compilers="$use_cxx_compiler"
2915 # The first step is to find the host binaries.
2916 # Check for a compiler.
2917 # Due to a bug in autoconf check for c++ compiler first.
2918 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2919 ac_ext=cpp
2920 ac_cpp='$CXXCPP $CPPFLAGS'
2921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2924 if test -z "$CXX"; then
2925 if test -n "$CCC"; then
2926 CXX=$CCC
2927 else
2928 if test -n "$ac_tool_prefix"; then
2929 for ac_prog in ${host_cxx_compilers}
2931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_CXX+:} false; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 if test -n "$CXX"; then
2939 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2952 done
2953 done
2954 IFS=$as_save_IFS
2958 CXX=$ac_cv_prog_CXX
2959 if test -n "$CXX"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2961 $as_echo "$CXX" >&6; }
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2968 test -n "$CXX" && break
2969 done
2971 if test -z "$CXX"; then
2972 ac_ct_CXX=$CXX
2973 for ac_prog in ${host_cxx_compilers}
2975 # Extract the first word of "$ac_prog", so it can be a program name with args.
2976 set dummy $ac_prog; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 if test -n "$ac_ct_CXX"; then
2983 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_ac_ct_CXX="$ac_prog"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2996 done
2997 done
2998 IFS=$as_save_IFS
3002 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3003 if test -n "$ac_ct_CXX"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3005 $as_echo "$ac_ct_CXX" >&6; }
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3012 test -n "$ac_ct_CXX" && break
3013 done
3015 if test "x$ac_ct_CXX" = x; then
3016 CXX="g++"
3017 else
3018 case $cross_compiling:$ac_tool_warned in
3019 yes:)
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022 ac_tool_warned=yes ;;
3023 esac
3024 CXX=$ac_ct_CXX
3030 # Provide some information about the compiler.
3031 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3032 set X $ac_compile
3033 ac_compiler=$2
3034 for ac_option in --version -v -V -qversion; do
3035 { { ac_try="$ac_compiler $ac_option >&5"
3036 case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039 esac
3040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3041 $as_echo "$ac_try_echo"; } >&5
3042 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3043 ac_status=$?
3044 if test -s conftest.err; then
3045 sed '10a\
3046 ... rest of stderr output deleted ...
3047 10q' conftest.err >conftest.er1
3048 cat conftest.er1 >&5
3050 rm -f conftest.er1 conftest.err
3051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }
3053 done
3055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056 /* end confdefs.h. */
3059 main ()
3063 return 0;
3065 _ACEOF
3066 ac_clean_files_save=$ac_clean_files
3067 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3068 # Try to create an executable without -o first, disregard a.out.
3069 # It will help us diagnose broken compilers, and finding out an intuition
3070 # of exeext.
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3072 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3073 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3075 # The possible output files:
3076 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3078 ac_rmfiles=
3079 for ac_file in $ac_files
3081 case $ac_file in
3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3083 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3084 esac
3085 done
3086 rm -f $ac_rmfiles
3088 if { { ac_try="$ac_link_default"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095 (eval "$ac_link_default") 2>&5
3096 ac_status=$?
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }; then :
3099 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3100 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3101 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3102 # so that the user can short-circuit this test for compilers unknown to
3103 # Autoconf.
3104 for ac_file in $ac_files ''
3106 test -f "$ac_file" || continue
3107 case $ac_file in
3108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3110 [ab].out )
3111 # We found the default executable, but exeext='' is most
3112 # certainly right.
3113 break;;
3114 *.* )
3115 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3116 then :; else
3117 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3119 # We set ac_cv_exeext here because the later test for it is not
3120 # safe: cross compilers may not add the suffix if given an `-o'
3121 # argument, so we may need to know it at that point already.
3122 # Even if this section looks crufty: it has the advantage of
3123 # actually working.
3124 break;;
3126 break;;
3127 esac
3128 done
3129 test "$ac_cv_exeext" = no && ac_cv_exeext=
3131 else
3132 ac_file=''
3134 if test -z "$ac_file"; then :
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 $as_echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error 77 "C++ compiler cannot create executables
3143 See \`config.log' for more details" "$LINENO" 5; }
3144 else
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3146 $as_echo "yes" >&6; }
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3149 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3151 $as_echo "$ac_file" >&6; }
3152 ac_exeext=$ac_cv_exeext
3154 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3155 ac_clean_files=$ac_clean_files_save
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3157 $as_echo_n "checking for suffix of executables... " >&6; }
3158 if { { ac_try="$ac_link"
3159 case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162 esac
3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_link") 2>&5
3166 ac_status=$?
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }; then :
3169 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3170 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3171 # work properly (i.e., refer to `conftest.exe'), while it won't with
3172 # `rm'.
3173 for ac_file in conftest.exe conftest conftest.*; do
3174 test -f "$ac_file" || continue
3175 case $ac_file in
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3177 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3178 break;;
3179 * ) break;;
3180 esac
3181 done
3182 else
3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3186 See \`config.log' for more details" "$LINENO" 5; }
3188 rm -f conftest conftest$ac_cv_exeext
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3190 $as_echo "$ac_cv_exeext" >&6; }
3192 rm -f conftest.$ac_ext
3193 EXEEXT=$ac_cv_exeext
3194 ac_exeext=$EXEEXT
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h. */
3197 #include <stdio.h>
3199 main ()
3201 FILE *f = fopen ("conftest.out", "w");
3202 return ferror (f) || fclose (f) != 0;
3205 return 0;
3207 _ACEOF
3208 ac_clean_files="$ac_clean_files conftest.out"
3209 # Check that the compiler produces executables we can run. If not, either
3210 # the compiler is broken, or we cross compile.
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3212 $as_echo_n "checking whether we are cross compiling... " >&6; }
3213 if test "$cross_compiling" != yes; then
3214 { { ac_try="$ac_link"
3215 case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218 esac
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 $as_echo "$ac_try_echo"; } >&5
3221 (eval "$ac_link") 2>&5
3222 ac_status=$?
3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }
3225 if { ac_try='./conftest$ac_cv_exeext'
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_try") 2>&5
3233 ac_status=$?
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }; }; then
3236 cross_compiling=no
3237 else
3238 if test "$cross_compiling" = maybe; then
3239 cross_compiling=yes
3240 else
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error $? "cannot run C++ compiled programs.
3244 If you meant to cross compile, use \`--host'.
3245 See \`config.log' for more details" "$LINENO" 5; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3250 $as_echo "$cross_compiling" >&6; }
3252 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3253 ac_clean_files=$ac_clean_files_save
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3255 $as_echo_n "checking for suffix of object files... " >&6; }
3256 if ${ac_cv_objext+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3263 main ()
3267 return 0;
3269 _ACEOF
3270 rm -f conftest.o conftest.obj
3271 if { { ac_try="$ac_compile"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 $as_echo "$ac_try_echo"; } >&5
3278 (eval "$ac_compile") 2>&5
3279 ac_status=$?
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }; then :
3282 for ac_file in conftest.o conftest.obj conftest.*; do
3283 test -f "$ac_file" || continue;
3284 case $ac_file in
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3287 break;;
3288 esac
3289 done
3290 else
3291 $as_echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error $? "cannot compute suffix of object files: cannot compile
3297 See \`config.log' for more details" "$LINENO" 5; }
3299 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3302 $as_echo "$ac_cv_objext" >&6; }
3303 OBJEXT=$ac_cv_objext
3304 ac_objext=$OBJEXT
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3306 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3307 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3314 main ()
3316 #ifndef __GNUC__
3317 choke me
3318 #endif
3321 return 0;
3323 _ACEOF
3324 if ac_fn_cxx_try_compile "$LINENO"; then :
3325 ac_compiler_gnu=yes
3326 else
3327 ac_compiler_gnu=no
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3334 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3335 if test $ac_compiler_gnu = yes; then
3336 GXX=yes
3337 else
3338 GXX=
3340 ac_test_CXXFLAGS=${CXXFLAGS+set}
3341 ac_save_CXXFLAGS=$CXXFLAGS
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3343 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3344 if ${ac_cv_prog_cxx_g+:} false; then :
3345 $as_echo_n "(cached) " >&6
3346 else
3347 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3348 ac_cxx_werror_flag=yes
3349 ac_cv_prog_cxx_g=no
3350 CXXFLAGS="-g"
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3355 main ()
3359 return 0;
3361 _ACEOF
3362 if ac_fn_cxx_try_compile "$LINENO"; then :
3363 ac_cv_prog_cxx_g=yes
3364 else
3365 CXXFLAGS=""
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3370 main ()
3374 return 0;
3376 _ACEOF
3377 if ac_fn_cxx_try_compile "$LINENO"; then :
3379 else
3380 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3381 CXXFLAGS="-g"
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3386 main ()
3390 return 0;
3392 _ACEOF
3393 if ac_fn_cxx_try_compile "$LINENO"; then :
3394 ac_cv_prog_cxx_g=yes
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3404 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3405 if test "$ac_test_CXXFLAGS" = set; then
3406 CXXFLAGS=$ac_save_CXXFLAGS
3407 elif test $ac_cv_prog_cxx_g = yes; then
3408 if test "$GXX" = yes; then
3409 CXXFLAGS="-g -O2"
3410 else
3411 CXXFLAGS="-g"
3413 else
3414 if test "$GXX" = yes; then
3415 CXXFLAGS="-O2"
3416 else
3417 CXXFLAGS=
3420 ac_ext=c
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 if test -n "$ac_tool_prefix"; then
3432 for ac_prog in ${host_c_compilers}
3434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if ${ac_cv_prog_CC+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC="$CC" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 break 2
3455 done
3456 done
3457 IFS=$as_save_IFS
3461 CC=$ac_cv_prog_CC
3462 if test -n "$CC"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3464 $as_echo "$CC" >&6; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3471 test -n "$CC" && break
3472 done
3474 if test -z "$CC"; then
3475 ac_ct_CC=$CC
3476 for ac_prog in ${host_c_compilers}
3478 # Extract the first word of "$ac_prog", so it can be a program name with args.
3479 set dummy $ac_prog; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -n "$ac_ct_CC"; then
3486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_ac_ct_CC="$ac_prog"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3499 done
3500 done
3501 IFS=$as_save_IFS
3505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3506 if test -n "$ac_ct_CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3508 $as_echo "$ac_ct_CC" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3515 test -n "$ac_ct_CC" && break
3516 done
3518 if test "x$ac_ct_CC" = x; then
3519 CC=""
3520 else
3521 case $cross_compiling:$ac_tool_warned in
3522 yes:)
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3525 ac_tool_warned=yes ;;
3526 esac
3527 CC=$ac_ct_CC
3532 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error $? "no acceptable C compiler found in \$PATH
3535 See \`config.log' for more details" "$LINENO" 5; }
3537 # Provide some information about the compiler.
3538 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3539 set X $ac_compile
3540 ac_compiler=$2
3541 for ac_option in --version -v -V -qversion; do
3542 { { ac_try="$ac_compiler $ac_option >&5"
3543 case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546 esac
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3550 ac_status=$?
3551 if test -s conftest.err; then
3552 sed '10a\
3553 ... rest of stderr output deleted ...
3554 10q' conftest.err >conftest.er1
3555 cat conftest.er1 >&5
3557 rm -f conftest.er1 conftest.err
3558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559 test $ac_status = 0; }
3560 done
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3563 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3564 if ${ac_cv_c_compiler_gnu+:} false; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3571 main ()
3573 #ifndef __GNUC__
3574 choke me
3575 #endif
3578 return 0;
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582 ac_compiler_gnu=yes
3583 else
3584 ac_compiler_gnu=no
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3591 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3592 if test $ac_compiler_gnu = yes; then
3593 GCC=yes
3594 else
3595 GCC=
3597 ac_test_CFLAGS=${CFLAGS+set}
3598 ac_save_CFLAGS=$CFLAGS
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3600 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3601 if ${ac_cv_prog_cc_g+:} false; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 ac_save_c_werror_flag=$ac_c_werror_flag
3605 ac_c_werror_flag=yes
3606 ac_cv_prog_cc_g=no
3607 CFLAGS="-g"
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3612 main ()
3616 return 0;
3618 _ACEOF
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_g=yes
3621 else
3622 CFLAGS=""
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3627 main ()
3631 return 0;
3633 _ACEOF
3634 if ac_fn_c_try_compile "$LINENO"; then :
3636 else
3637 ac_c_werror_flag=$ac_save_c_werror_flag
3638 CFLAGS="-g"
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3643 main ()
3647 return 0;
3649 _ACEOF
3650 if ac_fn_c_try_compile "$LINENO"; then :
3651 ac_cv_prog_cc_g=yes
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658 ac_c_werror_flag=$ac_save_c_werror_flag
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3661 $as_echo "$ac_cv_prog_cc_g" >&6; }
3662 if test "$ac_test_CFLAGS" = set; then
3663 CFLAGS=$ac_save_CFLAGS
3664 elif test $ac_cv_prog_cc_g = yes; then
3665 if test "$GCC" = yes; then
3666 CFLAGS="-g -O2"
3667 else
3668 CFLAGS="-g"
3670 else
3671 if test "$GCC" = yes; then
3672 CFLAGS="-O2"
3673 else
3674 CFLAGS=
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3678 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3679 if ${ac_cv_prog_cc_c89+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 ac_cv_prog_cc_c89=no
3683 ac_save_CC=$CC
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686 #include <stdarg.h>
3687 #include <stdio.h>
3688 struct stat;
3689 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3690 struct buf { int x; };
3691 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3692 static char *e (p, i)
3693 char **p;
3694 int i;
3696 return p[i];
3698 static char *f (char * (*g) (char **, int), char **p, ...)
3700 char *s;
3701 va_list v;
3702 va_start (v,p);
3703 s = g (p, va_arg (v,int));
3704 va_end (v);
3705 return s;
3708 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3709 function prototypes and stuff, but not '\xHH' hex character constants.
3710 These don't provoke an error unfortunately, instead are silently treated
3711 as 'x'. The following induces an error, until -std is added to get
3712 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3713 array size at least. It's necessary to write '\x00'==0 to get something
3714 that's true only with -std. */
3715 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3717 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3718 inside strings and character constants. */
3719 #define FOO(x) 'x'
3720 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3722 int test (int i, double x);
3723 struct s1 {int (*f) (int a);};
3724 struct s2 {int (*f) (double a);};
3725 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3726 int argc;
3727 char **argv;
3729 main ()
3731 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3733 return 0;
3735 _ACEOF
3736 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3737 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3739 CC="$ac_save_CC $ac_arg"
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_cv_prog_cc_c89=$ac_arg
3743 rm -f core conftest.err conftest.$ac_objext
3744 test "x$ac_cv_prog_cc_c89" != "xno" && break
3745 done
3746 rm -f conftest.$ac_ext
3747 CC=$ac_save_CC
3750 # AC_CACHE_VAL
3751 case "x$ac_cv_prog_cc_c89" in
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3754 $as_echo "none needed" >&6; } ;;
3755 xno)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3757 $as_echo "unsupported" >&6; } ;;
3759 CC="$CC $ac_cv_prog_cc_c89"
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3761 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3762 esac
3763 if test "x$ac_cv_prog_cc_c89" != xno; then :
3767 ac_ext=c
3768 ac_cpp='$CPP $CPPFLAGS'
3769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773 aros_host_def_cc="$CC"
3774 case $ac_cv_prog_cc_stdc in #(
3775 no) :
3776 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3777 *) :
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3779 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3780 if ${ac_cv_prog_cc_c99+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 ac_cv_prog_cc_c99=no
3784 ac_save_CC=$CC
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3787 #include <stdarg.h>
3788 #include <stdbool.h>
3789 #include <stdlib.h>
3790 #include <wchar.h>
3791 #include <stdio.h>
3793 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3794 #define debug(...) fprintf (stderr, __VA_ARGS__)
3795 #define showlist(...) puts (#__VA_ARGS__)
3796 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3797 static void
3798 test_varargs_macros (void)
3800 int x = 1234;
3801 int y = 5678;
3802 debug ("Flag");
3803 debug ("X = %d\n", x);
3804 showlist (The first, second, and third items.);
3805 report (x>y, "x is %d but y is %d", x, y);
3808 // Check long long types.
3809 #define BIG64 18446744073709551615ull
3810 #define BIG32 4294967295ul
3811 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3812 #if !BIG_OK
3813 your preprocessor is broken;
3814 #endif
3815 #if BIG_OK
3816 #else
3817 your preprocessor is broken;
3818 #endif
3819 static long long int bignum = -9223372036854775807LL;
3820 static unsigned long long int ubignum = BIG64;
3822 struct incomplete_array
3824 int datasize;
3825 double data[];
3828 struct named_init {
3829 int number;
3830 const wchar_t *name;
3831 double average;
3834 typedef const char *ccp;
3836 static inline int
3837 test_restrict (ccp restrict text)
3839 // See if C++-style comments work.
3840 // Iterate through items via the restricted pointer.
3841 // Also check for declarations in for loops.
3842 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3843 continue;
3844 return 0;
3847 // Check varargs and va_copy.
3848 static void
3849 test_varargs (const char *format, ...)
3851 va_list args;
3852 va_start (args, format);
3853 va_list args_copy;
3854 va_copy (args_copy, args);
3856 const char *str;
3857 int number;
3858 float fnumber;
3860 while (*format)
3862 switch (*format++)
3864 case 's': // string
3865 str = va_arg (args_copy, const char *);
3866 break;
3867 case 'd': // int
3868 number = va_arg (args_copy, int);
3869 break;
3870 case 'f': // float
3871 fnumber = va_arg (args_copy, double);
3872 break;
3873 default:
3874 break;
3877 va_end (args_copy);
3878 va_end (args);
3882 main ()
3885 // Check bool.
3886 _Bool success = false;
3888 // Check restrict.
3889 if (test_restrict ("String literal") == 0)
3890 success = true;
3891 char *restrict newvar = "Another string";
3893 // Check varargs.
3894 test_varargs ("s, d' f .", "string", 65, 34.234);
3895 test_varargs_macros ();
3897 // Check flexible array members.
3898 struct incomplete_array *ia =
3899 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3900 ia->datasize = 10;
3901 for (int i = 0; i < ia->datasize; ++i)
3902 ia->data[i] = i * 1.234;
3904 // Check named initializers.
3905 struct named_init ni = {
3906 .number = 34,
3907 .name = L"Test wide string",
3908 .average = 543.34343,
3911 ni.number = 58;
3913 int dynamic_array[ni.number];
3914 dynamic_array[ni.number - 1] = 543;
3916 // work around unused variable warnings
3917 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3918 || dynamic_array[ni.number - 1] != 543);
3921 return 0;
3923 _ACEOF
3924 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3926 CC="$ac_save_CC $ac_arg"
3927 if ac_fn_c_try_compile "$LINENO"; then :
3928 ac_cv_prog_cc_c99=$ac_arg
3930 rm -f core conftest.err conftest.$ac_objext
3931 test "x$ac_cv_prog_cc_c99" != "xno" && break
3932 done
3933 rm -f conftest.$ac_ext
3934 CC=$ac_save_CC
3937 # AC_CACHE_VAL
3938 case "x$ac_cv_prog_cc_c99" in
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3941 $as_echo "none needed" >&6; } ;;
3942 xno)
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3944 $as_echo "unsupported" >&6; } ;;
3946 CC="$CC $ac_cv_prog_cc_c99"
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3948 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3949 esac
3950 if test "x$ac_cv_prog_cc_c99" != xno; then :
3951 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3952 else
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3954 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3955 if ${ac_cv_prog_cc_c89+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957 else
3958 ac_cv_prog_cc_c89=no
3959 ac_save_CC=$CC
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3962 #include <stdarg.h>
3963 #include <stdio.h>
3964 struct stat;
3965 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3966 struct buf { int x; };
3967 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3968 static char *e (p, i)
3969 char **p;
3970 int i;
3972 return p[i];
3974 static char *f (char * (*g) (char **, int), char **p, ...)
3976 char *s;
3977 va_list v;
3978 va_start (v,p);
3979 s = g (p, va_arg (v,int));
3980 va_end (v);
3981 return s;
3984 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3985 function prototypes and stuff, but not '\xHH' hex character constants.
3986 These don't provoke an error unfortunately, instead are silently treated
3987 as 'x'. The following induces an error, until -std is added to get
3988 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3989 array size at least. It's necessary to write '\x00'==0 to get something
3990 that's true only with -std. */
3991 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3993 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3994 inside strings and character constants. */
3995 #define FOO(x) 'x'
3996 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3998 int test (int i, double x);
3999 struct s1 {int (*f) (int a);};
4000 struct s2 {int (*f) (double a);};
4001 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4002 int argc;
4003 char **argv;
4005 main ()
4007 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4009 return 0;
4011 _ACEOF
4012 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4013 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4015 CC="$ac_save_CC $ac_arg"
4016 if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_cv_prog_cc_c89=$ac_arg
4019 rm -f core conftest.err conftest.$ac_objext
4020 test "x$ac_cv_prog_cc_c89" != "xno" && break
4021 done
4022 rm -f conftest.$ac_ext
4023 CC=$ac_save_CC
4026 # AC_CACHE_VAL
4027 case "x$ac_cv_prog_cc_c89" in
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4030 $as_echo "none needed" >&6; } ;;
4031 xno)
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4033 $as_echo "unsupported" >&6; } ;;
4035 CC="$CC $ac_cv_prog_cc_c89"
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4037 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4038 esac
4039 if test "x$ac_cv_prog_cc_c89" != xno; then :
4040 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4041 else
4042 ac_cv_prog_cc_stdc=no
4047 esac
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4049 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4050 if ${ac_cv_prog_cc_stdc+:} false; then :
4051 $as_echo_n "(cached) " >&6
4054 case $ac_cv_prog_cc_stdc in #(
4055 no) :
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4057 $as_echo "unsupported" >&6; } ;; #(
4058 '') :
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4060 $as_echo "none needed" >&6; } ;; #(
4061 *) :
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4063 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4064 esac
4066 ac_ext=c
4067 ac_cpp='$CPP $CPPFLAGS'
4068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4072 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4073 # On Suns, sometimes $CPP names a directory.
4074 if test -n "$CPP" && test -d "$CPP"; then
4075 CPP=
4077 if test -z "$CPP"; then
4078 if ${ac_cv_prog_CPP+:} false; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 # Double quotes because CPP needs to be expanded
4082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4084 ac_preproc_ok=false
4085 for ac_c_preproc_warn_flag in '' yes
4087 # Use a header file that comes with gcc, so configuring glibc
4088 # with a fresh cross-compiler works.
4089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4090 # <limits.h> exists even on freestanding compilers.
4091 # On the NeXT, cc -E runs the code through the compiler's parser,
4092 # not just through cpp. "Syntax error" is here to catch this case.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #ifdef __STDC__
4096 # include <limits.h>
4097 #else
4098 # include <assert.h>
4099 #endif
4100 Syntax error
4101 _ACEOF
4102 if ac_fn_c_try_cpp "$LINENO"; then :
4104 else
4105 # Broken: fails on valid input.
4106 continue
4108 rm -f conftest.err conftest.i conftest.$ac_ext
4110 # OK, works on sane cases. Now check whether nonexistent headers
4111 # can be detected and how.
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114 #include <ac_nonexistent.h>
4115 _ACEOF
4116 if ac_fn_c_try_cpp "$LINENO"; then :
4117 # Broken: success on invalid input.
4118 continue
4119 else
4120 # Passes both tests.
4121 ac_preproc_ok=:
4122 break
4124 rm -f conftest.err conftest.i conftest.$ac_ext
4126 done
4127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4128 rm -f conftest.i conftest.err conftest.$ac_ext
4129 if $ac_preproc_ok; then :
4130 break
4133 done
4134 ac_cv_prog_CPP=$CPP
4137 CPP=$ac_cv_prog_CPP
4138 else
4139 ac_cv_prog_CPP=$CPP
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4142 $as_echo "$CPP" >&6; }
4143 ac_preproc_ok=false
4144 for ac_c_preproc_warn_flag in '' yes
4146 # Use a header file that comes with gcc, so configuring glibc
4147 # with a fresh cross-compiler works.
4148 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4149 # <limits.h> exists even on freestanding compilers.
4150 # On the NeXT, cc -E runs the code through the compiler's parser,
4151 # not just through cpp. "Syntax error" is here to catch this case.
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154 #ifdef __STDC__
4155 # include <limits.h>
4156 #else
4157 # include <assert.h>
4158 #endif
4159 Syntax error
4160 _ACEOF
4161 if ac_fn_c_try_cpp "$LINENO"; then :
4163 else
4164 # Broken: fails on valid input.
4165 continue
4167 rm -f conftest.err conftest.i conftest.$ac_ext
4169 # OK, works on sane cases. Now check whether nonexistent headers
4170 # can be detected and how.
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #include <ac_nonexistent.h>
4174 _ACEOF
4175 if ac_fn_c_try_cpp "$LINENO"; then :
4176 # Broken: success on invalid input.
4177 continue
4178 else
4179 # Passes both tests.
4180 ac_preproc_ok=:
4181 break
4183 rm -f conftest.err conftest.i conftest.$ac_ext
4185 done
4186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4187 rm -f conftest.i conftest.err conftest.$ac_ext
4188 if $ac_preproc_ok; then :
4190 else
4191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4194 See \`config.log' for more details" "$LINENO" 5; }
4197 ac_ext=c
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204 # Check for a compatible awk
4205 for ac_prog in gawk nawk
4207 # Extract the first word of "$ac_prog", so it can be a program name with args.
4208 set dummy $ac_prog; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if ${ac_cv_prog_AWK+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -n "$AWK"; then
4215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4224 ac_cv_prog_AWK="$ac_prog"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4228 done
4229 done
4230 IFS=$as_save_IFS
4234 AWK=$ac_cv_prog_AWK
4235 if test -n "$AWK"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4237 $as_echo "$AWK" >&6; }
4238 else
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4244 test -n "$AWK" && break
4245 done
4247 req_avail=yes
4248 if test "$AWK" = ""; then
4249 req_avail=no
4251 if test "$AWK" = "no"; then
4252 req_avail=no
4254 if test "$req_avail" = "no"; then
4255 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4257 # Extract the first word of "mmake", so it can be a program name with args.
4258 set dummy mmake; ac_word=$2
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4260 $as_echo_n "checking for $ac_word... " >&6; }
4261 if ${ac_cv_prog_MMAKE+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 if test -n "$MMAKE"; then
4265 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_MMAKE="mmake "
4275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 break 2
4278 done
4279 done
4280 IFS=$as_save_IFS
4284 MMAKE=$ac_cv_prog_MMAKE
4285 if test -n "$MMAKE"; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4287 $as_echo "$MMAKE" >&6; }
4288 else
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 $as_echo "no" >&6; }
4295 # Perform some default variable assignments. Note all of these will be
4296 # Regenerated from the script, so there is no need to cache them.
4298 aros_build_host=$host
4299 aros_host_cpp="$CPP"
4300 aros_host_cc="$CC"
4301 aros_host_cxx="$CXX"
4302 if test "$GCC" = "yes"; then
4303 aros_gcc_ld=`$CC -print-prog-name=ld`
4304 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4305 set dummy `basename $aros_gcc_ld`; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if ${ac_cv_path_aros_host_ld+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 case $aros_host_ld in
4312 [\\/]* | ?:[\\/]*)
4313 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in `dirname $aros_gcc_ld`
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4327 done
4328 done
4329 IFS=$as_save_IFS
4332 esac
4334 aros_host_ld=$ac_cv_path_aros_host_ld
4335 if test -n "$aros_host_ld"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4337 $as_echo "$aros_host_ld" >&6; }
4338 else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4345 if test "$aros_host_ld" = ""; then
4346 # Extract the first word of "ld", so it can be a program name with args.
4347 set dummy ld; ac_word=$2
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4349 $as_echo_n "checking for $ac_word... " >&6; }
4350 if ${ac_cv_path_aros_host_ld+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 case $aros_host_ld in
4354 [\\/]* | ?:[\\/]*)
4355 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4369 done
4370 done
4371 IFS=$as_save_IFS
4374 esac
4376 aros_host_ld=$ac_cv_path_aros_host_ld
4377 if test -n "$aros_host_ld"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4379 $as_echo "$aros_host_ld" >&6; }
4380 else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4387 req_avail=yes
4388 if test "$aros_host_ld" = ""; then
4389 req_avail=no
4391 if test "$aros_host_ld" = "no"; then
4392 req_avail=no
4394 if test "$req_avail" = "no"; then
4395 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4397 aros_host_make="make"
4398 aros_host_cflags="$CFLAGS"
4399 aros_host_cxxflags="$CXXFLAGS"
4400 aros_host_cppflags="$CPPFLAGS"
4401 aros_host_ldflags="$LDFLAGS"
4402 aros_host_debug="-g -O0"
4403 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4404 aros_host_mkargs="--no-print-directory"
4405 aros_host_exe_suffix="$EXEEXT"
4406 aros_host_lib_suffix=""
4408 # Ignore all compliance, AROS ROMs = 0
4409 # KickStart v1.0 = 30
4410 # KickStart v1.3 = 34
4411 # KickStart v2.0 = 37
4412 # KickStart v3.0 = 39
4413 # KickStart v3.1 = 40
4414 # AmigaOS v3.5 = 44
4415 aros_amigaos_compliance=0
4417 for ac_prog in aclocal aclocal19 aclocal-1.9
4419 # Extract the first word of "$ac_prog", so it can be a program name with args.
4420 set dummy $ac_prog; ac_word=$2
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422 $as_echo_n "checking for $ac_word... " >&6; }
4423 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 if test -n "$aros_host_aclocal"; then
4427 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4428 else
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436 ac_cv_prog_aros_host_aclocal="$ac_prog"
4437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4440 done
4441 done
4442 IFS=$as_save_IFS
4446 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4447 if test -n "$aros_host_aclocal"; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4449 $as_echo "$aros_host_aclocal" >&6; }
4450 else
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452 $as_echo "no" >&6; }
4456 test -n "$aros_host_aclocal" && break
4457 done
4459 for ac_prog in autoconf autoconf259 autoconf253
4461 # Extract the first word of "$ac_prog", so it can be a program name with args.
4462 set dummy $ac_prog; ac_word=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test -n "$aros_host_autoconf"; then
4469 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478 ac_cv_prog_aros_host_autoconf="$ac_prog"
4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4482 done
4483 done
4484 IFS=$as_save_IFS
4488 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4489 if test -n "$aros_host_autoconf"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4491 $as_echo "$aros_host_autoconf" >&6; }
4492 else
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4498 test -n "$aros_host_autoconf" && break
4499 done
4501 for ac_prog in autoheader autoheader259 autoheader253
4503 # Extract the first word of "$ac_prog", so it can be a program name with args.
4504 set dummy $ac_prog; ac_word=$2
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 $as_echo_n "checking for $ac_word... " >&6; }
4507 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 if test -n "$aros_host_autoheader"; then
4511 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_prog_aros_host_autoheader="$ac_prog"
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4524 done
4525 done
4526 IFS=$as_save_IFS
4530 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4531 if test -n "$aros_host_autoheader"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4533 $as_echo "$aros_host_autoheader" >&6; }
4534 else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4540 test -n "$aros_host_autoheader" && break
4541 done
4543 for ac_prog in automake automake19 automake-1.9
4545 # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy $ac_prog; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if ${ac_cv_prog_aros_host_automake+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 if test -n "$aros_host_automake"; then
4553 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_prog_aros_host_automake="$ac_prog"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4566 done
4567 done
4568 IFS=$as_save_IFS
4572 aros_host_automake=$ac_cv_prog_aros_host_automake
4573 if test -n "$aros_host_automake"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4575 $as_echo "$aros_host_automake" >&6; }
4576 else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4582 test -n "$aros_host_automake" && break
4583 done
4586 req_avail=yes
4587 if test "$aros_host_aclocal" = ""; then
4588 req_avail=no
4590 if test "$aros_host_aclocal" = "no"; then
4591 req_avail=no
4593 if test "$req_avail" = "no"; then
4594 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4596 req_avail=yes
4597 if test "$aros_host_automake" = ""; then
4598 req_avail=no
4600 if test "$aros_host_automake" = "no"; then
4601 req_avail=no
4603 if test "$req_avail" = "no"; then
4604 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4607 case "$aros_host_cc" in
4608 *clang*)
4609 aros_host_cc_pipe=""
4611 *gcc*)
4612 aros_host_cc_pipe="-pipe"
4614 icc)
4615 aros_host_cc_pipe=""
4618 aros_host_cc_pipe=""
4620 esac
4622 aros_kernel_cc_includes=""
4623 aros_target_cc_includes=""
4624 host_cc_elf=yes
4626 # ----------------------------------------------------------------------------------------
4627 # Host-specific defaults
4629 # This is the main host configuration section. It is where the host
4630 # can change the values of any variables it needs to change. We do
4631 # not look at anything that compiles to the target yet, we'll get
4632 # to that later.
4634 case "$host_os" in
4635 aros*)
4636 aros_host_arch="aros"
4637 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4638 case "$host_cpu" in
4639 *i?86*)
4640 aros_host_cpu="i386"
4642 *x86_64*)
4643 aros_host_cpu="x86_64"
4645 *powerpc*)
4646 aros_host_cpu="ppc"
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4650 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4651 aros_host_cpu="$host_cpu"
4653 esac
4656 linux*)
4657 aros_host_arch="linux"
4658 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4659 android_build_os="linux-x86"
4660 android_tool="android"
4661 default_android_sdk="/opt/android-sdk-linux_x86"
4662 case "$host_cpu" in
4663 *i?86*)
4664 aros_host_cpu="i386"
4666 *x86_64*)
4667 aros_host_cpu="x86_64"
4669 *m68k*)
4670 aros_host_cpu="m68k"
4672 *powerpc*)
4673 aros_host_cpu="ppc"
4675 *arm*)
4676 aros_host_cpu="arm"
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4680 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4681 aros_host_cpu="$host_cpu"
4683 esac
4686 freebsd*)
4687 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4688 aros_host_make="gmake"
4689 aros_host_arch="freebsd"
4690 aros_host_cpu="i386"
4692 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4694 case $host_os in
4695 freebsd[234]*)
4696 aros_object_format="elf_i386"
4700 aros_object_format="elf_i386_fbsd"
4702 esac
4706 darwin*)
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4708 $as_echo_n "checking for macOS SDK files... " >&6; }
4709 LOC=$( xcode-select -p )
4710 if test $? != 0; then :
4711 as_fn_error $? "XCode incorrectly configured!
4712 please run 'xcode-select --install' before
4713 re-running configure" "$LINENO" 5
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4716 $as_echo "$LOC" >&6; }
4717 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4718 aros_host_arch="darwin"
4719 host_cc_elf=no
4720 if [ -z ${SED+x} ]; then SED="gsed"; fi
4721 android_build_os="darwin-x86"
4722 android_tool="android"
4723 default_android_sdk="/android-sdk-mac_x86"
4724 case "$host_cpu" in
4725 *i?86*)
4726 aros_host_cpu="i386"
4728 *x86_64*)
4729 aros_host_cpu="x86_64"
4731 *powerpc*)
4732 aros_host_cpu="ppc"
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4736 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4737 aros_host_cpu="$host_cpu"
4739 esac
4741 aros_host_ldflags="$aros_host_ldflags -liconv"
4745 dragonfly*)
4746 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4747 aros_host_make="gmake"
4748 aros_host_arch="dragonfly"
4749 case $host_cpu in
4750 *i?86*)
4751 aros_host_cpu="i386"
4753 *amd64*)
4754 aros_host_cpu="x86_64"
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4758 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4759 aros_host_cpu="$host_cpu"
4761 esac
4764 netbsd*)
4765 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4766 aros_host_make="gmake"
4767 aros_host_arch="netbsd"
4768 case "$host_cpu" in
4769 *i?86*)
4770 aros_host_cpu="i386"
4772 *m68k*)
4773 aros_host_cpu="m68k"
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4777 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4778 aros_host_cpu="$host_cpu"
4780 esac
4781 aros_host_lib_suffix=".0.0"
4784 openbsd*)
4785 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4786 aros_host_make="gmake"
4787 aros_host_arch="openbsd"
4788 case "$host_cpu" in
4789 *i?86*)
4790 aros_host_cpu="i386"
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4794 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4795 aros_host_cpu="$host_cpu"
4797 esac
4800 solaris*)
4801 aros_host_arch="solaris"
4802 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4803 case "$host_cpu" in
4804 *i?86*)
4805 aros_host_cpu="i386"
4807 *sparc*)
4808 aros_host_cpu="sparc"
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4812 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4813 aros_host_cpu="$host_cpu"
4815 esac
4818 morphos*)
4819 aros_host_arch="morphos"
4820 aros_host_cpu="ppc"
4821 host_cc_elf=no
4824 amiga*)
4825 aros_host_arch="amiga"
4826 host_cc_elf=no
4827 SORT="/gg/bin/sort"
4828 TEST="/gg/bin/test"
4829 UNIQ="/gg/bin/uniq"
4830 FOR="for"
4831 TOUCH="/gg/bin/touch"
4832 case "$host_cpu" in
4833 *m68k*)
4834 aros_host_cpu="m68k"
4836 *powerpc*)
4837 aros_host_cpu="ppc"
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4841 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4842 aros_host_cpu="$host_cpu"
4844 esac
4847 cygwin*)
4848 aros_host_arch="cygwin"
4849 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4850 host_cc_elf=no
4851 android_build_os="windows"
4852 android_tool="android.bat"
4853 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4855 case "$host_cpu" in
4856 *i?86*)
4857 aros_host_cpu="i386"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4861 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4862 aros_host_cpu="$host_cpu"
4864 esac
4867 mingw32*)
4868 aros_host_arch="mingw32"
4869 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4870 host_cc_elf=no
4871 android_build_os="windows"
4872 android_tool="android.bat"
4873 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4875 libpng_libextra="-lws2_32"
4877 case "$host_cpu" in
4878 *i?86*)
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4881 $as_echo_n "checking for Windows native gcc target... " >&6; }
4882 host_cpu=`gcc -dumpmachine`
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4884 $as_echo "$host_cpu" >&6; }
4887 esac
4889 case "$host_cpu" in
4890 *i?86*)
4891 aros_host_cpu="i386"
4894 mingw32*)
4895 aros_host_cpu="i386"
4898 *x86_64*)
4899 aros_host_cpu="x86_64"
4900 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4905 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4906 aros_host_cpu="$host_cpu"
4908 esac
4911 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4913 esac
4915 # Extract the first word of "ar", so it can be a program name with args.
4916 set dummy ar; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if ${ac_cv_prog_aros_host_ar+:} false; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test -n "$aros_host_ar"; then
4923 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4932 ac_cv_prog_aros_host_ar="ar cr"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4936 done
4937 done
4938 IFS=$as_save_IFS
4942 aros_host_ar=$ac_cv_prog_aros_host_ar
4943 if test -n "$aros_host_ar"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4945 $as_echo "$aros_host_ar" >&6; }
4946 else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4952 req_avail=yes
4953 if test "$aros_host_ar" = ""; then
4954 req_avail=no
4956 if test "$aros_host_ar" = "no"; then
4957 req_avail=no
4959 if test "$req_avail" = "no"; then
4960 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4962 # Extract the first word of "ranlib", so it can be a program name with args.
4963 set dummy ranlib; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 if test -n "$aros_host_ranlib"; then
4970 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4979 ac_cv_prog_aros_host_ranlib="ranlib "
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 break 2
4983 done
4984 done
4985 IFS=$as_save_IFS
4989 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4990 if test -n "$aros_host_ranlib"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4992 $as_echo "$aros_host_ranlib" >&6; }
4993 else
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4999 req_avail=yes
5000 if test "$aros_host_ranlib" = ""; then
5001 req_avail=no
5003 if test "$aros_host_ranlib" = "no"; then
5004 req_avail=no
5006 if test "$req_avail" = "no"; then
5007 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5009 # Extract the first word of "strip", so it can be a program name with args.
5010 set dummy strip; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if ${ac_cv_prog_aros_host_strip+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 if test -n "$aros_host_strip"; then
5017 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_aros_host_strip="strip "
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5030 done
5031 done
5032 IFS=$as_save_IFS
5036 aros_host_strip=$ac_cv_prog_aros_host_strip
5037 if test -n "$aros_host_strip"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5039 $as_echo "$aros_host_strip" >&6; }
5040 else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5046 req_avail=yes
5047 if test "$aros_host_strip" = ""; then
5048 req_avail=no
5050 if test "$aros_host_strip" = "no"; then
5051 req_avail=no
5053 if test "$req_avail" = "no"; then
5054 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5057 # Extract the first word of "rm", so it can be a program name with args.
5058 set dummy rm; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if ${ac_cv_prog_RM+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 if test -n "$RM"; then
5065 ac_cv_prog_RM="$RM" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074 ac_cv_prog_RM="rm -rf"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5078 done
5079 done
5080 IFS=$as_save_IFS
5084 RM=$ac_cv_prog_RM
5085 if test -n "$RM"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5087 $as_echo "$RM" >&6; }
5088 else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5094 req_avail=yes
5095 if test "$RM" = ""; then
5096 req_avail=no
5098 if test "$RM" = "no"; then
5099 req_avail=no
5101 if test "$req_avail" = "no"; then
5102 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5104 # Extract the first word of "cp", so it can be a program name with args.
5105 set dummy cp; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if ${ac_cv_prog_CP+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$CP"; then
5112 ac_cv_prog_CP="$CP" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_CP="cp "
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5125 done
5126 done
5127 IFS=$as_save_IFS
5131 CP=$ac_cv_prog_CP
5132 if test -n "$CP"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5134 $as_echo "$CP" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5141 req_avail=yes
5142 if test "$CP" = ""; then
5143 req_avail=no
5145 if test "$CP" = "no"; then
5146 req_avail=no
5148 if test "$req_avail" = "no"; then
5149 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5151 # Extract the first word of "mv", so it can be a program name with args.
5152 set dummy mv; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_MV+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$MV"; then
5159 ac_cv_prog_MV="$MV" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_MV="mv "
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5172 done
5173 done
5174 IFS=$as_save_IFS
5178 MV=$ac_cv_prog_MV
5179 if test -n "$MV"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5181 $as_echo "$MV" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5188 req_avail=yes
5189 if test "$MV" = ""; then
5190 req_avail=no
5192 if test "$MV" = "no"; then
5193 req_avail=no
5195 if test "$req_avail" = "no"; then
5196 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5198 # Extract the first word of "echo", so it can be a program name with args.
5199 set dummy echo; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_prog_ECHO+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -n "$ECHO"; then
5206 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_ECHO="echo "
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5219 done
5220 done
5221 IFS=$as_save_IFS
5225 ECHO=$ac_cv_prog_ECHO
5226 if test -n "$ECHO"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5228 $as_echo "$ECHO" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5235 req_avail=yes
5236 if test "$ECHO" = ""; then
5237 req_avail=no
5239 if test "$ECHO" = "no"; then
5240 req_avail=no
5242 if test "$req_avail" = "no"; then
5243 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5245 # Extract the first word of "mkdir", so it can be a program name with args.
5246 set dummy mkdir; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_MKDIR+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -n "$MKDIR"; then
5253 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262 ac_cv_prog_MKDIR="mkdir -p"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5272 MKDIR=$ac_cv_prog_MKDIR
5273 if test -n "$MKDIR"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5275 $as_echo "$MKDIR" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5282 req_avail=yes
5283 if test "$MKDIR" = ""; then
5284 req_avail=no
5286 if test "$MKDIR" = "no"; then
5287 req_avail=no
5289 if test "$req_avail" = "no"; then
5290 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5292 # Extract the first word of "touch", so it can be a program name with args.
5293 set dummy touch; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if ${ac_cv_prog_TOUCH+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 if test -n "$TOUCH"; then
5300 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309 ac_cv_prog_TOUCH="touch "
5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5313 done
5314 done
5315 IFS=$as_save_IFS
5319 TOUCH=$ac_cv_prog_TOUCH
5320 if test -n "$TOUCH"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5322 $as_echo "$TOUCH" >&6; }
5323 else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5329 req_avail=yes
5330 if test "$TOUCH" = ""; then
5331 req_avail=no
5333 if test "$TOUCH" = "no"; then
5334 req_avail=no
5336 if test "$req_avail" = "no"; then
5337 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5339 # Extract the first word of "sort", so it can be a program name with args.
5340 set dummy sort; ac_word=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if ${ac_cv_prog_SORT+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 if test -n "$SORT"; then
5347 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356 ac_cv_prog_SORT="sort "
5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5360 done
5361 done
5362 IFS=$as_save_IFS
5366 SORT=$ac_cv_prog_SORT
5367 if test -n "$SORT"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5369 $as_echo "$SORT" >&6; }
5370 else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5376 req_avail=yes
5377 if test "$SORT" = ""; then
5378 req_avail=no
5380 if test "$SORT" = "no"; then
5381 req_avail=no
5383 if test "$req_avail" = "no"; then
5384 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5386 # Extract the first word of "uniq", so it can be a program name with args.
5387 set dummy uniq; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_prog_UNIQ+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 if test -n "$UNIQ"; then
5394 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403 ac_cv_prog_UNIQ="uniq "
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5407 done
5408 done
5409 IFS=$as_save_IFS
5413 UNIQ=$ac_cv_prog_UNIQ
5414 if test -n "$UNIQ"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5416 $as_echo "$UNIQ" >&6; }
5417 else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5423 req_avail=yes
5424 if test "$UNIQ" = ""; then
5425 req_avail=no
5427 if test "$UNIQ" = "no"; then
5428 req_avail=no
5430 if test "$req_avail" = "no"; then
5431 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5433 # Extract the first word of "true", so it can be a program name with args.
5434 set dummy true; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if ${ac_cv_prog_NOP+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 if test -n "$NOP"; then
5441 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5442 else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_prog_NOP="true "
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5454 done
5455 done
5456 IFS=$as_save_IFS
5460 NOP=$ac_cv_prog_NOP
5461 if test -n "$NOP"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5463 $as_echo "$NOP" >&6; }
5464 else
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5470 req_avail=yes
5471 if test "$NOP" = ""; then
5472 req_avail=no
5474 if test "$NOP" = "no"; then
5475 req_avail=no
5477 if test "$req_avail" = "no"; then
5478 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5480 # Extract the first word of "cat", so it can be a program name with args.
5481 set dummy cat; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_prog_CAT+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 if test -n "$CAT"; then
5488 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5489 else
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5497 ac_cv_prog_CAT="cat "
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5501 done
5502 done
5503 IFS=$as_save_IFS
5507 CAT=$ac_cv_prog_CAT
5508 if test -n "$CAT"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5510 $as_echo "$CAT" >&6; }
5511 else
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5517 req_avail=yes
5518 if test "$CAT" = ""; then
5519 req_avail=no
5521 if test "$CAT" = "no"; then
5522 req_avail=no
5524 if test "$req_avail" = "no"; then
5525 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5527 # Extract the first word of "bison", so it can be a program name with args.
5528 set dummy bison; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_prog_BISON+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 if test -n "$BISON"; then
5535 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544 ac_cv_prog_BISON="bison "
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 break 2
5548 done
5549 done
5550 IFS=$as_save_IFS
5554 BISON=$ac_cv_prog_BISON
5555 if test -n "$BISON"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5557 $as_echo "$BISON" >&6; }
5558 else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5564 req_avail=yes
5565 if test "$BISON" = ""; then
5566 req_avail=no
5568 if test "$BISON" = "no"; then
5569 req_avail=no
5571 if test "$req_avail" = "no"; then
5572 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5574 # Extract the first word of "flex", so it can be a program name with args.
5575 set dummy flex; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_FLEX+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -n "$FLEX"; then
5582 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591 ac_cv_prog_FLEX="flex "
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5595 done
5596 done
5597 IFS=$as_save_IFS
5601 FLEX=$ac_cv_prog_FLEX
5602 if test -n "$FLEX"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5604 $as_echo "$FLEX" >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5611 req_avail=yes
5612 if test "$FLEX" = ""; then
5613 req_avail=no
5615 if test "$FLEX" = "no"; then
5616 req_avail=no
5618 if test "$req_avail" = "no"; then
5619 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5621 # Extract the first word of "pngtopnm", so it can be a program name with args.
5622 set dummy pngtopnm; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 if test -n "$PNGTOPNM"; then
5629 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638 ac_cv_prog_PNGTOPNM="pngtopnm "
5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 break 2
5642 done
5643 done
5644 IFS=$as_save_IFS
5648 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5649 if test -n "$PNGTOPNM"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5651 $as_echo "$PNGTOPNM" >&6; }
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5658 req_avail=yes
5659 if test "$PNGTOPNM" = ""; then
5660 req_avail=no
5662 if test "$PNGTOPNM" = "no"; then
5663 req_avail=no
5665 if test "$req_avail" = "no"; then
5666 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5668 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5669 set dummy ppmtoilbm; ac_word=$2
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671 $as_echo_n "checking for $ac_word... " >&6; }
5672 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 if test -n "$PPMTOILBM"; then
5676 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5677 else
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5681 IFS=$as_save_IFS
5682 test -z "$as_dir" && as_dir=.
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5685 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 break 2
5689 done
5690 done
5691 IFS=$as_save_IFS
5695 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5696 if test -n "$PPMTOILBM"; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5698 $as_echo "$PPMTOILBM" >&6; }
5699 else
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5705 req_avail=yes
5706 if test "$PPMTOILBM" = ""; then
5707 req_avail=no
5709 if test "$PPMTOILBM" = "no"; then
5710 req_avail=no
5712 if test "$req_avail" = "no"; then
5713 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5715 # Extract the first word of "sed", so it can be a program name with args.
5716 set dummy sed; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_SED+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$SED"; then
5723 ac_cv_prog_SED="$SED" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_SED="sed "
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5736 done
5737 done
5738 IFS=$as_save_IFS
5742 SED=$ac_cv_prog_SED
5743 if test -n "$SED"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5745 $as_echo "$SED" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5752 req_avail=yes
5753 if test "$SED" = ""; then
5754 req_avail=no
5756 if test "$SED" = "no"; then
5757 req_avail=no
5759 if test "$req_avail" = "no"; then
5760 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5762 # Extract the first word of "chmod", so it can be a program name with args.
5763 set dummy chmod; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if ${ac_cv_prog_CHMOD+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 if test -n "$CHMOD"; then
5770 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_CHMOD="chmod "
5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 break 2
5783 done
5784 done
5785 IFS=$as_save_IFS
5789 CHMOD=$ac_cv_prog_CHMOD
5790 if test -n "$CHMOD"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5792 $as_echo "$CHMOD" >&6; }
5793 else
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5799 req_avail=yes
5800 if test "$CHMOD" = ""; then
5801 req_avail=no
5803 if test "$CHMOD" = "no"; then
5804 req_avail=no
5806 if test "$req_avail" = "no"; then
5807 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5809 # Extract the first word of "patch", so it can be a program name with args.
5810 set dummy patch; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if ${ac_cv_prog_PATCH+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 if test -n "$PATCH"; then
5817 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826 ac_cv_prog_PATCH="patch "
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5830 done
5831 done
5832 IFS=$as_save_IFS
5836 PATCH=$ac_cv_prog_PATCH
5837 if test -n "$PATCH"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5839 $as_echo "$PATCH" >&6; }
5840 else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5846 req_avail=yes
5847 if test "$PATCH" = ""; then
5848 req_avail=no
5850 if test "$PATCH" = "no"; then
5851 req_avail=no
5853 if test "$req_avail" = "no"; then
5854 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5863 if test -n "$PYTHON"; then
5864 # If the user set $PYTHON, use it and don't search something else.
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5866 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5867 prog="import sys
5868 # split strings by '.' and convert to numeric. Append some zeros
5869 # because we need at least 4 digits for the hex conversion.
5870 # map returns an iterator in Python 3.0 and a list in 2.x
5871 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5872 minverhex = 0
5873 # xrange is not present in Python 3.0 and range returns an iterator
5874 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5875 sys.exit(sys.hexversion < minverhex)"
5876 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5877 ($PYTHON -c "$prog") >&5 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; then :
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5882 $as_echo "yes" >&6; }
5883 else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5886 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5888 am_display_PYTHON=$PYTHON
5889 else
5890 # Otherwise, try each interpreter until we find one that satisfies
5891 # VERSION.
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5893 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5894 if ${am_cv_pathless_PYTHON+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5898 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
5899 test "$am_cv_pathless_PYTHON" = none && break
5900 prog="import sys
5901 # split strings by '.' and convert to numeric. Append some zeros
5902 # because we need at least 4 digits for the hex conversion.
5903 # map returns an iterator in Python 3.0 and a list in 2.x
5904 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5905 minverhex = 0
5906 # xrange is not present in Python 3.0 and range returns an iterator
5907 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5908 sys.exit(sys.hexversion < minverhex)"
5909 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5910 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; then :
5914 break
5916 done
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5919 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5920 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5921 if test "$am_cv_pathless_PYTHON" = none; then
5922 PYTHON=:
5923 else
5924 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5925 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if ${ac_cv_path_PYTHON+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 case $PYTHON in
5932 [\\/]* | ?:[\\/]*)
5933 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5947 done
5948 done
5949 IFS=$as_save_IFS
5952 esac
5954 PYTHON=$ac_cv_path_PYTHON
5955 if test -n "$PYTHON"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5957 $as_echo "$PYTHON" >&6; }
5958 else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5965 am_display_PYTHON=$am_cv_pathless_PYTHON
5969 if test "$PYTHON" = :; then
5970 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5971 else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5975 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5976 if ${am_cv_python_version+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5982 $as_echo "$am_cv_python_version" >&6; }
5983 PYTHON_VERSION=$am_cv_python_version
5987 PYTHON_PREFIX='${prefix}'
5989 PYTHON_EXEC_PREFIX='${exec_prefix}'
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5994 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5995 if ${am_cv_python_platform+:} false; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6001 $as_echo "$am_cv_python_platform" >&6; }
6002 PYTHON_PLATFORM=$am_cv_python_platform
6005 # Just factor out some code duplication.
6006 am_python_setup_sysconfig="\
6007 import sys
6008 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6009 # with python 3.x. See automake bug#10227.
6010 try:
6011 import sysconfig
6012 except ImportError:
6013 can_use_sysconfig = 0
6014 else:
6015 can_use_sysconfig = 1
6016 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6017 # <https://github.com/pypa/virtualenv/issues/118>
6018 try:
6019 from platform import python_implementation
6020 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6021 can_use_sysconfig = 0
6022 except ImportError:
6023 pass"
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6027 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6028 if ${am_cv_python_pythondir+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 if test "x$prefix" = xNONE
6032 then
6033 am_py_prefix=$ac_default_prefix
6034 else
6035 am_py_prefix=$prefix
6037 am_cv_python_pythondir=`$PYTHON -c "
6038 $am_python_setup_sysconfig
6039 if can_use_sysconfig:
6040 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6041 else:
6042 from distutils import sysconfig
6043 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6044 sys.stdout.write(sitedir)"`
6045 case $am_cv_python_pythondir in
6046 $am_py_prefix*)
6047 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6048 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6051 case $am_py_prefix in
6052 /usr|/System*) ;;
6054 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6056 esac
6058 esac
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6062 $as_echo "$am_cv_python_pythondir" >&6; }
6063 pythondir=$am_cv_python_pythondir
6067 pkgpythondir=\${pythondir}/$PACKAGE
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6071 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6072 if ${am_cv_python_pyexecdir+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 if test "x$exec_prefix" = xNONE
6076 then
6077 am_py_exec_prefix=$am_py_prefix
6078 else
6079 am_py_exec_prefix=$exec_prefix
6081 am_cv_python_pyexecdir=`$PYTHON -c "
6082 $am_python_setup_sysconfig
6083 if can_use_sysconfig:
6084 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6085 else:
6086 from distutils import sysconfig
6087 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6088 sys.stdout.write(sitedir)"`
6089 case $am_cv_python_pyexecdir in
6090 $am_py_exec_prefix*)
6091 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6092 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6095 case $am_py_exec_prefix in
6096 /usr|/System*) ;;
6098 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6100 esac
6102 esac
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6106 $as_echo "$am_cv_python_pyexecdir" >&6; }
6107 pyexecdir=$am_cv_python_pyexecdir
6111 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6119 # Check whether --enable-libpng-config was given.
6120 if test "${enable_libpng_config+set}" = set; then :
6121 enableval=$enable_libpng_config;
6124 if test "$enable_libpng_config" != "no"; then
6125 # Extract the first word of "libpng-config", so it can be a program name with args.
6126 set dummy libpng-config; ac_word=$2
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 $as_echo_n "checking for $ac_word... " >&6; }
6129 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 if test -n "$arosconfig_use_libpngconfig"; then
6133 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6138 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 break 2
6146 done
6147 done
6148 IFS=$as_save_IFS
6150 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6153 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6154 if test -n "$arosconfig_use_libpngconfig"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6156 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6157 else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159 $as_echo "no" >&6; }
6164 if test "$arosconfig_use_libpngconfig" = "yes"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6166 $as_echo_n "checking libpng-config library... " >&6; }
6167 libpng_incdir="`libpng-config --cflags`"
6168 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6169 libpng="`libpng-config --libs`"
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6171 $as_echo "$libpng" >&6; }
6172 else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6175 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6176 if ${ac_cv_lib_png_png_read_png+:} false; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 ac_check_lib_save_LIBS=$LIBS
6180 LIBS="-lpng $LIBS"
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182 /* end confdefs.h. */
6184 /* Override any GCC internal prototype to avoid an error.
6185 Use char because int might match the return type of a GCC
6186 builtin and then its argument prototype would still apply. */
6187 #ifdef __cplusplus
6188 extern "C"
6189 #endif
6190 char png_read_png ();
6192 main ()
6194 return png_read_png ();
6196 return 0;
6198 _ACEOF
6199 if ac_fn_c_try_link "$LINENO"; then :
6200 ac_cv_lib_png_png_read_png=yes
6201 else
6202 ac_cv_lib_png_png_read_png=no
6204 rm -f core conftest.err conftest.$ac_objext \
6205 conftest$ac_exeext conftest.$ac_ext
6206 LIBS=$ac_check_lib_save_LIBS
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6209 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6210 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6211 libpng="-lpng"
6212 else
6213 libpng="no"
6216 if test "$libpng_libextra" != ""; then
6217 if test "$libpng" != "no"; then
6218 libpng_libextra="$libpng_libextra $libpng"
6222 req_avail=yes
6223 if test "$libpng" = ""; then
6224 req_avail=no
6226 if test "$libpng" = "no"; then
6227 req_avail=no
6229 if test "$req_avail" = "no"; then
6230 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6236 FOR=for
6238 IF=if
6240 TEST=test
6242 CMP=cmp
6246 # Check for some includes for the X11 HIDD and the kernel
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6249 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6250 if ${ac_cv_path_GREP+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 if test -z "$GREP"; then
6254 ac_path_GREP_found=false
6255 # Loop through the user's path and test for each of PROGNAME-LIST
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_prog in grep ggrep; do
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6264 as_fn_executable_p "$ac_path_GREP" || continue
6265 # Check for GNU ac_path_GREP and select it if it is found.
6266 # Check for GNU $ac_path_GREP
6267 case `"$ac_path_GREP" --version 2>&1` in
6268 *GNU*)
6269 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6271 ac_count=0
6272 $as_echo_n 0123456789 >"conftest.in"
6273 while :
6275 cat "conftest.in" "conftest.in" >"conftest.tmp"
6276 mv "conftest.tmp" "conftest.in"
6277 cp "conftest.in" "conftest.nl"
6278 $as_echo 'GREP' >> "conftest.nl"
6279 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6281 as_fn_arith $ac_count + 1 && ac_count=$as_val
6282 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6283 # Best one so far, save it but keep looking for a better one
6284 ac_cv_path_GREP="$ac_path_GREP"
6285 ac_path_GREP_max=$ac_count
6287 # 10*(2^10) chars as input seems more than enough
6288 test $ac_count -gt 10 && break
6289 done
6290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6291 esac
6293 $ac_path_GREP_found && break 3
6294 done
6295 done
6296 done
6297 IFS=$as_save_IFS
6298 if test -z "$ac_cv_path_GREP"; then
6299 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6301 else
6302 ac_cv_path_GREP=$GREP
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6307 $as_echo "$ac_cv_path_GREP" >&6; }
6308 GREP="$ac_cv_path_GREP"
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6312 $as_echo_n "checking for egrep... " >&6; }
6313 if ${ac_cv_path_EGREP+:} false; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6317 then ac_cv_path_EGREP="$GREP -E"
6318 else
6319 if test -z "$EGREP"; then
6320 ac_path_EGREP_found=false
6321 # Loop through the user's path and test for each of PROGNAME-LIST
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_prog in egrep; do
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6330 as_fn_executable_p "$ac_path_EGREP" || continue
6331 # Check for GNU ac_path_EGREP and select it if it is found.
6332 # Check for GNU $ac_path_EGREP
6333 case `"$ac_path_EGREP" --version 2>&1` in
6334 *GNU*)
6335 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6337 ac_count=0
6338 $as_echo_n 0123456789 >"conftest.in"
6339 while :
6341 cat "conftest.in" "conftest.in" >"conftest.tmp"
6342 mv "conftest.tmp" "conftest.in"
6343 cp "conftest.in" "conftest.nl"
6344 $as_echo 'EGREP' >> "conftest.nl"
6345 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6347 as_fn_arith $ac_count + 1 && ac_count=$as_val
6348 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6349 # Best one so far, save it but keep looking for a better one
6350 ac_cv_path_EGREP="$ac_path_EGREP"
6351 ac_path_EGREP_max=$ac_count
6353 # 10*(2^10) chars as input seems more than enough
6354 test $ac_count -gt 10 && break
6355 done
6356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6357 esac
6359 $ac_path_EGREP_found && break 3
6360 done
6361 done
6362 done
6363 IFS=$as_save_IFS
6364 if test -z "$ac_cv_path_EGREP"; then
6365 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6367 else
6368 ac_cv_path_EGREP=$EGREP
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6374 $as_echo "$ac_cv_path_EGREP" >&6; }
6375 EGREP="$ac_cv_path_EGREP"
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6379 $as_echo_n "checking for ANSI C header files... " >&6; }
6380 if ${ac_cv_header_stdc+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385 #include <stdlib.h>
6386 #include <stdarg.h>
6387 #include <string.h>
6388 #include <float.h>
6391 main ()
6395 return 0;
6397 _ACEOF
6398 if ac_fn_c_try_compile "$LINENO"; then :
6399 ac_cv_header_stdc=yes
6400 else
6401 ac_cv_header_stdc=no
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 if test $ac_cv_header_stdc = yes; then
6406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409 #include <string.h>
6411 _ACEOF
6412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6413 $EGREP "memchr" >/dev/null 2>&1; then :
6415 else
6416 ac_cv_header_stdc=no
6418 rm -f conftest*
6422 if test $ac_cv_header_stdc = yes; then
6423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6426 #include <stdlib.h>
6428 _ACEOF
6429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6430 $EGREP "free" >/dev/null 2>&1; then :
6432 else
6433 ac_cv_header_stdc=no
6435 rm -f conftest*
6439 if test $ac_cv_header_stdc = yes; then
6440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6441 if test "$cross_compiling" = yes; then :
6443 else
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446 #include <ctype.h>
6447 #include <stdlib.h>
6448 #if ((' ' & 0x0FF) == 0x020)
6449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6451 #else
6452 # define ISLOWER(c) \
6453 (('a' <= (c) && (c) <= 'i') \
6454 || ('j' <= (c) && (c) <= 'r') \
6455 || ('s' <= (c) && (c) <= 'z'))
6456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6457 #endif
6459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6461 main ()
6463 int i;
6464 for (i = 0; i < 256; i++)
6465 if (XOR (islower (i), ISLOWER (i))
6466 || toupper (i) != TOUPPER (i))
6467 return 2;
6468 return 0;
6470 _ACEOF
6471 if ac_fn_c_try_run "$LINENO"; then :
6473 else
6474 ac_cv_header_stdc=no
6476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6477 conftest.$ac_objext conftest.beam conftest.$ac_ext
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6483 $as_echo "$ac_cv_header_stdc" >&6; }
6484 if test $ac_cv_header_stdc = yes; then
6486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6492 inttypes.h stdint.h unistd.h
6493 do :
6494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6495 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6498 cat >>confdefs.h <<_ACEOF
6499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6500 _ACEOF
6504 done
6507 for ac_header in sys/ipc.h sys/shm.h \
6508 sys/mmap.h sys/mman.h sysexits.h \
6509 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6511 do :
6512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6513 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6515 cat >>confdefs.h <<_ACEOF
6516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6517 _ACEOF
6521 done
6524 for ac_header in sys/mount.h
6525 do :
6526 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6528 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6529 cat >>confdefs.h <<_ACEOF
6530 #define HAVE_SYS_MOUNT_H 1
6531 _ACEOF
6535 done
6537 for ac_header in GL/glx.h
6538 do :
6539 ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
6540 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
6541 cat >>confdefs.h <<_ACEOF
6542 #define HAVE_GL_GLX_H 1
6543 _ACEOF
6544 host_feature_glx=yes
6545 else
6546 host_feature_glx=no
6549 done
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
6553 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6557 #define __unused __attribute__((unused))
6558 #include <sys/stat.h>
6561 main ()
6565 return 0;
6567 _ACEOF
6568 if ac_fn_c_try_compile "$LINENO"; then :
6569 host_stat_h__unused_used=no
6570 else
6571 host_stat_h__unused_used=yes
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
6575 $as_echo "$host_stat_h__unused_used" >&6; }
6577 ac_header_dirent=no
6578 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6579 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6581 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6582 if eval \${$as_ac_Header+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6587 #include <sys/types.h>
6588 #include <$ac_hdr>
6591 main ()
6593 if ((DIR *) 0)
6594 return 0;
6596 return 0;
6598 _ACEOF
6599 if ac_fn_c_try_compile "$LINENO"; then :
6600 eval "$as_ac_Header=yes"
6601 else
6602 eval "$as_ac_Header=no"
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 eval ac_res=\$$as_ac_Header
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6608 $as_echo "$ac_res" >&6; }
6609 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6610 cat >>confdefs.h <<_ACEOF
6611 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6612 _ACEOF
6614 ac_header_dirent=$ac_hdr; break
6617 done
6618 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6619 if test $ac_header_dirent = dirent.h; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6621 $as_echo_n "checking for library containing opendir... " >&6; }
6622 if ${ac_cv_search_opendir+:} false; then :
6623 $as_echo_n "(cached) " >&6
6624 else
6625 ac_func_search_save_LIBS=$LIBS
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6629 /* Override any GCC internal prototype to avoid an error.
6630 Use char because int might match the return type of a GCC
6631 builtin and then its argument prototype would still apply. */
6632 #ifdef __cplusplus
6633 extern "C"
6634 #endif
6635 char opendir ();
6637 main ()
6639 return opendir ();
6641 return 0;
6643 _ACEOF
6644 for ac_lib in '' dir; do
6645 if test -z "$ac_lib"; then
6646 ac_res="none required"
6647 else
6648 ac_res=-l$ac_lib
6649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6651 if ac_fn_c_try_link "$LINENO"; then :
6652 ac_cv_search_opendir=$ac_res
6654 rm -f core conftest.err conftest.$ac_objext \
6655 conftest$ac_exeext
6656 if ${ac_cv_search_opendir+:} false; then :
6657 break
6659 done
6660 if ${ac_cv_search_opendir+:} false; then :
6662 else
6663 ac_cv_search_opendir=no
6665 rm conftest.$ac_ext
6666 LIBS=$ac_func_search_save_LIBS
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6669 $as_echo "$ac_cv_search_opendir" >&6; }
6670 ac_res=$ac_cv_search_opendir
6671 if test "$ac_res" != no; then :
6672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6676 else
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6678 $as_echo_n "checking for library containing opendir... " >&6; }
6679 if ${ac_cv_search_opendir+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 ac_func_search_save_LIBS=$LIBS
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6686 /* Override any GCC internal prototype to avoid an error.
6687 Use char because int might match the return type of a GCC
6688 builtin and then its argument prototype would still apply. */
6689 #ifdef __cplusplus
6690 extern "C"
6691 #endif
6692 char opendir ();
6694 main ()
6696 return opendir ();
6698 return 0;
6700 _ACEOF
6701 for ac_lib in '' x; do
6702 if test -z "$ac_lib"; then
6703 ac_res="none required"
6704 else
6705 ac_res=-l$ac_lib
6706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6708 if ac_fn_c_try_link "$LINENO"; then :
6709 ac_cv_search_opendir=$ac_res
6711 rm -f core conftest.err conftest.$ac_objext \
6712 conftest$ac_exeext
6713 if ${ac_cv_search_opendir+:} false; then :
6714 break
6716 done
6717 if ${ac_cv_search_opendir+:} false; then :
6719 else
6720 ac_cv_search_opendir=no
6722 rm conftest.$ac_ext
6723 LIBS=$ac_func_search_save_LIBS
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6726 $as_echo "$ac_cv_search_opendir" >&6; }
6727 ac_res=$ac_cv_search_opendir
6728 if test "$ac_res" != no; then :
6729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6736 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6737 if ${ac_cv_header_stat_broken+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742 #include <sys/types.h>
6743 #include <sys/stat.h>
6745 #if defined S_ISBLK && defined S_IFDIR
6746 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6747 #endif
6749 #if defined S_ISBLK && defined S_IFCHR
6750 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6751 #endif
6753 #if defined S_ISLNK && defined S_IFREG
6754 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6755 #endif
6757 #if defined S_ISSOCK && defined S_IFREG
6758 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6759 #endif
6761 _ACEOF
6762 if ac_fn_c_try_compile "$LINENO"; then :
6763 ac_cv_header_stat_broken=no
6764 else
6765 ac_cv_header_stat_broken=yes
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6770 $as_echo "$ac_cv_header_stat_broken" >&6; }
6771 if test $ac_cv_header_stat_broken = yes; then
6773 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6778 $as_echo_n "checking for ANSI C header files... " >&6; }
6779 if ${ac_cv_header_stdc+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784 #include <stdlib.h>
6785 #include <stdarg.h>
6786 #include <string.h>
6787 #include <float.h>
6790 main ()
6794 return 0;
6796 _ACEOF
6797 if ac_fn_c_try_compile "$LINENO"; then :
6798 ac_cv_header_stdc=yes
6799 else
6800 ac_cv_header_stdc=no
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804 if test $ac_cv_header_stdc = yes; then
6805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808 #include <string.h>
6810 _ACEOF
6811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6812 $EGREP "memchr" >/dev/null 2>&1; then :
6814 else
6815 ac_cv_header_stdc=no
6817 rm -f conftest*
6821 if test $ac_cv_header_stdc = yes; then
6822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 #include <stdlib.h>
6827 _ACEOF
6828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6829 $EGREP "free" >/dev/null 2>&1; then :
6831 else
6832 ac_cv_header_stdc=no
6834 rm -f conftest*
6838 if test $ac_cv_header_stdc = yes; then
6839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6840 if test "$cross_compiling" = yes; then :
6842 else
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845 #include <ctype.h>
6846 #include <stdlib.h>
6847 #if ((' ' & 0x0FF) == 0x020)
6848 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6849 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6850 #else
6851 # define ISLOWER(c) \
6852 (('a' <= (c) && (c) <= 'i') \
6853 || ('j' <= (c) && (c) <= 'r') \
6854 || ('s' <= (c) && (c) <= 'z'))
6855 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6856 #endif
6858 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6860 main ()
6862 int i;
6863 for (i = 0; i < 256; i++)
6864 if (XOR (islower (i), ISLOWER (i))
6865 || toupper (i) != TOUPPER (i))
6866 return 2;
6867 return 0;
6869 _ACEOF
6870 if ac_fn_c_try_run "$LINENO"; then :
6872 else
6873 ac_cv_header_stdc=no
6875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6876 conftest.$ac_objext conftest.beam conftest.$ac_ext
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6882 $as_echo "$ac_cv_header_stdc" >&6; }
6883 if test $ac_cv_header_stdc = yes; then
6885 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6890 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6891 if ${ac_cv_header_sys_wait_h+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 #include <sys/types.h>
6897 #include <sys/wait.h>
6898 #ifndef WEXITSTATUS
6899 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6900 #endif
6901 #ifndef WIFEXITED
6902 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6903 #endif
6906 main ()
6908 int s;
6909 wait (&s);
6910 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6912 return 0;
6914 _ACEOF
6915 if ac_fn_c_try_compile "$LINENO"; then :
6916 ac_cv_header_sys_wait_h=yes
6917 else
6918 ac_cv_header_sys_wait_h=no
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6923 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6924 if test $ac_cv_header_sys_wait_h = yes; then
6926 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6931 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6932 if ${ac_cv_header_time+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6937 #include <sys/types.h>
6938 #include <sys/time.h>
6939 #include <time.h>
6942 main ()
6944 if ((struct tm *) 0)
6945 return 0;
6947 return 0;
6949 _ACEOF
6950 if ac_fn_c_try_compile "$LINENO"; then :
6951 ac_cv_header_time=yes
6952 else
6953 ac_cv_header_time=no
6955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6958 $as_echo "$ac_cv_header_time" >&6; }
6959 if test $ac_cv_header_time = yes; then
6961 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6965 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6966 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6968 cat >>confdefs.h <<_ACEOF
6969 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6970 _ACEOF
6973 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6978 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6979 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6981 cat >>confdefs.h <<_ACEOF
6982 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6983 _ACEOF
6986 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6988 else
6989 case " $LIBOBJS " in
6990 *" fileblocks.$ac_objext "* ) ;;
6991 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6993 esac
6998 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6999 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7001 cat >>confdefs.h <<_ACEOF
7002 #define HAVE_STRUCT_STAT_ST_RDEV 1
7003 _ACEOF
7006 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7012 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7013 if ${ac_cv_struct_tm+:} false; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7018 #include <sys/types.h>
7019 #include <time.h>
7022 main ()
7024 struct tm tm;
7025 int *p = &tm.tm_sec;
7026 return !p;
7028 return 0;
7030 _ACEOF
7031 if ac_fn_c_try_compile "$LINENO"; then :
7032 ac_cv_struct_tm=time.h
7033 else
7034 ac_cv_struct_tm=sys/time.h
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7039 $as_echo "$ac_cv_struct_tm" >&6; }
7040 if test $ac_cv_struct_tm = sys/time.h; then
7042 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7046 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7047 #include <$ac_cv_struct_tm>
7050 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7052 cat >>confdefs.h <<_ACEOF
7053 #define HAVE_STRUCT_TM_TM_ZONE 1
7054 _ACEOF
7059 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7061 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7063 else
7064 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7066 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7067 ac_have_decl=1
7068 else
7069 ac_have_decl=0
7072 cat >>confdefs.h <<_ACEOF
7073 #define HAVE_DECL_TZNAME $ac_have_decl
7074 _ACEOF
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7077 $as_echo_n "checking for tzname... " >&6; }
7078 if ${ac_cv_var_tzname+:} false; then :
7079 $as_echo_n "(cached) " >&6
7080 else
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7083 #include <time.h>
7084 #if !HAVE_DECL_TZNAME
7085 extern char *tzname[];
7086 #endif
7089 main ()
7091 return tzname[0][0];
7093 return 0;
7095 _ACEOF
7096 if ac_fn_c_try_link "$LINENO"; then :
7097 ac_cv_var_tzname=yes
7098 else
7099 ac_cv_var_tzname=no
7101 rm -f core conftest.err conftest.$ac_objext \
7102 conftest$ac_exeext conftest.$ac_ext
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7105 $as_echo "$ac_cv_var_tzname" >&6; }
7106 if test $ac_cv_var_tzname = yes; then
7108 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7113 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7114 if test "x$ac_cv_type_off_t" = xyes; then :
7116 else
7118 cat >>confdefs.h <<_ACEOF
7119 #define off_t long int
7120 _ACEOF
7124 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7125 if test "x$ac_cv_type_pid_t" = xyes; then :
7127 else
7129 cat >>confdefs.h <<_ACEOF
7130 #define pid_t int
7131 _ACEOF
7135 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7136 if test "x$ac_cv_type_size_t" = xyes; then :
7138 else
7140 cat >>confdefs.h <<_ACEOF
7141 #define size_t unsigned int
7142 _ACEOF
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7147 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7148 if ${ac_cv_type_uid_t+:} false; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7153 #include <sys/types.h>
7155 _ACEOF
7156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7157 $EGREP "uid_t" >/dev/null 2>&1; then :
7158 ac_cv_type_uid_t=yes
7159 else
7160 ac_cv_type_uid_t=no
7162 rm -f conftest*
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7166 $as_echo "$ac_cv_type_uid_t" >&6; }
7167 if test $ac_cv_type_uid_t = no; then
7169 $as_echo "#define uid_t int" >>confdefs.h
7172 $as_echo "#define gid_t int" >>confdefs.h
7177 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7178 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7180 cat >>confdefs.h <<_ACEOF
7181 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7182 _ACEOF
7188 # Look for some functions
7189 for ac_func in getpagesize kqueue statfs statvfs \
7190 clone kse_create rfork_thread thr_create sa_register \
7191 getcontext makecontext setcontext sigaltstack swapcontext
7192 do :
7193 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7194 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7195 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7196 cat >>confdefs.h <<_ACEOF
7197 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7198 _ACEOF
7201 done
7207 for ac_header in $ac_header_list
7208 do :
7209 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7210 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7212 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7213 cat >>confdefs.h <<_ACEOF
7214 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7215 _ACEOF
7219 done
7228 for ac_func in getpagesize
7229 do :
7230 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7231 if test "x$ac_cv_func_getpagesize" = xyes; then :
7232 cat >>confdefs.h <<_ACEOF
7233 #define HAVE_GETPAGESIZE 1
7234 _ACEOF
7237 done
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7240 $as_echo_n "checking for working mmap... " >&6; }
7241 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 if test "$cross_compiling" = yes; then :
7245 ac_cv_func_mmap_fixed_mapped=no
7246 else
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7249 $ac_includes_default
7250 /* malloc might have been renamed as rpl_malloc. */
7251 #undef malloc
7253 /* Thanks to Mike Haertel and Jim Avera for this test.
7254 Here is a matrix of mmap possibilities:
7255 mmap private not fixed
7256 mmap private fixed at somewhere currently unmapped
7257 mmap private fixed at somewhere already mapped
7258 mmap shared not fixed
7259 mmap shared fixed at somewhere currently unmapped
7260 mmap shared fixed at somewhere already mapped
7261 For private mappings, we should verify that changes cannot be read()
7262 back from the file, nor mmap's back from the file at a different
7263 address. (There have been systems where private was not correctly
7264 implemented like the infamous i386 svr4.0, and systems where the
7265 VM page cache was not coherent with the file system buffer cache
7266 like early versions of FreeBSD and possibly contemporary NetBSD.)
7267 For shared mappings, we should conversely verify that changes get
7268 propagated back to all the places they're supposed to be.
7270 Grep wants private fixed already mapped.
7271 The main things grep needs to know about mmap are:
7272 * does it exist and is it safe to write into the mmap'd area
7273 * how to use it (BSD variants) */
7275 #include <fcntl.h>
7276 #include <sys/mman.h>
7278 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7279 char *malloc ();
7280 #endif
7282 /* This mess was copied from the GNU getpagesize.h. */
7283 #ifndef HAVE_GETPAGESIZE
7284 # ifdef _SC_PAGESIZE
7285 # define getpagesize() sysconf(_SC_PAGESIZE)
7286 # else /* no _SC_PAGESIZE */
7287 # ifdef HAVE_SYS_PARAM_H
7288 # include <sys/param.h>
7289 # ifdef EXEC_PAGESIZE
7290 # define getpagesize() EXEC_PAGESIZE
7291 # else /* no EXEC_PAGESIZE */
7292 # ifdef NBPG
7293 # define getpagesize() NBPG * CLSIZE
7294 # ifndef CLSIZE
7295 # define CLSIZE 1
7296 # endif /* no CLSIZE */
7297 # else /* no NBPG */
7298 # ifdef NBPC
7299 # define getpagesize() NBPC
7300 # else /* no NBPC */
7301 # ifdef PAGESIZE
7302 # define getpagesize() PAGESIZE
7303 # endif /* PAGESIZE */
7304 # endif /* no NBPC */
7305 # endif /* no NBPG */
7306 # endif /* no EXEC_PAGESIZE */
7307 # else /* no HAVE_SYS_PARAM_H */
7308 # define getpagesize() 8192 /* punt totally */
7309 # endif /* no HAVE_SYS_PARAM_H */
7310 # endif /* no _SC_PAGESIZE */
7312 #endif /* no HAVE_GETPAGESIZE */
7315 main ()
7317 char *data, *data2, *data3;
7318 const char *cdata2;
7319 int i, pagesize;
7320 int fd, fd2;
7322 pagesize = getpagesize ();
7324 /* First, make a file with some known garbage in it. */
7325 data = (char *) malloc (pagesize);
7326 if (!data)
7327 return 1;
7328 for (i = 0; i < pagesize; ++i)
7329 *(data + i) = rand ();
7330 umask (0);
7331 fd = creat ("conftest.mmap", 0600);
7332 if (fd < 0)
7333 return 2;
7334 if (write (fd, data, pagesize) != pagesize)
7335 return 3;
7336 close (fd);
7338 /* Next, check that the tail of a page is zero-filled. File must have
7339 non-zero length, otherwise we risk SIGBUS for entire page. */
7340 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7341 if (fd2 < 0)
7342 return 4;
7343 cdata2 = "";
7344 if (write (fd2, cdata2, 1) != 1)
7345 return 5;
7346 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7347 if (data2 == MAP_FAILED)
7348 return 6;
7349 for (i = 0; i < pagesize; ++i)
7350 if (*(data2 + i))
7351 return 7;
7352 close (fd2);
7353 if (munmap (data2, pagesize))
7354 return 8;
7356 /* Next, try to mmap the file at a fixed address which already has
7357 something else allocated at it. If we can, also make sure that
7358 we see the same garbage. */
7359 fd = open ("conftest.mmap", O_RDWR);
7360 if (fd < 0)
7361 return 9;
7362 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7363 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7364 return 10;
7365 for (i = 0; i < pagesize; ++i)
7366 if (*(data + i) != *(data2 + i))
7367 return 11;
7369 /* Finally, make sure that changes to the mapped area do not
7370 percolate back to the file as seen by read(). (This is a bug on
7371 some variants of i386 svr4.0.) */
7372 for (i = 0; i < pagesize; ++i)
7373 *(data2 + i) = *(data2 + i) + 1;
7374 data3 = (char *) malloc (pagesize);
7375 if (!data3)
7376 return 12;
7377 if (read (fd, data3, pagesize) != pagesize)
7378 return 13;
7379 for (i = 0; i < pagesize; ++i)
7380 if (*(data + i) != *(data3 + i))
7381 return 14;
7382 close (fd);
7383 free (data);
7384 free (data3);
7385 return 0;
7387 _ACEOF
7388 if ac_fn_c_try_run "$LINENO"; then :
7389 ac_cv_func_mmap_fixed_mapped=yes
7390 else
7391 ac_cv_func_mmap_fixed_mapped=no
7393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7394 conftest.$ac_objext conftest.beam conftest.$ac_ext
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7399 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7400 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7402 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7405 rm -f conftest.mmap conftest.txt
7408 #-----------------------------------------------------------------------------
7411 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7412 # it switched on by default, and we use the host compiler, so it compiles AROS
7413 # code with this enabled resulting in link failures as we don't have support
7414 # for it.
7416 # We use two methods to disable it. For the host compiler (used to compile
7417 # some hosted modules), we test to see if the compiler supports stack
7418 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7419 # work on all platforms.
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7423 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7424 save_cflags="$CFLAGS"
7425 CFLAGS="$CFLAGS -fno-stack-protector"
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7430 main ()
7434 return 0;
7436 _ACEOF
7437 if ac_fn_c_try_compile "$LINENO"; then :
7438 use_no_stack_protector="yes"
7439 else
7440 use_no_stack_protector="no"
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7444 $as_echo "$use_no_stack_protector" >&6; }
7445 if test "x-$use_no_stack_protector" = "x-yes" ; then
7446 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7448 CFLAGS="$save_cflags"
7450 #-----------------------------------------------------------------------------
7452 # Disable pointer-signedness warnings if the compiler recognises the option
7453 # (this only works for the host compiler at the moment)
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7456 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7457 save_cflags="$CFLAGS"
7458 CFLAGS="$CFLAGS -Wno-pointer-sign"
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7463 main ()
7467 return 0;
7469 _ACEOF
7470 if ac_fn_c_try_compile "$LINENO"; then :
7471 use_no_sign_warning="yes"
7472 else
7473 use_no_sign_warning="no"
7475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7477 $as_echo "$use_no_sign_warning" >&6; }
7478 if test "x-$use_no_sign_warning" = "x-yes" ; then
7479 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7481 CFLAGS="$save_cflags"
7483 #-----------------------------------------------------------------------------
7485 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7488 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7489 save_cflags="$CFLAGS"
7490 CFLAGS="$CFLAGS -fgnu89-inline"
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7495 main ()
7499 return 0;
7501 _ACEOF
7502 if ac_fn_c_try_compile "$LINENO"; then :
7503 use_gnu89_inline="yes"
7504 else
7505 use_gnu89_inline="no"
7507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7509 $as_echo "$use_gnu89_inline" >&6; }
7510 if test "x-$use_gnu89_inline" = "x-yes" ; then
7511 gnu89_inline="-fgnu89-inline"
7513 CFLAGS="$save_cflags"
7516 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7517 # On GCC >= 4.0 -iquote should be used
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7520 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7521 CFLAGS="$CFLAGS -iquote."
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7526 main ()
7530 return 0;
7532 _ACEOF
7533 if ac_fn_c_try_compile "$LINENO"; then :
7534 has_iquote="yes"
7535 else
7536 has_iquote="no"
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7540 $as_echo "$has_iquote" >&6; }
7541 if test "x-$has_iquote" = "x-yes" ; then
7542 host_cflags_iquote=-iquote
7543 host_cflags_iquote_end=
7544 else
7545 host_cflags_iquote=-I
7546 host_cflags_iquote_end=-I-
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7550 $as_echo "$as_me: Performing target configuration..." >&6;}
7553 test_kernel_cc=no
7555 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7556 export_newline="
7559 aros_elf_translate=
7560 aros_warn_flags=
7561 aros_isa_extra=
7562 aros_isa_flags=
7563 aros_config_cppflags=
7564 aros_config_cflags=
7565 aros_config_cxxflags=
7566 aros_config_aflags="$""(WARN_ALL) -x assembler-with-cpp -c"
7567 aros_config_ldflags=""
7569 aros_shared_default=yes
7571 aros_shared_cflags="-fPIC"
7572 aros_shared_aflags=""
7573 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7574 aros_kernel_ldflags="-Wl,-rpath,./lib"
7576 aros_kernel_ar_flags="cr"
7577 aros_target_ar_flags="cr"
7578 aros_target_nm_flags="-C -ul"
7579 aros_target_strip_flags="--strip-unneeded -R.comment"
7581 aros_c_libs=
7582 aros_cxx_libs=
7584 aros_target_genmap="-Wl,-Map -Xlinker"
7586 # Native flavour stuff
7587 aros_serial_debug="0"
7589 # Palm native flavour stuff
7590 aros_palm_debug_hack="0"
7592 # Unix flavour stuff
7593 aros_nesting_supervisor="0"
7595 # Collect-aros stuff: "-ius" to ignore undefined symbols
7596 ignore_undefined_symbols=""
7598 # Check for X11 by default
7599 need_x11="auto"
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7602 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7604 # Check whether --with-toolchain was given.
7605 if test "${with_toolchain+set}" = set; then :
7606 withval=$with_toolchain; aros_toolchain="$withval"
7607 else
7608 aros_toolchain="$default_toolchain_family"
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7612 $as_echo "$aros_toolchain" >&6; }
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7616 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7617 # Check whether --enable-lto was given.
7618 if test "${enable_lto+set}" = set; then :
7619 enableval=$enable_lto; aros_config_lto="$enableval"
7620 else
7621 aros_config_lto="no"
7624 if test "$aros_config_lto" != "no"; then
7625 aros_config_lto="yes"
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7628 $as_echo "$aros_config_lto" >&6; }
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7631 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7632 # Check whether --enable-coverage was given.
7633 if test "${enable_coverage+set}" = set; then :
7634 enableval=$enable_coverage; aros_config_coverage="$enableval"
7635 else
7636 aros_config_coverage="no"
7639 if test "$aros_config_coverage" != "no"; then
7640 aros_config_coverage="yes"
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7643 $as_echo "$aros_config_coverage" >&6; }
7645 use_ld_wrapper=yes
7647 case "$aros_toolchain" in
7648 *llvm*)
7649 toolchain_c_compiler="clang"
7650 toolchain_cxx_compiler="clang++"
7651 toolchain_cpp_preprocessor="clang -E"
7652 toolchain_ld="ld.lld"
7653 aros_ld="ld"
7654 toolchain_as="llvm-as"
7655 toolchain_ar="llvm-ar"
7656 toolchain_ranlib="llvm-ranlib"
7657 toolchain_nm="llvm-nm"
7658 toolchain_strip="true"
7659 toolchain_objcopy="llvm-objcopy"
7660 toolchain_objdump="llvm-objdump"
7661 use_libatomic=yes
7663 *gnu*)
7664 toolchain_c_compiler="gcc"
7665 toolchain_cxx_compiler="g++"
7666 toolchain_cpp_preprocessor="gcc -E"
7667 toolchain_as="as"
7668 aros_ld="ld"
7669 if test "$aros_config_lto" != "yes"; then
7670 toolchain_ld="ld"
7671 toolchain_ar="ar"
7672 toolchain_ranlib="ranlib"
7673 toolchain_nm="nm"
7674 else
7675 toolchain_ld="ld.bfd"
7676 toolchain_ar="gcc-ar"
7677 toolchain_ranlib="gcc-ranlib"
7678 toolchain_nm="gcc-nm"
7680 toolchain_strip="strip"
7681 toolchain_objcopy="objcopy"
7682 toolchain_objdump="objdump"
7683 use_libatomic=yes
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7687 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7688 toolchain_c_compiler="cc"
7689 toolchain_cxx_compiler="c++"
7690 toolchain_cpp_preprocessor="cpp"
7691 toolchain_ld="ld"
7692 aros_ld="ld"
7693 toolchain_as="as"
7694 toolchain_ar="ar"
7695 toolchain_ranlib="ranlib"
7696 toolchain_nm="nm"
7697 toolchain_strip="strip"
7698 toolchain_objcopy="objcopy"
7699 toolchain_objdump="objdump"
7701 esac
7703 #-----------------------------------------------------------------------------
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7706 $as_echo_n "checking which type of build to do... " >&6; }
7707 # Check whether --enable-build_type was given.
7708 if test "${enable_build_type+set}" = set; then :
7709 enableval=$enable_build_type; build_type=$enableval
7710 else
7711 build_type="personal"
7715 if test "$build_type" = "nightly"; then
7716 build_type_string="NIGHTLY"
7717 elif test "$build_type" = "snapshot"; then
7718 build_type_string="SNAPSHOT"
7719 elif test "$build_type" = "milestone"; then
7720 build_type_string="MILESTONE"
7721 elif test "$build_type" = "release"; then
7722 build_type_string="RELEASE"
7723 else
7724 build_type_string="PERSONAL"
7725 build_type="personal"
7728 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7731 $as_echo "$build_type" >&6; }
7733 #-----------------------------------------------------------------------------
7734 all_debug_types="messages stack modules mungwall symbols"
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7737 $as_echo_n "checking which debug types to enable... " >&6; }
7738 # Check whether --enable-debug was given.
7739 if test "${enable_debug+set}" = set; then :
7740 enableval=$enable_debug; debug="$enableval"
7741 else
7742 debug=""
7746 if test "$debug" = "" -o "$debug" = "no"; then
7747 debug="none"
7748 elif test "$debug" = "yes"; then
7749 debug="all"
7752 if test "$debug" = "all" ; then
7753 debug="messages stack modules symbols"
7754 for d in $all_debug_types; do
7755 export aros_${d}_debug="1"
7756 done
7757 else
7758 for d in $all_debug_types; do
7759 export aros_${d}_debug="0"
7760 done
7763 if test "$debug" != "none"; then
7764 debug=`echo $debug | sed s/,/\ /g`
7765 for d in $debug; do
7766 found="0"
7767 for d2 in $all_debug_types; do
7768 if test "$d2" = "$d"; then
7769 found="1"
7770 break
7772 done
7773 if test "$found" = "0"; then
7774 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7776 export aros_${d}_debug="1"
7777 done
7778 aros_debug="yes"
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7781 $as_echo "$debug" >&6; }
7783 if test "$aros_messages_debug" = "1"; then
7784 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7785 else
7786 aros_messages_debug=""
7788 if test "$aros_symbols_debug" = "1"; then
7789 aros_symbols_debug="-g"
7790 else
7791 aros_symbols_debug=""
7794 # These are the flags to pass when compiling debugged programs
7795 aros_debug_cppflags="$aros_messages_debug"
7796 aros_debug_cflags="$aros_symbols_debug"
7797 aros_debug_cxxflags=
7798 aros_debug_aflags=""
7799 aros_debug_ldflags="$aros_symbols_debug"
7801 #-----------------------------------------------------------------------------
7802 # Checking for distcc and ccache.
7804 # Always apply the transforms in this particular order. Basically you should
7805 # always run 'ccache distcc compiler' in that order for the best performance.
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7808 $as_echo_n "checking whether to enable distcc... " >&6; }
7809 # Check whether --enable-distcc was given.
7810 if test "${enable_distcc+set}" = set; then :
7811 enableval=$enable_distcc; distcc="$enableval"
7812 else
7813 distcc="no"
7816 if test "$distcc" != "" -a "$distcc" != "no"; then
7817 # AC_CHECK_PROG will print out the result in this case
7818 # Extract the first word of "distcc", so it can be a program name with args.
7819 set dummy distcc; ac_word=$2
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if ${ac_cv_path_DISTCC+:} false; then :
7823 $as_echo_n "(cached) " >&6
7824 else
7825 case $DISTCC in
7826 [\\/]* | ?:[\\/]*)
7827 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7841 done
7842 done
7843 IFS=$as_save_IFS
7845 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7847 esac
7849 DISTCC=$ac_cv_path_DISTCC
7850 if test -n "$DISTCC"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7852 $as_echo "$DISTCC" >&6; }
7853 else
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7859 else
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 $as_echo "no" >&6; }
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7865 $as_echo_n "checking whether to enable ccache... " >&6; }
7866 # Check whether --enable-ccache was given.
7867 if test "${enable_ccache+set}" = set; then :
7868 enableval=$enable_ccache; ccache="$enableval"
7869 else
7870 ccache="no"
7873 if test "$ccache" != "" -a "$ccache" != "no"; then
7874 # AC_CHECK_PROG will print out the result in this case
7875 # Extract the first word of "ccache", so it can be a program name with args.
7876 set dummy ccache; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if ${ac_cv_prog_CCACHE+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 if test -n "$CCACHE"; then
7883 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892 ac_cv_prog_CCACHE="ccache"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7896 done
7897 done
7898 IFS=$as_save_IFS
7902 CCACHE=$ac_cv_prog_CCACHE
7903 if test -n "$CCACHE"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7905 $as_echo "$CCACHE" >&6; }
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7917 #-----------------------------------------------------------------------------
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7919 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7921 # Check whether --with-kernel-gcc-version was given.
7922 if test "${with_kernel_gcc_version+set}" = set; then :
7923 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7924 else
7925 kernel_tool_version=""
7928 if test "$kernel_tool_version" != "" ; then
7929 msg_result=$kernel_tool_version
7930 else
7931 msg_result="default"
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7934 $as_echo "$msg_result" >&6; }
7936 #-----------------------------------------------------------------------------
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7938 $as_echo_n "checking what optimization flags to use... " >&6; }
7940 # Check whether --with-optimization was given.
7941 if test "${with_optimization+set}" = set; then :
7942 withval=$with_optimization; optimization_level="$withval"
7943 else
7944 optimization_level="unknown"
7947 if test "$optimization_level" = "unknown"; then
7948 optimization="default"
7949 if test "$debug" != "none"; then
7950 optimization_level="-O0"
7951 else
7952 optimization_level="-O2"
7954 else
7955 optimization="$optimization_level"
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7958 $as_echo "$optimization" >&6; }
7960 paranoia_default=yes
7961 #-----------------------------------------------------------------------------
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7963 $as_echo_n "checking which paranoia flags to use... " >&6; }
7965 # Check whether --with-paranoia was given.
7966 if test "${with_paranoia+set}" = set; then :
7967 withval=$with_paranoia; paranoia_flags="$withval"
7968 else
7969 paranoia_flags="$paranoia_default"
7972 if test "$paranoia_flags" = "no"; then
7973 paranoia_flags="$""(WARN_ALL) -Werror-implicit-function-declaration"
7974 msg_result="none"
7975 else
7976 if test "$paranoia_flags" = "yes"; then
7977 paranoia_flags="$""(WARN_ALL) $""(WARN_ERROR)"
7979 msg_result="$paranoia_flags"
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7982 $as_echo "$msg_result" >&6; }
7983 aros_warn_flags="$aros_warn_flags $paranoia_flags"
7985 #-----------------------------------------------------------------------------
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7987 $as_echo_n "checking what target variant to enable... " >&6; }
7988 # Check whether --enable-target_variant was given.
7989 if test "${enable_target_variant+set}" = set; then :
7990 enableval=$enable_target_variant; target_variant=$enableval
7991 else
7992 target_variant=""
7995 if test "$target_variant" = ""; then
7996 aros_target_variant=""
7997 aros_target_suffix=""
7998 enableval="none"
7999 else
8000 aros_target_variant="$target_variant"
8001 aros_target_suffix="-$target_variant"
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8004 $as_echo "$enableval" >&6; }
8006 #-----------------------------------------------------------------------------
8007 # Target-specific defaults. You can override then on a per-target basis.
8009 # Bootloader name. Currently used by PC target.
8010 target_bootloader="none"
8011 PLATFORM_EXECSMP=
8012 ENABLE_EXECSMP=
8014 #-----------------------------------------------------------------------------
8015 # Additional options for some specific targets
8017 case "$aros_target_variant" in
8018 ios)
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8020 $as_echo_n "checking XCode path... " >&6; }
8022 # Check whether --with-xcode was given.
8023 if test "${with_xcode+set}" = set; then :
8024 withval=$with_xcode; aros_xcode_path="$withval"
8025 else
8026 aros_xcode_path="/Developer"
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8030 $as_echo "$aros_xcode_path" >&6; }
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8033 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8035 # Check whether --with-sdk-version was given.
8036 if test "${with_sdk_version+set}" = set; then :
8037 withval=$with_sdk_version; aros_sdk_version="$withval"
8038 else
8039 aros_sdk_version="4.1"
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8043 $as_echo "$aros_sdk_version" >&6; }
8047 "android")
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8049 $as_echo_n "checking Android SDK path... " >&6; }
8051 # Check whether --with-sdk was given.
8052 if test "${with_sdk+set}" = set; then :
8053 withval=$with_sdk; aros_android_sdk="$withval"
8054 else
8055 aros_android_sdk=$default_android_sdk
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8059 $as_echo "$aros_android_sdk" >&6; }
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8062 $as_echo_n "checking Android NDK path... " >&6; }
8064 # Check whether --with-ndk was given.
8065 if test "${with_ndk+set}" = set; then :
8066 withval=$with_ndk; aros_android_ndk="$withval"
8067 else
8068 aros_android_ndk="none"
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8072 $as_echo "$aros_android_ndk" >&6; }
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8075 $as_echo_n "checking what Android SDK version to use... " >&6; }
8077 # Check whether --with-sdk-version was given.
8078 if test "${with_sdk_version+set}" = set; then :
8079 withval=$with_sdk_version; aros_sdk_version="$withval"
8080 else
8081 aros_sdk_version="12"
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8085 $as_echo "$aros_sdk_version" >&6; }
8087 aros_android_level=android-$aros_sdk_version
8088 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8089 echo "Platform $aros_android_level is not installed in your SDK"
8090 echo "Use --with-sdk-version=<API level number> to select another platform version"
8091 echo "You can check what plaform versions are installed in your SDK"
8092 echo "by examining contents of $aros_android_sdk/platforms directory"
8093 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8096 export PATH="$aros_android_sdk/tools:$PATH"
8097 # Extract the first word of "$android_tool", so it can be a program name with args.
8098 set dummy $android_tool; ac_word=$2
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 $as_echo_n "checking for $ac_word... " >&6; }
8101 if ${ac_cv_path_android_tool+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 case $android_tool in
8105 [\\/]* | ?:[\\/]*)
8106 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 break 2
8120 done
8121 done
8122 IFS=$as_save_IFS
8125 esac
8127 android_tool=$ac_cv_path_android_tool
8128 if test -n "$android_tool"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8130 $as_echo "$android_tool" >&6; }
8131 else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8137 req_avail=yes
8138 if test "$android_tool" = ""; then
8139 req_avail=no
8141 if test "$android_tool" = "no"; then
8142 req_avail=no
8144 if test "$req_avail" = "no"; then
8145 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8148 if test "$aros_android_ndk" != "none"; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8150 $as_echo_n "checking what Android NDK version to use... " >&6; }
8152 # Check whether --with-ndk-version was given.
8153 if test "${with_ndk_version+set}" = set; then :
8154 withval=$with_ndk_version; aros_ndk_version="$withval"
8155 else
8156 aros_ndk_version="9"
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8160 $as_echo "$aros_ndk_version" >&6; }
8163 # Extract the first word of "ant", so it can be a program name with args.
8164 set dummy ant; ac_word=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if ${ac_cv_path_ant+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 case $ant in
8171 [\\/]* | ?:[\\/]*)
8172 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 break 2
8186 done
8187 done
8188 IFS=$as_save_IFS
8191 esac
8193 ant=$ac_cv_path_ant
8194 if test -n "$ant"; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8196 $as_echo "$ant" >&6; }
8197 else
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8203 if test "$ant" = ""; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8205 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8209 $as_echo_n "checking Build debug or release apk... " >&6; }
8211 # Check whether --with-apk-version was given.
8212 if test "${with_apk_version+set}" = set; then :
8213 withval=$with_apk_version; aros_android_antapk=$withval
8214 else
8215 aros_android_antapk=release
8218 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8219 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8222 $as_echo "$aros_android_antapk" >&6; }
8224 target_extra_cfg+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8225 host_extra_cfg+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8226 aros_target_options+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8228 if test "$host_os" = "mingw32"; then
8229 android_tool="cmd //c $android_tool"
8232 need_dlopen="no"
8235 esac
8237 #-----------------------------------------------------------------------------
8238 # External toolchains
8239 kernel_tool_prefix="none"
8240 aros_tool_prefix="none"
8241 elf_tool_prefix="${target_cpu}-elf-"
8243 # Base target cpu ISA configuration switch.
8244 case "$target_cpu" in
8245 *aarch64*)
8247 *arm*)
8249 *m68k*)
8250 m68k_isa_extra="ISA_MC68000_FLAGS = -march=68000"
8251 m68k_020_isa_extra="ISA_MC68020_FLAGS = -march=68020"
8252 m68k_030_isa_extra="ISA_MC68030_FLAGS = -march=68030"
8253 m68k_040_isa_extra="ISA_MC68040_FLAGS = -march=68040"
8254 m68k_060_isa_extra="ISA_MC68060_FLAGS = -march=68060"
8255 m68k_ac080_isa_extra="ISA_AC68080_FLAGS = -march=68040"
8256 m68k_020_ext="ISA_MC68020_EXT :=020"
8257 m68k_030_ext="ISA_MC68030_EXT :=030"
8258 m68k_040_ext="ISA_MC68040_EXT :=040"
8259 m68k_060_ext="ISA_MC68060_EXT :=060"
8260 m68k_020_cflags="ISA_MC68020_CFLAGS ="
8261 m68k_030_cflags="ISA_MC68030_CFLAGS ="
8262 m68k_040_cflags="ISA_MC68040_CFLAGS ="
8263 m68k_060_cflags="ISA_MC68060_CFLAGS ="
8264 m68k_020_cppflags="ISA_MC68020_CPPFLAGS ="
8265 m68k_030_cppflags="ISA_MC68030_CPPFLAGS ="
8266 m68k_040_cppflags="ISA_MC68040_CPPFLAGS ="
8267 m68k_060_cppflags="ISA_MC68060_CPPFLAGS ="
8268 m68k_020_ldflags="ISA_MC68020_LDFLAGS ="
8269 m68k_030_ldflags="ISA_MC68030_LDFLAGS ="
8270 m68k_040_ldflags="ISA_MC68040_LDFLAGS ="
8271 m68k_060_ldflags="ISA_MC68060_LDFLAGS ="
8273 *x86_64* | *i?86*)
8274 x86_isa_extra="ISA_X86_FLAGS = -m32 -march=i486"
8275 x86_64_isa_extra="ISA_X8664_FLAGS = -mcmodel=large"
8277 *powerpc*)
8279 esac
8281 # This is the target configuration switch.
8282 case "$target_os" in
8283 linux*)
8284 use_libatomic=no
8285 aros_target_arch="linux"
8286 aros_target_family="unix"
8287 case "$target_cpu" in
8288 *m68k*)
8289 aros_target_cpu="m68k"
8290 aros_object_format="m68kelf"
8291 aros_flavour="emulcompat"
8292 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8293 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8294 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8295 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8296 gcc_target_cpu="mc68000"
8298 *i?86*)
8299 aros_target_cpu="i386"
8300 aros_object_format="elf_i386"
8301 aros_flavour="emulation"
8302 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8303 aros_isa_flags="$""(ISA_X86_FLAGS)"
8304 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8305 aros_kernel_ldflags="-Wl,-melf_i386"
8306 aros_nominal_depth=8
8307 gcc_target_cpu="i386"
8308 pci_hidd_target="hidd-pci-linux"
8309 android_tool_dir_prefix="x86"
8310 android_tool_prefix="i686-android-linux"
8311 android_ndk_arch="x86"
8313 *x86_64*)
8314 aros_target_cpu="x86_64"
8315 aros_object_format="elf_x86_64"
8316 aros_flavour="emulation"
8317 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8318 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8319 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8320 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8321 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8322 aros_nominal_depth=8
8323 pci_hidd_target="hidd-pci-linux"
8325 *powerpc*)
8326 aros_target_cpu="ppc"
8327 aros_object_format="elf32ppc"
8328 aros_flavour="emulation"
8329 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8330 aros_nominal_depth=8
8331 gcc_target_cpu="ppc"
8333 # TODO
8334 # Same as powerpc, but I need this for the nightly build to work again.
8335 # Actually, the nightly should be made working with powerpc target.
8336 # That just was too much work for the moment, another week or two.
8337 *ppc*)
8338 aros_target_cpu="ppc"
8339 aros_object_format="elf32ppc"
8340 aros_flavour="emulation"
8341 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8342 aros_nominal_depth=8
8343 gcc_target_cpu="ppc"
8345 *aarch64*)
8346 aros_target_cpu="aarch64"
8347 target_cpu="aarch64"
8348 aros_object_format="aarch64elf_aros"
8349 aros_flavour="emulation"
8350 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8351 gcc_target_cpu="aarch64"
8352 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8353 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8354 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8355 aros_c_libs="$aros_c_libs -laeabi"
8356 gcc_default_float_abi="hard"
8357 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8359 *armhf*)
8360 aros_target_cpu="arm"
8361 target_cpu="arm"
8362 aros_object_format="armelf_aros"
8363 aros_flavour="emulation"
8364 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8365 gcc_target_cpu="arm"
8366 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8367 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8368 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8369 aros_c_libs="$aros_c_libs -laeabi"
8370 gcc_default_float_abi="hard"
8371 android_tool_dir_prefix="arm-linux-androideabi"
8372 android_tool_prefix="arm-linux-androideabi"
8373 android_ndk_arch="arm"
8374 kernel_tool_prefix="arm-linux-gnueabihf-"
8376 *arm*)
8377 aros_target_cpu="arm"
8378 aros_object_format="armelf_aros"
8379 aros_flavour="emulation"
8380 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8381 gcc_target_cpu="arm"
8382 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8383 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8384 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8385 aros_c_libs="$aros_c_libs -laeabi"
8386 android_tool_dir_prefix="arm-linux-androideabi"
8387 android_tool_prefix="arm-linux-androideabi"
8388 android_ndk_arch="arm"
8389 kernel_tool_prefix="arm-linux-gnueabi-"
8392 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8394 esac
8395 case "$aros_target_variant" in
8396 android)
8398 if test "$android_ndk_arch" = ""; then
8399 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8402 aros_nominal_width=320
8403 aros_nominal_height=480
8404 if test "$aros_android_ndk" = "none"; then
8405 aros_kernel_cflags="-mandroid"
8406 aros_kernel_ldflags="-mandroid"
8407 CFLAGS="-mandroid"
8408 else
8409 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8410 kernel_tool_version=""
8411 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8412 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8413 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8414 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8415 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8417 need_x11=no
8418 # Disable implicit PIC mode
8419 aros_config_cflags="$aros_config_cflags -fno-pic"
8420 kernel_tool_prefix="$android_tool_prefix-"
8422 esac
8426 aros_target_arch="pc"
8427 aros_shared_default="no"
8428 target_bootloader="grub2"
8429 case "$target_cpu" in
8430 *i?86*)
8431 aros_target_cpu="i386"
8434 if test "$aros_object_format" = "" ; then
8435 aros_object_format="elf_i386"
8437 aros_flavour="standalone"
8438 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8439 aros_isa_flags="$""(ISA_X86_FLAGS)"
8440 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8441 aros_kernel_ldflags="-Wl,-melf_i386"
8442 aros_nominal_width=640
8443 aros_nominal_height=480
8444 gcc_target_cpu="i386"
8446 *x86_64*)
8447 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8448 aros_target_cpu="x86_64"
8449 aros_serial_debug=1
8450 if test "$aros_object_format" = "" ; then
8451 aros_object_format="elf_x86_64"
8453 aros_flavour="standalone"
8454 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8455 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8456 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8457 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8458 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8459 aros_kernel_ldflags=""
8460 aros_nominal_width=640
8461 aros_nominal_height=480
8462 case "$aros_target_variant" in
8463 smp)
8464 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8466 esac
8469 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8471 esac
8474 prep)
8475 aros_target_arch="prep"
8476 aros_shared_default="no"
8477 aros_target_cpu="ppc"
8478 aros_object_format="elf32ppc"
8479 aros_flavour="ppcnative"
8480 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8481 aros_kernel_ldflags=""
8482 aros_nominal_width=640
8483 aros_nominal_height=480
8484 gcc_target_cpu="ppc"
8487 freebsd*)
8488 use_libatomic=no
8489 aros_target_arch="freebsd"
8490 aros_target_family="unix"
8491 aros_target_cpu="i386"
8492 aros_flavour="emulation"
8493 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8494 gcc_target_cpu="i386"
8496 aros_target_strip_flags="-x"
8499 darwin*)
8500 use_libatomic=no
8501 aros_target_arch="darwin"
8502 aros_target_family="unix"
8503 aros_flavour="emulation"
8504 case "$target_cpu" in
8505 *i?86*)
8506 aros_ios_platform="iPhoneSimulator"
8507 aros_target_cpu="i386"
8508 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8509 aros_isa_flags="$""(ISA_X86_FLAGS)"
8510 aros_kernel_ldflags=""
8511 aros_macosx_version="10.4"
8512 aros_nominal_depth=8
8513 gcc_target_cpu="i386"
8514 aros_object_format="elf_i386"
8515 aros_kernel_ar_flags="-cr"
8516 aros_target_strip_flags="-x"
8517 kernel_tool_flags="-m32"
8519 *x86_64*)
8520 aros_target_cpu="x86_64"
8521 aros_object_format="elf_x86_64"
8522 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8523 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8524 aros_macosx_version="10.6"
8525 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8526 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8527 aros_kernel_cflags="-m64"
8528 aros_kernel_ldflags="-m64"
8529 aros_nominal_depth=8
8530 aros_kernel_ar="ar"
8531 aros_kernel_ar_flags="-cr"
8532 aros_kernel_ld="ld"
8533 aros_kernel_as="as"
8534 aros_kernel_ranlib="ranlib"
8535 aros_kernel_nm="nm"
8536 aros_kernel_strip="strip"
8537 kernel_tool_prefix="i686-apple-darwin10-"
8539 *ppc*)
8540 aros_target_cpu="ppc"
8541 aros_object_format="elf32ppc"
8542 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8543 aros_kernel_ldflags=""
8544 aros_macosx_version="10.0"
8545 aros_nominal_depth=8
8546 gcc_target_cpu="ppc"
8547 aros_kernel_ar="ar"
8548 aros_kernel_ar_flags="-cr"
8549 aros_kernel_ld="ld -arch ppc"
8550 aros_kernel_as="as -arch ppc"
8551 aros_kernel_ranlib="ranlib -arch ppc"
8552 aros_kernel_nm="nm -arch ppc"
8553 aros_kernel_strip="strip -arch ppc"
8554 kernel_tool_prefix="powerpc-apple-darwin10-"
8556 *arm*)
8557 aros_ios_platform="iPhoneOS"
8558 aros_target_cpu="arm"
8559 aros_object_format="armelf_aros"
8560 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8561 aros_c_libs="$aros_c_libs -laeabi"
8562 aros_nominal_depth=8
8563 gcc_target_cpu="arm"
8564 aros_kernel_ar="ar"
8565 aros_kernel_ar_flags="-cr"
8566 aros_kernel_ld="ld -arch arm"
8567 aros_kernel_ranlib="ranlib -arch arm"
8568 kernel_tool_prefix="arm-apple-darwin10-"
8569 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8572 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8574 esac
8575 case "$aros_target_variant" in
8576 ios)
8577 make_extra_targetcfg="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
8578 aros_ios_version="3.0"
8579 aros_nominal_width=320
8580 aros_nominal_height=480
8581 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8582 target_extra_cfg+="$export_newline""# Apple iOS specific$export_newline""IOS_PLATFORM := $aros_ios_platform$export_newline""IOS_OS_VERSION := $aros_ios_version$export_newline""IOS_SDK_PATH := $aros_ios_sdk$export_newline"
8583 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8584 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8585 need_x11=no
8586 # This is here because it may depend on iOS or SDK version
8587 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8588 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8589 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8592 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8593 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8595 esac
8598 dragonfly*)
8599 use_libatomic=no
8600 aros_target_arch="dragonfly"
8601 aros_target_family="unix"
8602 aros_flavour="emulation"
8603 case "$target_cpu" in
8604 *i?86*)
8605 aros_target_cpu="i386"
8606 aros_object_format="elf_i386"
8607 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8608 aros_isa_flags="$""(ISA_X86_FLAGS)"
8610 *x86_64*)
8611 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8612 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8613 aros_target_cpu="x86_64"
8614 aros_object_format="elf_x86_64"
8615 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8616 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8619 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8621 esac
8624 netbsd*)
8625 use_libatomic=no
8626 aros_target_arch="netbsd"
8627 aros_target_family="unix"
8628 case "$target_cpu" in
8629 *m68k*)
8630 aros_target_cpu="m68k"
8631 aros_object_format="m68kelf"
8632 aros_flavour="emulcompat"
8633 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8634 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8635 gcc_target_cpu="mc68000"
8637 *i?86*)
8638 aros_target_cpu="i386"
8639 aros_object_format="elf_i386"
8640 aros_flavour="emulation"
8641 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8642 aros_isa_flags="$""(ISA_X86_FLAGS)"
8643 aros_nominal_depth=8
8644 gcc_target_cpu="i386"
8647 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8649 esac
8650 aros_target_genmap="-Wl,-M -Xlinker >"
8651 aros_flavour="emulation"
8652 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8655 openbsd*)
8656 use_libatomic=no
8657 aros_target_arch="openbsd"
8658 aros_target_family="unix"
8659 case "$target_cpu" in
8660 *i?86*)
8661 aros_target_cpu="i386"
8662 aros_object_format="elf_i386"
8663 aros_flavour="emulation"
8664 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8665 aros_isa_flags="$""(ISA_X86_FLAGS)"
8666 gcc_target_cpu="i386"
8669 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8671 esac
8672 aros_target_genmap="-Wl,-M -Xlinker >"
8673 aros_target_nm_flags="-u"
8674 aros_flavour="emulation"
8677 solaris*)
8678 use_libatomic=no
8679 aros_target_arch="solaris"
8680 aros_target_family="unix"
8681 case "$target_cpu" in
8682 *i?86*)
8683 aros_target_cpu="i386"
8684 aros_object_format="elf_i386"
8685 aros_flavour="emulation"
8686 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8687 aros_isa_flags="$""(ISA_X86_FLAGS)"
8688 aros_nominal_depth=8
8689 gcc_target_cpu="i386"
8691 *sparc*)
8692 aros_target_cpu="sparc"
8693 aros_object_format="elf_sparc"
8694 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8695 gcc_target_cpu="sparc"
8698 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8700 esac
8701 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8702 aros_flavour="emulation"
8705 morphos*)
8706 aros_target_arch="morphos"
8707 aros_shared_default="no"
8708 aros_target_cpu="ppc"
8709 aros_object_format="elf_ppc"
8710 aros_flavour="nativecompat"
8711 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8712 gcc_target_cpu="ppc"
8715 sam440)
8716 aros_target_arch="sam440"
8717 aros_shared_default="no"
8718 aros_target_cpu="ppc"
8719 aros_object_format="elf32ppc"
8720 aros_flavour="ppcnative"
8721 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8722 aros_kernel_ldflags=""
8723 aros_nominal_width=1024
8724 aros_nominal_height=768
8725 aros_nominal_depth=24
8726 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8727 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8728 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8729 gcc_target_cpu="powerpc"
8732 efika)
8733 aros_target_arch="efika"
8734 aros_shared_default="no"
8735 aros_target_cpu="arm"
8736 aros_object_format="armelf_aros"
8737 aros_flavour="standalone"
8738 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8739 aros_kernel_ldflags=""
8740 aros_nominal_width=1024
8741 aros_nominal_height=600
8742 aros_c_libs="$aros_c_libs -laeabi"
8743 gcc_default_cpu="armv7-a"
8744 gcc_default_fpu="vfpv3"
8745 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8746 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8747 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8748 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8749 if test "$optimization" = "default"; then
8750 optimization_level="-Os"
8752 case "$target_cpu" in
8753 *armhf*)
8754 gcc_default_float_abi="hard"
8755 target_cpu=arm
8756 aros_target_cpu=arm
8758 *arm*)
8759 gcc_default_float_abi="softfp"
8762 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8764 esac
8767 chrp)
8768 aros_target_arch="chrp"
8769 aros_shared_default="no"
8770 aros_target_cpu="ppc"
8771 aros_object_format="elf32ppc"
8772 aros_flavour="ppcnative"
8773 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8774 aros_kernel_ldflags=""
8775 aros_nominal_width=640
8776 aros_nominal_height=480
8777 aros_isa_flags="$aros_isa_flags -mno-toc"
8778 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8779 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8780 gcc_target_cpu="powerpc"
8781 case "$aros_target_variant" in
8782 efika)
8783 aros_isa_flags="$aros_isa_flags -mcpu=603e"
8784 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8786 esac
8789 r*pi)
8790 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8791 aros_flavour="standalone"
8792 aros_target_arch="raspi"
8794 aros_shared_default="no"
8796 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8798 case "$target_cpu" in
8799 *aarch64*)
8800 aros_target_cpu="aarch64"
8801 gcc_default_cpu="aarch64"
8802 aros_object_format="aarch64elf_aros"
8804 *armhf*)
8805 aros_target_cpu="arm"
8806 gcc_default_cpu="armv6zk"
8807 gcc_default_cpu_tune="arm1176jzf-s"
8808 aros_object_format="armelf_aros"
8809 aros_isa_flags="$aros_isa_flags -marm"
8810 aros_config_cflags="$aros_config_cflags"
8811 aros_config_cxxflags="$aros_config_cxxflags"
8812 aros_config_aflags="$aros_config_aflags -marm"
8813 aros_kernel_cflags="$aros_kernel_cflags -marm"
8814 aros_target_mkdep="$aros_target_mkdep -Darm"
8815 aros_c_libs="$aros_c_libs -laeabi"
8817 *armeb*)
8818 aros_flavour="standcompat"
8819 aros_target_cpu="armeb"
8820 gcc_default_float_abi="hard"
8821 gcc_default_cpu="armv7ve"
8822 gcc_default_cpu_tune="cortex-a7"
8823 aros_object_format="armelfb_aros"
8824 aros_isa_flags="$aros_isa_flags -marm"
8825 aros_config_cflags="$aros_config_cflags"
8826 aros_config_cxxflags="$aros_config_cxxflags"
8827 aros_config_aflags="$aros_config_aflags -marm"
8828 aros_kernel_cflags="$aros_kernel_cflags -marm"
8829 aros_target_mkdep="$aros_target_mkdep -Darm"
8830 aros_c_libs="$aros_c_libs -laeabi"
8832 *arm*)
8833 aros_target_cpu="arm"
8834 gcc_default_cpu="armv6zk"
8835 gcc_default_cpu_tune="arm1176jzf-s"
8836 aros_object_format="armelf_aros"
8837 aros_isa_flags="$aros_isa_flags -marm"
8838 aros_config_cflags="$aros_config_cflags"
8839 aros_config_cxxflags="$aros_config_cxxflags"
8840 aros_config_aflags="$aros_config_aflags -marm"
8841 aros_kernel_cflags="$aros_kernel_cflags -marm"
8842 aros_target_mkdep="$aros_target_mkdep -Darm"
8843 aros_c_libs="$aros_c_libs -laeabi"
8846 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8848 esac
8850 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8851 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8852 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8853 aros_kernel_cflags="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8855 case "$aros_target_variant" in
8856 smp)
8857 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8859 esac
8862 stm32f7_discovery)
8863 aros_flavour="standalone"
8864 aros_target_arch="stm32f7_discovery"
8865 aros_target_cpu="arm"
8866 aros_target_cpu_mode="thumb2"
8867 aros_object_format="armelf_aros"
8868 aros_shared_default="no"
8870 gcc_default_cpu="armv7e-m"
8871 gcc_default_cpu_tune="cortex-m7"
8872 gcc_default_fpu="fpv5-sp-d16"
8873 gcc_default_float_abi="hard"
8875 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8878 amiga*)
8879 aros_elf_translate="$""(ELF2HUNK)"
8880 make_extra_commands="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
8881 aros_target_arch="amiga"
8882 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8883 aros_shared_default="no"
8885 case "$target_cpu" in
8886 *m68k*)
8887 # Check whether --enable-amigaos_compliance was given.
8888 if test "${enable_amigaos_compliance+set}" = set; then :
8889 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8892 aros_enable_mmu=no
8893 aros_target_cpu="m68k"
8894 aros_object_format="m68kelf"
8895 aros_flavour="standcompat"
8896 gcc_target_cpu="m68000"
8897 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8898 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8899 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
8900 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
8901 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
8902 if test "$optimization" = "default"; then
8903 optimization_level="-Os"
8905 aros_config_aflags="$aros_config_aflags"
8906 aros_target_strip_flags="-R.comment --strip-debug"
8907 aros_nominal_width=640
8908 aros_nominal_height=256
8909 aros_nominal_depth=2
8911 *ppc*)
8912 aros_cpu="ppc"
8913 aros_flavour="native"
8914 gcc_target_cpu="ppc"
8917 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8919 esac
8922 mingw*)
8923 use_libatomic=no
8924 aros_target_arch="mingw32"
8925 aros_shared_default="no"
8926 aros_flavour="emulation"
8927 aros_shared_cflags=""
8928 need_crosstools="yes"
8929 need_dlopen="no"
8930 rescomp="windres"
8931 case "$target_cpu" in
8932 *i?86*)
8933 aros_target_cpu="i386"
8934 aros_object_format="elf_i386"
8935 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8936 aros_isa_flags="$""(ISA_X86_FLAGS)"
8937 aros_nominal_depth=8
8938 gcc_target_cpu="i386"
8940 kernel_tool_prefix="i386-mingw32-"
8942 *x86_64*)
8943 aros_target_cpu="x86_64"
8944 aros_object_format="elf_x86_64"
8945 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8946 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8947 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8948 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8949 aros_nominal_depth=8
8950 kernel_tool_prefix="x86_64-w64-mingw32-"
8952 *arm*)
8953 aros_target_cpu="arm"
8954 aros_object_format="armelf_aros"
8955 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8956 aros_c_libs="$aros_c_libs -laeabi"
8957 aros_nominal_depth=8
8958 gcc_target_cpu="arm"
8959 gcc_default_float_abi="soft"
8960 kernel_tool_prefix="arm-mingw32ce-"
8961 aros_nominal_width=160
8962 aros_nominal_height=160
8965 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8967 esac
8968 if test $host_os = "cygwin"; then
8969 aros_kernel_cflags="-mno-cygwin"
8972 pp*)
8973 use_libatomic=no
8974 aros_target_arch="pp"
8975 aros_shared_default="no"
8976 case "$target_cpu" in
8977 *m68k*)
8978 aros_target_cpu="m68k"
8979 aros_object_format="m68kelf"
8980 aros_flavour="palmnative"
8981 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8982 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8983 aros_nominal_width=160
8984 aros_nominal_height=160
8985 aros_nominal_depth=1
8986 aros_target_ar_flags="cru"
8987 aros_c_libs="$aros_c_libs -lgcc1"
8988 aros_shared_default=no
8989 aros_shared_cflags="-fpic"
8990 aros_shared_aflags=""
8991 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8992 aros_kernel_ldflags="-Wl,-rpath,./lib"
8993 aros_debug_cppflags="$aros_messages_debug"
8994 aros_debug_cflags="$aros_symbols_debug"
8995 aros_debug_aflags=""
8996 aros_debug_ldflags="$aros_symbols_debug"
8997 aros_mungwall_debug="0"
8998 aros_modules_debug="0"
8999 gcc_target_cpu="mc68000"
9000 ignore_undefined_symbols="-ius"
9003 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
9005 esac
9008 mac*)
9009 use_libatomic=no
9010 aros_target_arch="mac"
9011 aros_shared_default="no"
9012 case "$target_cpu" in
9013 *m68k*)
9014 aros_target_cpu="m68k"
9015 aros_object_format="m68kelf"
9016 aros_flavour="mac68knative"
9017 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9018 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9019 aros_nominal_width=512
9020 aros_nominal_height=384
9021 aros_nominal_depth=8
9022 aros_target_ar_flags="cru"
9023 aros_c_libs="$aros_c_libs -lgcc1"
9024 aros_shared_default=no
9025 aros_shared_cflags="-fpic"
9026 aros_shared_aflags=""
9027 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9028 aros_kernel_ldflags="-Wl,-rpath,./lib"
9029 aros_debug_cppflags="$aros_messages_debug"
9030 aros_debug_cflags="$aros_symbols_debug"
9031 aros_debug_aflags=""
9032 aros_debug_ldflags="$aros_symbols_debug"
9033 aros_mungwall_debug="0"
9034 aros_modules_debug="0"
9035 gcc_target_cpu="mc68000"
9036 ignore_undefined_symbols="-ius"
9039 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9041 esac
9045 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
9047 esac
9049 #-----------------------------------------------------------------------------
9050 crosstools_guess="yes"
9051 aros_target_toolchain="no"
9052 aros_kernel_sysroot=""
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9055 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9057 # Check whether --with-kernel-toolchain-prefix was given.
9058 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9059 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9063 $as_echo "$kernel_tool_prefix" >&6; }
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9066 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9068 # Check whether --with-elf-toolchain-prefix was given.
9069 if test "${with_elf_toolchain_prefix+set}" = set; then :
9070 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
9071 crosstools_guess="no"
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9075 $as_echo "$elf_tool_prefix" >&6; }
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9078 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9080 # Check whether --with-aros-toolchain was given.
9081 if test "${with_aros_toolchain+set}" = set; then :
9082 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
9083 crosstools_guess="no"
9086 if test "$aros_tool_prefix" = "yes" ; then
9087 aros_tool_prefix=$aros_target_cpu-aros-
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9090 $as_echo "$aros_tool_prefix" >&6; }
9092 #-----------------------------------------------------------------------------
9093 # Checking if we should build crosstools..
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9095 $as_echo_n "checking whether to build crosstools... " >&6; }
9096 # Check whether --enable-crosstools was given.
9097 if test "${enable_crosstools+set}" = set; then :
9098 enableval=$enable_crosstools; crosstools="$enableval"
9099 else
9100 crosstools="$crosstools_guess"
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9104 $as_echo "$crosstools" >&6; }
9106 if test "${crosstools}" = "yes"; then
9107 if test "${crosstools_guess}" = "no"; then
9108 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9112 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
9113 aros_target_toolchain="yes"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9117 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9119 # Check whether --with-aros-toolchain-install was given.
9120 if test "${with_aros_toolchain_install+set}" = set; then :
9121 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9124 if test "x$aros_toolchain_install" = "x"; then
9125 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9126 else
9127 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9128 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9129 if test "$crosstools_guess" = "no" ; then
9130 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9131 aros_kernel_sysroot="$""(TARGET_SYSROOT)"
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9136 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9138 #-----------------------------------------------------------------------------
9139 if test "$aros_toolchain" = "gnu" ; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9141 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9144 # Check whether --with-binutils-version was given.
9145 if test "${with_binutils_version+set}" = set; then :
9146 withval=$with_binutils_version; use_binutils_version="$withval"
9147 else
9148 use_binutils_version=""
9151 if test "$use_binutils_version" = ""; then
9152 target_binutils_version="$default_binutils_version"
9153 else
9154 target_binutils_version="$use_binutils_version"
9156 if test "$aros_toolchain" = "gnu" ; then
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9158 $as_echo "$target_binutils_version" >&6; }
9162 # Helper to identify gcc version
9165 #-----------------------------------------------------------------------------
9166 if test "$aros_toolchain" = "gnu" ; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9168 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9171 # Check whether --with-gcc-version was given.
9172 if test "${with_gcc_version+set}" = set; then :
9173 withval=$with_gcc_version; use_gcc_version="$withval"
9174 else
9175 use_gcc_version=""
9178 if test "$use_gcc_version" = ""; then
9179 if test "${crosstools}" = "no"; then
9180 if test "x$aros_toolchain_install" != "x"; then
9182 target_gcc_version=""
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9184 $as_echo_n "checking gcc version... " >&6; }
9185 if ${ax_cv_gcc_version+:} false; then :
9186 $as_echo_n "(cached) " >&6
9187 else
9189 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9190 if test "x$ax_cv_gcc_version" = "x"; then :
9192 ax_cv_gcc_version=""
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9198 $as_echo "$ax_cv_gcc_version" >&6; }
9199 target_gcc_version=$ax_cv_gcc_version
9204 if test "$use_gcc_version" = ""; then
9205 target_gcc_version="$default_gcc_version"
9207 else
9208 target_gcc_version="$use_gcc_version"
9210 if test "$aros_toolchain" = "gnu" ; then
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9212 $as_echo "$target_gcc_version" >&6; }
9214 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9215 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9216 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9218 gcc_fix_bitfields="false"
9219 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9220 gcc_fix_bitfields="true"
9221 else
9222 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9223 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9224 gcc_fix_bitfields="true"
9229 if test "$gcc_fix_bitfields" = "true" ; then
9230 case "$aros_target_cpu" in
9231 *x86_64* | *i?86*)
9232 x86_isa_extra="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9233 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9235 esac
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9240 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9241 # Check whether --enable-objc was given.
9242 if test "${enable_objc+set}" = set; then :
9243 enableval=$enable_objc; objc="$enableval"
9244 else
9245 objc="no"
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9249 $as_echo "$objc" >&6; }
9250 if test "x$objc" = "xyes"; then
9251 objc_target="$objc"
9252 else
9253 objc_target="no-objc"
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9257 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9258 # Check whether --enable-java was given.
9259 if test "${enable_java+set}" = set; then :
9260 enableval=$enable_java; java="$enableval"
9261 else
9262 java="no"
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9266 $as_echo "$java" >&6; }
9267 if test "x$java" != "xno"; then
9268 java_target="$java"
9269 else
9270 java_target="no-java"
9273 spec_obj_format="-m $aros_object_format"
9274 # Now process extra architecture-specific options.
9275 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9276 # as well as floating-point ABI.
9277 case "$aros_target_cpu" in
9278 *m68k*)
9279 aros_isa_targets="M68K_ISA_TARGETS :=MC68020 MC68040"
9280 aros_isa_extra="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9281 aros_isa_extra="$aros_isa_extra$m68k_isa_extra$export_newline$m68k_020_isa_extra$export_newline$m68k_030_isa_extra$export_newline$m68k_040_isa_extra$export_newline$m68k_060_isa_extra$export_newline$m68k_ac080_isa_extra$export_newline"
9282 aros_isa_extra="$aros_isa_extra$m68k_020_cppflags$export_newline$m68k_030_cppflags$export_newline$m68k_040_cppflags$export_newline$m68k_060_cppflags$export_newline"
9283 aros_isa_extra="$aros_isa_extra$m68k_020_cflags$export_newline$m68k_030_cflags$export_newline$m68k_040_cflags$export_newline$m68k_060_cflags$export_newline"
9284 aros_isa_extra="$aros_isa_extra$m68k_020_ldflags$export_newline$m68k_030_ldflags$export_newline$m68k_040_ldflags$export_newline$m68k_060_ldflags$export_newline"
9285 aros_isa_extra="$aros_isa_extra$m68k_020_ext$export_newline$m68k_030_ext$export_newline$m68k_040_ext$export_newline$m68k_060_ext$export_newline"
9287 *x86_64*)
9288 aros_isa_extra="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9289 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9291 arm*)
9292 if test "$gcc_default_cpu" = ""; then
9293 gcc_default_cpu="armv6"
9295 if test "$gcc_default_fpu" = ""; then
9296 gcc_default_fpu="vfp"
9298 if test "$gcc_default_endian" = ""; then
9299 if test "$target_cpu" = "armeb"; then
9300 gcc_default_endian="big-endian"
9301 else
9302 gcc_default_endian="little-endian"
9305 if test "$gcc_default_float_abi" = ""; then
9306 if test "$target_cpu" = "armhf"; then
9307 gcc_default_float_abi="hard"
9308 else
9309 gcc_default_float_abi="softfp"
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9314 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9316 # Check whether --with-cpu was given.
9317 if test "${with_cpu+set}" = set; then :
9318 withval=$with_cpu; aros_gcc_cpu="$withval"
9319 else
9320 aros_gcc_cpu=$gcc_default_cpu
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9324 $as_echo "$aros_gcc_cpu" >&6; }
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9327 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9329 # Check whether --with-fpu was given.
9330 if test "${with_fpu+set}" = set; then :
9331 withval=$with_fpu; aros_gcc_fpu="$withval"
9332 else
9333 aros_gcc_fpu=$gcc_default_fpu
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9337 $as_echo "$aros_gcc_fpu" >&6; }
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9340 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9342 # Check whether --with-float was given.
9343 if test "${with_float+set}" = set; then :
9344 withval=$with_float; aros_gcc_float_abi="$withval"
9345 else
9346 aros_gcc_float_abi=$gcc_default_float_abi
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9350 $as_echo "$aros_gcc_float_abi" >&6; }
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9353 $as_echo_n "checking Which ARM mode to use... " >&6; }
9354 if test "$aros_target_cpu_mode" = ""; then
9355 aros_target_cpu_mode="arm32"
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9357 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9358 else
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9360 $as_echo "$aros_target_cpu_mode" >&6; }
9363 case "$aros_target_cpu_mode" in
9364 arm32)
9365 gcc_default_mode="arm"
9366 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -m$gcc_default_endian -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9368 arm64)
9369 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9371 thumb)
9372 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9374 thumb1)
9375 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9377 thumb2)
9378 gcc_default_mode="thumb"
9379 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9380 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -$gcc_default_endian -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9383 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9385 esac
9387 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9388 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9389 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9391 i386)
9392 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9393 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9395 esac
9397 # Some architectures may need custom ELF specs.
9398 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9399 elf_specs_in=config/${aros_object_format}-specs.in
9400 else
9401 elf_specs_in=config/elf-specs.in
9404 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9405 # Since we override specs, we may need to put these defines there
9406 if test "$gcc_target_cpu" != ""; then
9407 gcc_target_cpu="-D__${gcc_target_cpu}__"
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9411 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9413 # Check whether --with-portssources was given.
9414 if test "${with_portssources+set}" = set; then :
9415 withval=$with_portssources; with_portssrcdir=$withval
9416 else
9417 with_portssrcdir="default"
9420 if test "$with_portssrcdir" = "default"; then
9421 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9422 else
9423 AROS_PORTSSRCDIR="$with_portssrcdir"
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9426 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9429 $as_echo_n "checking which bootloader to use... " >&6; }
9431 # Check whether --with-bootloader was given.
9432 if test "${with_bootloader+set}" = set; then :
9433 withval=$with_bootloader; target_bootloader=$withval
9434 else
9435 target_bootloader=$target_bootloader
9438 if test "$target_bootloader" = "none"; then
9439 aros_target_bootloader=""
9440 else
9441 aros_target_bootloader="$target_bootloader"
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9444 $as_echo "$target_bootloader" >&6; }
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9447 $as_echo_n "checking which icon-set to use... " >&6; }
9449 # Check whether --with-iconset was given.
9450 if test "${with_iconset+set}" = set; then :
9451 withval=$with_iconset; target_iconset=$withval
9452 else
9453 target_iconset="default"
9456 if test "$target_iconset" = "default"; then
9457 aros_target_iconset="Gorilla"
9458 target_iconset="default (Gorilla)"
9459 else
9460 aros_target_iconset="$target_iconset"
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9463 $as_echo "$target_iconset" >&6; }
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9466 $as_echo_n "checking which GUI Theme to use... " >&6; }
9468 # Check whether --with-theme was given.
9469 if test "${with_theme+set}" = set; then :
9470 withval=$with_theme; target_guitheme=$withval
9471 else
9472 target_guitheme="default"
9475 if test "$target_guitheme" = "default"; then
9476 aros_target_guitheme="Ice"
9477 else
9478 aros_target_guitheme="$target_guitheme"
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9481 $as_echo "$aros_target_guitheme" >&6; }
9483 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9484 # for target code)
9485 cross_compiling=no
9487 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9488 cross_compiling=yes
9491 if test "$aros_host_cpu" == "x86_64" ; then
9492 if test "$aros_target_cpu" == "i386" ; then
9493 cross_compiling=no
9497 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9498 if test "$aros_host_arch" != "$aros_target_arch" ; then
9499 cross_compiling=yes
9501 else
9502 cross_compiling=yes
9505 if test "$cross_compiling" = "no" ; then
9506 kernel_tool_prefix=""
9507 if test "$host_cc_elf" = "yes" ; then
9508 elf_tool_prefix=""
9512 if test "$kernel_tool_version" != ""; then
9513 kernel_tool_version="-$kernel_tool_version"
9516 #######################################################################
9517 ## Compute what toolchains to use, and their paths ##
9518 #######################################################################
9520 # This takes, as input:
9521 # crosstools {yes,no}
9522 # kernel_tool_version {"",[version]}
9523 # target_tool_version {"",[version]}
9524 # kernel_tool_prefix {none,[some-arch-os-]}
9525 # gnu-toolchain -:
9526 # target_tool_prefix ${aros_target_cpu}-aros-
9527 # aros_tool_prefix ${aros_target_cpu}-aros-
9529 # The output is
9530 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9531 # Where the 'kernel' binaries are located
9532 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9533 # Where the 'target' binaries are located
9534 # (not the symlink farm - that is aros_target_*!)
9536 # The rules are:
9537 # if crosstools then
9538 # if kernel_tools_prefix = "no-kernel-prefix-"
9539 # aros_kernel_* = crosstools cc paths
9540 # aros_kernel_cc = elf cc wrapper around crosstools cc
9541 # else
9542 # VALIDATE(${kernel_tools_prefix}*)
9543 # aros_kernel_* = ${kernel_tools_prefix}*
9544 # if ${kernel_tools_prefix}cc is an AROS gcc
9545 # aros_kernel_cc = ${kernel_tools_prefix}cc
9546 # else
9547 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9548 # fi
9549 # fi
9551 # orig_target_* = aros built crosstools
9552 # orig_target_cc = elf cc wrapper around crosstools cc
9553 # else
9554 # VALIDATE(${kernel_tools_prefix}*)
9556 # orig_target_* = aros_kernel_*
9557 # if aros_kernel_cc is an AROS gcc
9558 # orig_target_cc = aros_kernel_cc
9559 # else
9560 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9561 # fi
9562 # fi
9564 if test "$aros_toolchain" = "gnu" ; then
9565 target_tool_prefix="${aros_target_cpu}-aros-"
9566 elif test "$aros_toolchain" = "llvm" ; then
9567 target_tool_prefix="bin/"
9570 if test "$kernel_tool_prefix" != "" ; then
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9572 $as_echo_n "checking which kernel tools... " >&6; }
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9574 $as_echo "$kernel_tool_prefix" >&6; };
9577 if test "$kernel_tool_prefix" = "none" ; then
9578 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9579 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9581 else
9582 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
9583 # Kernel tools required - find them
9584 # Note that 'normally', aros_kernel_* overrides will be
9585 # empty, unless specified in the per-arch sections above.
9586 test_kernel_cc=yes
9587 if test "x$aros_kernel_cpp" = "x"; then
9588 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9590 if test "${kernel_tool_version}" != ""; then
9591 if test "$aros_kernel_cpp" != ""; then
9592 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9593 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9594 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9598 if test "$aros_kernel_cpp" = ""; then
9599 if test "$cross_compiling" = "yes" ; then
9600 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9601 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9603 $as_echo_n "checking for $ac_word... " >&6; }
9604 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 case $aros_kernel_cpp in
9608 [\\/]* | ?:[\\/]*)
9609 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613 for as_dir in $PATH
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9619 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 break 2
9623 done
9624 done
9625 IFS=$as_save_IFS
9628 esac
9630 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9631 if test -n "$aros_kernel_cpp"; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9633 $as_echo "$aros_kernel_cpp" >&6; }
9634 else
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636 $as_echo "no" >&6; }
9640 else
9641 if test "$GCC" = "yes"; then
9642 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9643 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9644 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9646 $as_echo_n "checking for $ac_word... " >&6; }
9647 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 case $aros_kernel_cpp in
9651 [\\/]* | ?:[\\/]*)
9652 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656 for as_dir in `dirname $aros_gcc_cpp`
9658 IFS=$as_save_IFS
9659 test -z "$as_dir" && as_dir=.
9660 for ac_exec_ext in '' $ac_executable_extensions; do
9661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9662 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 break 2
9666 done
9667 done
9668 IFS=$as_save_IFS
9671 esac
9673 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9674 if test -n "$aros_kernel_cpp"; then
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9676 $as_echo "$aros_kernel_cpp" >&6; }
9677 else
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679 $as_echo "no" >&6; }
9684 if test "$aros_kernel_cpp" = ""; then
9685 # Extract the first word of "cpp", so it can be a program name with args.
9686 set dummy cpp; ac_word=$2
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9688 $as_echo_n "checking for $ac_word... " >&6; }
9689 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 case $aros_kernel_cpp in
9693 [\\/]* | ?:[\\/]*)
9694 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9698 for as_dir in $PATH
9700 IFS=$as_save_IFS
9701 test -z "$as_dir" && as_dir=.
9702 for ac_exec_ext in '' $ac_executable_extensions; do
9703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9704 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9706 break 2
9708 done
9709 done
9710 IFS=$as_save_IFS
9713 esac
9715 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9716 if test -n "$aros_kernel_cpp"; then
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9718 $as_echo "$aros_kernel_cpp" >&6; }
9719 else
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9721 $as_echo "no" >&6; }
9727 else
9728 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9729 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9730 set dummy $aros_kernel_cpp; ac_word=$2
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732 $as_echo_n "checking for $ac_word... " >&6; }
9733 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9734 $as_echo_n "(cached) " >&6
9735 else
9736 case $aros_kernel_cpp in
9737 [\\/]* | ?:[\\/]*)
9738 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742 for as_dir in $PATH
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9748 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 break 2
9752 done
9753 done
9754 IFS=$as_save_IFS
9757 esac
9759 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9760 if test -n "$aros_kernel_cpp"; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9762 $as_echo "$aros_kernel_cpp" >&6; }
9763 else
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9769 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9772 req_avail=yes
9773 if test "$aros_kernel_cpp" = ""; then
9774 req_avail=no
9776 if test "$aros_kernel_cpp" = "no"; then
9777 req_avail=no
9779 if test "$req_avail" = "no"; then
9780 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9783 if test "x$aros_kernel_cc" = "x"; then
9784 aros_kernel_cc=${kernel_tool_prefix}${CC}
9786 if test "${kernel_tool_version}" != ""; then
9787 if test "$aros_kernel_cc" != ""; then
9788 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9789 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9790 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9794 if test "$aros_kernel_cc" = ""; then
9795 if test "$cross_compiling" = "yes" ; then
9796 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9797 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9799 $as_echo_n "checking for $ac_word... " >&6; }
9800 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 case $aros_kernel_cc in
9804 [\\/]* | ?:[\\/]*)
9805 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809 for as_dir in $PATH
9811 IFS=$as_save_IFS
9812 test -z "$as_dir" && as_dir=.
9813 for ac_exec_ext in '' $ac_executable_extensions; do
9814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9815 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9817 break 2
9819 done
9820 done
9821 IFS=$as_save_IFS
9824 esac
9826 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9827 if test -n "$aros_kernel_cc"; then
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9829 $as_echo "$aros_kernel_cc" >&6; }
9830 else
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9832 $as_echo "no" >&6; }
9836 else
9837 if test "$GCC" = "yes"; then
9838 aros_gcc_cc=`$CC -print-prog-name=cc`
9839 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9840 set dummy `basename $aros_gcc_cc`; ac_word=$2
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9842 $as_echo_n "checking for $ac_word... " >&6; }
9843 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9844 $as_echo_n "(cached) " >&6
9845 else
9846 case $aros_kernel_cc in
9847 [\\/]* | ?:[\\/]*)
9848 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9852 for as_dir in `dirname $aros_gcc_cc`
9854 IFS=$as_save_IFS
9855 test -z "$as_dir" && as_dir=.
9856 for ac_exec_ext in '' $ac_executable_extensions; do
9857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9858 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9860 break 2
9862 done
9863 done
9864 IFS=$as_save_IFS
9867 esac
9869 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9870 if test -n "$aros_kernel_cc"; then
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9872 $as_echo "$aros_kernel_cc" >&6; }
9873 else
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; }
9880 if test "$aros_kernel_cc" = ""; then
9881 # Extract the first word of "cc", so it can be a program name with args.
9882 set dummy cc; ac_word=$2
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9884 $as_echo_n "checking for $ac_word... " >&6; }
9885 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 case $aros_kernel_cc in
9889 [\\/]* | ?:[\\/]*)
9890 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894 for as_dir in $PATH
9896 IFS=$as_save_IFS
9897 test -z "$as_dir" && as_dir=.
9898 for ac_exec_ext in '' $ac_executable_extensions; do
9899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9900 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9902 break 2
9904 done
9905 done
9906 IFS=$as_save_IFS
9909 esac
9911 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9912 if test -n "$aros_kernel_cc"; then
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9914 $as_echo "$aros_kernel_cc" >&6; }
9915 else
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917 $as_echo "no" >&6; }
9923 else
9924 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9925 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9926 set dummy $aros_kernel_cc; ac_word=$2
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9928 $as_echo_n "checking for $ac_word... " >&6; }
9929 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9930 $as_echo_n "(cached) " >&6
9931 else
9932 case $aros_kernel_cc in
9933 [\\/]* | ?:[\\/]*)
9934 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938 for as_dir in $PATH
9940 IFS=$as_save_IFS
9941 test -z "$as_dir" && as_dir=.
9942 for ac_exec_ext in '' $ac_executable_extensions; do
9943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9944 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9946 break 2
9948 done
9949 done
9950 IFS=$as_save_IFS
9953 esac
9955 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9956 if test -n "$aros_kernel_cc"; then
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9958 $as_echo "$aros_kernel_cc" >&6; }
9959 else
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9961 $as_echo "no" >&6; }
9965 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9968 req_avail=yes
9969 if test "$aros_kernel_cc" = ""; then
9970 req_avail=no
9972 if test "$aros_kernel_cc" = "no"; then
9973 req_avail=no
9975 if test "$req_avail" = "no"; then
9976 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9979 if test "x$aros_kernel_cxx" = "x"; then
9980 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9982 if test "${kernel_tool_version}" != ""; then
9983 if test "$aros_kernel_cxx" != ""; then
9984 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9985 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9986 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9990 if test "$aros_kernel_cxx" = ""; then
9991 if test "$cross_compiling" = "yes" ; then
9992 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9993 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 $as_echo_n "checking for $ac_word... " >&6; }
9996 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 case $aros_kernel_cxx in
10000 [\\/]* | ?:[\\/]*)
10001 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in $PATH
10007 IFS=$as_save_IFS
10008 test -z "$as_dir" && as_dir=.
10009 for ac_exec_ext in '' $ac_executable_extensions; do
10010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10011 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10013 break 2
10015 done
10016 done
10017 IFS=$as_save_IFS
10020 esac
10022 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10023 if test -n "$aros_kernel_cxx"; then
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10025 $as_echo "$aros_kernel_cxx" >&6; }
10026 else
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028 $as_echo "no" >&6; }
10032 else
10033 if test "$GCC" = "yes"; then
10034 aros_gcc_cxx=`$CC -print-prog-name=cxx`
10035 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10036 set dummy `basename $aros_gcc_cxx`; ac_word=$2
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10038 $as_echo_n "checking for $ac_word... " >&6; }
10039 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10040 $as_echo_n "(cached) " >&6
10041 else
10042 case $aros_kernel_cxx in
10043 [\\/]* | ?:[\\/]*)
10044 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048 for as_dir in `dirname $aros_gcc_cxx`
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10054 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10056 break 2
10058 done
10059 done
10060 IFS=$as_save_IFS
10063 esac
10065 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10066 if test -n "$aros_kernel_cxx"; then
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10068 $as_echo "$aros_kernel_cxx" >&6; }
10069 else
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071 $as_echo "no" >&6; }
10076 if test "$aros_kernel_cxx" = ""; then
10077 # Extract the first word of "cxx", so it can be a program name with args.
10078 set dummy cxx; ac_word=$2
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10080 $as_echo_n "checking for $ac_word... " >&6; }
10081 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 case $aros_kernel_cxx in
10085 [\\/]* | ?:[\\/]*)
10086 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090 for as_dir in $PATH
10092 IFS=$as_save_IFS
10093 test -z "$as_dir" && as_dir=.
10094 for ac_exec_ext in '' $ac_executable_extensions; do
10095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098 break 2
10100 done
10101 done
10102 IFS=$as_save_IFS
10105 esac
10107 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10108 if test -n "$aros_kernel_cxx"; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10110 $as_echo "$aros_kernel_cxx" >&6; }
10111 else
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 $as_echo "no" >&6; }
10119 else
10120 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10121 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10122 set dummy $aros_kernel_cxx; ac_word=$2
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10124 $as_echo_n "checking for $ac_word... " >&6; }
10125 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10126 $as_echo_n "(cached) " >&6
10127 else
10128 case $aros_kernel_cxx in
10129 [\\/]* | ?:[\\/]*)
10130 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10134 for as_dir in $PATH
10136 IFS=$as_save_IFS
10137 test -z "$as_dir" && as_dir=.
10138 for ac_exec_ext in '' $ac_executable_extensions; do
10139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10140 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10142 break 2
10144 done
10145 done
10146 IFS=$as_save_IFS
10149 esac
10151 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10152 if test -n "$aros_kernel_cxx"; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10154 $as_echo "$aros_kernel_cxx" >&6; }
10155 else
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 $as_echo "no" >&6; }
10161 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10164 # If it's set, make sure it's really there
10165 if test "x$aros_kernel_cxx" != "x" ; then
10166 req_avail=yes
10167 if test "$aros_kernel_cxx" = ""; then
10168 req_avail=no
10170 if test "$aros_kernel_cxx" = "no"; then
10171 req_avail=no
10173 if test "$req_avail" = "no"; then
10174 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10178 if test "$aros_kernel_ld" = ""; then
10179 if test "$cross_compiling" = "yes" ; then
10180 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10181 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10183 $as_echo_n "checking for $ac_word... " >&6; }
10184 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10185 $as_echo_n "(cached) " >&6
10186 else
10187 case $aros_kernel_ld in
10188 [\\/]* | ?:[\\/]*)
10189 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193 for as_dir in $PATH
10195 IFS=$as_save_IFS
10196 test -z "$as_dir" && as_dir=.
10197 for ac_exec_ext in '' $ac_executable_extensions; do
10198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10199 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10201 break 2
10203 done
10204 done
10205 IFS=$as_save_IFS
10208 esac
10210 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10211 if test -n "$aros_kernel_ld"; then
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10213 $as_echo "$aros_kernel_ld" >&6; }
10214 else
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 $as_echo "no" >&6; }
10220 else
10221 if test "$GCC" = "yes"; then
10222 aros_gcc_ld=`$CC -print-prog-name=ld`
10223 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10224 set dummy `basename $aros_gcc_ld`; ac_word=$2
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10226 $as_echo_n "checking for $ac_word... " >&6; }
10227 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230 case $aros_kernel_ld in
10231 [\\/]* | ?:[\\/]*)
10232 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10236 for as_dir in `dirname $aros_gcc_ld`
10238 IFS=$as_save_IFS
10239 test -z "$as_dir" && as_dir=.
10240 for ac_exec_ext in '' $ac_executable_extensions; do
10241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10242 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10244 break 2
10246 done
10247 done
10248 IFS=$as_save_IFS
10251 esac
10253 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10254 if test -n "$aros_kernel_ld"; then
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10256 $as_echo "$aros_kernel_ld" >&6; }
10257 else
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259 $as_echo "no" >&6; }
10264 if test "$aros_kernel_ld" = ""; then
10265 # Extract the first word of "ld", so it can be a program name with args.
10266 set dummy ld; ac_word=$2
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10268 $as_echo_n "checking for $ac_word... " >&6; }
10269 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272 case $aros_kernel_ld in
10273 [\\/]* | ?:[\\/]*)
10274 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278 for as_dir in $PATH
10280 IFS=$as_save_IFS
10281 test -z "$as_dir" && as_dir=.
10282 for ac_exec_ext in '' $ac_executable_extensions; do
10283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10284 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10286 break 2
10288 done
10289 done
10290 IFS=$as_save_IFS
10293 esac
10295 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10296 if test -n "$aros_kernel_ld"; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10298 $as_echo "$aros_kernel_ld" >&6; }
10299 else
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301 $as_echo "no" >&6; }
10307 else
10308 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10309 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10310 set dummy $aros_kernel_ld; 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_ld+:} false; then :
10314 $as_echo_n "(cached) " >&6
10315 else
10316 case $aros_kernel_ld in
10317 [\\/]* | ?:[\\/]*)
10318 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # 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_ld="$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_ld=$ac_cv_path_aros_kernel_ld
10340 if test -n "$aros_kernel_ld"; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10342 $as_echo "$aros_kernel_ld" >&6; }
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10349 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10352 req_avail=yes
10353 if test "$aros_kernel_ld" = ""; then
10354 req_avail=no
10356 if test "$aros_kernel_ld" = "no"; then
10357 req_avail=no
10359 if test "$req_avail" = "no"; then
10360 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10363 if test "$aros_kernel_as" = ""; then
10364 if test "$cross_compiling" = "yes" ; then
10365 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10366 set dummy ${kernel_tool_prefix}as; ac_word=$2
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10368 $as_echo_n "checking for $ac_word... " >&6; }
10369 if ${ac_cv_path_aros_kernel_as+:} false; then :
10370 $as_echo_n "(cached) " >&6
10371 else
10372 case $aros_kernel_as in
10373 [\\/]* | ?:[\\/]*)
10374 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378 for as_dir in $PATH
10380 IFS=$as_save_IFS
10381 test -z "$as_dir" && as_dir=.
10382 for ac_exec_ext in '' $ac_executable_extensions; do
10383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10384 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10386 break 2
10388 done
10389 done
10390 IFS=$as_save_IFS
10393 esac
10395 aros_kernel_as=$ac_cv_path_aros_kernel_as
10396 if test -n "$aros_kernel_as"; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10398 $as_echo "$aros_kernel_as" >&6; }
10399 else
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401 $as_echo "no" >&6; }
10405 else
10406 if test "$GCC" = "yes"; then
10407 aros_gcc_as=`$CC -print-prog-name=as`
10408 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10409 set dummy `basename $aros_gcc_as`; ac_word=$2
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10411 $as_echo_n "checking for $ac_word... " >&6; }
10412 if ${ac_cv_path_aros_kernel_as+:} false; then :
10413 $as_echo_n "(cached) " >&6
10414 else
10415 case $aros_kernel_as in
10416 [\\/]* | ?:[\\/]*)
10417 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421 for as_dir in `dirname $aros_gcc_as`
10423 IFS=$as_save_IFS
10424 test -z "$as_dir" && as_dir=.
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10427 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10429 break 2
10431 done
10432 done
10433 IFS=$as_save_IFS
10436 esac
10438 aros_kernel_as=$ac_cv_path_aros_kernel_as
10439 if test -n "$aros_kernel_as"; then
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10441 $as_echo "$aros_kernel_as" >&6; }
10442 else
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444 $as_echo "no" >&6; }
10449 if test "$aros_kernel_as" = ""; then
10450 # Extract the first word of "as", so it can be a program name with args.
10451 set dummy as; ac_word=$2
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453 $as_echo_n "checking for $ac_word... " >&6; }
10454 if ${ac_cv_path_aros_kernel_as+:} false; then :
10455 $as_echo_n "(cached) " >&6
10456 else
10457 case $aros_kernel_as in
10458 [\\/]* | ?:[\\/]*)
10459 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463 for as_dir in $PATH
10465 IFS=$as_save_IFS
10466 test -z "$as_dir" && as_dir=.
10467 for ac_exec_ext in '' $ac_executable_extensions; do
10468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10469 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10471 break 2
10473 done
10474 done
10475 IFS=$as_save_IFS
10478 esac
10480 aros_kernel_as=$ac_cv_path_aros_kernel_as
10481 if test -n "$aros_kernel_as"; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10483 $as_echo "$aros_kernel_as" >&6; }
10484 else
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486 $as_echo "no" >&6; }
10492 else
10493 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10494 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10495 set dummy $aros_kernel_as; ac_word=$2
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10497 $as_echo_n "checking for $ac_word... " >&6; }
10498 if ${ac_cv_path_aros_kernel_as+:} false; then :
10499 $as_echo_n "(cached) " >&6
10500 else
10501 case $aros_kernel_as in
10502 [\\/]* | ?:[\\/]*)
10503 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507 for as_dir in $PATH
10509 IFS=$as_save_IFS
10510 test -z "$as_dir" && as_dir=.
10511 for ac_exec_ext in '' $ac_executable_extensions; do
10512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10513 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10515 break 2
10517 done
10518 done
10519 IFS=$as_save_IFS
10522 esac
10524 aros_kernel_as=$ac_cv_path_aros_kernel_as
10525 if test -n "$aros_kernel_as"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10527 $as_echo "$aros_kernel_as" >&6; }
10528 else
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530 $as_echo "no" >&6; }
10534 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10537 req_avail=yes
10538 if test "$aros_kernel_as" = ""; then
10539 req_avail=no
10541 if test "$aros_kernel_as" = "no"; then
10542 req_avail=no
10544 if test "$req_avail" = "no"; then
10545 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10548 if test "$aros_kernel_ar" = ""; then
10549 if test "$cross_compiling" = "yes" ; then
10550 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10551 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10553 $as_echo_n "checking for $ac_word... " >&6; }
10554 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10555 $as_echo_n "(cached) " >&6
10556 else
10557 case $aros_kernel_ar in
10558 [\\/]* | ?:[\\/]*)
10559 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563 for as_dir in $PATH
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10569 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10571 break 2
10573 done
10574 done
10575 IFS=$as_save_IFS
10578 esac
10580 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10581 if test -n "$aros_kernel_ar"; then
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10583 $as_echo "$aros_kernel_ar" >&6; }
10584 else
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10590 else
10591 if test "$GCC" = "yes"; then
10592 aros_gcc_ar=`$CC -print-prog-name=ar`
10593 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10594 set dummy `basename $aros_gcc_ar`; ac_word=$2
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10596 $as_echo_n "checking for $ac_word... " >&6; }
10597 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10598 $as_echo_n "(cached) " >&6
10599 else
10600 case $aros_kernel_ar in
10601 [\\/]* | ?:[\\/]*)
10602 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606 for as_dir in `dirname $aros_gcc_ar`
10608 IFS=$as_save_IFS
10609 test -z "$as_dir" && as_dir=.
10610 for ac_exec_ext in '' $ac_executable_extensions; do
10611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10612 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10614 break 2
10616 done
10617 done
10618 IFS=$as_save_IFS
10621 esac
10623 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10624 if test -n "$aros_kernel_ar"; then
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10626 $as_echo "$aros_kernel_ar" >&6; }
10627 else
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10629 $as_echo "no" >&6; }
10634 if test "$aros_kernel_ar" = ""; then
10635 # Extract the first word of "ar", so it can be a program name with args.
10636 set dummy ar; ac_word=$2
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10638 $as_echo_n "checking for $ac_word... " >&6; }
10639 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10640 $as_echo_n "(cached) " >&6
10641 else
10642 case $aros_kernel_ar in
10643 [\\/]* | ?:[\\/]*)
10644 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10648 for as_dir in $PATH
10650 IFS=$as_save_IFS
10651 test -z "$as_dir" && as_dir=.
10652 for ac_exec_ext in '' $ac_executable_extensions; do
10653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10654 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10656 break 2
10658 done
10659 done
10660 IFS=$as_save_IFS
10663 esac
10665 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10666 if test -n "$aros_kernel_ar"; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10668 $as_echo "$aros_kernel_ar" >&6; }
10669 else
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671 $as_echo "no" >&6; }
10677 else
10678 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10679 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10680 set dummy $aros_kernel_ar; ac_word=$2
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10682 $as_echo_n "checking for $ac_word... " >&6; }
10683 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10684 $as_echo_n "(cached) " >&6
10685 else
10686 case $aros_kernel_ar in
10687 [\\/]* | ?:[\\/]*)
10688 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10692 for as_dir in $PATH
10694 IFS=$as_save_IFS
10695 test -z "$as_dir" && as_dir=.
10696 for ac_exec_ext in '' $ac_executable_extensions; do
10697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10698 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10700 break 2
10702 done
10703 done
10704 IFS=$as_save_IFS
10707 esac
10709 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10710 if test -n "$aros_kernel_ar"; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10712 $as_echo "$aros_kernel_ar" >&6; }
10713 else
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715 $as_echo "no" >&6; }
10719 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10722 req_avail=yes
10723 if test "$aros_kernel_ar" = ""; then
10724 req_avail=no
10726 if test "$aros_kernel_ar" = "no"; then
10727 req_avail=no
10729 if test "$req_avail" = "no"; then
10730 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10733 if test "$aros_kernel_ranlib" = ""; then
10734 if test "$cross_compiling" = "yes" ; then
10735 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10736 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10738 $as_echo_n "checking for $ac_word... " >&6; }
10739 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 case $aros_kernel_ranlib in
10743 [\\/]* | ?:[\\/]*)
10744 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748 for as_dir in $PATH
10750 IFS=$as_save_IFS
10751 test -z "$as_dir" && as_dir=.
10752 for ac_exec_ext in '' $ac_executable_extensions; do
10753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10754 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10756 break 2
10758 done
10759 done
10760 IFS=$as_save_IFS
10763 esac
10765 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10766 if test -n "$aros_kernel_ranlib"; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10768 $as_echo "$aros_kernel_ranlib" >&6; }
10769 else
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771 $as_echo "no" >&6; }
10775 else
10776 if test "$GCC" = "yes"; then
10777 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10778 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10779 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781 $as_echo_n "checking for $ac_word... " >&6; }
10782 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10783 $as_echo_n "(cached) " >&6
10784 else
10785 case $aros_kernel_ranlib in
10786 [\\/]* | ?:[\\/]*)
10787 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791 for as_dir in `dirname $aros_gcc_ranlib`
10793 IFS=$as_save_IFS
10794 test -z "$as_dir" && as_dir=.
10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10797 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10799 break 2
10801 done
10802 done
10803 IFS=$as_save_IFS
10806 esac
10808 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10809 if test -n "$aros_kernel_ranlib"; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10811 $as_echo "$aros_kernel_ranlib" >&6; }
10812 else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10819 if test "$aros_kernel_ranlib" = ""; then
10820 # Extract the first word of "ranlib", so it can be a program name with args.
10821 set dummy ranlib; ac_word=$2
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10823 $as_echo_n "checking for $ac_word... " >&6; }
10824 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10825 $as_echo_n "(cached) " >&6
10826 else
10827 case $aros_kernel_ranlib in
10828 [\\/]* | ?:[\\/]*)
10829 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833 for as_dir in $PATH
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10839 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10841 break 2
10843 done
10844 done
10845 IFS=$as_save_IFS
10848 esac
10850 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10851 if test -n "$aros_kernel_ranlib"; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10853 $as_echo "$aros_kernel_ranlib" >&6; }
10854 else
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856 $as_echo "no" >&6; }
10862 else
10863 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10864 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10865 set dummy $aros_kernel_ranlib; ac_word=$2
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10867 $as_echo_n "checking for $ac_word... " >&6; }
10868 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10869 $as_echo_n "(cached) " >&6
10870 else
10871 case $aros_kernel_ranlib in
10872 [\\/]* | ?:[\\/]*)
10873 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877 for as_dir in $PATH
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
10881 for ac_exec_ext in '' $ac_executable_extensions; do
10882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10883 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 break 2
10887 done
10888 done
10889 IFS=$as_save_IFS
10892 esac
10894 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10895 if test -n "$aros_kernel_ranlib"; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10897 $as_echo "$aros_kernel_ranlib" >&6; }
10898 else
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10900 $as_echo "no" >&6; }
10904 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10907 req_avail=yes
10908 if test "$aros_kernel_ranlib" = ""; then
10909 req_avail=no
10911 if test "$aros_kernel_ranlib" = "no"; then
10912 req_avail=no
10914 if test "$req_avail" = "no"; then
10915 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10918 if test "$aros_kernel_nm" = ""; then
10919 if test "$cross_compiling" = "yes" ; then
10920 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10921 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10923 $as_echo_n "checking for $ac_word... " >&6; }
10924 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 case $aros_kernel_nm in
10928 [\\/]* | ?:[\\/]*)
10929 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933 for as_dir in $PATH
10935 IFS=$as_save_IFS
10936 test -z "$as_dir" && as_dir=.
10937 for ac_exec_ext in '' $ac_executable_extensions; do
10938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10939 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10941 break 2
10943 done
10944 done
10945 IFS=$as_save_IFS
10948 esac
10950 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10951 if test -n "$aros_kernel_nm"; then
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10953 $as_echo "$aros_kernel_nm" >&6; }
10954 else
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10956 $as_echo "no" >&6; }
10960 else
10961 if test "$GCC" = "yes"; then
10962 aros_gcc_nm=`$CC -print-prog-name=nm`
10963 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10964 set dummy `basename $aros_gcc_nm`; ac_word=$2
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10966 $as_echo_n "checking for $ac_word... " >&6; }
10967 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10968 $as_echo_n "(cached) " >&6
10969 else
10970 case $aros_kernel_nm in
10971 [\\/]* | ?:[\\/]*)
10972 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976 for as_dir in `dirname $aros_gcc_nm`
10978 IFS=$as_save_IFS
10979 test -z "$as_dir" && as_dir=.
10980 for ac_exec_ext in '' $ac_executable_extensions; do
10981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10984 break 2
10986 done
10987 done
10988 IFS=$as_save_IFS
10991 esac
10993 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10994 if test -n "$aros_kernel_nm"; then
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10996 $as_echo "$aros_kernel_nm" >&6; }
10997 else
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999 $as_echo "no" >&6; }
11004 if test "$aros_kernel_nm" = ""; then
11005 # Extract the first word of "nm", so it can be a program name with args.
11006 set dummy nm; ac_word=$2
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11008 $as_echo_n "checking for $ac_word... " >&6; }
11009 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11010 $as_echo_n "(cached) " >&6
11011 else
11012 case $aros_kernel_nm in
11013 [\\/]* | ?:[\\/]*)
11014 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018 for as_dir in $PATH
11020 IFS=$as_save_IFS
11021 test -z "$as_dir" && as_dir=.
11022 for ac_exec_ext in '' $ac_executable_extensions; do
11023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11024 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11026 break 2
11028 done
11029 done
11030 IFS=$as_save_IFS
11033 esac
11035 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11036 if test -n "$aros_kernel_nm"; then
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11038 $as_echo "$aros_kernel_nm" >&6; }
11039 else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041 $as_echo "no" >&6; }
11047 else
11048 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11049 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11050 set dummy $aros_kernel_nm; ac_word=$2
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11052 $as_echo_n "checking for $ac_word... " >&6; }
11053 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056 case $aros_kernel_nm in
11057 [\\/]* | ?:[\\/]*)
11058 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062 for as_dir in $PATH
11064 IFS=$as_save_IFS
11065 test -z "$as_dir" && as_dir=.
11066 for ac_exec_ext in '' $ac_executable_extensions; do
11067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11068 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11070 break 2
11072 done
11073 done
11074 IFS=$as_save_IFS
11077 esac
11079 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11080 if test -n "$aros_kernel_nm"; then
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11082 $as_echo "$aros_kernel_nm" >&6; }
11083 else
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 $as_echo "no" >&6; }
11089 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
11092 req_avail=yes
11093 if test "$aros_kernel_nm" = ""; then
11094 req_avail=no
11096 if test "$aros_kernel_nm" = "no"; then
11097 req_avail=no
11099 if test "$req_avail" = "no"; then
11100 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11103 if test "$aros_kernel_strip" = ""; then
11104 if test "$cross_compiling" = "yes" ; then
11105 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11106 set dummy ${kernel_tool_prefix}strip; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 case $aros_kernel_strip in
11113 [\\/]* | ?:[\\/]*)
11114 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118 for as_dir in $PATH
11120 IFS=$as_save_IFS
11121 test -z "$as_dir" && as_dir=.
11122 for ac_exec_ext in '' $ac_executable_extensions; do
11123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11124 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11126 break 2
11128 done
11129 done
11130 IFS=$as_save_IFS
11133 esac
11135 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11136 if test -n "$aros_kernel_strip"; then
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11138 $as_echo "$aros_kernel_strip" >&6; }
11139 else
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11145 else
11146 if test "$GCC" = "yes"; then
11147 aros_gcc_strip=`$CC -print-prog-name=strip`
11148 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11149 set dummy `basename $aros_gcc_strip`; ac_word=$2
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11151 $as_echo_n "checking for $ac_word... " >&6; }
11152 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11153 $as_echo_n "(cached) " >&6
11154 else
11155 case $aros_kernel_strip in
11156 [\\/]* | ?:[\\/]*)
11157 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161 for as_dir in `dirname $aros_gcc_strip`
11163 IFS=$as_save_IFS
11164 test -z "$as_dir" && as_dir=.
11165 for ac_exec_ext in '' $ac_executable_extensions; do
11166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11167 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11169 break 2
11171 done
11172 done
11173 IFS=$as_save_IFS
11176 esac
11178 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11179 if test -n "$aros_kernel_strip"; then
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11181 $as_echo "$aros_kernel_strip" >&6; }
11182 else
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11189 if test "$aros_kernel_strip" = ""; then
11190 # Extract the first word of "strip", so it can be a program name with args.
11191 set dummy strip; ac_word=$2
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11193 $as_echo_n "checking for $ac_word... " >&6; }
11194 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197 case $aros_kernel_strip in
11198 [\\/]* | ?:[\\/]*)
11199 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203 for as_dir in $PATH
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11209 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 break 2
11213 done
11214 done
11215 IFS=$as_save_IFS
11218 esac
11220 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11221 if test -n "$aros_kernel_strip"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11223 $as_echo "$aros_kernel_strip" >&6; }
11224 else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; }
11232 else
11233 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11234 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11235 set dummy $aros_kernel_strip; ac_word=$2
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11237 $as_echo_n "checking for $ac_word... " >&6; }
11238 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11239 $as_echo_n "(cached) " >&6
11240 else
11241 case $aros_kernel_strip in
11242 [\\/]* | ?:[\\/]*)
11243 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247 for as_dir in $PATH
11249 IFS=$as_save_IFS
11250 test -z "$as_dir" && as_dir=.
11251 for ac_exec_ext in '' $ac_executable_extensions; do
11252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11253 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11255 break 2
11257 done
11258 done
11259 IFS=$as_save_IFS
11262 esac
11264 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11265 if test -n "$aros_kernel_strip"; then
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11267 $as_echo "$aros_kernel_strip" >&6; }
11268 else
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11270 $as_echo "no" >&6; }
11274 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11277 req_avail=yes
11278 if test "$aros_kernel_strip" = ""; then
11279 req_avail=no
11281 if test "$aros_kernel_strip" = "no"; then
11282 req_avail=no
11284 if test "$req_avail" = "no"; then
11285 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11288 # Objcopy and objdump are not required for the kernel
11289 # toolchain on many architectures.
11290 # So we'll look for them, but not make them strictly required.
11292 if test "$aros_kernel_objcopy" = ""; then
11293 if test "$cross_compiling" = "yes" ; then
11294 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11295 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11297 $as_echo_n "checking for $ac_word... " >&6; }
11298 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11299 $as_echo_n "(cached) " >&6
11300 else
11301 case $aros_kernel_objcopy in
11302 [\\/]* | ?:[\\/]*)
11303 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307 for as_dir in $PATH
11309 IFS=$as_save_IFS
11310 test -z "$as_dir" && as_dir=.
11311 for ac_exec_ext in '' $ac_executable_extensions; do
11312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11313 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11315 break 2
11317 done
11318 done
11319 IFS=$as_save_IFS
11322 esac
11324 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11325 if test -n "$aros_kernel_objcopy"; then
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11327 $as_echo "$aros_kernel_objcopy" >&6; }
11328 else
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330 $as_echo "no" >&6; }
11334 else
11335 if test "$GCC" = "yes"; then
11336 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11337 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11338 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340 $as_echo_n "checking for $ac_word... " >&6; }
11341 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11342 $as_echo_n "(cached) " >&6
11343 else
11344 case $aros_kernel_objcopy in
11345 [\\/]* | ?:[\\/]*)
11346 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in `dirname $aros_gcc_objcopy`
11352 IFS=$as_save_IFS
11353 test -z "$as_dir" && as_dir=.
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11356 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11358 break 2
11360 done
11361 done
11362 IFS=$as_save_IFS
11365 esac
11367 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11368 if test -n "$aros_kernel_objcopy"; then
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11370 $as_echo "$aros_kernel_objcopy" >&6; }
11371 else
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373 $as_echo "no" >&6; }
11378 if test "$aros_kernel_objcopy" = ""; then
11379 # Extract the first word of "objcopy", so it can be a program name with args.
11380 set dummy objcopy; ac_word=$2
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 case $aros_kernel_objcopy in
11387 [\\/]* | ?:[\\/]*)
11388 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11398 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11402 done
11403 done
11404 IFS=$as_save_IFS
11407 esac
11409 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11410 if test -n "$aros_kernel_objcopy"; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11412 $as_echo "$aros_kernel_objcopy" >&6; }
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415 $as_echo "no" >&6; }
11421 else
11422 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11423 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11424 set dummy $aros_kernel_objcopy; ac_word=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426 $as_echo_n "checking for $ac_word... " >&6; }
11427 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11428 $as_echo_n "(cached) " >&6
11429 else
11430 case $aros_kernel_objcopy in
11431 [\\/]* | ?:[\\/]*)
11432 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
11441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11442 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11444 break 2
11446 done
11447 done
11448 IFS=$as_save_IFS
11451 esac
11453 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11454 if test -n "$aros_kernel_objcopy"; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11456 $as_echo "$aros_kernel_objcopy" >&6; }
11457 else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11463 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11467 if test "$aros_kernel_objdump" = ""; then
11468 if test "$cross_compiling" = "yes" ; then
11469 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11470 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11472 $as_echo_n "checking for $ac_word... " >&6; }
11473 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11474 $as_echo_n "(cached) " >&6
11475 else
11476 case $aros_kernel_objdump in
11477 [\\/]* | ?:[\\/]*)
11478 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482 for as_dir in $PATH
11484 IFS=$as_save_IFS
11485 test -z "$as_dir" && as_dir=.
11486 for ac_exec_ext in '' $ac_executable_extensions; do
11487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11488 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11490 break 2
11492 done
11493 done
11494 IFS=$as_save_IFS
11497 esac
11499 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11500 if test -n "$aros_kernel_objdump"; then
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11502 $as_echo "$aros_kernel_objdump" >&6; }
11503 else
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505 $as_echo "no" >&6; }
11509 else
11510 if test "$GCC" = "yes"; then
11511 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11512 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11513 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515 $as_echo_n "checking for $ac_word... " >&6; }
11516 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 case $aros_kernel_objdump in
11520 [\\/]* | ?:[\\/]*)
11521 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in `dirname $aros_gcc_objdump`
11527 IFS=$as_save_IFS
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11533 break 2
11535 done
11536 done
11537 IFS=$as_save_IFS
11540 esac
11542 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11543 if test -n "$aros_kernel_objdump"; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11545 $as_echo "$aros_kernel_objdump" >&6; }
11546 else
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; }
11553 if test "$aros_kernel_objdump" = ""; then
11554 # Extract the first word of "objdump", so it can be a program name with args.
11555 set dummy objdump; ac_word=$2
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557 $as_echo_n "checking for $ac_word... " >&6; }
11558 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 case $aros_kernel_objdump in
11562 [\\/]* | ?:[\\/]*)
11563 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567 for as_dir in $PATH
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11573 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11575 break 2
11577 done
11578 done
11579 IFS=$as_save_IFS
11582 esac
11584 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11585 if test -n "$aros_kernel_objdump"; then
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11587 $as_echo "$aros_kernel_objdump" >&6; }
11588 else
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590 $as_echo "no" >&6; }
11596 else
11597 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11598 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11599 set dummy $aros_kernel_objdump; ac_word=$2
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601 $as_echo_n "checking for $ac_word... " >&6; }
11602 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 case $aros_kernel_objdump in
11606 [\\/]* | ?:[\\/]*)
11607 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11613 IFS=$as_save_IFS
11614 test -z "$as_dir" && as_dir=.
11615 for ac_exec_ext in '' $ac_executable_extensions; do
11616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11617 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11619 break 2
11621 done
11622 done
11623 IFS=$as_save_IFS
11626 esac
11628 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11629 if test -n "$aros_kernel_objdump"; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11631 $as_echo "$aros_kernel_objdump" >&6; }
11632 else
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11638 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11641 if test "x${crosstools}" != "xyes" ; then
11642 req_avail=yes
11643 if test "$aros_kernel_objcopy" = ""; then
11644 req_avail=no
11646 if test "$aros_kernel_objcopy" = "no"; then
11647 req_avail=no
11649 if test "$req_avail" = "no"; then
11650 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11652 req_avail=yes
11653 if test "$aros_kernel_objdump" = ""; then
11654 req_avail=no
11656 if test "$aros_kernel_objdump" = "no"; then
11657 req_avail=no
11659 if test "$req_avail" = "no"; then
11660 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11667 $as_echo_n "checking which target tools to use... " >&6; }
11668 if test "$aros_target_toolchain" = "yes"; then
11669 if test "$aros_toolchain" = "llvm" ; then
11670 msg_result="llvm"
11671 else
11672 msg_result=$target_tool_prefix
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11675 $as_echo "$msg_result" >&6; }
11676 # We are building AROS crosstools
11677 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11678 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11679 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11680 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11681 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11682 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11683 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11684 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11685 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11686 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11687 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11688 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11689 else
11690 # Determine whether AROS or ELF tools should be used
11691 if test "$aros_tool_prefix" = "none"; then
11692 aros_tool_prefix="${elf_tool_prefix}"
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11696 $as_echo "$aros_tool_prefix" >&6; }
11697 # We are *not* building AROS crosstools - use the AROS or ELF tools
11699 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11700 if test "$cross_compiling" = "yes" ; then
11701 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11702 set dummy ${target_tool_prefix}cpp; ac_word=$2
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704 $as_echo_n "checking for $ac_word... " >&6; }
11705 if ${ac_cv_path_orig_target_cpp+:} false; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 case $orig_target_cpp in
11709 [\\/]* | ?:[\\/]*)
11710 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714 for as_dir in $PATH
11716 IFS=$as_save_IFS
11717 test -z "$as_dir" && as_dir=.
11718 for ac_exec_ext in '' $ac_executable_extensions; do
11719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11720 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11722 break 2
11724 done
11725 done
11726 IFS=$as_save_IFS
11729 esac
11731 orig_target_cpp=$ac_cv_path_orig_target_cpp
11732 if test -n "$orig_target_cpp"; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11734 $as_echo "$orig_target_cpp" >&6; }
11735 else
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11741 else
11742 if test "$GCC" = "yes"; then
11743 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11744 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11745 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747 $as_echo_n "checking for $ac_word... " >&6; }
11748 if ${ac_cv_path_orig_target_cpp+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11751 case $orig_target_cpp in
11752 [\\/]* | ?:[\\/]*)
11753 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757 for as_dir in `dirname $aros_gcc_cpp`
11759 IFS=$as_save_IFS
11760 test -z "$as_dir" && as_dir=.
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11763 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11765 break 2
11767 done
11768 done
11769 IFS=$as_save_IFS
11772 esac
11774 orig_target_cpp=$ac_cv_path_orig_target_cpp
11775 if test -n "$orig_target_cpp"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11777 $as_echo "$orig_target_cpp" >&6; }
11778 else
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11785 if test "$orig_target_cpp" = ""; then
11786 # Extract the first word of "cpp", so it can be a program name with args.
11787 set dummy cpp; ac_word=$2
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789 $as_echo_n "checking for $ac_word... " >&6; }
11790 if ${ac_cv_path_orig_target_cpp+:} false; then :
11791 $as_echo_n "(cached) " >&6
11792 else
11793 case $orig_target_cpp in
11794 [\\/]* | ?:[\\/]*)
11795 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11799 for as_dir in $PATH
11801 IFS=$as_save_IFS
11802 test -z "$as_dir" && as_dir=.
11803 for ac_exec_ext in '' $ac_executable_extensions; do
11804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11805 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11807 break 2
11809 done
11810 done
11811 IFS=$as_save_IFS
11814 esac
11816 orig_target_cpp=$ac_cv_path_orig_target_cpp
11817 if test -n "$orig_target_cpp"; then
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11819 $as_echo "$orig_target_cpp" >&6; }
11820 else
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822 $as_echo "no" >&6; }
11828 else
11829 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11830 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11831 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if ${ac_cv_path_orig_target_cpp+:} false; then :
11835 $as_echo_n "(cached) " >&6
11836 else
11837 case $orig_target_cpp in
11838 [\\/]* | ?:[\\/]*)
11839 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $PATH
11845 IFS=$as_save_IFS
11846 test -z "$as_dir" && as_dir=.
11847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11849 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851 break 2
11853 done
11854 done
11855 IFS=$as_save_IFS
11858 esac
11860 orig_target_cpp=$ac_cv_path_orig_target_cpp
11861 if test -n "$orig_target_cpp"; then
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11863 $as_echo "$orig_target_cpp" >&6; }
11864 else
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11870 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11873 req_avail=yes
11874 if test "$orig_target_cpp" = ""; then
11875 req_avail=no
11877 if test "$orig_target_cpp" = "no"; then
11878 req_avail=no
11880 if test "$req_avail" = "no"; then
11881 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11884 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11885 if test "$cross_compiling" = "yes" ; then
11886 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11887 set dummy ${target_tool_prefix}gcc; ac_word=$2
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889 $as_echo_n "checking for $ac_word... " >&6; }
11890 if ${ac_cv_path_orig_target_cc+:} false; then :
11891 $as_echo_n "(cached) " >&6
11892 else
11893 case $orig_target_cc in
11894 [\\/]* | ?:[\\/]*)
11895 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899 for as_dir in $PATH
11901 IFS=$as_save_IFS
11902 test -z "$as_dir" && as_dir=.
11903 for ac_exec_ext in '' $ac_executable_extensions; do
11904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11905 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11907 break 2
11909 done
11910 done
11911 IFS=$as_save_IFS
11914 esac
11916 orig_target_cc=$ac_cv_path_orig_target_cc
11917 if test -n "$orig_target_cc"; then
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11919 $as_echo "$orig_target_cc" >&6; }
11920 else
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922 $as_echo "no" >&6; }
11926 else
11927 if test "$GCC" = "yes"; then
11928 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11929 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11930 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11932 $as_echo_n "checking for $ac_word... " >&6; }
11933 if ${ac_cv_path_orig_target_cc+:} false; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 case $orig_target_cc in
11937 [\\/]* | ?:[\\/]*)
11938 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11942 for as_dir in `dirname $aros_gcc_gcc`
11944 IFS=$as_save_IFS
11945 test -z "$as_dir" && as_dir=.
11946 for ac_exec_ext in '' $ac_executable_extensions; do
11947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11948 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11950 break 2
11952 done
11953 done
11954 IFS=$as_save_IFS
11957 esac
11959 orig_target_cc=$ac_cv_path_orig_target_cc
11960 if test -n "$orig_target_cc"; then
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11962 $as_echo "$orig_target_cc" >&6; }
11963 else
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965 $as_echo "no" >&6; }
11970 if test "$orig_target_cc" = ""; then
11971 # Extract the first word of "gcc", so it can be a program name with args.
11972 set dummy gcc; ac_word=$2
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11974 $as_echo_n "checking for $ac_word... " >&6; }
11975 if ${ac_cv_path_orig_target_cc+:} false; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 case $orig_target_cc in
11979 [\\/]* | ?:[\\/]*)
11980 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11984 for as_dir in $PATH
11986 IFS=$as_save_IFS
11987 test -z "$as_dir" && as_dir=.
11988 for ac_exec_ext in '' $ac_executable_extensions; do
11989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11990 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11992 break 2
11994 done
11995 done
11996 IFS=$as_save_IFS
11999 esac
12001 orig_target_cc=$ac_cv_path_orig_target_cc
12002 if test -n "$orig_target_cc"; then
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12004 $as_echo "$orig_target_cc" >&6; }
12005 else
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12013 else
12014 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12015 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12016 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12018 $as_echo_n "checking for $ac_word... " >&6; }
12019 if ${ac_cv_path_orig_target_cc+:} false; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 case $orig_target_cc in
12023 [\\/]* | ?:[\\/]*)
12024 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028 for as_dir in $PATH
12030 IFS=$as_save_IFS
12031 test -z "$as_dir" && as_dir=.
12032 for ac_exec_ext in '' $ac_executable_extensions; do
12033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12034 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12036 break 2
12038 done
12039 done
12040 IFS=$as_save_IFS
12043 esac
12045 orig_target_cc=$ac_cv_path_orig_target_cc
12046 if test -n "$orig_target_cc"; then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12048 $as_echo "$orig_target_cc" >&6; }
12049 else
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051 $as_echo "no" >&6; }
12055 orig_target_cc="$orig_target_cc $ac_tool_optarg"
12058 req_avail=yes
12059 if test "$orig_target_cc" = ""; then
12060 req_avail=no
12062 if test "$orig_target_cc" = "no"; then
12063 req_avail=no
12065 if test "$req_avail" = "no"; then
12066 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12069 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12070 if test "$cross_compiling" = "yes" ; then
12071 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12072 set dummy ${target_tool_prefix}g++; ac_word=$2
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if ${ac_cv_path_orig_target_cxx+:} false; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078 case $orig_target_cxx in
12079 [\\/]* | ?:[\\/]*)
12080 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084 for as_dir in $PATH
12086 IFS=$as_save_IFS
12087 test -z "$as_dir" && as_dir=.
12088 for ac_exec_ext in '' $ac_executable_extensions; do
12089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12090 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12092 break 2
12094 done
12095 done
12096 IFS=$as_save_IFS
12099 esac
12101 orig_target_cxx=$ac_cv_path_orig_target_cxx
12102 if test -n "$orig_target_cxx"; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12104 $as_echo "$orig_target_cxx" >&6; }
12105 else
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12111 else
12112 if test "$GCC" = "yes"; then
12113 aros_gcc_g++=`$CC -print-prog-name=g++`
12114 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12115 set dummy `basename $aros_gcc_g++`; ac_word=$2
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117 $as_echo_n "checking for $ac_word... " >&6; }
12118 if ${ac_cv_path_orig_target_cxx+:} false; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 case $orig_target_cxx in
12122 [\\/]* | ?:[\\/]*)
12123 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in `dirname $aros_gcc_g++`
12129 IFS=$as_save_IFS
12130 test -z "$as_dir" && as_dir=.
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12133 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12135 break 2
12137 done
12138 done
12139 IFS=$as_save_IFS
12142 esac
12144 orig_target_cxx=$ac_cv_path_orig_target_cxx
12145 if test -n "$orig_target_cxx"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12147 $as_echo "$orig_target_cxx" >&6; }
12148 else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12155 if test "$orig_target_cxx" = ""; then
12156 # Extract the first word of "g++", so it can be a program name with args.
12157 set dummy g++; ac_word=$2
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12159 $as_echo_n "checking for $ac_word... " >&6; }
12160 if ${ac_cv_path_orig_target_cxx+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12163 case $orig_target_cxx in
12164 [\\/]* | ?:[\\/]*)
12165 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12171 IFS=$as_save_IFS
12172 test -z "$as_dir" && as_dir=.
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12175 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12177 break 2
12179 done
12180 done
12181 IFS=$as_save_IFS
12184 esac
12186 orig_target_cxx=$ac_cv_path_orig_target_cxx
12187 if test -n "$orig_target_cxx"; then
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12189 $as_echo "$orig_target_cxx" >&6; }
12190 else
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192 $as_echo "no" >&6; }
12198 else
12199 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12200 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12201 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if ${ac_cv_path_orig_target_cxx+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 case $orig_target_cxx in
12208 [\\/]* | ?:[\\/]*)
12209 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in $PATH
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12219 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 break 2
12223 done
12224 done
12225 IFS=$as_save_IFS
12228 esac
12230 orig_target_cxx=$ac_cv_path_orig_target_cxx
12231 if test -n "$orig_target_cxx"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12233 $as_echo "$orig_target_cxx" >&6; }
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12240 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12243 req_avail=yes
12244 if test "$orig_target_cxx" = ""; then
12245 req_avail=no
12247 if test "$orig_target_cxx" = "no"; then
12248 req_avail=no
12250 if test "$req_avail" = "no"; then
12251 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12254 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12255 if test "$cross_compiling" = "yes" ; then
12256 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12257 set dummy ${target_tool_prefix}gcc; ac_word=$2
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259 $as_echo_n "checking for $ac_word... " >&6; }
12260 if ${ac_cv_path_orig_target_ld+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 case $orig_target_ld in
12264 [\\/]* | ?:[\\/]*)
12265 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269 for as_dir in $PATH
12271 IFS=$as_save_IFS
12272 test -z "$as_dir" && as_dir=.
12273 for ac_exec_ext in '' $ac_executable_extensions; do
12274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12275 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12277 break 2
12279 done
12280 done
12281 IFS=$as_save_IFS
12284 esac
12286 orig_target_ld=$ac_cv_path_orig_target_ld
12287 if test -n "$orig_target_ld"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12289 $as_echo "$orig_target_ld" >&6; }
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12296 else
12297 if test "$GCC" = "yes"; then
12298 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12299 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12300 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302 $as_echo_n "checking for $ac_word... " >&6; }
12303 if ${ac_cv_path_orig_target_ld+:} false; then :
12304 $as_echo_n "(cached) " >&6
12305 else
12306 case $orig_target_ld in
12307 [\\/]* | ?:[\\/]*)
12308 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312 for as_dir in `dirname $aros_gcc_gcc`
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
12316 for ac_exec_ext in '' $ac_executable_extensions; do
12317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12318 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12320 break 2
12322 done
12323 done
12324 IFS=$as_save_IFS
12327 esac
12329 orig_target_ld=$ac_cv_path_orig_target_ld
12330 if test -n "$orig_target_ld"; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12332 $as_echo "$orig_target_ld" >&6; }
12333 else
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12340 if test "$orig_target_ld" = ""; then
12341 # Extract the first word of "gcc", so it can be a program name with args.
12342 set dummy gcc; ac_word=$2
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344 $as_echo_n "checking for $ac_word... " >&6; }
12345 if ${ac_cv_path_orig_target_ld+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 case $orig_target_ld in
12349 [\\/]* | ?:[\\/]*)
12350 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12356 IFS=$as_save_IFS
12357 test -z "$as_dir" && as_dir=.
12358 for ac_exec_ext in '' $ac_executable_extensions; do
12359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12360 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 break 2
12364 done
12365 done
12366 IFS=$as_save_IFS
12369 esac
12371 orig_target_ld=$ac_cv_path_orig_target_ld
12372 if test -n "$orig_target_ld"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12374 $as_echo "$orig_target_ld" >&6; }
12375 else
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12383 else
12384 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12385 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12386 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12388 $as_echo_n "checking for $ac_word... " >&6; }
12389 if ${ac_cv_path_orig_target_ld+:} false; then :
12390 $as_echo_n "(cached) " >&6
12391 else
12392 case $orig_target_ld in
12393 [\\/]* | ?:[\\/]*)
12394 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398 for as_dir in $PATH
12400 IFS=$as_save_IFS
12401 test -z "$as_dir" && as_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12404 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12406 break 2
12408 done
12409 done
12410 IFS=$as_save_IFS
12413 esac
12415 orig_target_ld=$ac_cv_path_orig_target_ld
12416 if test -n "$orig_target_ld"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12418 $as_echo "$orig_target_ld" >&6; }
12419 else
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12425 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12428 req_avail=yes
12429 if test "$orig_target_ld" = ""; then
12430 req_avail=no
12432 if test "$orig_target_ld" = "no"; then
12433 req_avail=no
12435 if test "$req_avail" = "no"; then
12436 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12439 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12440 if test "$cross_compiling" = "yes" ; then
12441 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12442 set dummy ${target_tool_prefix}as; ac_word=$2
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12444 $as_echo_n "checking for $ac_word... " >&6; }
12445 if ${ac_cv_path_orig_target_as+:} false; then :
12446 $as_echo_n "(cached) " >&6
12447 else
12448 case $orig_target_as in
12449 [\\/]* | ?:[\\/]*)
12450 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454 for as_dir in $PATH
12456 IFS=$as_save_IFS
12457 test -z "$as_dir" && as_dir=.
12458 for ac_exec_ext in '' $ac_executable_extensions; do
12459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12460 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12462 break 2
12464 done
12465 done
12466 IFS=$as_save_IFS
12469 esac
12471 orig_target_as=$ac_cv_path_orig_target_as
12472 if test -n "$orig_target_as"; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12474 $as_echo "$orig_target_as" >&6; }
12475 else
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477 $as_echo "no" >&6; }
12481 else
12482 if test "$GCC" = "yes"; then
12483 aros_gcc_as=`$CC -print-prog-name=as`
12484 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12485 set dummy `basename $aros_gcc_as`; ac_word=$2
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12487 $as_echo_n "checking for $ac_word... " >&6; }
12488 if ${ac_cv_path_orig_target_as+:} false; then :
12489 $as_echo_n "(cached) " >&6
12490 else
12491 case $orig_target_as in
12492 [\\/]* | ?:[\\/]*)
12493 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12497 for as_dir in `dirname $aros_gcc_as`
12499 IFS=$as_save_IFS
12500 test -z "$as_dir" && as_dir=.
12501 for ac_exec_ext in '' $ac_executable_extensions; do
12502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12503 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12505 break 2
12507 done
12508 done
12509 IFS=$as_save_IFS
12512 esac
12514 orig_target_as=$ac_cv_path_orig_target_as
12515 if test -n "$orig_target_as"; then
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12517 $as_echo "$orig_target_as" >&6; }
12518 else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520 $as_echo "no" >&6; }
12525 if test "$orig_target_as" = ""; then
12526 # Extract the first word of "as", so it can be a program name with args.
12527 set dummy as; ac_word=$2
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12529 $as_echo_n "checking for $ac_word... " >&6; }
12530 if ${ac_cv_path_orig_target_as+:} false; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 case $orig_target_as in
12534 [\\/]* | ?:[\\/]*)
12535 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12539 for as_dir in $PATH
12541 IFS=$as_save_IFS
12542 test -z "$as_dir" && as_dir=.
12543 for ac_exec_ext in '' $ac_executable_extensions; do
12544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12545 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12547 break 2
12549 done
12550 done
12551 IFS=$as_save_IFS
12554 esac
12556 orig_target_as=$ac_cv_path_orig_target_as
12557 if test -n "$orig_target_as"; then
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12559 $as_echo "$orig_target_as" >&6; }
12560 else
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12562 $as_echo "no" >&6; }
12568 else
12569 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12570 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12571 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573 $as_echo_n "checking for $ac_word... " >&6; }
12574 if ${ac_cv_path_orig_target_as+:} false; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12577 case $orig_target_as in
12578 [\\/]* | ?:[\\/]*)
12579 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12589 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 break 2
12593 done
12594 done
12595 IFS=$as_save_IFS
12598 esac
12600 orig_target_as=$ac_cv_path_orig_target_as
12601 if test -n "$orig_target_as"; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12603 $as_echo "$orig_target_as" >&6; }
12604 else
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606 $as_echo "no" >&6; }
12610 orig_target_as="$orig_target_as $ac_tool_optarg"
12613 req_avail=yes
12614 if test "$orig_target_as" = ""; then
12615 req_avail=no
12617 if test "$orig_target_as" = "no"; then
12618 req_avail=no
12620 if test "$req_avail" = "no"; then
12621 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12624 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12625 if test "$cross_compiling" = "yes" ; then
12626 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12627 set dummy ${target_tool_prefix}ar; ac_word=$2
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629 $as_echo_n "checking for $ac_word... " >&6; }
12630 if ${ac_cv_path_orig_target_ar+:} false; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 case $orig_target_ar in
12634 [\\/]* | ?:[\\/]*)
12635 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12639 for as_dir in $PATH
12641 IFS=$as_save_IFS
12642 test -z "$as_dir" && as_dir=.
12643 for ac_exec_ext in '' $ac_executable_extensions; do
12644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12645 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12647 break 2
12649 done
12650 done
12651 IFS=$as_save_IFS
12654 esac
12656 orig_target_ar=$ac_cv_path_orig_target_ar
12657 if test -n "$orig_target_ar"; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12659 $as_echo "$orig_target_ar" >&6; }
12660 else
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662 $as_echo "no" >&6; }
12666 else
12667 if test "$GCC" = "yes"; then
12668 aros_gcc_ar=`$CC -print-prog-name=ar`
12669 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12670 set dummy `basename $aros_gcc_ar`; ac_word=$2
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12672 $as_echo_n "checking for $ac_word... " >&6; }
12673 if ${ac_cv_path_orig_target_ar+:} false; then :
12674 $as_echo_n "(cached) " >&6
12675 else
12676 case $orig_target_ar in
12677 [\\/]* | ?:[\\/]*)
12678 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12682 for as_dir in `dirname $aros_gcc_ar`
12684 IFS=$as_save_IFS
12685 test -z "$as_dir" && as_dir=.
12686 for ac_exec_ext in '' $ac_executable_extensions; do
12687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12688 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12690 break 2
12692 done
12693 done
12694 IFS=$as_save_IFS
12697 esac
12699 orig_target_ar=$ac_cv_path_orig_target_ar
12700 if test -n "$orig_target_ar"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12702 $as_echo "$orig_target_ar" >&6; }
12703 else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12710 if test "$orig_target_ar" = ""; then
12711 # Extract the first word of "ar", so it can be a program name with args.
12712 set dummy ar; ac_word=$2
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12714 $as_echo_n "checking for $ac_word... " >&6; }
12715 if ${ac_cv_path_orig_target_ar+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 case $orig_target_ar in
12719 [\\/]* | ?:[\\/]*)
12720 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12726 IFS=$as_save_IFS
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12730 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 break 2
12734 done
12735 done
12736 IFS=$as_save_IFS
12739 esac
12741 orig_target_ar=$ac_cv_path_orig_target_ar
12742 if test -n "$orig_target_ar"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12744 $as_echo "$orig_target_ar" >&6; }
12745 else
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747 $as_echo "no" >&6; }
12753 else
12754 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12755 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12756 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758 $as_echo_n "checking for $ac_word... " >&6; }
12759 if ${ac_cv_path_orig_target_ar+:} false; then :
12760 $as_echo_n "(cached) " >&6
12761 else
12762 case $orig_target_ar in
12763 [\\/]* | ?:[\\/]*)
12764 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768 for as_dir in $PATH
12770 IFS=$as_save_IFS
12771 test -z "$as_dir" && as_dir=.
12772 for ac_exec_ext in '' $ac_executable_extensions; do
12773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12774 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12776 break 2
12778 done
12779 done
12780 IFS=$as_save_IFS
12783 esac
12785 orig_target_ar=$ac_cv_path_orig_target_ar
12786 if test -n "$orig_target_ar"; then
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12788 $as_echo "$orig_target_ar" >&6; }
12789 else
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791 $as_echo "no" >&6; }
12795 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12798 req_avail=yes
12799 if test "$orig_target_ar" = ""; then
12800 req_avail=no
12802 if test "$orig_target_ar" = "no"; then
12803 req_avail=no
12805 if test "$req_avail" = "no"; then
12806 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12809 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12810 if test "$cross_compiling" = "yes" ; then
12811 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12812 set dummy ${target_tool_prefix}ar; ac_word=$2
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814 $as_echo_n "checking for $ac_word... " >&6; }
12815 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 case $orig_target_ranlib in
12819 [\\/]* | ?:[\\/]*)
12820 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824 for as_dir in $PATH
12826 IFS=$as_save_IFS
12827 test -z "$as_dir" && as_dir=.
12828 for ac_exec_ext in '' $ac_executable_extensions; do
12829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12830 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12832 break 2
12834 done
12835 done
12836 IFS=$as_save_IFS
12839 esac
12841 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12842 if test -n "$orig_target_ranlib"; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12844 $as_echo "$orig_target_ranlib" >&6; }
12845 else
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12851 else
12852 if test "$GCC" = "yes"; then
12853 aros_gcc_ar=`$CC -print-prog-name=ar`
12854 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12855 set dummy `basename $aros_gcc_ar`; ac_word=$2
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12857 $as_echo_n "checking for $ac_word... " >&6; }
12858 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12859 $as_echo_n "(cached) " >&6
12860 else
12861 case $orig_target_ranlib in
12862 [\\/]* | ?:[\\/]*)
12863 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867 for as_dir in `dirname $aros_gcc_ar`
12869 IFS=$as_save_IFS
12870 test -z "$as_dir" && as_dir=.
12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12873 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12875 break 2
12877 done
12878 done
12879 IFS=$as_save_IFS
12882 esac
12884 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12885 if test -n "$orig_target_ranlib"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12887 $as_echo "$orig_target_ranlib" >&6; }
12888 else
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12895 if test "$orig_target_ranlib" = ""; then
12896 # Extract the first word of "ar", so it can be a program name with args.
12897 set dummy ar; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12899 $as_echo_n "checking for $ac_word... " >&6; }
12900 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12901 $as_echo_n "(cached) " >&6
12902 else
12903 case $orig_target_ranlib in
12904 [\\/]* | ?:[\\/]*)
12905 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12911 IFS=$as_save_IFS
12912 test -z "$as_dir" && as_dir=.
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12915 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12917 break 2
12919 done
12920 done
12921 IFS=$as_save_IFS
12924 esac
12926 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12927 if test -n "$orig_target_ranlib"; then
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12929 $as_echo "$orig_target_ranlib" >&6; }
12930 else
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12938 else
12939 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12940 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12941 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943 $as_echo_n "checking for $ac_word... " >&6; }
12944 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12945 $as_echo_n "(cached) " >&6
12946 else
12947 case $orig_target_ranlib in
12948 [\\/]* | ?:[\\/]*)
12949 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953 for as_dir in $PATH
12955 IFS=$as_save_IFS
12956 test -z "$as_dir" && as_dir=.
12957 for ac_exec_ext in '' $ac_executable_extensions; do
12958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12959 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12961 break 2
12963 done
12964 done
12965 IFS=$as_save_IFS
12968 esac
12970 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12971 if test -n "$orig_target_ranlib"; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12973 $as_echo "$orig_target_ranlib" >&6; }
12974 else
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12980 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12983 req_avail=yes
12984 if test "$orig_target_ranlib" = ""; then
12985 req_avail=no
12987 if test "$orig_target_ranlib" = "no"; then
12988 req_avail=no
12990 if test "$req_avail" = "no"; then
12991 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12994 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12995 if test "$cross_compiling" = "yes" ; then
12996 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12997 set dummy ${target_tool_prefix}nm; ac_word=$2
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12999 $as_echo_n "checking for $ac_word... " >&6; }
13000 if ${ac_cv_path_orig_target_nm+:} false; then :
13001 $as_echo_n "(cached) " >&6
13002 else
13003 case $orig_target_nm in
13004 [\\/]* | ?:[\\/]*)
13005 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009 for as_dir in $PATH
13011 IFS=$as_save_IFS
13012 test -z "$as_dir" && as_dir=.
13013 for ac_exec_ext in '' $ac_executable_extensions; do
13014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13015 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13017 break 2
13019 done
13020 done
13021 IFS=$as_save_IFS
13024 esac
13026 orig_target_nm=$ac_cv_path_orig_target_nm
13027 if test -n "$orig_target_nm"; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13029 $as_echo "$orig_target_nm" >&6; }
13030 else
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032 $as_echo "no" >&6; }
13036 else
13037 if test "$GCC" = "yes"; then
13038 aros_gcc_nm=`$CC -print-prog-name=nm`
13039 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13040 set dummy `basename $aros_gcc_nm`; ac_word=$2
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13042 $as_echo_n "checking for $ac_word... " >&6; }
13043 if ${ac_cv_path_orig_target_nm+:} false; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 case $orig_target_nm in
13047 [\\/]* | ?:[\\/]*)
13048 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052 for as_dir in `dirname $aros_gcc_nm`
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
13056 for ac_exec_ext in '' $ac_executable_extensions; do
13057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13058 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13060 break 2
13062 done
13063 done
13064 IFS=$as_save_IFS
13067 esac
13069 orig_target_nm=$ac_cv_path_orig_target_nm
13070 if test -n "$orig_target_nm"; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13072 $as_echo "$orig_target_nm" >&6; }
13073 else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 $as_echo "no" >&6; }
13080 if test "$orig_target_nm" = ""; then
13081 # Extract the first word of "nm", so it can be a program name with args.
13082 set dummy nm; ac_word=$2
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13084 $as_echo_n "checking for $ac_word... " >&6; }
13085 if ${ac_cv_path_orig_target_nm+:} false; then :
13086 $as_echo_n "(cached) " >&6
13087 else
13088 case $orig_target_nm in
13089 [\\/]* | ?:[\\/]*)
13090 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094 for as_dir in $PATH
13096 IFS=$as_save_IFS
13097 test -z "$as_dir" && as_dir=.
13098 for ac_exec_ext in '' $ac_executable_extensions; do
13099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13100 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13102 break 2
13104 done
13105 done
13106 IFS=$as_save_IFS
13109 esac
13111 orig_target_nm=$ac_cv_path_orig_target_nm
13112 if test -n "$orig_target_nm"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13114 $as_echo "$orig_target_nm" >&6; }
13115 else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13123 else
13124 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13125 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13126 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13128 $as_echo_n "checking for $ac_word... " >&6; }
13129 if ${ac_cv_path_orig_target_nm+:} false; then :
13130 $as_echo_n "(cached) " >&6
13131 else
13132 case $orig_target_nm in
13133 [\\/]* | ?:[\\/]*)
13134 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13138 for as_dir in $PATH
13140 IFS=$as_save_IFS
13141 test -z "$as_dir" && as_dir=.
13142 for ac_exec_ext in '' $ac_executable_extensions; do
13143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13144 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13146 break 2
13148 done
13149 done
13150 IFS=$as_save_IFS
13153 esac
13155 orig_target_nm=$ac_cv_path_orig_target_nm
13156 if test -n "$orig_target_nm"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13158 $as_echo "$orig_target_nm" >&6; }
13159 else
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13165 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13168 req_avail=yes
13169 if test "$orig_target_nm" = ""; then
13170 req_avail=no
13172 if test "$orig_target_nm" = "no"; then
13173 req_avail=no
13175 if test "$req_avail" = "no"; then
13176 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13179 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13180 if test "$cross_compiling" = "yes" ; then
13181 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13182 set dummy ${target_tool_prefix}strip; ac_word=$2
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13184 $as_echo_n "checking for $ac_word... " >&6; }
13185 if ${ac_cv_path_orig_target_strip+:} false; then :
13186 $as_echo_n "(cached) " >&6
13187 else
13188 case $orig_target_strip in
13189 [\\/]* | ?:[\\/]*)
13190 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194 for as_dir in $PATH
13196 IFS=$as_save_IFS
13197 test -z "$as_dir" && as_dir=.
13198 for ac_exec_ext in '' $ac_executable_extensions; do
13199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13200 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13202 break 2
13204 done
13205 done
13206 IFS=$as_save_IFS
13209 esac
13211 orig_target_strip=$ac_cv_path_orig_target_strip
13212 if test -n "$orig_target_strip"; then
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13214 $as_echo "$orig_target_strip" >&6; }
13215 else
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13217 $as_echo "no" >&6; }
13221 else
13222 if test "$GCC" = "yes"; then
13223 aros_gcc_strip=`$CC -print-prog-name=strip`
13224 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13225 set dummy `basename $aros_gcc_strip`; ac_word=$2
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13227 $as_echo_n "checking for $ac_word... " >&6; }
13228 if ${ac_cv_path_orig_target_strip+:} false; then :
13229 $as_echo_n "(cached) " >&6
13230 else
13231 case $orig_target_strip in
13232 [\\/]* | ?:[\\/]*)
13233 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13237 for as_dir in `dirname $aros_gcc_strip`
13239 IFS=$as_save_IFS
13240 test -z "$as_dir" && as_dir=.
13241 for ac_exec_ext in '' $ac_executable_extensions; do
13242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13243 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13245 break 2
13247 done
13248 done
13249 IFS=$as_save_IFS
13252 esac
13254 orig_target_strip=$ac_cv_path_orig_target_strip
13255 if test -n "$orig_target_strip"; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13257 $as_echo "$orig_target_strip" >&6; }
13258 else
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13265 if test "$orig_target_strip" = ""; then
13266 # Extract the first word of "strip", so it can be a program name with args.
13267 set dummy strip; ac_word=$2
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13269 $as_echo_n "checking for $ac_word... " >&6; }
13270 if ${ac_cv_path_orig_target_strip+:} false; then :
13271 $as_echo_n "(cached) " >&6
13272 else
13273 case $orig_target_strip in
13274 [\\/]* | ?:[\\/]*)
13275 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in $PATH
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13285 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 break 2
13289 done
13290 done
13291 IFS=$as_save_IFS
13294 esac
13296 orig_target_strip=$ac_cv_path_orig_target_strip
13297 if test -n "$orig_target_strip"; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13299 $as_echo "$orig_target_strip" >&6; }
13300 else
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302 $as_echo "no" >&6; }
13308 else
13309 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13310 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13311 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13313 $as_echo_n "checking for $ac_word... " >&6; }
13314 if ${ac_cv_path_orig_target_strip+:} false; then :
13315 $as_echo_n "(cached) " >&6
13316 else
13317 case $orig_target_strip in
13318 [\\/]* | ?:[\\/]*)
13319 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323 for as_dir in $PATH
13325 IFS=$as_save_IFS
13326 test -z "$as_dir" && as_dir=.
13327 for ac_exec_ext in '' $ac_executable_extensions; do
13328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13329 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13331 break 2
13333 done
13334 done
13335 IFS=$as_save_IFS
13338 esac
13340 orig_target_strip=$ac_cv_path_orig_target_strip
13341 if test -n "$orig_target_strip"; then
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13343 $as_echo "$orig_target_strip" >&6; }
13344 else
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13350 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13353 req_avail=yes
13354 if test "$orig_target_strip" = ""; then
13355 req_avail=no
13357 if test "$orig_target_strip" = "no"; then
13358 req_avail=no
13360 if test "$req_avail" = "no"; then
13361 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13364 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13365 if test "$cross_compiling" = "yes" ; then
13366 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13367 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13369 $as_echo_n "checking for $ac_word... " >&6; }
13370 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13371 $as_echo_n "(cached) " >&6
13372 else
13373 case $orig_target_objcopy in
13374 [\\/]* | ?:[\\/]*)
13375 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13379 for as_dir in $PATH
13381 IFS=$as_save_IFS
13382 test -z "$as_dir" && as_dir=.
13383 for ac_exec_ext in '' $ac_executable_extensions; do
13384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13385 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13387 break 2
13389 done
13390 done
13391 IFS=$as_save_IFS
13394 esac
13396 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13397 if test -n "$orig_target_objcopy"; then
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13399 $as_echo "$orig_target_objcopy" >&6; }
13400 else
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402 $as_echo "no" >&6; }
13406 else
13407 if test "$GCC" = "yes"; then
13408 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13409 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13410 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13412 $as_echo_n "checking for $ac_word... " >&6; }
13413 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13414 $as_echo_n "(cached) " >&6
13415 else
13416 case $orig_target_objcopy in
13417 [\\/]* | ?:[\\/]*)
13418 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13422 for as_dir in `dirname $aros_gcc_objcopy`
13424 IFS=$as_save_IFS
13425 test -z "$as_dir" && as_dir=.
13426 for ac_exec_ext in '' $ac_executable_extensions; do
13427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13428 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13430 break 2
13432 done
13433 done
13434 IFS=$as_save_IFS
13437 esac
13439 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13440 if test -n "$orig_target_objcopy"; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13442 $as_echo "$orig_target_objcopy" >&6; }
13443 else
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13450 if test "$orig_target_objcopy" = ""; then
13451 # Extract the first word of "objcopy", so it can be a program name with args.
13452 set dummy objcopy; ac_word=$2
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13454 $as_echo_n "checking for $ac_word... " >&6; }
13455 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13456 $as_echo_n "(cached) " >&6
13457 else
13458 case $orig_target_objcopy in
13459 [\\/]* | ?:[\\/]*)
13460 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464 for as_dir in $PATH
13466 IFS=$as_save_IFS
13467 test -z "$as_dir" && as_dir=.
13468 for ac_exec_ext in '' $ac_executable_extensions; do
13469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13470 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13472 break 2
13474 done
13475 done
13476 IFS=$as_save_IFS
13479 esac
13481 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13482 if test -n "$orig_target_objcopy"; then
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13484 $as_echo "$orig_target_objcopy" >&6; }
13485 else
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487 $as_echo "no" >&6; }
13493 else
13494 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13495 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13496 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13498 $as_echo_n "checking for $ac_word... " >&6; }
13499 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13500 $as_echo_n "(cached) " >&6
13501 else
13502 case $orig_target_objcopy in
13503 [\\/]* | ?:[\\/]*)
13504 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508 for as_dir in $PATH
13510 IFS=$as_save_IFS
13511 test -z "$as_dir" && as_dir=.
13512 for ac_exec_ext in '' $ac_executable_extensions; do
13513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13514 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13516 break 2
13518 done
13519 done
13520 IFS=$as_save_IFS
13523 esac
13525 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13526 if test -n "$orig_target_objcopy"; then
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13528 $as_echo "$orig_target_objcopy" >&6; }
13529 else
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531 $as_echo "no" >&6; }
13535 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13538 req_avail=yes
13539 if test "$orig_target_objcopy" = ""; then
13540 req_avail=no
13542 if test "$orig_target_objcopy" = "no"; then
13543 req_avail=no
13545 if test "$req_avail" = "no"; then
13546 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13549 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13550 if test "$cross_compiling" = "yes" ; then
13551 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13552 set dummy ${target_tool_prefix}objdump; ac_word=$2
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13554 $as_echo_n "checking for $ac_word... " >&6; }
13555 if ${ac_cv_path_orig_target_objdump+:} false; then :
13556 $as_echo_n "(cached) " >&6
13557 else
13558 case $orig_target_objdump in
13559 [\\/]* | ?:[\\/]*)
13560 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13564 for as_dir in $PATH
13566 IFS=$as_save_IFS
13567 test -z "$as_dir" && as_dir=.
13568 for ac_exec_ext in '' $ac_executable_extensions; do
13569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13570 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13572 break 2
13574 done
13575 done
13576 IFS=$as_save_IFS
13579 esac
13581 orig_target_objdump=$ac_cv_path_orig_target_objdump
13582 if test -n "$orig_target_objdump"; then
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13584 $as_echo "$orig_target_objdump" >&6; }
13585 else
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13587 $as_echo "no" >&6; }
13591 else
13592 if test "$GCC" = "yes"; then
13593 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13594 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13595 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13597 $as_echo_n "checking for $ac_word... " >&6; }
13598 if ${ac_cv_path_orig_target_objdump+:} false; then :
13599 $as_echo_n "(cached) " >&6
13600 else
13601 case $orig_target_objdump in
13602 [\\/]* | ?:[\\/]*)
13603 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13607 for as_dir in `dirname $aros_gcc_objdump`
13609 IFS=$as_save_IFS
13610 test -z "$as_dir" && as_dir=.
13611 for ac_exec_ext in '' $ac_executable_extensions; do
13612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13613 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13615 break 2
13617 done
13618 done
13619 IFS=$as_save_IFS
13622 esac
13624 orig_target_objdump=$ac_cv_path_orig_target_objdump
13625 if test -n "$orig_target_objdump"; then
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13627 $as_echo "$orig_target_objdump" >&6; }
13628 else
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630 $as_echo "no" >&6; }
13635 if test "$orig_target_objdump" = ""; then
13636 # Extract the first word of "objdump", so it can be a program name with args.
13637 set dummy objdump; ac_word=$2
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13639 $as_echo_n "checking for $ac_word... " >&6; }
13640 if ${ac_cv_path_orig_target_objdump+:} false; then :
13641 $as_echo_n "(cached) " >&6
13642 else
13643 case $orig_target_objdump in
13644 [\\/]* | ?:[\\/]*)
13645 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649 for as_dir in $PATH
13651 IFS=$as_save_IFS
13652 test -z "$as_dir" && as_dir=.
13653 for ac_exec_ext in '' $ac_executable_extensions; do
13654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13655 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13657 break 2
13659 done
13660 done
13661 IFS=$as_save_IFS
13664 esac
13666 orig_target_objdump=$ac_cv_path_orig_target_objdump
13667 if test -n "$orig_target_objdump"; then
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13669 $as_echo "$orig_target_objdump" >&6; }
13670 else
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13672 $as_echo "no" >&6; }
13678 else
13679 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13680 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13681 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13683 $as_echo_n "checking for $ac_word... " >&6; }
13684 if ${ac_cv_path_orig_target_objdump+:} false; then :
13685 $as_echo_n "(cached) " >&6
13686 else
13687 case $orig_target_objdump in
13688 [\\/]* | ?:[\\/]*)
13689 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13693 for as_dir in $PATH
13695 IFS=$as_save_IFS
13696 test -z "$as_dir" && as_dir=.
13697 for ac_exec_ext in '' $ac_executable_extensions; do
13698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13699 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13701 break 2
13703 done
13704 done
13705 IFS=$as_save_IFS
13708 esac
13710 orig_target_objdump=$ac_cv_path_orig_target_objdump
13711 if test -n "$orig_target_objdump"; then
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13713 $as_echo "$orig_target_objdump" >&6; }
13714 else
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716 $as_echo "no" >&6; }
13720 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13723 req_avail=yes
13724 if test "$orig_target_objdump" = ""; then
13725 req_avail=no
13727 if test "$orig_target_objdump" = "no"; then
13728 req_avail=no
13730 if test "$req_avail" = "no"; then
13731 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13735 if test "$kernel_tool_prefix" = "none" ; then
13736 # No kernel tools specified
13737 # Assume target tools == kernel tools with ELF wrapper
13738 aros_kernel_cc=$orig_target_cc
13739 aros_kernel_cxx=$orig_target_cxx
13740 aros_kernel_cpp=$orig_target_cpp
13741 aros_kernel_ld=$orig_target_ld
13742 aros_kernel_as=$orig_target_as
13743 aros_kernel_ar=$orig_target_ar
13744 aros_kernel_ranlib=$orig_target_ranlib
13745 aros_kernel_nm=$orig_target_nm
13746 aros_kernel_strip=$orig_target_strip
13747 aros_kernel_objcopy=$orig_target_objcopy
13748 aros_kernel_objdump=$orig_target_objdump
13749 use_kernel_cc_wrapper=yes
13752 # At this point, all aros_kernel_* and aros_target_*
13753 # tools should be set up correctly
13755 CC="$aros_kernel_cc $kernel_tool_flags"
13756 CPP="$aros_kernel_cpp"
13758 #-----------------------------------------------------------------------------
13760 # Find all the tools we need to compile. This could be cross-compiling
13761 # though! If that is the case we use the GNU form of the target and
13762 # simply add this to the front of the binary name. This is rather simple,
13763 # but it should work under most circumstances.
13765 # The default tools are to use the same as the host, but only if the
13766 # host and target CPU are the same. With GCC this is normally enough.
13769 aros_cc_pre=""
13770 aros_shared_ld="$aros_host_ld"
13772 aros_target_mkdep="$aros_host_mkdep"
13774 # The default tools executables to be linked to.
13775 if test "$rescomp" != ""; then
13776 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13777 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13779 $as_echo_n "checking for $ac_word... " >&6; }
13780 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13783 case $aros_kernel_rescomp in
13784 [\\/]* | ?:[\\/]*)
13785 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789 for as_dir in $PATH
13791 IFS=$as_save_IFS
13792 test -z "$as_dir" && as_dir=.
13793 for ac_exec_ext in '' $ac_executable_extensions; do
13794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13795 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13797 break 2
13799 done
13800 done
13801 IFS=$as_save_IFS
13804 esac
13806 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13807 if test -n "$aros_kernel_rescomp"; then
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13809 $as_echo "$aros_kernel_rescomp" >&6; }
13810 else
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13812 $as_echo "no" >&6; }
13816 req_avail=yes
13817 if test "$aros_kernel_rescomp" = ""; then
13818 req_avail=no
13820 if test "$aros_kernel_rescomp" = "no"; then
13821 req_avail=no
13823 if test "$req_avail" = "no"; then
13824 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13828 # Set up the sources for the symlink farm
13829 if test "$crosstools" = "yes"; then
13830 crosstools_target=tools-crosstools
13833 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13834 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13836 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13837 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13838 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13839 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13840 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13841 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13842 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13844 # aros_cc_pre is a variable that is added to the front of the compiler name
13845 # in the generated aros-gcc shell script. We need this to enable the cache
13846 # to work across cleaned builds. Also, support DISTCC using the correct
13847 # environment variable.
13850 if test "x${DISTCC}" != "x" ; then
13851 if test "x${CCACHE}" != "x" ; then
13852 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13853 else
13854 aros_cc_pre="${DISTCC} "
13856 else
13857 if test "x${CCACHE}" != "x" ; then
13858 aros_cc_pre="${CCACHE} "
13862 aros_target_nostdinc_cflags=-nostdinc
13864 aros_target_nostartup_ldflags=-nostartfiles
13866 aros_target_nix_ldflags=-nix
13868 aros_target_detach_ldflags=-detach
13870 aros_target_nostdlib_ldflags=-nostdlib
13873 aros_target_cc_path=
13875 # Target tools
13877 if test "$aros_target_toolchain" != "yes"; then
13878 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13879 if test "$GCC" = "yes"; then
13880 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13882 else
13883 # We do not know which c compiler version we are going to build and what we need to know
13884 # here is different for different versions so this will be set later during the
13885 # build of crosstools.
13886 if test "$aros_toolchain" = "gnu" ; then
13887 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13888 elif test "$aros_toolchain" = "llvm" ; then
13889 prefix="$AROS_CROSSTOOLSDIR/bin/"
13891 aros_target_cc_path=@aros_target_cc_path@
13893 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13894 aros_target_cc="${prefix}${toolchain_c_compiler}"
13895 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13896 aros_target_as="${prefix}${toolchain_as}"
13897 if test "${use_ld_wrapper}" = "yes"; then
13898 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13899 else
13900 aros_target_ld="${prefix}${toolchain_ld}"
13902 aros_toolchain_ld="${prefix}${toolchain_ld}"
13904 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13905 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13906 aros_target_objdump="${prefix}${toolchain_objdump}"
13907 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13908 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13909 aros_target_strip="${prefix}${toolchain_strip}"
13910 aros_plain_nm="${prefix}${toolchain_nm}"
13911 aros_plain_ar="${prefix}${toolchain_ar}"
13913 # Check whether --enable-includes was given.
13914 if test "${enable_includes+set}" = set; then :
13915 enableval=$enable_includes; aros_target_incl=$enable_includes
13916 else
13917 aros_target_incl=no
13921 if test "x$aros_target_incl" = "xno"; then
13922 if test "x$test_kernel_cc" != "xno"; then
13923 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13924 else
13925 aros_target_incl=
13929 if test "x$aros_kernel_includes" = "x"; then
13930 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13931 if test "x$aros_target_incl" != "x"; then
13932 aros_kernel_includes="-isystem $aros_target_incl"
13937 if test "x$test_kernel_cc" != "xno"; then
13938 if test "$aros_kernel_includes" != "" ; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13940 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13941 if test "$aros_kernel_cc_includes" = "" ; then
13942 # Try to guess where the directory is.
13943 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13944 if test -d $aros_kernel_cc_includes; then
13945 # Check if there is also an include-fixed directory and add it
13946 # to kernel compiler's include path as it may contain some of
13947 # the headers we need.
13948 if test -d "$aros_kernel_cc_includes"-fixed; then
13949 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13951 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13952 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13953 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13955 else
13956 # The directory doesn't exist, we need to do some more work.
13957 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13959 # These are the headers we're looking for.
13960 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13961 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13962 zutil.h stdint.h"
13964 dirs=
13965 for h in $headers; do
13966 # Which other headers are needed by each of the above?
13967 deps=$(echo "#include <$h>" | \
13968 $aros_kernel_cc -E -M - 2>/dev/null | \
13969 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13971 # Copy all the needed headers to a directory beneath gendir.
13972 for d in $deps; do
13973 h=$(basename $d)
13974 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13975 sed -n "s,^.*/include\(/.*\),\1,p")
13976 ! test -d $dir && mkdir -p $dir
13977 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13978 done
13979 done
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13983 $as_echo "$aros_kernel_cc_includes" >&6; }
13984 # Adding -nostdinc to kernel includes as they are always used together.
13985 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13989 if test "$crosstools" != "yes"; then
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13991 $as_echo_n "checking for the target compiler's include path... " >&6; }
13992 if test "$aros_target_cc_includes" = "" ; then
13993 #try to guess where the directory is
13994 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13995 if ! test -d $aros_target_cc_includes; then
13996 #the directory doesn't exist, we need to do some more work
13997 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13999 #these are the headers we're looking for
14000 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14001 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14002 zutil.h"
14004 dirs=
14005 for h in $headers; do
14006 #which other headers each of the above headers needs?
14007 deps=$(echo "#include <$h>" | \
14008 $orig_target_cc -E -M - 2>/dev/null | \
14009 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14011 #copy all the needed headers to a directory beneath gendir
14012 for d in $deps; do
14013 h=$(basename $d)
14014 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
14015 sed -n "s,^.*/include\(/.*\),\1,p")
14016 ! test -d $dir && mkdir -p $dir
14017 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14018 done
14019 done
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14023 $as_echo "$aros_target_cc_includes" >&6; }
14024 else
14025 # We do not know which c compiler version we are going to build and what we need to know
14026 # here is different for different versions so this will be set later during the
14027 # build of crosstools.
14028 aros_target_cc_includes=@aros_target_cc_includes@
14032 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14033 # On GCC >= 4.0 -iquote should be used
14036 save_cc="$CC"
14037 save_cflags="$CFLAGS"
14038 if test "x$test_kernel_cc" != "xno"; then
14039 CFLAGS="-iquote."
14040 kernel_cflags_iquote=$host_cflags_iquote
14041 kernel_cflags_iquote_end=$host_cflags_iquote_end
14042 if test "x-$cross_compiling" = "x-yes"; then
14043 CC="$aros_kernel_cc"
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14045 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14046 if test "x-$crosstools" != "x-yes"; then
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h. */
14051 main ()
14055 return 0;
14057 _ACEOF
14058 if ac_fn_c_try_compile "$LINENO"; then :
14059 use_no_stack_protector="yes"
14060 else
14061 use_no_stack_protector="no"
14063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14064 else
14065 # we do know it is supported for the smallest version of gcc we are going to build
14066 # we assume it's also supported by later versions
14067 use_no_stack_protector=yes
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14070 $as_echo "$use_no_stack_protector" >&6; }
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14072 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14073 if test "x-$crosstools" != "x-yes"; then
14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h. */
14078 main ()
14082 return 0;
14084 _ACEOF
14085 if ac_fn_c_try_compile "$LINENO"; then :
14086 has_iquote="yes"
14087 else
14088 has_iquote="no"
14090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14091 else
14092 # we do know it is supported for the smallest version of gcc we are going to build
14093 # we assume it's also supported by later versions
14094 has_iquote=yes
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14097 $as_echo "$has_iquote" >&6; }
14098 if test "x-$has_iquote" = "x-yes" ; then
14099 kernel_cflags_iquote=-iquote
14100 kernel_cflags_iquote_end=
14101 else
14102 kernel_cflags_iquote=-I
14103 kernel_cflags_iquote_end=-I-
14106 if test "x-$use_no_stack_protector" = "x-yes" ; then
14107 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
14110 #-----------------------------------------------------------------------------
14112 # Check if we can explicitly choose older version of symbol hashing
14114 CFLAGS="save_cflags -Wl,--hash-style=sysv"
14115 CC="$aros_kernel_cc"
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14117 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119 /* end confdefs.h. */
14122 main ()
14126 return 0;
14128 _ACEOF
14129 if ac_fn_c_try_link "$LINENO"; then :
14130 use_hash_style="yes"
14131 else
14132 use_hash_style="no"
14134 rm -f core conftest.err conftest.$ac_objext \
14135 conftest$ac_exeext conftest.$ac_ext
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14137 $as_echo "$use_hash_style" >&6; }
14138 if test "x-$use_hash_style" = "x-yes" ; then
14139 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
14141 else
14142 kernel_cflags_iquote="$""(CFLAGS_IQUOTE)"
14143 kernel_cflags_iquote_end="$""(CFLAGS_IQUOTE_END)"
14145 CC="$save_cc"
14146 CFLAGS="$save_cflags"
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14155 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14157 # Check whether --with-resolution was given.
14158 if test "${with_resolution+set}" = set; then :
14159 withval=$with_resolution; resolution=$withval
14160 else
14161 resolution=none
14164 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14165 if test "$resolution" = "yes" ; then
14166 resolution="none"
14168 if test "$resolution" = "no" ; then
14169 resolution="none"
14171 if test "$resolution" != "none" ; then
14172 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14173 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14174 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14177 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14178 aros_cv_nominal_width=$aros_nominal_width
14179 aros_cv_nominal_height=$aros_nominal_height
14180 aros_cv_nominal_depth=$aros_nominal_depth
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14183 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14185 # Check whether --with-serial-debug was given.
14186 if test "${with_serial_debug+set}" = set; then :
14187 withval=$with_serial_debug; serial_debug=$withval
14188 else
14189 serial_debug=none
14192 if test "$aros_serial_debug" = 0 ; then
14193 serial_debug_forced=""
14194 if test "$serial_debug" = "yes" ; then
14195 serial_debug="1"
14197 if test "$serial_debug" = "no" ; then
14198 serial_debug="none"
14200 else
14201 serial_debug_forced="(forced)"
14202 serial_debug=$aros_serial_debug
14204 if test "$serial_debug" != "none" ; then
14205 aros_serial_debug=$serial_debug
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14207 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14208 else
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210 $as_echo "no" >&6; }
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14214 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14215 # Check whether --enable-palm_debug_hack was given.
14216 if test "${enable_palm_debug_hack+set}" = set; then :
14217 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14218 else
14219 palm_debug_hack="no"
14222 if test "$palm_debug_hack" = "yes" ; then
14223 aros_palm_debug_hack="1"
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14226 $as_echo "$palm_debug_hack" >&6; }
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14229 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14230 # Check whether --enable-usb30_code was given.
14231 if test "${enable_usb30_code+set}" = set; then :
14232 enableval=$enable_usb30_code; usb30_code="yes"
14233 else
14234 usb30_code="no"
14237 if test "$usb30_code" = "yes" ; then
14238 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14239 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14242 $as_echo "$usb30_code" >&6; }
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14245 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14246 # Check whether --enable-nesting_supervisor was given.
14247 if test "${enable_nesting_supervisor+set}" = set; then :
14248 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14249 else
14250 nesting_supervisor="no"
14253 if test "$nesting_supervisor" = "yes" ; then
14254 aros_nesting_supervisor="1"
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14257 $as_echo "$nesting_supervisor" >&6; }
14259 if test "$aros_enable_mmu" = "" ; then
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14261 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14262 # Check whether --enable-mmu was given.
14263 if test "${enable_mmu+set}" = set; then :
14264 enableval=$enable_mmu; aros_enable_mmu=$enableval
14265 else
14266 aros_enable_mmu="yes"
14269 if test "$aros_enable_mmu" = "" ; then
14270 aros_enable_mmu="yes"
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14273 $as_echo "$aros_enable_mmu" >&6; }
14275 if test "$aros_enable_mmu" = "no" ; then
14276 aros_enable_mmu="0"
14277 else
14278 aros_enable_mmu="1"
14282 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14284 if test "x-$need_dlopen" != "x-no" ; then
14285 save_libs="$LIBS"
14286 LIBS=""
14287 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14288 if test "x$ac_cv_func_dlopen" = xyes; then :
14289 have_dl="yes"
14290 else
14291 have_dl="no"
14294 if test "x-$have_dl" = "x-no" ; then
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14296 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14297 if ${ac_cv_lib_dl_dlopen+:} false; then :
14298 $as_echo_n "(cached) " >&6
14299 else
14300 ac_check_lib_save_LIBS=$LIBS
14301 LIBS="-ldl $LIBS"
14302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14305 /* Override any GCC internal prototype to avoid an error.
14306 Use char because int might match the return type of a GCC
14307 builtin and then its argument prototype would still apply. */
14308 #ifdef __cplusplus
14309 extern "C"
14310 #endif
14311 char dlopen ();
14313 main ()
14315 return dlopen ();
14317 return 0;
14319 _ACEOF
14320 if ac_fn_c_try_link "$LINENO"; then :
14321 ac_cv_lib_dl_dlopen=yes
14322 else
14323 ac_cv_lib_dl_dlopen=no
14325 rm -f core conftest.err conftest.$ac_objext \
14326 conftest$ac_exeext conftest.$ac_ext
14327 LIBS=$ac_check_lib_save_LIBS
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14330 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14331 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14332 have_dl="yes"
14333 aros_host_ldflags="$aros_host_ldflags -ldl"
14334 else
14335 have_dl="no"
14339 if test "x-$have_dl" = "x-no" ; then
14340 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14342 LIBS="$save_libs"
14346 # Check whether --enable-x11_hidd was given.
14347 if test "${enable_x11_hidd+set}" = set; then :
14348 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14349 else
14350 x11_hidd="$need_x11"
14353 case "x-$x11_hidd" in
14354 x-yes|x-no|x-auto) ;;
14355 *) x11_hidd="$need_x11" ;;
14356 esac
14358 ENABLE_X11=0
14360 if test "x-$x11_hidd" != "x-no" ; then
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14363 $as_echo_n "checking for X... " >&6; }
14366 # Check whether --with-x was given.
14367 if test "${with_x+set}" = set; then :
14368 withval=$with_x;
14371 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14372 if test "x$with_x" = xno; then
14373 # The user explicitly disabled X.
14374 have_x=disabled
14375 else
14376 case $x_includes,$x_libraries in #(
14377 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14378 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14379 $as_echo_n "(cached) " >&6
14380 else
14381 # One or both of the vars are not set, and there is no cached value.
14382 ac_x_includes=no ac_x_libraries=no
14383 rm -f -r conftest.dir
14384 if mkdir conftest.dir; then
14385 cd conftest.dir
14386 cat >Imakefile <<'_ACEOF'
14387 incroot:
14388 @echo incroot='${INCROOT}'
14389 usrlibdir:
14390 @echo usrlibdir='${USRLIBDIR}'
14391 libdir:
14392 @echo libdir='${LIBDIR}'
14393 _ACEOF
14394 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14395 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14396 for ac_var in incroot usrlibdir libdir; do
14397 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14398 done
14399 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14400 for ac_extension in a so sl dylib la dll; do
14401 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14402 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14403 ac_im_usrlibdir=$ac_im_libdir; break
14405 done
14406 # Screen out bogus values from the imake configuration. They are
14407 # bogus both because they are the default anyway, and because
14408 # using them would break gcc on systems where it needs fixed includes.
14409 case $ac_im_incroot in
14410 /usr/include) ac_x_includes= ;;
14411 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14412 esac
14413 case $ac_im_usrlibdir in
14414 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14415 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14416 esac
14418 cd ..
14419 rm -f -r conftest.dir
14422 # Standard set of common directories for X headers.
14423 # Check X11 before X11Rn because it is often a symlink to the current release.
14424 ac_x_header_dirs='
14425 /usr/X11/include
14426 /usr/X11R7/include
14427 /usr/X11R6/include
14428 /usr/X11R5/include
14429 /usr/X11R4/include
14431 /usr/include/X11
14432 /usr/include/X11R7
14433 /usr/include/X11R6
14434 /usr/include/X11R5
14435 /usr/include/X11R4
14437 /usr/local/X11/include
14438 /usr/local/X11R7/include
14439 /usr/local/X11R6/include
14440 /usr/local/X11R5/include
14441 /usr/local/X11R4/include
14443 /usr/local/include/X11
14444 /usr/local/include/X11R7
14445 /usr/local/include/X11R6
14446 /usr/local/include/X11R5
14447 /usr/local/include/X11R4
14449 /usr/X386/include
14450 /usr/x386/include
14451 /usr/XFree86/include/X11
14453 /usr/include
14454 /usr/local/include
14455 /usr/unsupported/include
14456 /usr/athena/include
14457 /usr/local/x11r5/include
14458 /usr/lpp/Xamples/include
14460 /usr/openwin/include
14461 /usr/openwin/share/include'
14463 if test "$ac_x_includes" = no; then
14464 # Guess where to find include files, by looking for Xlib.h.
14465 # First, try using that file with no special directory specified.
14466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h. */
14468 #include <X11/Xlib.h>
14469 _ACEOF
14470 if ac_fn_c_try_cpp "$LINENO"; then :
14471 # We can compile using X headers with no special include directory.
14472 ac_x_includes=
14473 else
14474 for ac_dir in $ac_x_header_dirs; do
14475 if test -r "$ac_dir/X11/Xlib.h"; then
14476 ac_x_includes=$ac_dir
14477 break
14479 done
14481 rm -f conftest.err conftest.i conftest.$ac_ext
14482 fi # $ac_x_includes = no
14484 if test "$ac_x_libraries" = no; then
14485 # Check for the libraries.
14486 # See if we find them without any special options.
14487 # Don't add to $LIBS permanently.
14488 ac_save_LIBS=$LIBS
14489 LIBS="-lX11 $LIBS"
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14492 #include <X11/Xlib.h>
14494 main ()
14496 XrmInitialize ()
14498 return 0;
14500 _ACEOF
14501 if ac_fn_c_try_link "$LINENO"; then :
14502 LIBS=$ac_save_LIBS
14503 # We can link X programs with no special library path.
14504 ac_x_libraries=
14505 else
14506 LIBS=$ac_save_LIBS
14507 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14509 # Don't even attempt the hair of trying to link an X program!
14510 for ac_extension in a so sl dylib la dll; do
14511 if test -r "$ac_dir/libX11.$ac_extension"; then
14512 ac_x_libraries=$ac_dir
14513 break 2
14515 done
14516 done
14518 rm -f core conftest.err conftest.$ac_objext \
14519 conftest$ac_exeext conftest.$ac_ext
14520 fi # $ac_x_libraries = no
14522 case $ac_x_includes,$ac_x_libraries in #(
14523 no,* | *,no | *\'*)
14524 # Didn't find X, or a directory has "'" in its name.
14525 ac_cv_have_x="have_x=no";; #(
14527 # Record where we found X for the cache.
14528 ac_cv_have_x="have_x=yes\
14529 ac_x_includes='$ac_x_includes'\
14530 ac_x_libraries='$ac_x_libraries'"
14531 esac
14533 ;; #(
14534 *) have_x=yes;;
14535 esac
14536 eval "$ac_cv_have_x"
14537 fi # $with_x != no
14539 if test "$have_x" != yes; then
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14541 $as_echo "$have_x" >&6; }
14542 no_x=yes
14543 else
14544 # If each of the values was on the command line, it overrides each guess.
14545 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14546 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14547 # Update the cache value to reflect the command line values.
14548 ac_cv_have_x="have_x=yes\
14549 ac_x_includes='$x_includes'\
14550 ac_x_libraries='$x_libraries'"
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14552 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14556 if test -n "$x_includes"; then
14557 X_CFLAGS="$X_CFLAGS -I$x_includes"
14560 if test -n "$x_libraries"; then
14561 X_LIBS="$X_LIBS -L$x_libraries"
14564 if test "x-$no_x" = "x-yes" ; then
14566 if test "x-$x11_hidd" != "x-auto" ; then
14567 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14570 else
14571 aros_target_options+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
14572 if test "x-$host_feature_glx" != "x-no" ; then
14573 aros_target_options+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
14575 ENABLE_X11=1
14577 aros_host_x11_cflags="$X_CFLAGS"
14578 aros_host_x11_ldflags="$X_LIBS -lX11"
14580 # Check whether --enable-x11_shm was given.
14581 if test "${enable_x11_shm+set}" = set; then :
14582 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14583 else
14584 x11_hidd_shm="auto"
14587 case "x-$x11_hidd_shm" in
14588 x-yes|x-no|x-auto) ;;
14589 *) x11_hidd_shm="auto" ;;
14590 esac
14592 have_xshm=no
14594 if test "x-$x11_hidd_shm" != "x-no" ; then
14596 for ac_header in sys/ipc.h
14597 do :
14598 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14599 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14600 cat >>confdefs.h <<_ACEOF
14601 #define HAVE_SYS_IPC_H 1
14602 _ACEOF
14606 done
14608 for ac_header in sys/shm.h
14609 do :
14610 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14611 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14612 cat >>confdefs.h <<_ACEOF
14613 #define HAVE_SYS_SHM_H 1
14614 _ACEOF
14618 done
14621 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14623 save_cflags="$CFLAGS"
14624 save_ldflags="$LDFLAGS"
14625 CFLAGS="$CFLAGS $X_CFLAGS"
14626 LDFLAGS="$LDFLAGS $X_LIBS"
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14628 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14629 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14630 $as_echo_n "(cached) " >&6
14631 else
14632 ac_check_lib_save_LIBS=$LIBS
14633 LIBS="-lXext $LIBS"
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h. */
14637 /* Override any GCC internal prototype to avoid an error.
14638 Use char because int might match the return type of a GCC
14639 builtin and then its argument prototype would still apply. */
14640 #ifdef __cplusplus
14641 extern "C"
14642 #endif
14643 char XShmQueryExtension ();
14645 main ()
14647 return XShmQueryExtension ();
14649 return 0;
14651 _ACEOF
14652 if ac_fn_c_try_link "$LINENO"; then :
14653 ac_cv_lib_Xext_XShmQueryExtension=yes
14654 else
14655 ac_cv_lib_Xext_XShmQueryExtension=no
14657 rm -f core conftest.err conftest.$ac_objext \
14658 conftest$ac_exeext conftest.$ac_ext
14659 LIBS=$ac_check_lib_save_LIBS
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14662 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14663 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14664 have_xshm=yes
14667 CFLAGS="$save_cflags"
14668 LDFLAGS="$save_ldflags"
14672 if test "x-$have_xshm" = "x-yes" ; then
14673 DO_XSHM_SUPPORT="1"
14674 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14675 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14676 else
14677 DO_XSHM_SUPPORT="0"
14681 # Check whether --enable-x11_vidmode was given.
14682 if test "${enable_x11_vidmode+set}" = set; then :
14683 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14684 else
14685 x11_hidd_vidmode="auto"
14688 case "x-$x11_hidd_vidmode" in
14689 x-yes|x-no|x-auto) ;;
14690 *) x11_hidd_vidmode="auto" ;;
14691 esac
14693 have_vidmode=no
14695 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14697 save_cflags="$CFLAGS"
14698 save_ldflags="$LDFLAGS"
14699 CFLAGS="$CFLAGS $X_CFLAGS"
14700 LDFLAGS="$LDFLAGS $X_LIBS"
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14702 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14703 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14704 $as_echo_n "(cached) " >&6
14705 else
14706 ac_check_lib_save_LIBS=$LIBS
14707 LIBS="-lXxf86vm $LIBS"
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14711 /* Override any GCC internal prototype to avoid an error.
14712 Use char because int might match the return type of a GCC
14713 builtin and then its argument prototype would still apply. */
14714 #ifdef __cplusplus
14715 extern "C"
14716 #endif
14717 char XF86VidModeQueryExtension ();
14719 main ()
14721 return XF86VidModeQueryExtension ();
14723 return 0;
14725 _ACEOF
14726 if ac_fn_c_try_link "$LINENO"; then :
14727 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14728 else
14729 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14731 rm -f core conftest.err conftest.$ac_objext \
14732 conftest$ac_exeext conftest.$ac_ext
14733 LIBS=$ac_check_lib_save_LIBS
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14736 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14737 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14738 have_vidmode=yes
14741 CFLAGS="$save_cflags"
14742 LDFLAGS="$save_ldflags"
14745 if test "x-$have_vidmode" = "x-yes" ; then
14746 DO_VIDMODE_SUPPORT="1"
14747 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14748 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14749 else
14750 DO_VIDMODE_SUPPORT="0"
14755 # Check whether --enable-sdl_hidd was given.
14756 if test "${enable_sdl_hidd+set}" = set; then :
14757 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14758 else
14759 sdl_hidd="auto"
14762 case "x-$sdl_hidd" in
14763 x-yes|x-no|x-auto) ;;
14764 *) sdl_hidd="auto" ;;
14765 esac
14767 if test "x-$sdl_hidd" != "x-no" ; then
14769 SDL_VERSION=1.2.5
14771 # Check whether --with-sdl-prefix was given.
14772 if test "${with_sdl_prefix+set}" = set; then :
14773 withval=$with_sdl_prefix; sdl_prefix="$withval"
14774 else
14775 sdl_prefix=""
14779 # Check whether --with-sdl-exec-prefix was given.
14780 if test "${with_sdl_exec_prefix+set}" = set; then :
14781 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14782 else
14783 sdl_exec_prefix=""
14786 # Check whether --enable-sdltest was given.
14787 if test "${enable_sdltest+set}" = set; then :
14788 enableval=$enable_sdltest;
14789 else
14790 enable_sdltest=yes
14794 if test x$sdl_exec_prefix != x ; then
14795 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14796 if test x${SDL_CONFIG+set} != xset ; then
14797 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14800 if test x$sdl_prefix != x ; then
14801 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14802 if test x${SDL_CONFIG+set} != xset ; then
14803 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14807 as_save_PATH="$PATH"
14808 if test "x$prefix" != xNONE; then
14809 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14811 # Extract the first word of "sdl-config", so it can be a program name with args.
14812 set dummy sdl-config; ac_word=$2
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14814 $as_echo_n "checking for $ac_word... " >&6; }
14815 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14816 $as_echo_n "(cached) " >&6
14817 else
14818 case $SDL_CONFIG in
14819 [\\/]* | ?:[\\/]*)
14820 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14824 for as_dir in $PATH
14826 IFS=$as_save_IFS
14827 test -z "$as_dir" && as_dir=.
14828 for ac_exec_ext in '' $ac_executable_extensions; do
14829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14830 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14832 break 2
14834 done
14835 done
14836 IFS=$as_save_IFS
14838 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14840 esac
14842 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14843 if test -n "$SDL_CONFIG"; then
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14845 $as_echo "$SDL_CONFIG" >&6; }
14846 else
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14848 $as_echo "no" >&6; }
14852 PATH="$as_save_PATH"
14853 min_sdl_version=$SDL_VERSION
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14855 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14856 no_sdl=""
14857 if test "$SDL_CONFIG" = "no" ; then
14858 no_sdl=yes
14859 else
14860 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14861 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14863 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14864 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14865 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14866 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14867 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14868 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14869 if test "x$enable_sdltest" = "xyes" ; then
14870 ac_save_CFLAGS="$CFLAGS"
14871 ac_save_CXXFLAGS="$CXXFLAGS"
14872 ac_save_LIBS="$LIBS"
14873 CFLAGS="$CFLAGS $SDL_CFLAGS"
14874 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14875 LIBS="$LIBS $SDL_LIBS"
14876 rm -f conf.sdltest
14877 if test "$cross_compiling" = yes; then :
14878 echo $ac_n "cross compiling; assumed OK... $ac_c"
14879 else
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14883 #include <stdio.h>
14884 #include <stdlib.h>
14885 #include <string.h>
14886 #include "SDL.h"
14888 char*
14889 my_strdup (char *str)
14891 char *new_str;
14893 if (str)
14895 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14896 strcpy (new_str, str);
14898 else
14899 new_str = NULL;
14901 return new_str;
14904 int main (int argc, char *argv[])
14906 int major, minor, micro;
14907 char *tmp_version;
14909 /* This hangs on some systems (?)
14910 system ("touch conf.sdltest");
14912 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14914 /* HP/UX 9 (%@#!) writes to sscanf strings */
14915 tmp_version = my_strdup("$min_sdl_version");
14916 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14917 printf("%s, bad version string\n", "$min_sdl_version");
14918 exit(1);
14921 if (($sdl_major_version > major) ||
14922 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14923 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14925 return 0;
14927 else
14929 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14930 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14931 printf("*** best to upgrade to the required version.\n");
14932 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14933 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14934 printf("*** config.cache before re-running configure\n");
14935 return 1;
14940 _ACEOF
14941 if ac_fn_c_try_run "$LINENO"; then :
14943 else
14944 no_sdl=yes
14946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14947 conftest.$ac_objext conftest.beam conftest.$ac_ext
14950 CFLAGS="$ac_save_CFLAGS"
14951 CXXFLAGS="$ac_save_CXXFLAGS"
14952 LIBS="$ac_save_LIBS"
14955 if test "x$no_sdl" = x ; then
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14957 $as_echo "yes" >&6; }
14958 have_sdl="yes"
14959 else
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14961 $as_echo "no" >&6; }
14962 if test "$SDL_CONFIG" = "no" ; then
14963 echo "*** The sdl-config script installed by SDL could not be found"
14964 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14965 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14966 echo "*** full path to sdl-config."
14967 else
14968 if test -f conf.sdltest ; then
14970 else
14971 echo "*** Could not run SDL test program, checking why..."
14972 CFLAGS="$CFLAGS $SDL_CFLAGS"
14973 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14974 LIBS="$LIBS $SDL_LIBS"
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14978 #include <stdio.h>
14979 #include "SDL.h"
14981 int main(int argc, char *argv[])
14982 { return 0; }
14983 #undef main
14984 #define main K_and_R_C_main
14987 main ()
14989 return 0;
14991 return 0;
14993 _ACEOF
14994 if ac_fn_c_try_link "$LINENO"; then :
14995 echo "*** The test program compiled, but did not run. This usually means"
14996 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14997 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14998 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14999 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15000 echo "*** is required on your system"
15001 echo "***"
15002 echo "*** If you have an old version installed, it is best to remove it, although"
15003 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15004 else
15005 echo "*** The test program failed to compile or link. See the file config.log for the"
15006 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15007 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15008 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15010 rm -f core conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
15012 CFLAGS="$ac_save_CFLAGS"
15013 CXXFLAGS="$ac_save_CXXFLAGS"
15014 LIBS="$ac_save_LIBS"
15017 SDL_CFLAGS=""
15018 SDL_LIBS=""
15019 have_sdl="no"
15023 rm -f conf.sdltest
15026 if test "x-$have_sdl" != "x-yes" ; then
15028 if test "x-$sdl_hidd" != "x-auto" ; then
15029 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15032 else
15033 aros_target_options+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15034 aros_host_sdl_cflags=$SDL_CFLAGS
15035 aros_host_sdl_libs=$SDL_LIBS
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15043 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15044 # Check whether --enable-dbus was given.
15045 if test "${enable_dbus+set}" = set; then :
15046 enableval=$enable_dbus; dbus="yes"
15047 else
15048 dbus="no"
15051 if test "$dbus" = "yes" ; then
15052 ENABLE_DBUS=1
15053 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15054 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15055 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15056 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15057 else
15058 ENABLE_DBUS=0
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15061 $as_echo "$dbus" >&6; }
15063 if test "$use_kernel_cc_wrapper" = "yes" ; then
15064 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15067 aros_kernel_cppflags=$aros_config_cppflags
15068 aros_optimization_cflags="$optimization_level"
15069 if test "$optimization" = "default"; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15071 $as_echo_n "checking default optimization level to use... " >&6; }
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15073 $as_echo "$optimization_level" >&6; }
15076 if ! test "$gcc_default_cpu" = "" ; then
15077 target_extra_cfg+="$export_newline""# ARM gcc default target$export_newline""GCC_DEFAULT_CPU := $gcc_default_cpu$export_newline""GCC_DEFAULT_FPU := $gcc_default_fpu$export_newline""GCC_DEFAULT_FLOAT_ABI := $gcc_default_float_abi$export_newline""GCC_DEFAULT_MODE := $gcc_default_mode$export_newline"
15080 if test "$use_libatomic" = "yes" ; then
15081 aros_cxx_libs="$aros_cxx_libs -latomic"
15085 # Generic
15099 # Compatability with other Amiga-like operating systems
15102 # Host Related ###########################
15133 # Target Related #########################
15226 # Native version related
15231 # MMU related
15234 # Bootloader related
15237 # Unix/Hosted version related
15240 # ARM default GCC target related
15247 # Palm native version related
15250 # Apple iOS related
15255 # Android related
15261 # Debug related
15267 # Collect-aros stuff: "-ius" to ignore undefined symbols
15270 # C compiler related
15275 #ObjC compiler related
15278 #Java related
15281 # DBUS related
15288 #X11 related
15296 #X11 related
15300 # USB3.0 code
15303 case "$aros_flavour" in
15304 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15305 aros_flavour="emulation" ;;
15306 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15307 aros_flavour="emulation" ;;
15308 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15309 aros_flavour="standalone";;
15310 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15311 aros_flavour="standalone";;
15312 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15313 aros_flavour="native" ;;
15314 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15315 aros_flavour="native" ;;
15316 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15317 aros_flavour="linklib" ;;
15318 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15319 aros_flavour="palmnative" ;;
15320 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15321 aros_flavour="mac68knative" ;;
15322 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15323 aros_flavour="ppcnative" ;;
15324 esac
15326 if test ! -d ${aros_inc_dir} ; then
15327 ${MKDIR} ${aros_inc_dir}
15329 if test ! -d ${aros_geninc_dir} ; then
15330 ${MKDIR} ${aros_geninc_dir}
15332 if test ! -d ${aros_hostcfg_dir} ; then
15333 ${MKDIR} ${aros_hostcfg_dir}
15335 if test ! -d ${aros_targetcfg_dir} ; then
15336 ${MKDIR} ${aros_targetcfg_dir}
15338 if test ! -d ${aros_tools_dir} ; then
15339 ${MKDIR} ${aros_tools_dir}
15341 if test ! -d ${aros_scripts_dir} ; then
15342 ${MKDIR} ${aros_scripts_dir}
15345 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15348 # Generic build tools (metamake, etc)
15349 ac_config_commands="$ac_config_commands genmf-executable-support"
15351 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config compiler/include/geninc.cfg:compiler/include/geninc.cfg.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in tools/collect-aros/env.h"
15354 # Binutils
15355 ac_config_commands="$ac_config_commands binutils-support"
15357 if test "${use_ld_wrapper}" = "yes"; then
15358 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in"
15361 # Bare Elf support script and spec
15362 if test "${use_kernel_cc_wrapper}" = "yes"; then
15363 ac_config_commands="$ac_config_commands elf-compiler-support"
15365 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"
15369 # Host compiler support scripts and spec
15370 if test "${aros_target_toolchain}" = "no"; then
15371 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15373 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"
15377 # Android support
15378 if test "$aros_target_variant" == "android"; then
15379 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15383 # cmake helper
15384 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15387 cat >confcache <<\_ACEOF
15388 # This file is a shell script that caches the results of configure
15389 # tests run on this system so they can be shared between configure
15390 # scripts and configure runs, see configure's option --config-cache.
15391 # It is not useful on other systems. If it contains results you don't
15392 # want to keep, you may remove or edit it.
15394 # config.status only pays attention to the cache file if you give it
15395 # the --recheck option to rerun configure.
15397 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15398 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15399 # following values.
15401 _ACEOF
15403 # The following way of writing the cache mishandles newlines in values,
15404 # but we know of no workaround that is simple, portable, and efficient.
15405 # So, we kill variables containing newlines.
15406 # Ultrix sh set writes to stderr and can't be redirected directly,
15407 # and sets the high bit in the cache file unless we assign to the vars.
15409 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15410 eval ac_val=\$$ac_var
15411 case $ac_val in #(
15412 *${as_nl}*)
15413 case $ac_var in #(
15414 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15415 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15416 esac
15417 case $ac_var in #(
15418 _ | IFS | as_nl) ;; #(
15419 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15420 *) { eval $ac_var=; unset $ac_var;} ;;
15421 esac ;;
15422 esac
15423 done
15425 (set) 2>&1 |
15426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15427 *${as_nl}ac_space=\ *)
15428 # `set' does not quote correctly, so add quotes: double-quote
15429 # substitution turns \\\\ into \\, and sed turns \\ into \.
15430 sed -n \
15431 "s/'/'\\\\''/g;
15432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15433 ;; #(
15435 # `set' quotes correctly as required by POSIX, so do not add quotes.
15436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15438 esac |
15439 sort
15441 sed '
15442 /^ac_cv_env_/b end
15443 t clear
15444 :clear
15445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15446 t end
15447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15448 :end' >>confcache
15449 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15450 if test -w "$cache_file"; then
15451 if test "x$cache_file" != "x/dev/null"; then
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15453 $as_echo "$as_me: updating cache $cache_file" >&6;}
15454 if test ! -f "$cache_file" || test -h "$cache_file"; then
15455 cat confcache >"$cache_file"
15456 else
15457 case $cache_file in #(
15458 */* | ?:*)
15459 mv -f confcache "$cache_file"$$ &&
15460 mv -f "$cache_file"$$ "$cache_file" ;; #(
15462 mv -f confcache "$cache_file" ;;
15463 esac
15466 else
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15468 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15471 rm -f confcache
15473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15474 # Let make expand exec_prefix.
15475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15477 DEFS=-DHAVE_CONFIG_H
15479 ac_libobjs=
15480 ac_ltlibobjs=
15482 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15483 # 1. Remove the extension, and $U if already installed.
15484 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15485 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15486 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15487 # will be set to the directory where LIBOBJS objects are built.
15488 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15489 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15490 done
15491 LIBOBJS=$ac_libobjs
15493 LTLIBOBJS=$ac_ltlibobjs
15497 : "${CONFIG_STATUS=./config.status}"
15498 ac_write_fail=0
15499 ac_clean_files_save=$ac_clean_files
15500 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15502 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15503 as_write_fail=0
15504 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15505 #! $SHELL
15506 # Generated by $as_me.
15507 # Run this file to recreate the current configuration.
15508 # Compiler output produced by configure, useful for debugging
15509 # configure, is in config.log if it exists.
15511 debug=false
15512 ac_cs_recheck=false
15513 ac_cs_silent=false
15515 SHELL=\${CONFIG_SHELL-$SHELL}
15516 export SHELL
15517 _ASEOF
15518 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15519 ## -------------------- ##
15520 ## M4sh Initialization. ##
15521 ## -------------------- ##
15523 # Be more Bourne compatible
15524 DUALCASE=1; export DUALCASE # for MKS sh
15525 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15526 emulate sh
15527 NULLCMD=:
15528 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15529 # is contrary to our usage. Disable this feature.
15530 alias -g '${1+"$@"}'='"$@"'
15531 setopt NO_GLOB_SUBST
15532 else
15533 case `(set -o) 2>/dev/null` in #(
15534 *posix*) :
15535 set -o posix ;; #(
15536 *) :
15538 esac
15542 as_nl='
15544 export as_nl
15545 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15546 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15547 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15548 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15549 # Prefer a ksh shell builtin over an external printf program on Solaris,
15550 # but without wasting forks for bash or zsh.
15551 if test -z "$BASH_VERSION$ZSH_VERSION" \
15552 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15553 as_echo='print -r --'
15554 as_echo_n='print -rn --'
15555 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15556 as_echo='printf %s\n'
15557 as_echo_n='printf %s'
15558 else
15559 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15560 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15561 as_echo_n='/usr/ucb/echo -n'
15562 else
15563 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15564 as_echo_n_body='eval
15565 arg=$1;
15566 case $arg in #(
15567 *"$as_nl"*)
15568 expr "X$arg" : "X\\(.*\\)$as_nl";
15569 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15570 esac;
15571 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15573 export as_echo_n_body
15574 as_echo_n='sh -c $as_echo_n_body as_echo'
15576 export as_echo_body
15577 as_echo='sh -c $as_echo_body as_echo'
15580 # The user is always right.
15581 if test "${PATH_SEPARATOR+set}" != set; then
15582 PATH_SEPARATOR=:
15583 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15584 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15585 PATH_SEPARATOR=';'
15590 # IFS
15591 # We need space, tab and new line, in precisely that order. Quoting is
15592 # there to prevent editors from complaining about space-tab.
15593 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15594 # splitting by setting IFS to empty value.)
15595 IFS=" "" $as_nl"
15597 # Find who we are. Look in the path if we contain no directory separator.
15598 as_myself=
15599 case $0 in #((
15600 *[\\/]* ) as_myself=$0 ;;
15601 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15602 for as_dir in $PATH
15604 IFS=$as_save_IFS
15605 test -z "$as_dir" && as_dir=.
15606 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15607 done
15608 IFS=$as_save_IFS
15611 esac
15612 # We did not find ourselves, most probably we were run as `sh COMMAND'
15613 # in which case we are not to be found in the path.
15614 if test "x$as_myself" = x; then
15615 as_myself=$0
15617 if test ! -f "$as_myself"; then
15618 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15619 exit 1
15622 # Unset variables that we do not need and which cause bugs (e.g. in
15623 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15624 # suppresses any "Segmentation fault" message there. '((' could
15625 # trigger a bug in pdksh 5.2.14.
15626 for as_var in BASH_ENV ENV MAIL MAILPATH
15627 do eval test x\${$as_var+set} = xset \
15628 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15629 done
15630 PS1='$ '
15631 PS2='> '
15632 PS4='+ '
15634 # NLS nuisances.
15635 LC_ALL=C
15636 export LC_ALL
15637 LANGUAGE=C
15638 export LANGUAGE
15640 # CDPATH.
15641 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15644 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15645 # ----------------------------------------
15646 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15647 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15648 # script with STATUS, using 1 if that was 0.
15649 as_fn_error ()
15651 as_status=$1; test $as_status -eq 0 && as_status=1
15652 if test "$4"; then
15653 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15654 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15656 $as_echo "$as_me: error: $2" >&2
15657 as_fn_exit $as_status
15658 } # as_fn_error
15661 # as_fn_set_status STATUS
15662 # -----------------------
15663 # Set $? to STATUS, without forking.
15664 as_fn_set_status ()
15666 return $1
15667 } # as_fn_set_status
15669 # as_fn_exit STATUS
15670 # -----------------
15671 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15672 as_fn_exit ()
15674 set +e
15675 as_fn_set_status $1
15676 exit $1
15677 } # as_fn_exit
15679 # as_fn_unset VAR
15680 # ---------------
15681 # Portably unset VAR.
15682 as_fn_unset ()
15684 { eval $1=; unset $1;}
15686 as_unset=as_fn_unset
15687 # as_fn_append VAR VALUE
15688 # ----------------------
15689 # Append the text in VALUE to the end of the definition contained in VAR. Take
15690 # advantage of any shell optimizations that allow amortized linear growth over
15691 # repeated appends, instead of the typical quadratic growth present in naive
15692 # implementations.
15693 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15694 eval 'as_fn_append ()
15696 eval $1+=\$2
15698 else
15699 as_fn_append ()
15701 eval $1=\$$1\$2
15703 fi # as_fn_append
15705 # as_fn_arith ARG...
15706 # ------------------
15707 # Perform arithmetic evaluation on the ARGs, and store the result in the
15708 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15709 # must be portable across $(()) and expr.
15710 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15711 eval 'as_fn_arith ()
15713 as_val=$(( $* ))
15715 else
15716 as_fn_arith ()
15718 as_val=`expr "$@" || test $? -eq 1`
15720 fi # as_fn_arith
15723 if expr a : '\(a\)' >/dev/null 2>&1 &&
15724 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15725 as_expr=expr
15726 else
15727 as_expr=false
15730 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15731 as_basename=basename
15732 else
15733 as_basename=false
15736 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15737 as_dirname=dirname
15738 else
15739 as_dirname=false
15742 as_me=`$as_basename -- "$0" ||
15743 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15744 X"$0" : 'X\(//\)$' \| \
15745 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15746 $as_echo X/"$0" |
15747 sed '/^.*\/\([^/][^/]*\)\/*$/{
15748 s//\1/
15751 /^X\/\(\/\/\)$/{
15752 s//\1/
15755 /^X\/\(\/\).*/{
15756 s//\1/
15759 s/.*/./; q'`
15761 # Avoid depending upon Character Ranges.
15762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15765 as_cr_digits='0123456789'
15766 as_cr_alnum=$as_cr_Letters$as_cr_digits
15768 ECHO_C= ECHO_N= ECHO_T=
15769 case `echo -n x` in #(((((
15770 -n*)
15771 case `echo 'xy\c'` in
15772 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15773 xy) ECHO_C='\c';;
15774 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15775 ECHO_T=' ';;
15776 esac;;
15778 ECHO_N='-n';;
15779 esac
15781 rm -f conf$$ conf$$.exe conf$$.file
15782 if test -d conf$$.dir; then
15783 rm -f conf$$.dir/conf$$.file
15784 else
15785 rm -f conf$$.dir
15786 mkdir conf$$.dir 2>/dev/null
15788 if (echo >conf$$.file) 2>/dev/null; then
15789 if ln -s conf$$.file conf$$ 2>/dev/null; then
15790 as_ln_s='ln -s'
15791 # ... but there are two gotchas:
15792 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15793 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15794 # In both cases, we have to default to `cp -pR'.
15795 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15796 as_ln_s='cp -pR'
15797 elif ln conf$$.file conf$$ 2>/dev/null; then
15798 as_ln_s=ln
15799 else
15800 as_ln_s='cp -pR'
15802 else
15803 as_ln_s='cp -pR'
15805 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15806 rmdir conf$$.dir 2>/dev/null
15809 # as_fn_mkdir_p
15810 # -------------
15811 # Create "$as_dir" as a directory, including parents if necessary.
15812 as_fn_mkdir_p ()
15815 case $as_dir in #(
15816 -*) as_dir=./$as_dir;;
15817 esac
15818 test -d "$as_dir" || eval $as_mkdir_p || {
15819 as_dirs=
15820 while :; do
15821 case $as_dir in #(
15822 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15823 *) as_qdir=$as_dir;;
15824 esac
15825 as_dirs="'$as_qdir' $as_dirs"
15826 as_dir=`$as_dirname -- "$as_dir" ||
15827 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15828 X"$as_dir" : 'X\(//\)[^/]' \| \
15829 X"$as_dir" : 'X\(//\)$' \| \
15830 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15831 $as_echo X"$as_dir" |
15832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15833 s//\1/
15836 /^X\(\/\/\)[^/].*/{
15837 s//\1/
15840 /^X\(\/\/\)$/{
15841 s//\1/
15844 /^X\(\/\).*/{
15845 s//\1/
15848 s/.*/./; q'`
15849 test -d "$as_dir" && break
15850 done
15851 test -z "$as_dirs" || eval "mkdir $as_dirs"
15852 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15855 } # as_fn_mkdir_p
15856 if mkdir -p . 2>/dev/null; then
15857 as_mkdir_p='mkdir -p "$as_dir"'
15858 else
15859 test -d ./-p && rmdir ./-p
15860 as_mkdir_p=false
15864 # as_fn_executable_p FILE
15865 # -----------------------
15866 # Test if FILE is an executable regular file.
15867 as_fn_executable_p ()
15869 test -f "$1" && test -x "$1"
15870 } # as_fn_executable_p
15871 as_test_x='test -x'
15872 as_executable_p=as_fn_executable_p
15874 # Sed expression to map a string onto a valid CPP name.
15875 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15877 # Sed expression to map a string onto a valid variable name.
15878 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15881 exec 6>&1
15882 ## ----------------------------------- ##
15883 ## Main body of $CONFIG_STATUS script. ##
15884 ## ----------------------------------- ##
15885 _ASEOF
15886 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15889 # Save the log message, to keep $0 and so on meaningful, and to
15890 # report actual input values of CONFIG_FILES etc. instead of their
15891 # values after options handling.
15892 ac_log="
15893 This file was extended by $as_me, which was
15894 generated by GNU Autoconf 2.69. Invocation command line was
15896 CONFIG_FILES = $CONFIG_FILES
15897 CONFIG_HEADERS = $CONFIG_HEADERS
15898 CONFIG_LINKS = $CONFIG_LINKS
15899 CONFIG_COMMANDS = $CONFIG_COMMANDS
15900 $ $0 $@
15902 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15905 _ACEOF
15907 case $ac_config_files in *"
15908 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15909 esac
15911 case $ac_config_headers in *"
15912 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15913 esac
15916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15917 # Files that config.status was made for.
15918 config_files="$ac_config_files"
15919 config_headers="$ac_config_headers"
15920 config_commands="$ac_config_commands"
15922 _ACEOF
15924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15925 ac_cs_usage="\
15926 \`$as_me' instantiates files and other configuration actions
15927 from templates according to the current configuration. Unless the files
15928 and actions are specified as TAGs, all are instantiated by default.
15930 Usage: $0 [OPTION]... [TAG]...
15932 -h, --help print this help, then exit
15933 -V, --version print version number and configuration settings, then exit
15934 --config print configuration, then exit
15935 -q, --quiet, --silent
15936 do not print progress messages
15937 -d, --debug don't remove temporary files
15938 --recheck update $as_me by reconfiguring in the same conditions
15939 --file=FILE[:TEMPLATE]
15940 instantiate the configuration file FILE
15941 --header=FILE[:TEMPLATE]
15942 instantiate the configuration header FILE
15944 Configuration files:
15945 $config_files
15947 Configuration headers:
15948 $config_headers
15950 Configuration commands:
15951 $config_commands
15953 Report bugs to the package provider."
15955 _ACEOF
15956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15957 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15958 ac_cs_version="\\
15959 config.status
15960 configured by $0, generated by GNU Autoconf 2.69,
15961 with options \\"\$ac_cs_config\\"
15963 Copyright (C) 2012 Free Software Foundation, Inc.
15964 This config.status script is free software; the Free Software Foundation
15965 gives unlimited permission to copy, distribute and modify it."
15967 ac_pwd='$ac_pwd'
15968 srcdir='$srcdir'
15969 test -n "\$AWK" || AWK=awk
15970 _ACEOF
15972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15973 # The default lists apply if the user does not specify any file.
15974 ac_need_defaults=:
15975 while test $# != 0
15977 case $1 in
15978 --*=?*)
15979 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15980 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15981 ac_shift=:
15983 --*=)
15984 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15985 ac_optarg=
15986 ac_shift=:
15989 ac_option=$1
15990 ac_optarg=$2
15991 ac_shift=shift
15993 esac
15995 case $ac_option in
15996 # Handling of the options.
15997 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15998 ac_cs_recheck=: ;;
15999 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16000 $as_echo "$ac_cs_version"; exit ;;
16001 --config | --confi | --conf | --con | --co | --c )
16002 $as_echo "$ac_cs_config"; exit ;;
16003 --debug | --debu | --deb | --de | --d | -d )
16004 debug=: ;;
16005 --file | --fil | --fi | --f )
16006 $ac_shift
16007 case $ac_optarg in
16008 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16009 '') as_fn_error $? "missing file argument" ;;
16010 esac
16011 as_fn_append CONFIG_FILES " '$ac_optarg'"
16012 ac_need_defaults=false;;
16013 --header | --heade | --head | --hea )
16014 $ac_shift
16015 case $ac_optarg in
16016 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16017 esac
16018 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16019 ac_need_defaults=false;;
16020 --he | --h)
16021 # Conflict between --help and --header
16022 as_fn_error $? "ambiguous option: \`$1'
16023 Try \`$0 --help' for more information.";;
16024 --help | --hel | -h )
16025 $as_echo "$ac_cs_usage"; exit ;;
16026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16027 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16028 ac_cs_silent=: ;;
16030 # This is an error.
16031 -*) as_fn_error $? "unrecognized option: \`$1'
16032 Try \`$0 --help' for more information." ;;
16034 *) as_fn_append ac_config_targets " $1"
16035 ac_need_defaults=false ;;
16037 esac
16038 shift
16039 done
16041 ac_configure_extra_args=
16043 if $ac_cs_silent; then
16044 exec 6>/dev/null
16045 ac_configure_extra_args="$ac_configure_extra_args --silent"
16048 _ACEOF
16049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16050 if \$ac_cs_recheck; then
16051 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16052 shift
16053 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16054 CONFIG_SHELL='$SHELL'
16055 export CONFIG_SHELL
16056 exec "\$@"
16059 _ACEOF
16060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16061 exec 5>>config.log
16063 echo
16064 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16065 ## Running $as_me. ##
16066 _ASBOX
16067 $as_echo "$ac_log"
16068 } >&5
16070 _ACEOF
16071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16073 # INIT-COMMANDS
16076 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16077 aros_tools_dir=${aros_tools_dir}
16081 aros_host_exe_suffix=${aros_host_exe_suffix}
16082 aros_tools_dir=${aros_tools_dir}
16083 aros_target_cpu=${aros_target_cpu}
16084 aros_target_arch=${aros_target_arch}
16085 aros_target_suffix=${aros_target_suffix}
16086 orig_target_nm=${orig_target_nm}
16087 orig_target_as=${orig_target_as}
16088 orig_target_ar=${orig_target_ar}
16089 orig_target_ranlib=${orig_target_ranlib}
16090 orig_target_objdump=${orig_target_objdump}
16091 orig_target_objcopy=${orig_target_objcopy}
16092 orig_target_strip=${orig_target_strip}
16093 aros_kernel_ld=${aros_kernel_ld}
16097 aros_host_exe_suffix=${aros_host_exe_suffix}
16098 aros_tools_dir=${aros_tools_dir}
16099 aros_target_cpu=${aros_target_cpu}
16100 aros_target_arch=${aros_target_arch}
16101 aros_target_suffix=${aros_target_suffix}
16102 aros_kernel_ld=${aros_kernel_ld}
16106 aros_host_exe_suffix=${aros_host_exe_suffix}
16107 aros_tools_dir=${aros_tools_dir}
16108 aros_target_cpu=${aros_target_cpu}
16109 aros_target_arch=${aros_target_arch}
16110 aros_target_suffix=${aros_target_suffix}
16114 _ACEOF
16116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16118 # Handling of arguments.
16119 for ac_config_target in $ac_config_targets
16121 case $ac_config_target in
16122 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16123 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16124 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16125 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16126 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16127 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16128 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16129 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16130 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16131 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16132 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16133 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16134 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16135 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16136 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16137 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16138 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in" ;;
16139 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16140 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16141 "${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" ;;
16142 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16143 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16144 "${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" ;;
16145 "${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" ;;
16146 "${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" ;;
16147 "${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" ;;
16148 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16150 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16151 esac
16152 done
16155 # If the user did not use the arguments to specify the items to instantiate,
16156 # then the envvar interface is used. Set only those that are not.
16157 # We use the long form for the default assignment because of an extremely
16158 # bizarre bug on SunOS 4.1.3.
16159 if $ac_need_defaults; then
16160 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16161 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16162 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16165 # Have a temporary directory for convenience. Make it in the build tree
16166 # simply because there is no reason against having it here, and in addition,
16167 # creating and moving files from /tmp can sometimes cause problems.
16168 # Hook for its removal unless debugging.
16169 # Note that there is a small window in which the directory will not be cleaned:
16170 # after its creation but before its name has been assigned to `$tmp'.
16171 $debug ||
16173 tmp= ac_tmp=
16174 trap 'exit_status=$?
16175 : "${ac_tmp:=$tmp}"
16176 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16178 trap 'as_fn_exit 1' 1 2 13 15
16180 # Create a (secure) tmp directory for tmp files.
16183 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16184 test -d "$tmp"
16185 } ||
16187 tmp=./conf$$-$RANDOM
16188 (umask 077 && mkdir "$tmp")
16189 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16190 ac_tmp=$tmp
16192 # Set up the scripts for CONFIG_FILES section.
16193 # No need to generate them if there are no CONFIG_FILES.
16194 # This happens for instance with `./config.status config.h'.
16195 if test -n "$CONFIG_FILES"; then
16198 ac_cr=`echo X | tr X '\015'`
16199 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16200 # But we know of no other shell where ac_cr would be empty at this
16201 # point, so we can use a bashism as a fallback.
16202 if test "x$ac_cr" = x; then
16203 eval ac_cr=\$\'\\r\'
16205 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16206 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16207 ac_cs_awk_cr='\\r'
16208 else
16209 ac_cs_awk_cr=$ac_cr
16212 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16213 _ACEOF
16217 echo "cat >conf$$subs.awk <<_ACEOF" &&
16218 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16219 echo "_ACEOF"
16220 } >conf$$subs.sh ||
16221 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16222 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16223 ac_delim='%!_!# '
16224 for ac_last_try in false false false false false :; do
16225 . ./conf$$subs.sh ||
16226 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16228 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16229 if test $ac_delim_n = $ac_delim_num; then
16230 break
16231 elif $ac_last_try; then
16232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16233 else
16234 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16236 done
16237 rm -f conf$$subs.sh
16239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16240 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16241 _ACEOF
16242 sed -n '
16244 s/^/S["/; s/!.*/"]=/
16247 s/^[^!]*!//
16248 :repl
16249 t repl
16250 s/'"$ac_delim"'$//
16251 t delim
16254 s/\(.\{148\}\)..*/\1/
16255 t more1
16256 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16259 b repl
16260 :more1
16261 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16264 s/.\{148\}//
16265 t nl
16266 :delim
16268 s/\(.\{148\}\)..*/\1/
16269 t more2
16270 s/["\\]/\\&/g; s/^/"/; s/$/"/
16273 :more2
16274 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16277 s/.\{148\}//
16278 t delim
16279 ' <conf$$subs.awk | sed '
16280 /^[^""]/{
16282 s/\n//
16284 ' >>$CONFIG_STATUS || ac_write_fail=1
16285 rm -f conf$$subs.awk
16286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16287 _ACAWK
16288 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16289 for (key in S) S_is_set[key] = 1
16290 FS = "\a"
16294 line = $ 0
16295 nfields = split(line, field, "@")
16296 substed = 0
16297 len = length(field[1])
16298 for (i = 2; i < nfields; i++) {
16299 key = field[i]
16300 keylen = length(key)
16301 if (S_is_set[key]) {
16302 value = S[key]
16303 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16304 len += length(value) + length(field[++i])
16305 substed = 1
16306 } else
16307 len += 1 + keylen
16310 print line
16313 _ACAWK
16314 _ACEOF
16315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16316 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16317 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16318 else
16320 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16321 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16322 _ACEOF
16324 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16325 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16326 # trailing colons and then remove the whole line if VPATH becomes empty
16327 # (actually we leave an empty line to preserve line numbers).
16328 if test "x$srcdir" = x.; then
16329 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16331 s///
16332 s/^/:/
16333 s/[ ]*$/:/
16334 s/:\$(srcdir):/:/g
16335 s/:\${srcdir}:/:/g
16336 s/:@srcdir@:/:/g
16337 s/^:*//
16338 s/:*$//
16340 s/\(=[ ]*\).*/\1/
16342 s/\n//
16343 s/^[^=]*=[ ]*$//
16347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16348 fi # test -n "$CONFIG_FILES"
16350 # Set up the scripts for CONFIG_HEADERS section.
16351 # No need to generate them if there are no CONFIG_HEADERS.
16352 # This happens for instance with `./config.status Makefile'.
16353 if test -n "$CONFIG_HEADERS"; then
16354 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16355 BEGIN {
16356 _ACEOF
16358 # Transform confdefs.h into an awk script `defines.awk', embedded as
16359 # here-document in config.status, that substitutes the proper values into
16360 # config.h.in to produce config.h.
16362 # Create a delimiter string that does not exist in confdefs.h, to ease
16363 # handling of long lines.
16364 ac_delim='%!_!# '
16365 for ac_last_try in false false :; do
16366 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16367 if test -z "$ac_tt"; then
16368 break
16369 elif $ac_last_try; then
16370 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16371 else
16372 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16374 done
16376 # For the awk script, D is an array of macro values keyed by name,
16377 # likewise P contains macro parameters if any. Preserve backslash
16378 # newline sequences.
16380 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16381 sed -n '
16382 s/.\{148\}/&'"$ac_delim"'/g
16383 t rset
16384 :rset
16385 s/^[ ]*#[ ]*define[ ][ ]*/ /
16386 t def
16388 :def
16389 s/\\$//
16390 t bsnl
16391 s/["\\]/\\&/g
16392 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16393 D["\1"]=" \3"/p
16394 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16396 :bsnl
16397 s/["\\]/\\&/g
16398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16399 D["\1"]=" \3\\\\\\n"\\/p
16400 t cont
16401 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16402 t cont
16404 :cont
16406 s/.\{148\}/&'"$ac_delim"'/g
16407 t clear
16408 :clear
16409 s/\\$//
16410 t bsnlc
16411 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16413 :bsnlc
16414 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16415 b cont
16416 ' <confdefs.h | sed '
16417 s/'"$ac_delim"'/"\\\
16418 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16421 for (key in D) D_is_set[key] = 1
16422 FS = "\a"
16424 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16425 line = \$ 0
16426 split(line, arg, " ")
16427 if (arg[1] == "#") {
16428 defundef = arg[2]
16429 mac1 = arg[3]
16430 } else {
16431 defundef = substr(arg[1], 2)
16432 mac1 = arg[2]
16434 split(mac1, mac2, "(") #)
16435 macro = mac2[1]
16436 prefix = substr(line, 1, index(line, defundef) - 1)
16437 if (D_is_set[macro]) {
16438 # Preserve the white space surrounding the "#".
16439 print prefix "define", macro P[macro] D[macro]
16440 next
16441 } else {
16442 # Replace #undef with comments. This is necessary, for example,
16443 # in the case of _POSIX_SOURCE, which is predefined and required
16444 # on some systems where configure will not decide to define it.
16445 if (defundef == "undef") {
16446 print "/*", prefix defundef, macro, "*/"
16447 next
16451 { print }
16452 _ACAWK
16453 _ACEOF
16454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16455 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16456 fi # test -n "$CONFIG_HEADERS"
16459 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16460 shift
16461 for ac_tag
16463 case $ac_tag in
16464 :[FHLC]) ac_mode=$ac_tag; continue;;
16465 esac
16466 case $ac_mode$ac_tag in
16467 :[FHL]*:*);;
16468 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16469 :[FH]-) ac_tag=-:-;;
16470 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16471 esac
16472 ac_save_IFS=$IFS
16473 IFS=:
16474 set x $ac_tag
16475 IFS=$ac_save_IFS
16476 shift
16477 ac_file=$1
16478 shift
16480 case $ac_mode in
16481 :L) ac_source=$1;;
16482 :[FH])
16483 ac_file_inputs=
16484 for ac_f
16486 case $ac_f in
16487 -) ac_f="$ac_tmp/stdin";;
16488 *) # Look for the file first in the build tree, then in the source tree
16489 # (if the path is not absolute). The absolute path cannot be DOS-style,
16490 # because $ac_f cannot contain `:'.
16491 test -f "$ac_f" ||
16492 case $ac_f in
16493 [\\/$]*) false;;
16494 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16495 esac ||
16496 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16497 esac
16498 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16499 as_fn_append ac_file_inputs " '$ac_f'"
16500 done
16502 # Let's still pretend it is `configure' which instantiates (i.e., don't
16503 # use $as_me), people would be surprised to read:
16504 # /* config.h. Generated by config.status. */
16505 configure_input='Generated from '`
16506 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16507 `' by configure.'
16508 if test x"$ac_file" != x-; then
16509 configure_input="$ac_file. $configure_input"
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16511 $as_echo "$as_me: creating $ac_file" >&6;}
16513 # Neutralize special characters interpreted by sed in replacement strings.
16514 case $configure_input in #(
16515 *\&* | *\|* | *\\* )
16516 ac_sed_conf_input=`$as_echo "$configure_input" |
16517 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16518 *) ac_sed_conf_input=$configure_input;;
16519 esac
16521 case $ac_tag in
16522 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16524 esac
16526 esac
16528 ac_dir=`$as_dirname -- "$ac_file" ||
16529 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16530 X"$ac_file" : 'X\(//\)[^/]' \| \
16531 X"$ac_file" : 'X\(//\)$' \| \
16532 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16533 $as_echo X"$ac_file" |
16534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16535 s//\1/
16538 /^X\(\/\/\)[^/].*/{
16539 s//\1/
16542 /^X\(\/\/\)$/{
16543 s//\1/
16546 /^X\(\/\).*/{
16547 s//\1/
16550 s/.*/./; q'`
16551 as_dir="$ac_dir"; as_fn_mkdir_p
16552 ac_builddir=.
16554 case "$ac_dir" in
16555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16558 # A ".." for each directory in $ac_dir_suffix.
16559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16560 case $ac_top_builddir_sub in
16561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16563 esac ;;
16564 esac
16565 ac_abs_top_builddir=$ac_pwd
16566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16567 # for backward compatibility:
16568 ac_top_builddir=$ac_top_build_prefix
16570 case $srcdir in
16571 .) # We are building in place.
16572 ac_srcdir=.
16573 ac_top_srcdir=$ac_top_builddir_sub
16574 ac_abs_top_srcdir=$ac_pwd ;;
16575 [\\/]* | ?:[\\/]* ) # Absolute name.
16576 ac_srcdir=$srcdir$ac_dir_suffix;
16577 ac_top_srcdir=$srcdir
16578 ac_abs_top_srcdir=$srcdir ;;
16579 *) # Relative name.
16580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16581 ac_top_srcdir=$ac_top_build_prefix$srcdir
16582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16583 esac
16584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16587 case $ac_mode in
16590 # CONFIG_FILE
16593 _ACEOF
16595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16596 # If the template does not know about datarootdir, expand it.
16597 # FIXME: This hack should be removed a few years after 2.60.
16598 ac_datarootdir_hack=; ac_datarootdir_seen=
16599 ac_sed_dataroot='
16600 /datarootdir/ {
16604 /@datadir@/p
16605 /@docdir@/p
16606 /@infodir@/p
16607 /@localedir@/p
16608 /@mandir@/p'
16609 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16610 *datarootdir*) ac_datarootdir_seen=yes;;
16611 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16613 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16614 _ACEOF
16615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16616 ac_datarootdir_hack='
16617 s&@datadir@&$datadir&g
16618 s&@docdir@&$docdir&g
16619 s&@infodir@&$infodir&g
16620 s&@localedir@&$localedir&g
16621 s&@mandir@&$mandir&g
16622 s&\\\${datarootdir}&$datarootdir&g' ;;
16623 esac
16624 _ACEOF
16626 # Neutralize VPATH when `$srcdir' = `.'.
16627 # Shell code in configure.ac might set extrasub.
16628 # FIXME: do we really want to maintain this feature?
16629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16630 ac_sed_extra="$ac_vpsub
16631 $extrasub
16632 _ACEOF
16633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16636 s|@configure_input@|$ac_sed_conf_input|;t t
16637 s&@top_builddir@&$ac_top_builddir_sub&;t t
16638 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16639 s&@srcdir@&$ac_srcdir&;t t
16640 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16641 s&@top_srcdir@&$ac_top_srcdir&;t t
16642 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16643 s&@builddir@&$ac_builddir&;t t
16644 s&@abs_builddir@&$ac_abs_builddir&;t t
16645 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16646 $ac_datarootdir_hack
16648 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16649 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16651 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16652 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16653 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16654 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16656 which seems to be undefined. Please make sure it is defined" >&5
16657 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16658 which seems to be undefined. Please make sure it is defined" >&2;}
16660 rm -f "$ac_tmp/stdin"
16661 case $ac_file in
16662 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16663 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16664 esac \
16665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16669 # CONFIG_HEADER
16671 if test x"$ac_file" != x-; then
16673 $as_echo "/* $configure_input */" \
16674 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16675 } >"$ac_tmp/config.h" \
16676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16677 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16679 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16680 else
16681 rm -f "$ac_file"
16682 mv "$ac_tmp/config.h" "$ac_file" \
16683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16685 else
16686 $as_echo "/* $configure_input */" \
16687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16688 || as_fn_error $? "could not create -" "$LINENO" 5
16692 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16693 $as_echo "$as_me: executing $ac_file commands" >&6;}
16695 esac
16698 case $ac_file$ac_mode in
16699 "genmf-executable-support":C)
16700 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16701 chmod a+x ${aros_tools_dir}/genmf.py
16703 "binutils-support":C)
16704 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16705 mkdir -p $prefix
16706 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16708 chmod a+x ${prefix2}-ld
16710 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16711 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16712 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16713 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16714 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16715 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16716 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16718 "elf-compiler-support":C)
16719 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16720 mkdir -p $prefix
16721 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16723 chmod a+x ${prefix2}-gcc
16725 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16727 "host-compiler-wrapper-support":C)
16728 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16729 mkdir -p $prefix
16730 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16732 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16735 esac
16736 done # for ac_tag
16739 as_fn_exit 0
16740 _ACEOF
16741 ac_clean_files=$ac_clean_files_save
16743 test $ac_write_fail = 0 ||
16744 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16747 # configure is writing to config.log, and then calls config.status.
16748 # config.status does its own redirection, appending to config.log.
16749 # Unfortunately, on DOS this fails, as config.log is still kept open
16750 # by configure, so config.status won't be able to write to it; its
16751 # output is simply discarded. So we exec the FD to /dev/null,
16752 # effectively closing config.log, so it can be properly (re)opened and
16753 # appended to by config.status. When coming back to configure, we
16754 # need to make the FD available again.
16755 if test "$no_create" != yes; then
16756 ac_cs_success=:
16757 ac_config_status_args=
16758 test "$silent" = yes &&
16759 ac_config_status_args="$ac_config_status_args --quiet"
16760 exec 5>/dev/null
16761 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16762 exec 5>>config.log
16763 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16764 # would make configure fail if this is the last instruction.
16765 $ac_cs_success || as_fn_exit 1
16767 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16769 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16774 #XXX compatability...
16775 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16777 if test -n "$aros_shared_cflags" ; then
16778 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16779 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg