doh - add the warn flags to the correct cflags.
[AROS.git] / configure
blob6af7ab637428862149f6e5e32f1bdbf7ca4eb880
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 java_target
626 objc_target
627 target_binutils_version
628 gcc_target_cpu
629 ignore_undefined_symbols
630 aros_modules_debug
631 aros_stack_debug
632 aros_mungwall_debug
633 aros_debug
634 ENABLE_X11
635 KERNEL_DBUS_INCLUDES
636 KERNEL_DBUS_KOBJ
637 DBUS_LIBFLAGS
638 DBUS_CFLAGS
639 ENABLE_DBUS
640 aros_android_antapk
641 aros_android_level
642 gcc_default_mode
643 gcc_default_float_abi
644 gcc_default_fpu
645 gcc_default_cpu_tune
646 gcc_default_cpu
647 aros_ios_sdk
648 aros_ios_version
649 aros_ios_platform
650 aros_enable_mmu
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 ENABLE_EXECSMP
654 PLATFORM_EXECSMP
655 aros_serial_debug
656 aros_host_sdl_libs
657 aros_host_sdl_cflags
658 aros_host_x11_ldflags
659 aros_host_x11_cflags
660 DO_VIDMODE_SUPPORT
661 DO_XSHM_SUPPORT
662 aros_nominal_depth
663 aros_nominal_height
664 aros_nominal_width
665 pci_hidd_target
666 host_android_gfx
667 host_sdl_gfx
668 host_x_gfx
669 crosstools_cxx_target
670 crosstools_target
671 aros_isa_flags
672 aros_optimization_cflags
673 aros_config_lto
674 aros_target_strip_flags
675 aros_target_genmap
676 aros_debug_ldflags
677 aros_debug_aflags
678 aros_debug_cflags
679 aros_target_cflags
680 aros_kernel_ldflags
681 aros_kernel_objcflags
682 aros_kernel_includes
683 aros_kernel_cflags
684 aros_kernel_sysroot
685 aros_config_ldflags
686 aros_config_aflags
687 aros_config_cflags
688 aros_nowarn_flags
689 aros_warn_flags
690 aros_config_sysroot
691 aros_shared_ldflags
692 aros_shared_aflags
693 aros_shared_cflags
694 aros_arch_libs
695 aros_compiler_libs
696 spec_obj_format
697 aros_object_format
698 aros_shared_ld
699 aros_shared_default
700 aros_target_nm
701 aros_target_strip
702 aros_target_objcopy
703 aros_target_objdump
704 aros_target_cc_path
705 aros_target_cc_includes
706 aros_target_ld
707 aros_target_as
708 aros_target_cpp
709 aros_target_cxx
710 aros_target_cc
711 aros_plain_ar
712 aros_plain_nm
713 aros_target_ranlib
714 aros_target_ar
715 aros_target_suffix
716 aros_target_variant
717 aros_target_cpu_mode
718 aros_target_cpu
719 aros_target_family
720 aros_target_arch
721 aros_target_bootloader
722 aros_target_iconset
723 aros_target_guitheme
724 aros_tools_dir
725 aros_host_lib_suffix
726 aros_host_exe_suffix
727 aros_host_mkargs
728 aros_host_mkdep
729 aros_host_debug
730 aros_host_ldflags
731 gnu89_inline
732 aros_host_cxxflags
733 aros_host_cflags
734 aros_host_make
735 aros_host_cxx
736 aros_host_cc
737 aros_host_def_cc
738 aros_host_cpp
739 aros_host_cpu
740 aros_host_arch
741 aros_cc_pre
742 aros_amigaos_compliance
743 AROS_PORTSSRCDIR
744 AROS_CROSSTOOLSDIR
745 SRCDIR
746 AROS_BUILDDIR_UNIX
747 AROS_BUILDDIR
748 aros_build_host
749 aros_toolchain_ld
750 aros_target_toolchain
751 aros_flavour_uc
752 aros_flavour
753 aros_cpu
754 aros_arch
755 SDL_LIBS
756 SDL_CFLAGS
757 SDL_CONFIG
758 XMKMF
759 kernel_cflags_iquote_end
760 kernel_cflags_iquote
761 host_cflags_iquote_end
762 host_cflags_iquote
763 aros_toolchain
764 aros_target_nostdlib_ldflags
765 aros_target_detach_ldflags
766 aros_target_nix_ldflags
767 aros_target_nostartup_ldflags
768 aros_target_nostdinc_cflags
769 aros_kernel_rescomp
770 orig_target_objdump
771 orig_target_objcopy
772 orig_target_strip
773 orig_target_nm
774 orig_target_ranlib
775 orig_target_ar
776 orig_target_as
777 orig_target_ld
778 orig_target_cxx
779 orig_target_cc
780 orig_target_cpp
781 aros_kernel_objdump
782 aros_kernel_objcopy
783 aros_kernel_strip
784 aros_kernel_nm
785 aros_kernel_ranlib
786 aros_kernel_ar
787 aros_kernel_as
788 aros_kernel_ld
789 aros_kernel_cxx
790 aros_kernel_cc
791 aros_kernel_cpp
792 target_gcc_version
794 android_tool
795 CCACHE
796 DISTCC
797 LIBOBJS
798 EGREP
799 GREP
801 TEST
804 libpng_incdir
805 libpng_libextra
806 libpng
807 arosconfig_use_libpngconfig
808 pkgpyexecdir
809 pyexecdir
810 pkgpythondir
811 pythondir
812 PYTHON_PLATFORM
813 PYTHON_EXEC_PREFIX
814 PYTHON_PREFIX
815 PYTHON_VERSION
816 PYTHON
817 PATCH
818 CHMOD
820 PPMTOILBM
821 PNGTOPNM
822 FLEX
823 BISON
826 UNIQ
827 SORT
828 TOUCH
829 MKDIR
830 ECHO
834 aros_host_strip
835 aros_host_ranlib
836 aros_host_ar
837 aros_host_automake
838 aros_host_autoheader
839 aros_host_autoconf
840 aros_host_aclocal
841 aros_host_ld
842 MMAKE
845 ac_ct_CC
846 CFLAGS
848 OBJEXT
849 EXEEXT
850 ac_ct_CXX
851 CPPFLAGS
852 LDFLAGS
853 CXXFLAGS
855 host_os
856 host_vendor
857 host_cpu
858 host
859 build_os
860 build_vendor
861 build_cpu
862 build
863 target_alias
864 host_alias
865 build_alias
866 LIBS
867 ECHO_T
868 ECHO_N
869 ECHO_C
870 DEFS
871 mandir
872 localedir
873 libdir
874 psdir
875 pdfdir
876 dvidir
877 htmldir
878 infodir
879 docdir
880 oldincludedir
881 includedir
882 localstatedir
883 sharedstatedir
884 sysconfdir
885 datadir
886 datarootdir
887 libexecdir
888 sbindir
889 bindir
890 program_transform_name
891 prefix
892 exec_prefix
893 PACKAGE_URL
894 PACKAGE_BUGREPORT
895 PACKAGE_STRING
896 PACKAGE_VERSION
897 PACKAGE_TARNAME
898 PACKAGE_NAME
899 PATH_SEPARATOR
900 SHELL'
901 ac_subst_files=''
902 ac_user_opts='
903 enable_option_checking
904 with_c_compiler
905 with_cxx_compiler
906 enable_libpng_config
907 with_toolchain
908 enable_lto
909 enable_build_type
910 enable_debug
911 enable_distcc
912 enable_ccache
913 with_kernel_gcc_version
914 with_optimization
915 with_paranoia
916 enable_target_variant
917 with_xcode
918 with_sdk_version
919 with_sdk
920 with_ndk
921 with_ndk_version
922 with_apk_version
923 enable_amigaos_compliance
924 with_kernel_toolchain_prefix
925 with_elf_toolchain_prefix
926 with_aros_toolchain
927 enable_crosstools
928 with_aros_toolchain_install
929 with_binutils_version
930 with_gcc_version
931 enable_objc
932 enable_java
933 with_cpu
934 with_fpu
935 with_float
936 with_portssources
937 with_bootloader
938 with_iconset
939 with_theme
940 enable_includes
941 with_resolution
942 with_serial_debug
943 enable_palm_debug_hack
944 enable_usb30_code
945 enable_nesting_supervisor
946 enable_mmu
947 enable_x11_hidd
948 with_x
949 enable_x11_shm
950 enable_x11_vidmode
951 enable_sdl_hidd
952 with_sdl_prefix
953 with_sdl_exec_prefix
954 enable_sdltest
955 enable_dbus
957 ac_precious_vars='build_alias
958 host_alias
959 target_alias
961 CXXFLAGS
962 LDFLAGS
963 LIBS
964 CPPFLAGS
967 CFLAGS
969 PYTHON
970 XMKMF'
973 # Initialize some variables set by options.
974 ac_init_help=
975 ac_init_version=false
976 ac_unrecognized_opts=
977 ac_unrecognized_sep=
978 # The variables have the same names as the options, with
979 # dashes changed to underlines.
980 cache_file=/dev/null
981 exec_prefix=NONE
982 no_create=
983 no_recursion=
984 prefix=NONE
985 program_prefix=NONE
986 program_suffix=NONE
987 program_transform_name=s,x,x,
988 silent=
989 site=
990 srcdir=
991 verbose=
992 x_includes=NONE
993 x_libraries=NONE
995 # Installation directory options.
996 # These are left unexpanded so users can "make install exec_prefix=/foo"
997 # and all the variables that are supposed to be based on exec_prefix
998 # by default will actually change.
999 # Use braces instead of parens because sh, perl, etc. also accept them.
1000 # (The list follows the same order as the GNU Coding Standards.)
1001 bindir='${exec_prefix}/bin'
1002 sbindir='${exec_prefix}/sbin'
1003 libexecdir='${exec_prefix}/libexec'
1004 datarootdir='${prefix}/share'
1005 datadir='${datarootdir}'
1006 sysconfdir='${prefix}/etc'
1007 sharedstatedir='${prefix}/com'
1008 localstatedir='${prefix}/var'
1009 includedir='${prefix}/include'
1010 oldincludedir='/usr/include'
1011 docdir='${datarootdir}/doc/${PACKAGE}'
1012 infodir='${datarootdir}/info'
1013 htmldir='${docdir}'
1014 dvidir='${docdir}'
1015 pdfdir='${docdir}'
1016 psdir='${docdir}'
1017 libdir='${exec_prefix}/lib'
1018 localedir='${datarootdir}/locale'
1019 mandir='${datarootdir}/man'
1021 ac_prev=
1022 ac_dashdash=
1023 for ac_option
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
1027 eval $ac_prev=\$ac_option
1028 ac_prev=
1029 continue
1032 case $ac_option in
1033 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 *=) ac_optarg= ;;
1035 *) ac_optarg=yes ;;
1036 esac
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1042 ac_dashdash=yes ;;
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 ac_prev=bindir ;;
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1064 -datadir | --datadir | --datadi | --datad)
1065 ac_prev=datadir ;;
1066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067 datadir=$ac_optarg ;;
1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1076 -disable-* | --disable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=no ;;
1092 -docdir | --docdir | --docdi | --doc | --do)
1093 ac_prev=docdir ;;
1094 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1095 docdir=$ac_optarg ;;
1097 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1098 ac_prev=dvidir ;;
1099 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1100 dvidir=$ac_optarg ;;
1102 -enable-* | --enable-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error $? "invalid feature name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval enable_$ac_useropt=\$ac_optarg ;;
1118 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1119 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1120 | --exec | --exe | --ex)
1121 ac_prev=exec_prefix ;;
1122 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1123 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1124 | --exec=* | --exe=* | --ex=*)
1125 exec_prefix=$ac_optarg ;;
1127 -gas | --gas | --ga | --g)
1128 # Obsolete; use --with-gas.
1129 with_gas=yes ;;
1131 -help | --help | --hel | --he | -h)
1132 ac_init_help=long ;;
1133 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1134 ac_init_help=recursive ;;
1135 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1136 ac_init_help=short ;;
1138 -host | --host | --hos | --ho)
1139 ac_prev=host_alias ;;
1140 -host=* | --host=* | --hos=* | --ho=*)
1141 host_alias=$ac_optarg ;;
1143 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1144 ac_prev=htmldir ;;
1145 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1146 | --ht=*)
1147 htmldir=$ac_optarg ;;
1149 -includedir | --includedir | --includedi | --included | --include \
1150 | --includ | --inclu | --incl | --inc)
1151 ac_prev=includedir ;;
1152 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1153 | --includ=* | --inclu=* | --incl=* | --inc=*)
1154 includedir=$ac_optarg ;;
1156 -infodir | --infodir | --infodi | --infod | --info | --inf)
1157 ac_prev=infodir ;;
1158 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1159 infodir=$ac_optarg ;;
1161 -libdir | --libdir | --libdi | --libd)
1162 ac_prev=libdir ;;
1163 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1164 libdir=$ac_optarg ;;
1166 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1167 | --libexe | --libex | --libe)
1168 ac_prev=libexecdir ;;
1169 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1170 | --libexe=* | --libex=* | --libe=*)
1171 libexecdir=$ac_optarg ;;
1173 -localedir | --localedir | --localedi | --localed | --locale)
1174 ac_prev=localedir ;;
1175 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1176 localedir=$ac_optarg ;;
1178 -localstatedir | --localstatedir | --localstatedi | --localstated \
1179 | --localstate | --localstat | --localsta | --localst | --locals)
1180 ac_prev=localstatedir ;;
1181 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1182 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1183 localstatedir=$ac_optarg ;;
1185 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1186 ac_prev=mandir ;;
1187 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1188 mandir=$ac_optarg ;;
1190 -nfp | --nfp | --nf)
1191 # Obsolete; use --without-fp.
1192 with_fp=no ;;
1194 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1195 | --no-cr | --no-c | -n)
1196 no_create=yes ;;
1198 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1199 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1200 no_recursion=yes ;;
1202 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1203 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1204 | --oldin | --oldi | --old | --ol | --o)
1205 ac_prev=oldincludedir ;;
1206 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1207 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1208 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1209 oldincludedir=$ac_optarg ;;
1211 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1212 ac_prev=prefix ;;
1213 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1214 prefix=$ac_optarg ;;
1216 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1217 | --program-pre | --program-pr | --program-p)
1218 ac_prev=program_prefix ;;
1219 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1220 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1221 program_prefix=$ac_optarg ;;
1223 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1224 | --program-suf | --program-su | --program-s)
1225 ac_prev=program_suffix ;;
1226 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1227 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1228 program_suffix=$ac_optarg ;;
1230 -program-transform-name | --program-transform-name \
1231 | --program-transform-nam | --program-transform-na \
1232 | --program-transform-n | --program-transform- \
1233 | --program-transform | --program-transfor \
1234 | --program-transfo | --program-transf \
1235 | --program-trans | --program-tran \
1236 | --progr-tra | --program-tr | --program-t)
1237 ac_prev=program_transform_name ;;
1238 -program-transform-name=* | --program-transform-name=* \
1239 | --program-transform-nam=* | --program-transform-na=* \
1240 | --program-transform-n=* | --program-transform-=* \
1241 | --program-transform=* | --program-transfor=* \
1242 | --program-transfo=* | --program-transf=* \
1243 | --program-trans=* | --program-tran=* \
1244 | --progr-tra=* | --program-tr=* | --program-t=*)
1245 program_transform_name=$ac_optarg ;;
1247 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1248 ac_prev=pdfdir ;;
1249 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1250 pdfdir=$ac_optarg ;;
1252 -psdir | --psdir | --psdi | --psd | --ps)
1253 ac_prev=psdir ;;
1254 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1255 psdir=$ac_optarg ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1259 silent=yes ;;
1261 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1262 ac_prev=sbindir ;;
1263 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1264 | --sbi=* | --sb=*)
1265 sbindir=$ac_optarg ;;
1267 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1268 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1269 | --sharedst | --shareds | --shared | --share | --shar \
1270 | --sha | --sh)
1271 ac_prev=sharedstatedir ;;
1272 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1273 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1274 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1275 | --sha=* | --sh=*)
1276 sharedstatedir=$ac_optarg ;;
1278 -site | --site | --sit)
1279 ac_prev=site ;;
1280 -site=* | --site=* | --sit=*)
1281 site=$ac_optarg ;;
1283 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1284 ac_prev=srcdir ;;
1285 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1286 srcdir=$ac_optarg ;;
1288 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1289 | --syscon | --sysco | --sysc | --sys | --sy)
1290 ac_prev=sysconfdir ;;
1291 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1292 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1293 sysconfdir=$ac_optarg ;;
1295 -target | --target | --targe | --targ | --tar | --ta | --t)
1296 ac_prev=target_alias ;;
1297 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1298 target_alias=$ac_optarg ;;
1300 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1301 verbose=yes ;;
1303 -version | --version | --versio | --versi | --vers | -V)
1304 ac_init_version=: ;;
1306 -with-* | --with-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error $? "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1315 "with_$ac_useropt"
1316 "*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval with_$ac_useropt=\$ac_optarg ;;
1322 -without-* | --without-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error $? "invalid package name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1331 "with_$ac_useropt"
1332 "*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval with_$ac_useropt=no ;;
1338 --x)
1339 # Obsolete; use --with-x.
1340 with_x=yes ;;
1342 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343 | --x-incl | --x-inc | --x-in | --x-i)
1344 ac_prev=x_includes ;;
1345 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347 x_includes=$ac_optarg ;;
1349 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351 ac_prev=x_libraries ;;
1352 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354 x_libraries=$ac_optarg ;;
1356 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1357 Try \`$0 --help' for more information"
1360 *=*)
1361 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 case $ac_envvar in #(
1364 '' | [0-9]* | *[!_$as_cr_alnum]* )
1365 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1366 esac
1367 eval $ac_envvar=\$ac_optarg
1368 export $ac_envvar ;;
1371 # FIXME: should be removed in autoconf 3.0.
1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1378 esac
1379 done
1381 if test -n "$ac_prev"; then
1382 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383 as_fn_error $? "missing argument to $ac_option"
1386 if test -n "$ac_unrecognized_opts"; then
1387 case $enable_option_checking in
1388 no) ;;
1389 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1390 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391 esac
1394 # Check all directory arguments for consistency.
1395 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396 datadir sysconfdir sharedstatedir localstatedir includedir \
1397 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398 libdir localedir mandir
1400 eval ac_val=\$$ac_var
1401 # Remove trailing slashes.
1402 case $ac_val in
1403 */ )
1404 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405 eval $ac_var=\$ac_val;;
1406 esac
1407 # Be sure to have absolute directory names.
1408 case $ac_val in
1409 [\\/$]* | ?:[\\/]* ) continue;;
1410 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1411 esac
1412 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1413 done
1415 # There might be people who depend on the old broken behavior: `$host'
1416 # used to hold the argument of --host etc.
1417 # FIXME: To remove some day.
1418 build=$build_alias
1419 host=$host_alias
1420 target=$target_alias
1422 # FIXME: To remove some day.
1423 if test "x$host_alias" != x; then
1424 if test "x$build_alias" = x; then
1425 cross_compiling=maybe
1426 elif test "x$build_alias" != "x$host_alias"; then
1427 cross_compiling=yes
1431 ac_tool_prefix=
1432 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1434 test "$silent" = yes && exec 6>/dev/null
1437 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1438 ac_ls_di=`ls -di .` &&
1439 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1440 as_fn_error $? "working directory cannot be determined"
1441 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1442 as_fn_error $? "pwd does not report name of working directory"
1445 # Find the source files, if location was not specified.
1446 if test -z "$srcdir"; then
1447 ac_srcdir_defaulted=yes
1448 # Try the directory containing this script, then the parent directory.
1449 ac_confdir=`$as_dirname -- "$as_myself" ||
1450 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1451 X"$as_myself" : 'X\(//\)[^/]' \| \
1452 X"$as_myself" : 'X\(//\)$' \| \
1453 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1454 $as_echo X"$as_myself" |
1455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1456 s//\1/
1459 /^X\(\/\/\)[^/].*/{
1460 s//\1/
1463 /^X\(\/\/\)$/{
1464 s//\1/
1467 /^X\(\/\).*/{
1468 s//\1/
1471 s/.*/./; q'`
1472 srcdir=$ac_confdir
1473 if test ! -r "$srcdir/$ac_unique_file"; then
1474 srcdir=..
1476 else
1477 ac_srcdir_defaulted=no
1479 if test ! -r "$srcdir/$ac_unique_file"; then
1480 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1481 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1483 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1484 ac_abs_confdir=`(
1485 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1486 pwd)`
1487 # When building in place, set srcdir=.
1488 if test "$ac_abs_confdir" = "$ac_pwd"; then
1489 srcdir=.
1491 # Remove unnecessary trailing slashes from srcdir.
1492 # Double slashes in file names in object file debugging info
1493 # mess up M-x gdb in Emacs.
1494 case $srcdir in
1495 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1496 esac
1497 for ac_var in $ac_precious_vars; do
1498 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1499 eval ac_env_${ac_var}_value=\$${ac_var}
1500 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1502 done
1505 # Report the --help message.
1507 if test "$ac_init_help" = "long"; then
1508 # Omit some internal or obsolete options to make the list less imposing.
1509 # This message is too long to be a string in the A/UX 3.1 sh.
1510 cat <<_ACEOF
1511 \`configure' configures this package to adapt to many kinds of systems.
1513 Usage: $0 [OPTION]... [VAR=VALUE]...
1515 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1516 VAR=VALUE. See below for descriptions of some of the useful variables.
1518 Defaults for the options are specified in brackets.
1520 Configuration:
1521 -h, --help display this help and exit
1522 --help=short display options specific to this package
1523 --help=recursive display the short help of all the included packages
1524 -V, --version display version information and exit
1525 -q, --quiet, --silent do not print \`checking ...' messages
1526 --cache-file=FILE cache test results in FILE [disabled]
1527 -C, --config-cache alias for \`--cache-file=config.cache'
1528 -n, --no-create do not create output files
1529 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1531 Installation directories:
1532 --prefix=PREFIX install architecture-independent files in PREFIX
1533 [$ac_default_prefix]
1534 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1535 [PREFIX]
1537 By default, \`make install' will install all the files in
1538 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1539 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1540 for instance \`--prefix=\$HOME'.
1542 For better control, use the options below.
1544 Fine tuning of the installation directories:
1545 --bindir=DIR user executables [EPREFIX/bin]
1546 --sbindir=DIR system admin executables [EPREFIX/sbin]
1547 --libexecdir=DIR program executables [EPREFIX/libexec]
1548 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1549 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1550 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1551 --libdir=DIR object code libraries [EPREFIX/lib]
1552 --includedir=DIR C header files [PREFIX/include]
1553 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1554 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1555 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1556 --infodir=DIR info documentation [DATAROOTDIR/info]
1557 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1558 --mandir=DIR man documentation [DATAROOTDIR/man]
1559 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1560 --htmldir=DIR html documentation [DOCDIR]
1561 --dvidir=DIR dvi documentation [DOCDIR]
1562 --pdfdir=DIR pdf documentation [DOCDIR]
1563 --psdir=DIR ps documentation [DOCDIR]
1564 _ACEOF
1566 cat <<\_ACEOF
1568 X features:
1569 --x-includes=DIR X include files are in DIR
1570 --x-libraries=DIR X library files are in DIR
1572 System types:
1573 --build=BUILD configure for building on BUILD [guessed]
1574 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1575 _ACEOF
1578 if test -n "$ac_init_help"; then
1580 cat <<\_ACEOF
1582 Optional Features:
1583 --disable-option-checking ignore unrecognized --enable/--with options
1584 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1585 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1586 --disable-libpng-config disable libpng-config test and configuration
1587 --enable-lto=yes|no Enable link time optimizations if the target
1588 compiler supports them (default=no)
1589 --enable-build-type=TYPE
1590 Select the build type. Available types are:
1591 personal, nightly, snapshot, milestone, release. Do
1592 NOT use this option unless you know what you are
1593 doing! (default=personal)
1594 --enable-debug=list Enable different types of debug. Commas or
1595 whitespaces can be used to separate the items in the
1596 list. Available types of debug are: all, none,
1597 messages, stack, mungwall, modules, symbols. If no
1598 list is provided then "all" is assumed.
1599 (default=none)
1600 --enable-distcc Use distcc as a front end to the compiler
1601 (default=no).
1602 --enable-ccache Use ccache as a front end to the compiler
1603 (default=no).
1604 --enable-target-variant=NAME
1605 Enable a specific target variant (default=none)
1606 --enable-amigaos-compliance=VERSION
1607 Enforce userspace AmigaOS compliance to a specific
1608 KickStart version (default=none).
1609 --disable-crosstools Do not build cross-compiler toolchain
1610 --enable-objc Enable Objectve-C support (default=no)
1611 --enable-java Enable Java support (default=no)
1612 --enable-includes=dir Alternative system include directory
1613 --enable-palm-debug-hack
1614 Enable palm debug output hack in palm native
1615 (default=no)
1616 --enable-usb30-code Enable usb3.0 code (default=no)
1617 --enable-nesting-supervisor
1618 Enable nesting supervisor support in unix
1619 (default=no)
1620 --disable-mmu Disable MMU support (default=enabled)
1621 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1622 --enable-x11-shm use X11 shared memory (default=auto)
1623 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1624 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1625 --disable-sdltest Do not try to compile and run a test SDL program
1626 --enable-dbus Enable DBUS support via dbus.library (default=no)
1628 Optional Packages:
1629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1631 --with-c-compiler=VERSION
1632 Use specified c compiler for building AROS
1633 --with-cxx-compiler=VERSION
1634 Use specified c++ compiler building AROS
1635 --with-toolchain=family Which toolchain family to crosscompile with
1636 (defaults to gnu)
1637 --with-kernel-gcc-version=VERSION
1638 Use gcc-VERSION for building bootstrap
1639 --with-optimization=FLAGS
1640 Use optimization flags FLAGS (default=-O2).
1641 --with-paranoia=(yes|no|FLAGS)
1642 Specific compiler warning FLAGS to enable for
1643 paranoia builds (default=-Wall -Werror)
1644 --with-xcode=PATH Specify XCode path for iOS targets
1645 (default=/Developer).
1646 --with-sdk-version=VERSION
1647 Use iOS SDK version VERSION (default=4.1).
1648 --with-sdk=PATH Specify Android SDK path
1649 (default=$default_android_sdk).
1650 --with-ndk=PATH Specify Android NDK path (default=none).
1651 --with-sdk-version=LEVEL
1652 Use Android SDK for API LEVEL (default=12).
1653 --with-ndk-version=LEVEL
1654 Use Android NDK for API LEVEL (default=9).
1655 --with-apk-version=(release|debug)
1656 Which version of AROSBootstrap.apk to compile.
1657 Release version needs key for signing, debug version
1658 will only run in emulator. (default=release)
1659 --with-kernel-toolchain-prefix=...
1660 Specify crosscompile toolchain prefix for kernel
1661 objects
1662 --with-elf-toolchain-prefix=...
1663 Specify crosscompile toolchain prefix to wrap for
1664 AROS objects
1665 --with-aros-toolchain=PREFIX
1666 Specify prebuilt AROS toolchain. Use yes for default
1667 name
1668 --with-aros-toolchain-install=DIR
1669 Where to install or search for cross tools binaries
1670 --with-binutils-version=VERSION
1671 Use binutils-VERSION for building AROS
1672 --with-gcc-version=VERSION
1673 Compile gcc-VERSION for AROS
1674 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1675 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1676 --with-float=<spec> Specify floating point ABI
1677 (default=$gcc_default_float_abi).
1678 --with-portssources=DIR Where to download sourcecode for external ports
1679 --with-bootloader=NAME Use a specific bootloader
1680 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1681 --with-theme=NAME Use a specific GUI Theme
1682 --with-resolution=XRESxYRESxDEPTH
1683 Default resolution of the initial WorkbenchScreen
1684 --with-serial-debug Enable serial debug output in native (default=no)
1685 --with-x use the X Window System
1686 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1687 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1689 Some influential environment variables:
1690 CXX C++ compiler command
1691 CXXFLAGS C++ compiler flags
1692 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1693 nonstandard directory <lib dir>
1694 LIBS libraries to pass to the linker, e.g. -l<library>
1695 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1696 you have headers in a nonstandard directory <include dir>
1697 CC C compiler command
1698 CFLAGS C compiler flags
1699 CPP C preprocessor
1700 PYTHON the Python interpreter
1701 XMKMF Path to xmkmf, Makefile generator for X Window System
1703 Use these variables to override the choices made by `configure' or to help
1704 it to find libraries and programs with nonstandard names/locations.
1706 Report bugs to the package provider.
1707 _ACEOF
1708 ac_status=$?
1711 if test "$ac_init_help" = "recursive"; then
1712 # If there are subdirs, report their specific --help.
1713 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1714 test -d "$ac_dir" ||
1715 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1716 continue
1717 ac_builddir=.
1719 case "$ac_dir" in
1720 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1723 # A ".." for each directory in $ac_dir_suffix.
1724 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1725 case $ac_top_builddir_sub in
1726 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1728 esac ;;
1729 esac
1730 ac_abs_top_builddir=$ac_pwd
1731 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1732 # for backward compatibility:
1733 ac_top_builddir=$ac_top_build_prefix
1735 case $srcdir in
1736 .) # We are building in place.
1737 ac_srcdir=.
1738 ac_top_srcdir=$ac_top_builddir_sub
1739 ac_abs_top_srcdir=$ac_pwd ;;
1740 [\\/]* | ?:[\\/]* ) # Absolute name.
1741 ac_srcdir=$srcdir$ac_dir_suffix;
1742 ac_top_srcdir=$srcdir
1743 ac_abs_top_srcdir=$srcdir ;;
1744 *) # Relative name.
1745 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1746 ac_top_srcdir=$ac_top_build_prefix$srcdir
1747 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1748 esac
1749 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1751 cd "$ac_dir" || { ac_status=$?; continue; }
1752 # Check for guested configure.
1753 if test -f "$ac_srcdir/configure.gnu"; then
1754 echo &&
1755 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1756 elif test -f "$ac_srcdir/configure"; then
1757 echo &&
1758 $SHELL "$ac_srcdir/configure" --help=recursive
1759 else
1760 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1761 fi || ac_status=$?
1762 cd "$ac_pwd" || { ac_status=$?; break; }
1763 done
1766 test -n "$ac_init_help" && exit $ac_status
1767 if $ac_init_version; then
1768 cat <<\_ACEOF
1769 configure
1770 generated by GNU Autoconf 2.69
1772 Copyright (C) 2012 Free Software Foundation, Inc.
1773 This configure script is free software; the Free Software Foundation
1774 gives unlimited permission to copy, distribute and modify it.
1775 _ACEOF
1776 exit
1779 ## ------------------------ ##
1780 ## Autoconf initialization. ##
1781 ## ------------------------ ##
1783 # ac_fn_cxx_try_compile LINENO
1784 # ----------------------------
1785 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_cxx_try_compile ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext
1790 if { { ac_try="$ac_compile"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_compile") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_cxx_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest.$ac_objext; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1814 ac_retval=1
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1819 } # ac_fn_cxx_try_compile
1821 # ac_fn_c_try_compile LINENO
1822 # --------------------------
1823 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_compile ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext
1828 if { { ac_try="$ac_compile"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_compile") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest.$ac_objext; then :
1847 ac_retval=0
1848 else
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1852 ac_retval=1
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1857 } # ac_fn_c_try_compile
1859 # ac_fn_c_try_cpp LINENO
1860 # ----------------------
1861 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_c_try_cpp ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 if { { ac_try="$ac_cpp conftest.$ac_ext"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1873 ac_status=$?
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } > conftest.i && {
1881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1882 test ! -s conftest.err
1883 }; then :
1884 ac_retval=0
1885 else
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1889 ac_retval=1
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status $ac_retval
1894 } # ac_fn_c_try_cpp
1896 # ac_fn_c_try_link LINENO
1897 # -----------------------
1898 # Try to link conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_c_try_link ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 rm -f conftest.$ac_objext conftest$ac_exeext
1903 if { { ac_try="$ac_link"
1904 case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_link") 2>conftest.err
1911 ac_status=$?
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_c_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest$ac_exeext && {
1922 test "$cross_compiling" = yes ||
1923 test -x conftest$ac_exeext
1924 }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1930 ac_retval=1
1932 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1933 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1934 # interfere with the next link command; also delete a directory that is
1935 # left behind by Apple's compiler. We do this before executing the actions.
1936 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 as_fn_set_status $ac_retval
1940 } # ac_fn_c_try_link
1942 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1943 # -------------------------------------------------------
1944 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945 # the include files in INCLUDES and setting the cache variable VAR
1946 # accordingly.
1947 ac_fn_c_check_header_mongrel ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if eval \${$3+:} false; then :
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1956 eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 else
1960 # Is the header compilable?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962 $as_echo_n "checking $2 usability... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1966 #include <$2>
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969 ac_header_compiler=yes
1970 else
1971 ac_header_compiler=no
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975 $as_echo "$ac_header_compiler" >&6; }
1977 # Is the header present?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979 $as_echo_n "checking $2 presence... " >&6; }
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 #include <$2>
1983 _ACEOF
1984 if ac_fn_c_try_cpp "$LINENO"; then :
1985 ac_header_preproc=yes
1986 else
1987 ac_header_preproc=no
1989 rm -f conftest.err conftest.i conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991 $as_echo "$ac_header_preproc" >&6; }
1993 # So? What about this header?
1994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1995 yes:no: )
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001 no:yes:* )
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2005 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2009 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 esac
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 eval "$3=\$ac_header_compiler"
2021 eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 } # ac_fn_c_check_header_mongrel
2029 # ac_fn_c_try_run LINENO
2030 # ----------------------
2031 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2032 # that executables *can* be run.
2033 ac_fn_c_try_run ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if { { ac_try="$ac_link"
2037 case "(($ac_try" in
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2040 esac
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_link") 2>&5
2044 ac_status=$?
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2047 { { case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_try") 2>&5
2054 ac_status=$?
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; }; }; then :
2057 ac_retval=0
2058 else
2059 $as_echo "$as_me: program exited with status $ac_status" >&5
2060 $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2063 ac_retval=$ac_status
2065 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 as_fn_set_status $ac_retval
2069 } # ac_fn_c_try_run
2071 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2072 # -------------------------------------------------------
2073 # Tests whether HEADER exists and can be compiled using the include files in
2074 # INCLUDES, setting the cache variable VAR accordingly.
2075 ac_fn_c_check_header_compile ()
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if eval \${$3+:} false; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2086 #include <$2>
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 eval "$3=yes"
2090 else
2091 eval "$3=no"
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 $as_echo "$ac_res" >&6; }
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 } # ac_fn_c_check_header_compile
2102 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2103 # ----------------------------------------------------
2104 # Tries to find if the field MEMBER exists in type AGGR, after including
2105 # INCLUDES, setting cache variable VAR accordingly.
2106 ac_fn_c_check_member ()
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2110 $as_echo_n "checking for $2.$3... " >&6; }
2111 if eval \${$4+:} false; then :
2112 $as_echo_n "(cached) " >&6
2113 else
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2118 main ()
2120 static $2 ac_aggr;
2121 if (ac_aggr.$3)
2122 return 0;
2124 return 0;
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 eval "$4=yes"
2129 else
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2134 main ()
2136 static $2 ac_aggr;
2137 if (sizeof ac_aggr.$3)
2138 return 0;
2140 return 0;
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144 eval "$4=yes"
2145 else
2146 eval "$4=no"
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 eval ac_res=\$$4
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157 } # ac_fn_c_check_member
2159 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2160 # ---------------------------------------------
2161 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2162 # accordingly.
2163 ac_fn_c_check_decl ()
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 as_decl_name=`echo $2|sed 's/ *(.*//'`
2167 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2169 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2170 if eval \${$3+:} false; then :
2171 $as_echo_n "(cached) " >&6
2172 else
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2177 main ()
2179 #ifndef $as_decl_name
2180 #ifdef __cplusplus
2181 (void) $as_decl_use;
2182 #else
2183 (void) $as_decl_name;
2184 #endif
2185 #endif
2188 return 0;
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192 eval "$3=yes"
2193 else
2194 eval "$3=no"
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 eval ac_res=\$$3
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203 } # ac_fn_c_check_decl
2205 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2206 # -------------------------------------------
2207 # Tests whether TYPE exists after having included INCLUDES, setting cache
2208 # variable VAR accordingly.
2209 ac_fn_c_check_type ()
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213 $as_echo_n "checking for $2... " >&6; }
2214 if eval \${$3+:} false; then :
2215 $as_echo_n "(cached) " >&6
2216 else
2217 eval "$3=no"
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2222 main ()
2224 if (sizeof ($2))
2225 return 0;
2227 return 0;
2229 _ACEOF
2230 if ac_fn_c_try_compile "$LINENO"; then :
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2235 main ()
2237 if (sizeof (($2)))
2238 return 0;
2240 return 0;
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2245 else
2246 eval "$3=yes"
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 eval ac_res=\$$3
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 } # ac_fn_c_check_type
2259 # ac_fn_c_check_func LINENO FUNC VAR
2260 # ----------------------------------
2261 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2262 ac_fn_c_check_func ()
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2266 $as_echo_n "checking for $2... " >&6; }
2267 if eval \${$3+:} false; then :
2268 $as_echo_n "(cached) " >&6
2269 else
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2272 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2274 #define $2 innocuous_$2
2276 /* System header to define __stub macros and hopefully few prototypes,
2277 which can conflict with char $2 (); below.
2278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2279 <limits.h> exists even on freestanding compilers. */
2281 #ifdef __STDC__
2282 # include <limits.h>
2283 #else
2284 # include <assert.h>
2285 #endif
2287 #undef $2
2289 /* Override any GCC internal prototype to avoid an error.
2290 Use char because int might match the return type of a GCC
2291 builtin and then its argument prototype would still apply. */
2292 #ifdef __cplusplus
2293 extern "C"
2294 #endif
2295 char $2 ();
2296 /* The GNU C library defines this for functions which it implements
2297 to always fail with ENOSYS. Some functions are actually named
2298 something starting with __ and the normal name is an alias. */
2299 #if defined __stub_$2 || defined __stub___$2
2300 choke me
2301 #endif
2304 main ()
2306 return $2 ();
2308 return 0;
2310 _ACEOF
2311 if ac_fn_c_try_link "$LINENO"; then :
2312 eval "$3=yes"
2313 else
2314 eval "$3=no"
2316 rm -f core conftest.err conftest.$ac_objext \
2317 conftest$ac_exeext conftest.$ac_ext
2319 eval ac_res=\$$3
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321 $as_echo "$ac_res" >&6; }
2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2324 } # ac_fn_c_check_func
2325 cat >config.log <<_ACEOF
2326 This file contains any messages produced by compilers while
2327 running configure, to aid debugging if configure makes a mistake.
2329 It was created by $as_me, which was
2330 generated by GNU Autoconf 2.69. Invocation command line was
2332 $ $0 $@
2334 _ACEOF
2335 exec 5>>config.log
2337 cat <<_ASUNAME
2338 ## --------- ##
2339 ## Platform. ##
2340 ## --------- ##
2342 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2343 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2344 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2345 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2346 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2348 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2349 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2351 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2352 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2353 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2354 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2355 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2356 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2357 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2359 _ASUNAME
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 $as_echo "PATH: $as_dir"
2367 done
2368 IFS=$as_save_IFS
2370 } >&5
2372 cat >&5 <<_ACEOF
2375 ## ----------- ##
2376 ## Core tests. ##
2377 ## ----------- ##
2379 _ACEOF
2382 # Keep a trace of the command line.
2383 # Strip out --no-create and --no-recursion so they do not pile up.
2384 # Strip out --silent because we don't want to record it for future runs.
2385 # Also quote any args containing shell meta-characters.
2386 # Make two passes to allow for proper duplicate-argument suppression.
2387 ac_configure_args=
2388 ac_configure_args0=
2389 ac_configure_args1=
2390 ac_must_keep_next=false
2391 for ac_pass in 1 2
2393 for ac_arg
2395 case $ac_arg in
2396 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2398 | -silent | --silent | --silen | --sile | --sil)
2399 continue ;;
2400 *\'*)
2401 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2402 esac
2403 case $ac_pass in
2404 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2406 as_fn_append ac_configure_args1 " '$ac_arg'"
2407 if test $ac_must_keep_next = true; then
2408 ac_must_keep_next=false # Got value, back to normal.
2409 else
2410 case $ac_arg in
2411 *=* | --config-cache | -C | -disable-* | --disable-* \
2412 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2413 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2414 | -with-* | --with-* | -without-* | --without-* | --x)
2415 case "$ac_configure_args0 " in
2416 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2417 esac
2419 -* ) ac_must_keep_next=true ;;
2420 esac
2422 as_fn_append ac_configure_args " '$ac_arg'"
2424 esac
2425 done
2426 done
2427 { ac_configure_args0=; unset ac_configure_args0;}
2428 { ac_configure_args1=; unset ac_configure_args1;}
2430 # When interrupted or exit'd, cleanup temporary files, and complete
2431 # config.log. We remove comments because anyway the quotes in there
2432 # would cause problems or look ugly.
2433 # WARNING: Use '\'' to represent an apostrophe within the trap.
2434 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2435 trap 'exit_status=$?
2436 # Save into config.log some information that might help in debugging.
2438 echo
2440 $as_echo "## ---------------- ##
2441 ## Cache variables. ##
2442 ## ---------------- ##"
2443 echo
2444 # The following way of writing the cache mishandles newlines in values,
2446 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2447 eval ac_val=\$$ac_var
2448 case $ac_val in #(
2449 *${as_nl}*)
2450 case $ac_var in #(
2451 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2452 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2453 esac
2454 case $ac_var in #(
2455 _ | IFS | as_nl) ;; #(
2456 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2457 *) { eval $ac_var=; unset $ac_var;} ;;
2458 esac ;;
2459 esac
2460 done
2461 (set) 2>&1 |
2462 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2463 *${as_nl}ac_space=\ *)
2464 sed -n \
2465 "s/'\''/'\''\\\\'\'''\''/g;
2466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2467 ;; #(
2469 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2471 esac |
2472 sort
2474 echo
2476 $as_echo "## ----------------- ##
2477 ## Output variables. ##
2478 ## ----------------- ##"
2479 echo
2480 for ac_var in $ac_subst_vars
2482 eval ac_val=\$$ac_var
2483 case $ac_val in
2484 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2485 esac
2486 $as_echo "$ac_var='\''$ac_val'\''"
2487 done | sort
2488 echo
2490 if test -n "$ac_subst_files"; then
2491 $as_echo "## ------------------- ##
2492 ## File substitutions. ##
2493 ## ------------------- ##"
2494 echo
2495 for ac_var in $ac_subst_files
2497 eval ac_val=\$$ac_var
2498 case $ac_val in
2499 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2500 esac
2501 $as_echo "$ac_var='\''$ac_val'\''"
2502 done | sort
2503 echo
2506 if test -s confdefs.h; then
2507 $as_echo "## ----------- ##
2508 ## confdefs.h. ##
2509 ## ----------- ##"
2510 echo
2511 cat confdefs.h
2512 echo
2514 test "$ac_signal" != 0 &&
2515 $as_echo "$as_me: caught signal $ac_signal"
2516 $as_echo "$as_me: exit $exit_status"
2517 } >&5
2518 rm -f core *.core core.conftest.* &&
2519 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2520 exit $exit_status
2522 for ac_signal in 1 2 13 15; do
2523 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2524 done
2525 ac_signal=0
2527 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2528 rm -f -r conftest* confdefs.h
2530 $as_echo "/* confdefs.h */" > confdefs.h
2532 # Predefined preprocessor variables.
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE_NAME "$PACKAGE_NAME"
2536 _ACEOF
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2540 _ACEOF
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2544 _ACEOF
2546 cat >>confdefs.h <<_ACEOF
2547 #define PACKAGE_STRING "$PACKAGE_STRING"
2548 _ACEOF
2550 cat >>confdefs.h <<_ACEOF
2551 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2552 _ACEOF
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE_URL "$PACKAGE_URL"
2556 _ACEOF
2559 # Let the site file select an alternate cache file if it wants to.
2560 # Prefer an explicitly selected file to automatically selected ones.
2561 ac_site_file1=NONE
2562 ac_site_file2=NONE
2563 if test -n "$CONFIG_SITE"; then
2564 # We do not want a PATH search for config.site.
2565 case $CONFIG_SITE in #((
2566 -*) ac_site_file1=./$CONFIG_SITE;;
2567 */*) ac_site_file1=$CONFIG_SITE;;
2568 *) ac_site_file1=./$CONFIG_SITE;;
2569 esac
2570 elif test "x$prefix" != xNONE; then
2571 ac_site_file1=$prefix/share/config.site
2572 ac_site_file2=$prefix/etc/config.site
2573 else
2574 ac_site_file1=$ac_default_prefix/share/config.site
2575 ac_site_file2=$ac_default_prefix/etc/config.site
2577 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2579 test "x$ac_site_file" = xNONE && continue
2580 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2582 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2583 sed 's/^/| /' "$ac_site_file" >&5
2584 . "$ac_site_file" \
2585 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2587 as_fn_error $? "failed to load site script $ac_site_file
2588 See \`config.log' for more details" "$LINENO" 5; }
2590 done
2592 if test -r "$cache_file"; then
2593 # Some versions of bash will fail to source /dev/null (special files
2594 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2595 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2597 $as_echo "$as_me: loading cache $cache_file" >&6;}
2598 case $cache_file in
2599 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2600 *) . "./$cache_file";;
2601 esac
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2605 $as_echo "$as_me: creating cache $cache_file" >&6;}
2606 >$cache_file
2609 as_fn_append ac_header_list " stdlib.h"
2610 as_fn_append ac_header_list " unistd.h"
2611 as_fn_append ac_header_list " sys/param.h"
2612 # Check that the precious variables saved in the cache have kept the same
2613 # value.
2614 ac_cache_corrupted=false
2615 for ac_var in $ac_precious_vars; do
2616 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2617 eval ac_new_set=\$ac_env_${ac_var}_set
2618 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2619 eval ac_new_val=\$ac_env_${ac_var}_value
2620 case $ac_old_set,$ac_new_set in
2621 set,)
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2623 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2624 ac_cache_corrupted=: ;;
2625 ,set)
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2627 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2628 ac_cache_corrupted=: ;;
2629 ,);;
2631 if test "x$ac_old_val" != "x$ac_new_val"; then
2632 # differences in whitespace do not lead to failure.
2633 ac_old_val_w=`echo x $ac_old_val`
2634 ac_new_val_w=`echo x $ac_new_val`
2635 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2637 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2638 ac_cache_corrupted=:
2639 else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2641 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2642 eval $ac_var=\$ac_old_val
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2645 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2647 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2648 fi;;
2649 esac
2650 # Pass precious variables to config.status.
2651 if test "$ac_new_set" = set; then
2652 case $ac_new_val in
2653 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2654 *) ac_arg=$ac_var=$ac_new_val ;;
2655 esac
2656 case " $ac_configure_args " in
2657 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2658 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2659 esac
2661 done
2662 if $ac_cache_corrupted; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2666 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2667 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2669 ## -------------------- ##
2670 ## Main body of script. ##
2671 ## -------------------- ##
2673 ac_ext=c
2674 ac_cpp='$CPP $CPPFLAGS'
2675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681 ac_aux_dir=
2682 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2683 if test -f "$ac_dir/install-sh"; then
2684 ac_aux_dir=$ac_dir
2685 ac_install_sh="$ac_aux_dir/install-sh -c"
2686 break
2687 elif test -f "$ac_dir/install.sh"; then
2688 ac_aux_dir=$ac_dir
2689 ac_install_sh="$ac_aux_dir/install.sh -c"
2690 break
2691 elif test -f "$ac_dir/shtool"; then
2692 ac_aux_dir=$ac_dir
2693 ac_install_sh="$ac_aux_dir/shtool install -c"
2694 break
2696 done
2697 if test -z "$ac_aux_dir"; then
2698 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2701 # These three variables are undocumented and unsupported,
2702 # and are intended to be withdrawn in a future Autoconf release.
2703 # They can cause serious problems if a builder's source tree is in a directory
2704 # whose full name contains unusual characters.
2705 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2706 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2707 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2711 # Check what host we are running on.
2712 # If a target is not suggested, we use this one.
2713 # Note that what we call a target, Autoconf calls a host.
2714 # Make sure we can run config.sub.
2715 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2716 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2719 $as_echo_n "checking build system type... " >&6; }
2720 if ${ac_cv_build+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 ac_build_alias=$build_alias
2724 test "x$ac_build_alias" = x &&
2725 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2726 test "x$ac_build_alias" = x &&
2727 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2728 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2729 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2733 $as_echo "$ac_cv_build" >&6; }
2734 case $ac_cv_build in
2735 *-*-*) ;;
2736 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2737 esac
2738 build=$ac_cv_build
2739 ac_save_IFS=$IFS; IFS='-'
2740 set x $ac_cv_build
2741 shift
2742 build_cpu=$1
2743 build_vendor=$2
2744 shift; shift
2745 # Remember, the first character of IFS is used to create $*,
2746 # except with old shells:
2747 build_os=$*
2748 IFS=$ac_save_IFS
2749 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2753 $as_echo_n "checking host system type... " >&6; }
2754 if ${ac_cv_host+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test "x$host_alias" = x; then
2758 ac_cv_host=$ac_cv_build
2759 else
2760 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2766 $as_echo "$ac_cv_host" >&6; }
2767 case $ac_cv_host in
2768 *-*-*) ;;
2769 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2770 esac
2771 host=$ac_cv_host
2772 ac_save_IFS=$IFS; IFS='-'
2773 set x $ac_cv_host
2774 shift
2775 host_cpu=$1
2776 host_vendor=$2
2777 shift; shift
2778 # Remember, the first character of IFS is used to create $*,
2779 # except with old shells:
2780 host_os=$*
2781 IFS=$ac_save_IFS
2782 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2786 # Default versions for the gnu tools we build
2787 default_gcc_version="4.6.4"
2788 default_binutils_version="2.23.2"
2790 # The AROS target is slightly different to the normal GNU style
2791 # format. We don't have the middle part, and we reverse the order
2792 # of the $(CPU) and $(OS) bits.
2794 # Don't strip the version of the target yet, it might be
2795 # useful on some systems.
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2798 $as_echo_n "checking for AROS style target... " >&6; }
2800 if test "$target" = "NONE" ; then
2801 target=$host_os-$host_cpu
2802 else
2803 if test "$target" = "" ; then
2804 target=$host_os-$host_cpu
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2808 $as_echo "$target" >&6; }
2810 if test "$host_os" = "mingw32" ; then
2811 PWDCMD="pwd -W"
2814 # Don't know where else to put this...
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2816 $as_echo_n "checking building AROS in... " >&6; }
2817 AROS_BUILDDIR=`${PWDCMD-pwd}`
2818 AROS_BUILDDIR_UNIX=${PWD}
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2820 $as_echo "$AROS_BUILDDIR" >&6; }
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2823 $as_echo_n "checking AROS source in... " >&6; }
2824 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2825 SRCDIR=${srcpwd}
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2827 $as_echo "$SRCDIR" >&6; }
2829 # Parse the target field into something useful.
2831 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2832 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2835 # Some debug output, to be removed again.
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2837 $as_echo_n "checking for target system (debug output)... " >&6; }
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2839 $as_echo "$target_os" >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2841 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2843 $as_echo "$target_cpu" >&6; }
2845 aros_nominal_width=800
2846 aros_nominal_height=600
2847 aros_nominal_depth=4
2850 default_c_compilers="gcc clang cc"
2852 # Check whether --with-c-compiler was given.
2853 if test "${with_c_compiler+set}" = set; then :
2854 withval=$with_c_compiler; use_c_compiler="$withval"
2855 else
2856 use_c_compiler=""
2859 if test "$use_c_compiler" = ""; then
2860 host_c_compilers="$default_c_compilers"
2861 else
2862 host_c_compilers="$use_c_compiler"
2865 default_cxx_compilers="g++ clang++ c++"
2867 # Check whether --with-cxx-compiler was given.
2868 if test "${with_cxx_compiler+set}" = set; then :
2869 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2870 else
2871 use_cxx_compiler=""
2874 if test "$use_cxx_compiler" = ""; then
2875 host_cxx_compilers="$default_cxx_compilers"
2876 else
2877 host_cxx_compilers="$use_cxx_compiler"
2881 # The first step is to find the host binaries.
2882 # Check for a compiler.
2883 # Due to a bug in autoconf check for c++ compiler first.
2884 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2885 ac_ext=cpp
2886 ac_cpp='$CXXCPP $CPPFLAGS'
2887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2890 if test -z "$CXX"; then
2891 if test -n "$CCC"; then
2892 CXX=$CCC
2893 else
2894 if test -n "$ac_tool_prefix"; then
2895 for ac_prog in ${host_cxx_compilers}
2897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_CXX+:} false; then :
2902 $as_echo_n "(cached) " >&6
2903 else
2904 if test -n "$CXX"; then
2905 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 break 2
2918 done
2919 done
2920 IFS=$as_save_IFS
2924 CXX=$ac_cv_prog_CXX
2925 if test -n "$CXX"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2927 $as_echo "$CXX" >&6; }
2928 else
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2934 test -n "$CXX" && break
2935 done
2937 if test -z "$CXX"; then
2938 ac_ct_CXX=$CXX
2939 for ac_prog in ${host_cxx_compilers}
2941 # Extract the first word of "$ac_prog", so it can be a program name with args.
2942 set dummy $ac_prog; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 if test -n "$ac_ct_CXX"; then
2949 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_ac_ct_CXX="$ac_prog"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2962 done
2963 done
2964 IFS=$as_save_IFS
2968 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2969 if test -n "$ac_ct_CXX"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2971 $as_echo "$ac_ct_CXX" >&6; }
2972 else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2978 test -n "$ac_ct_CXX" && break
2979 done
2981 if test "x$ac_ct_CXX" = x; then
2982 CXX="g++"
2983 else
2984 case $cross_compiling:$ac_tool_warned in
2985 yes:)
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2988 ac_tool_warned=yes ;;
2989 esac
2990 CXX=$ac_ct_CXX
2996 # Provide some information about the compiler.
2997 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2998 set X $ac_compile
2999 ac_compiler=$2
3000 for ac_option in --version -v -V -qversion; do
3001 { { ac_try="$ac_compiler $ac_option >&5"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007 $as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3009 ac_status=$?
3010 if test -s conftest.err; then
3011 sed '10a\
3012 ... rest of stderr output deleted ...
3013 10q' conftest.err >conftest.er1
3014 cat conftest.er1 >&5
3016 rm -f conftest.er1 conftest.err
3017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018 test $ac_status = 0; }
3019 done
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3025 main ()
3029 return 0;
3031 _ACEOF
3032 ac_clean_files_save=$ac_clean_files
3033 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3034 # Try to create an executable without -o first, disregard a.out.
3035 # It will help us diagnose broken compilers, and finding out an intuition
3036 # of exeext.
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3038 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3039 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3041 # The possible output files:
3042 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3044 ac_rmfiles=
3045 for ac_file in $ac_files
3047 case $ac_file in
3048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3049 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3050 esac
3051 done
3052 rm -f $ac_rmfiles
3054 if { { ac_try="$ac_link_default"
3055 case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058 esac
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_link_default") 2>&5
3062 ac_status=$?
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }; then :
3065 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3066 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3067 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3068 # so that the user can short-circuit this test for compilers unknown to
3069 # Autoconf.
3070 for ac_file in $ac_files ''
3072 test -f "$ac_file" || continue
3073 case $ac_file in
3074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3076 [ab].out )
3077 # We found the default executable, but exeext='' is most
3078 # certainly right.
3079 break;;
3080 *.* )
3081 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3082 then :; else
3083 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3085 # We set ac_cv_exeext here because the later test for it is not
3086 # safe: cross compilers may not add the suffix if given an `-o'
3087 # argument, so we may need to know it at that point already.
3088 # Even if this section looks crufty: it has the advantage of
3089 # actually working.
3090 break;;
3092 break;;
3093 esac
3094 done
3095 test "$ac_cv_exeext" = no && ac_cv_exeext=
3097 else
3098 ac_file=''
3100 if test -z "$ac_file"; then :
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3103 $as_echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 as_fn_error 77 "C++ compiler cannot create executables
3109 See \`config.log' for more details" "$LINENO" 5; }
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112 $as_echo "yes" >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3115 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3117 $as_echo "$ac_file" >&6; }
3118 ac_exeext=$ac_cv_exeext
3120 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3121 ac_clean_files=$ac_clean_files_save
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3123 $as_echo_n "checking for suffix of executables... " >&6; }
3124 if { { ac_try="$ac_link"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_link") 2>&5
3132 ac_status=$?
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }; then :
3135 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3136 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3137 # work properly (i.e., refer to `conftest.exe'), while it won't with
3138 # `rm'.
3139 for ac_file in conftest.exe conftest conftest.*; do
3140 test -f "$ac_file" || continue
3141 case $ac_file in
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144 break;;
3145 * ) break;;
3146 esac
3147 done
3148 else
3149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3152 See \`config.log' for more details" "$LINENO" 5; }
3154 rm -f conftest conftest$ac_cv_exeext
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3156 $as_echo "$ac_cv_exeext" >&6; }
3158 rm -f conftest.$ac_ext
3159 EXEEXT=$ac_cv_exeext
3160 ac_exeext=$EXEEXT
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3163 #include <stdio.h>
3165 main ()
3167 FILE *f = fopen ("conftest.out", "w");
3168 return ferror (f) || fclose (f) != 0;
3171 return 0;
3173 _ACEOF
3174 ac_clean_files="$ac_clean_files conftest.out"
3175 # Check that the compiler produces executables we can run. If not, either
3176 # the compiler is broken, or we cross compile.
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3178 $as_echo_n "checking whether we are cross compiling... " >&6; }
3179 if test "$cross_compiling" != yes; then
3180 { { ac_try="$ac_link"
3181 case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184 esac
3185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186 $as_echo "$ac_try_echo"; } >&5
3187 (eval "$ac_link") 2>&5
3188 ac_status=$?
3189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190 test $ac_status = 0; }
3191 if { ac_try='./conftest$ac_cv_exeext'
3192 { { case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198 (eval "$ac_try") 2>&5
3199 ac_status=$?
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }; }; then
3202 cross_compiling=no
3203 else
3204 if test "$cross_compiling" = maybe; then
3205 cross_compiling=yes
3206 else
3207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3209 as_fn_error $? "cannot run C++ compiled programs.
3210 If you meant to cross compile, use \`--host'.
3211 See \`config.log' for more details" "$LINENO" 5; }
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3216 $as_echo "$cross_compiling" >&6; }
3218 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3219 ac_clean_files=$ac_clean_files_save
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3221 $as_echo_n "checking for suffix of object files... " >&6; }
3222 if ${ac_cv_objext+:} false; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3229 main ()
3233 return 0;
3235 _ACEOF
3236 rm -f conftest.o conftest.obj
3237 if { { ac_try="$ac_compile"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243 $as_echo "$ac_try_echo"; } >&5
3244 (eval "$ac_compile") 2>&5
3245 ac_status=$?
3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247 test $ac_status = 0; }; then :
3248 for ac_file in conftest.o conftest.obj conftest.*; do
3249 test -f "$ac_file" || continue;
3250 case $ac_file in
3251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3252 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3253 break;;
3254 esac
3255 done
3256 else
3257 $as_echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error $? "cannot compute suffix of object files: cannot compile
3263 See \`config.log' for more details" "$LINENO" 5; }
3265 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3268 $as_echo "$ac_cv_objext" >&6; }
3269 OBJEXT=$ac_cv_objext
3270 ac_objext=$OBJEXT
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3272 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3273 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3280 main ()
3282 #ifndef __GNUC__
3283 choke me
3284 #endif
3287 return 0;
3289 _ACEOF
3290 if ac_fn_cxx_try_compile "$LINENO"; then :
3291 ac_compiler_gnu=yes
3292 else
3293 ac_compiler_gnu=no
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3300 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3301 if test $ac_compiler_gnu = yes; then
3302 GXX=yes
3303 else
3304 GXX=
3306 ac_test_CXXFLAGS=${CXXFLAGS+set}
3307 ac_save_CXXFLAGS=$CXXFLAGS
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3309 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3310 if ${ac_cv_prog_cxx_g+:} false; then :
3311 $as_echo_n "(cached) " >&6
3312 else
3313 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3314 ac_cxx_werror_flag=yes
3315 ac_cv_prog_cxx_g=no
3316 CXXFLAGS="-g"
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3321 main ()
3325 return 0;
3327 _ACEOF
3328 if ac_fn_cxx_try_compile "$LINENO"; then :
3329 ac_cv_prog_cxx_g=yes
3330 else
3331 CXXFLAGS=""
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3336 main ()
3340 return 0;
3342 _ACEOF
3343 if ac_fn_cxx_try_compile "$LINENO"; then :
3345 else
3346 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3347 CXXFLAGS="-g"
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3352 main ()
3356 return 0;
3358 _ACEOF
3359 if ac_fn_cxx_try_compile "$LINENO"; then :
3360 ac_cv_prog_cxx_g=yes
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3370 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3371 if test "$ac_test_CXXFLAGS" = set; then
3372 CXXFLAGS=$ac_save_CXXFLAGS
3373 elif test $ac_cv_prog_cxx_g = yes; then
3374 if test "$GXX" = yes; then
3375 CXXFLAGS="-g -O2"
3376 else
3377 CXXFLAGS="-g"
3379 else
3380 if test "$GXX" = yes; then
3381 CXXFLAGS="-O2"
3382 else
3383 CXXFLAGS=
3386 ac_ext=c
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 ac_ext=c
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 if test -n "$ac_tool_prefix"; then
3398 for ac_prog in ${host_c_compilers}
3400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if ${ac_cv_prog_CC+:} false; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 if test -n "$CC"; then
3408 ac_cv_prog_CC="$CC" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 2
3421 done
3422 done
3423 IFS=$as_save_IFS
3427 CC=$ac_cv_prog_CC
3428 if test -n "$CC"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3430 $as_echo "$CC" >&6; }
3431 else
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3437 test -n "$CC" && break
3438 done
3440 if test -z "$CC"; then
3441 ac_ct_CC=$CC
3442 for ac_prog in ${host_c_compilers}
3444 # Extract the first word of "$ac_prog", so it can be a program name with args.
3445 set dummy $ac_prog; ac_word=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 if test -n "$ac_ct_CC"; then
3452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3453 else
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 for as_dir in $PATH
3457 IFS=$as_save_IFS
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3461 ac_cv_prog_ac_ct_CC="$ac_prog"
3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 break 2
3465 done
3466 done
3467 IFS=$as_save_IFS
3471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472 if test -n "$ac_ct_CC"; then
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3474 $as_echo "$ac_ct_CC" >&6; }
3475 else
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3481 test -n "$ac_ct_CC" && break
3482 done
3484 if test "x$ac_ct_CC" = x; then
3485 CC=""
3486 else
3487 case $cross_compiling:$ac_tool_warned in
3488 yes:)
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3491 ac_tool_warned=yes ;;
3492 esac
3493 CC=$ac_ct_CC
3498 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error $? "no acceptable C compiler found in \$PATH
3501 See \`config.log' for more details" "$LINENO" 5; }
3503 # Provide some information about the compiler.
3504 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3505 set X $ac_compile
3506 ac_compiler=$2
3507 for ac_option in --version -v -V -qversion; do
3508 { { ac_try="$ac_compiler $ac_option >&5"
3509 case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512 esac
3513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514 $as_echo "$ac_try_echo"; } >&5
3515 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3516 ac_status=$?
3517 if test -s conftest.err; then
3518 sed '10a\
3519 ... rest of stderr output deleted ...
3520 10q' conftest.err >conftest.er1
3521 cat conftest.er1 >&5
3523 rm -f conftest.er1 conftest.err
3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525 test $ac_status = 0; }
3526 done
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3529 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3530 if ${ac_cv_c_compiler_gnu+:} false; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3537 main ()
3539 #ifndef __GNUC__
3540 choke me
3541 #endif
3544 return 0;
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548 ac_compiler_gnu=yes
3549 else
3550 ac_compiler_gnu=no
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3557 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3558 if test $ac_compiler_gnu = yes; then
3559 GCC=yes
3560 else
3561 GCC=
3563 ac_test_CFLAGS=${CFLAGS+set}
3564 ac_save_CFLAGS=$CFLAGS
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3566 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3567 if ${ac_cv_prog_cc_g+:} false; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 ac_save_c_werror_flag=$ac_c_werror_flag
3571 ac_c_werror_flag=yes
3572 ac_cv_prog_cc_g=no
3573 CFLAGS="-g"
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3578 main ()
3582 return 0;
3584 _ACEOF
3585 if ac_fn_c_try_compile "$LINENO"; then :
3586 ac_cv_prog_cc_g=yes
3587 else
3588 CFLAGS=""
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3593 main ()
3597 return 0;
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3602 else
3603 ac_c_werror_flag=$ac_save_c_werror_flag
3604 CFLAGS="-g"
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3609 main ()
3613 return 0;
3615 _ACEOF
3616 if ac_fn_c_try_compile "$LINENO"; then :
3617 ac_cv_prog_cc_g=yes
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_c_werror_flag=$ac_save_c_werror_flag
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3627 $as_echo "$ac_cv_prog_cc_g" >&6; }
3628 if test "$ac_test_CFLAGS" = set; then
3629 CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631 if test "$GCC" = yes; then
3632 CFLAGS="-g -O2"
3633 else
3634 CFLAGS="-g"
3636 else
3637 if test "$GCC" = yes; then
3638 CFLAGS="-O2"
3639 else
3640 CFLAGS=
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3644 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3645 if ${ac_cv_prog_cc_c89+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 ac_cv_prog_cc_c89=no
3649 ac_save_CC=$CC
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3652 #include <stdarg.h>
3653 #include <stdio.h>
3654 struct stat;
3655 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3656 struct buf { int x; };
3657 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3658 static char *e (p, i)
3659 char **p;
3660 int i;
3662 return p[i];
3664 static char *f (char * (*g) (char **, int), char **p, ...)
3666 char *s;
3667 va_list v;
3668 va_start (v,p);
3669 s = g (p, va_arg (v,int));
3670 va_end (v);
3671 return s;
3674 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3675 function prototypes and stuff, but not '\xHH' hex character constants.
3676 These don't provoke an error unfortunately, instead are silently treated
3677 as 'x'. The following induces an error, until -std is added to get
3678 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3679 array size at least. It's necessary to write '\x00'==0 to get something
3680 that's true only with -std. */
3681 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3683 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3684 inside strings and character constants. */
3685 #define FOO(x) 'x'
3686 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3688 int test (int i, double x);
3689 struct s1 {int (*f) (int a);};
3690 struct s2 {int (*f) (double a);};
3691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692 int argc;
3693 char **argv;
3695 main ()
3697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3699 return 0;
3701 _ACEOF
3702 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3703 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3705 CC="$ac_save_CC $ac_arg"
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_prog_cc_c89=$ac_arg
3709 rm -f core conftest.err conftest.$ac_objext
3710 test "x$ac_cv_prog_cc_c89" != "xno" && break
3711 done
3712 rm -f conftest.$ac_ext
3713 CC=$ac_save_CC
3716 # AC_CACHE_VAL
3717 case "x$ac_cv_prog_cc_c89" in
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3720 $as_echo "none needed" >&6; } ;;
3721 xno)
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3723 $as_echo "unsupported" >&6; } ;;
3725 CC="$CC $ac_cv_prog_cc_c89"
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3727 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3728 esac
3729 if test "x$ac_cv_prog_cc_c89" != xno; then :
3733 ac_ext=c
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739 aros_host_def_cc="$CC"
3740 case $ac_cv_prog_cc_stdc in #(
3741 no) :
3742 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3743 *) :
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3745 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3746 if ${ac_cv_prog_cc_c99+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 ac_cv_prog_cc_c99=no
3750 ac_save_CC=$CC
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3753 #include <stdarg.h>
3754 #include <stdbool.h>
3755 #include <stdlib.h>
3756 #include <wchar.h>
3757 #include <stdio.h>
3759 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3760 #define debug(...) fprintf (stderr, __VA_ARGS__)
3761 #define showlist(...) puts (#__VA_ARGS__)
3762 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3763 static void
3764 test_varargs_macros (void)
3766 int x = 1234;
3767 int y = 5678;
3768 debug ("Flag");
3769 debug ("X = %d\n", x);
3770 showlist (The first, second, and third items.);
3771 report (x>y, "x is %d but y is %d", x, y);
3774 // Check long long types.
3775 #define BIG64 18446744073709551615ull
3776 #define BIG32 4294967295ul
3777 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3778 #if !BIG_OK
3779 your preprocessor is broken;
3780 #endif
3781 #if BIG_OK
3782 #else
3783 your preprocessor is broken;
3784 #endif
3785 static long long int bignum = -9223372036854775807LL;
3786 static unsigned long long int ubignum = BIG64;
3788 struct incomplete_array
3790 int datasize;
3791 double data[];
3794 struct named_init {
3795 int number;
3796 const wchar_t *name;
3797 double average;
3800 typedef const char *ccp;
3802 static inline int
3803 test_restrict (ccp restrict text)
3805 // See if C++-style comments work.
3806 // Iterate through items via the restricted pointer.
3807 // Also check for declarations in for loops.
3808 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3809 continue;
3810 return 0;
3813 // Check varargs and va_copy.
3814 static void
3815 test_varargs (const char *format, ...)
3817 va_list args;
3818 va_start (args, format);
3819 va_list args_copy;
3820 va_copy (args_copy, args);
3822 const char *str;
3823 int number;
3824 float fnumber;
3826 while (*format)
3828 switch (*format++)
3830 case 's': // string
3831 str = va_arg (args_copy, const char *);
3832 break;
3833 case 'd': // int
3834 number = va_arg (args_copy, int);
3835 break;
3836 case 'f': // float
3837 fnumber = va_arg (args_copy, double);
3838 break;
3839 default:
3840 break;
3843 va_end (args_copy);
3844 va_end (args);
3848 main ()
3851 // Check bool.
3852 _Bool success = false;
3854 // Check restrict.
3855 if (test_restrict ("String literal") == 0)
3856 success = true;
3857 char *restrict newvar = "Another string";
3859 // Check varargs.
3860 test_varargs ("s, d' f .", "string", 65, 34.234);
3861 test_varargs_macros ();
3863 // Check flexible array members.
3864 struct incomplete_array *ia =
3865 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3866 ia->datasize = 10;
3867 for (int i = 0; i < ia->datasize; ++i)
3868 ia->data[i] = i * 1.234;
3870 // Check named initializers.
3871 struct named_init ni = {
3872 .number = 34,
3873 .name = L"Test wide string",
3874 .average = 543.34343,
3877 ni.number = 58;
3879 int dynamic_array[ni.number];
3880 dynamic_array[ni.number - 1] = 543;
3882 // work around unused variable warnings
3883 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3884 || dynamic_array[ni.number - 1] != 543);
3887 return 0;
3889 _ACEOF
3890 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3892 CC="$ac_save_CC $ac_arg"
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_cv_prog_cc_c99=$ac_arg
3896 rm -f core conftest.err conftest.$ac_objext
3897 test "x$ac_cv_prog_cc_c99" != "xno" && break
3898 done
3899 rm -f conftest.$ac_ext
3900 CC=$ac_save_CC
3903 # AC_CACHE_VAL
3904 case "x$ac_cv_prog_cc_c99" in
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3907 $as_echo "none needed" >&6; } ;;
3908 xno)
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3910 $as_echo "unsupported" >&6; } ;;
3912 CC="$CC $ac_cv_prog_cc_c99"
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3914 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3915 esac
3916 if test "x$ac_cv_prog_cc_c99" != xno; then :
3917 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3918 else
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3920 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3921 if ${ac_cv_prog_cc_c89+:} false; then :
3922 $as_echo_n "(cached) " >&6
3923 else
3924 ac_cv_prog_cc_c89=no
3925 ac_save_CC=$CC
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3928 #include <stdarg.h>
3929 #include <stdio.h>
3930 struct stat;
3931 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3932 struct buf { int x; };
3933 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3934 static char *e (p, i)
3935 char **p;
3936 int i;
3938 return p[i];
3940 static char *f (char * (*g) (char **, int), char **p, ...)
3942 char *s;
3943 va_list v;
3944 va_start (v,p);
3945 s = g (p, va_arg (v,int));
3946 va_end (v);
3947 return s;
3950 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3951 function prototypes and stuff, but not '\xHH' hex character constants.
3952 These don't provoke an error unfortunately, instead are silently treated
3953 as 'x'. The following induces an error, until -std is added to get
3954 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3955 array size at least. It's necessary to write '\x00'==0 to get something
3956 that's true only with -std. */
3957 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3959 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3960 inside strings and character constants. */
3961 #define FOO(x) 'x'
3962 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3964 int test (int i, double x);
3965 struct s1 {int (*f) (int a);};
3966 struct s2 {int (*f) (double a);};
3967 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3968 int argc;
3969 char **argv;
3971 main ()
3973 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3975 return 0;
3977 _ACEOF
3978 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3979 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3981 CC="$ac_save_CC $ac_arg"
3982 if ac_fn_c_try_compile "$LINENO"; then :
3983 ac_cv_prog_cc_c89=$ac_arg
3985 rm -f core conftest.err conftest.$ac_objext
3986 test "x$ac_cv_prog_cc_c89" != "xno" && break
3987 done
3988 rm -f conftest.$ac_ext
3989 CC=$ac_save_CC
3992 # AC_CACHE_VAL
3993 case "x$ac_cv_prog_cc_c89" in
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3996 $as_echo "none needed" >&6; } ;;
3997 xno)
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3999 $as_echo "unsupported" >&6; } ;;
4001 CC="$CC $ac_cv_prog_cc_c89"
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4003 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4004 esac
4005 if test "x$ac_cv_prog_cc_c89" != xno; then :
4006 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4007 else
4008 ac_cv_prog_cc_stdc=no
4013 esac
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4015 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4016 if ${ac_cv_prog_cc_stdc+:} false; then :
4017 $as_echo_n "(cached) " >&6
4020 case $ac_cv_prog_cc_stdc in #(
4021 no) :
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4023 $as_echo "unsupported" >&6; } ;; #(
4024 '') :
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4026 $as_echo "none needed" >&6; } ;; #(
4027 *) :
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4029 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4030 esac
4032 ac_ext=c
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4038 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4039 # On Suns, sometimes $CPP names a directory.
4040 if test -n "$CPP" && test -d "$CPP"; then
4041 CPP=
4043 if test -z "$CPP"; then
4044 if ${ac_cv_prog_CPP+:} false; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 # Double quotes because CPP needs to be expanded
4048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4050 ac_preproc_ok=false
4051 for ac_c_preproc_warn_flag in '' yes
4053 # Use a header file that comes with gcc, so configuring glibc
4054 # with a fresh cross-compiler works.
4055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4056 # <limits.h> exists even on freestanding compilers.
4057 # On the NeXT, cc -E runs the code through the compiler's parser,
4058 # not just through cpp. "Syntax error" is here to catch this case.
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #ifdef __STDC__
4062 # include <limits.h>
4063 #else
4064 # include <assert.h>
4065 #endif
4066 Syntax error
4067 _ACEOF
4068 if ac_fn_c_try_cpp "$LINENO"; then :
4070 else
4071 # Broken: fails on valid input.
4072 continue
4074 rm -f conftest.err conftest.i conftest.$ac_ext
4076 # OK, works on sane cases. Now check whether nonexistent headers
4077 # can be detected and how.
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #include <ac_nonexistent.h>
4081 _ACEOF
4082 if ac_fn_c_try_cpp "$LINENO"; then :
4083 # Broken: success on invalid input.
4084 continue
4085 else
4086 # Passes both tests.
4087 ac_preproc_ok=:
4088 break
4090 rm -f conftest.err conftest.i conftest.$ac_ext
4092 done
4093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4094 rm -f conftest.i conftest.err conftest.$ac_ext
4095 if $ac_preproc_ok; then :
4096 break
4099 done
4100 ac_cv_prog_CPP=$CPP
4103 CPP=$ac_cv_prog_CPP
4104 else
4105 ac_cv_prog_CPP=$CPP
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4108 $as_echo "$CPP" >&6; }
4109 ac_preproc_ok=false
4110 for ac_c_preproc_warn_flag in '' yes
4112 # Use a header file that comes with gcc, so configuring glibc
4113 # with a fresh cross-compiler works.
4114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4115 # <limits.h> exists even on freestanding compilers.
4116 # On the NeXT, cc -E runs the code through the compiler's parser,
4117 # not just through cpp. "Syntax error" is here to catch this case.
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120 #ifdef __STDC__
4121 # include <limits.h>
4122 #else
4123 # include <assert.h>
4124 #endif
4125 Syntax error
4126 _ACEOF
4127 if ac_fn_c_try_cpp "$LINENO"; then :
4129 else
4130 # Broken: fails on valid input.
4131 continue
4133 rm -f conftest.err conftest.i conftest.$ac_ext
4135 # OK, works on sane cases. Now check whether nonexistent headers
4136 # can be detected and how.
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139 #include <ac_nonexistent.h>
4140 _ACEOF
4141 if ac_fn_c_try_cpp "$LINENO"; then :
4142 # Broken: success on invalid input.
4143 continue
4144 else
4145 # Passes both tests.
4146 ac_preproc_ok=:
4147 break
4149 rm -f conftest.err conftest.i conftest.$ac_ext
4151 done
4152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4153 rm -f conftest.i conftest.err conftest.$ac_ext
4154 if $ac_preproc_ok; then :
4156 else
4157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4159 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4160 See \`config.log' for more details" "$LINENO" 5; }
4163 ac_ext=c
4164 ac_cpp='$CPP $CPPFLAGS'
4165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170 # Check for a compatible awk
4171 for ac_prog in gawk nawk
4173 # Extract the first word of "$ac_prog", so it can be a program name with args.
4174 set dummy $ac_prog; ac_word=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if ${ac_cv_prog_AWK+:} false; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4180 if test -n "$AWK"; then
4181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4182 else
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4190 ac_cv_prog_AWK="$ac_prog"
4191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 break 2
4194 done
4195 done
4196 IFS=$as_save_IFS
4200 AWK=$ac_cv_prog_AWK
4201 if test -n "$AWK"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4203 $as_echo "$AWK" >&6; }
4204 else
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4210 test -n "$AWK" && break
4211 done
4213 req_avail=yes
4214 if test "$AWK" = ""; then
4215 req_avail=no
4217 if test "$AWK" = "no"; then
4218 req_avail=no
4220 if test "$req_avail" = "no"; then
4221 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4223 # Extract the first word of "mmake", so it can be a program name with args.
4224 set dummy mmake; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if ${ac_cv_prog_MMAKE+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test -n "$MMAKE"; then
4231 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 ac_cv_prog_MMAKE="mmake "
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4244 done
4245 done
4246 IFS=$as_save_IFS
4250 MMAKE=$ac_cv_prog_MMAKE
4251 if test -n "$MMAKE"; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4253 $as_echo "$MMAKE" >&6; }
4254 else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4261 # Perform some default variable assignments. Note all of these will be
4262 # Regenerated from the script, so there is no need to cache them.
4264 aros_build_host=$host
4265 aros_host_cpp="$CPP"
4266 aros_host_cc="$CC"
4267 aros_host_cxx="$CXX"
4268 if test "$GCC" = "yes"; then
4269 aros_gcc_ld=`$CC -print-prog-name=ld`
4270 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4271 set dummy `basename $aros_gcc_ld`; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_path_aros_host_ld+:} false; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 case $aros_host_ld in
4278 [\\/]* | ?:[\\/]*)
4279 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in `dirname $aros_gcc_ld`
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4293 done
4294 done
4295 IFS=$as_save_IFS
4298 esac
4300 aros_host_ld=$ac_cv_path_aros_host_ld
4301 if test -n "$aros_host_ld"; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4303 $as_echo "$aros_host_ld" >&6; }
4304 else
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4311 if test "$aros_host_ld" = ""; then
4312 # Extract the first word of "ld", so it can be a program name with args.
4313 set dummy ld; ac_word=$2
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 $as_echo_n "checking for $ac_word... " >&6; }
4316 if ${ac_cv_path_aros_host_ld+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 case $aros_host_ld in
4320 [\\/]* | ?:[\\/]*)
4321 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4335 done
4336 done
4337 IFS=$as_save_IFS
4340 esac
4342 aros_host_ld=$ac_cv_path_aros_host_ld
4343 if test -n "$aros_host_ld"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4345 $as_echo "$aros_host_ld" >&6; }
4346 else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4353 req_avail=yes
4354 if test "$aros_host_ld" = ""; then
4355 req_avail=no
4357 if test "$aros_host_ld" = "no"; then
4358 req_avail=no
4360 if test "$req_avail" = "no"; then
4361 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4363 aros_host_make="make"
4364 aros_host_cflags="$CFLAGS"
4365 aros_host_cxxflags="$CXXFLAGS"
4366 aros_host_ldflags="$LDFLAGS"
4367 aros_host_debug="-g -O0"
4368 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4369 aros_host_mkargs="--no-print-directory"
4370 aros_host_exe_suffix="$EXEEXT"
4371 aros_host_lib_suffix=""
4373 # Ignore all compliance, AROS ROMs = 0
4374 # KickStart v1.0 = 30
4375 # KickStart v1.3 = 34
4376 # KickStart v2.0 = 37
4377 # KickStart v3.0 = 39
4378 # KickStart v3.1 = 40
4379 # AmigaOS v3.5 = 44
4380 aros_amigaos_compliance=0
4382 for ac_prog in aclocal aclocal19 aclocal-1.9
4384 # Extract the first word of "$ac_prog", so it can be a program name with args.
4385 set dummy $ac_prog; ac_word=$2
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4389 $as_echo_n "(cached) " >&6
4390 else
4391 if test -n "$aros_host_aclocal"; then
4392 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4401 ac_cv_prog_aros_host_aclocal="$ac_prog"
4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4405 done
4406 done
4407 IFS=$as_save_IFS
4411 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4412 if test -n "$aros_host_aclocal"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4414 $as_echo "$aros_host_aclocal" >&6; }
4415 else
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4421 test -n "$aros_host_aclocal" && break
4422 done
4424 for ac_prog in autoconf autoconf259 autoconf253
4426 # Extract the first word of "$ac_prog", so it can be a program name with args.
4427 set dummy $ac_prog; ac_word=$2
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 if test -n "$aros_host_autoconf"; then
4434 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_prog_aros_host_autoconf="$ac_prog"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4447 done
4448 done
4449 IFS=$as_save_IFS
4453 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4454 if test -n "$aros_host_autoconf"; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4456 $as_echo "$aros_host_autoconf" >&6; }
4457 else
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4463 test -n "$aros_host_autoconf" && break
4464 done
4466 for ac_prog in autoheader autoheader259 autoheader253
4468 # Extract the first word of "$ac_prog", so it can be a program name with args.
4469 set dummy $ac_prog; ac_word=$2
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4471 $as_echo_n "checking for $ac_word... " >&6; }
4472 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 if test -n "$aros_host_autoheader"; then
4476 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_prog_aros_host_autoheader="$ac_prog"
4486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4489 done
4490 done
4491 IFS=$as_save_IFS
4495 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4496 if test -n "$aros_host_autoheader"; then
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4498 $as_echo "$aros_host_autoheader" >&6; }
4499 else
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501 $as_echo "no" >&6; }
4505 test -n "$aros_host_autoheader" && break
4506 done
4508 for ac_prog in automake automake19 automake-1.9
4510 # Extract the first word of "$ac_prog", so it can be a program name with args.
4511 set dummy $ac_prog; ac_word=$2
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if ${ac_cv_prog_aros_host_automake+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 if test -n "$aros_host_automake"; then
4518 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4519 else
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_prog_aros_host_automake="$ac_prog"
4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4531 done
4532 done
4533 IFS=$as_save_IFS
4537 aros_host_automake=$ac_cv_prog_aros_host_automake
4538 if test -n "$aros_host_automake"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4540 $as_echo "$aros_host_automake" >&6; }
4541 else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4547 test -n "$aros_host_automake" && break
4548 done
4551 req_avail=yes
4552 if test "$aros_host_aclocal" = ""; then
4553 req_avail=no
4555 if test "$aros_host_aclocal" = "no"; then
4556 req_avail=no
4558 if test "$req_avail" = "no"; then
4559 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4561 req_avail=yes
4562 if test "$aros_host_automake" = ""; then
4563 req_avail=no
4565 if test "$aros_host_automake" = "no"; then
4566 req_avail=no
4568 if test "$req_avail" = "no"; then
4569 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4572 case "$aros_host_cc" in
4573 *clang*)
4574 aros_host_cc_pipe=""
4576 *gcc*)
4577 aros_host_cc_pipe="-pipe"
4579 icc)
4580 aros_host_cc_pipe=""
4583 aros_host_cc_pipe=""
4585 esac
4587 aros_kernel_cc_includes=""
4588 aros_target_cc_includes=""
4589 host_cc_elf=yes
4591 # ----------------------------------------------------------------------------------------
4592 # Host-specific defaults
4594 # This is the main host configuration section. It is where the host
4595 # can change the values of any variables it needs to change. We do
4596 # not look at anything that compiles to the target yet, we'll get
4597 # to that later.
4599 case "$host_os" in
4600 aros*)
4601 aros_host_arch="aros"
4602 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4603 case "$host_cpu" in
4604 *i?86*)
4605 aros_host_cpu="i386"
4607 *x86_64*)
4608 aros_host_cpu="x86_64"
4610 *powerpc*)
4611 aros_host_cpu="ppc"
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4615 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4616 aros_host_cpu="$host_cpu"
4618 esac
4621 linux*)
4622 aros_host_arch="linux"
4623 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4624 android_build_os="linux-x86"
4625 android_tool="android"
4626 default_android_sdk="/opt/android-sdk-linux_x86"
4627 case "$host_cpu" in
4628 *i?86*)
4629 aros_host_cpu="i386"
4631 *x86_64*)
4632 aros_host_cpu="x86_64"
4634 *m68k*)
4635 aros_host_cpu="m68k"
4637 *powerpc*)
4638 aros_host_cpu="ppc"
4640 *arm*)
4641 aros_host_cpu="arm"
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4645 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4646 aros_host_cpu="$host_cpu"
4648 esac
4651 freebsd*)
4652 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4653 aros_host_make="gmake"
4654 aros_host_arch="freebsd"
4655 aros_host_cpu="i386"
4657 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4659 case $host_os in
4660 freebsd[234]*)
4661 aros_object_format="elf_i386"
4665 aros_object_format="elf_i386_fbsd"
4667 esac
4671 darwin*)
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/stddef.h" >&5
4673 $as_echo_n "checking for /usr/include/stddef.h... " >&6; }
4674 if ${ac_cv_file__usr_include_stddef_h+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 test "$cross_compiling" = yes &&
4678 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4679 if test -r "/usr/include/stddef.h"; then
4680 ac_cv_file__usr_include_stddef_h=yes
4681 else
4682 ac_cv_file__usr_include_stddef_h=no
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_stddef_h" >&5
4686 $as_echo "$ac_cv_file__usr_include_stddef_h" >&6; }
4687 if test "x$ac_cv_file__usr_include_stddef_h" = xyes; then :
4689 else
4690 as_fn_error $? "XCode incorrectly configured!
4691 please run 'xcode-select --install' before
4692 re-running configure" "$LINENO" 5
4696 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4697 aros_host_arch="darwin"
4698 host_cc_elf=no
4699 if [ -z ${SED+x} ]; then SED="gsed"; fi
4700 android_build_os="darwin-x86"
4701 android_tool="android"
4702 default_android_sdk="/android-sdk-mac_x86"
4703 case "$host_cpu" in
4704 *i?86*)
4705 aros_host_cpu="i386"
4707 *x86_64*)
4708 aros_host_cpu="x86_64"
4710 *powerpc*)
4711 aros_host_cpu="ppc"
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4715 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4716 aros_host_cpu="$host_cpu"
4718 esac
4720 aros_host_ldflags="$aros_host_ldflags -liconv"
4724 dragonfly*)
4725 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4726 aros_host_make="gmake"
4727 aros_host_arch="dragonfly"
4728 case $host_cpu in
4729 *i?86*)
4730 aros_host_cpu="i386"
4732 *amd64*)
4733 aros_host_cpu="x86_64"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4737 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4738 aros_host_cpu="$host_cpu"
4740 esac
4743 netbsd*)
4744 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4745 aros_host_make="gmake"
4746 aros_host_arch="netbsd"
4747 case "$host_cpu" in
4748 *i?86*)
4749 aros_host_cpu="i386"
4751 *m68k*)
4752 aros_host_cpu="m68k"
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4756 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4757 aros_host_cpu="$host_cpu"
4759 esac
4760 aros_host_lib_suffix=".0.0"
4763 openbsd*)
4764 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4765 aros_host_make="gmake"
4766 aros_host_arch="openbsd"
4767 case "$host_cpu" in
4768 *i?86*)
4769 aros_host_cpu="i386"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4773 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4774 aros_host_cpu="$host_cpu"
4776 esac
4779 solaris*)
4780 aros_host_arch="solaris"
4781 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4782 case "$host_cpu" in
4783 *i?86*)
4784 aros_host_cpu="i386"
4786 *sparc*)
4787 aros_host_cpu="sparc"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4791 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4792 aros_host_cpu="$host_cpu"
4794 esac
4797 morphos*)
4798 aros_host_arch="morphos"
4799 aros_host_cpu="ppc"
4800 host_cc_elf=no
4803 amiga*)
4804 aros_host_arch="amiga"
4805 host_cc_elf=no
4806 SORT="/gg/bin/sort"
4807 TEST="/gg/bin/test"
4808 UNIQ="/gg/bin/uniq"
4809 FOR="for"
4810 TOUCH="/gg/bin/touch"
4811 case "$host_cpu" in
4812 *m68k*)
4813 aros_host_cpu="m68k"
4815 *powerpc*)
4816 aros_host_cpu="ppc"
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4820 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4821 aros_host_cpu="$host_cpu"
4823 esac
4826 cygwin*)
4827 aros_host_arch="cygwin"
4828 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4829 host_cc_elf=no
4830 android_build_os="windows"
4831 android_tool="android.bat"
4832 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4834 case "$host_cpu" in
4835 *i?86*)
4836 aros_host_cpu="i386"
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4840 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4841 aros_host_cpu="$host_cpu"
4843 esac
4846 mingw32*)
4847 aros_host_arch="mingw32"
4848 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4849 host_cc_elf=no
4850 android_build_os="windows"
4851 android_tool="android.bat"
4852 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4854 libpng_libextra="-lws2_32"
4856 case "$host_cpu" in
4857 *i?86*)
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4860 $as_echo_n "checking for Windows native gcc target... " >&6; }
4861 host_cpu=`gcc -dumpmachine`
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4863 $as_echo "$host_cpu" >&6; }
4866 esac
4868 case "$host_cpu" in
4869 *i?86*)
4870 aros_host_cpu="i386"
4873 mingw32*)
4874 aros_host_cpu="i386"
4877 *x86_64*)
4878 aros_host_cpu="x86_64"
4879 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4884 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4885 aros_host_cpu="$host_cpu"
4887 esac
4890 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4892 esac
4894 # Extract the first word of "ar", so it can be a program name with args.
4895 set dummy ar; ac_word=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if ${ac_cv_prog_aros_host_ar+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 if test -n "$aros_host_ar"; then
4902 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4911 ac_cv_prog_aros_host_ar="ar cr"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 break 2
4915 done
4916 done
4917 IFS=$as_save_IFS
4921 aros_host_ar=$ac_cv_prog_aros_host_ar
4922 if test -n "$aros_host_ar"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4924 $as_echo "$aros_host_ar" >&6; }
4925 else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4931 req_avail=yes
4932 if test "$aros_host_ar" = ""; then
4933 req_avail=no
4935 if test "$aros_host_ar" = "no"; then
4936 req_avail=no
4938 if test "$req_avail" = "no"; then
4939 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4941 # Extract the first word of "ranlib", so it can be a program name with args.
4942 set dummy ranlib; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 if test -n "$aros_host_ranlib"; then
4949 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_aros_host_ranlib="ranlib "
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4962 done
4963 done
4964 IFS=$as_save_IFS
4968 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4969 if test -n "$aros_host_ranlib"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4971 $as_echo "$aros_host_ranlib" >&6; }
4972 else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4978 req_avail=yes
4979 if test "$aros_host_ranlib" = ""; then
4980 req_avail=no
4982 if test "$aros_host_ranlib" = "no"; then
4983 req_avail=no
4985 if test "$req_avail" = "no"; then
4986 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4988 # Extract the first word of "strip", so it can be a program name with args.
4989 set dummy strip; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_prog_aros_host_strip+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 if test -n "$aros_host_strip"; then
4996 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5005 ac_cv_prog_aros_host_strip="strip "
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5009 done
5010 done
5011 IFS=$as_save_IFS
5015 aros_host_strip=$ac_cv_prog_aros_host_strip
5016 if test -n "$aros_host_strip"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5018 $as_echo "$aros_host_strip" >&6; }
5019 else
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5025 req_avail=yes
5026 if test "$aros_host_strip" = ""; then
5027 req_avail=no
5029 if test "$aros_host_strip" = "no"; then
5030 req_avail=no
5032 if test "$req_avail" = "no"; then
5033 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5036 # Extract the first word of "rm", so it can be a program name with args.
5037 set dummy rm; ac_word=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if ${ac_cv_prog_RM+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 if test -n "$RM"; then
5044 ac_cv_prog_RM="$RM" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053 ac_cv_prog_RM="rm -rf"
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5057 done
5058 done
5059 IFS=$as_save_IFS
5063 RM=$ac_cv_prog_RM
5064 if test -n "$RM"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5066 $as_echo "$RM" >&6; }
5067 else
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5073 req_avail=yes
5074 if test "$RM" = ""; then
5075 req_avail=no
5077 if test "$RM" = "no"; then
5078 req_avail=no
5080 if test "$req_avail" = "no"; then
5081 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5083 # Extract the first word of "cp", so it can be a program name with args.
5084 set dummy cp; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_CP+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 if test -n "$CP"; then
5091 ac_cv_prog_CP="$CP" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_prog_CP="cp "
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5104 done
5105 done
5106 IFS=$as_save_IFS
5110 CP=$ac_cv_prog_CP
5111 if test -n "$CP"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5113 $as_echo "$CP" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5120 req_avail=yes
5121 if test "$CP" = ""; then
5122 req_avail=no
5124 if test "$CP" = "no"; then
5125 req_avail=no
5127 if test "$req_avail" = "no"; then
5128 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5130 # Extract the first word of "mv", so it can be a program name with args.
5131 set dummy mv; ac_word=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if ${ac_cv_prog_MV+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 if test -n "$MV"; then
5138 ac_cv_prog_MV="$MV" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5147 ac_cv_prog_MV="mv "
5148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5151 done
5152 done
5153 IFS=$as_save_IFS
5157 MV=$ac_cv_prog_MV
5158 if test -n "$MV"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5160 $as_echo "$MV" >&6; }
5161 else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5167 req_avail=yes
5168 if test "$MV" = ""; then
5169 req_avail=no
5171 if test "$MV" = "no"; then
5172 req_avail=no
5174 if test "$req_avail" = "no"; then
5175 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5177 # Extract the first word of "echo", so it can be a program name with args.
5178 set dummy echo; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if ${ac_cv_prog_ECHO+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 if test -n "$ECHO"; then
5185 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5186 else
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194 ac_cv_prog_ECHO="echo "
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5198 done
5199 done
5200 IFS=$as_save_IFS
5204 ECHO=$ac_cv_prog_ECHO
5205 if test -n "$ECHO"; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5207 $as_echo "$ECHO" >&6; }
5208 else
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }
5214 req_avail=yes
5215 if test "$ECHO" = ""; then
5216 req_avail=no
5218 if test "$ECHO" = "no"; then
5219 req_avail=no
5221 if test "$req_avail" = "no"; then
5222 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5224 # Extract the first word of "mkdir", so it can be a program name with args.
5225 set dummy mkdir; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_MKDIR+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -n "$MKDIR"; then
5232 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_MKDIR="mkdir -p"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5245 done
5246 done
5247 IFS=$as_save_IFS
5251 MKDIR=$ac_cv_prog_MKDIR
5252 if test -n "$MKDIR"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5254 $as_echo "$MKDIR" >&6; }
5255 else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5261 req_avail=yes
5262 if test "$MKDIR" = ""; then
5263 req_avail=no
5265 if test "$MKDIR" = "no"; then
5266 req_avail=no
5268 if test "$req_avail" = "no"; then
5269 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5271 # Extract the first word of "touch", so it can be a program name with args.
5272 set dummy touch; ac_word=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if ${ac_cv_prog_TOUCH+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 if test -n "$TOUCH"; then
5279 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288 ac_cv_prog_TOUCH="touch "
5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5292 done
5293 done
5294 IFS=$as_save_IFS
5298 TOUCH=$ac_cv_prog_TOUCH
5299 if test -n "$TOUCH"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5301 $as_echo "$TOUCH" >&6; }
5302 else
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5308 req_avail=yes
5309 if test "$TOUCH" = ""; then
5310 req_avail=no
5312 if test "$TOUCH" = "no"; then
5313 req_avail=no
5315 if test "$req_avail" = "no"; then
5316 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5318 # Extract the first word of "sort", so it can be a program name with args.
5319 set dummy sort; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if ${ac_cv_prog_SORT+:} false; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5325 if test -n "$SORT"; then
5326 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5327 else
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335 ac_cv_prog_SORT="sort "
5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 break 2
5339 done
5340 done
5341 IFS=$as_save_IFS
5345 SORT=$ac_cv_prog_SORT
5346 if test -n "$SORT"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5348 $as_echo "$SORT" >&6; }
5349 else
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5355 req_avail=yes
5356 if test "$SORT" = ""; then
5357 req_avail=no
5359 if test "$SORT" = "no"; then
5360 req_avail=no
5362 if test "$req_avail" = "no"; then
5363 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5365 # Extract the first word of "uniq", so it can be a program name with args.
5366 set dummy uniq; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_prog_UNIQ+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 if test -n "$UNIQ"; then
5373 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382 ac_cv_prog_UNIQ="uniq "
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5386 done
5387 done
5388 IFS=$as_save_IFS
5392 UNIQ=$ac_cv_prog_UNIQ
5393 if test -n "$UNIQ"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5395 $as_echo "$UNIQ" >&6; }
5396 else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5402 req_avail=yes
5403 if test "$UNIQ" = ""; then
5404 req_avail=no
5406 if test "$UNIQ" = "no"; then
5407 req_avail=no
5409 if test "$req_avail" = "no"; then
5410 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5412 # Extract the first word of "true", so it can be a program name with args.
5413 set dummy true; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_prog_NOP+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 if test -n "$NOP"; then
5420 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429 ac_cv_prog_NOP="true "
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5433 done
5434 done
5435 IFS=$as_save_IFS
5439 NOP=$ac_cv_prog_NOP
5440 if test -n "$NOP"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5442 $as_echo "$NOP" >&6; }
5443 else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5449 req_avail=yes
5450 if test "$NOP" = ""; then
5451 req_avail=no
5453 if test "$NOP" = "no"; then
5454 req_avail=no
5456 if test "$req_avail" = "no"; then
5457 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5459 # Extract the first word of "cat", so it can be a program name with args.
5460 set dummy cat; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_prog_CAT+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -n "$CAT"; then
5467 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_CAT="cat "
5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5480 done
5481 done
5482 IFS=$as_save_IFS
5486 CAT=$ac_cv_prog_CAT
5487 if test -n "$CAT"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5489 $as_echo "$CAT" >&6; }
5490 else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5496 req_avail=yes
5497 if test "$CAT" = ""; then
5498 req_avail=no
5500 if test "$CAT" = "no"; then
5501 req_avail=no
5503 if test "$req_avail" = "no"; then
5504 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5506 # Extract the first word of "bison", so it can be a program name with args.
5507 set dummy bison; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_prog_BISON+:} false; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 if test -n "$BISON"; then
5514 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_prog_BISON="bison "
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5527 done
5528 done
5529 IFS=$as_save_IFS
5533 BISON=$ac_cv_prog_BISON
5534 if test -n "$BISON"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5536 $as_echo "$BISON" >&6; }
5537 else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5543 req_avail=yes
5544 if test "$BISON" = ""; then
5545 req_avail=no
5547 if test "$BISON" = "no"; then
5548 req_avail=no
5550 if test "$req_avail" = "no"; then
5551 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5553 # Extract the first word of "flex", so it can be a program name with args.
5554 set dummy flex; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if ${ac_cv_prog_FLEX+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 if test -n "$FLEX"; then
5561 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5570 ac_cv_prog_FLEX="flex "
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5574 done
5575 done
5576 IFS=$as_save_IFS
5580 FLEX=$ac_cv_prog_FLEX
5581 if test -n "$FLEX"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5583 $as_echo "$FLEX" >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5590 req_avail=yes
5591 if test "$FLEX" = ""; then
5592 req_avail=no
5594 if test "$FLEX" = "no"; then
5595 req_avail=no
5597 if test "$req_avail" = "no"; then
5598 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5600 # Extract the first word of "pngtopnm", so it can be a program name with args.
5601 set dummy pngtopnm; ac_word=$2
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 if test -n "$PNGTOPNM"; then
5608 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5609 else
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617 ac_cv_prog_PNGTOPNM="pngtopnm "
5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 break 2
5621 done
5622 done
5623 IFS=$as_save_IFS
5627 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5628 if test -n "$PNGTOPNM"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5630 $as_echo "$PNGTOPNM" >&6; }
5631 else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5637 req_avail=yes
5638 if test "$PNGTOPNM" = ""; then
5639 req_avail=no
5641 if test "$PNGTOPNM" = "no"; then
5642 req_avail=no
5644 if test "$req_avail" = "no"; then
5645 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5647 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5648 set dummy ppmtoilbm; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 if test -n "$PPMTOILBM"; then
5655 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5668 done
5669 done
5670 IFS=$as_save_IFS
5674 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5675 if test -n "$PPMTOILBM"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5677 $as_echo "$PPMTOILBM" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5684 req_avail=yes
5685 if test "$PPMTOILBM" = ""; then
5686 req_avail=no
5688 if test "$PPMTOILBM" = "no"; then
5689 req_avail=no
5691 if test "$req_avail" = "no"; then
5692 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5694 # Extract the first word of "sed", so it can be a program name with args.
5695 set dummy sed; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_prog_SED+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -n "$SED"; then
5702 ac_cv_prog_SED="$SED" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711 ac_cv_prog_SED="sed "
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5715 done
5716 done
5717 IFS=$as_save_IFS
5721 SED=$ac_cv_prog_SED
5722 if test -n "$SED"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5724 $as_echo "$SED" >&6; }
5725 else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5731 req_avail=yes
5732 if test "$SED" = ""; then
5733 req_avail=no
5735 if test "$SED" = "no"; then
5736 req_avail=no
5738 if test "$req_avail" = "no"; then
5739 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5741 # Extract the first word of "chmod", so it can be a program name with args.
5742 set dummy chmod; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_CHMOD+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 if test -n "$CHMOD"; then
5749 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_CHMOD="chmod "
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5762 done
5763 done
5764 IFS=$as_save_IFS
5768 CHMOD=$ac_cv_prog_CHMOD
5769 if test -n "$CHMOD"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5771 $as_echo "$CHMOD" >&6; }
5772 else
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5778 req_avail=yes
5779 if test "$CHMOD" = ""; then
5780 req_avail=no
5782 if test "$CHMOD" = "no"; then
5783 req_avail=no
5785 if test "$req_avail" = "no"; then
5786 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5788 # Extract the first word of "patch", so it can be a program name with args.
5789 set dummy patch; ac_word=$2
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5791 $as_echo_n "checking for $ac_word... " >&6; }
5792 if ${ac_cv_prog_PATCH+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 if test -n "$PATCH"; then
5796 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5797 else
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 for as_dir in $PATH
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5805 ac_cv_prog_PATCH="patch "
5806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 break 2
5809 done
5810 done
5811 IFS=$as_save_IFS
5815 PATCH=$ac_cv_prog_PATCH
5816 if test -n "$PATCH"; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5818 $as_echo "$PATCH" >&6; }
5819 else
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821 $as_echo "no" >&6; }
5825 req_avail=yes
5826 if test "$PATCH" = ""; then
5827 req_avail=no
5829 if test "$PATCH" = "no"; then
5830 req_avail=no
5832 if test "$req_avail" = "no"; then
5833 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5842 if test -n "$PYTHON"; then
5843 # If the user set $PYTHON, use it and don't search something else.
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5845 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5846 prog="import sys
5847 # split strings by '.' and convert to numeric. Append some zeros
5848 # because we need at least 4 digits for the hex conversion.
5849 # map returns an iterator in Python 3.0 and a list in 2.x
5850 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5851 minverhex = 0
5852 # xrange is not present in Python 3.0 and range returns an iterator
5853 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5854 sys.exit(sys.hexversion < minverhex)"
5855 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5856 ($PYTHON -c "$prog") >&5 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; then :
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5861 $as_echo "yes" >&6; }
5862 else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 $as_echo "no" >&6; }
5865 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5867 am_display_PYTHON=$PYTHON
5868 else
5869 # Otherwise, try each interpreter until we find one that satisfies
5870 # VERSION.
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5872 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5873 if ${am_cv_pathless_PYTHON+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5877 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
5878 test "$am_cv_pathless_PYTHON" = none && break
5879 prog="import sys
5880 # split strings by '.' and convert to numeric. Append some zeros
5881 # because we need at least 4 digits for the hex conversion.
5882 # map returns an iterator in Python 3.0 and a list in 2.x
5883 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5884 minverhex = 0
5885 # xrange is not present in Python 3.0 and range returns an iterator
5886 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5887 sys.exit(sys.hexversion < minverhex)"
5888 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5889 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; then :
5893 break
5895 done
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5898 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5899 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5900 if test "$am_cv_pathless_PYTHON" = none; then
5901 PYTHON=:
5902 else
5903 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5904 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906 $as_echo_n "checking for $ac_word... " >&6; }
5907 if ${ac_cv_path_PYTHON+:} false; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 case $PYTHON in
5911 [\\/]* | ?:[\\/]*)
5912 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 break 2
5926 done
5927 done
5928 IFS=$as_save_IFS
5931 esac
5933 PYTHON=$ac_cv_path_PYTHON
5934 if test -n "$PYTHON"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5936 $as_echo "$PYTHON" >&6; }
5937 else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5944 am_display_PYTHON=$am_cv_pathless_PYTHON
5948 if test "$PYTHON" = :; then
5949 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5950 else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5954 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5955 if ${am_cv_python_version+:} false; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5961 $as_echo "$am_cv_python_version" >&6; }
5962 PYTHON_VERSION=$am_cv_python_version
5966 PYTHON_PREFIX='${prefix}'
5968 PYTHON_EXEC_PREFIX='${exec_prefix}'
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5973 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5974 if ${am_cv_python_platform+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5980 $as_echo "$am_cv_python_platform" >&6; }
5981 PYTHON_PLATFORM=$am_cv_python_platform
5984 # Just factor out some code duplication.
5985 am_python_setup_sysconfig="\
5986 import sys
5987 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5988 # with python 3.x. See automake bug#10227.
5989 try:
5990 import sysconfig
5991 except ImportError:
5992 can_use_sysconfig = 0
5993 else:
5994 can_use_sysconfig = 1
5995 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5996 # <https://github.com/pypa/virtualenv/issues/118>
5997 try:
5998 from platform import python_implementation
5999 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6000 can_use_sysconfig = 0
6001 except ImportError:
6002 pass"
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6006 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6007 if ${am_cv_python_pythondir+:} false; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 if test "x$prefix" = xNONE
6011 then
6012 am_py_prefix=$ac_default_prefix
6013 else
6014 am_py_prefix=$prefix
6016 am_cv_python_pythondir=`$PYTHON -c "
6017 $am_python_setup_sysconfig
6018 if can_use_sysconfig:
6019 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6020 else:
6021 from distutils import sysconfig
6022 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6023 sys.stdout.write(sitedir)"`
6024 case $am_cv_python_pythondir in
6025 $am_py_prefix*)
6026 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6027 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6030 case $am_py_prefix in
6031 /usr|/System*) ;;
6033 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6035 esac
6037 esac
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6041 $as_echo "$am_cv_python_pythondir" >&6; }
6042 pythondir=$am_cv_python_pythondir
6046 pkgpythondir=\${pythondir}/$PACKAGE
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6050 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6051 if ${am_cv_python_pyexecdir+:} false; then :
6052 $as_echo_n "(cached) " >&6
6053 else
6054 if test "x$exec_prefix" = xNONE
6055 then
6056 am_py_exec_prefix=$am_py_prefix
6057 else
6058 am_py_exec_prefix=$exec_prefix
6060 am_cv_python_pyexecdir=`$PYTHON -c "
6061 $am_python_setup_sysconfig
6062 if can_use_sysconfig:
6063 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6064 else:
6065 from distutils import sysconfig
6066 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6067 sys.stdout.write(sitedir)"`
6068 case $am_cv_python_pyexecdir in
6069 $am_py_exec_prefix*)
6070 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6071 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6074 case $am_py_exec_prefix in
6075 /usr|/System*) ;;
6077 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6079 esac
6081 esac
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6085 $as_echo "$am_cv_python_pyexecdir" >&6; }
6086 pyexecdir=$am_cv_python_pyexecdir
6090 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6098 # Check whether --enable-libpng-config was given.
6099 if test "${enable_libpng_config+set}" = set; then :
6100 enableval=$enable_libpng_config;
6103 if test "$enable_libpng_config" != "no"; then
6104 # Extract the first word of "libpng-config", so it can be a program name with args.
6105 set dummy libpng-config; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 if test -n "$arosconfig_use_libpngconfig"; then
6112 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6125 done
6126 done
6127 IFS=$as_save_IFS
6129 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6132 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6133 if test -n "$arosconfig_use_libpngconfig"; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6135 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6136 else
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 $as_echo "no" >&6; }
6143 if test "$arosconfig_use_libpngconfig" = "yes"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6145 $as_echo_n "checking libpng-config library... " >&6; }
6146 libpng_incdir="`libpng-config --cflags`"
6147 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6148 libpng="`libpng-config --libs`"
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6150 $as_echo "$libpng" >&6; }
6151 else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6154 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6155 if ${ac_cv_lib_png_png_read_png+:} false; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 ac_check_lib_save_LIBS=$LIBS
6159 LIBS="-lpng $LIBS"
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6163 /* Override any GCC internal prototype to avoid an error.
6164 Use char because int might match the return type of a GCC
6165 builtin and then its argument prototype would still apply. */
6166 #ifdef __cplusplus
6167 extern "C"
6168 #endif
6169 char png_read_png ();
6171 main ()
6173 return png_read_png ();
6175 return 0;
6177 _ACEOF
6178 if ac_fn_c_try_link "$LINENO"; then :
6179 ac_cv_lib_png_png_read_png=yes
6180 else
6181 ac_cv_lib_png_png_read_png=no
6183 rm -f core conftest.err conftest.$ac_objext \
6184 conftest$ac_exeext conftest.$ac_ext
6185 LIBS=$ac_check_lib_save_LIBS
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6188 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6189 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6190 libpng="-lpng"
6191 else
6192 libpng="no"
6195 if test "$libpng_libextra" != ""; then
6196 if test "$libpng" != "no"; then
6197 libpng_libextra="$libpng_libextra $libpng"
6201 req_avail=yes
6202 if test "$libpng" = ""; then
6203 req_avail=no
6205 if test "$libpng" = "no"; then
6206 req_avail=no
6208 if test "$req_avail" = "no"; then
6209 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6215 FOR=for
6217 IF=if
6219 TEST=test
6221 CMP=cmp
6225 # Check for some includes for the X11 HIDD and the kernel
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6228 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6229 if ${ac_cv_path_GREP+:} false; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 if test -z "$GREP"; then
6233 ac_path_GREP_found=false
6234 # Loop through the user's path and test for each of PROGNAME-LIST
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_prog in grep ggrep; do
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6243 as_fn_executable_p "$ac_path_GREP" || continue
6244 # Check for GNU ac_path_GREP and select it if it is found.
6245 # Check for GNU $ac_path_GREP
6246 case `"$ac_path_GREP" --version 2>&1` in
6247 *GNU*)
6248 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6250 ac_count=0
6251 $as_echo_n 0123456789 >"conftest.in"
6252 while :
6254 cat "conftest.in" "conftest.in" >"conftest.tmp"
6255 mv "conftest.tmp" "conftest.in"
6256 cp "conftest.in" "conftest.nl"
6257 $as_echo 'GREP' >> "conftest.nl"
6258 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6260 as_fn_arith $ac_count + 1 && ac_count=$as_val
6261 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6262 # Best one so far, save it but keep looking for a better one
6263 ac_cv_path_GREP="$ac_path_GREP"
6264 ac_path_GREP_max=$ac_count
6266 # 10*(2^10) chars as input seems more than enough
6267 test $ac_count -gt 10 && break
6268 done
6269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6270 esac
6272 $ac_path_GREP_found && break 3
6273 done
6274 done
6275 done
6276 IFS=$as_save_IFS
6277 if test -z "$ac_cv_path_GREP"; then
6278 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6280 else
6281 ac_cv_path_GREP=$GREP
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6286 $as_echo "$ac_cv_path_GREP" >&6; }
6287 GREP="$ac_cv_path_GREP"
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6291 $as_echo_n "checking for egrep... " >&6; }
6292 if ${ac_cv_path_EGREP+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6296 then ac_cv_path_EGREP="$GREP -E"
6297 else
6298 if test -z "$EGREP"; then
6299 ac_path_EGREP_found=false
6300 # Loop through the user's path and test for each of PROGNAME-LIST
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_prog in egrep; do
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6309 as_fn_executable_p "$ac_path_EGREP" || continue
6310 # Check for GNU ac_path_EGREP and select it if it is found.
6311 # Check for GNU $ac_path_EGREP
6312 case `"$ac_path_EGREP" --version 2>&1` in
6313 *GNU*)
6314 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6316 ac_count=0
6317 $as_echo_n 0123456789 >"conftest.in"
6318 while :
6320 cat "conftest.in" "conftest.in" >"conftest.tmp"
6321 mv "conftest.tmp" "conftest.in"
6322 cp "conftest.in" "conftest.nl"
6323 $as_echo 'EGREP' >> "conftest.nl"
6324 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6326 as_fn_arith $ac_count + 1 && ac_count=$as_val
6327 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6328 # Best one so far, save it but keep looking for a better one
6329 ac_cv_path_EGREP="$ac_path_EGREP"
6330 ac_path_EGREP_max=$ac_count
6332 # 10*(2^10) chars as input seems more than enough
6333 test $ac_count -gt 10 && break
6334 done
6335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6336 esac
6338 $ac_path_EGREP_found && break 3
6339 done
6340 done
6341 done
6342 IFS=$as_save_IFS
6343 if test -z "$ac_cv_path_EGREP"; then
6344 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6346 else
6347 ac_cv_path_EGREP=$EGREP
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6353 $as_echo "$ac_cv_path_EGREP" >&6; }
6354 EGREP="$ac_cv_path_EGREP"
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6358 $as_echo_n "checking for ANSI C header files... " >&6; }
6359 if ${ac_cv_header_stdc+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6364 #include <stdlib.h>
6365 #include <stdarg.h>
6366 #include <string.h>
6367 #include <float.h>
6370 main ()
6374 return 0;
6376 _ACEOF
6377 if ac_fn_c_try_compile "$LINENO"; then :
6378 ac_cv_header_stdc=yes
6379 else
6380 ac_cv_header_stdc=no
6382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384 if test $ac_cv_header_stdc = yes; then
6385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6388 #include <string.h>
6390 _ACEOF
6391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6392 $EGREP "memchr" >/dev/null 2>&1; then :
6394 else
6395 ac_cv_header_stdc=no
6397 rm -f conftest*
6401 if test $ac_cv_header_stdc = yes; then
6402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6405 #include <stdlib.h>
6407 _ACEOF
6408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6409 $EGREP "free" >/dev/null 2>&1; then :
6411 else
6412 ac_cv_header_stdc=no
6414 rm -f conftest*
6418 if test $ac_cv_header_stdc = yes; then
6419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6420 if test "$cross_compiling" = yes; then :
6422 else
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6425 #include <ctype.h>
6426 #include <stdlib.h>
6427 #if ((' ' & 0x0FF) == 0x020)
6428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6430 #else
6431 # define ISLOWER(c) \
6432 (('a' <= (c) && (c) <= 'i') \
6433 || ('j' <= (c) && (c) <= 'r') \
6434 || ('s' <= (c) && (c) <= 'z'))
6435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6436 #endif
6438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6440 main ()
6442 int i;
6443 for (i = 0; i < 256; i++)
6444 if (XOR (islower (i), ISLOWER (i))
6445 || toupper (i) != TOUPPER (i))
6446 return 2;
6447 return 0;
6449 _ACEOF
6450 if ac_fn_c_try_run "$LINENO"; then :
6452 else
6453 ac_cv_header_stdc=no
6455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6456 conftest.$ac_objext conftest.beam conftest.$ac_ext
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6462 $as_echo "$ac_cv_header_stdc" >&6; }
6463 if test $ac_cv_header_stdc = yes; then
6465 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6470 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6471 inttypes.h stdint.h unistd.h
6472 do :
6473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6474 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6476 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6477 cat >>confdefs.h <<_ACEOF
6478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6479 _ACEOF
6483 done
6486 for ac_header in sys/ipc.h sys/shm.h \
6487 sys/mmap.h sys/mman.h sysexits.h \
6488 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6490 do :
6491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6492 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6493 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6494 cat >>confdefs.h <<_ACEOF
6495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6496 _ACEOF
6500 done
6503 for ac_header in sys/mount.h
6504 do :
6505 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6507 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6508 cat >>confdefs.h <<_ACEOF
6509 #define HAVE_SYS_MOUNT_H 1
6510 _ACEOF
6514 done
6517 ac_header_dirent=no
6518 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6519 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6521 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6522 if eval \${$as_ac_Header+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527 #include <sys/types.h>
6528 #include <$ac_hdr>
6531 main ()
6533 if ((DIR *) 0)
6534 return 0;
6536 return 0;
6538 _ACEOF
6539 if ac_fn_c_try_compile "$LINENO"; then :
6540 eval "$as_ac_Header=yes"
6541 else
6542 eval "$as_ac_Header=no"
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 eval ac_res=\$$as_ac_Header
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6548 $as_echo "$ac_res" >&6; }
6549 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6550 cat >>confdefs.h <<_ACEOF
6551 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6552 _ACEOF
6554 ac_header_dirent=$ac_hdr; break
6557 done
6558 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6559 if test $ac_header_dirent = dirent.h; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6561 $as_echo_n "checking for library containing opendir... " >&6; }
6562 if ${ac_cv_search_opendir+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 ac_func_search_save_LIBS=$LIBS
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6569 /* Override any GCC internal prototype to avoid an error.
6570 Use char because int might match the return type of a GCC
6571 builtin and then its argument prototype would still apply. */
6572 #ifdef __cplusplus
6573 extern "C"
6574 #endif
6575 char opendir ();
6577 main ()
6579 return opendir ();
6581 return 0;
6583 _ACEOF
6584 for ac_lib in '' dir; do
6585 if test -z "$ac_lib"; then
6586 ac_res="none required"
6587 else
6588 ac_res=-l$ac_lib
6589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6591 if ac_fn_c_try_link "$LINENO"; then :
6592 ac_cv_search_opendir=$ac_res
6594 rm -f core conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext
6596 if ${ac_cv_search_opendir+:} false; then :
6597 break
6599 done
6600 if ${ac_cv_search_opendir+:} false; then :
6602 else
6603 ac_cv_search_opendir=no
6605 rm conftest.$ac_ext
6606 LIBS=$ac_func_search_save_LIBS
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6609 $as_echo "$ac_cv_search_opendir" >&6; }
6610 ac_res=$ac_cv_search_opendir
6611 if test "$ac_res" != no; then :
6612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6616 else
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6618 $as_echo_n "checking for library containing opendir... " >&6; }
6619 if ${ac_cv_search_opendir+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 ac_func_search_save_LIBS=$LIBS
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6626 /* Override any GCC internal prototype to avoid an error.
6627 Use char because int might match the return type of a GCC
6628 builtin and then its argument prototype would still apply. */
6629 #ifdef __cplusplus
6630 extern "C"
6631 #endif
6632 char opendir ();
6634 main ()
6636 return opendir ();
6638 return 0;
6640 _ACEOF
6641 for ac_lib in '' x; do
6642 if test -z "$ac_lib"; then
6643 ac_res="none required"
6644 else
6645 ac_res=-l$ac_lib
6646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6648 if ac_fn_c_try_link "$LINENO"; then :
6649 ac_cv_search_opendir=$ac_res
6651 rm -f core conftest.err conftest.$ac_objext \
6652 conftest$ac_exeext
6653 if ${ac_cv_search_opendir+:} false; then :
6654 break
6656 done
6657 if ${ac_cv_search_opendir+:} false; then :
6659 else
6660 ac_cv_search_opendir=no
6662 rm conftest.$ac_ext
6663 LIBS=$ac_func_search_save_LIBS
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6666 $as_echo "$ac_cv_search_opendir" >&6; }
6667 ac_res=$ac_cv_search_opendir
6668 if test "$ac_res" != no; then :
6669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6676 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6677 if ${ac_cv_header_stat_broken+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682 #include <sys/types.h>
6683 #include <sys/stat.h>
6685 #if defined S_ISBLK && defined S_IFDIR
6686 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6687 #endif
6689 #if defined S_ISBLK && defined S_IFCHR
6690 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6691 #endif
6693 #if defined S_ISLNK && defined S_IFREG
6694 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6695 #endif
6697 #if defined S_ISSOCK && defined S_IFREG
6698 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6699 #endif
6701 _ACEOF
6702 if ac_fn_c_try_compile "$LINENO"; then :
6703 ac_cv_header_stat_broken=no
6704 else
6705 ac_cv_header_stat_broken=yes
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6710 $as_echo "$ac_cv_header_stat_broken" >&6; }
6711 if test $ac_cv_header_stat_broken = yes; then
6713 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6718 $as_echo_n "checking for ANSI C header files... " >&6; }
6719 if ${ac_cv_header_stdc+:} false; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6724 #include <stdlib.h>
6725 #include <stdarg.h>
6726 #include <string.h>
6727 #include <float.h>
6730 main ()
6734 return 0;
6736 _ACEOF
6737 if ac_fn_c_try_compile "$LINENO"; then :
6738 ac_cv_header_stdc=yes
6739 else
6740 ac_cv_header_stdc=no
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744 if test $ac_cv_header_stdc = yes; then
6745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6748 #include <string.h>
6750 _ACEOF
6751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6752 $EGREP "memchr" >/dev/null 2>&1; then :
6754 else
6755 ac_cv_header_stdc=no
6757 rm -f conftest*
6761 if test $ac_cv_header_stdc = yes; then
6762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765 #include <stdlib.h>
6767 _ACEOF
6768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6769 $EGREP "free" >/dev/null 2>&1; then :
6771 else
6772 ac_cv_header_stdc=no
6774 rm -f conftest*
6778 if test $ac_cv_header_stdc = yes; then
6779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6780 if test "$cross_compiling" = yes; then :
6782 else
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6785 #include <ctype.h>
6786 #include <stdlib.h>
6787 #if ((' ' & 0x0FF) == 0x020)
6788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6790 #else
6791 # define ISLOWER(c) \
6792 (('a' <= (c) && (c) <= 'i') \
6793 || ('j' <= (c) && (c) <= 'r') \
6794 || ('s' <= (c) && (c) <= 'z'))
6795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6796 #endif
6798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6800 main ()
6802 int i;
6803 for (i = 0; i < 256; i++)
6804 if (XOR (islower (i), ISLOWER (i))
6805 || toupper (i) != TOUPPER (i))
6806 return 2;
6807 return 0;
6809 _ACEOF
6810 if ac_fn_c_try_run "$LINENO"; then :
6812 else
6813 ac_cv_header_stdc=no
6815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6816 conftest.$ac_objext conftest.beam conftest.$ac_ext
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6822 $as_echo "$ac_cv_header_stdc" >&6; }
6823 if test $ac_cv_header_stdc = yes; then
6825 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6830 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6831 if ${ac_cv_header_sys_wait_h+:} false; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6836 #include <sys/types.h>
6837 #include <sys/wait.h>
6838 #ifndef WEXITSTATUS
6839 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6840 #endif
6841 #ifndef WIFEXITED
6842 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6843 #endif
6846 main ()
6848 int s;
6849 wait (&s);
6850 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6852 return 0;
6854 _ACEOF
6855 if ac_fn_c_try_compile "$LINENO"; then :
6856 ac_cv_header_sys_wait_h=yes
6857 else
6858 ac_cv_header_sys_wait_h=no
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6863 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6864 if test $ac_cv_header_sys_wait_h = yes; then
6866 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6871 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6872 if ${ac_cv_header_time+:} false; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6877 #include <sys/types.h>
6878 #include <sys/time.h>
6879 #include <time.h>
6882 main ()
6884 if ((struct tm *) 0)
6885 return 0;
6887 return 0;
6889 _ACEOF
6890 if ac_fn_c_try_compile "$LINENO"; then :
6891 ac_cv_header_time=yes
6892 else
6893 ac_cv_header_time=no
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6898 $as_echo "$ac_cv_header_time" >&6; }
6899 if test $ac_cv_header_time = yes; then
6901 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6905 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6906 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6908 cat >>confdefs.h <<_ACEOF
6909 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6910 _ACEOF
6913 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6918 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6919 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6921 cat >>confdefs.h <<_ACEOF
6922 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6923 _ACEOF
6926 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6928 else
6929 case " $LIBOBJS " in
6930 *" fileblocks.$ac_objext "* ) ;;
6931 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6933 esac
6938 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6939 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6941 cat >>confdefs.h <<_ACEOF
6942 #define HAVE_STRUCT_STAT_ST_RDEV 1
6943 _ACEOF
6946 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6952 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6953 if ${ac_cv_struct_tm+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958 #include <sys/types.h>
6959 #include <time.h>
6962 main ()
6964 struct tm tm;
6965 int *p = &tm.tm_sec;
6966 return !p;
6968 return 0;
6970 _ACEOF
6971 if ac_fn_c_try_compile "$LINENO"; then :
6972 ac_cv_struct_tm=time.h
6973 else
6974 ac_cv_struct_tm=sys/time.h
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6979 $as_echo "$ac_cv_struct_tm" >&6; }
6980 if test $ac_cv_struct_tm = sys/time.h; then
6982 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6986 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6987 #include <$ac_cv_struct_tm>
6990 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6992 cat >>confdefs.h <<_ACEOF
6993 #define HAVE_STRUCT_TM_TM_ZONE 1
6994 _ACEOF
6999 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7001 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7003 else
7004 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7006 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7007 ac_have_decl=1
7008 else
7009 ac_have_decl=0
7012 cat >>confdefs.h <<_ACEOF
7013 #define HAVE_DECL_TZNAME $ac_have_decl
7014 _ACEOF
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7017 $as_echo_n "checking for tzname... " >&6; }
7018 if ${ac_cv_var_tzname+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023 #include <time.h>
7024 #if !HAVE_DECL_TZNAME
7025 extern char *tzname[];
7026 #endif
7029 main ()
7031 return tzname[0][0];
7033 return 0;
7035 _ACEOF
7036 if ac_fn_c_try_link "$LINENO"; then :
7037 ac_cv_var_tzname=yes
7038 else
7039 ac_cv_var_tzname=no
7041 rm -f core conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7045 $as_echo "$ac_cv_var_tzname" >&6; }
7046 if test $ac_cv_var_tzname = yes; then
7048 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7053 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7054 if test "x$ac_cv_type_off_t" = xyes; then :
7056 else
7058 cat >>confdefs.h <<_ACEOF
7059 #define off_t long int
7060 _ACEOF
7064 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7065 if test "x$ac_cv_type_pid_t" = xyes; then :
7067 else
7069 cat >>confdefs.h <<_ACEOF
7070 #define pid_t int
7071 _ACEOF
7075 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7076 if test "x$ac_cv_type_size_t" = xyes; then :
7078 else
7080 cat >>confdefs.h <<_ACEOF
7081 #define size_t unsigned int
7082 _ACEOF
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7087 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7088 if ${ac_cv_type_uid_t+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093 #include <sys/types.h>
7095 _ACEOF
7096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7097 $EGREP "uid_t" >/dev/null 2>&1; then :
7098 ac_cv_type_uid_t=yes
7099 else
7100 ac_cv_type_uid_t=no
7102 rm -f conftest*
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7106 $as_echo "$ac_cv_type_uid_t" >&6; }
7107 if test $ac_cv_type_uid_t = no; then
7109 $as_echo "#define uid_t int" >>confdefs.h
7112 $as_echo "#define gid_t int" >>confdefs.h
7117 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7118 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7120 cat >>confdefs.h <<_ACEOF
7121 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7122 _ACEOF
7128 # Look for some functions
7129 for ac_func in getpagesize kqueue statfs statvfs \
7130 clone kse_create rfork_thread thr_create sa_register \
7131 getcontext makecontext setcontext sigaltstack swapcontext
7132 do :
7133 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7134 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7135 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7136 cat >>confdefs.h <<_ACEOF
7137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7138 _ACEOF
7141 done
7147 for ac_header in $ac_header_list
7148 do :
7149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7150 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7152 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7153 cat >>confdefs.h <<_ACEOF
7154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7155 _ACEOF
7159 done
7168 for ac_func in getpagesize
7169 do :
7170 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7171 if test "x$ac_cv_func_getpagesize" = xyes; then :
7172 cat >>confdefs.h <<_ACEOF
7173 #define HAVE_GETPAGESIZE 1
7174 _ACEOF
7177 done
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7180 $as_echo_n "checking for working mmap... " >&6; }
7181 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 if test "$cross_compiling" = yes; then :
7185 ac_cv_func_mmap_fixed_mapped=no
7186 else
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7189 $ac_includes_default
7190 /* malloc might have been renamed as rpl_malloc. */
7191 #undef malloc
7193 /* Thanks to Mike Haertel and Jim Avera for this test.
7194 Here is a matrix of mmap possibilities:
7195 mmap private not fixed
7196 mmap private fixed at somewhere currently unmapped
7197 mmap private fixed at somewhere already mapped
7198 mmap shared not fixed
7199 mmap shared fixed at somewhere currently unmapped
7200 mmap shared fixed at somewhere already mapped
7201 For private mappings, we should verify that changes cannot be read()
7202 back from the file, nor mmap's back from the file at a different
7203 address. (There have been systems where private was not correctly
7204 implemented like the infamous i386 svr4.0, and systems where the
7205 VM page cache was not coherent with the file system buffer cache
7206 like early versions of FreeBSD and possibly contemporary NetBSD.)
7207 For shared mappings, we should conversely verify that changes get
7208 propagated back to all the places they're supposed to be.
7210 Grep wants private fixed already mapped.
7211 The main things grep needs to know about mmap are:
7212 * does it exist and is it safe to write into the mmap'd area
7213 * how to use it (BSD variants) */
7215 #include <fcntl.h>
7216 #include <sys/mman.h>
7218 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7219 char *malloc ();
7220 #endif
7222 /* This mess was copied from the GNU getpagesize.h. */
7223 #ifndef HAVE_GETPAGESIZE
7224 # ifdef _SC_PAGESIZE
7225 # define getpagesize() sysconf(_SC_PAGESIZE)
7226 # else /* no _SC_PAGESIZE */
7227 # ifdef HAVE_SYS_PARAM_H
7228 # include <sys/param.h>
7229 # ifdef EXEC_PAGESIZE
7230 # define getpagesize() EXEC_PAGESIZE
7231 # else /* no EXEC_PAGESIZE */
7232 # ifdef NBPG
7233 # define getpagesize() NBPG * CLSIZE
7234 # ifndef CLSIZE
7235 # define CLSIZE 1
7236 # endif /* no CLSIZE */
7237 # else /* no NBPG */
7238 # ifdef NBPC
7239 # define getpagesize() NBPC
7240 # else /* no NBPC */
7241 # ifdef PAGESIZE
7242 # define getpagesize() PAGESIZE
7243 # endif /* PAGESIZE */
7244 # endif /* no NBPC */
7245 # endif /* no NBPG */
7246 # endif /* no EXEC_PAGESIZE */
7247 # else /* no HAVE_SYS_PARAM_H */
7248 # define getpagesize() 8192 /* punt totally */
7249 # endif /* no HAVE_SYS_PARAM_H */
7250 # endif /* no _SC_PAGESIZE */
7252 #endif /* no HAVE_GETPAGESIZE */
7255 main ()
7257 char *data, *data2, *data3;
7258 const char *cdata2;
7259 int i, pagesize;
7260 int fd, fd2;
7262 pagesize = getpagesize ();
7264 /* First, make a file with some known garbage in it. */
7265 data = (char *) malloc (pagesize);
7266 if (!data)
7267 return 1;
7268 for (i = 0; i < pagesize; ++i)
7269 *(data + i) = rand ();
7270 umask (0);
7271 fd = creat ("conftest.mmap", 0600);
7272 if (fd < 0)
7273 return 2;
7274 if (write (fd, data, pagesize) != pagesize)
7275 return 3;
7276 close (fd);
7278 /* Next, check that the tail of a page is zero-filled. File must have
7279 non-zero length, otherwise we risk SIGBUS for entire page. */
7280 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7281 if (fd2 < 0)
7282 return 4;
7283 cdata2 = "";
7284 if (write (fd2, cdata2, 1) != 1)
7285 return 5;
7286 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7287 if (data2 == MAP_FAILED)
7288 return 6;
7289 for (i = 0; i < pagesize; ++i)
7290 if (*(data2 + i))
7291 return 7;
7292 close (fd2);
7293 if (munmap (data2, pagesize))
7294 return 8;
7296 /* Next, try to mmap the file at a fixed address which already has
7297 something else allocated at it. If we can, also make sure that
7298 we see the same garbage. */
7299 fd = open ("conftest.mmap", O_RDWR);
7300 if (fd < 0)
7301 return 9;
7302 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7303 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7304 return 10;
7305 for (i = 0; i < pagesize; ++i)
7306 if (*(data + i) != *(data2 + i))
7307 return 11;
7309 /* Finally, make sure that changes to the mapped area do not
7310 percolate back to the file as seen by read(). (This is a bug on
7311 some variants of i386 svr4.0.) */
7312 for (i = 0; i < pagesize; ++i)
7313 *(data2 + i) = *(data2 + i) + 1;
7314 data3 = (char *) malloc (pagesize);
7315 if (!data3)
7316 return 12;
7317 if (read (fd, data3, pagesize) != pagesize)
7318 return 13;
7319 for (i = 0; i < pagesize; ++i)
7320 if (*(data + i) != *(data3 + i))
7321 return 14;
7322 close (fd);
7323 return 0;
7325 _ACEOF
7326 if ac_fn_c_try_run "$LINENO"; then :
7327 ac_cv_func_mmap_fixed_mapped=yes
7328 else
7329 ac_cv_func_mmap_fixed_mapped=no
7331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7332 conftest.$ac_objext conftest.beam conftest.$ac_ext
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7337 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7338 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7340 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7343 rm -f conftest.mmap conftest.txt
7346 #-----------------------------------------------------------------------------
7349 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7350 # it switched on by default, and we use the host compiler, so it compiles AROS
7351 # code with this enabled resulting in link failures as we don't have support
7352 # for it.
7354 # We use two methods to disable it. For the host compiler (used to compile
7355 # some hosted modules), we test to see if the compiler supports stack
7356 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7357 # work on all platforms.
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7361 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7362 save_cflags="$CFLAGS"
7363 CFLAGS="$CFLAGS -fno-stack-protector"
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7368 main ()
7372 return 0;
7374 _ACEOF
7375 if ac_fn_c_try_compile "$LINENO"; then :
7376 use_no_stack_protector="yes"
7377 else
7378 use_no_stack_protector="no"
7380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7382 $as_echo "$use_no_stack_protector" >&6; }
7383 if test "x-$use_no_stack_protector" = "x-yes" ; then
7384 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7386 CFLAGS="$save_cflags"
7388 #-----------------------------------------------------------------------------
7390 # Disable pointer-signedness warnings if the compiler recognises the option
7391 # (this only works for the host compiler at the moment)
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7394 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7395 save_cflags="$CFLAGS"
7396 CFLAGS="$CFLAGS -Wno-pointer-sign"
7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398 /* end confdefs.h. */
7401 main ()
7405 return 0;
7407 _ACEOF
7408 if ac_fn_c_try_compile "$LINENO"; then :
7409 use_no_sign_warning="yes"
7410 else
7411 use_no_sign_warning="no"
7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7415 $as_echo "$use_no_sign_warning" >&6; }
7416 if test "x-$use_no_sign_warning" = "x-yes" ; then
7417 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7419 CFLAGS="$save_cflags"
7421 #-----------------------------------------------------------------------------
7423 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7426 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7427 save_cflags="$CFLAGS"
7428 CFLAGS="$CFLAGS -fgnu89-inline"
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7433 main ()
7437 return 0;
7439 _ACEOF
7440 if ac_fn_c_try_compile "$LINENO"; then :
7441 use_gnu89_inline="yes"
7442 else
7443 use_gnu89_inline="no"
7445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7447 $as_echo "$use_gnu89_inline" >&6; }
7448 if test "x-$use_gnu89_inline" = "x-yes" ; then
7449 gnu89_inline="-fgnu89-inline"
7451 CFLAGS="$save_cflags"
7454 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7455 # On GCC >= 4.0 -iquote should be used
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7458 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7459 CFLAGS="$CFLAGS -iquote."
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7464 main ()
7468 return 0;
7470 _ACEOF
7471 if ac_fn_c_try_compile "$LINENO"; then :
7472 has_iquote="yes"
7473 else
7474 has_iquote="no"
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7478 $as_echo "$has_iquote" >&6; }
7479 if test "x-$has_iquote" = "x-yes" ; then
7480 host_cflags_iquote=-iquote
7481 host_cflags_iquote_end=
7482 else
7483 host_cflags_iquote=-I
7484 host_cflags_iquote_end=-I-
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7488 $as_echo "$as_me: Performing target configuration..." >&6;}
7491 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7493 toolchain_needs_sysroot=no
7495 aros_warn_flags="-Wall -Werror-implicit-function-declaration"
7496 aros_config_cflags=
7497 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7498 aros_config_ldflags=""
7500 aros_shared_default=yes
7502 aros_shared_cflags="-fPIC"
7503 aros_shared_aflags=""
7504 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7505 aros_kernel_ldflags="-Wl,-rpath,./lib"
7507 aros_kernel_ar_flags="cr"
7508 aros_target_ar_flags="cr"
7509 aros_target_nm_flags="-C -ul"
7510 aros_target_strip_flags="--strip-unneeded -R.comment"
7512 aros_compiler_libs=
7513 aros_arch_libs=
7515 aros_target_genmap="-Wl,-Map -Xlinker"
7517 # Native flavour stuff
7518 aros_serial_debug="0"
7520 # Palm native flavour stuff
7521 aros_palm_debug_hack="0"
7523 # Unix flavour stuff
7524 aros_nesting_supervisor="0"
7526 # Collect-aros stuff: "-ius" to ignore undefined symbols
7527 ignore_undefined_symbols=""
7529 # Check for X11 by default
7530 need_x11="auto"
7532 host_x_gfx=no
7533 host_sdl_gfx=no
7534 host_android_gfx=no
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7538 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7540 # Check whether --with-toolchain was given.
7541 if test "${with_toolchain+set}" = set; then :
7542 withval=$with_toolchain; aros_toolchain="$withval"
7543 else
7544 aros_toolchain="gnu"
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7548 $as_echo "$aros_toolchain" >&6; }
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7552 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7553 # Check whether --enable-lto was given.
7554 if test "${enable_lto+set}" = set; then :
7555 enableval=$enable_lto; aros_config_lto="$enableval"
7556 else
7557 aros_config_lto="no"
7560 if test "$aros_config_lto" != "no"; then
7561 aros_config_lto="yes"
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7564 $as_echo "$aros_config_lto" >&6; }
7566 use_ld_wrapper=yes
7568 case "$aros_toolchain" in
7569 *llvm*)
7570 # toolchain_needs_sysroot=yes
7571 toolchain_c_compiler="clang"
7572 toolchain_cxx_compiler="clang++"
7573 toolchain_cpp_preprocessor="clang -E"
7574 toolchain_ld="ld.lld"
7575 aros_ld="ld"
7576 toolchain_as="llvm-as"
7577 toolchain_ar="llvm-ar"
7578 toolchain_ranlib="llvm-ranlib"
7579 toolchain_nm="llvm-nm"
7580 toolchain_strip="true"
7581 toolchain_objcopy="llvm-objcopy"
7582 toolchain_objdump="llvm-objdump"
7584 *gnu*)
7585 toolchain_c_compiler="gcc"
7586 toolchain_cxx_compiler="g++"
7587 toolchain_cpp_preprocessor="gcc -E"
7588 toolchain_as="as"
7589 aros_ld="ld"
7590 if test "$aros_config_lto" != "yes"; then
7591 toolchain_ld="ld"
7592 toolchain_ar="ar"
7593 toolchain_ranlib="ranlib"
7594 toolchain_nm="nm"
7595 else
7596 toolchain_ld="ld.bfd"
7597 toolchain_ar="gcc-ar"
7598 toolchain_ranlib="gcc-ranlib"
7599 toolchain_nm="gcc-nm"
7601 toolchain_strip="strip"
7602 toolchain_objcopy="objcopy"
7603 toolchain_objdump="objdump"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7607 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7608 toolchain_c_compiler="cc"
7609 toolchain_cxx_compiler="c++"
7610 toolchain_cpp_preprocessor="cpp"
7611 toolchain_ld="ld"
7612 aros_ld="ld"
7613 toolchain_as="as"
7614 toolchain_ar="ar"
7615 toolchain_ranlib="ranlib"
7616 toolchain_nm="nm"
7617 toolchain_strip="strip"
7618 toolchain_objcopy="objcopy"
7619 toolchain_objdump="objdump"
7621 esac
7623 #-----------------------------------------------------------------------------
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7626 $as_echo_n "checking which type of build to do... " >&6; }
7627 # Check whether --enable-build_type was given.
7628 if test "${enable_build_type+set}" = set; then :
7629 enableval=$enable_build_type; build_type=$enableval
7630 else
7631 build_type="personal"
7635 if test "$build_type" = "nightly"; then
7636 build_type_string="NIGHTLY"
7637 elif test "$build_type" = "snapshot"; then
7638 build_type_string="SNAPSHOT"
7639 elif test "$build_type" = "milestone"; then
7640 build_type_string="MILESTONE"
7641 elif test "$build_type" = "release"; then
7642 build_type_string="RELEASE"
7643 else
7644 build_type_string="PERSONAL"
7645 build_type="personal"
7648 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7651 $as_echo "$build_type" >&6; }
7653 #-----------------------------------------------------------------------------
7654 all_debug_types="messages stack modules mungwall symbols"
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7657 $as_echo_n "checking which debug types to enable... " >&6; }
7658 # Check whether --enable-debug was given.
7659 if test "${enable_debug+set}" = set; then :
7660 enableval=$enable_debug; debug="$enableval"
7661 else
7662 debug=""
7666 if test "$debug" = "" -o "$debug" = "no"; then
7667 debug="none"
7668 elif test "$debug" = "yes"; then
7669 debug="all"
7672 if test "$debug" = "all" ; then
7673 debug="messages stack modules symbols"
7674 for d in $all_debug_types; do
7675 export aros_${d}_debug="1"
7676 done
7677 else
7678 for d in $all_debug_types; do
7679 export aros_${d}_debug="0"
7680 done
7683 if test "$debug" != "none"; then
7684 debug=`echo $debug | sed s/,/\ /g`
7685 for d in $debug; do
7686 found="0"
7687 for d2 in $all_debug_types; do
7688 if test "$d2" = "$d"; then
7689 found="1"
7690 break
7692 done
7693 if test "$found" = "0"; then
7694 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7696 export aros_${d}_debug="1"
7697 done
7698 aros_debug="yes"
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7701 $as_echo "$debug" >&6; }
7703 if test "$aros_messages_debug" = "1"; then
7704 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7705 else
7706 aros_messages_debug=""
7708 if test "$aros_symbols_debug" = "1"; then
7709 aros_symbols_debug="-g"
7710 else
7711 aros_symbols_debug=""
7714 # These are the flags to pass when compiling debugged programs
7715 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7716 aros_debug_aflags=""
7717 aros_debug_ldflags="$aros_symbols_debug"
7719 #-----------------------------------------------------------------------------
7720 # Checking for distcc and ccache.
7722 # Always apply the transforms in this particular order. Basically you should
7723 # always run 'ccache distcc compiler' in that order for the best performance.
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7726 $as_echo_n "checking whether to enable distcc... " >&6; }
7727 # Check whether --enable-distcc was given.
7728 if test "${enable_distcc+set}" = set; then :
7729 enableval=$enable_distcc; distcc="$enableval"
7730 else
7731 distcc="no"
7734 if test "$distcc" != "" -a "$distcc" != "no"; then
7735 # AC_CHECK_PROG will print out the result in this case
7736 # Extract the first word of "distcc", so it can be a program name with args.
7737 set dummy distcc; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_path_DISTCC+:} false; then :
7741 $as_echo_n "(cached) " >&6
7742 else
7743 case $DISTCC in
7744 [\\/]* | ?:[\\/]*)
7745 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7755 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7759 done
7760 done
7761 IFS=$as_save_IFS
7763 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7765 esac
7767 DISTCC=$ac_cv_path_DISTCC
7768 if test -n "$DISTCC"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7770 $as_echo "$DISTCC" >&6; }
7771 else
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7777 else
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779 $as_echo "no" >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7783 $as_echo_n "checking whether to enable ccache... " >&6; }
7784 # Check whether --enable-ccache was given.
7785 if test "${enable_ccache+set}" = set; then :
7786 enableval=$enable_ccache; ccache="$enableval"
7787 else
7788 ccache="no"
7791 if test "$ccache" != "" -a "$ccache" != "no"; then
7792 # AC_CHECK_PROG will print out the result in this case
7793 # Extract the first word of "ccache", so it can be a program name with args.
7794 set dummy ccache; ac_word=$2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796 $as_echo_n "checking for $ac_word... " >&6; }
7797 if ${ac_cv_prog_CCACHE+:} false; then :
7798 $as_echo_n "(cached) " >&6
7799 else
7800 if test -n "$CCACHE"; then
7801 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7802 else
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810 ac_cv_prog_CCACHE="ccache"
7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 break 2
7814 done
7815 done
7816 IFS=$as_save_IFS
7820 CCACHE=$ac_cv_prog_CCACHE
7821 if test -n "$CCACHE"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7823 $as_echo "$CCACHE" >&6; }
7824 else
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 $as_echo "no" >&6; }
7830 else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7835 #-----------------------------------------------------------------------------
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7837 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7839 # Check whether --with-kernel-gcc-version was given.
7840 if test "${with_kernel_gcc_version+set}" = set; then :
7841 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7842 else
7843 kernel_tool_version=""
7846 if test "$kernel_tool_version" != "" ; then
7847 msg_result=$kernel_tool_version
7848 else
7849 msg_result="default"
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7852 $as_echo "$msg_result" >&6; }
7854 #-----------------------------------------------------------------------------
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7856 $as_echo_n "checking what optimization flags to use... " >&6; }
7858 # Check whether --with-optimization was given.
7859 if test "${with_optimization+set}" = set; then :
7860 withval=$with_optimization; optimization="$withval"
7861 else
7862 optimization="unknown"
7865 if test "$optimization" = "unknown"; then
7866 if test "$debug" != "none"; then
7867 optimization="-O0"
7868 else
7869 optimization="-O2"
7872 aros_optimization_cflags="$optimization"
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7874 $as_echo "$optimization" >&6; }
7876 paranoia_default=yes
7877 #-----------------------------------------------------------------------------
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7879 $as_echo_n "checking which paranoia flags to use... " >&6; }
7881 # Check whether --with-paranoia was given.
7882 if test "${with_paranoia+set}" = set; then :
7883 withval=$with_paranoia; paranoia_flags="$withval"
7884 else
7885 paranoia_flags="$paranoia_default"
7888 if test "$paranoia_flags" = "no"; then
7889 paranoia_flags=""
7890 msg_result="none"
7891 else
7892 if test "$paranoia_flags" = "yes"; then
7893 paranoia_flags="-Wall -Werror"
7895 msg_result="$paranoia_flags"
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7898 $as_echo "$msg_result" >&6; }
7899 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7901 #-----------------------------------------------------------------------------
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7903 $as_echo_n "checking what target variant to enable... " >&6; }
7904 # Check whether --enable-target_variant was given.
7905 if test "${enable_target_variant+set}" = set; then :
7906 enableval=$enable_target_variant; target_variant=$enableval
7907 else
7908 target_variant=""
7911 if test "$target_variant" = ""; then
7912 aros_target_variant=""
7913 aros_target_suffix=""
7914 enableval="none"
7915 else
7916 aros_target_variant="$target_variant"
7917 aros_target_suffix="-$target_variant"
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7920 $as_echo "$enableval" >&6; }
7922 #-----------------------------------------------------------------------------
7923 # Target-specific defaults. You can override then on a per-target basis.
7925 # Bootloader name. Currently used by PC target.
7926 target_bootloader="none"
7927 PLATFORM_EXECSMP=
7928 ENABLE_EXECSMP=
7930 #-----------------------------------------------------------------------------
7931 # Additional options for some specific targets
7933 case "$aros_target_variant" in
7934 ios)
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7936 $as_echo_n "checking XCode path... " >&6; }
7938 # Check whether --with-xcode was given.
7939 if test "${with_xcode+set}" = set; then :
7940 withval=$with_xcode; aros_xcode_path="$withval"
7941 else
7942 aros_xcode_path="/Developer"
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7946 $as_echo "$aros_xcode_path" >&6; }
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7949 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7951 # Check whether --with-sdk-version was given.
7952 if test "${with_sdk_version+set}" = set; then :
7953 withval=$with_sdk_version; aros_sdk_version="$withval"
7954 else
7955 aros_sdk_version="4.1"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7959 $as_echo "$aros_sdk_version" >&6; }
7963 "android")
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7965 $as_echo_n "checking Android SDK path... " >&6; }
7967 # Check whether --with-sdk was given.
7968 if test "${with_sdk+set}" = set; then :
7969 withval=$with_sdk; aros_android_sdk="$withval"
7970 else
7971 aros_android_sdk=$default_android_sdk
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7975 $as_echo "$aros_android_sdk" >&6; }
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7978 $as_echo_n "checking Android NDK path... " >&6; }
7980 # Check whether --with-ndk was given.
7981 if test "${with_ndk+set}" = set; then :
7982 withval=$with_ndk; aros_android_ndk="$withval"
7983 else
7984 aros_android_ndk="none"
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7988 $as_echo "$aros_android_ndk" >&6; }
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7991 $as_echo_n "checking what Android SDK version to use... " >&6; }
7993 # Check whether --with-sdk-version was given.
7994 if test "${with_sdk_version+set}" = set; then :
7995 withval=$with_sdk_version; aros_sdk_version="$withval"
7996 else
7997 aros_sdk_version="12"
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8001 $as_echo "$aros_sdk_version" >&6; }
8003 aros_android_level=android-$aros_sdk_version
8004 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8005 echo "Platform $aros_android_level is not installed in your SDK"
8006 echo "Use --with-sdk-version=<API level number> to select another platform version"
8007 echo "You can check what plaform versions are installed in your SDK"
8008 echo "by examining contents of $aros_android_sdk/platforms directory"
8009 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8012 export PATH="$aros_android_sdk/tools:$PATH"
8013 # Extract the first word of "$android_tool", so it can be a program name with args.
8014 set dummy $android_tool; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if ${ac_cv_path_android_tool+:} false; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8020 case $android_tool in
8021 [\\/]* | ?:[\\/]*)
8022 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8036 done
8037 done
8038 IFS=$as_save_IFS
8041 esac
8043 android_tool=$ac_cv_path_android_tool
8044 if test -n "$android_tool"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8046 $as_echo "$android_tool" >&6; }
8047 else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8053 req_avail=yes
8054 if test "$android_tool" = ""; then
8055 req_avail=no
8057 if test "$android_tool" = "no"; then
8058 req_avail=no
8060 if test "$req_avail" = "no"; then
8061 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8064 if test "$aros_android_ndk" != "none"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8066 $as_echo_n "checking what Android NDK version to use... " >&6; }
8068 # Check whether --with-ndk-version was given.
8069 if test "${with_ndk_version+set}" = set; then :
8070 withval=$with_ndk_version; aros_ndk_version="$withval"
8071 else
8072 aros_ndk_version="9"
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8076 $as_echo "$aros_ndk_version" >&6; }
8079 # Extract the first word of "ant", so it can be a program name with args.
8080 set dummy ant; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if ${ac_cv_path_ant+:} false; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 case $ant in
8087 [\\/]* | ?:[\\/]*)
8088 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8102 done
8103 done
8104 IFS=$as_save_IFS
8107 esac
8109 ant=$ac_cv_path_ant
8110 if test -n "$ant"; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8112 $as_echo "$ant" >&6; }
8113 else
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8119 if test "$ant" = ""; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8121 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8125 $as_echo_n "checking Build debug or release apk... " >&6; }
8127 # Check whether --with-apk-version was given.
8128 if test "${with_apk_version+set}" = set; then :
8129 withval=$with_apk_version; aros_android_antapk=$withval
8130 else
8131 aros_android_antapk=release
8134 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8135 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8138 $as_echo "$aros_android_antapk" >&6; }
8140 if test "$host_os" = "mingw32"; then
8141 android_tool="cmd //c $android_tool"
8144 need_dlopen="no"
8147 esac
8149 #-----------------------------------------------------------------------------
8150 # External toolchains
8151 kernel_tool_prefix="none"
8152 aros_tool_prefix="none"
8153 elf_tool_prefix="${target_cpu}-elf-"
8155 # This is the target configuration switch.
8156 case "$target_os" in
8157 linux*)
8158 aros_target_arch="linux"
8159 aros_target_family="unix"
8160 case "$target_cpu" in
8161 *m68k*)
8162 aros_target_cpu="m68k"
8163 aros_object_format="m68kelf"
8164 aros_flavour="emulcompat"
8165 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8166 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8167 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8168 gcc_target_cpu="mc68000"
8170 *i?86*)
8171 aros_target_cpu="i386"
8172 aros_object_format="elf_i386"
8173 aros_flavour="emulation"
8174 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8175 aros_kernel_ldflags="-Wl,-melf_i386"
8176 aros_nominal_depth=8
8177 gcc_target_cpu="i386"
8178 pci_hidd_target="hidd-pci-linux"
8179 android_tool_dir_prefix="x86"
8180 android_tool_prefix="i686-android-linux"
8181 android_ndk_arch="x86"
8183 *x86_64*)
8184 aros_target_cpu="x86_64"
8185 aros_object_format="elf_x86_64"
8186 aros_flavour="emulation"
8187 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8188 aros_config_cflags="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
8189 aros_nominal_depth=8
8190 pci_hidd_target="hidd-pci-linux"
8192 *powerpc*)
8193 aros_target_cpu="ppc"
8194 aros_object_format="elf32ppc"
8195 aros_flavour="emulation"
8196 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8197 aros_nominal_depth=8
8198 gcc_target_cpu="ppc"
8200 # TODO
8201 # Same as powerpc, but I need this for the nightly build to work again.
8202 # Actually, the nightly should be made working with powerpc target.
8203 # That just was too much work for the moment, another week or two.
8204 *ppc*)
8205 aros_target_cpu="ppc"
8206 aros_object_format="elf32ppc"
8207 aros_flavour="emulation"
8208 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8209 aros_nominal_depth=8
8210 gcc_target_cpu="ppc"
8212 *aarch64*)
8213 aros_target_cpu="aarch64"
8214 target_cpu="aarch64"
8215 aros_object_format="aarch64elf_aros"
8216 aros_flavour="emulation"
8217 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8218 gcc_target_cpu="aarch64"
8219 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8220 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8221 aros_arch_libs="-laeabi"
8222 gcc_default_float_abi="hard"
8223 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8225 *armhf*)
8226 aros_target_cpu="arm"
8227 target_cpu="arm"
8228 aros_object_format="armelf_aros"
8229 aros_flavour="emulation"
8230 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8231 gcc_target_cpu="arm"
8232 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8233 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8234 aros_arch_libs="-laeabi"
8235 gcc_default_float_abi="hard"
8236 android_tool_dir_prefix="arm-linux-androideabi"
8237 android_tool_prefix="arm-linux-androideabi"
8238 android_ndk_arch="arm"
8239 kernel_tool_prefix="arm-linux-gnueabihf-"
8241 *arm*)
8242 aros_target_cpu="arm"
8243 aros_object_format="armelf_aros"
8244 aros_flavour="emulation"
8245 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8246 gcc_target_cpu="arm"
8247 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8248 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8249 aros_arch_libs="-laeabi"
8250 android_tool_dir_prefix="arm-linux-androideabi"
8251 android_tool_prefix="arm-linux-androideabi"
8252 android_ndk_arch="arm"
8253 kernel_tool_prefix="arm-linux-gnueabi-"
8256 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8258 esac
8259 case "$aros_target_variant" in
8260 android)
8262 if test "$android_ndk_arch" = ""; then
8263 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8266 aros_nominal_width=320
8267 aros_nominal_height=480
8268 if test "$aros_android_ndk" = "none"; then
8269 aros_kernel_cflags="-mandroid"
8270 aros_kernel_ldflags="-mandroid"
8271 CFLAGS="-mandroid"
8272 else
8273 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8274 kernel_tool_version=""
8275 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8276 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8277 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8278 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8279 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8281 need_x11=no
8282 host_android_gfx=yes
8283 # Disable implicit PIC mode
8284 aros_target_cflags="$aros_target_cflags -fno-pic"
8285 kernel_tool_prefix="$android_tool_prefix-"
8287 esac
8291 aros_target_arch="pc"
8292 aros_shared_default="no"
8293 target_bootloader="grub2"
8294 case "$target_cpu" in
8295 *i?86*)
8296 aros_target_cpu="i386"
8299 if test "$aros_object_format" = "" ; then
8300 aros_object_format="elf_i386"
8302 aros_flavour="standalone"
8303 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8304 aros_kernel_ldflags="-Wl,-melf_i386"
8305 aros_nominal_width=640
8306 aros_nominal_height=480
8307 gcc_target_cpu="i386"
8309 *x86_64*)
8310 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8311 aros_target_cpu="x86_64"
8312 aros_serial_debug=1
8313 if test "$aros_object_format" = "" ; then
8314 aros_object_format="elf_x86_64"
8316 aros_flavour="standalone"
8317 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8318 aros_config_cflags="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8319 aros_kernel_ldflags=""
8320 aros_nominal_width=640
8321 aros_nominal_height=480
8322 case "$aros_target_variant" in
8323 smp)
8324 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8326 esac
8329 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8331 esac
8334 prep)
8335 aros_target_arch="prep"
8336 aros_shared_default="no"
8337 aros_target_cpu="ppc"
8338 aros_object_format="elf32ppc"
8339 aros_flavour="ppcnative"
8340 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8341 aros_kernel_ldflags=""
8342 aros_nominal_width=640
8343 aros_nominal_height=480
8344 gcc_target_cpu="ppc"
8347 freebsd*)
8348 aros_target_arch="freebsd"
8349 aros_target_family="unix"
8350 aros_target_cpu="i386"
8351 aros_flavour="emulation"
8352 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8353 gcc_target_cpu="i386"
8355 aros_target_strip_flags="-x"
8358 darwin*)
8359 aros_target_arch="darwin"
8360 aros_target_family="unix"
8361 aros_flavour="emulation"
8362 case "$target_cpu" in
8363 *i?86*)
8364 aros_ios_platform="iPhoneSimulator"
8365 aros_target_cpu="i386"
8366 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8367 aros_kernel_ldflags=""
8368 aros_macosx_version="10.4"
8369 aros_nominal_depth=8
8370 gcc_target_cpu="i386"
8371 aros_object_format="elf_i386"
8372 aros_kernel_ar_flags="-cr"
8373 aros_target_strip_flags="-x"
8374 kernel_tool_flags="-m32"
8376 *x86_64*)
8377 aros_target_cpu="x86_64"
8378 aros_object_format="elf_x86_64"
8379 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8380 aros_macosx_version="10.6"
8381 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8382 aros_kernel_cflags="-m64"
8383 aros_kernel_ldflags="-m64"
8384 aros_target_cflags="-mcmodel=large"
8385 aros_nominal_depth=8
8386 aros_kernel_ar="ar"
8387 aros_kernel_ar_flags="-cr"
8388 aros_kernel_ld="ld"
8389 aros_kernel_as="as"
8390 aros_kernel_ranlib="ranlib"
8391 aros_kernel_nm="nm"
8392 aros_kernel_strip="strip"
8393 kernel_tool_prefix="i686-apple-darwin10-"
8395 *ppc*)
8396 aros_target_cpu="ppc"
8397 aros_object_format="elf32ppc"
8398 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8399 aros_kernel_ldflags=""
8400 aros_macosx_version="10.0"
8401 aros_nominal_depth=8
8402 gcc_target_cpu="ppc"
8403 aros_kernel_ar="ar"
8404 aros_kernel_ar_flags="-cr"
8405 aros_kernel_ld="ld -arch ppc"
8406 aros_kernel_as="as -arch ppc"
8407 aros_kernel_ranlib="ranlib -arch ppc"
8408 aros_kernel_nm="nm -arch ppc"
8409 aros_kernel_strip="strip -arch ppc"
8410 kernel_tool_prefix="powerpc-apple-darwin10-"
8412 *arm*)
8413 aros_ios_platform="iPhoneOS"
8414 aros_target_cpu="arm"
8415 aros_object_format="armelf_aros"
8416 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8417 aros_arch_libs="-laeabi"
8418 aros_nominal_depth=8
8419 gcc_target_cpu="arm"
8420 aros_kernel_ar="ar"
8421 aros_kernel_ar_flags="-cr"
8422 aros_kernel_ld="ld -arch arm"
8423 aros_kernel_ranlib="ranlib -arch arm"
8424 kernel_tool_prefix="arm-apple-darwin10-"
8425 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8428 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8430 esac
8431 case "$aros_target_variant" in
8432 ios)
8433 aros_ios_version="3.0"
8434 aros_nominal_width=320
8435 aros_nominal_height=480
8436 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8437 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8438 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8439 need_x11=no
8440 # This is here because it may depend on iOS or SDK version
8441 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8442 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8443 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8446 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8447 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8449 esac
8452 dragonfly*)
8453 aros_target_arch="dragonfly"
8454 aros_target_family="unix"
8455 aros_flavour="emulation"
8456 case "$target_cpu" in
8457 *i?86*)
8458 aros_target_cpu="i386"
8459 aros_object_format="elf_i386"
8460 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8462 *x86_64*)
8463 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8464 aros_target_cpu="x86_64"
8465 aros_object_format="elf_x86_64"
8466 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8469 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8471 esac
8474 netbsd*)
8475 aros_target_arch="netbsd"
8476 aros_target_family="unix"
8477 case "$target_cpu" in
8478 *m68k*)
8479 aros_target_cpu="m68k"
8480 aros_object_format="m68kelf"
8481 aros_flavour="emulcompat"
8482 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8483 gcc_target_cpu="mc68000"
8485 *i?86*)
8486 aros_target_cpu="i386"
8487 aros_object_format="elf_i386"
8488 aros_flavour="emulation"
8489 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8490 aros_nominal_depth=8
8491 gcc_target_cpu="i386"
8494 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8496 esac
8497 aros_target_genmap="-Wl,-M -Xlinker >"
8498 aros_flavour="emulation"
8499 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8502 openbsd*)
8503 aros_target_arch="openbsd"
8504 aros_target_family="unix"
8505 case "$target_cpu" in
8506 *i?86*)
8507 aros_target_cpu="i386"
8508 aros_object_format="elf_i386"
8509 aros_flavour="emulation"
8510 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8511 gcc_target_cpu="i386"
8514 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8516 esac
8517 aros_target_genmap="-Wl,-M -Xlinker >"
8518 aros_target_nm_flags="-u"
8519 aros_flavour="emulation"
8522 solaris*)
8523 aros_target_arch="solaris"
8524 aros_target_family="unix"
8525 case "$target_cpu" in
8526 *i?86*)
8527 aros_target_cpu="i386"
8528 aros_object_format="elf_i386"
8529 aros_flavour="emulation"
8530 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8531 aros_nominal_depth=8
8532 gcc_target_cpu="i386"
8534 *sparc*)
8535 aros_target_cpu="sparc"
8536 aros_object_format="elf_sparc"
8537 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8538 gcc_target_cpu="sparc"
8541 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8543 esac
8544 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8545 aros_flavour="emulation"
8548 morphos*)
8549 aros_target_arch="morphos"
8550 aros_shared_default="no"
8551 aros_target_cpu="ppc"
8552 aros_object_format="elf_ppc"
8553 aros_flavour="nativecompat"
8554 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8555 gcc_target_cpu="ppc"
8558 sam440)
8559 aros_target_arch="sam440"
8560 aros_shared_default="no"
8561 aros_target_cpu="ppc"
8562 aros_object_format="elf32ppc"
8563 aros_flavour="ppcnative"
8564 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8565 aros_kernel_ldflags=""
8566 aros_nominal_width=1024
8567 aros_nominal_height=768
8568 aros_nominal_depth=24
8569 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8570 gcc_target_cpu="powerpc"
8573 efika)
8574 aros_target_arch="efika"
8575 aros_shared_default="no"
8576 aros_target_cpu="arm"
8577 aros_object_format="armelf_aros"
8578 aros_flavour="standalone"
8579 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8580 aros_kernel_ldflags=""
8581 aros_nominal_width=1024
8582 aros_nominal_height=600
8583 aros_arch_libs="-laeabi"
8584 gcc_default_cpu="armv7-a"
8585 gcc_default_fpu="vfpv3"
8586 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8587 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8588 aros_optimization_cflags="$aros_optimization_cflags -Os"
8589 case "$target_cpu" in
8590 *armhf*)
8591 gcc_default_float_abi="hard"
8592 target_cpu=arm
8593 aros_target_cpu=arm
8595 *arm*)
8596 gcc_default_float_abi="softfp"
8599 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8601 esac
8604 chrp)
8605 aros_target_arch="chrp"
8606 aros_shared_default="no"
8607 aros_target_cpu="ppc"
8608 aros_object_format="elf32ppc"
8609 aros_flavour="ppcnative"
8610 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8611 aros_kernel_ldflags=""
8612 aros_nominal_width=640
8613 aros_nominal_height=480
8614 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8615 gcc_target_cpu="powerpc"
8616 case "$aros_target_variant" in
8617 efika)
8618 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8620 esac
8623 r*pi)
8624 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8625 aros_flavour="standalone"
8626 aros_target_arch="raspi"
8628 aros_shared_default="no"
8630 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8632 case "$target_cpu" in
8633 *aarch64*)
8634 aros_target_cpu="aarch64"
8635 gcc_default_cpu="aarch64"
8636 aros_object_format="aarch64elf_aros"
8638 *armhf*)
8639 aros_target_cpu="arm"
8640 gcc_default_cpu="armv6zk"
8641 gcc_default_cpu_tune="arm1176jzf-s"
8642 aros_object_format="armelf_aros"
8643 aros_config_cflags="$aros_config_cflags -marm"
8644 aros_config_aflags="$aros_config_aflags -marm"
8645 aros_kernel_cflags="$aros_kernel_cflags -marm"
8646 aros_target_cflags="$aros_kernel_cflags -marm"
8647 aros_target_mkdep="$aros_target_mkdep -Darm"
8648 aros_arch_libs="-laeabi"
8650 *arm*)
8651 aros_target_cpu="arm"
8652 gcc_default_cpu="armv6zk"
8653 gcc_default_cpu_tune="arm1176jzf-s"
8654 aros_object_format="armelf_aros"
8655 aros_config_cflags="$aros_config_cflags -marm"
8656 aros_config_aflags="$aros_config_aflags -marm"
8657 aros_kernel_cflags="$aros_kernel_cflags -marm"
8658 aros_target_cflags="$aros_kernel_cflags -marm"
8659 aros_target_mkdep="$aros_target_mkdep -Darm"
8660 aros_arch_libs="-laeabi"
8663 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8665 esac
8667 aros_config_cflags="$aros_config_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8668 aros_config_aflags="$aros_config_aflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8669 aros_kernel_cflags="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8670 aros_target_cflags="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8672 case "$aros_target_variant" in
8673 smp)
8674 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8676 esac
8679 stm32f7_discovery)
8680 aros_flavour="standalone"
8681 aros_target_arch="stm32f7_discovery"
8682 aros_target_cpu="arm"
8683 aros_target_cpu_mode="thumb2"
8684 aros_object_format="armelf_aros"
8685 aros_shared_default="no"
8687 # stm32f7 has DSP opcode support
8688 gcc_default_cpu="armv7e-m"
8689 # gcc_default_cpu="armv7-m"
8690 gcc_default_cpu_tune="cortex-m7"
8691 gcc_default_fpu="fpv4-sp-d16"
8692 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8693 # gcc_default_fpu="fpv5-sp-d16"
8694 gcc_default_float_abi="hard"
8696 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8699 amiga*)
8700 aros_target_arch="amiga"
8701 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8702 aros_shared_default="no"
8704 case "$target_cpu" in
8705 *m68k*)
8706 # Check whether --enable-amigaos_compliance was given.
8707 if test "${enable_amigaos_compliance+set}" = set; then :
8708 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8711 aros_enable_mmu=no
8712 aros_target_cpu="m68k"
8713 aros_object_format="m68kelf"
8714 aros_flavour="standcompat"
8715 gcc_target_cpu="m68000"
8716 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8717 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -DNOLIBINLINE"
8718 aros_optimization_cflags="$aros_optimization_cflags -Os"
8719 aros_config_aflags="$aros_config_aflags"
8720 aros_target_strip_flags="-R.comment --strip-debug"
8721 aros_nominal_width=640
8722 aros_nominal_height=256
8723 aros_nominal_depth=2
8725 *ppc*)
8726 aros_cpu="ppc"
8727 aros_flavour="native"
8728 gcc_target_cpu="ppc"
8731 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8733 esac
8736 mingw*)
8737 aros_target_arch="mingw32"
8738 aros_shared_default="no"
8739 aros_flavour="emulation"
8740 aros_shared_cflags=""
8741 need_crosstools="yes"
8742 need_dlopen="no"
8743 rescomp="windres"
8744 case "$target_cpu" in
8745 *i?86*)
8746 aros_target_cpu="i386"
8747 aros_object_format="elf_i386"
8748 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8749 aros_nominal_depth=8
8750 gcc_target_cpu="i386"
8752 kernel_tool_prefix="i386-mingw32-"
8754 *x86_64*)
8755 aros_target_cpu="x86_64"
8756 aros_object_format="elf_x86_64"
8757 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8758 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8759 aros_nominal_depth=8
8760 kernel_tool_prefix="x86_64-w64-mingw32-"
8762 *arm*)
8763 aros_target_cpu="arm"
8764 aros_object_format="armelf_aros"
8765 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8766 aros_arch_libs="-laeabi"
8767 aros_nominal_depth=8
8768 gcc_target_cpu="arm"
8769 gcc_default_float_abi="soft"
8770 kernel_tool_prefix="arm-mingw32ce-"
8771 aros_nominal_width=160
8772 aros_nominal_height=160
8775 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8777 esac
8778 if test $host_os = "cygwin"; then
8779 aros_kernel_cflags="-mno-cygwin"
8782 pp*)
8783 aros_target_arch="pp"
8784 aros_shared_default="no"
8785 case "$target_cpu" in
8786 *m68k*)
8787 aros_target_cpu="m68k"
8788 aros_object_format="m68kelf"
8789 aros_flavour="palmnative"
8790 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8791 aros_nominal_width=160
8792 aros_nominal_height=160
8793 aros_nominal_depth=1
8794 aros_target_ar_flags="cru"
8795 aros_compiler_libs="-lgcc1"
8796 aros_shared_default=no
8797 aros_shared_cflags="-fpic"
8798 aros_shared_aflags=""
8799 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8800 aros_kernel_ldflags="-Wl,-rpath,./lib"
8801 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8802 aros_debug_aflags=""
8803 aros_debug_ldflags="$aros_symbols_debug"
8804 aros_mungwall_debug="0"
8805 aros_modules_debug="0"
8806 gcc_target_cpu="mc68000"
8807 ignore_undefined_symbols="-ius"
8810 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8812 esac
8815 mac*)
8816 aros_target_arch="mac"
8817 aros_shared_default="no"
8818 case "$target_cpu" in
8819 *m68k*)
8820 aros_target_cpu="m68k"
8821 aros_object_format="m68kelf"
8822 aros_flavour="mac68knative"
8823 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8824 aros_nominal_width=512
8825 aros_nominal_height=384
8826 aros_nominal_depth=8
8827 aros_target_ar_flags="cru"
8828 aros_compiler_libs="-lgcc1"
8829 aros_shared_default=no
8830 aros_shared_cflags="-fpic"
8831 aros_shared_aflags=""
8832 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8833 aros_kernel_ldflags="-Wl,-rpath,./lib"
8834 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8835 aros_debug_aflags=""
8836 aros_debug_ldflags="$aros_symbols_debug"
8837 aros_mungwall_debug="0"
8838 aros_modules_debug="0"
8839 gcc_target_cpu="mc68000"
8840 ignore_undefined_symbols="-ius"
8843 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8845 esac
8849 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8851 esac
8853 #-----------------------------------------------------------------------------
8854 crosstools_guess="yes"
8855 aros_target_toolchain="no"
8856 aros_config_sysroot=""
8857 aros_kernel_sysroot=""
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8860 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8862 # Check whether --with-kernel-toolchain-prefix was given.
8863 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8864 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8868 $as_echo "$kernel_tool_prefix" >&6; }
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8871 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8873 # Check whether --with-elf-toolchain-prefix was given.
8874 if test "${with_elf_toolchain_prefix+set}" = set; then :
8875 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8876 crosstools_guess="no"
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8880 $as_echo "$elf_tool_prefix" >&6; }
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8883 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8885 # Check whether --with-aros-toolchain was given.
8886 if test "${with_aros_toolchain+set}" = set; then :
8887 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8888 crosstools_guess="no"
8891 if test "$aros_tool_prefix" = "yes" ; then
8892 aros_tool_prefix=$aros_target_cpu-aros-
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8895 $as_echo "$aros_tool_prefix" >&6; }
8897 #-----------------------------------------------------------------------------
8898 # Checking if we should build crosstools..
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8900 $as_echo_n "checking whether to build crosstools... " >&6; }
8901 # Check whether --enable-crosstools was given.
8902 if test "${enable_crosstools+set}" = set; then :
8903 enableval=$enable_crosstools; crosstools="$enableval"
8904 else
8905 crosstools="$crosstools_guess"
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8909 $as_echo "$crosstools" >&6; }
8911 if test "${crosstools}" = "yes"; then
8912 if test "${crosstools_guess}" = "no"; then
8913 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8917 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8918 aros_target_toolchain="yes"
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8922 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8924 # Check whether --with-aros-toolchain-install was given.
8925 if test "${with_aros_toolchain_install+set}" = set; then :
8926 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8929 if test "x$aros_toolchain_install" = "x"; then
8930 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8931 else
8932 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8933 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8934 if test "$crosstools_guess" = "no" ; then
8935 toolchain_needs_sysroot=yes
8937 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8938 aros_kernel_sysroot = $aros_config_sysroot
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8943 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8946 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8947 if test "$toolchain_needs_sysroot" = "yes" ; then
8948 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8951 $as_echo "$toolchain_needs_sysroot" >&6; }
8953 #-----------------------------------------------------------------------------
8954 if test "$aros_toolchain" = "gnu" ; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8956 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8959 # Check whether --with-binutils-version was given.
8960 if test "${with_binutils_version+set}" = set; then :
8961 withval=$with_binutils_version; use_binutils_version="$withval"
8962 else
8963 use_binutils_version=""
8966 if test "$use_binutils_version" = ""; then
8967 target_binutils_version="$default_binutils_version"
8968 else
8969 target_binutils_version="$use_binutils_version"
8971 if test "$aros_toolchain" = "gnu" ; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8973 $as_echo "$target_binutils_version" >&6; }
8977 # Helper to identify gcc version
8980 #-----------------------------------------------------------------------------
8981 if test "$aros_toolchain" = "gnu" ; then
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8983 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8986 # Check whether --with-gcc-version was given.
8987 if test "${with_gcc_version+set}" = set; then :
8988 withval=$with_gcc_version; use_gcc_version="$withval"
8989 else
8990 use_gcc_version=""
8993 if test "$use_gcc_version" = ""; then
8994 if test "${crosstools}" = "no"; then
8995 if test "x$aros_toolchain_install" != "x"; then
8997 target_gcc_version=""
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8999 $as_echo_n "checking gcc version... " >&6; }
9000 if ${ax_cv_gcc_version+:} false; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9004 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9005 if test "x$ax_cv_gcc_version" = "x"; then :
9007 ax_cv_gcc_version=""
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9013 $as_echo "$ax_cv_gcc_version" >&6; }
9014 target_gcc_version=$ax_cv_gcc_version
9019 if test "$use_gcc_version" = ""; then
9020 target_gcc_version="$default_gcc_version"
9022 else
9023 target_gcc_version="$use_gcc_version"
9025 if test "$aros_toolchain" = "gnu" ; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9027 $as_echo "$target_gcc_version" >&6; }
9029 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9030 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9031 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9033 gcc_fix_bitfields="false"
9034 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9035 gcc_fix_bitfields="true"
9036 else
9037 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9038 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9039 gcc_fix_bitfields="true"
9044 if test "$gcc_fix_bitfields" = "true" ; then
9045 case "$aros_target_cpu" in
9046 *x86_64*)
9047 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9048 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
9050 i386)
9051 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9052 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
9054 esac
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9059 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9060 # Check whether --enable-objc was given.
9061 if test "${enable_objc+set}" = set; then :
9062 enableval=$enable_objc; objc="$enableval"
9063 else
9064 objc="no"
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9068 $as_echo "$objc" >&6; }
9069 if test "x$objc" = "xyes"; then
9070 objc_target="$objc"
9071 else
9072 objc_target="no-objc"
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9076 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9077 # Check whether --enable-java was given.
9078 if test "${enable_java+set}" = set; then :
9079 enableval=$enable_java; java="$enableval"
9080 else
9081 java="no"
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9085 $as_echo "$java" >&6; }
9086 if test "x$java" != "xno"; then
9087 java_target="$java"
9088 else
9089 java_target="no-java"
9092 spec_obj_format="-m $aros_object_format"
9093 # Now process extra architecture-specific options.
9094 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9095 # as well as floating-point ABI.
9096 case "$aros_target_cpu" in
9097 *x86_64*)
9098 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9100 arm*)
9101 if test "$gcc_default_cpu" = ""; then
9102 gcc_default_cpu="armv6"
9104 if test "$gcc_default_fpu" = ""; then
9105 gcc_default_fpu="vfp"
9107 if test "$gcc_default_float_abi" = ""; then
9108 if test "$target_cpu" = "armhf"; then
9109 gcc_default_float_abi="hard"
9110 else
9111 gcc_default_float_abi="softfp"
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9116 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9118 # Check whether --with-cpu was given.
9119 if test "${with_cpu+set}" = set; then :
9120 withval=$with_cpu; aros_gcc_cpu="$withval"
9121 else
9122 aros_gcc_cpu=$gcc_default_cpu
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9126 $as_echo "$aros_gcc_cpu" >&6; }
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9129 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9131 # Check whether --with-fpu was given.
9132 if test "${with_fpu+set}" = set; then :
9133 withval=$with_fpu; aros_gcc_fpu="$withval"
9134 else
9135 aros_gcc_fpu=$gcc_default_fpu
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9139 $as_echo "$aros_gcc_fpu" >&6; }
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9142 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9144 # Check whether --with-float was given.
9145 if test "${with_float+set}" = set; then :
9146 withval=$with_float; aros_gcc_float_abi="$withval"
9147 else
9148 aros_gcc_float_abi=$gcc_default_float_abi
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9152 $as_echo "$aros_gcc_float_abi" >&6; }
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9155 $as_echo_n "checking Which ARM mode to use... " >&6; }
9156 if test "$aros_target_cpu_mode" = ""; then
9157 aros_target_cpu_mode="arm32"
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9159 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9160 else
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9162 $as_echo "$aros_target_cpu_mode" >&6; }
9165 case "$aros_target_cpu_mode" in
9166 arm32)
9167 gcc_default_mode="arm"
9168 aros_isa_flags="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9170 arm64)
9171 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9173 thumb)
9174 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9176 thumb1)
9177 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9179 thumb2)
9180 gcc_default_mode="thumb"
9181 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9182 aros_isa_flags="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9185 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9187 esac
9189 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9190 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9192 i386)
9193 aros_isa_flags="-m32 -march=i486"
9194 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
9195 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9197 esac
9199 # Some architectures may need custom ELF specs.
9200 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9201 elf_specs_in=config/${aros_object_format}-specs.in
9202 else
9203 elf_specs_in=config/elf-specs.in
9206 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9207 # Since we override specs, we may need to put these defines there
9208 if test "$gcc_target_cpu" != ""; then
9209 gcc_target_cpu="-D__${gcc_target_cpu}__"
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9213 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9215 # Check whether --with-portssources was given.
9216 if test "${with_portssources+set}" = set; then :
9217 withval=$with_portssources; with_portssrcdir=$withval
9218 else
9219 with_portssrcdir="default"
9222 if test "$with_portssrcdir" = "default"; then
9223 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9224 else
9225 AROS_PORTSSRCDIR="$with_portssrcdir"
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9228 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9231 $as_echo_n "checking which bootloader to use... " >&6; }
9233 # Check whether --with-bootloader was given.
9234 if test "${with_bootloader+set}" = set; then :
9235 withval=$with_bootloader; target_bootloader=$withval
9236 else
9237 target_bootloader=$target_bootloader
9240 if test "$target_bootloader" = "none"; then
9241 aros_target_bootloader=""
9242 else
9243 aros_target_bootloader="$target_bootloader"
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9246 $as_echo "$target_bootloader" >&6; }
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9249 $as_echo_n "checking which icon-set to use... " >&6; }
9251 # Check whether --with-iconset was given.
9252 if test "${with_iconset+set}" = set; then :
9253 withval=$with_iconset; target_iconset=$withval
9254 else
9255 target_iconset="default"
9258 if test "$target_iconset" = "default"; then
9259 aros_target_iconset="Gorilla"
9260 target_iconset="default (Gorilla)"
9261 else
9262 aros_target_iconset="$target_iconset"
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9265 $as_echo "$target_iconset" >&6; }
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9268 $as_echo_n "checking which GUI Theme to use... " >&6; }
9270 # Check whether --with-theme was given.
9271 if test "${with_theme+set}" = set; then :
9272 withval=$with_theme; target_guitheme=$withval
9273 else
9274 target_guitheme="default"
9277 if test "$target_guitheme" = "default"; then
9278 aros_target_guitheme="Ice"
9279 else
9280 aros_target_guitheme="$target_guitheme"
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9283 $as_echo "$aros_target_guitheme" >&6; }
9285 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9286 # for target code)
9287 cross_compiling=no
9289 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9290 cross_compiling=yes
9293 if test "$aros_host_cpu" == "x86_64" ; then
9294 if test "$aros_target_cpu" == "i386" ; then
9295 cross_compiling=no
9299 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9300 if test "$aros_host_arch" != "$aros_target_arch" ; then
9301 cross_compiling=yes
9303 else
9304 if test "$host_cc_elf" = "no" ; then
9305 cross_compiling=yes
9309 if test "$cross_compiling" = "no" ; then
9310 kernel_tool_prefix=""
9311 if test "$host_cc_elf" = "yes" ; then
9312 elf_tool_prefix=""
9316 if test "$kernel_tool_version" != ""; then
9317 kernel_tool_version="-$kernel_tool_version"
9320 #######################################################################
9321 ## Compute what toolchains to use, and their paths ##
9322 #######################################################################
9324 # This takes, as input:
9325 # crosstools {yes,no}
9326 # kernel_tool_version {"",[version]}
9327 # target_tool_version {"",[version]}
9328 # kernel_tool_prefix {none,[some-arch-os-]}
9329 # gnu-toolchain -:
9330 # target_tool_prefix ${aros_target_cpu}-aros-
9331 # aros_tool_prefix ${aros_target_cpu}-aros-
9333 # The output is
9334 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9335 # Where the 'kernel' binaries are located
9336 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9337 # Where the 'target' binaries are located
9338 # (not the symlink farm - that is aros_target_*!)
9340 # The rules are:
9341 # if crosstools then
9342 # if kernel_tools_prefix = "no-kernel-prefix-"
9343 # aros_kernel_* = crosstools cc paths
9344 # aros_kernel_cc = elf cc wrapper around crosstools cc
9345 # else
9346 # VALIDATE(${kernel_tools_prefix}*)
9347 # aros_kernel_* = ${kernel_tools_prefix}*
9348 # if ${kernel_tools_prefix}cc is an AROS gcc
9349 # aros_kernel_cc = ${kernel_tools_prefix}cc
9350 # else
9351 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9352 # fi
9353 # fi
9355 # orig_target_* = aros built crosstools
9356 # orig_target_cc = elf cc wrapper around crosstools cc
9357 # else
9358 # VALIDATE(${kernel_tools_prefix}*)
9360 # orig_target_* = aros_kernel_*
9361 # if aros_kernel_cc is an AROS gcc
9362 # orig_target_cc = aros_kernel_cc
9363 # else
9364 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9365 # fi
9366 # fi
9368 if test "$aros_toolchain" = "gnu" ; then
9369 target_tool_prefix="${aros_target_cpu}-aros-"
9370 elif test "$aros_toolchain" = "llvm" ; then
9371 target_tool_prefix="bin/"
9374 if test "$kernel_tool_prefix" != "" ; then
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9376 $as_echo_n "checking which kernel tools... " >&6; }
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9378 $as_echo "$kernel_tool_prefix" >&6; };
9381 if test "$kernel_tool_prefix" = "none" ; then
9382 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9383 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9385 else
9386 # Kernel tools required - find them
9387 # Note that 'normally', aros_kernel_* overrides will be
9388 # empty, unless specified in the per-arch sections above.
9389 if test "x$aros_kernel_cpp" = "x"; then
9390 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9392 if test "${kernel_tool_version}" != ""; then
9393 if test "$aros_kernel_cpp" != ""; then
9394 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9395 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9396 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9400 if test "$aros_kernel_cpp" = ""; then
9401 if test "$cross_compiling" = "yes" ; then
9402 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9403 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9405 $as_echo_n "checking for $ac_word... " >&6; }
9406 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 case $aros_kernel_cpp in
9410 [\\/]* | ?:[\\/]*)
9411 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415 for as_dir in $PATH
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9421 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9423 break 2
9425 done
9426 done
9427 IFS=$as_save_IFS
9430 esac
9432 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9433 if test -n "$aros_kernel_cpp"; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9435 $as_echo "$aros_kernel_cpp" >&6; }
9436 else
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9438 $as_echo "no" >&6; }
9442 else
9443 if test "$GCC" = "yes"; then
9444 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9445 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9446 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448 $as_echo_n "checking for $ac_word... " >&6; }
9449 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9450 $as_echo_n "(cached) " >&6
9451 else
9452 case $aros_kernel_cpp in
9453 [\\/]* | ?:[\\/]*)
9454 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 for as_dir in `dirname $aros_gcc_cpp`
9460 IFS=$as_save_IFS
9461 test -z "$as_dir" && as_dir=.
9462 for ac_exec_ext in '' $ac_executable_extensions; do
9463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9464 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9466 break 2
9468 done
9469 done
9470 IFS=$as_save_IFS
9473 esac
9475 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9476 if test -n "$aros_kernel_cpp"; then
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9478 $as_echo "$aros_kernel_cpp" >&6; }
9479 else
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481 $as_echo "no" >&6; }
9486 if test "$aros_kernel_cpp" = ""; then
9487 # Extract the first word of "cpp", so it can be a program name with args.
9488 set dummy cpp; ac_word=$2
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490 $as_echo_n "checking for $ac_word... " >&6; }
9491 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 case $aros_kernel_cpp in
9495 [\\/]* | ?:[\\/]*)
9496 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9506 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9510 done
9511 done
9512 IFS=$as_save_IFS
9515 esac
9517 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9518 if test -n "$aros_kernel_cpp"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9520 $as_echo "$aros_kernel_cpp" >&6; }
9521 else
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9529 else
9530 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9531 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9532 set dummy $aros_kernel_cpp; ac_word=$2
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534 $as_echo_n "checking for $ac_word... " >&6; }
9535 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 case $aros_kernel_cpp in
9539 [\\/]* | ?:[\\/]*)
9540 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544 for as_dir in $PATH
9546 IFS=$as_save_IFS
9547 test -z "$as_dir" && as_dir=.
9548 for ac_exec_ext in '' $ac_executable_extensions; do
9549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9550 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9552 break 2
9554 done
9555 done
9556 IFS=$as_save_IFS
9559 esac
9561 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9562 if test -n "$aros_kernel_cpp"; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9564 $as_echo "$aros_kernel_cpp" >&6; }
9565 else
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9571 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9574 req_avail=yes
9575 if test "$aros_kernel_cpp" = ""; then
9576 req_avail=no
9578 if test "$aros_kernel_cpp" = "no"; then
9579 req_avail=no
9581 if test "$req_avail" = "no"; then
9582 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9585 if test "x$aros_kernel_cc" = "x"; then
9586 aros_kernel_cc=${kernel_tool_prefix}${CC}
9588 if test "${kernel_tool_version}" != ""; then
9589 if test "$aros_kernel_cc" != ""; then
9590 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9591 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9592 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9596 if test "$aros_kernel_cc" = ""; then
9597 if test "$cross_compiling" = "yes" ; then
9598 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9599 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601 $as_echo_n "checking for $ac_word... " >&6; }
9602 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9603 $as_echo_n "(cached) " >&6
9604 else
9605 case $aros_kernel_cc in
9606 [\\/]* | ?:[\\/]*)
9607 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611 for as_dir in $PATH
9613 IFS=$as_save_IFS
9614 test -z "$as_dir" && as_dir=.
9615 for ac_exec_ext in '' $ac_executable_extensions; do
9616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9617 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9619 break 2
9621 done
9622 done
9623 IFS=$as_save_IFS
9626 esac
9628 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9629 if test -n "$aros_kernel_cc"; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9631 $as_echo "$aros_kernel_cc" >&6; }
9632 else
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634 $as_echo "no" >&6; }
9638 else
9639 if test "$GCC" = "yes"; then
9640 aros_gcc_cc=`$CC -print-prog-name=cc`
9641 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9642 set dummy `basename $aros_gcc_cc`; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 case $aros_kernel_cc in
9649 [\\/]* | ?:[\\/]*)
9650 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in `dirname $aros_gcc_cc`
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9660 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 break 2
9664 done
9665 done
9666 IFS=$as_save_IFS
9669 esac
9671 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9672 if test -n "$aros_kernel_cc"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9674 $as_echo "$aros_kernel_cc" >&6; }
9675 else
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9682 if test "$aros_kernel_cc" = ""; then
9683 # Extract the first word of "cc", so it can be a program name with args.
9684 set dummy cc; ac_word=$2
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9686 $as_echo_n "checking for $ac_word... " >&6; }
9687 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 case $aros_kernel_cc in
9691 [\\/]* | ?:[\\/]*)
9692 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9696 for as_dir in $PATH
9698 IFS=$as_save_IFS
9699 test -z "$as_dir" && as_dir=.
9700 for ac_exec_ext in '' $ac_executable_extensions; do
9701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9702 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9704 break 2
9706 done
9707 done
9708 IFS=$as_save_IFS
9711 esac
9713 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9714 if test -n "$aros_kernel_cc"; then
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9716 $as_echo "$aros_kernel_cc" >&6; }
9717 else
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719 $as_echo "no" >&6; }
9725 else
9726 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9727 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9728 set dummy $aros_kernel_cc; ac_word=$2
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9730 $as_echo_n "checking for $ac_word... " >&6; }
9731 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9732 $as_echo_n "(cached) " >&6
9733 else
9734 case $aros_kernel_cc in
9735 [\\/]* | ?:[\\/]*)
9736 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740 for as_dir in $PATH
9742 IFS=$as_save_IFS
9743 test -z "$as_dir" && as_dir=.
9744 for ac_exec_ext in '' $ac_executable_extensions; do
9745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9746 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9748 break 2
9750 done
9751 done
9752 IFS=$as_save_IFS
9755 esac
9757 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9758 if test -n "$aros_kernel_cc"; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9760 $as_echo "$aros_kernel_cc" >&6; }
9761 else
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763 $as_echo "no" >&6; }
9767 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9770 req_avail=yes
9771 if test "$aros_kernel_cc" = ""; then
9772 req_avail=no
9774 if test "$aros_kernel_cc" = "no"; then
9775 req_avail=no
9777 if test "$req_avail" = "no"; then
9778 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9781 if test "x$aros_kernel_cxx" = "x"; then
9782 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9784 if test "${kernel_tool_version}" != ""; then
9785 if test "$aros_kernel_cxx" != ""; then
9786 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9787 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9788 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9792 if test "$aros_kernel_cxx" = ""; then
9793 if test "$cross_compiling" = "yes" ; then
9794 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9795 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 case $aros_kernel_cxx in
9802 [\\/]* | ?:[\\/]*)
9803 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807 for as_dir in $PATH
9809 IFS=$as_save_IFS
9810 test -z "$as_dir" && as_dir=.
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9813 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9815 break 2
9817 done
9818 done
9819 IFS=$as_save_IFS
9822 esac
9824 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9825 if test -n "$aros_kernel_cxx"; then
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9827 $as_echo "$aros_kernel_cxx" >&6; }
9828 else
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9830 $as_echo "no" >&6; }
9834 else
9835 if test "$GCC" = "yes"; then
9836 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9837 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9838 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9840 $as_echo_n "checking for $ac_word... " >&6; }
9841 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9842 $as_echo_n "(cached) " >&6
9843 else
9844 case $aros_kernel_cxx in
9845 [\\/]* | ?:[\\/]*)
9846 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9850 for as_dir in `dirname $aros_gcc_cxx`
9852 IFS=$as_save_IFS
9853 test -z "$as_dir" && as_dir=.
9854 for ac_exec_ext in '' $ac_executable_extensions; do
9855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9856 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9858 break 2
9860 done
9861 done
9862 IFS=$as_save_IFS
9865 esac
9867 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9868 if test -n "$aros_kernel_cxx"; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9870 $as_echo "$aros_kernel_cxx" >&6; }
9871 else
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873 $as_echo "no" >&6; }
9878 if test "$aros_kernel_cxx" = ""; then
9879 # Extract the first word of "cxx", so it can be a program name with args.
9880 set dummy cxx; ac_word=$2
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9882 $as_echo_n "checking for $ac_word... " >&6; }
9883 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 case $aros_kernel_cxx in
9887 [\\/]* | ?:[\\/]*)
9888 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9892 for as_dir in $PATH
9894 IFS=$as_save_IFS
9895 test -z "$as_dir" && as_dir=.
9896 for ac_exec_ext in '' $ac_executable_extensions; do
9897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9898 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 break 2
9902 done
9903 done
9904 IFS=$as_save_IFS
9907 esac
9909 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9910 if test -n "$aros_kernel_cxx"; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9912 $as_echo "$aros_kernel_cxx" >&6; }
9913 else
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915 $as_echo "no" >&6; }
9921 else
9922 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9923 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
9924 set dummy $aros_kernel_cxx; ac_word=$2
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926 $as_echo_n "checking for $ac_word... " >&6; }
9927 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9928 $as_echo_n "(cached) " >&6
9929 else
9930 case $aros_kernel_cxx in
9931 [\\/]* | ?:[\\/]*)
9932 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 for as_dir in $PATH
9938 IFS=$as_save_IFS
9939 test -z "$as_dir" && as_dir=.
9940 for ac_exec_ext in '' $ac_executable_extensions; do
9941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9942 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9944 break 2
9946 done
9947 done
9948 IFS=$as_save_IFS
9951 esac
9953 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9954 if test -n "$aros_kernel_cxx"; then
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9956 $as_echo "$aros_kernel_cxx" >&6; }
9957 else
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959 $as_echo "no" >&6; }
9963 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
9966 # If it's set, make sure it's really there
9967 if test "x$aros_kernel_cxx" != "x" ; then
9968 req_avail=yes
9969 if test "$aros_kernel_cxx" = ""; then
9970 req_avail=no
9972 if test "$aros_kernel_cxx" = "no"; then
9973 req_avail=no
9975 if test "$req_avail" = "no"; then
9976 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9980 if test "$aros_kernel_ld" = ""; then
9981 if test "$cross_compiling" = "yes" ; then
9982 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9983 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985 $as_echo_n "checking for $ac_word... " >&6; }
9986 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 case $aros_kernel_ld in
9990 [\\/]* | ?:[\\/]*)
9991 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995 for as_dir in $PATH
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 break 2
10005 done
10006 done
10007 IFS=$as_save_IFS
10010 esac
10012 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10013 if test -n "$aros_kernel_ld"; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10015 $as_echo "$aros_kernel_ld" >&6; }
10016 else
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018 $as_echo "no" >&6; }
10022 else
10023 if test "$GCC" = "yes"; then
10024 aros_gcc_ld=`$CC -print-prog-name=ld`
10025 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10026 set dummy `basename $aros_gcc_ld`; ac_word=$2
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10028 $as_echo_n "checking for $ac_word... " >&6; }
10029 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10030 $as_echo_n "(cached) " >&6
10031 else
10032 case $aros_kernel_ld in
10033 [\\/]* | ?:[\\/]*)
10034 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038 for as_dir in `dirname $aros_gcc_ld`
10040 IFS=$as_save_IFS
10041 test -z "$as_dir" && as_dir=.
10042 for ac_exec_ext in '' $ac_executable_extensions; do
10043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10044 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 break 2
10048 done
10049 done
10050 IFS=$as_save_IFS
10053 esac
10055 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10056 if test -n "$aros_kernel_ld"; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10058 $as_echo "$aros_kernel_ld" >&6; }
10059 else
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061 $as_echo "no" >&6; }
10066 if test "$aros_kernel_ld" = ""; then
10067 # Extract the first word of "ld", so it can be a program name with args.
10068 set dummy ld; ac_word=$2
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10070 $as_echo_n "checking for $ac_word... " >&6; }
10071 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10072 $as_echo_n "(cached) " >&6
10073 else
10074 case $aros_kernel_ld in
10075 [\\/]* | ?:[\\/]*)
10076 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080 for as_dir in $PATH
10082 IFS=$as_save_IFS
10083 test -z "$as_dir" && as_dir=.
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10086 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10088 break 2
10090 done
10091 done
10092 IFS=$as_save_IFS
10095 esac
10097 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10098 if test -n "$aros_kernel_ld"; then
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10100 $as_echo "$aros_kernel_ld" >&6; }
10101 else
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 $as_echo "no" >&6; }
10109 else
10110 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10111 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10112 set dummy $aros_kernel_ld; ac_word=$2
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10114 $as_echo_n "checking for $ac_word... " >&6; }
10115 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10116 $as_echo_n "(cached) " >&6
10117 else
10118 case $aros_kernel_ld in
10119 [\\/]* | ?:[\\/]*)
10120 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124 for as_dir in $PATH
10126 IFS=$as_save_IFS
10127 test -z "$as_dir" && as_dir=.
10128 for ac_exec_ext in '' $ac_executable_extensions; do
10129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10130 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10132 break 2
10134 done
10135 done
10136 IFS=$as_save_IFS
10139 esac
10141 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10142 if test -n "$aros_kernel_ld"; then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10144 $as_echo "$aros_kernel_ld" >&6; }
10145 else
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147 $as_echo "no" >&6; }
10151 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10154 req_avail=yes
10155 if test "$aros_kernel_ld" = ""; then
10156 req_avail=no
10158 if test "$aros_kernel_ld" = "no"; then
10159 req_avail=no
10161 if test "$req_avail" = "no"; then
10162 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10165 if test "$aros_kernel_as" = ""; then
10166 if test "$cross_compiling" = "yes" ; then
10167 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10168 set dummy ${kernel_tool_prefix}as; ac_word=$2
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10170 $as_echo_n "checking for $ac_word... " >&6; }
10171 if ${ac_cv_path_aros_kernel_as+:} false; then :
10172 $as_echo_n "(cached) " >&6
10173 else
10174 case $aros_kernel_as in
10175 [\\/]* | ?:[\\/]*)
10176 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180 for as_dir in $PATH
10182 IFS=$as_save_IFS
10183 test -z "$as_dir" && as_dir=.
10184 for ac_exec_ext in '' $ac_executable_extensions; do
10185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10186 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10188 break 2
10190 done
10191 done
10192 IFS=$as_save_IFS
10195 esac
10197 aros_kernel_as=$ac_cv_path_aros_kernel_as
10198 if test -n "$aros_kernel_as"; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10200 $as_echo "$aros_kernel_as" >&6; }
10201 else
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 $as_echo "no" >&6; }
10207 else
10208 if test "$GCC" = "yes"; then
10209 aros_gcc_as=`$CC -print-prog-name=as`
10210 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10211 set dummy `basename $aros_gcc_as`; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if ${ac_cv_path_aros_kernel_as+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 case $aros_kernel_as in
10218 [\\/]* | ?:[\\/]*)
10219 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223 for as_dir in `dirname $aros_gcc_as`
10225 IFS=$as_save_IFS
10226 test -z "$as_dir" && as_dir=.
10227 for ac_exec_ext in '' $ac_executable_extensions; do
10228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10229 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10231 break 2
10233 done
10234 done
10235 IFS=$as_save_IFS
10238 esac
10240 aros_kernel_as=$ac_cv_path_aros_kernel_as
10241 if test -n "$aros_kernel_as"; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10243 $as_echo "$aros_kernel_as" >&6; }
10244 else
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 $as_echo "no" >&6; }
10251 if test "$aros_kernel_as" = ""; then
10252 # Extract the first word of "as", so it can be a program name with args.
10253 set dummy as; ac_word=$2
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10255 $as_echo_n "checking for $ac_word... " >&6; }
10256 if ${ac_cv_path_aros_kernel_as+:} false; then :
10257 $as_echo_n "(cached) " >&6
10258 else
10259 case $aros_kernel_as in
10260 [\\/]* | ?:[\\/]*)
10261 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10265 for as_dir in $PATH
10267 IFS=$as_save_IFS
10268 test -z "$as_dir" && as_dir=.
10269 for ac_exec_ext in '' $ac_executable_extensions; do
10270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10271 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10273 break 2
10275 done
10276 done
10277 IFS=$as_save_IFS
10280 esac
10282 aros_kernel_as=$ac_cv_path_aros_kernel_as
10283 if test -n "$aros_kernel_as"; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10285 $as_echo "$aros_kernel_as" >&6; }
10286 else
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288 $as_echo "no" >&6; }
10294 else
10295 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10296 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10297 set dummy $aros_kernel_as; ac_word=$2
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299 $as_echo_n "checking for $ac_word... " >&6; }
10300 if ${ac_cv_path_aros_kernel_as+:} false; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 case $aros_kernel_as in
10304 [\\/]* | ?:[\\/]*)
10305 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309 for as_dir in $PATH
10311 IFS=$as_save_IFS
10312 test -z "$as_dir" && as_dir=.
10313 for ac_exec_ext in '' $ac_executable_extensions; do
10314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10315 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10317 break 2
10319 done
10320 done
10321 IFS=$as_save_IFS
10324 esac
10326 aros_kernel_as=$ac_cv_path_aros_kernel_as
10327 if test -n "$aros_kernel_as"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10329 $as_echo "$aros_kernel_as" >&6; }
10330 else
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10336 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10339 req_avail=yes
10340 if test "$aros_kernel_as" = ""; then
10341 req_avail=no
10343 if test "$aros_kernel_as" = "no"; then
10344 req_avail=no
10346 if test "$req_avail" = "no"; then
10347 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10350 if test "$aros_kernel_ar" = ""; then
10351 if test "$cross_compiling" = "yes" ; then
10352 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10353 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355 $as_echo_n "checking for $ac_word... " >&6; }
10356 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 case $aros_kernel_ar in
10360 [\\/]* | ?:[\\/]*)
10361 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365 for as_dir in $PATH
10367 IFS=$as_save_IFS
10368 test -z "$as_dir" && as_dir=.
10369 for ac_exec_ext in '' $ac_executable_extensions; do
10370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10371 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10373 break 2
10375 done
10376 done
10377 IFS=$as_save_IFS
10380 esac
10382 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10383 if test -n "$aros_kernel_ar"; then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10385 $as_echo "$aros_kernel_ar" >&6; }
10386 else
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388 $as_echo "no" >&6; }
10392 else
10393 if test "$GCC" = "yes"; then
10394 aros_gcc_ar=`$CC -print-prog-name=ar`
10395 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10396 set dummy `basename $aros_gcc_ar`; ac_word=$2
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398 $as_echo_n "checking for $ac_word... " >&6; }
10399 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10400 $as_echo_n "(cached) " >&6
10401 else
10402 case $aros_kernel_ar in
10403 [\\/]* | ?:[\\/]*)
10404 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10408 for as_dir in `dirname $aros_gcc_ar`
10410 IFS=$as_save_IFS
10411 test -z "$as_dir" && as_dir=.
10412 for ac_exec_ext in '' $ac_executable_extensions; do
10413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10414 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10416 break 2
10418 done
10419 done
10420 IFS=$as_save_IFS
10423 esac
10425 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10426 if test -n "$aros_kernel_ar"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10428 $as_echo "$aros_kernel_ar" >&6; }
10429 else
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431 $as_echo "no" >&6; }
10436 if test "$aros_kernel_ar" = ""; then
10437 # Extract the first word of "ar", so it can be a program name with args.
10438 set dummy ar; ac_word=$2
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10440 $as_echo_n "checking for $ac_word... " >&6; }
10441 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 case $aros_kernel_ar in
10445 [\\/]* | ?:[\\/]*)
10446 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10452 IFS=$as_save_IFS
10453 test -z "$as_dir" && as_dir=.
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10456 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458 break 2
10460 done
10461 done
10462 IFS=$as_save_IFS
10465 esac
10467 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10468 if test -n "$aros_kernel_ar"; then
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10470 $as_echo "$aros_kernel_ar" >&6; }
10471 else
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473 $as_echo "no" >&6; }
10479 else
10480 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10481 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10482 set dummy $aros_kernel_ar; ac_word=$2
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10484 $as_echo_n "checking for $ac_word... " >&6; }
10485 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10486 $as_echo_n "(cached) " >&6
10487 else
10488 case $aros_kernel_ar in
10489 [\\/]* | ?:[\\/]*)
10490 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494 for as_dir in $PATH
10496 IFS=$as_save_IFS
10497 test -z "$as_dir" && as_dir=.
10498 for ac_exec_ext in '' $ac_executable_extensions; do
10499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10500 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10502 break 2
10504 done
10505 done
10506 IFS=$as_save_IFS
10509 esac
10511 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10512 if test -n "$aros_kernel_ar"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10514 $as_echo "$aros_kernel_ar" >&6; }
10515 else
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10521 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10524 req_avail=yes
10525 if test "$aros_kernel_ar" = ""; then
10526 req_avail=no
10528 if test "$aros_kernel_ar" = "no"; then
10529 req_avail=no
10531 if test "$req_avail" = "no"; then
10532 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10535 if test "$aros_kernel_ranlib" = ""; then
10536 if test "$cross_compiling" = "yes" ; then
10537 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10538 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540 $as_echo_n "checking for $ac_word... " >&6; }
10541 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 case $aros_kernel_ranlib in
10545 [\\/]* | ?:[\\/]*)
10546 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10550 for as_dir in $PATH
10552 IFS=$as_save_IFS
10553 test -z "$as_dir" && as_dir=.
10554 for ac_exec_ext in '' $ac_executable_extensions; do
10555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10556 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10558 break 2
10560 done
10561 done
10562 IFS=$as_save_IFS
10565 esac
10567 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10568 if test -n "$aros_kernel_ranlib"; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10570 $as_echo "$aros_kernel_ranlib" >&6; }
10571 else
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573 $as_echo "no" >&6; }
10577 else
10578 if test "$GCC" = "yes"; then
10579 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10580 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10581 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583 $as_echo_n "checking for $ac_word... " >&6; }
10584 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10585 $as_echo_n "(cached) " >&6
10586 else
10587 case $aros_kernel_ranlib in
10588 [\\/]* | ?:[\\/]*)
10589 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in `dirname $aros_gcc_ranlib`
10595 IFS=$as_save_IFS
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10599 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10601 break 2
10603 done
10604 done
10605 IFS=$as_save_IFS
10608 esac
10610 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10611 if test -n "$aros_kernel_ranlib"; then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10613 $as_echo "$aros_kernel_ranlib" >&6; }
10614 else
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616 $as_echo "no" >&6; }
10621 if test "$aros_kernel_ranlib" = ""; then
10622 # Extract the first word of "ranlib", so it can be a program name with args.
10623 set dummy ranlib; ac_word=$2
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10625 $as_echo_n "checking for $ac_word... " >&6; }
10626 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 case $aros_kernel_ranlib in
10630 [\\/]* | ?:[\\/]*)
10631 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635 for as_dir in $PATH
10637 IFS=$as_save_IFS
10638 test -z "$as_dir" && as_dir=.
10639 for ac_exec_ext in '' $ac_executable_extensions; do
10640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10641 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10643 break 2
10645 done
10646 done
10647 IFS=$as_save_IFS
10650 esac
10652 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10653 if test -n "$aros_kernel_ranlib"; then
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10655 $as_echo "$aros_kernel_ranlib" >&6; }
10656 else
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658 $as_echo "no" >&6; }
10664 else
10665 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10666 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10667 set dummy $aros_kernel_ranlib; ac_word=$2
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10669 $as_echo_n "checking for $ac_word... " >&6; }
10670 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10671 $as_echo_n "(cached) " >&6
10672 else
10673 case $aros_kernel_ranlib in
10674 [\\/]* | ?:[\\/]*)
10675 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679 for as_dir in $PATH
10681 IFS=$as_save_IFS
10682 test -z "$as_dir" && as_dir=.
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10685 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10687 break 2
10689 done
10690 done
10691 IFS=$as_save_IFS
10694 esac
10696 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10697 if test -n "$aros_kernel_ranlib"; then
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10699 $as_echo "$aros_kernel_ranlib" >&6; }
10700 else
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10702 $as_echo "no" >&6; }
10706 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10709 req_avail=yes
10710 if test "$aros_kernel_ranlib" = ""; then
10711 req_avail=no
10713 if test "$aros_kernel_ranlib" = "no"; then
10714 req_avail=no
10716 if test "$req_avail" = "no"; then
10717 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10720 if test "$aros_kernel_nm" = ""; then
10721 if test "$cross_compiling" = "yes" ; then
10722 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10723 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10725 $as_echo_n "checking for $ac_word... " >&6; }
10726 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10727 $as_echo_n "(cached) " >&6
10728 else
10729 case $aros_kernel_nm in
10730 [\\/]* | ?:[\\/]*)
10731 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10735 for as_dir in $PATH
10737 IFS=$as_save_IFS
10738 test -z "$as_dir" && as_dir=.
10739 for ac_exec_ext in '' $ac_executable_extensions; do
10740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10741 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10743 break 2
10745 done
10746 done
10747 IFS=$as_save_IFS
10750 esac
10752 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10753 if test -n "$aros_kernel_nm"; then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10755 $as_echo "$aros_kernel_nm" >&6; }
10756 else
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758 $as_echo "no" >&6; }
10762 else
10763 if test "$GCC" = "yes"; then
10764 aros_gcc_nm=`$CC -print-prog-name=nm`
10765 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10766 set dummy `basename $aros_gcc_nm`; ac_word=$2
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10768 $as_echo_n "checking for $ac_word... " >&6; }
10769 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 case $aros_kernel_nm in
10773 [\\/]* | ?:[\\/]*)
10774 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778 for as_dir in `dirname $aros_gcc_nm`
10780 IFS=$as_save_IFS
10781 test -z "$as_dir" && as_dir=.
10782 for ac_exec_ext in '' $ac_executable_extensions; do
10783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10784 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10786 break 2
10788 done
10789 done
10790 IFS=$as_save_IFS
10793 esac
10795 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10796 if test -n "$aros_kernel_nm"; then
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10798 $as_echo "$aros_kernel_nm" >&6; }
10799 else
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; }
10806 if test "$aros_kernel_nm" = ""; then
10807 # Extract the first word of "nm", so it can be a program name with args.
10808 set dummy nm; ac_word=$2
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10810 $as_echo_n "checking for $ac_word... " >&6; }
10811 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814 case $aros_kernel_nm in
10815 [\\/]* | ?:[\\/]*)
10816 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820 for as_dir in $PATH
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10826 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10830 done
10831 done
10832 IFS=$as_save_IFS
10835 esac
10837 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10838 if test -n "$aros_kernel_nm"; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10840 $as_echo "$aros_kernel_nm" >&6; }
10841 else
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10843 $as_echo "no" >&6; }
10849 else
10850 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
10851 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10852 set dummy $aros_kernel_nm; ac_word=$2
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10854 $as_echo_n "checking for $ac_word... " >&6; }
10855 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10856 $as_echo_n "(cached) " >&6
10857 else
10858 case $aros_kernel_nm in
10859 [\\/]* | ?:[\\/]*)
10860 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10870 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10874 done
10875 done
10876 IFS=$as_save_IFS
10879 esac
10881 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10882 if test -n "$aros_kernel_nm"; then
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10884 $as_echo "$aros_kernel_nm" >&6; }
10885 else
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887 $as_echo "no" >&6; }
10891 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
10894 req_avail=yes
10895 if test "$aros_kernel_nm" = ""; then
10896 req_avail=no
10898 if test "$aros_kernel_nm" = "no"; then
10899 req_avail=no
10901 if test "$req_avail" = "no"; then
10902 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10905 if test "$aros_kernel_strip" = ""; then
10906 if test "$cross_compiling" = "yes" ; then
10907 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10908 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10910 $as_echo_n "checking for $ac_word... " >&6; }
10911 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 case $aros_kernel_strip in
10915 [\\/]* | ?:[\\/]*)
10916 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10920 for as_dir in $PATH
10922 IFS=$as_save_IFS
10923 test -z "$as_dir" && as_dir=.
10924 for ac_exec_ext in '' $ac_executable_extensions; do
10925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10926 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10928 break 2
10930 done
10931 done
10932 IFS=$as_save_IFS
10935 esac
10937 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10938 if test -n "$aros_kernel_strip"; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10940 $as_echo "$aros_kernel_strip" >&6; }
10941 else
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943 $as_echo "no" >&6; }
10947 else
10948 if test "$GCC" = "yes"; then
10949 aros_gcc_strip=`$CC -print-prog-name=strip`
10950 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10951 set dummy `basename $aros_gcc_strip`; ac_word=$2
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10953 $as_echo_n "checking for $ac_word... " >&6; }
10954 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10955 $as_echo_n "(cached) " >&6
10956 else
10957 case $aros_kernel_strip in
10958 [\\/]* | ?:[\\/]*)
10959 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963 for as_dir in `dirname $aros_gcc_strip`
10965 IFS=$as_save_IFS
10966 test -z "$as_dir" && as_dir=.
10967 for ac_exec_ext in '' $ac_executable_extensions; do
10968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10969 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10971 break 2
10973 done
10974 done
10975 IFS=$as_save_IFS
10978 esac
10980 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10981 if test -n "$aros_kernel_strip"; then
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10983 $as_echo "$aros_kernel_strip" >&6; }
10984 else
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 $as_echo "no" >&6; }
10991 if test "$aros_kernel_strip" = ""; then
10992 # Extract the first word of "strip", so it can be a program name with args.
10993 set dummy strip; ac_word=$2
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995 $as_echo_n "checking for $ac_word... " >&6; }
10996 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10997 $as_echo_n "(cached) " >&6
10998 else
10999 case $aros_kernel_strip in
11000 [\\/]* | ?:[\\/]*)
11001 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005 for as_dir in $PATH
11007 IFS=$as_save_IFS
11008 test -z "$as_dir" && as_dir=.
11009 for ac_exec_ext in '' $ac_executable_extensions; do
11010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11011 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11013 break 2
11015 done
11016 done
11017 IFS=$as_save_IFS
11020 esac
11022 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11023 if test -n "$aros_kernel_strip"; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11025 $as_echo "$aros_kernel_strip" >&6; }
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 $as_echo "no" >&6; }
11034 else
11035 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11036 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11037 set dummy $aros_kernel_strip; ac_word=$2
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11039 $as_echo_n "checking for $ac_word... " >&6; }
11040 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 case $aros_kernel_strip in
11044 [\\/]* | ?:[\\/]*)
11045 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049 for as_dir in $PATH
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11055 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 break 2
11059 done
11060 done
11061 IFS=$as_save_IFS
11064 esac
11066 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11067 if test -n "$aros_kernel_strip"; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11069 $as_echo "$aros_kernel_strip" >&6; }
11070 else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11076 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11079 req_avail=yes
11080 if test "$aros_kernel_strip" = ""; then
11081 req_avail=no
11083 if test "$aros_kernel_strip" = "no"; then
11084 req_avail=no
11086 if test "$req_avail" = "no"; then
11087 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11090 # Objcopy and objdump are not required for the kernel
11091 # toolchain on many architectures.
11092 # So we'll look for them, but not make them strictly required.
11094 if test "$aros_kernel_objcopy" = ""; then
11095 if test "$cross_compiling" = "yes" ; then
11096 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11097 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11099 $as_echo_n "checking for $ac_word... " >&6; }
11100 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11101 $as_echo_n "(cached) " >&6
11102 else
11103 case $aros_kernel_objcopy in
11104 [\\/]* | ?:[\\/]*)
11105 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109 for as_dir in $PATH
11111 IFS=$as_save_IFS
11112 test -z "$as_dir" && as_dir=.
11113 for ac_exec_ext in '' $ac_executable_extensions; do
11114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11115 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11117 break 2
11119 done
11120 done
11121 IFS=$as_save_IFS
11124 esac
11126 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11127 if test -n "$aros_kernel_objcopy"; then
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11129 $as_echo "$aros_kernel_objcopy" >&6; }
11130 else
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132 $as_echo "no" >&6; }
11136 else
11137 if test "$GCC" = "yes"; then
11138 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11139 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11140 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11142 $as_echo_n "checking for $ac_word... " >&6; }
11143 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11144 $as_echo_n "(cached) " >&6
11145 else
11146 case $aros_kernel_objcopy in
11147 [\\/]* | ?:[\\/]*)
11148 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in `dirname $aros_gcc_objcopy`
11154 IFS=$as_save_IFS
11155 test -z "$as_dir" && as_dir=.
11156 for ac_exec_ext in '' $ac_executable_extensions; do
11157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11158 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11160 break 2
11162 done
11163 done
11164 IFS=$as_save_IFS
11167 esac
11169 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11170 if test -n "$aros_kernel_objcopy"; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11172 $as_echo "$aros_kernel_objcopy" >&6; }
11173 else
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175 $as_echo "no" >&6; }
11180 if test "$aros_kernel_objcopy" = ""; then
11181 # Extract the first word of "objcopy", so it can be a program name with args.
11182 set dummy objcopy; ac_word=$2
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11184 $as_echo_n "checking for $ac_word... " >&6; }
11185 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11186 $as_echo_n "(cached) " >&6
11187 else
11188 case $aros_kernel_objcopy in
11189 [\\/]* | ?:[\\/]*)
11190 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194 for as_dir in $PATH
11196 IFS=$as_save_IFS
11197 test -z "$as_dir" && as_dir=.
11198 for ac_exec_ext in '' $ac_executable_extensions; do
11199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11200 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11202 break 2
11204 done
11205 done
11206 IFS=$as_save_IFS
11209 esac
11211 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11212 if test -n "$aros_kernel_objcopy"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11214 $as_echo "$aros_kernel_objcopy" >&6; }
11215 else
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217 $as_echo "no" >&6; }
11223 else
11224 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11225 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11226 set dummy $aros_kernel_objcopy; ac_word=$2
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11228 $as_echo_n "checking for $ac_word... " >&6; }
11229 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 case $aros_kernel_objcopy in
11233 [\\/]* | ?:[\\/]*)
11234 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238 for as_dir in $PATH
11240 IFS=$as_save_IFS
11241 test -z "$as_dir" && as_dir=.
11242 for ac_exec_ext in '' $ac_executable_extensions; do
11243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11244 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11246 break 2
11248 done
11249 done
11250 IFS=$as_save_IFS
11253 esac
11255 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11256 if test -n "$aros_kernel_objcopy"; then
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11258 $as_echo "$aros_kernel_objcopy" >&6; }
11259 else
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11261 $as_echo "no" >&6; }
11265 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11269 if test "$aros_kernel_objdump" = ""; then
11270 if test "$cross_compiling" = "yes" ; then
11271 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11272 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11274 $as_echo_n "checking for $ac_word... " >&6; }
11275 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11276 $as_echo_n "(cached) " >&6
11277 else
11278 case $aros_kernel_objdump in
11279 [\\/]* | ?:[\\/]*)
11280 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284 for as_dir in $PATH
11286 IFS=$as_save_IFS
11287 test -z "$as_dir" && as_dir=.
11288 for ac_exec_ext in '' $ac_executable_extensions; do
11289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11290 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11292 break 2
11294 done
11295 done
11296 IFS=$as_save_IFS
11299 esac
11301 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11302 if test -n "$aros_kernel_objdump"; then
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11304 $as_echo "$aros_kernel_objdump" >&6; }
11305 else
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307 $as_echo "no" >&6; }
11311 else
11312 if test "$GCC" = "yes"; then
11313 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11314 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11315 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317 $as_echo_n "checking for $ac_word... " >&6; }
11318 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11319 $as_echo_n "(cached) " >&6
11320 else
11321 case $aros_kernel_objdump in
11322 [\\/]* | ?:[\\/]*)
11323 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327 for as_dir in `dirname $aros_gcc_objdump`
11329 IFS=$as_save_IFS
11330 test -z "$as_dir" && as_dir=.
11331 for ac_exec_ext in '' $ac_executable_extensions; do
11332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11333 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11335 break 2
11337 done
11338 done
11339 IFS=$as_save_IFS
11342 esac
11344 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11345 if test -n "$aros_kernel_objdump"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11347 $as_echo "$aros_kernel_objdump" >&6; }
11348 else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11355 if test "$aros_kernel_objdump" = ""; then
11356 # Extract the first word of "objdump", so it can be a program name with args.
11357 set dummy objdump; ac_word=$2
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11359 $as_echo_n "checking for $ac_word... " >&6; }
11360 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 case $aros_kernel_objdump in
11364 [\\/]* | ?:[\\/]*)
11365 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369 for as_dir in $PATH
11371 IFS=$as_save_IFS
11372 test -z "$as_dir" && as_dir=.
11373 for ac_exec_ext in '' $ac_executable_extensions; do
11374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11375 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11377 break 2
11379 done
11380 done
11381 IFS=$as_save_IFS
11384 esac
11386 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11387 if test -n "$aros_kernel_objdump"; then
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11389 $as_echo "$aros_kernel_objdump" >&6; }
11390 else
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11392 $as_echo "no" >&6; }
11398 else
11399 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11400 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11401 set dummy $aros_kernel_objdump; ac_word=$2
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403 $as_echo_n "checking for $ac_word... " >&6; }
11404 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11405 $as_echo_n "(cached) " >&6
11406 else
11407 case $aros_kernel_objdump in
11408 [\\/]* | ?:[\\/]*)
11409 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11413 for as_dir in $PATH
11415 IFS=$as_save_IFS
11416 test -z "$as_dir" && as_dir=.
11417 for ac_exec_ext in '' $ac_executable_extensions; do
11418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11419 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11421 break 2
11423 done
11424 done
11425 IFS=$as_save_IFS
11428 esac
11430 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11431 if test -n "$aros_kernel_objdump"; then
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11433 $as_echo "$aros_kernel_objdump" >&6; }
11434 else
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436 $as_echo "no" >&6; }
11440 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11443 if test "x${crosstools}" != "xyes" ; then
11444 req_avail=yes
11445 if test "$aros_kernel_objcopy" = ""; then
11446 req_avail=no
11448 if test "$aros_kernel_objcopy" = "no"; then
11449 req_avail=no
11451 if test "$req_avail" = "no"; then
11452 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11454 req_avail=yes
11455 if test "$aros_kernel_objdump" = ""; then
11456 req_avail=no
11458 if test "$aros_kernel_objdump" = "no"; then
11459 req_avail=no
11461 if test "$req_avail" = "no"; then
11462 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11468 $as_echo_n "checking which target tools to use... " >&6; }
11469 if test "$aros_target_toolchain" = "yes"; then
11470 if test "$aros_toolchain" = "llvm" ; then
11471 msg_result="llvm"
11472 else
11473 msg_result=$target_tool_prefix
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11476 $as_echo "$msg_result" >&6; }
11477 # We are building AROS crosstools
11478 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11479 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11480 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11481 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11482 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11483 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11484 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11485 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11486 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11487 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11488 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11489 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11490 else
11491 # Determine whether AROS or ELF tools should be used
11492 if test "$aros_tool_prefix" = "none"; then
11493 aros_tool_prefix="${elf_tool_prefix}"
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11497 $as_echo "$aros_tool_prefix" >&6; }
11498 # We are *not* building AROS crosstools - use the AROS or ELF tools
11500 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11501 if test "$cross_compiling" = "yes" ; then
11502 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11503 set dummy ${target_tool_prefix}cpp; ac_word=$2
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 $as_echo_n "checking for $ac_word... " >&6; }
11506 if ${ac_cv_path_orig_target_cpp+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 case $orig_target_cpp in
11510 [\\/]* | ?:[\\/]*)
11511 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11521 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 break 2
11525 done
11526 done
11527 IFS=$as_save_IFS
11530 esac
11532 orig_target_cpp=$ac_cv_path_orig_target_cpp
11533 if test -n "$orig_target_cpp"; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11535 $as_echo "$orig_target_cpp" >&6; }
11536 else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11542 else
11543 if test "$GCC" = "yes"; then
11544 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11545 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11546 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if ${ac_cv_path_orig_target_cpp+:} false; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 case $orig_target_cpp in
11553 [\\/]* | ?:[\\/]*)
11554 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558 for as_dir in `dirname $aros_gcc_cpp`
11560 IFS=$as_save_IFS
11561 test -z "$as_dir" && as_dir=.
11562 for ac_exec_ext in '' $ac_executable_extensions; do
11563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11564 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11566 break 2
11568 done
11569 done
11570 IFS=$as_save_IFS
11573 esac
11575 orig_target_cpp=$ac_cv_path_orig_target_cpp
11576 if test -n "$orig_target_cpp"; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11578 $as_echo "$orig_target_cpp" >&6; }
11579 else
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11586 if test "$orig_target_cpp" = ""; then
11587 # Extract the first word of "cpp", so it can be a program name with args.
11588 set dummy cpp; ac_word=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if ${ac_cv_path_orig_target_cpp+:} false; then :
11592 $as_echo_n "(cached) " >&6
11593 else
11594 case $orig_target_cpp in
11595 [\\/]* | ?:[\\/]*)
11596 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11606 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 break 2
11610 done
11611 done
11612 IFS=$as_save_IFS
11615 esac
11617 orig_target_cpp=$ac_cv_path_orig_target_cpp
11618 if test -n "$orig_target_cpp"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11620 $as_echo "$orig_target_cpp" >&6; }
11621 else
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11629 else
11630 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11631 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11632 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11634 $as_echo_n "checking for $ac_word... " >&6; }
11635 if ${ac_cv_path_orig_target_cpp+:} false; then :
11636 $as_echo_n "(cached) " >&6
11637 else
11638 case $orig_target_cpp in
11639 [\\/]* | ?:[\\/]*)
11640 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644 for as_dir in $PATH
11646 IFS=$as_save_IFS
11647 test -z "$as_dir" && as_dir=.
11648 for ac_exec_ext in '' $ac_executable_extensions; do
11649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11650 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11652 break 2
11654 done
11655 done
11656 IFS=$as_save_IFS
11659 esac
11661 orig_target_cpp=$ac_cv_path_orig_target_cpp
11662 if test -n "$orig_target_cpp"; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11664 $as_echo "$orig_target_cpp" >&6; }
11665 else
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 $as_echo "no" >&6; }
11671 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11674 req_avail=yes
11675 if test "$orig_target_cpp" = ""; then
11676 req_avail=no
11678 if test "$orig_target_cpp" = "no"; then
11679 req_avail=no
11681 if test "$req_avail" = "no"; then
11682 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11685 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11686 if test "$cross_compiling" = "yes" ; then
11687 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11688 set dummy ${target_tool_prefix}gcc; ac_word=$2
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11690 $as_echo_n "checking for $ac_word... " >&6; }
11691 if ${ac_cv_path_orig_target_cc+:} false; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694 case $orig_target_cc in
11695 [\\/]* | ?:[\\/]*)
11696 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700 for as_dir in $PATH
11702 IFS=$as_save_IFS
11703 test -z "$as_dir" && as_dir=.
11704 for ac_exec_ext in '' $ac_executable_extensions; do
11705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11706 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11708 break 2
11710 done
11711 done
11712 IFS=$as_save_IFS
11715 esac
11717 orig_target_cc=$ac_cv_path_orig_target_cc
11718 if test -n "$orig_target_cc"; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11720 $as_echo "$orig_target_cc" >&6; }
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11727 else
11728 if test "$GCC" = "yes"; then
11729 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11730 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11731 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11733 $as_echo_n "checking for $ac_word... " >&6; }
11734 if ${ac_cv_path_orig_target_cc+:} false; then :
11735 $as_echo_n "(cached) " >&6
11736 else
11737 case $orig_target_cc in
11738 [\\/]* | ?:[\\/]*)
11739 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in `dirname $aros_gcc_gcc`
11745 IFS=$as_save_IFS
11746 test -z "$as_dir" && as_dir=.
11747 for ac_exec_ext in '' $ac_executable_extensions; do
11748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11749 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11751 break 2
11753 done
11754 done
11755 IFS=$as_save_IFS
11758 esac
11760 orig_target_cc=$ac_cv_path_orig_target_cc
11761 if test -n "$orig_target_cc"; then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11763 $as_echo "$orig_target_cc" >&6; }
11764 else
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11771 if test "$orig_target_cc" = ""; then
11772 # Extract the first word of "gcc", so it can be a program name with args.
11773 set dummy gcc; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if ${ac_cv_path_orig_target_cc+:} false; then :
11777 $as_echo_n "(cached) " >&6
11778 else
11779 case $orig_target_cc in
11780 [\\/]* | ?:[\\/]*)
11781 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11787 IFS=$as_save_IFS
11788 test -z "$as_dir" && as_dir=.
11789 for ac_exec_ext in '' $ac_executable_extensions; do
11790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11791 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793 break 2
11795 done
11796 done
11797 IFS=$as_save_IFS
11800 esac
11802 orig_target_cc=$ac_cv_path_orig_target_cc
11803 if test -n "$orig_target_cc"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11805 $as_echo "$orig_target_cc" >&6; }
11806 else
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11814 else
11815 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11816 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11817 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11819 $as_echo_n "checking for $ac_word... " >&6; }
11820 if ${ac_cv_path_orig_target_cc+:} false; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 case $orig_target_cc in
11824 [\\/]* | ?:[\\/]*)
11825 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11831 IFS=$as_save_IFS
11832 test -z "$as_dir" && as_dir=.
11833 for ac_exec_ext in '' $ac_executable_extensions; do
11834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11835 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837 break 2
11839 done
11840 done
11841 IFS=$as_save_IFS
11844 esac
11846 orig_target_cc=$ac_cv_path_orig_target_cc
11847 if test -n "$orig_target_cc"; then
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11849 $as_echo "$orig_target_cc" >&6; }
11850 else
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852 $as_echo "no" >&6; }
11856 orig_target_cc="$orig_target_cc $ac_tool_optarg"
11859 req_avail=yes
11860 if test "$orig_target_cc" = ""; then
11861 req_avail=no
11863 if test "$orig_target_cc" = "no"; then
11864 req_avail=no
11866 if test "$req_avail" = "no"; then
11867 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11870 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11871 if test "$cross_compiling" = "yes" ; then
11872 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11873 set dummy ${target_tool_prefix}g++; ac_word=$2
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875 $as_echo_n "checking for $ac_word... " >&6; }
11876 if ${ac_cv_path_orig_target_cxx+:} false; then :
11877 $as_echo_n "(cached) " >&6
11878 else
11879 case $orig_target_cxx in
11880 [\\/]* | ?:[\\/]*)
11881 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885 for as_dir in $PATH
11887 IFS=$as_save_IFS
11888 test -z "$as_dir" && as_dir=.
11889 for ac_exec_ext in '' $ac_executable_extensions; do
11890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11891 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11893 break 2
11895 done
11896 done
11897 IFS=$as_save_IFS
11900 esac
11902 orig_target_cxx=$ac_cv_path_orig_target_cxx
11903 if test -n "$orig_target_cxx"; then
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11905 $as_echo "$orig_target_cxx" >&6; }
11906 else
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11912 else
11913 if test "$GCC" = "yes"; then
11914 aros_gcc_g++=`$CC -print-prog-name=g++`
11915 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11916 set dummy `basename $aros_gcc_g++`; ac_word=$2
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11918 $as_echo_n "checking for $ac_word... " >&6; }
11919 if ${ac_cv_path_orig_target_cxx+:} false; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 case $orig_target_cxx in
11923 [\\/]* | ?:[\\/]*)
11924 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in `dirname $aros_gcc_g++`
11930 IFS=$as_save_IFS
11931 test -z "$as_dir" && as_dir=.
11932 for ac_exec_ext in '' $ac_executable_extensions; do
11933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11934 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11936 break 2
11938 done
11939 done
11940 IFS=$as_save_IFS
11943 esac
11945 orig_target_cxx=$ac_cv_path_orig_target_cxx
11946 if test -n "$orig_target_cxx"; then
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11948 $as_echo "$orig_target_cxx" >&6; }
11949 else
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11956 if test "$orig_target_cxx" = ""; then
11957 # Extract the first word of "g++", so it can be a program name with args.
11958 set dummy g++; ac_word=$2
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11960 $as_echo_n "checking for $ac_word... " >&6; }
11961 if ${ac_cv_path_orig_target_cxx+:} false; then :
11962 $as_echo_n "(cached) " >&6
11963 else
11964 case $orig_target_cxx in
11965 [\\/]* | ?:[\\/]*)
11966 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11970 for as_dir in $PATH
11972 IFS=$as_save_IFS
11973 test -z "$as_dir" && as_dir=.
11974 for ac_exec_ext in '' $ac_executable_extensions; do
11975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11976 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11978 break 2
11980 done
11981 done
11982 IFS=$as_save_IFS
11985 esac
11987 orig_target_cxx=$ac_cv_path_orig_target_cxx
11988 if test -n "$orig_target_cxx"; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11990 $as_echo "$orig_target_cxx" >&6; }
11991 else
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993 $as_echo "no" >&6; }
11999 else
12000 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12001 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12002 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12004 $as_echo_n "checking for $ac_word... " >&6; }
12005 if ${ac_cv_path_orig_target_cxx+:} false; then :
12006 $as_echo_n "(cached) " >&6
12007 else
12008 case $orig_target_cxx in
12009 [\\/]* | ?:[\\/]*)
12010 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12016 IFS=$as_save_IFS
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12020 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12022 break 2
12024 done
12025 done
12026 IFS=$as_save_IFS
12029 esac
12031 orig_target_cxx=$ac_cv_path_orig_target_cxx
12032 if test -n "$orig_target_cxx"; then
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12034 $as_echo "$orig_target_cxx" >&6; }
12035 else
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12037 $as_echo "no" >&6; }
12041 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12044 req_avail=yes
12045 if test "$orig_target_cxx" = ""; then
12046 req_avail=no
12048 if test "$orig_target_cxx" = "no"; then
12049 req_avail=no
12051 if test "$req_avail" = "no"; then
12052 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12055 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12056 if test "$cross_compiling" = "yes" ; then
12057 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12058 set dummy ${target_tool_prefix}gcc; ac_word=$2
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12060 $as_echo_n "checking for $ac_word... " >&6; }
12061 if ${ac_cv_path_orig_target_ld+:} false; then :
12062 $as_echo_n "(cached) " >&6
12063 else
12064 case $orig_target_ld in
12065 [\\/]* | ?:[\\/]*)
12066 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070 for as_dir in $PATH
12072 IFS=$as_save_IFS
12073 test -z "$as_dir" && as_dir=.
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12076 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12078 break 2
12080 done
12081 done
12082 IFS=$as_save_IFS
12085 esac
12087 orig_target_ld=$ac_cv_path_orig_target_ld
12088 if test -n "$orig_target_ld"; then
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12090 $as_echo "$orig_target_ld" >&6; }
12091 else
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12093 $as_echo "no" >&6; }
12097 else
12098 if test "$GCC" = "yes"; then
12099 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12100 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12101 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12103 $as_echo_n "checking for $ac_word... " >&6; }
12104 if ${ac_cv_path_orig_target_ld+:} false; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 case $orig_target_ld in
12108 [\\/]* | ?:[\\/]*)
12109 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in `dirname $aros_gcc_gcc`
12115 IFS=$as_save_IFS
12116 test -z "$as_dir" && as_dir=.
12117 for ac_exec_ext in '' $ac_executable_extensions; do
12118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12119 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 break 2
12123 done
12124 done
12125 IFS=$as_save_IFS
12128 esac
12130 orig_target_ld=$ac_cv_path_orig_target_ld
12131 if test -n "$orig_target_ld"; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12133 $as_echo "$orig_target_ld" >&6; }
12134 else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12141 if test "$orig_target_ld" = ""; then
12142 # Extract the first word of "gcc", so it can be a program name with args.
12143 set dummy gcc; ac_word=$2
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145 $as_echo_n "checking for $ac_word... " >&6; }
12146 if ${ac_cv_path_orig_target_ld+:} false; then :
12147 $as_echo_n "(cached) " >&6
12148 else
12149 case $orig_target_ld in
12150 [\\/]* | ?:[\\/]*)
12151 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155 for as_dir in $PATH
12157 IFS=$as_save_IFS
12158 test -z "$as_dir" && as_dir=.
12159 for ac_exec_ext in '' $ac_executable_extensions; do
12160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12161 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12163 break 2
12165 done
12166 done
12167 IFS=$as_save_IFS
12170 esac
12172 orig_target_ld=$ac_cv_path_orig_target_ld
12173 if test -n "$orig_target_ld"; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12175 $as_echo "$orig_target_ld" >&6; }
12176 else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178 $as_echo "no" >&6; }
12184 else
12185 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12186 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12187 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12189 $as_echo_n "checking for $ac_word... " >&6; }
12190 if ${ac_cv_path_orig_target_ld+:} false; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 case $orig_target_ld in
12194 [\\/]* | ?:[\\/]*)
12195 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12199 for as_dir in $PATH
12201 IFS=$as_save_IFS
12202 test -z "$as_dir" && as_dir=.
12203 for ac_exec_ext in '' $ac_executable_extensions; do
12204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12205 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12207 break 2
12209 done
12210 done
12211 IFS=$as_save_IFS
12214 esac
12216 orig_target_ld=$ac_cv_path_orig_target_ld
12217 if test -n "$orig_target_ld"; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12219 $as_echo "$orig_target_ld" >&6; }
12220 else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; }
12226 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12229 req_avail=yes
12230 if test "$orig_target_ld" = ""; then
12231 req_avail=no
12233 if test "$orig_target_ld" = "no"; then
12234 req_avail=no
12236 if test "$req_avail" = "no"; then
12237 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12240 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12241 if test "$cross_compiling" = "yes" ; then
12242 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12243 set dummy ${target_tool_prefix}as; ac_word=$2
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245 $as_echo_n "checking for $ac_word... " >&6; }
12246 if ${ac_cv_path_orig_target_as+:} false; then :
12247 $as_echo_n "(cached) " >&6
12248 else
12249 case $orig_target_as in
12250 [\\/]* | ?:[\\/]*)
12251 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255 for as_dir in $PATH
12257 IFS=$as_save_IFS
12258 test -z "$as_dir" && as_dir=.
12259 for ac_exec_ext in '' $ac_executable_extensions; do
12260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12261 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263 break 2
12265 done
12266 done
12267 IFS=$as_save_IFS
12270 esac
12272 orig_target_as=$ac_cv_path_orig_target_as
12273 if test -n "$orig_target_as"; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12275 $as_echo "$orig_target_as" >&6; }
12276 else
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12282 else
12283 if test "$GCC" = "yes"; then
12284 aros_gcc_as=`$CC -print-prog-name=as`
12285 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12286 set dummy `basename $aros_gcc_as`; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288 $as_echo_n "checking for $ac_word... " >&6; }
12289 if ${ac_cv_path_orig_target_as+:} false; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12292 case $orig_target_as in
12293 [\\/]* | ?:[\\/]*)
12294 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298 for as_dir in `dirname $aros_gcc_as`
12300 IFS=$as_save_IFS
12301 test -z "$as_dir" && as_dir=.
12302 for ac_exec_ext in '' $ac_executable_extensions; do
12303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12304 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12306 break 2
12308 done
12309 done
12310 IFS=$as_save_IFS
12313 esac
12315 orig_target_as=$ac_cv_path_orig_target_as
12316 if test -n "$orig_target_as"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12318 $as_echo "$orig_target_as" >&6; }
12319 else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12326 if test "$orig_target_as" = ""; then
12327 # Extract the first word of "as", so it can be a program name with args.
12328 set dummy as; ac_word=$2
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330 $as_echo_n "checking for $ac_word... " >&6; }
12331 if ${ac_cv_path_orig_target_as+:} false; then :
12332 $as_echo_n "(cached) " >&6
12333 else
12334 case $orig_target_as in
12335 [\\/]* | ?:[\\/]*)
12336 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340 for as_dir in $PATH
12342 IFS=$as_save_IFS
12343 test -z "$as_dir" && as_dir=.
12344 for ac_exec_ext in '' $ac_executable_extensions; do
12345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12346 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12348 break 2
12350 done
12351 done
12352 IFS=$as_save_IFS
12355 esac
12357 orig_target_as=$ac_cv_path_orig_target_as
12358 if test -n "$orig_target_as"; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12360 $as_echo "$orig_target_as" >&6; }
12361 else
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12369 else
12370 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12371 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12372 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374 $as_echo_n "checking for $ac_word... " >&6; }
12375 if ${ac_cv_path_orig_target_as+:} false; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 case $orig_target_as in
12379 [\\/]* | ?:[\\/]*)
12380 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384 for as_dir in $PATH
12386 IFS=$as_save_IFS
12387 test -z "$as_dir" && as_dir=.
12388 for ac_exec_ext in '' $ac_executable_extensions; do
12389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12390 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12392 break 2
12394 done
12395 done
12396 IFS=$as_save_IFS
12399 esac
12401 orig_target_as=$ac_cv_path_orig_target_as
12402 if test -n "$orig_target_as"; then
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12404 $as_echo "$orig_target_as" >&6; }
12405 else
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407 $as_echo "no" >&6; }
12411 orig_target_as="$orig_target_as $ac_tool_optarg"
12414 req_avail=yes
12415 if test "$orig_target_as" = ""; then
12416 req_avail=no
12418 if test "$orig_target_as" = "no"; then
12419 req_avail=no
12421 if test "$req_avail" = "no"; then
12422 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12425 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12426 if test "$cross_compiling" = "yes" ; then
12427 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12428 set dummy ${target_tool_prefix}ar; ac_word=$2
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430 $as_echo_n "checking for $ac_word... " >&6; }
12431 if ${ac_cv_path_orig_target_ar+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 case $orig_target_ar in
12435 [\\/]* | ?:[\\/]*)
12436 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440 for as_dir in $PATH
12442 IFS=$as_save_IFS
12443 test -z "$as_dir" && as_dir=.
12444 for ac_exec_ext in '' $ac_executable_extensions; do
12445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12446 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12448 break 2
12450 done
12451 done
12452 IFS=$as_save_IFS
12455 esac
12457 orig_target_ar=$ac_cv_path_orig_target_ar
12458 if test -n "$orig_target_ar"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12460 $as_echo "$orig_target_ar" >&6; }
12461 else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12467 else
12468 if test "$GCC" = "yes"; then
12469 aros_gcc_ar=`$CC -print-prog-name=ar`
12470 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12471 set dummy `basename $aros_gcc_ar`; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if ${ac_cv_path_orig_target_ar+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 case $orig_target_ar in
12478 [\\/]* | ?:[\\/]*)
12479 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in `dirname $aros_gcc_ar`
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12489 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 break 2
12493 done
12494 done
12495 IFS=$as_save_IFS
12498 esac
12500 orig_target_ar=$ac_cv_path_orig_target_ar
12501 if test -n "$orig_target_ar"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12503 $as_echo "$orig_target_ar" >&6; }
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12511 if test "$orig_target_ar" = ""; then
12512 # Extract the first word of "ar", so it can be a program name with args.
12513 set dummy ar; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if ${ac_cv_path_orig_target_ar+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 case $orig_target_ar in
12520 [\\/]* | ?:[\\/]*)
12521 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12527 IFS=$as_save_IFS
12528 test -z "$as_dir" && as_dir=.
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12531 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12533 break 2
12535 done
12536 done
12537 IFS=$as_save_IFS
12540 esac
12542 orig_target_ar=$ac_cv_path_orig_target_ar
12543 if test -n "$orig_target_ar"; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12545 $as_echo "$orig_target_ar" >&6; }
12546 else
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12554 else
12555 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12556 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12557 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12559 $as_echo_n "checking for $ac_word... " >&6; }
12560 if ${ac_cv_path_orig_target_ar+:} false; then :
12561 $as_echo_n "(cached) " >&6
12562 else
12563 case $orig_target_ar in
12564 [\\/]* | ?:[\\/]*)
12565 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569 for as_dir in $PATH
12571 IFS=$as_save_IFS
12572 test -z "$as_dir" && as_dir=.
12573 for ac_exec_ext in '' $ac_executable_extensions; do
12574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12575 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12577 break 2
12579 done
12580 done
12581 IFS=$as_save_IFS
12584 esac
12586 orig_target_ar=$ac_cv_path_orig_target_ar
12587 if test -n "$orig_target_ar"; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12589 $as_echo "$orig_target_ar" >&6; }
12590 else
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592 $as_echo "no" >&6; }
12596 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12599 req_avail=yes
12600 if test "$orig_target_ar" = ""; then
12601 req_avail=no
12603 if test "$orig_target_ar" = "no"; then
12604 req_avail=no
12606 if test "$req_avail" = "no"; then
12607 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12610 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12611 if test "$cross_compiling" = "yes" ; then
12612 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12613 set dummy ${target_tool_prefix}ar; ac_word=$2
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12615 $as_echo_n "checking for $ac_word... " >&6; }
12616 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 case $orig_target_ranlib in
12620 [\\/]* | ?:[\\/]*)
12621 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12627 IFS=$as_save_IFS
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12633 break 2
12635 done
12636 done
12637 IFS=$as_save_IFS
12640 esac
12642 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12643 if test -n "$orig_target_ranlib"; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12645 $as_echo "$orig_target_ranlib" >&6; }
12646 else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648 $as_echo "no" >&6; }
12652 else
12653 if test "$GCC" = "yes"; then
12654 aros_gcc_ar=`$CC -print-prog-name=ar`
12655 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12656 set dummy `basename $aros_gcc_ar`; ac_word=$2
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12658 $as_echo_n "checking for $ac_word... " >&6; }
12659 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12660 $as_echo_n "(cached) " >&6
12661 else
12662 case $orig_target_ranlib in
12663 [\\/]* | ?:[\\/]*)
12664 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668 for as_dir in `dirname $aros_gcc_ar`
12670 IFS=$as_save_IFS
12671 test -z "$as_dir" && as_dir=.
12672 for ac_exec_ext in '' $ac_executable_extensions; do
12673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12674 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12676 break 2
12678 done
12679 done
12680 IFS=$as_save_IFS
12683 esac
12685 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12686 if test -n "$orig_target_ranlib"; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12688 $as_echo "$orig_target_ranlib" >&6; }
12689 else
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12696 if test "$orig_target_ranlib" = ""; then
12697 # Extract the first word of "ar", so it can be a program name with args.
12698 set dummy ar; ac_word=$2
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700 $as_echo_n "checking for $ac_word... " >&6; }
12701 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 case $orig_target_ranlib in
12705 [\\/]* | ?:[\\/]*)
12706 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710 for as_dir in $PATH
12712 IFS=$as_save_IFS
12713 test -z "$as_dir" && as_dir=.
12714 for ac_exec_ext in '' $ac_executable_extensions; do
12715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12716 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12718 break 2
12720 done
12721 done
12722 IFS=$as_save_IFS
12725 esac
12727 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12728 if test -n "$orig_target_ranlib"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12730 $as_echo "$orig_target_ranlib" >&6; }
12731 else
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12739 else
12740 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12741 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12742 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12744 $as_echo_n "checking for $ac_word... " >&6; }
12745 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12746 $as_echo_n "(cached) " >&6
12747 else
12748 case $orig_target_ranlib in
12749 [\\/]* | ?:[\\/]*)
12750 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12754 for as_dir in $PATH
12756 IFS=$as_save_IFS
12757 test -z "$as_dir" && as_dir=.
12758 for ac_exec_ext in '' $ac_executable_extensions; do
12759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12760 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12762 break 2
12764 done
12765 done
12766 IFS=$as_save_IFS
12769 esac
12771 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12772 if test -n "$orig_target_ranlib"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12774 $as_echo "$orig_target_ranlib" >&6; }
12775 else
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12781 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12784 req_avail=yes
12785 if test "$orig_target_ranlib" = ""; then
12786 req_avail=no
12788 if test "$orig_target_ranlib" = "no"; then
12789 req_avail=no
12791 if test "$req_avail" = "no"; then
12792 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12795 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12796 if test "$cross_compiling" = "yes" ; then
12797 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12798 set dummy ${target_tool_prefix}nm; ac_word=$2
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12800 $as_echo_n "checking for $ac_word... " >&6; }
12801 if ${ac_cv_path_orig_target_nm+:} false; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 case $orig_target_nm in
12805 [\\/]* | ?:[\\/]*)
12806 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810 for as_dir in $PATH
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12816 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818 break 2
12820 done
12821 done
12822 IFS=$as_save_IFS
12825 esac
12827 orig_target_nm=$ac_cv_path_orig_target_nm
12828 if test -n "$orig_target_nm"; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12830 $as_echo "$orig_target_nm" >&6; }
12831 else
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833 $as_echo "no" >&6; }
12837 else
12838 if test "$GCC" = "yes"; then
12839 aros_gcc_nm=`$CC -print-prog-name=nm`
12840 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12841 set dummy `basename $aros_gcc_nm`; ac_word=$2
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12843 $as_echo_n "checking for $ac_word... " >&6; }
12844 if ${ac_cv_path_orig_target_nm+:} false; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847 case $orig_target_nm in
12848 [\\/]* | ?:[\\/]*)
12849 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12853 for as_dir in `dirname $aros_gcc_nm`
12855 IFS=$as_save_IFS
12856 test -z "$as_dir" && as_dir=.
12857 for ac_exec_ext in '' $ac_executable_extensions; do
12858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12859 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12861 break 2
12863 done
12864 done
12865 IFS=$as_save_IFS
12868 esac
12870 orig_target_nm=$ac_cv_path_orig_target_nm
12871 if test -n "$orig_target_nm"; then
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12873 $as_echo "$orig_target_nm" >&6; }
12874 else
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876 $as_echo "no" >&6; }
12881 if test "$orig_target_nm" = ""; then
12882 # Extract the first word of "nm", so it can be a program name with args.
12883 set dummy nm; ac_word=$2
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12885 $as_echo_n "checking for $ac_word... " >&6; }
12886 if ${ac_cv_path_orig_target_nm+:} false; then :
12887 $as_echo_n "(cached) " >&6
12888 else
12889 case $orig_target_nm in
12890 [\\/]* | ?:[\\/]*)
12891 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12901 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 break 2
12905 done
12906 done
12907 IFS=$as_save_IFS
12910 esac
12912 orig_target_nm=$ac_cv_path_orig_target_nm
12913 if test -n "$orig_target_nm"; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12915 $as_echo "$orig_target_nm" >&6; }
12916 else
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918 $as_echo "no" >&6; }
12924 else
12925 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
12926 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12927 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12929 $as_echo_n "checking for $ac_word... " >&6; }
12930 if ${ac_cv_path_orig_target_nm+:} false; then :
12931 $as_echo_n "(cached) " >&6
12932 else
12933 case $orig_target_nm in
12934 [\\/]* | ?:[\\/]*)
12935 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12939 for as_dir in $PATH
12941 IFS=$as_save_IFS
12942 test -z "$as_dir" && as_dir=.
12943 for ac_exec_ext in '' $ac_executable_extensions; do
12944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12945 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12947 break 2
12949 done
12950 done
12951 IFS=$as_save_IFS
12954 esac
12956 orig_target_nm=$ac_cv_path_orig_target_nm
12957 if test -n "$orig_target_nm"; then
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12959 $as_echo "$orig_target_nm" >&6; }
12960 else
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962 $as_echo "no" >&6; }
12966 orig_target_nm="$orig_target_nm $ac_tool_optarg"
12969 req_avail=yes
12970 if test "$orig_target_nm" = ""; then
12971 req_avail=no
12973 if test "$orig_target_nm" = "no"; then
12974 req_avail=no
12976 if test "$req_avail" = "no"; then
12977 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12980 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
12981 if test "$cross_compiling" = "yes" ; then
12982 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12983 set dummy ${target_tool_prefix}strip; ac_word=$2
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12985 $as_echo_n "checking for $ac_word... " >&6; }
12986 if ${ac_cv_path_orig_target_strip+:} false; then :
12987 $as_echo_n "(cached) " >&6
12988 else
12989 case $orig_target_strip in
12990 [\\/]* | ?:[\\/]*)
12991 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995 for as_dir in $PATH
12997 IFS=$as_save_IFS
12998 test -z "$as_dir" && as_dir=.
12999 for ac_exec_ext in '' $ac_executable_extensions; do
13000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13001 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13003 break 2
13005 done
13006 done
13007 IFS=$as_save_IFS
13010 esac
13012 orig_target_strip=$ac_cv_path_orig_target_strip
13013 if test -n "$orig_target_strip"; then
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13015 $as_echo "$orig_target_strip" >&6; }
13016 else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13022 else
13023 if test "$GCC" = "yes"; then
13024 aros_gcc_strip=`$CC -print-prog-name=strip`
13025 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13026 set dummy `basename $aros_gcc_strip`; ac_word=$2
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13028 $as_echo_n "checking for $ac_word... " >&6; }
13029 if ${ac_cv_path_orig_target_strip+:} false; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13032 case $orig_target_strip in
13033 [\\/]* | ?:[\\/]*)
13034 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038 for as_dir in `dirname $aros_gcc_strip`
13040 IFS=$as_save_IFS
13041 test -z "$as_dir" && as_dir=.
13042 for ac_exec_ext in '' $ac_executable_extensions; do
13043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13044 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13046 break 2
13048 done
13049 done
13050 IFS=$as_save_IFS
13053 esac
13055 orig_target_strip=$ac_cv_path_orig_target_strip
13056 if test -n "$orig_target_strip"; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13058 $as_echo "$orig_target_strip" >&6; }
13059 else
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13061 $as_echo "no" >&6; }
13066 if test "$orig_target_strip" = ""; then
13067 # Extract the first word of "strip", so it can be a program name with args.
13068 set dummy strip; ac_word=$2
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070 $as_echo_n "checking for $ac_word... " >&6; }
13071 if ${ac_cv_path_orig_target_strip+:} false; then :
13072 $as_echo_n "(cached) " >&6
13073 else
13074 case $orig_target_strip in
13075 [\\/]* | ?:[\\/]*)
13076 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080 for as_dir in $PATH
13082 IFS=$as_save_IFS
13083 test -z "$as_dir" && as_dir=.
13084 for ac_exec_ext in '' $ac_executable_extensions; do
13085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13086 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 break 2
13090 done
13091 done
13092 IFS=$as_save_IFS
13095 esac
13097 orig_target_strip=$ac_cv_path_orig_target_strip
13098 if test -n "$orig_target_strip"; then
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13100 $as_echo "$orig_target_strip" >&6; }
13101 else
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13103 $as_echo "no" >&6; }
13109 else
13110 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13111 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13112 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13114 $as_echo_n "checking for $ac_word... " >&6; }
13115 if ${ac_cv_path_orig_target_strip+:} false; then :
13116 $as_echo_n "(cached) " >&6
13117 else
13118 case $orig_target_strip in
13119 [\\/]* | ?:[\\/]*)
13120 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124 for as_dir in $PATH
13126 IFS=$as_save_IFS
13127 test -z "$as_dir" && as_dir=.
13128 for ac_exec_ext in '' $ac_executable_extensions; do
13129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13130 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13132 break 2
13134 done
13135 done
13136 IFS=$as_save_IFS
13139 esac
13141 orig_target_strip=$ac_cv_path_orig_target_strip
13142 if test -n "$orig_target_strip"; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13144 $as_echo "$orig_target_strip" >&6; }
13145 else
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 $as_echo "no" >&6; }
13151 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13154 req_avail=yes
13155 if test "$orig_target_strip" = ""; then
13156 req_avail=no
13158 if test "$orig_target_strip" = "no"; then
13159 req_avail=no
13161 if test "$req_avail" = "no"; then
13162 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13165 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13166 if test "$cross_compiling" = "yes" ; then
13167 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13168 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13170 $as_echo_n "checking for $ac_word... " >&6; }
13171 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13172 $as_echo_n "(cached) " >&6
13173 else
13174 case $orig_target_objcopy in
13175 [\\/]* | ?:[\\/]*)
13176 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13182 IFS=$as_save_IFS
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
13185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13186 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13188 break 2
13190 done
13191 done
13192 IFS=$as_save_IFS
13195 esac
13197 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13198 if test -n "$orig_target_objcopy"; then
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13200 $as_echo "$orig_target_objcopy" >&6; }
13201 else
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203 $as_echo "no" >&6; }
13207 else
13208 if test "$GCC" = "yes"; then
13209 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13210 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13211 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13213 $as_echo_n "checking for $ac_word... " >&6; }
13214 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 case $orig_target_objcopy in
13218 [\\/]* | ?:[\\/]*)
13219 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223 for as_dir in `dirname $aros_gcc_objcopy`
13225 IFS=$as_save_IFS
13226 test -z "$as_dir" && as_dir=.
13227 for ac_exec_ext in '' $ac_executable_extensions; do
13228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13229 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13231 break 2
13233 done
13234 done
13235 IFS=$as_save_IFS
13238 esac
13240 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13241 if test -n "$orig_target_objcopy"; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13243 $as_echo "$orig_target_objcopy" >&6; }
13244 else
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246 $as_echo "no" >&6; }
13251 if test "$orig_target_objcopy" = ""; then
13252 # Extract the first word of "objcopy", so it can be a program name with args.
13253 set dummy objcopy; ac_word=$2
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255 $as_echo_n "checking for $ac_word... " >&6; }
13256 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13257 $as_echo_n "(cached) " >&6
13258 else
13259 case $orig_target_objcopy in
13260 [\\/]* | ?:[\\/]*)
13261 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13265 for as_dir in $PATH
13267 IFS=$as_save_IFS
13268 test -z "$as_dir" && as_dir=.
13269 for ac_exec_ext in '' $ac_executable_extensions; do
13270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13271 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13273 break 2
13275 done
13276 done
13277 IFS=$as_save_IFS
13280 esac
13282 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13283 if test -n "$orig_target_objcopy"; then
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13285 $as_echo "$orig_target_objcopy" >&6; }
13286 else
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13288 $as_echo "no" >&6; }
13294 else
13295 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13296 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13297 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13299 $as_echo_n "checking for $ac_word... " >&6; }
13300 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13301 $as_echo_n "(cached) " >&6
13302 else
13303 case $orig_target_objcopy in
13304 [\\/]* | ?:[\\/]*)
13305 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13309 for as_dir in $PATH
13311 IFS=$as_save_IFS
13312 test -z "$as_dir" && as_dir=.
13313 for ac_exec_ext in '' $ac_executable_extensions; do
13314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13315 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13317 break 2
13319 done
13320 done
13321 IFS=$as_save_IFS
13324 esac
13326 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13327 if test -n "$orig_target_objcopy"; then
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13329 $as_echo "$orig_target_objcopy" >&6; }
13330 else
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332 $as_echo "no" >&6; }
13336 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13339 req_avail=yes
13340 if test "$orig_target_objcopy" = ""; then
13341 req_avail=no
13343 if test "$orig_target_objcopy" = "no"; then
13344 req_avail=no
13346 if test "$req_avail" = "no"; then
13347 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13350 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13351 if test "$cross_compiling" = "yes" ; then
13352 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13353 set dummy ${target_tool_prefix}objdump; ac_word=$2
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13355 $as_echo_n "checking for $ac_word... " >&6; }
13356 if ${ac_cv_path_orig_target_objdump+:} false; then :
13357 $as_echo_n "(cached) " >&6
13358 else
13359 case $orig_target_objdump in
13360 [\\/]* | ?:[\\/]*)
13361 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13367 IFS=$as_save_IFS
13368 test -z "$as_dir" && as_dir=.
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13371 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373 break 2
13375 done
13376 done
13377 IFS=$as_save_IFS
13380 esac
13382 orig_target_objdump=$ac_cv_path_orig_target_objdump
13383 if test -n "$orig_target_objdump"; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13385 $as_echo "$orig_target_objdump" >&6; }
13386 else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388 $as_echo "no" >&6; }
13392 else
13393 if test "$GCC" = "yes"; then
13394 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13395 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13396 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398 $as_echo_n "checking for $ac_word... " >&6; }
13399 if ${ac_cv_path_orig_target_objdump+:} false; then :
13400 $as_echo_n "(cached) " >&6
13401 else
13402 case $orig_target_objdump in
13403 [\\/]* | ?:[\\/]*)
13404 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408 for as_dir in `dirname $aros_gcc_objdump`
13410 IFS=$as_save_IFS
13411 test -z "$as_dir" && as_dir=.
13412 for ac_exec_ext in '' $ac_executable_extensions; do
13413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13414 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13416 break 2
13418 done
13419 done
13420 IFS=$as_save_IFS
13423 esac
13425 orig_target_objdump=$ac_cv_path_orig_target_objdump
13426 if test -n "$orig_target_objdump"; then
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13428 $as_echo "$orig_target_objdump" >&6; }
13429 else
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13431 $as_echo "no" >&6; }
13436 if test "$orig_target_objdump" = ""; then
13437 # Extract the first word of "objdump", so it can be a program name with args.
13438 set dummy objdump; ac_word=$2
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13440 $as_echo_n "checking for $ac_word... " >&6; }
13441 if ${ac_cv_path_orig_target_objdump+:} false; then :
13442 $as_echo_n "(cached) " >&6
13443 else
13444 case $orig_target_objdump in
13445 [\\/]* | ?:[\\/]*)
13446 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13450 for as_dir in $PATH
13452 IFS=$as_save_IFS
13453 test -z "$as_dir" && as_dir=.
13454 for ac_exec_ext in '' $ac_executable_extensions; do
13455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13456 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13458 break 2
13460 done
13461 done
13462 IFS=$as_save_IFS
13465 esac
13467 orig_target_objdump=$ac_cv_path_orig_target_objdump
13468 if test -n "$orig_target_objdump"; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13470 $as_echo "$orig_target_objdump" >&6; }
13471 else
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473 $as_echo "no" >&6; }
13479 else
13480 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13481 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13482 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13484 $as_echo_n "checking for $ac_word... " >&6; }
13485 if ${ac_cv_path_orig_target_objdump+:} false; then :
13486 $as_echo_n "(cached) " >&6
13487 else
13488 case $orig_target_objdump in
13489 [\\/]* | ?:[\\/]*)
13490 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13494 for as_dir in $PATH
13496 IFS=$as_save_IFS
13497 test -z "$as_dir" && as_dir=.
13498 for ac_exec_ext in '' $ac_executable_extensions; do
13499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13500 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13502 break 2
13504 done
13505 done
13506 IFS=$as_save_IFS
13509 esac
13511 orig_target_objdump=$ac_cv_path_orig_target_objdump
13512 if test -n "$orig_target_objdump"; then
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13514 $as_echo "$orig_target_objdump" >&6; }
13515 else
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517 $as_echo "no" >&6; }
13521 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13524 req_avail=yes
13525 if test "$orig_target_objdump" = ""; then
13526 req_avail=no
13528 if test "$orig_target_objdump" = "no"; then
13529 req_avail=no
13531 if test "$req_avail" = "no"; then
13532 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13536 if test "$kernel_tool_prefix" = "none" ; then
13537 # No kernel tools specified
13538 # Assume target tools == kernel tools with ELF wrapper
13539 aros_kernel_cc=$orig_target_cc
13540 aros_kernel_cxx=$orig_target_cxx
13541 aros_kernel_cpp=$orig_target_cpp
13542 aros_kernel_ld=$orig_target_ld
13543 aros_kernel_as=$orig_target_as
13544 aros_kernel_ar=$orig_target_ar
13545 aros_kernel_ranlib=$orig_target_ranlib
13546 aros_kernel_nm=$orig_target_nm
13547 aros_kernel_strip=$orig_target_strip
13548 aros_kernel_objcopy=$orig_target_objcopy
13549 aros_kernel_objdump=$orig_target_objdump
13550 use_kernel_cc_wrapper=yes
13553 # At this point, all aros_kernel_* and aros_target_*
13554 # tools should be set up correctly
13556 CC="$aros_kernel_cc $kernel_tool_flags"
13557 CPP="$aros_kernel_cpp"
13559 #-----------------------------------------------------------------------------
13561 # Find all the tools we need to compile. This could be cross-compiling
13562 # though! If that is the case we use the GNU form of the target and
13563 # simply add this to the front of the binary name. This is rather simple,
13564 # but it should work under most circumstances.
13566 # The default tools are to use the same as the host, but only if the
13567 # host and target CPU are the same. With GCC this is normally enough.
13570 aros_cc_pre=""
13571 aros_shared_ld="$aros_host_ld"
13573 aros_target_mkdep="$aros_host_mkdep"
13575 # The default tools executables to be linked to.
13576 if test "$rescomp" != ""; then
13577 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13578 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13580 $as_echo_n "checking for $ac_word... " >&6; }
13581 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13582 $as_echo_n "(cached) " >&6
13583 else
13584 case $aros_kernel_rescomp in
13585 [\\/]* | ?:[\\/]*)
13586 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590 for as_dir in $PATH
13592 IFS=$as_save_IFS
13593 test -z "$as_dir" && as_dir=.
13594 for ac_exec_ext in '' $ac_executable_extensions; do
13595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13596 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13598 break 2
13600 done
13601 done
13602 IFS=$as_save_IFS
13605 esac
13607 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13608 if test -n "$aros_kernel_rescomp"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13610 $as_echo "$aros_kernel_rescomp" >&6; }
13611 else
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613 $as_echo "no" >&6; }
13617 req_avail=yes
13618 if test "$aros_kernel_rescomp" = ""; then
13619 req_avail=no
13621 if test "$aros_kernel_rescomp" = "no"; then
13622 req_avail=no
13624 if test "$req_avail" = "no"; then
13625 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13629 # Set up the sources for the symlink farm
13630 if test "$crosstools" = "yes"; then
13631 crosstools_target=tools-crosstools
13634 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13635 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13637 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13638 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13639 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13640 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13641 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13642 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13643 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13645 # aros_cc_pre is a variable that is added to the front of the compiler name
13646 # in the generated aros-gcc shell script. We need this to enable the cache
13647 # to work across cleaned builds. Also, support DISTCC using the correct
13648 # environment variable.
13651 if test "x${DISTCC}" != "x" ; then
13652 if test "x${CCACHE}" != "x" ; then
13653 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13654 else
13655 aros_cc_pre="${DISTCC} "
13657 else
13658 if test "x${CCACHE}" != "x" ; then
13659 aros_cc_pre="${CCACHE} "
13663 aros_target_nostdinc_cflags=-nostdinc
13665 aros_target_nostartup_ldflags=-nostartfiles
13667 aros_target_nix_ldflags=-nix
13669 aros_target_detach_ldflags=-detach
13671 aros_target_nostdlib_ldflags=-nostdlib
13674 # Target tools
13676 if test "$aros_target_toolchain" != "yes"; then
13677 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13678 if test "$GCC" = "yes"; then
13679 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13681 else
13682 # We do not know which c compiler version we are going to build and what we need to know
13683 # here is different for different versions so this will be set later during the
13684 # build of crosstools.
13685 if test "$aros_toolchain" = "gnu" ; then
13686 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13687 elif test "$aros_toolchain" = "llvm" ; then
13688 prefix="$AROS_CROSSTOOLSDIR/bin/"
13690 aros_target_cc_path=@aros_target_cc_path@
13692 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13693 aros_target_cc="${prefix}${toolchain_c_compiler}"
13694 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13695 aros_target_as="${prefix}${toolchain_as}"
13696 if test "${use_ld_wrapper}" = "yes"; then
13697 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13698 else
13699 aros_target_ld="${prefix}${toolchain_ld}"
13701 aros_toolchain_ld="${prefix}${toolchain_ld}"
13703 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13704 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13705 aros_target_objdump="${prefix}${toolchain_objdump}"
13706 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13707 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13708 aros_target_strip="${prefix}${toolchain_strip}"
13709 aros_plain_nm="${prefix}${toolchain_nm}"
13710 aros_plain_ar="${prefix}${toolchain_ar}"
13712 # Check whether --enable-includes was given.
13713 if test "${enable_includes+set}" = set; then :
13714 enableval=$enable_includes; aros_target_incl=$enable_includes
13715 else
13716 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13720 if test "$aros_kernel_includes" = ""; then
13721 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13722 aros_kernel_includes="-isystem $aros_target_incl"
13726 if test "$aros_kernel_includes" != "" ; then
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13728 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13729 if test "$aros_kernel_cc_includes" = "" ; then
13730 # Try to guess where the directory is.
13731 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13732 if test -d $aros_kernel_cc_includes; then
13733 # Check if there is also an include-fixed directory and add it
13734 # to kernel compiler's include path as it may contain some of
13735 # the headers we need.
13736 if test -d "$aros_kernel_cc_includes"-fixed; then
13737 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13739 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13740 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13741 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13743 else
13744 # The directory doesn't exist, we need to do some more work.
13745 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13747 # These are the headers we're looking for.
13748 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13749 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13750 zutil.h stdint.h"
13752 dirs=
13753 for h in $headers; do
13754 # Which other headers are needed by each of the above?
13755 deps=$(echo "#include <$h>" | \
13756 $aros_kernel_cc -E -M - 2>/dev/null | \
13757 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13759 # Copy all the needed headers to a directory beneath gendir.
13760 for d in $deps; do
13761 h=$(basename $d)
13762 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13763 sed -n "s,^.*/include\(/.*\),\1,p")
13764 ! test -d $dir && mkdir -p $dir
13765 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13766 done
13767 done
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13771 $as_echo "$aros_kernel_cc_includes" >&6; }
13772 # Adding -nostdinc to kernel includes as they are always used together.
13773 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13776 if test "$crosstools" != "yes"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13778 $as_echo_n "checking for the target compiler's include path... " >&6; }
13779 if test "$aros_target_cc_includes" = "" ; then
13780 #try to guess where the directory is
13781 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13782 if ! test -d $aros_target_cc_includes; then
13783 #the directory doesn't exist, we need to do some more work
13784 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13786 #these are the headers we're looking for
13787 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13788 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13789 zutil.h"
13791 dirs=
13792 for h in $headers; do
13793 #which other headers each of the above headers needs?
13794 deps=$(echo "#include <$h>" | \
13795 $orig_target_cc -E -M - 2>/dev/null | \
13796 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13798 #copy all the needed headers to a directory beneath gendir
13799 for d in $deps; do
13800 h=$(basename $d)
13801 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13802 sed -n "s,^.*/include\(/.*\),\1,p")
13803 ! test -d $dir && mkdir -p $dir
13804 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13805 done
13806 done
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13810 $as_echo "$aros_target_cc_includes" >&6; }
13811 else
13812 # We do not know which c compiler version we are going to build and what we need to know
13813 # here is different for different versions so this will be set later during the
13814 # build of crosstools.
13815 aros_target_cc_includes=@aros_target_cc_includes@
13819 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13820 # On GCC >= 4.0 -iquote should be used
13823 save_cc="$CC"
13824 save_cflags="$CFLAGS"
13825 CFLAGS="-iquote."
13826 kernel_cflags_iquote=$host_cflags_iquote
13827 kernel_cflags_iquote_end=$host_cflags_iquote_end
13828 if test "x-$cross_compiling" = "x-yes"; then
13829 CC="$aros_kernel_cc"
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13831 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13832 if test "x-$crosstools" != "x-yes"; then
13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13837 main ()
13841 return 0;
13843 _ACEOF
13844 if ac_fn_c_try_compile "$LINENO"; then :
13845 use_no_stack_protector="yes"
13846 else
13847 use_no_stack_protector="no"
13849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13850 else
13851 # we do know it is supported for the smallest version of gcc we are going to build
13852 # we assume it's also supported by later versions
13853 use_no_stack_protector=yes
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13856 $as_echo "$use_no_stack_protector" >&6; }
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13858 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13859 if test "x-$crosstools" != "x-yes"; then
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13864 main ()
13868 return 0;
13870 _ACEOF
13871 if ac_fn_c_try_compile "$LINENO"; then :
13872 has_iquote="yes"
13873 else
13874 has_iquote="no"
13876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13877 else
13878 # we do know it is supported for the smallest version of gcc we are going to build
13879 # we assume it's also supported by later versions
13880 has_iquote=yes
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13883 $as_echo "$has_iquote" >&6; }
13884 if test "x-$has_iquote" = "x-yes" ; then
13885 kernel_cflags_iquote=-iquote
13886 kernel_cflags_iquote_end=
13887 else
13888 kernel_cflags_iquote=-I
13889 kernel_cflags_iquote_end=-I-
13892 if test "x-$use_no_stack_protector" = "x-yes" ; then
13893 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13896 #-----------------------------------------------------------------------------
13898 # Check if we can explicitly choose older version of symbol hashing
13900 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13901 CC="$aros_kernel_cc"
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13903 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13908 main ()
13912 return 0;
13914 _ACEOF
13915 if ac_fn_c_try_link "$LINENO"; then :
13916 use_hash_style="yes"
13917 else
13918 use_hash_style="no"
13920 rm -f core conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13923 $as_echo "$use_hash_style" >&6; }
13924 if test "x-$use_hash_style" = "x-yes" ; then
13925 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13927 CC="$save_cc"
13928 CFLAGS="$save_cflags"
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13937 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13939 # Check whether --with-resolution was given.
13940 if test "${with_resolution+set}" = set; then :
13941 withval=$with_resolution; resolution=$withval
13942 else
13943 resolution=none
13946 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13947 if test "$resolution" = "yes" ; then
13948 resolution="none"
13950 if test "$resolution" = "no" ; then
13951 resolution="none"
13953 if test "$resolution" != "none" ; then
13954 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13955 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13956 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13959 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13960 aros_cv_nominal_width=$aros_nominal_width
13961 aros_cv_nominal_height=$aros_nominal_height
13962 aros_cv_nominal_depth=$aros_nominal_depth
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
13965 $as_echo_n "checking whether serial debug is enabled... " >&6; }
13967 # Check whether --with-serial-debug was given.
13968 if test "${with_serial_debug+set}" = set; then :
13969 withval=$with_serial_debug; serial_debug=$withval
13970 else
13971 serial_debug=none
13974 if test "$aros_serial_debug" = 0 ; then
13975 serial_debug_forced=""
13976 if test "$serial_debug" = "yes" ; then
13977 serial_debug="1"
13979 if test "$serial_debug" = "no" ; then
13980 serial_debug="none"
13982 else
13983 serial_debug_forced="(forced)"
13984 serial_debug=$aros_serial_debug
13986 if test "$serial_debug" != "none" ; then
13987 aros_serial_debug=$serial_debug
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13989 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13990 else
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992 $as_echo "no" >&6; }
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
13996 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
13997 # Check whether --enable-palm_debug_hack was given.
13998 if test "${enable_palm_debug_hack+set}" = set; then :
13999 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14000 else
14001 palm_debug_hack="no"
14004 if test "$palm_debug_hack" = "yes" ; then
14005 aros_palm_debug_hack="1"
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14008 $as_echo "$palm_debug_hack" >&6; }
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14011 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14012 # Check whether --enable-usb30_code was given.
14013 if test "${enable_usb30_code+set}" = set; then :
14014 enableval=$enable_usb30_code; usb30_code="yes"
14015 else
14016 usb30_code="no"
14019 if test "$usb30_code" = "yes" ; then
14020 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
14021 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14024 $as_echo "$usb30_code" >&6; }
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14027 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14028 # Check whether --enable-nesting_supervisor was given.
14029 if test "${enable_nesting_supervisor+set}" = set; then :
14030 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14031 else
14032 nesting_supervisor="no"
14035 if test "$nesting_supervisor" = "yes" ; then
14036 aros_nesting_supervisor="1"
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14039 $as_echo "$nesting_supervisor" >&6; }
14041 if test "$aros_enable_mmu" = "" ; then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14043 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14044 # Check whether --enable-mmu was given.
14045 if test "${enable_mmu+set}" = set; then :
14046 enableval=$enable_mmu; aros_enable_mmu=$enableval
14047 else
14048 aros_enable_mmu="yes"
14051 if test "$aros_enable_mmu" = "" ; then
14052 aros_enable_mmu="yes"
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14055 $as_echo "$aros_enable_mmu" >&6; }
14057 if test "$aros_enable_mmu" = "no" ; then
14058 aros_enable_mmu="0"
14059 else
14060 aros_enable_mmu="1"
14064 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14066 if test "x-$need_dlopen" != "x-no" ; then
14067 save_libs="$LIBS"
14068 LIBS=""
14069 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14070 if test "x$ac_cv_func_dlopen" = xyes; then :
14071 have_dl="yes"
14072 else
14073 have_dl="no"
14076 if test "x-$have_dl" = "x-no" ; then
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14078 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14079 if ${ac_cv_lib_dl_dlopen+:} false; then :
14080 $as_echo_n "(cached) " >&6
14081 else
14082 ac_check_lib_save_LIBS=$LIBS
14083 LIBS="-ldl $LIBS"
14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14087 /* Override any GCC internal prototype to avoid an error.
14088 Use char because int might match the return type of a GCC
14089 builtin and then its argument prototype would still apply. */
14090 #ifdef __cplusplus
14091 extern "C"
14092 #endif
14093 char dlopen ();
14095 main ()
14097 return dlopen ();
14099 return 0;
14101 _ACEOF
14102 if ac_fn_c_try_link "$LINENO"; then :
14103 ac_cv_lib_dl_dlopen=yes
14104 else
14105 ac_cv_lib_dl_dlopen=no
14107 rm -f core conftest.err conftest.$ac_objext \
14108 conftest$ac_exeext conftest.$ac_ext
14109 LIBS=$ac_check_lib_save_LIBS
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14112 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14113 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14114 have_dl="yes"
14115 aros_host_ldflags="$aros_host_ldflags -ldl"
14116 else
14117 have_dl="no"
14121 if test "x-$have_dl" = "x-no" ; then
14122 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14124 LIBS="$save_libs"
14128 # Check whether --enable-x11_hidd was given.
14129 if test "${enable_x11_hidd+set}" = set; then :
14130 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14131 else
14132 x11_hidd="$need_x11"
14135 case "x-$x11_hidd" in
14136 x-yes|x-no|x-auto) ;;
14137 *) x11_hidd="$need_x11" ;;
14138 esac
14140 ENABLE_X11=0
14142 if test "x-$x11_hidd" != "x-no" ; then
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14145 $as_echo_n "checking for X... " >&6; }
14148 # Check whether --with-x was given.
14149 if test "${with_x+set}" = set; then :
14150 withval=$with_x;
14153 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14154 if test "x$with_x" = xno; then
14155 # The user explicitly disabled X.
14156 have_x=disabled
14157 else
14158 case $x_includes,$x_libraries in #(
14159 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14160 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14161 $as_echo_n "(cached) " >&6
14162 else
14163 # One or both of the vars are not set, and there is no cached value.
14164 ac_x_includes=no ac_x_libraries=no
14165 rm -f -r conftest.dir
14166 if mkdir conftest.dir; then
14167 cd conftest.dir
14168 cat >Imakefile <<'_ACEOF'
14169 incroot:
14170 @echo incroot='${INCROOT}'
14171 usrlibdir:
14172 @echo usrlibdir='${USRLIBDIR}'
14173 libdir:
14174 @echo libdir='${LIBDIR}'
14175 _ACEOF
14176 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14177 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14178 for ac_var in incroot usrlibdir libdir; do
14179 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14180 done
14181 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14182 for ac_extension in a so sl dylib la dll; do
14183 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14184 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14185 ac_im_usrlibdir=$ac_im_libdir; break
14187 done
14188 # Screen out bogus values from the imake configuration. They are
14189 # bogus both because they are the default anyway, and because
14190 # using them would break gcc on systems where it needs fixed includes.
14191 case $ac_im_incroot in
14192 /usr/include) ac_x_includes= ;;
14193 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14194 esac
14195 case $ac_im_usrlibdir in
14196 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14197 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14198 esac
14200 cd ..
14201 rm -f -r conftest.dir
14204 # Standard set of common directories for X headers.
14205 # Check X11 before X11Rn because it is often a symlink to the current release.
14206 ac_x_header_dirs='
14207 /usr/X11/include
14208 /usr/X11R7/include
14209 /usr/X11R6/include
14210 /usr/X11R5/include
14211 /usr/X11R4/include
14213 /usr/include/X11
14214 /usr/include/X11R7
14215 /usr/include/X11R6
14216 /usr/include/X11R5
14217 /usr/include/X11R4
14219 /usr/local/X11/include
14220 /usr/local/X11R7/include
14221 /usr/local/X11R6/include
14222 /usr/local/X11R5/include
14223 /usr/local/X11R4/include
14225 /usr/local/include/X11
14226 /usr/local/include/X11R7
14227 /usr/local/include/X11R6
14228 /usr/local/include/X11R5
14229 /usr/local/include/X11R4
14231 /usr/X386/include
14232 /usr/x386/include
14233 /usr/XFree86/include/X11
14235 /usr/include
14236 /usr/local/include
14237 /usr/unsupported/include
14238 /usr/athena/include
14239 /usr/local/x11r5/include
14240 /usr/lpp/Xamples/include
14242 /usr/openwin/include
14243 /usr/openwin/share/include'
14245 if test "$ac_x_includes" = no; then
14246 # Guess where to find include files, by looking for Xlib.h.
14247 # First, try using that file with no special directory specified.
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 #include <X11/Xlib.h>
14251 _ACEOF
14252 if ac_fn_c_try_cpp "$LINENO"; then :
14253 # We can compile using X headers with no special include directory.
14254 ac_x_includes=
14255 else
14256 for ac_dir in $ac_x_header_dirs; do
14257 if test -r "$ac_dir/X11/Xlib.h"; then
14258 ac_x_includes=$ac_dir
14259 break
14261 done
14263 rm -f conftest.err conftest.i conftest.$ac_ext
14264 fi # $ac_x_includes = no
14266 if test "$ac_x_libraries" = no; then
14267 # Check for the libraries.
14268 # See if we find them without any special options.
14269 # Don't add to $LIBS permanently.
14270 ac_save_LIBS=$LIBS
14271 LIBS="-lX11 $LIBS"
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274 #include <X11/Xlib.h>
14276 main ()
14278 XrmInitialize ()
14280 return 0;
14282 _ACEOF
14283 if ac_fn_c_try_link "$LINENO"; then :
14284 LIBS=$ac_save_LIBS
14285 # We can link X programs with no special library path.
14286 ac_x_libraries=
14287 else
14288 LIBS=$ac_save_LIBS
14289 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14291 # Don't even attempt the hair of trying to link an X program!
14292 for ac_extension in a so sl dylib la dll; do
14293 if test -r "$ac_dir/libX11.$ac_extension"; then
14294 ac_x_libraries=$ac_dir
14295 break 2
14297 done
14298 done
14300 rm -f core conftest.err conftest.$ac_objext \
14301 conftest$ac_exeext conftest.$ac_ext
14302 fi # $ac_x_libraries = no
14304 case $ac_x_includes,$ac_x_libraries in #(
14305 no,* | *,no | *\'*)
14306 # Didn't find X, or a directory has "'" in its name.
14307 ac_cv_have_x="have_x=no";; #(
14309 # Record where we found X for the cache.
14310 ac_cv_have_x="have_x=yes\
14311 ac_x_includes='$ac_x_includes'\
14312 ac_x_libraries='$ac_x_libraries'"
14313 esac
14315 ;; #(
14316 *) have_x=yes;;
14317 esac
14318 eval "$ac_cv_have_x"
14319 fi # $with_x != no
14321 if test "$have_x" != yes; then
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14323 $as_echo "$have_x" >&6; }
14324 no_x=yes
14325 else
14326 # If each of the values was on the command line, it overrides each guess.
14327 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14328 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14329 # Update the cache value to reflect the command line values.
14330 ac_cv_have_x="have_x=yes\
14331 ac_x_includes='$x_includes'\
14332 ac_x_libraries='$x_libraries'"
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14334 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14338 if test -n "$x_includes"; then
14339 X_CFLAGS="$X_CFLAGS -I$x_includes"
14342 if test -n "$x_libraries"; then
14343 X_LIBS="$X_LIBS -L$x_libraries"
14346 if test "x-$no_x" = "x-yes" ; then
14348 if test "x-$x11_hidd" != "x-auto" ; then
14349 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14352 else
14353 host_x_gfx=yes
14354 ENABLE_X11=1
14356 aros_host_x11_cflags="$X_CFLAGS"
14357 aros_host_x11_ldflags="$X_LIBS -lX11"
14359 # Check whether --enable-x11_shm was given.
14360 if test "${enable_x11_shm+set}" = set; then :
14361 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14362 else
14363 x11_hidd_shm="auto"
14366 case "x-$x11_hidd_shm" in
14367 x-yes|x-no|x-auto) ;;
14368 *) x11_hidd_shm="auto" ;;
14369 esac
14371 have_xshm=no
14373 if test "x-$x11_hidd_shm" != "x-no" ; then
14375 for ac_header in sys/ipc.h
14376 do :
14377 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14378 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14379 cat >>confdefs.h <<_ACEOF
14380 #define HAVE_SYS_IPC_H 1
14381 _ACEOF
14385 done
14387 for ac_header in sys/shm.h
14388 do :
14389 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14390 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14391 cat >>confdefs.h <<_ACEOF
14392 #define HAVE_SYS_SHM_H 1
14393 _ACEOF
14397 done
14400 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14402 save_cflags="$CFLAGS"
14403 save_ldflags="$LDFLAGS"
14404 CFLAGS="$CFLAGS $X_CFLAGS"
14405 LDFLAGS="$LDFLAGS $X_LIBS"
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14407 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14408 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14409 $as_echo_n "(cached) " >&6
14410 else
14411 ac_check_lib_save_LIBS=$LIBS
14412 LIBS="-lXext $LIBS"
14413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414 /* end confdefs.h. */
14416 /* Override any GCC internal prototype to avoid an error.
14417 Use char because int might match the return type of a GCC
14418 builtin and then its argument prototype would still apply. */
14419 #ifdef __cplusplus
14420 extern "C"
14421 #endif
14422 char XShmQueryExtension ();
14424 main ()
14426 return XShmQueryExtension ();
14428 return 0;
14430 _ACEOF
14431 if ac_fn_c_try_link "$LINENO"; then :
14432 ac_cv_lib_Xext_XShmQueryExtension=yes
14433 else
14434 ac_cv_lib_Xext_XShmQueryExtension=no
14436 rm -f core conftest.err conftest.$ac_objext \
14437 conftest$ac_exeext conftest.$ac_ext
14438 LIBS=$ac_check_lib_save_LIBS
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14441 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14442 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14443 have_xshm=yes
14446 CFLAGS="$save_cflags"
14447 LDFLAGS="$save_ldflags"
14451 if test "x-$have_xshm" = "x-yes" ; then
14452 DO_XSHM_SUPPORT="1"
14453 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14454 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14455 else
14456 DO_XSHM_SUPPORT="0"
14460 # Check whether --enable-x11_vidmode was given.
14461 if test "${enable_x11_vidmode+set}" = set; then :
14462 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14463 else
14464 x11_hidd_vidmode="auto"
14467 case "x-$x11_hidd_vidmode" in
14468 x-yes|x-no|x-auto) ;;
14469 *) x11_hidd_vidmode="auto" ;;
14470 esac
14472 have_vidmode=no
14474 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14476 save_cflags="$CFLAGS"
14477 save_ldflags="$LDFLAGS"
14478 CFLAGS="$CFLAGS $X_CFLAGS"
14479 LDFLAGS="$LDFLAGS $X_LIBS"
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14481 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14482 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14483 $as_echo_n "(cached) " >&6
14484 else
14485 ac_check_lib_save_LIBS=$LIBS
14486 LIBS="-lXxf86vm $LIBS"
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14490 /* Override any GCC internal prototype to avoid an error.
14491 Use char because int might match the return type of a GCC
14492 builtin and then its argument prototype would still apply. */
14493 #ifdef __cplusplus
14494 extern "C"
14495 #endif
14496 char XF86VidModeQueryExtension ();
14498 main ()
14500 return XF86VidModeQueryExtension ();
14502 return 0;
14504 _ACEOF
14505 if ac_fn_c_try_link "$LINENO"; then :
14506 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14507 else
14508 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14510 rm -f core conftest.err conftest.$ac_objext \
14511 conftest$ac_exeext conftest.$ac_ext
14512 LIBS=$ac_check_lib_save_LIBS
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14515 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14516 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14517 have_vidmode=yes
14520 CFLAGS="$save_cflags"
14521 LDFLAGS="$save_ldflags"
14524 if test "x-$have_vidmode" = "x-yes" ; then
14525 DO_VIDMODE_SUPPORT="1"
14526 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14527 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14528 else
14529 DO_VIDMODE_SUPPORT="0"
14534 # Check whether --enable-sdl_hidd was given.
14535 if test "${enable_sdl_hidd+set}" = set; then :
14536 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14537 else
14538 sdl_hidd="auto"
14541 case "x-$sdl_hidd" in
14542 x-yes|x-no|x-auto) ;;
14543 *) sdl_hidd="auto" ;;
14544 esac
14546 if test "x-$sdl_hidd" != "x-no" ; then
14548 SDL_VERSION=1.2.5
14550 # Check whether --with-sdl-prefix was given.
14551 if test "${with_sdl_prefix+set}" = set; then :
14552 withval=$with_sdl_prefix; sdl_prefix="$withval"
14553 else
14554 sdl_prefix=""
14558 # Check whether --with-sdl-exec-prefix was given.
14559 if test "${with_sdl_exec_prefix+set}" = set; then :
14560 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14561 else
14562 sdl_exec_prefix=""
14565 # Check whether --enable-sdltest was given.
14566 if test "${enable_sdltest+set}" = set; then :
14567 enableval=$enable_sdltest;
14568 else
14569 enable_sdltest=yes
14573 if test x$sdl_exec_prefix != x ; then
14574 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14575 if test x${SDL_CONFIG+set} != xset ; then
14576 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14579 if test x$sdl_prefix != x ; then
14580 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14581 if test x${SDL_CONFIG+set} != xset ; then
14582 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14586 as_save_PATH="$PATH"
14587 if test "x$prefix" != xNONE; then
14588 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14590 # Extract the first word of "sdl-config", so it can be a program name with args.
14591 set dummy sdl-config; ac_word=$2
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14593 $as_echo_n "checking for $ac_word... " >&6; }
14594 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14595 $as_echo_n "(cached) " >&6
14596 else
14597 case $SDL_CONFIG in
14598 [\\/]* | ?:[\\/]*)
14599 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14603 for as_dir in $PATH
14605 IFS=$as_save_IFS
14606 test -z "$as_dir" && as_dir=.
14607 for ac_exec_ext in '' $ac_executable_extensions; do
14608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14609 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14611 break 2
14613 done
14614 done
14615 IFS=$as_save_IFS
14617 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14619 esac
14621 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14622 if test -n "$SDL_CONFIG"; then
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14624 $as_echo "$SDL_CONFIG" >&6; }
14625 else
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14627 $as_echo "no" >&6; }
14631 PATH="$as_save_PATH"
14632 min_sdl_version=$SDL_VERSION
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14634 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14635 no_sdl=""
14636 if test "$SDL_CONFIG" = "no" ; then
14637 no_sdl=yes
14638 else
14639 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14640 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14642 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14643 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14644 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14645 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14646 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14647 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14648 if test "x$enable_sdltest" = "xyes" ; then
14649 ac_save_CFLAGS="$CFLAGS"
14650 ac_save_CXXFLAGS="$CXXFLAGS"
14651 ac_save_LIBS="$LIBS"
14652 CFLAGS="$CFLAGS $SDL_CFLAGS"
14653 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14654 LIBS="$LIBS $SDL_LIBS"
14655 rm -f conf.sdltest
14656 if test "$cross_compiling" = yes; then :
14657 echo $ac_n "cross compiling; assumed OK... $ac_c"
14658 else
14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h. */
14662 #include <stdio.h>
14663 #include <stdlib.h>
14664 #include <string.h>
14665 #include "SDL.h"
14667 char*
14668 my_strdup (char *str)
14670 char *new_str;
14672 if (str)
14674 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14675 strcpy (new_str, str);
14677 else
14678 new_str = NULL;
14680 return new_str;
14683 int main (int argc, char *argv[])
14685 int major, minor, micro;
14686 char *tmp_version;
14688 /* This hangs on some systems (?)
14689 system ("touch conf.sdltest");
14691 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14693 /* HP/UX 9 (%@#!) writes to sscanf strings */
14694 tmp_version = my_strdup("$min_sdl_version");
14695 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14696 printf("%s, bad version string\n", "$min_sdl_version");
14697 exit(1);
14700 if (($sdl_major_version > major) ||
14701 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14702 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14704 return 0;
14706 else
14708 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14709 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14710 printf("*** best to upgrade to the required version.\n");
14711 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14712 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14713 printf("*** config.cache before re-running configure\n");
14714 return 1;
14719 _ACEOF
14720 if ac_fn_c_try_run "$LINENO"; then :
14722 else
14723 no_sdl=yes
14725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14726 conftest.$ac_objext conftest.beam conftest.$ac_ext
14729 CFLAGS="$ac_save_CFLAGS"
14730 CXXFLAGS="$ac_save_CXXFLAGS"
14731 LIBS="$ac_save_LIBS"
14734 if test "x$no_sdl" = x ; then
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14736 $as_echo "yes" >&6; }
14737 have_sdl="yes"
14738 else
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14740 $as_echo "no" >&6; }
14741 if test "$SDL_CONFIG" = "no" ; then
14742 echo "*** The sdl-config script installed by SDL could not be found"
14743 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14744 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14745 echo "*** full path to sdl-config."
14746 else
14747 if test -f conf.sdltest ; then
14749 else
14750 echo "*** Could not run SDL test program, checking why..."
14751 CFLAGS="$CFLAGS $SDL_CFLAGS"
14752 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14753 LIBS="$LIBS $SDL_LIBS"
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14757 #include <stdio.h>
14758 #include "SDL.h"
14760 int main(int argc, char *argv[])
14761 { return 0; }
14762 #undef main
14763 #define main K_and_R_C_main
14766 main ()
14768 return 0;
14770 return 0;
14772 _ACEOF
14773 if ac_fn_c_try_link "$LINENO"; then :
14774 echo "*** The test program compiled, but did not run. This usually means"
14775 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14776 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14777 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14778 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14779 echo "*** is required on your system"
14780 echo "***"
14781 echo "*** If you have an old version installed, it is best to remove it, although"
14782 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14783 else
14784 echo "*** The test program failed to compile or link. See the file config.log for the"
14785 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14786 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14787 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14789 rm -f core conftest.err conftest.$ac_objext \
14790 conftest$ac_exeext conftest.$ac_ext
14791 CFLAGS="$ac_save_CFLAGS"
14792 CXXFLAGS="$ac_save_CXXFLAGS"
14793 LIBS="$ac_save_LIBS"
14796 SDL_CFLAGS=""
14797 SDL_LIBS=""
14798 have_sdl="no"
14802 rm -f conf.sdltest
14805 if test "x-$have_sdl" != "x-yes" ; then
14807 if test "x-$sdl_hidd" != "x-auto" ; then
14808 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14811 else
14812 host_sdl_gfx=yes
14813 aros_host_sdl_cflags=$SDL_CFLAGS
14814 aros_host_sdl_libs=$SDL_LIBS
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14822 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14823 # Check whether --enable-dbus was given.
14824 if test "${enable_dbus+set}" = set; then :
14825 enableval=$enable_dbus; dbus="yes"
14826 else
14827 dbus="no"
14830 if test "$dbus" = "yes" ; then
14831 ENABLE_DBUS=1
14832 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14833 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14834 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14835 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14836 else
14837 ENABLE_DBUS=0
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14840 $as_echo "$dbus" >&6; }
14842 if test "$use_kernel_cc_wrapper" = "yes" ; then
14843 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14847 # Generic
14861 # Compatability with other Amiga-like operation systems
14864 # Host related
14893 # Target Related
14967 # Hosted Graphics Related
14985 # Native version related
14990 # Palm native version related
14993 # Unix/Hosted version related
14996 # MMU related
14999 # Apple iOS related
15004 # ARM default GCC target related
15011 # Android related
15016 # DBUS related
15023 #X11 related
15026 # Debug related
15032 # Collect-aros stuff: "-ius" to ignore undefined symbols
15035 # C compiler related
15040 #ObjC compiler related
15043 #Java related
15046 # USB3.0 code
15049 case "$aros_flavour" in
15050 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15051 aros_flavour="emulation" ;;
15052 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15053 aros_flavour="emulation" ;;
15054 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15055 aros_flavour="standalone";;
15056 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15057 aros_flavour="standalone";;
15058 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15059 aros_flavour="native" ;;
15060 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15061 aros_flavour="native" ;;
15062 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15063 aros_flavour="linklib" ;;
15064 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15065 aros_flavour="palmnative" ;;
15066 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15067 aros_flavour="mac68knative" ;;
15068 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15069 aros_flavour="ppcnative" ;;
15070 esac
15072 if test ! -d ${aros_inc_dir} ; then
15073 ${MKDIR} ${aros_inc_dir}
15075 if test ! -d ${aros_geninc_dir} ; then
15076 ${MKDIR} ${aros_geninc_dir}
15078 if test ! -d ${aros_hostcfg_dir} ; then
15079 ${MKDIR} ${aros_hostcfg_dir}
15081 if test ! -d ${aros_targetcfg_dir} ; then
15082 ${MKDIR} ${aros_targetcfg_dir}
15084 if test ! -d ${aros_tools_dir} ; then
15085 ${MKDIR} ${aros_tools_dir}
15087 if test ! -d ${aros_scripts_dir} ; then
15088 ${MKDIR} ${aros_scripts_dir}
15091 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15094 # Generic build tools (metamake, etc)
15095 ac_config_commands="$ac_config_commands genmf-executable-support"
15097 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/mmakefile:compiler/include/mmakefile.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
15100 # Binutils
15101 ac_config_commands="$ac_config_commands binutils-support"
15103 if test "${use_ld_wrapper}" = "yes"; then
15104 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"
15107 # Bare Elf support script and spec
15108 if test "${use_kernel_cc_wrapper}" = "yes"; then
15109 ac_config_commands="$ac_config_commands elf-compiler-support"
15111 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"
15115 # Host compiler support scripts and spec
15116 if test "${aros_target_toolchain}" = "no"; then
15117 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15119 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"
15123 # Android support
15124 if test "$aros_target_variant" == "android"; then
15125 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15129 # cmake helper
15130 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15133 cat >confcache <<\_ACEOF
15134 # This file is a shell script that caches the results of configure
15135 # tests run on this system so they can be shared between configure
15136 # scripts and configure runs, see configure's option --config-cache.
15137 # It is not useful on other systems. If it contains results you don't
15138 # want to keep, you may remove or edit it.
15140 # config.status only pays attention to the cache file if you give it
15141 # the --recheck option to rerun configure.
15143 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15144 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15145 # following values.
15147 _ACEOF
15149 # The following way of writing the cache mishandles newlines in values,
15150 # but we know of no workaround that is simple, portable, and efficient.
15151 # So, we kill variables containing newlines.
15152 # Ultrix sh set writes to stderr and can't be redirected directly,
15153 # and sets the high bit in the cache file unless we assign to the vars.
15155 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15156 eval ac_val=\$$ac_var
15157 case $ac_val in #(
15158 *${as_nl}*)
15159 case $ac_var in #(
15160 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15161 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15162 esac
15163 case $ac_var in #(
15164 _ | IFS | as_nl) ;; #(
15165 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15166 *) { eval $ac_var=; unset $ac_var;} ;;
15167 esac ;;
15168 esac
15169 done
15171 (set) 2>&1 |
15172 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15173 *${as_nl}ac_space=\ *)
15174 # `set' does not quote correctly, so add quotes: double-quote
15175 # substitution turns \\\\ into \\, and sed turns \\ into \.
15176 sed -n \
15177 "s/'/'\\\\''/g;
15178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15179 ;; #(
15181 # `set' quotes correctly as required by POSIX, so do not add quotes.
15182 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15184 esac |
15185 sort
15187 sed '
15188 /^ac_cv_env_/b end
15189 t clear
15190 :clear
15191 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15192 t end
15193 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15194 :end' >>confcache
15195 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15196 if test -w "$cache_file"; then
15197 if test "x$cache_file" != "x/dev/null"; then
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15199 $as_echo "$as_me: updating cache $cache_file" >&6;}
15200 if test ! -f "$cache_file" || test -h "$cache_file"; then
15201 cat confcache >"$cache_file"
15202 else
15203 case $cache_file in #(
15204 */* | ?:*)
15205 mv -f confcache "$cache_file"$$ &&
15206 mv -f "$cache_file"$$ "$cache_file" ;; #(
15208 mv -f confcache "$cache_file" ;;
15209 esac
15212 else
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15214 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15217 rm -f confcache
15219 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15220 # Let make expand exec_prefix.
15221 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15223 DEFS=-DHAVE_CONFIG_H
15225 ac_libobjs=
15226 ac_ltlibobjs=
15228 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15229 # 1. Remove the extension, and $U if already installed.
15230 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15231 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15232 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15233 # will be set to the directory where LIBOBJS objects are built.
15234 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15235 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15236 done
15237 LIBOBJS=$ac_libobjs
15239 LTLIBOBJS=$ac_ltlibobjs
15243 : "${CONFIG_STATUS=./config.status}"
15244 ac_write_fail=0
15245 ac_clean_files_save=$ac_clean_files
15246 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15248 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15249 as_write_fail=0
15250 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15251 #! $SHELL
15252 # Generated by $as_me.
15253 # Run this file to recreate the current configuration.
15254 # Compiler output produced by configure, useful for debugging
15255 # configure, is in config.log if it exists.
15257 debug=false
15258 ac_cs_recheck=false
15259 ac_cs_silent=false
15261 SHELL=\${CONFIG_SHELL-$SHELL}
15262 export SHELL
15263 _ASEOF
15264 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15265 ## -------------------- ##
15266 ## M4sh Initialization. ##
15267 ## -------------------- ##
15269 # Be more Bourne compatible
15270 DUALCASE=1; export DUALCASE # for MKS sh
15271 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15272 emulate sh
15273 NULLCMD=:
15274 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15275 # is contrary to our usage. Disable this feature.
15276 alias -g '${1+"$@"}'='"$@"'
15277 setopt NO_GLOB_SUBST
15278 else
15279 case `(set -o) 2>/dev/null` in #(
15280 *posix*) :
15281 set -o posix ;; #(
15282 *) :
15284 esac
15288 as_nl='
15290 export as_nl
15291 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15292 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15293 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15294 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15295 # Prefer a ksh shell builtin over an external printf program on Solaris,
15296 # but without wasting forks for bash or zsh.
15297 if test -z "$BASH_VERSION$ZSH_VERSION" \
15298 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15299 as_echo='print -r --'
15300 as_echo_n='print -rn --'
15301 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15302 as_echo='printf %s\n'
15303 as_echo_n='printf %s'
15304 else
15305 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15306 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15307 as_echo_n='/usr/ucb/echo -n'
15308 else
15309 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15310 as_echo_n_body='eval
15311 arg=$1;
15312 case $arg in #(
15313 *"$as_nl"*)
15314 expr "X$arg" : "X\\(.*\\)$as_nl";
15315 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15316 esac;
15317 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15319 export as_echo_n_body
15320 as_echo_n='sh -c $as_echo_n_body as_echo'
15322 export as_echo_body
15323 as_echo='sh -c $as_echo_body as_echo'
15326 # The user is always right.
15327 if test "${PATH_SEPARATOR+set}" != set; then
15328 PATH_SEPARATOR=:
15329 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15330 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15331 PATH_SEPARATOR=';'
15336 # IFS
15337 # We need space, tab and new line, in precisely that order. Quoting is
15338 # there to prevent editors from complaining about space-tab.
15339 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15340 # splitting by setting IFS to empty value.)
15341 IFS=" "" $as_nl"
15343 # Find who we are. Look in the path if we contain no directory separator.
15344 as_myself=
15345 case $0 in #((
15346 *[\\/]* ) as_myself=$0 ;;
15347 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15348 for as_dir in $PATH
15350 IFS=$as_save_IFS
15351 test -z "$as_dir" && as_dir=.
15352 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15353 done
15354 IFS=$as_save_IFS
15357 esac
15358 # We did not find ourselves, most probably we were run as `sh COMMAND'
15359 # in which case we are not to be found in the path.
15360 if test "x$as_myself" = x; then
15361 as_myself=$0
15363 if test ! -f "$as_myself"; then
15364 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15365 exit 1
15368 # Unset variables that we do not need and which cause bugs (e.g. in
15369 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15370 # suppresses any "Segmentation fault" message there. '((' could
15371 # trigger a bug in pdksh 5.2.14.
15372 for as_var in BASH_ENV ENV MAIL MAILPATH
15373 do eval test x\${$as_var+set} = xset \
15374 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15375 done
15376 PS1='$ '
15377 PS2='> '
15378 PS4='+ '
15380 # NLS nuisances.
15381 LC_ALL=C
15382 export LC_ALL
15383 LANGUAGE=C
15384 export LANGUAGE
15386 # CDPATH.
15387 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15390 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15391 # ----------------------------------------
15392 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15393 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15394 # script with STATUS, using 1 if that was 0.
15395 as_fn_error ()
15397 as_status=$1; test $as_status -eq 0 && as_status=1
15398 if test "$4"; then
15399 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15400 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15402 $as_echo "$as_me: error: $2" >&2
15403 as_fn_exit $as_status
15404 } # as_fn_error
15407 # as_fn_set_status STATUS
15408 # -----------------------
15409 # Set $? to STATUS, without forking.
15410 as_fn_set_status ()
15412 return $1
15413 } # as_fn_set_status
15415 # as_fn_exit STATUS
15416 # -----------------
15417 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15418 as_fn_exit ()
15420 set +e
15421 as_fn_set_status $1
15422 exit $1
15423 } # as_fn_exit
15425 # as_fn_unset VAR
15426 # ---------------
15427 # Portably unset VAR.
15428 as_fn_unset ()
15430 { eval $1=; unset $1;}
15432 as_unset=as_fn_unset
15433 # as_fn_append VAR VALUE
15434 # ----------------------
15435 # Append the text in VALUE to the end of the definition contained in VAR. Take
15436 # advantage of any shell optimizations that allow amortized linear growth over
15437 # repeated appends, instead of the typical quadratic growth present in naive
15438 # implementations.
15439 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15440 eval 'as_fn_append ()
15442 eval $1+=\$2
15444 else
15445 as_fn_append ()
15447 eval $1=\$$1\$2
15449 fi # as_fn_append
15451 # as_fn_arith ARG...
15452 # ------------------
15453 # Perform arithmetic evaluation on the ARGs, and store the result in the
15454 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15455 # must be portable across $(()) and expr.
15456 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15457 eval 'as_fn_arith ()
15459 as_val=$(( $* ))
15461 else
15462 as_fn_arith ()
15464 as_val=`expr "$@" || test $? -eq 1`
15466 fi # as_fn_arith
15469 if expr a : '\(a\)' >/dev/null 2>&1 &&
15470 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15471 as_expr=expr
15472 else
15473 as_expr=false
15476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15477 as_basename=basename
15478 else
15479 as_basename=false
15482 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15483 as_dirname=dirname
15484 else
15485 as_dirname=false
15488 as_me=`$as_basename -- "$0" ||
15489 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15490 X"$0" : 'X\(//\)$' \| \
15491 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15492 $as_echo X/"$0" |
15493 sed '/^.*\/\([^/][^/]*\)\/*$/{
15494 s//\1/
15497 /^X\/\(\/\/\)$/{
15498 s//\1/
15501 /^X\/\(\/\).*/{
15502 s//\1/
15505 s/.*/./; q'`
15507 # Avoid depending upon Character Ranges.
15508 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15509 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15510 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15511 as_cr_digits='0123456789'
15512 as_cr_alnum=$as_cr_Letters$as_cr_digits
15514 ECHO_C= ECHO_N= ECHO_T=
15515 case `echo -n x` in #(((((
15516 -n*)
15517 case `echo 'xy\c'` in
15518 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15519 xy) ECHO_C='\c';;
15520 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15521 ECHO_T=' ';;
15522 esac;;
15524 ECHO_N='-n';;
15525 esac
15527 rm -f conf$$ conf$$.exe conf$$.file
15528 if test -d conf$$.dir; then
15529 rm -f conf$$.dir/conf$$.file
15530 else
15531 rm -f conf$$.dir
15532 mkdir conf$$.dir 2>/dev/null
15534 if (echo >conf$$.file) 2>/dev/null; then
15535 if ln -s conf$$.file conf$$ 2>/dev/null; then
15536 as_ln_s='ln -s'
15537 # ... but there are two gotchas:
15538 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15539 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15540 # In both cases, we have to default to `cp -pR'.
15541 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15542 as_ln_s='cp -pR'
15543 elif ln conf$$.file conf$$ 2>/dev/null; then
15544 as_ln_s=ln
15545 else
15546 as_ln_s='cp -pR'
15548 else
15549 as_ln_s='cp -pR'
15551 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15552 rmdir conf$$.dir 2>/dev/null
15555 # as_fn_mkdir_p
15556 # -------------
15557 # Create "$as_dir" as a directory, including parents if necessary.
15558 as_fn_mkdir_p ()
15561 case $as_dir in #(
15562 -*) as_dir=./$as_dir;;
15563 esac
15564 test -d "$as_dir" || eval $as_mkdir_p || {
15565 as_dirs=
15566 while :; do
15567 case $as_dir in #(
15568 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15569 *) as_qdir=$as_dir;;
15570 esac
15571 as_dirs="'$as_qdir' $as_dirs"
15572 as_dir=`$as_dirname -- "$as_dir" ||
15573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15574 X"$as_dir" : 'X\(//\)[^/]' \| \
15575 X"$as_dir" : 'X\(//\)$' \| \
15576 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15577 $as_echo X"$as_dir" |
15578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15579 s//\1/
15582 /^X\(\/\/\)[^/].*/{
15583 s//\1/
15586 /^X\(\/\/\)$/{
15587 s//\1/
15590 /^X\(\/\).*/{
15591 s//\1/
15594 s/.*/./; q'`
15595 test -d "$as_dir" && break
15596 done
15597 test -z "$as_dirs" || eval "mkdir $as_dirs"
15598 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15601 } # as_fn_mkdir_p
15602 if mkdir -p . 2>/dev/null; then
15603 as_mkdir_p='mkdir -p "$as_dir"'
15604 else
15605 test -d ./-p && rmdir ./-p
15606 as_mkdir_p=false
15610 # as_fn_executable_p FILE
15611 # -----------------------
15612 # Test if FILE is an executable regular file.
15613 as_fn_executable_p ()
15615 test -f "$1" && test -x "$1"
15616 } # as_fn_executable_p
15617 as_test_x='test -x'
15618 as_executable_p=as_fn_executable_p
15620 # Sed expression to map a string onto a valid CPP name.
15621 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15623 # Sed expression to map a string onto a valid variable name.
15624 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15627 exec 6>&1
15628 ## ----------------------------------- ##
15629 ## Main body of $CONFIG_STATUS script. ##
15630 ## ----------------------------------- ##
15631 _ASEOF
15632 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15635 # Save the log message, to keep $0 and so on meaningful, and to
15636 # report actual input values of CONFIG_FILES etc. instead of their
15637 # values after options handling.
15638 ac_log="
15639 This file was extended by $as_me, which was
15640 generated by GNU Autoconf 2.69. Invocation command line was
15642 CONFIG_FILES = $CONFIG_FILES
15643 CONFIG_HEADERS = $CONFIG_HEADERS
15644 CONFIG_LINKS = $CONFIG_LINKS
15645 CONFIG_COMMANDS = $CONFIG_COMMANDS
15646 $ $0 $@
15648 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15651 _ACEOF
15653 case $ac_config_files in *"
15654 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15655 esac
15657 case $ac_config_headers in *"
15658 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15659 esac
15662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15663 # Files that config.status was made for.
15664 config_files="$ac_config_files"
15665 config_headers="$ac_config_headers"
15666 config_commands="$ac_config_commands"
15668 _ACEOF
15670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15671 ac_cs_usage="\
15672 \`$as_me' instantiates files and other configuration actions
15673 from templates according to the current configuration. Unless the files
15674 and actions are specified as TAGs, all are instantiated by default.
15676 Usage: $0 [OPTION]... [TAG]...
15678 -h, --help print this help, then exit
15679 -V, --version print version number and configuration settings, then exit
15680 --config print configuration, then exit
15681 -q, --quiet, --silent
15682 do not print progress messages
15683 -d, --debug don't remove temporary files
15684 --recheck update $as_me by reconfiguring in the same conditions
15685 --file=FILE[:TEMPLATE]
15686 instantiate the configuration file FILE
15687 --header=FILE[:TEMPLATE]
15688 instantiate the configuration header FILE
15690 Configuration files:
15691 $config_files
15693 Configuration headers:
15694 $config_headers
15696 Configuration commands:
15697 $config_commands
15699 Report bugs to the package provider."
15701 _ACEOF
15702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15703 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15704 ac_cs_version="\\
15705 config.status
15706 configured by $0, generated by GNU Autoconf 2.69,
15707 with options \\"\$ac_cs_config\\"
15709 Copyright (C) 2012 Free Software Foundation, Inc.
15710 This config.status script is free software; the Free Software Foundation
15711 gives unlimited permission to copy, distribute and modify it."
15713 ac_pwd='$ac_pwd'
15714 srcdir='$srcdir'
15715 test -n "\$AWK" || AWK=awk
15716 _ACEOF
15718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15719 # The default lists apply if the user does not specify any file.
15720 ac_need_defaults=:
15721 while test $# != 0
15723 case $1 in
15724 --*=?*)
15725 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15726 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15727 ac_shift=:
15729 --*=)
15730 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15731 ac_optarg=
15732 ac_shift=:
15735 ac_option=$1
15736 ac_optarg=$2
15737 ac_shift=shift
15739 esac
15741 case $ac_option in
15742 # Handling of the options.
15743 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15744 ac_cs_recheck=: ;;
15745 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15746 $as_echo "$ac_cs_version"; exit ;;
15747 --config | --confi | --conf | --con | --co | --c )
15748 $as_echo "$ac_cs_config"; exit ;;
15749 --debug | --debu | --deb | --de | --d | -d )
15750 debug=: ;;
15751 --file | --fil | --fi | --f )
15752 $ac_shift
15753 case $ac_optarg in
15754 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15755 '') as_fn_error $? "missing file argument" ;;
15756 esac
15757 as_fn_append CONFIG_FILES " '$ac_optarg'"
15758 ac_need_defaults=false;;
15759 --header | --heade | --head | --hea )
15760 $ac_shift
15761 case $ac_optarg in
15762 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15763 esac
15764 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15765 ac_need_defaults=false;;
15766 --he | --h)
15767 # Conflict between --help and --header
15768 as_fn_error $? "ambiguous option: \`$1'
15769 Try \`$0 --help' for more information.";;
15770 --help | --hel | -h )
15771 $as_echo "$ac_cs_usage"; exit ;;
15772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15774 ac_cs_silent=: ;;
15776 # This is an error.
15777 -*) as_fn_error $? "unrecognized option: \`$1'
15778 Try \`$0 --help' for more information." ;;
15780 *) as_fn_append ac_config_targets " $1"
15781 ac_need_defaults=false ;;
15783 esac
15784 shift
15785 done
15787 ac_configure_extra_args=
15789 if $ac_cs_silent; then
15790 exec 6>/dev/null
15791 ac_configure_extra_args="$ac_configure_extra_args --silent"
15794 _ACEOF
15795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15796 if \$ac_cs_recheck; then
15797 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15798 shift
15799 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15800 CONFIG_SHELL='$SHELL'
15801 export CONFIG_SHELL
15802 exec "\$@"
15805 _ACEOF
15806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15807 exec 5>>config.log
15809 echo
15810 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15811 ## Running $as_me. ##
15812 _ASBOX
15813 $as_echo "$ac_log"
15814 } >&5
15816 _ACEOF
15817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15819 # INIT-COMMANDS
15821 aros_tools_dir=${aros_tools_dir}
15824 aros_host_exe_suffix=${aros_host_exe_suffix}
15825 aros_tools_dir=${aros_tools_dir}
15826 aros_target_cpu=${aros_target_cpu}
15827 aros_target_arch=${aros_target_arch}
15828 aros_target_suffix=${aros_target_suffix}
15829 orig_target_nm=${orig_target_nm}
15830 orig_target_as=${orig_target_as}
15831 orig_target_ar=${orig_target_ar}
15832 orig_target_ranlib=${orig_target_ranlib}
15833 orig_target_objdump=${orig_target_objdump}
15834 orig_target_objcopy=${orig_target_objcopy}
15835 orig_target_strip=${orig_target_strip}
15836 aros_kernel_ld=${aros_kernel_ld}
15840 aros_host_exe_suffix=${aros_host_exe_suffix}
15841 aros_tools_dir=${aros_tools_dir}
15842 aros_target_cpu=${aros_target_cpu}
15843 aros_target_arch=${aros_target_arch}
15844 aros_target_suffix=${aros_target_suffix}
15845 aros_kernel_ld=${aros_kernel_ld}
15849 aros_host_exe_suffix=${aros_host_exe_suffix}
15850 aros_tools_dir=${aros_tools_dir}
15851 aros_target_cpu=${aros_target_cpu}
15852 aros_target_arch=${aros_target_arch}
15853 aros_target_suffix=${aros_target_suffix}
15857 _ACEOF
15859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15861 # Handling of arguments.
15862 for ac_config_target in $ac_config_targets
15864 case $ac_config_target in
15865 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15866 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15867 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15868 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15869 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15870 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15871 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15872 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15873 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15874 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15875 "compiler/include/mmakefile") CONFIG_FILES="$CONFIG_FILES compiler/include/mmakefile:compiler/include/mmakefile.in" ;;
15876 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15877 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15878 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15879 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15880 "${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" ;;
15881 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15882 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15883 "${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" ;;
15884 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15885 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15886 "${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" ;;
15887 "${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" ;;
15888 "${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" ;;
15889 "${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" ;;
15890 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15892 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15893 esac
15894 done
15897 # If the user did not use the arguments to specify the items to instantiate,
15898 # then the envvar interface is used. Set only those that are not.
15899 # We use the long form for the default assignment because of an extremely
15900 # bizarre bug on SunOS 4.1.3.
15901 if $ac_need_defaults; then
15902 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15903 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15904 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15907 # Have a temporary directory for convenience. Make it in the build tree
15908 # simply because there is no reason against having it here, and in addition,
15909 # creating and moving files from /tmp can sometimes cause problems.
15910 # Hook for its removal unless debugging.
15911 # Note that there is a small window in which the directory will not be cleaned:
15912 # after its creation but before its name has been assigned to `$tmp'.
15913 $debug ||
15915 tmp= ac_tmp=
15916 trap 'exit_status=$?
15917 : "${ac_tmp:=$tmp}"
15918 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15920 trap 'as_fn_exit 1' 1 2 13 15
15922 # Create a (secure) tmp directory for tmp files.
15925 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15926 test -d "$tmp"
15927 } ||
15929 tmp=./conf$$-$RANDOM
15930 (umask 077 && mkdir "$tmp")
15931 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15932 ac_tmp=$tmp
15934 # Set up the scripts for CONFIG_FILES section.
15935 # No need to generate them if there are no CONFIG_FILES.
15936 # This happens for instance with `./config.status config.h'.
15937 if test -n "$CONFIG_FILES"; then
15940 ac_cr=`echo X | tr X '\015'`
15941 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15942 # But we know of no other shell where ac_cr would be empty at this
15943 # point, so we can use a bashism as a fallback.
15944 if test "x$ac_cr" = x; then
15945 eval ac_cr=\$\'\\r\'
15947 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15948 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15949 ac_cs_awk_cr='\\r'
15950 else
15951 ac_cs_awk_cr=$ac_cr
15954 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15955 _ACEOF
15959 echo "cat >conf$$subs.awk <<_ACEOF" &&
15960 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15961 echo "_ACEOF"
15962 } >conf$$subs.sh ||
15963 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15964 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15965 ac_delim='%!_!# '
15966 for ac_last_try in false false false false false :; do
15967 . ./conf$$subs.sh ||
15968 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15970 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15971 if test $ac_delim_n = $ac_delim_num; then
15972 break
15973 elif $ac_last_try; then
15974 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15975 else
15976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15978 done
15979 rm -f conf$$subs.sh
15981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15982 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15983 _ACEOF
15984 sed -n '
15986 s/^/S["/; s/!.*/"]=/
15989 s/^[^!]*!//
15990 :repl
15991 t repl
15992 s/'"$ac_delim"'$//
15993 t delim
15996 s/\(.\{148\}\)..*/\1/
15997 t more1
15998 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16001 b repl
16002 :more1
16003 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16006 s/.\{148\}//
16007 t nl
16008 :delim
16010 s/\(.\{148\}\)..*/\1/
16011 t more2
16012 s/["\\]/\\&/g; s/^/"/; s/$/"/
16015 :more2
16016 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16019 s/.\{148\}//
16020 t delim
16021 ' <conf$$subs.awk | sed '
16022 /^[^""]/{
16024 s/\n//
16026 ' >>$CONFIG_STATUS || ac_write_fail=1
16027 rm -f conf$$subs.awk
16028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16029 _ACAWK
16030 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16031 for (key in S) S_is_set[key] = 1
16032 FS = "\a"
16036 line = $ 0
16037 nfields = split(line, field, "@")
16038 substed = 0
16039 len = length(field[1])
16040 for (i = 2; i < nfields; i++) {
16041 key = field[i]
16042 keylen = length(key)
16043 if (S_is_set[key]) {
16044 value = S[key]
16045 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16046 len += length(value) + length(field[++i])
16047 substed = 1
16048 } else
16049 len += 1 + keylen
16052 print line
16055 _ACAWK
16056 _ACEOF
16057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16058 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16059 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16060 else
16062 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16063 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16064 _ACEOF
16066 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16067 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16068 # trailing colons and then remove the whole line if VPATH becomes empty
16069 # (actually we leave an empty line to preserve line numbers).
16070 if test "x$srcdir" = x.; then
16071 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16073 s///
16074 s/^/:/
16075 s/[ ]*$/:/
16076 s/:\$(srcdir):/:/g
16077 s/:\${srcdir}:/:/g
16078 s/:@srcdir@:/:/g
16079 s/^:*//
16080 s/:*$//
16082 s/\(=[ ]*\).*/\1/
16084 s/\n//
16085 s/^[^=]*=[ ]*$//
16089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16090 fi # test -n "$CONFIG_FILES"
16092 # Set up the scripts for CONFIG_HEADERS section.
16093 # No need to generate them if there are no CONFIG_HEADERS.
16094 # This happens for instance with `./config.status Makefile'.
16095 if test -n "$CONFIG_HEADERS"; then
16096 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16097 BEGIN {
16098 _ACEOF
16100 # Transform confdefs.h into an awk script `defines.awk', embedded as
16101 # here-document in config.status, that substitutes the proper values into
16102 # config.h.in to produce config.h.
16104 # Create a delimiter string that does not exist in confdefs.h, to ease
16105 # handling of long lines.
16106 ac_delim='%!_!# '
16107 for ac_last_try in false false :; do
16108 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16109 if test -z "$ac_tt"; then
16110 break
16111 elif $ac_last_try; then
16112 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16113 else
16114 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16116 done
16118 # For the awk script, D is an array of macro values keyed by name,
16119 # likewise P contains macro parameters if any. Preserve backslash
16120 # newline sequences.
16122 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16123 sed -n '
16124 s/.\{148\}/&'"$ac_delim"'/g
16125 t rset
16126 :rset
16127 s/^[ ]*#[ ]*define[ ][ ]*/ /
16128 t def
16130 :def
16131 s/\\$//
16132 t bsnl
16133 s/["\\]/\\&/g
16134 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16135 D["\1"]=" \3"/p
16136 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16138 :bsnl
16139 s/["\\]/\\&/g
16140 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16141 D["\1"]=" \3\\\\\\n"\\/p
16142 t cont
16143 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16144 t cont
16146 :cont
16148 s/.\{148\}/&'"$ac_delim"'/g
16149 t clear
16150 :clear
16151 s/\\$//
16152 t bsnlc
16153 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16155 :bsnlc
16156 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16157 b cont
16158 ' <confdefs.h | sed '
16159 s/'"$ac_delim"'/"\\\
16160 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16163 for (key in D) D_is_set[key] = 1
16164 FS = "\a"
16166 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16167 line = \$ 0
16168 split(line, arg, " ")
16169 if (arg[1] == "#") {
16170 defundef = arg[2]
16171 mac1 = arg[3]
16172 } else {
16173 defundef = substr(arg[1], 2)
16174 mac1 = arg[2]
16176 split(mac1, mac2, "(") #)
16177 macro = mac2[1]
16178 prefix = substr(line, 1, index(line, defundef) - 1)
16179 if (D_is_set[macro]) {
16180 # Preserve the white space surrounding the "#".
16181 print prefix "define", macro P[macro] D[macro]
16182 next
16183 } else {
16184 # Replace #undef with comments. This is necessary, for example,
16185 # in the case of _POSIX_SOURCE, which is predefined and required
16186 # on some systems where configure will not decide to define it.
16187 if (defundef == "undef") {
16188 print "/*", prefix defundef, macro, "*/"
16189 next
16193 { print }
16194 _ACAWK
16195 _ACEOF
16196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16197 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16198 fi # test -n "$CONFIG_HEADERS"
16201 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16202 shift
16203 for ac_tag
16205 case $ac_tag in
16206 :[FHLC]) ac_mode=$ac_tag; continue;;
16207 esac
16208 case $ac_mode$ac_tag in
16209 :[FHL]*:*);;
16210 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16211 :[FH]-) ac_tag=-:-;;
16212 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16213 esac
16214 ac_save_IFS=$IFS
16215 IFS=:
16216 set x $ac_tag
16217 IFS=$ac_save_IFS
16218 shift
16219 ac_file=$1
16220 shift
16222 case $ac_mode in
16223 :L) ac_source=$1;;
16224 :[FH])
16225 ac_file_inputs=
16226 for ac_f
16228 case $ac_f in
16229 -) ac_f="$ac_tmp/stdin";;
16230 *) # Look for the file first in the build tree, then in the source tree
16231 # (if the path is not absolute). The absolute path cannot be DOS-style,
16232 # because $ac_f cannot contain `:'.
16233 test -f "$ac_f" ||
16234 case $ac_f in
16235 [\\/$]*) false;;
16236 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16237 esac ||
16238 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16239 esac
16240 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16241 as_fn_append ac_file_inputs " '$ac_f'"
16242 done
16244 # Let's still pretend it is `configure' which instantiates (i.e., don't
16245 # use $as_me), people would be surprised to read:
16246 # /* config.h. Generated by config.status. */
16247 configure_input='Generated from '`
16248 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16249 `' by configure.'
16250 if test x"$ac_file" != x-; then
16251 configure_input="$ac_file. $configure_input"
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16253 $as_echo "$as_me: creating $ac_file" >&6;}
16255 # Neutralize special characters interpreted by sed in replacement strings.
16256 case $configure_input in #(
16257 *\&* | *\|* | *\\* )
16258 ac_sed_conf_input=`$as_echo "$configure_input" |
16259 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16260 *) ac_sed_conf_input=$configure_input;;
16261 esac
16263 case $ac_tag in
16264 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16266 esac
16268 esac
16270 ac_dir=`$as_dirname -- "$ac_file" ||
16271 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16272 X"$ac_file" : 'X\(//\)[^/]' \| \
16273 X"$ac_file" : 'X\(//\)$' \| \
16274 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16275 $as_echo X"$ac_file" |
16276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16277 s//\1/
16280 /^X\(\/\/\)[^/].*/{
16281 s//\1/
16284 /^X\(\/\/\)$/{
16285 s//\1/
16288 /^X\(\/\).*/{
16289 s//\1/
16292 s/.*/./; q'`
16293 as_dir="$ac_dir"; as_fn_mkdir_p
16294 ac_builddir=.
16296 case "$ac_dir" in
16297 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16299 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16300 # A ".." for each directory in $ac_dir_suffix.
16301 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16302 case $ac_top_builddir_sub in
16303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16305 esac ;;
16306 esac
16307 ac_abs_top_builddir=$ac_pwd
16308 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16309 # for backward compatibility:
16310 ac_top_builddir=$ac_top_build_prefix
16312 case $srcdir in
16313 .) # We are building in place.
16314 ac_srcdir=.
16315 ac_top_srcdir=$ac_top_builddir_sub
16316 ac_abs_top_srcdir=$ac_pwd ;;
16317 [\\/]* | ?:[\\/]* ) # Absolute name.
16318 ac_srcdir=$srcdir$ac_dir_suffix;
16319 ac_top_srcdir=$srcdir
16320 ac_abs_top_srcdir=$srcdir ;;
16321 *) # Relative name.
16322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16323 ac_top_srcdir=$ac_top_build_prefix$srcdir
16324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16325 esac
16326 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16329 case $ac_mode in
16332 # CONFIG_FILE
16335 _ACEOF
16337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16338 # If the template does not know about datarootdir, expand it.
16339 # FIXME: This hack should be removed a few years after 2.60.
16340 ac_datarootdir_hack=; ac_datarootdir_seen=
16341 ac_sed_dataroot='
16342 /datarootdir/ {
16346 /@datadir@/p
16347 /@docdir@/p
16348 /@infodir@/p
16349 /@localedir@/p
16350 /@mandir@/p'
16351 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16352 *datarootdir*) ac_datarootdir_seen=yes;;
16353 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16355 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16356 _ACEOF
16357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16358 ac_datarootdir_hack='
16359 s&@datadir@&$datadir&g
16360 s&@docdir@&$docdir&g
16361 s&@infodir@&$infodir&g
16362 s&@localedir@&$localedir&g
16363 s&@mandir@&$mandir&g
16364 s&\\\${datarootdir}&$datarootdir&g' ;;
16365 esac
16366 _ACEOF
16368 # Neutralize VPATH when `$srcdir' = `.'.
16369 # Shell code in configure.ac might set extrasub.
16370 # FIXME: do we really want to maintain this feature?
16371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16372 ac_sed_extra="$ac_vpsub
16373 $extrasub
16374 _ACEOF
16375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16378 s|@configure_input@|$ac_sed_conf_input|;t t
16379 s&@top_builddir@&$ac_top_builddir_sub&;t t
16380 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16381 s&@srcdir@&$ac_srcdir&;t t
16382 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16383 s&@top_srcdir@&$ac_top_srcdir&;t t
16384 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16385 s&@builddir@&$ac_builddir&;t t
16386 s&@abs_builddir@&$ac_abs_builddir&;t t
16387 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16388 $ac_datarootdir_hack
16390 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16391 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16393 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16394 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16395 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16396 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16398 which seems to be undefined. Please make sure it is defined" >&5
16399 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16400 which seems to be undefined. Please make sure it is defined" >&2;}
16402 rm -f "$ac_tmp/stdin"
16403 case $ac_file in
16404 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16405 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16406 esac \
16407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16411 # CONFIG_HEADER
16413 if test x"$ac_file" != x-; then
16415 $as_echo "/* $configure_input */" \
16416 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16417 } >"$ac_tmp/config.h" \
16418 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16419 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16421 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16422 else
16423 rm -f "$ac_file"
16424 mv "$ac_tmp/config.h" "$ac_file" \
16425 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16427 else
16428 $as_echo "/* $configure_input */" \
16429 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16430 || as_fn_error $? "could not create -" "$LINENO" 5
16434 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16435 $as_echo "$as_me: executing $ac_file commands" >&6;}
16437 esac
16440 case $ac_file$ac_mode in
16441 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16442 "binutils-support":C)
16443 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16444 mkdir -p $prefix
16445 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16447 chmod a+x ${prefix2}-ld
16449 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16450 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16451 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16452 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16453 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16454 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16455 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16457 "elf-compiler-support":C)
16458 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16459 mkdir -p $prefix
16460 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16462 chmod a+x ${prefix2}-gcc
16464 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16466 "host-compiler-wrapper-support":C)
16467 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16468 mkdir -p $prefix
16469 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16471 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16474 esac
16475 done # for ac_tag
16478 as_fn_exit 0
16479 _ACEOF
16480 ac_clean_files=$ac_clean_files_save
16482 test $ac_write_fail = 0 ||
16483 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16486 # configure is writing to config.log, and then calls config.status.
16487 # config.status does its own redirection, appending to config.log.
16488 # Unfortunately, on DOS this fails, as config.log is still kept open
16489 # by configure, so config.status won't be able to write to it; its
16490 # output is simply discarded. So we exec the FD to /dev/null,
16491 # effectively closing config.log, so it can be properly (re)opened and
16492 # appended to by config.status. When coming back to configure, we
16493 # need to make the FD available again.
16494 if test "$no_create" != yes; then
16495 ac_cs_success=:
16496 ac_config_status_args=
16497 test "$silent" = yes &&
16498 ac_config_status_args="$ac_config_status_args --quiet"
16499 exec 5>/dev/null
16500 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16501 exec 5>>config.log
16502 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16503 # would make configure fail if this is the last instruction.
16504 $ac_cs_success || as_fn_exit 1
16506 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16508 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16513 #XXX compatability...
16514 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16516 if test -n "$aros_shared_cflags" ; then
16517 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16518 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg