revert between 56095 -> 55830 in arch
[AROS.git] / configure
blobe80e678a1dfdeaf482a037dce9ac23ba2b3dbdf8
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 target_grub2_version
657 aros_host_sdl_libs
658 aros_host_sdl_cflags
659 aros_host_x11_ldflags
660 aros_host_x11_cflags
661 DO_VIDMODE_SUPPORT
662 DO_XSHM_SUPPORT
663 aros_nominal_depth
664 aros_nominal_height
665 aros_nominal_width
666 pci_hidd_target
667 crosstools_cxx_target
668 crosstools_target
669 aros_isa_flags
670 aros_isa_extra
671 aros_optimization_cflags
672 aros_config_coverage
673 aros_config_lto
674 aros_target_strip_flags
675 aros_target_genmap
676 aros_debug_ldflags
677 aros_debug_aflags
678 aros_debug_cxxflags
679 aros_debug_cflags
680 aros_debug_cppflags
681 aros_kernel_ldflags
682 aros_kernel_objcflags
683 aros_kernel_includes
684 aros_kernel_cflags
685 aros_kernel_cppflags
686 aros_kernel_sysroot
687 aros_config_ldflags
688 aros_config_aflags
689 aros_config_cxxflags
690 aros_config_cflags
691 aros_config_cppflags
692 aros_nowarn_flags
693 aros_warn_flags
694 aros_shared_ldflags
695 aros_shared_aflags
696 aros_shared_cflags
697 aros_arch_libs
698 aros_compiler_libs
699 spec_obj_format
700 aros_object_format
701 aros_shared_ld
702 aros_shared_default
703 aros_target_nm
704 aros_target_strip
705 aros_target_objcopy
706 aros_target_objdump
707 aros_target_cc_path
708 aros_target_cc_includes
709 aros_target_ld
710 aros_target_as
711 aros_target_cpp
712 aros_target_cxx
713 aros_target_cc
714 aros_plain_ar
715 aros_plain_nm
716 aros_target_ranlib
717 aros_target_ar
718 aros_target_suffix
719 aros_target_variant
720 aros_target_cpu_mode
721 aros_target_cpu
722 aros_target_family
723 aros_target_arch
724 aros_target_bootloader
725 aros_target_iconset
726 aros_target_guitheme
727 aros_target_options
728 target_extra_cfg
729 make_extra_targetcfg
730 make_extra_commands
731 aros_elf_translate
732 aros_tools_dir
733 aros_host_lib_suffix
734 aros_host_exe_suffix
735 aros_host_mkargs
736 aros_host_mkdep
737 aros_host_debug
738 aros_host_ldflags
739 gnu89_inline
740 aros_host_cxxflags
741 aros_host_cflags
742 aros_host_cppflags
743 aros_host_make
744 aros_host_cxx
745 aros_host_cc
746 aros_host_def_cc
747 aros_host_cpp
748 aros_host_cpu
749 aros_host_arch
750 aros_cc_pre
751 host_extra_cfg
752 host_stat_h__unused_used
753 aros_amigaos_compliance
754 AROS_PORTSSRCDIR
755 AROS_CROSSTOOLSDIR
756 SRCDIR
757 AROS_BUILDDIR_UNIX
758 AROS_BUILDDIR
759 aros_build_host
760 aros_toolchain_ld
761 aros_target_toolchain
762 aros_flavour_uc
763 aros_flavour
764 aros_cpu
765 aros_arch
766 SDL_LIBS
767 SDL_CFLAGS
768 SDL_CONFIG
769 XMKMF
770 kernel_cflags_iquote_end
771 kernel_cflags_iquote
772 host_cflags_iquote_end
773 host_cflags_iquote
774 aros_toolchain
775 aros_target_nostdlib_ldflags
776 aros_target_detach_ldflags
777 aros_target_nix_ldflags
778 aros_target_nostartup_ldflags
779 aros_target_nostdinc_cflags
780 aros_kernel_rescomp
781 orig_target_objdump
782 orig_target_objcopy
783 orig_target_strip
784 orig_target_nm
785 orig_target_ranlib
786 orig_target_ar
787 orig_target_as
788 orig_target_ld
789 orig_target_cxx
790 orig_target_cc
791 orig_target_cpp
792 aros_kernel_objdump
793 aros_kernel_objcopy
794 aros_kernel_strip
795 aros_kernel_nm
796 aros_kernel_ranlib
797 aros_kernel_ar
798 aros_kernel_as
799 aros_kernel_ld
800 aros_kernel_cxx
801 aros_kernel_cc
802 aros_kernel_cpp
803 target_gcc_version
805 android_tool
806 CCACHE
807 DISTCC
808 LIBOBJS
809 EGREP
810 GREP
812 TEST
815 libpng_incdir
816 libpng_libextra
817 libpng
818 arosconfig_use_libpngconfig
819 pkgpyexecdir
820 pyexecdir
821 pkgpythondir
822 pythondir
823 PYTHON_PLATFORM
824 PYTHON_EXEC_PREFIX
825 PYTHON_PREFIX
826 PYTHON_VERSION
827 PYTHON
828 PATCH
829 CHMOD
831 PPMTOILBM
832 PNGTOPNM
833 FLEX
834 BISON
837 UNIQ
838 SORT
839 TOUCH
840 MKDIR
841 ECHO
845 aros_host_strip
846 aros_host_ranlib
847 aros_host_ar
848 aros_host_automake
849 aros_host_autoheader
850 aros_host_autoconf
851 aros_host_aclocal
852 aros_host_ld
853 MMAKE
856 ac_ct_CC
857 CFLAGS
859 OBJEXT
860 EXEEXT
861 ac_ct_CXX
862 CPPFLAGS
863 LDFLAGS
864 CXXFLAGS
866 host_os
867 host_vendor
868 host_cpu
869 host
870 build_os
871 build_vendor
872 build_cpu
873 build
874 target_alias
875 host_alias
876 build_alias
877 LIBS
878 ECHO_T
879 ECHO_N
880 ECHO_C
881 DEFS
882 mandir
883 localedir
884 libdir
885 psdir
886 pdfdir
887 dvidir
888 htmldir
889 infodir
890 docdir
891 oldincludedir
892 includedir
893 runstatedir
894 localstatedir
895 sharedstatedir
896 sysconfdir
897 datadir
898 datarootdir
899 libexecdir
900 sbindir
901 bindir
902 program_transform_name
903 prefix
904 exec_prefix
905 PACKAGE_URL
906 PACKAGE_BUGREPORT
907 PACKAGE_STRING
908 PACKAGE_VERSION
909 PACKAGE_TARNAME
910 PACKAGE_NAME
911 PATH_SEPARATOR
912 SHELL'
913 ac_subst_files=''
914 ac_user_opts='
915 enable_option_checking
916 with_c_compiler
917 with_cxx_compiler
918 enable_libpng_config
919 with_toolchain
920 enable_lto
921 enable_coverage
922 enable_build_type
923 enable_debug
924 enable_distcc
925 enable_ccache
926 with_kernel_gcc_version
927 with_optimization
928 with_paranoia
929 enable_target_variant
930 with_xcode
931 with_sdk_version
932 with_sdk
933 with_ndk
934 with_ndk_version
935 with_apk_version
936 enable_amigaos_compliance
937 with_kernel_toolchain_prefix
938 with_elf_toolchain_prefix
939 with_aros_toolchain
940 enable_crosstools
941 with_aros_toolchain_install
942 with_binutils_version
943 with_gcc_version
944 enable_objc
945 enable_java
946 with_cpu
947 with_fpu
948 with_float
949 with_portssources
950 with_bootloader
951 with_iconset
952 with_theme
953 enable_includes
954 with_resolution
955 with_serial_debug
956 enable_palm_debug_hack
957 enable_usb30_code
958 enable_nesting_supervisor
959 enable_mmu
960 enable_x11_hidd
961 with_x
962 enable_x11_shm
963 enable_x11_vidmode
964 enable_sdl_hidd
965 with_sdl_prefix
966 with_sdl_exec_prefix
967 enable_sdltest
968 enable_dbus
970 ac_precious_vars='build_alias
971 host_alias
972 target_alias
974 CXXFLAGS
975 LDFLAGS
976 LIBS
977 CPPFLAGS
980 CFLAGS
982 PYTHON
983 XMKMF'
986 # Initialize some variables set by options.
987 ac_init_help=
988 ac_init_version=false
989 ac_unrecognized_opts=
990 ac_unrecognized_sep=
991 # The variables have the same names as the options, with
992 # dashes changed to underlines.
993 cache_file=/dev/null
994 exec_prefix=NONE
995 no_create=
996 no_recursion=
997 prefix=NONE
998 program_prefix=NONE
999 program_suffix=NONE
1000 program_transform_name=s,x,x,
1001 silent=
1002 site=
1003 srcdir=
1004 verbose=
1005 x_includes=NONE
1006 x_libraries=NONE
1008 # Installation directory options.
1009 # These are left unexpanded so users can "make install exec_prefix=/foo"
1010 # and all the variables that are supposed to be based on exec_prefix
1011 # by default will actually change.
1012 # Use braces instead of parens because sh, perl, etc. also accept them.
1013 # (The list follows the same order as the GNU Coding Standards.)
1014 bindir='${exec_prefix}/bin'
1015 sbindir='${exec_prefix}/sbin'
1016 libexecdir='${exec_prefix}/libexec'
1017 datarootdir='${prefix}/share'
1018 datadir='${datarootdir}'
1019 sysconfdir='${prefix}/etc'
1020 sharedstatedir='${prefix}/com'
1021 localstatedir='${prefix}/var'
1022 runstatedir='${localstatedir}/run'
1023 includedir='${prefix}/include'
1024 oldincludedir='/usr/include'
1025 docdir='${datarootdir}/doc/${PACKAGE}'
1026 infodir='${datarootdir}/info'
1027 htmldir='${docdir}'
1028 dvidir='${docdir}'
1029 pdfdir='${docdir}'
1030 psdir='${docdir}'
1031 libdir='${exec_prefix}/lib'
1032 localedir='${datarootdir}/locale'
1033 mandir='${datarootdir}/man'
1035 ac_prev=
1036 ac_dashdash=
1037 for ac_option
1039 # If the previous option needs an argument, assign it.
1040 if test -n "$ac_prev"; then
1041 eval $ac_prev=\$ac_option
1042 ac_prev=
1043 continue
1046 case $ac_option in
1047 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1048 *=) ac_optarg= ;;
1049 *) ac_optarg=yes ;;
1050 esac
1052 # Accept the important Cygnus configure options, so we can diagnose typos.
1054 case $ac_dashdash$ac_option in
1056 ac_dashdash=yes ;;
1058 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1059 ac_prev=bindir ;;
1060 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1061 bindir=$ac_optarg ;;
1063 -build | --build | --buil | --bui | --bu)
1064 ac_prev=build_alias ;;
1065 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1066 build_alias=$ac_optarg ;;
1068 -cache-file | --cache-file | --cache-fil | --cache-fi \
1069 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1070 ac_prev=cache_file ;;
1071 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1072 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1073 cache_file=$ac_optarg ;;
1075 --config-cache | -C)
1076 cache_file=config.cache ;;
1078 -datadir | --datadir | --datadi | --datad)
1079 ac_prev=datadir ;;
1080 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1081 datadir=$ac_optarg ;;
1083 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1084 | --dataroo | --dataro | --datar)
1085 ac_prev=datarootdir ;;
1086 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1087 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1088 datarootdir=$ac_optarg ;;
1090 -disable-* | --disable-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error $? "invalid feature name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1099 "enable_$ac_useropt"
1100 "*) ;;
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1103 esac
1104 eval enable_$ac_useropt=no ;;
1106 -docdir | --docdir | --docdi | --doc | --do)
1107 ac_prev=docdir ;;
1108 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1109 docdir=$ac_optarg ;;
1111 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1112 ac_prev=dvidir ;;
1113 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1114 dvidir=$ac_optarg ;;
1116 -enable-* | --enable-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid feature name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1125 "enable_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval enable_$ac_useropt=\$ac_optarg ;;
1132 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1133 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1134 | --exec | --exe | --ex)
1135 ac_prev=exec_prefix ;;
1136 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1137 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1138 | --exec=* | --exe=* | --ex=*)
1139 exec_prefix=$ac_optarg ;;
1141 -gas | --gas | --ga | --g)
1142 # Obsolete; use --with-gas.
1143 with_gas=yes ;;
1145 -help | --help | --hel | --he | -h)
1146 ac_init_help=long ;;
1147 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1148 ac_init_help=recursive ;;
1149 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1150 ac_init_help=short ;;
1152 -host | --host | --hos | --ho)
1153 ac_prev=host_alias ;;
1154 -host=* | --host=* | --hos=* | --ho=*)
1155 host_alias=$ac_optarg ;;
1157 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1158 ac_prev=htmldir ;;
1159 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1160 | --ht=*)
1161 htmldir=$ac_optarg ;;
1163 -includedir | --includedir | --includedi | --included | --include \
1164 | --includ | --inclu | --incl | --inc)
1165 ac_prev=includedir ;;
1166 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1167 | --includ=* | --inclu=* | --incl=* | --inc=*)
1168 includedir=$ac_optarg ;;
1170 -infodir | --infodir | --infodi | --infod | --info | --inf)
1171 ac_prev=infodir ;;
1172 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1173 infodir=$ac_optarg ;;
1175 -libdir | --libdir | --libdi | --libd)
1176 ac_prev=libdir ;;
1177 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1178 libdir=$ac_optarg ;;
1180 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1181 | --libexe | --libex | --libe)
1182 ac_prev=libexecdir ;;
1183 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1184 | --libexe=* | --libex=* | --libe=*)
1185 libexecdir=$ac_optarg ;;
1187 -localedir | --localedir | --localedi | --localed | --locale)
1188 ac_prev=localedir ;;
1189 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1190 localedir=$ac_optarg ;;
1192 -localstatedir | --localstatedir | --localstatedi | --localstated \
1193 | --localstate | --localstat | --localsta | --localst | --locals)
1194 ac_prev=localstatedir ;;
1195 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1196 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1197 localstatedir=$ac_optarg ;;
1199 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1200 ac_prev=mandir ;;
1201 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1202 mandir=$ac_optarg ;;
1204 -nfp | --nfp | --nf)
1205 # Obsolete; use --without-fp.
1206 with_fp=no ;;
1208 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1209 | --no-cr | --no-c | -n)
1210 no_create=yes ;;
1212 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1213 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1214 no_recursion=yes ;;
1216 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1217 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1218 | --oldin | --oldi | --old | --ol | --o)
1219 ac_prev=oldincludedir ;;
1220 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1221 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1222 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1223 oldincludedir=$ac_optarg ;;
1225 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1226 ac_prev=prefix ;;
1227 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1228 prefix=$ac_optarg ;;
1230 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1231 | --program-pre | --program-pr | --program-p)
1232 ac_prev=program_prefix ;;
1233 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1234 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1235 program_prefix=$ac_optarg ;;
1237 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1238 | --program-suf | --program-su | --program-s)
1239 ac_prev=program_suffix ;;
1240 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1241 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1242 program_suffix=$ac_optarg ;;
1244 -program-transform-name | --program-transform-name \
1245 | --program-transform-nam | --program-transform-na \
1246 | --program-transform-n | --program-transform- \
1247 | --program-transform | --program-transfor \
1248 | --program-transfo | --program-transf \
1249 | --program-trans | --program-tran \
1250 | --progr-tra | --program-tr | --program-t)
1251 ac_prev=program_transform_name ;;
1252 -program-transform-name=* | --program-transform-name=* \
1253 | --program-transform-nam=* | --program-transform-na=* \
1254 | --program-transform-n=* | --program-transform-=* \
1255 | --program-transform=* | --program-transfor=* \
1256 | --program-transfo=* | --program-transf=* \
1257 | --program-trans=* | --program-tran=* \
1258 | --progr-tra=* | --program-tr=* | --program-t=*)
1259 program_transform_name=$ac_optarg ;;
1261 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1262 ac_prev=pdfdir ;;
1263 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1264 pdfdir=$ac_optarg ;;
1266 -psdir | --psdir | --psdi | --psd | --ps)
1267 ac_prev=psdir ;;
1268 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1269 psdir=$ac_optarg ;;
1271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1272 | -silent | --silent | --silen | --sile | --sil)
1273 silent=yes ;;
1275 -runstatedir | --runstatedir | --runstatedi | --runstated \
1276 | --runstate | --runstat | --runsta | --runst | --runs \
1277 | --run | --ru | --r)
1278 ac_prev=runstatedir ;;
1279 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1280 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1281 | --run=* | --ru=* | --r=*)
1282 runstatedir=$ac_optarg ;;
1284 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1285 ac_prev=sbindir ;;
1286 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1287 | --sbi=* | --sb=*)
1288 sbindir=$ac_optarg ;;
1290 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1291 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1292 | --sharedst | --shareds | --shared | --share | --shar \
1293 | --sha | --sh)
1294 ac_prev=sharedstatedir ;;
1295 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1296 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1297 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1298 | --sha=* | --sh=*)
1299 sharedstatedir=$ac_optarg ;;
1301 -site | --site | --sit)
1302 ac_prev=site ;;
1303 -site=* | --site=* | --sit=*)
1304 site=$ac_optarg ;;
1306 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1307 ac_prev=srcdir ;;
1308 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1309 srcdir=$ac_optarg ;;
1311 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1312 | --syscon | --sysco | --sysc | --sys | --sy)
1313 ac_prev=sysconfdir ;;
1314 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1315 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1316 sysconfdir=$ac_optarg ;;
1318 -target | --target | --targe | --targ | --tar | --ta | --t)
1319 ac_prev=target_alias ;;
1320 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1321 target_alias=$ac_optarg ;;
1323 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1324 verbose=yes ;;
1326 -version | --version | --versio | --versi | --vers | -V)
1327 ac_init_version=: ;;
1329 -with-* | --with-*)
1330 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333 as_fn_error $? "invalid package name: $ac_useropt"
1334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1338 "with_$ac_useropt"
1339 "*) ;;
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1342 esac
1343 eval with_$ac_useropt=\$ac_optarg ;;
1345 -without-* | --without-*)
1346 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1349 as_fn_error $? "invalid package name: $ac_useropt"
1350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1354 "with_$ac_useropt"
1355 "*) ;;
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1358 esac
1359 eval with_$ac_useropt=no ;;
1361 --x)
1362 # Obsolete; use --with-x.
1363 with_x=yes ;;
1365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1366 | --x-incl | --x-inc | --x-in | --x-i)
1367 ac_prev=x_includes ;;
1368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1370 x_includes=$ac_optarg ;;
1372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1374 ac_prev=x_libraries ;;
1375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1377 x_libraries=$ac_optarg ;;
1379 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1380 Try \`$0 --help' for more information"
1383 *=*)
1384 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1385 # Reject names that are not valid shell variable names.
1386 case $ac_envvar in #(
1387 '' | [0-9]* | *[!_$as_cr_alnum]* )
1388 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1389 esac
1390 eval $ac_envvar=\$ac_optarg
1391 export $ac_envvar ;;
1394 # FIXME: should be removed in autoconf 3.0.
1395 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1396 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1398 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1401 esac
1402 done
1404 if test -n "$ac_prev"; then
1405 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1406 as_fn_error $? "missing argument to $ac_option"
1409 if test -n "$ac_unrecognized_opts"; then
1410 case $enable_option_checking in
1411 no) ;;
1412 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1413 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1414 esac
1417 # Check all directory arguments for consistency.
1418 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1419 datadir sysconfdir sharedstatedir localstatedir includedir \
1420 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1421 libdir localedir mandir runstatedir
1423 eval ac_val=\$$ac_var
1424 # Remove trailing slashes.
1425 case $ac_val in
1426 */ )
1427 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1428 eval $ac_var=\$ac_val;;
1429 esac
1430 # Be sure to have absolute directory names.
1431 case $ac_val in
1432 [\\/$]* | ?:[\\/]* ) continue;;
1433 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1434 esac
1435 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1436 done
1438 # There might be people who depend on the old broken behavior: `$host'
1439 # used to hold the argument of --host etc.
1440 # FIXME: To remove some day.
1441 build=$build_alias
1442 host=$host_alias
1443 target=$target_alias
1445 # FIXME: To remove some day.
1446 if test "x$host_alias" != x; then
1447 if test "x$build_alias" = x; then
1448 cross_compiling=maybe
1449 elif test "x$build_alias" != "x$host_alias"; then
1450 cross_compiling=yes
1454 ac_tool_prefix=
1455 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1457 test "$silent" = yes && exec 6>/dev/null
1460 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1461 ac_ls_di=`ls -di .` &&
1462 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1463 as_fn_error $? "working directory cannot be determined"
1464 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1465 as_fn_error $? "pwd does not report name of working directory"
1468 # Find the source files, if location was not specified.
1469 if test -z "$srcdir"; then
1470 ac_srcdir_defaulted=yes
1471 # Try the directory containing this script, then the parent directory.
1472 ac_confdir=`$as_dirname -- "$as_myself" ||
1473 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1474 X"$as_myself" : 'X\(//\)[^/]' \| \
1475 X"$as_myself" : 'X\(//\)$' \| \
1476 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1477 $as_echo X"$as_myself" |
1478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1479 s//\1/
1482 /^X\(\/\/\)[^/].*/{
1483 s//\1/
1486 /^X\(\/\/\)$/{
1487 s//\1/
1490 /^X\(\/\).*/{
1491 s//\1/
1494 s/.*/./; q'`
1495 srcdir=$ac_confdir
1496 if test ! -r "$srcdir/$ac_unique_file"; then
1497 srcdir=..
1499 else
1500 ac_srcdir_defaulted=no
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1503 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1504 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1506 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1507 ac_abs_confdir=`(
1508 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1509 pwd)`
1510 # When building in place, set srcdir=.
1511 if test "$ac_abs_confdir" = "$ac_pwd"; then
1512 srcdir=.
1514 # Remove unnecessary trailing slashes from srcdir.
1515 # Double slashes in file names in object file debugging info
1516 # mess up M-x gdb in Emacs.
1517 case $srcdir in
1518 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1519 esac
1520 for ac_var in $ac_precious_vars; do
1521 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1522 eval ac_env_${ac_var}_value=\$${ac_var}
1523 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1524 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1525 done
1528 # Report the --help message.
1530 if test "$ac_init_help" = "long"; then
1531 # Omit some internal or obsolete options to make the list less imposing.
1532 # This message is too long to be a string in the A/UX 3.1 sh.
1533 cat <<_ACEOF
1534 \`configure' configures this package to adapt to many kinds of systems.
1536 Usage: $0 [OPTION]... [VAR=VALUE]...
1538 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1539 VAR=VALUE. See below for descriptions of some of the useful variables.
1541 Defaults for the options are specified in brackets.
1543 Configuration:
1544 -h, --help display this help and exit
1545 --help=short display options specific to this package
1546 --help=recursive display the short help of all the included packages
1547 -V, --version display version information and exit
1548 -q, --quiet, --silent do not print \`checking ...' messages
1549 --cache-file=FILE cache test results in FILE [disabled]
1550 -C, --config-cache alias for \`--cache-file=config.cache'
1551 -n, --no-create do not create output files
1552 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1554 Installation directories:
1555 --prefix=PREFIX install architecture-independent files in PREFIX
1556 [$ac_default_prefix]
1557 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1558 [PREFIX]
1560 By default, \`make install' will install all the files in
1561 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1562 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1563 for instance \`--prefix=\$HOME'.
1565 For better control, use the options below.
1567 Fine tuning of the installation directories:
1568 --bindir=DIR user executables [EPREFIX/bin]
1569 --sbindir=DIR system admin executables [EPREFIX/sbin]
1570 --libexecdir=DIR program executables [EPREFIX/libexec]
1571 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1572 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1573 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1574 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1575 --libdir=DIR object code libraries [EPREFIX/lib]
1576 --includedir=DIR C header files [PREFIX/include]
1577 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1578 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1579 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1580 --infodir=DIR info documentation [DATAROOTDIR/info]
1581 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1582 --mandir=DIR man documentation [DATAROOTDIR/man]
1583 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1584 --htmldir=DIR html documentation [DOCDIR]
1585 --dvidir=DIR dvi documentation [DOCDIR]
1586 --pdfdir=DIR pdf documentation [DOCDIR]
1587 --psdir=DIR ps documentation [DOCDIR]
1588 _ACEOF
1590 cat <<\_ACEOF
1592 X features:
1593 --x-includes=DIR X include files are in DIR
1594 --x-libraries=DIR X library files are in DIR
1596 System types:
1597 --build=BUILD configure for building on BUILD [guessed]
1598 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1599 _ACEOF
1602 if test -n "$ac_init_help"; then
1604 cat <<\_ACEOF
1606 Optional Features:
1607 --disable-option-checking ignore unrecognized --enable/--with options
1608 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1609 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1610 --disable-libpng-config disable libpng-config test and configuration
1611 --enable-lto=yes|no Enable link time optimizations if the target
1612 compiler supports them (default=no)
1613 --enable-coverage=yes|no
1614 Enable coverage instrumentation if the target
1615 compiler supports it (default=no)
1616 --enable-build-type=TYPE
1617 Select the build type. Available types are:
1618 personal, nightly, snapshot, milestone, release. Do
1619 NOT use this option unless you know what you are
1620 doing! (default=personal)
1621 --enable-debug=list Enable different types of debug. Commas or
1622 whitespaces can be used to separate the items in the
1623 list. Available types of debug are: all, none,
1624 messages, stack, mungwall, modules, symbols. If no
1625 list is provided then "all" is assumed.
1626 (default=none)
1627 --enable-distcc Use distcc as a front end to the compiler
1628 (default=no).
1629 --enable-ccache Use ccache as a front end to the compiler
1630 (default=no).
1631 --enable-target-variant=NAME
1632 Enable a specific target variant (default=none)
1633 --enable-amigaos-compliance=VERSION
1634 Enforce userspace AmigaOS compliance to a specific
1635 KickStart version (default=none).
1636 --disable-crosstools Do not build cross-compiler toolchain
1637 --enable-objc Enable Objectve-C support (default=no)
1638 --enable-java Enable Java support (default=no)
1639 --enable-includes=dir Alternative system include directory
1640 --enable-palm-debug-hack
1641 Enable palm debug output hack in palm native
1642 (default=no)
1643 --enable-usb30-code Enable usb3.0 code (default=no)
1644 --enable-nesting-supervisor
1645 Enable nesting supervisor support in unix
1646 (default=no)
1647 --disable-mmu Disable MMU support (default=enabled)
1648 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1649 --enable-x11-shm use X11 shared memory (default=auto)
1650 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1651 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1652 --disable-sdltest Do not try to compile and run a test SDL program
1653 --enable-dbus Enable DBUS support via dbus.library (default=no)
1655 Optional Packages:
1656 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1657 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1658 --with-c-compiler=VERSION
1659 Use specified c compiler for building AROS
1660 --with-cxx-compiler=VERSION
1661 Use specified c++ compiler building AROS
1662 --with-toolchain=family Which toolchain family to crosscompile with
1663 (defaults to gnu)
1664 --with-kernel-gcc-version=VERSION
1665 Use gcc-VERSION for building bootstrap
1666 --with-optimization=FLAGS
1667 Use optimization flags FLAGS (e.g
1668 --with-optimization=-O2).
1669 --with-paranoia=(yes|no|FLAGS)
1670 Specific compiler warning FLAGS to enable for
1671 paranoia builds (default=-Wall -Werror)
1672 --with-xcode=PATH Specify XCode path for iOS targets
1673 (default=/Developer).
1674 --with-sdk-version=VERSION
1675 Use iOS SDK version VERSION (default=4.1).
1676 --with-sdk=PATH Specify Android SDK path
1677 (default=$default_android_sdk).
1678 --with-ndk=PATH Specify Android NDK path (default=none).
1679 --with-sdk-version=LEVEL
1680 Use Android SDK for API LEVEL (default=12).
1681 --with-ndk-version=LEVEL
1682 Use Android NDK for API LEVEL (default=9).
1683 --with-apk-version=(release|debug)
1684 Which version of AROSBootstrap.apk to compile.
1685 Release version needs key for signing, debug version
1686 will only run in emulator. (default=release)
1687 --with-kernel-toolchain-prefix=...
1688 Specify crosscompile toolchain prefix for kernel
1689 objects
1690 --with-elf-toolchain-prefix=...
1691 Specify crosscompile toolchain prefix to wrap for
1692 AROS objects
1693 --with-aros-toolchain=PREFIX
1694 Specify prebuilt AROS toolchain. Use yes for default
1695 name
1696 --with-aros-toolchain-install=DIR
1697 Where to install or search for cross tools binaries
1698 --with-binutils-version=VERSION
1699 Use binutils-VERSION for building AROS
1700 --with-gcc-version=VERSION
1701 Compile gcc-VERSION for AROS
1702 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1703 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1704 --with-float=<spec> Specify floating point ABI
1705 (default=$gcc_default_float_abi).
1706 --with-portssources=DIR Where to download sourcecode for external ports
1707 --with-bootloader=NAME Use a specific bootloader
1708 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1709 --with-theme=NAME Use a specific GUI Theme
1710 --with-resolution=XRESxYRESxDEPTH
1711 Default resolution of the initial WorkbenchScreen
1712 --with-serial-debug Enable serial debug output in native (default=no)
1713 --with-x use the X Window System
1714 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1715 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1717 Some influential environment variables:
1718 CXX C++ compiler command
1719 CXXFLAGS C++ compiler flags
1720 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1721 nonstandard directory <lib dir>
1722 LIBS libraries to pass to the linker, e.g. -l<library>
1723 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1724 you have headers in a nonstandard directory <include dir>
1725 CC C compiler command
1726 CFLAGS C compiler flags
1727 CPP C preprocessor
1728 PYTHON the Python interpreter
1729 XMKMF Path to xmkmf, Makefile generator for X Window System
1731 Use these variables to override the choices made by `configure' or to help
1732 it to find libraries and programs with nonstandard names/locations.
1734 Report bugs to the package provider.
1735 _ACEOF
1736 ac_status=$?
1739 if test "$ac_init_help" = "recursive"; then
1740 # If there are subdirs, report their specific --help.
1741 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1742 test -d "$ac_dir" ||
1743 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1744 continue
1745 ac_builddir=.
1747 case "$ac_dir" in
1748 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1750 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1751 # A ".." for each directory in $ac_dir_suffix.
1752 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1753 case $ac_top_builddir_sub in
1754 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1755 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1756 esac ;;
1757 esac
1758 ac_abs_top_builddir=$ac_pwd
1759 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1760 # for backward compatibility:
1761 ac_top_builddir=$ac_top_build_prefix
1763 case $srcdir in
1764 .) # We are building in place.
1765 ac_srcdir=.
1766 ac_top_srcdir=$ac_top_builddir_sub
1767 ac_abs_top_srcdir=$ac_pwd ;;
1768 [\\/]* | ?:[\\/]* ) # Absolute name.
1769 ac_srcdir=$srcdir$ac_dir_suffix;
1770 ac_top_srcdir=$srcdir
1771 ac_abs_top_srcdir=$srcdir ;;
1772 *) # Relative name.
1773 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1774 ac_top_srcdir=$ac_top_build_prefix$srcdir
1775 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1776 esac
1777 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1779 cd "$ac_dir" || { ac_status=$?; continue; }
1780 # Check for guested configure.
1781 if test -f "$ac_srcdir/configure.gnu"; then
1782 echo &&
1783 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1784 elif test -f "$ac_srcdir/configure"; then
1785 echo &&
1786 $SHELL "$ac_srcdir/configure" --help=recursive
1787 else
1788 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1789 fi || ac_status=$?
1790 cd "$ac_pwd" || { ac_status=$?; break; }
1791 done
1794 test -n "$ac_init_help" && exit $ac_status
1795 if $ac_init_version; then
1796 cat <<\_ACEOF
1797 configure
1798 generated by GNU Autoconf 2.69
1800 Copyright (C) 2012 Free Software Foundation, Inc.
1801 This configure script is free software; the Free Software Foundation
1802 gives unlimited permission to copy, distribute and modify it.
1803 _ACEOF
1804 exit
1807 ## ------------------------ ##
1808 ## Autoconf initialization. ##
1809 ## ------------------------ ##
1811 # ac_fn_cxx_try_compile LINENO
1812 # ----------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_cxx_try_compile ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 rm -f conftest.$ac_objext
1818 if { { ac_try="$ac_compile"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_cxx_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1842 ac_retval=1
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 as_fn_set_status $ac_retval
1847 } # ac_fn_cxx_try_compile
1849 # ac_fn_c_try_compile LINENO
1850 # --------------------------
1851 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_compile ()
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 rm -f conftest.$ac_objext
1856 if { { ac_try="$ac_compile"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_compile") 2>conftest.err
1864 ac_status=$?
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && {
1872 test -z "$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1874 } && test -s conftest.$ac_objext; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_retval=1
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1885 } # ac_fn_c_try_compile
1887 # ac_fn_c_try_cpp LINENO
1888 # ----------------------
1889 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1890 ac_fn_c_try_cpp ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { { ac_try="$ac_cpp conftest.$ac_ext"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } > conftest.i && {
1909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1910 test ! -s conftest.err
1911 }; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1917 ac_retval=1
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 as_fn_set_status $ac_retval
1922 } # ac_fn_c_try_cpp
1924 # ac_fn_c_try_link LINENO
1925 # -----------------------
1926 # Try to link conftest.$ac_ext, and return whether this succeeded.
1927 ac_fn_c_try_link ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 rm -f conftest.$ac_objext conftest$ac_exeext
1931 if { { ac_try="$ac_link"
1932 case "(($ac_try" in
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1935 esac
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_link") 2>conftest.err
1939 ac_status=$?
1940 if test -s conftest.err; then
1941 grep -v '^ *+' conftest.err >conftest.er1
1942 cat conftest.er1 >&5
1943 mv -f conftest.er1 conftest.err
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; } && {
1947 test -z "$ac_c_werror_flag" ||
1948 test ! -s conftest.err
1949 } && test -s conftest$ac_exeext && {
1950 test "$cross_compiling" = yes ||
1951 test -x conftest$ac_exeext
1952 }; then :
1953 ac_retval=0
1954 else
1955 $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1958 ac_retval=1
1960 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1961 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1962 # interfere with the next link command; also delete a directory that is
1963 # left behind by Apple's compiler. We do this before executing the actions.
1964 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 as_fn_set_status $ac_retval
1968 } # ac_fn_c_try_link
1970 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1971 # -------------------------------------------------------
1972 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1973 # the include files in INCLUDES and setting the cache variable VAR
1974 # accordingly.
1975 ac_fn_c_check_header_mongrel ()
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 if eval \${$3+:} false; then :
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if eval \${$3+:} false; then :
1982 $as_echo_n "(cached) " >&6
1984 eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 else
1988 # Is the header compilable?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1990 $as_echo_n "checking $2 usability... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1994 #include <$2>
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997 ac_header_compiler=yes
1998 else
1999 ac_header_compiler=no
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2003 $as_echo "$ac_header_compiler" >&6; }
2005 # Is the header present?
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2007 $as_echo_n "checking $2 presence... " >&6; }
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2010 #include <$2>
2011 _ACEOF
2012 if ac_fn_c_try_cpp "$LINENO"; then :
2013 ac_header_preproc=yes
2014 else
2015 ac_header_preproc=no
2017 rm -f conftest.err conftest.i conftest.$ac_ext
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2019 $as_echo "$ac_header_preproc" >&6; }
2021 # So? What about this header?
2022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2023 yes:no: )
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2025 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2027 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2029 no:yes:* )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2031 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2033 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2035 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2037 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2041 esac
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2046 else
2047 eval "$3=\$ac_header_compiler"
2049 eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_c_check_header_mongrel
2057 # ac_fn_c_try_run LINENO
2058 # ----------------------
2059 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2060 # that executables *can* be run.
2061 ac_fn_c_try_run ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 if { { ac_try="$ac_link"
2065 case "(($ac_try" in
2066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067 *) ac_try_echo=$ac_try;;
2068 esac
2069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070 $as_echo "$ac_try_echo"; } >&5
2071 (eval "$ac_link") 2>&5
2072 ac_status=$?
2073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2075 { { case "(($ac_try" in
2076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2077 *) ac_try_echo=$ac_try;;
2078 esac
2079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2080 $as_echo "$ac_try_echo"; } >&5
2081 (eval "$ac_try") 2>&5
2082 ac_status=$?
2083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084 test $ac_status = 0; }; }; then :
2085 ac_retval=0
2086 else
2087 $as_echo "$as_me: program exited with status $ac_status" >&5
2088 $as_echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2091 ac_retval=$ac_status
2093 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 as_fn_set_status $ac_retval
2097 } # ac_fn_c_try_run
2099 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2100 # -------------------------------------------------------
2101 # Tests whether HEADER exists and can be compiled using the include files in
2102 # INCLUDES, setting the cache variable VAR accordingly.
2103 ac_fn_c_check_header_compile ()
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if eval \${$3+:} false; then :
2109 $as_echo_n "(cached) " >&6
2110 else
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2114 #include <$2>
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 eval "$3=yes"
2118 else
2119 eval "$3=no"
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 eval ac_res=\$$3
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 } # ac_fn_c_check_header_compile
2130 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2131 # ----------------------------------------------------
2132 # Tries to find if the field MEMBER exists in type AGGR, after including
2133 # INCLUDES, setting cache variable VAR accordingly.
2134 ac_fn_c_check_member ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2138 $as_echo_n "checking for $2.$3... " >&6; }
2139 if eval \${$4+:} false; then :
2140 $as_echo_n "(cached) " >&6
2141 else
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2146 main ()
2148 static $2 ac_aggr;
2149 if (ac_aggr.$3)
2150 return 0;
2152 return 0;
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 eval "$4=yes"
2157 else
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2162 main ()
2164 static $2 ac_aggr;
2165 if (sizeof ac_aggr.$3)
2166 return 0;
2168 return 0;
2170 _ACEOF
2171 if ac_fn_c_try_compile "$LINENO"; then :
2172 eval "$4=yes"
2173 else
2174 eval "$4=no"
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 eval ac_res=\$$4
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2183 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185 } # ac_fn_c_check_member
2187 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2188 # ---------------------------------------------
2189 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2190 # accordingly.
2191 ac_fn_c_check_decl ()
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194 as_decl_name=`echo $2|sed 's/ *(.*//'`
2195 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2197 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2198 if eval \${$3+:} false; then :
2199 $as_echo_n "(cached) " >&6
2200 else
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2205 main ()
2207 #ifndef $as_decl_name
2208 #ifdef __cplusplus
2209 (void) $as_decl_use;
2210 #else
2211 (void) $as_decl_name;
2212 #endif
2213 #endif
2216 return 0;
2218 _ACEOF
2219 if ac_fn_c_try_compile "$LINENO"; then :
2220 eval "$3=yes"
2221 else
2222 eval "$3=no"
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 eval ac_res=\$$3
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2228 $as_echo "$ac_res" >&6; }
2229 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231 } # ac_fn_c_check_decl
2233 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2234 # -------------------------------------------
2235 # Tests whether TYPE exists after having included INCLUDES, setting cache
2236 # variable VAR accordingly.
2237 ac_fn_c_check_type ()
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if eval \${$3+:} false; then :
2243 $as_echo_n "(cached) " >&6
2244 else
2245 eval "$3=no"
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2250 main ()
2252 if (sizeof ($2))
2253 return 0;
2255 return 0;
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2263 main ()
2265 if (sizeof (($2)))
2266 return 0;
2268 return 0;
2270 _ACEOF
2271 if ac_fn_c_try_compile "$LINENO"; then :
2273 else
2274 eval "$3=yes"
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 eval ac_res=\$$3
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 } # ac_fn_c_check_type
2287 # ac_fn_c_check_func LINENO FUNC VAR
2288 # ----------------------------------
2289 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2290 ac_fn_c_check_func ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294 $as_echo_n "checking for $2... " >&6; }
2295 if eval \${$3+:} false; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2302 #define $2 innocuous_$2
2304 /* System header to define __stub macros and hopefully few prototypes,
2305 which can conflict with char $2 (); below.
2306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2307 <limits.h> exists even on freestanding compilers. */
2309 #ifdef __STDC__
2310 # include <limits.h>
2311 #else
2312 # include <assert.h>
2313 #endif
2315 #undef $2
2317 /* Override any GCC internal prototype to avoid an error.
2318 Use char because int might match the return type of a GCC
2319 builtin and then its argument prototype would still apply. */
2320 #ifdef __cplusplus
2321 extern "C"
2322 #endif
2323 char $2 ();
2324 /* The GNU C library defines this for functions which it implements
2325 to always fail with ENOSYS. Some functions are actually named
2326 something starting with __ and the normal name is an alias. */
2327 #if defined __stub_$2 || defined __stub___$2
2328 choke me
2329 #endif
2332 main ()
2334 return $2 ();
2336 return 0;
2338 _ACEOF
2339 if ac_fn_c_try_link "$LINENO"; then :
2340 eval "$3=yes"
2341 else
2342 eval "$3=no"
2344 rm -f core conftest.err conftest.$ac_objext \
2345 conftest$ac_exeext conftest.$ac_ext
2347 eval ac_res=\$$3
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352 } # ac_fn_c_check_func
2353 cat >config.log <<_ACEOF
2354 This file contains any messages produced by compilers while
2355 running configure, to aid debugging if configure makes a mistake.
2357 It was created by $as_me, which was
2358 generated by GNU Autoconf 2.69. Invocation command line was
2360 $ $0 $@
2362 _ACEOF
2363 exec 5>>config.log
2365 cat <<_ASUNAME
2366 ## --------- ##
2367 ## Platform. ##
2368 ## --------- ##
2370 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2371 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2372 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2373 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2374 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2376 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2377 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2379 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2380 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2381 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2382 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2383 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2384 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2385 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2387 _ASUNAME
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
2394 $as_echo "PATH: $as_dir"
2395 done
2396 IFS=$as_save_IFS
2398 } >&5
2400 cat >&5 <<_ACEOF
2403 ## ----------- ##
2404 ## Core tests. ##
2405 ## ----------- ##
2407 _ACEOF
2410 # Keep a trace of the command line.
2411 # Strip out --no-create and --no-recursion so they do not pile up.
2412 # Strip out --silent because we don't want to record it for future runs.
2413 # Also quote any args containing shell meta-characters.
2414 # Make two passes to allow for proper duplicate-argument suppression.
2415 ac_configure_args=
2416 ac_configure_args0=
2417 ac_configure_args1=
2418 ac_must_keep_next=false
2419 for ac_pass in 1 2
2421 for ac_arg
2423 case $ac_arg in
2424 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2425 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2426 | -silent | --silent | --silen | --sile | --sil)
2427 continue ;;
2428 *\'*)
2429 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2430 esac
2431 case $ac_pass in
2432 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2434 as_fn_append ac_configure_args1 " '$ac_arg'"
2435 if test $ac_must_keep_next = true; then
2436 ac_must_keep_next=false # Got value, back to normal.
2437 else
2438 case $ac_arg in
2439 *=* | --config-cache | -C | -disable-* | --disable-* \
2440 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2441 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2442 | -with-* | --with-* | -without-* | --without-* | --x)
2443 case "$ac_configure_args0 " in
2444 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2445 esac
2447 -* ) ac_must_keep_next=true ;;
2448 esac
2450 as_fn_append ac_configure_args " '$ac_arg'"
2452 esac
2453 done
2454 done
2455 { ac_configure_args0=; unset ac_configure_args0;}
2456 { ac_configure_args1=; unset ac_configure_args1;}
2458 # When interrupted or exit'd, cleanup temporary files, and complete
2459 # config.log. We remove comments because anyway the quotes in there
2460 # would cause problems or look ugly.
2461 # WARNING: Use '\'' to represent an apostrophe within the trap.
2462 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2463 trap 'exit_status=$?
2464 # Save into config.log some information that might help in debugging.
2466 echo
2468 $as_echo "## ---------------- ##
2469 ## Cache variables. ##
2470 ## ---------------- ##"
2471 echo
2472 # The following way of writing the cache mishandles newlines in values,
2474 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2475 eval ac_val=\$$ac_var
2476 case $ac_val in #(
2477 *${as_nl}*)
2478 case $ac_var in #(
2479 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2480 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2481 esac
2482 case $ac_var in #(
2483 _ | IFS | as_nl) ;; #(
2484 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2485 *) { eval $ac_var=; unset $ac_var;} ;;
2486 esac ;;
2487 esac
2488 done
2489 (set) 2>&1 |
2490 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2491 *${as_nl}ac_space=\ *)
2492 sed -n \
2493 "s/'\''/'\''\\\\'\'''\''/g;
2494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2495 ;; #(
2497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2499 esac |
2500 sort
2502 echo
2504 $as_echo "## ----------------- ##
2505 ## Output variables. ##
2506 ## ----------------- ##"
2507 echo
2508 for ac_var in $ac_subst_vars
2510 eval ac_val=\$$ac_var
2511 case $ac_val in
2512 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2513 esac
2514 $as_echo "$ac_var='\''$ac_val'\''"
2515 done | sort
2516 echo
2518 if test -n "$ac_subst_files"; then
2519 $as_echo "## ------------------- ##
2520 ## File substitutions. ##
2521 ## ------------------- ##"
2522 echo
2523 for ac_var in $ac_subst_files
2525 eval ac_val=\$$ac_var
2526 case $ac_val in
2527 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2528 esac
2529 $as_echo "$ac_var='\''$ac_val'\''"
2530 done | sort
2531 echo
2534 if test -s confdefs.h; then
2535 $as_echo "## ----------- ##
2536 ## confdefs.h. ##
2537 ## ----------- ##"
2538 echo
2539 cat confdefs.h
2540 echo
2542 test "$ac_signal" != 0 &&
2543 $as_echo "$as_me: caught signal $ac_signal"
2544 $as_echo "$as_me: exit $exit_status"
2545 } >&5
2546 rm -f core *.core core.conftest.* &&
2547 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2548 exit $exit_status
2550 for ac_signal in 1 2 13 15; do
2551 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2552 done
2553 ac_signal=0
2555 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2556 rm -f -r conftest* confdefs.h
2558 $as_echo "/* confdefs.h */" > confdefs.h
2560 # Predefined preprocessor variables.
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_NAME "$PACKAGE_NAME"
2564 _ACEOF
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2568 _ACEOF
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2572 _ACEOF
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_STRING "$PACKAGE_STRING"
2576 _ACEOF
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2580 _ACEOF
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_URL "$PACKAGE_URL"
2584 _ACEOF
2587 # Let the site file select an alternate cache file if it wants to.
2588 # Prefer an explicitly selected file to automatically selected ones.
2589 ac_site_file1=NONE
2590 ac_site_file2=NONE
2591 if test -n "$CONFIG_SITE"; then
2592 # We do not want a PATH search for config.site.
2593 case $CONFIG_SITE in #((
2594 -*) ac_site_file1=./$CONFIG_SITE;;
2595 */*) ac_site_file1=$CONFIG_SITE;;
2596 *) ac_site_file1=./$CONFIG_SITE;;
2597 esac
2598 elif test "x$prefix" != xNONE; then
2599 ac_site_file1=$prefix/share/config.site
2600 ac_site_file2=$prefix/etc/config.site
2601 else
2602 ac_site_file1=$ac_default_prefix/share/config.site
2603 ac_site_file2=$ac_default_prefix/etc/config.site
2605 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2607 test "x$ac_site_file" = xNONE && continue
2608 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2610 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2611 sed 's/^/| /' "$ac_site_file" >&5
2612 . "$ac_site_file" \
2613 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615 as_fn_error $? "failed to load site script $ac_site_file
2616 See \`config.log' for more details" "$LINENO" 5; }
2618 done
2620 if test -r "$cache_file"; then
2621 # Some versions of bash will fail to source /dev/null (special files
2622 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2623 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2625 $as_echo "$as_me: loading cache $cache_file" >&6;}
2626 case $cache_file in
2627 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2628 *) . "./$cache_file";;
2629 esac
2631 else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2633 $as_echo "$as_me: creating cache $cache_file" >&6;}
2634 >$cache_file
2637 as_fn_append ac_header_list " stdlib.h"
2638 as_fn_append ac_header_list " unistd.h"
2639 as_fn_append ac_header_list " sys/param.h"
2640 # Check that the precious variables saved in the cache have kept the same
2641 # value.
2642 ac_cache_corrupted=false
2643 for ac_var in $ac_precious_vars; do
2644 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2645 eval ac_new_set=\$ac_env_${ac_var}_set
2646 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2647 eval ac_new_val=\$ac_env_${ac_var}_value
2648 case $ac_old_set,$ac_new_set in
2649 set,)
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2651 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2652 ac_cache_corrupted=: ;;
2653 ,set)
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2655 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2656 ac_cache_corrupted=: ;;
2657 ,);;
2659 if test "x$ac_old_val" != "x$ac_new_val"; then
2660 # differences in whitespace do not lead to failure.
2661 ac_old_val_w=`echo x $ac_old_val`
2662 ac_new_val_w=`echo x $ac_new_val`
2663 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2665 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2666 ac_cache_corrupted=:
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2669 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2670 eval $ac_var=\$ac_old_val
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2673 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2675 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2676 fi;;
2677 esac
2678 # Pass precious variables to config.status.
2679 if test "$ac_new_set" = set; then
2680 case $ac_new_val in
2681 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2682 *) ac_arg=$ac_var=$ac_new_val ;;
2683 esac
2684 case " $ac_configure_args " in
2685 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2686 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2687 esac
2689 done
2690 if $ac_cache_corrupted; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2694 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2695 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2697 ## -------------------- ##
2698 ## Main body of script. ##
2699 ## -------------------- ##
2701 ac_ext=c
2702 ac_cpp='$CPP $CPPFLAGS'
2703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709 ac_aux_dir=
2710 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2711 if test -f "$ac_dir/install-sh"; then
2712 ac_aux_dir=$ac_dir
2713 ac_install_sh="$ac_aux_dir/install-sh -c"
2714 break
2715 elif test -f "$ac_dir/install.sh"; then
2716 ac_aux_dir=$ac_dir
2717 ac_install_sh="$ac_aux_dir/install.sh -c"
2718 break
2719 elif test -f "$ac_dir/shtool"; then
2720 ac_aux_dir=$ac_dir
2721 ac_install_sh="$ac_aux_dir/shtool install -c"
2722 break
2724 done
2725 if test -z "$ac_aux_dir"; then
2726 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2729 # These three variables are undocumented and unsupported,
2730 # and are intended to be withdrawn in a future Autoconf release.
2731 # They can cause serious problems if a builder's source tree is in a directory
2732 # whose full name contains unusual characters.
2733 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2734 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2735 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2739 # Check what host we are running on.
2740 # If a target is not suggested, we use this one.
2741 # Note that what we call a target, Autoconf calls a host.
2742 # Make sure we can run config.sub.
2743 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2744 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2747 $as_echo_n "checking build system type... " >&6; }
2748 if ${ac_cv_build+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 ac_build_alias=$build_alias
2752 test "x$ac_build_alias" = x &&
2753 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2754 test "x$ac_build_alias" = x &&
2755 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2756 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2757 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2761 $as_echo "$ac_cv_build" >&6; }
2762 case $ac_cv_build in
2763 *-*-*) ;;
2764 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2765 esac
2766 build=$ac_cv_build
2767 ac_save_IFS=$IFS; IFS='-'
2768 set x $ac_cv_build
2769 shift
2770 build_cpu=$1
2771 build_vendor=$2
2772 shift; shift
2773 # Remember, the first character of IFS is used to create $*,
2774 # except with old shells:
2775 build_os=$*
2776 IFS=$ac_save_IFS
2777 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2781 $as_echo_n "checking host system type... " >&6; }
2782 if ${ac_cv_host+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test "x$host_alias" = x; then
2786 ac_cv_host=$ac_cv_build
2787 else
2788 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2789 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2794 $as_echo "$ac_cv_host" >&6; }
2795 case $ac_cv_host in
2796 *-*-*) ;;
2797 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2798 esac
2799 host=$ac_cv_host
2800 ac_save_IFS=$IFS; IFS='-'
2801 set x $ac_cv_host
2802 shift
2803 host_cpu=$1
2804 host_vendor=$2
2805 shift; shift
2806 # Remember, the first character of IFS is used to create $*,
2807 # except with old shells:
2808 host_os=$*
2809 IFS=$ac_save_IFS
2810 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2814 # Default versions for the gnu tools we build
2815 default_toolchain_family=`cat ${srcdir}/config/toolchain_def`
2816 default_gcc_version=`cat ${srcdir}/config/gcc_def`
2817 exp_gcc_version=`cat ${srcdir}/config/gcc_exp`
2818 default_binutils_version=`cat ${srcdir}/config/binutils_def`
2819 exp_binutils_version=`cat ${srcdir}/config/binutils_exp`
2820 default_grub2_version="2.02"
2821 target_grub2_version=$default_grub2_version
2823 # The AROS target is slightly different to the normal GNU style
2824 # format. We don't have the middle part, and we reverse the order
2825 # of the $(CPU) and $(OS) bits.
2827 # Don't strip the version of the target yet, it might be
2828 # useful on some systems.
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2831 $as_echo_n "checking for AROS style target... " >&6; }
2833 if test "$target" = "NONE" ; then
2834 target=$host_os-$host_cpu
2835 else
2836 if test "$target" = "" ; then
2837 target=$host_os-$host_cpu
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2841 $as_echo "$target" >&6; }
2843 if test "$host_os" = "mingw32" ; then
2844 PWDCMD="pwd -W"
2847 # Don't know where else to put this...
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2849 $as_echo_n "checking building AROS in... " >&6; }
2850 AROS_BUILDDIR=`${PWDCMD-pwd}`
2851 AROS_BUILDDIR_UNIX=${PWD}
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2853 $as_echo "$AROS_BUILDDIR" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2856 $as_echo_n "checking AROS source in... " >&6; }
2857 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2858 SRCDIR=${srcpwd}
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2860 $as_echo "$SRCDIR" >&6; }
2862 # Parse the target field into something useful.
2864 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2865 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2868 # Some debug output, to be removed again.
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2870 $as_echo_n "checking for target system (debug output)... " >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2872 $as_echo "$target_os" >&6; }
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2874 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2876 $as_echo "$target_cpu" >&6; }
2878 aros_nominal_width=800
2879 aros_nominal_height=600
2880 aros_nominal_depth=4
2883 default_c_compilers="gcc clang cc"
2885 # Check whether --with-c-compiler was given.
2886 if test "${with_c_compiler+set}" = set; then :
2887 withval=$with_c_compiler; use_c_compiler="$withval"
2888 else
2889 use_c_compiler=""
2892 if test "$use_c_compiler" = ""; then
2893 host_c_compilers="$default_c_compilers"
2894 else
2895 host_c_compilers="$use_c_compiler"
2898 default_cxx_compilers="g++ clang++ c++"
2900 # Check whether --with-cxx-compiler was given.
2901 if test "${with_cxx_compiler+set}" = set; then :
2902 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2903 else
2904 use_cxx_compiler=""
2907 if test "$use_cxx_compiler" = ""; then
2908 host_cxx_compilers="$default_cxx_compilers"
2909 else
2910 host_cxx_compilers="$use_cxx_compiler"
2914 # The first step is to find the host binaries.
2915 # Check for a compiler.
2916 # Due to a bug in autoconf check for c++ compiler first.
2917 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2918 ac_ext=cpp
2919 ac_cpp='$CXXCPP $CPPFLAGS'
2920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2923 if test -z "$CXX"; then
2924 if test -n "$CCC"; then
2925 CXX=$CCC
2926 else
2927 if test -n "$ac_tool_prefix"; then
2928 for ac_prog in ${host_cxx_compilers}
2930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_CXX+:} false; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$CXX"; then
2938 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2951 done
2952 done
2953 IFS=$as_save_IFS
2957 CXX=$ac_cv_prog_CXX
2958 if test -n "$CXX"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2960 $as_echo "$CXX" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2967 test -n "$CXX" && break
2968 done
2970 if test -z "$CXX"; then
2971 ac_ct_CXX=$CXX
2972 for ac_prog in ${host_cxx_compilers}
2974 # Extract the first word of "$ac_prog", so it can be a program name with args.
2975 set dummy $ac_prog; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 if test -n "$ac_ct_CXX"; then
2982 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_prog_ac_ct_CXX="$ac_prog"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2995 done
2996 done
2997 IFS=$as_save_IFS
3001 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3002 if test -n "$ac_ct_CXX"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3004 $as_echo "$ac_ct_CXX" >&6; }
3005 else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3011 test -n "$ac_ct_CXX" && break
3012 done
3014 if test "x$ac_ct_CXX" = x; then
3015 CXX="g++"
3016 else
3017 case $cross_compiling:$ac_tool_warned in
3018 yes:)
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021 ac_tool_warned=yes ;;
3022 esac
3023 CXX=$ac_ct_CXX
3029 # Provide some information about the compiler.
3030 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3031 set X $ac_compile
3032 ac_compiler=$2
3033 for ac_option in --version -v -V -qversion; do
3034 { { ac_try="$ac_compiler $ac_option >&5"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040 $as_echo "$ac_try_echo"; } >&5
3041 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3042 ac_status=$?
3043 if test -s conftest.err; then
3044 sed '10a\
3045 ... rest of stderr output deleted ...
3046 10q' conftest.err >conftest.er1
3047 cat conftest.er1 >&5
3049 rm -f conftest.er1 conftest.err
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }
3052 done
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3058 main ()
3062 return 0;
3064 _ACEOF
3065 ac_clean_files_save=$ac_clean_files
3066 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3067 # Try to create an executable without -o first, disregard a.out.
3068 # It will help us diagnose broken compilers, and finding out an intuition
3069 # of exeext.
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3071 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3072 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3074 # The possible output files:
3075 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3077 ac_rmfiles=
3078 for ac_file in $ac_files
3080 case $ac_file in
3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3082 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3083 esac
3084 done
3085 rm -f $ac_rmfiles
3087 if { { ac_try="$ac_link_default"
3088 case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093 $as_echo "$ac_try_echo"; } >&5
3094 (eval "$ac_link_default") 2>&5
3095 ac_status=$?
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }; then :
3098 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3099 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3100 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3101 # so that the user can short-circuit this test for compilers unknown to
3102 # Autoconf.
3103 for ac_file in $ac_files ''
3105 test -f "$ac_file" || continue
3106 case $ac_file in
3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3109 [ab].out )
3110 # We found the default executable, but exeext='' is most
3111 # certainly right.
3112 break;;
3113 *.* )
3114 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3115 then :; else
3116 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3118 # We set ac_cv_exeext here because the later test for it is not
3119 # safe: cross compilers may not add the suffix if given an `-o'
3120 # argument, so we may need to know it at that point already.
3121 # Even if this section looks crufty: it has the advantage of
3122 # actually working.
3123 break;;
3125 break;;
3126 esac
3127 done
3128 test "$ac_cv_exeext" = no && ac_cv_exeext=
3130 else
3131 ac_file=''
3133 if test -z "$ac_file"; then :
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 $as_echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 as_fn_error 77 "C++ compiler cannot create executables
3142 See \`config.log' for more details" "$LINENO" 5; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3145 $as_echo "yes" >&6; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3148 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3150 $as_echo "$ac_file" >&6; }
3151 ac_exeext=$ac_cv_exeext
3153 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3154 ac_clean_files=$ac_clean_files_save
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3156 $as_echo_n "checking for suffix of executables... " >&6; }
3157 if { { ac_try="$ac_link"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_link") 2>&5
3165 ac_status=$?
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then :
3168 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3169 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3170 # work properly (i.e., refer to `conftest.exe'), while it won't with
3171 # `rm'.
3172 for ac_file in conftest.exe conftest conftest.*; do
3173 test -f "$ac_file" || continue
3174 case $ac_file in
3175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3176 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3177 break;;
3178 * ) break;;
3179 esac
3180 done
3181 else
3182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3185 See \`config.log' for more details" "$LINENO" 5; }
3187 rm -f conftest conftest$ac_cv_exeext
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3189 $as_echo "$ac_cv_exeext" >&6; }
3191 rm -f conftest.$ac_ext
3192 EXEEXT=$ac_cv_exeext
3193 ac_exeext=$EXEEXT
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3196 #include <stdio.h>
3198 main ()
3200 FILE *f = fopen ("conftest.out", "w");
3201 return ferror (f) || fclose (f) != 0;
3204 return 0;
3206 _ACEOF
3207 ac_clean_files="$ac_clean_files conftest.out"
3208 # Check that the compiler produces executables we can run. If not, either
3209 # the compiler is broken, or we cross compile.
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3211 $as_echo_n "checking whether we are cross compiling... " >&6; }
3212 if test "$cross_compiling" != yes; then
3213 { { ac_try="$ac_link"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_link") 2>&5
3221 ac_status=$?
3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }
3224 if { ac_try='./conftest$ac_cv_exeext'
3225 { { case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_try") 2>&5
3232 ac_status=$?
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; }; then
3235 cross_compiling=no
3236 else
3237 if test "$cross_compiling" = maybe; then
3238 cross_compiling=yes
3239 else
3240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "cannot run C++ compiled programs.
3243 If you meant to cross compile, use \`--host'.
3244 See \`config.log' for more details" "$LINENO" 5; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3249 $as_echo "$cross_compiling" >&6; }
3251 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3252 ac_clean_files=$ac_clean_files_save
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3254 $as_echo_n "checking for suffix of object files... " >&6; }
3255 if ${ac_cv_objext+:} false; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3262 main ()
3266 return 0;
3268 _ACEOF
3269 rm -f conftest.o conftest.obj
3270 if { { ac_try="$ac_compile"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_compile") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; then :
3281 for ac_file in conftest.o conftest.obj conftest.*; do
3282 test -f "$ac_file" || continue;
3283 case $ac_file in
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3285 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3286 break;;
3287 esac
3288 done
3289 else
3290 $as_echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "cannot compute suffix of object files: cannot compile
3296 See \`config.log' for more details" "$LINENO" 5; }
3298 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3301 $as_echo "$ac_cv_objext" >&6; }
3302 OBJEXT=$ac_cv_objext
3303 ac_objext=$OBJEXT
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3305 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3306 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3313 main ()
3315 #ifndef __GNUC__
3316 choke me
3317 #endif
3320 return 0;
3322 _ACEOF
3323 if ac_fn_cxx_try_compile "$LINENO"; then :
3324 ac_compiler_gnu=yes
3325 else
3326 ac_compiler_gnu=no
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3333 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3334 if test $ac_compiler_gnu = yes; then
3335 GXX=yes
3336 else
3337 GXX=
3339 ac_test_CXXFLAGS=${CXXFLAGS+set}
3340 ac_save_CXXFLAGS=$CXXFLAGS
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3342 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3343 if ${ac_cv_prog_cxx_g+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3347 ac_cxx_werror_flag=yes
3348 ac_cv_prog_cxx_g=no
3349 CXXFLAGS="-g"
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3354 main ()
3358 return 0;
3360 _ACEOF
3361 if ac_fn_cxx_try_compile "$LINENO"; then :
3362 ac_cv_prog_cxx_g=yes
3363 else
3364 CXXFLAGS=""
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3369 main ()
3373 return 0;
3375 _ACEOF
3376 if ac_fn_cxx_try_compile "$LINENO"; then :
3378 else
3379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3380 CXXFLAGS="-g"
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3385 main ()
3389 return 0;
3391 _ACEOF
3392 if ac_fn_cxx_try_compile "$LINENO"; then :
3393 ac_cv_prog_cxx_g=yes
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3403 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3404 if test "$ac_test_CXXFLAGS" = set; then
3405 CXXFLAGS=$ac_save_CXXFLAGS
3406 elif test $ac_cv_prog_cxx_g = yes; then
3407 if test "$GXX" = yes; then
3408 CXXFLAGS="-g -O2"
3409 else
3410 CXXFLAGS="-g"
3412 else
3413 if test "$GXX" = yes; then
3414 CXXFLAGS="-O2"
3415 else
3416 CXXFLAGS=
3419 ac_ext=c
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425 ac_ext=c
3426 ac_cpp='$CPP $CPPFLAGS'
3427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430 if test -n "$ac_tool_prefix"; then
3431 for ac_prog in ${host_c_compilers}
3433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_prog_CC+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 if test -n "$CC"; then
3441 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 break 2
3454 done
3455 done
3456 IFS=$as_save_IFS
3460 CC=$ac_cv_prog_CC
3461 if test -n "$CC"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463 $as_echo "$CC" >&6; }
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3470 test -n "$CC" && break
3471 done
3473 if test -z "$CC"; then
3474 ac_ct_CC=$CC
3475 for ac_prog in ${host_c_compilers}
3477 # Extract the first word of "$ac_prog", so it can be a program name with args.
3478 set dummy $ac_prog; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 if test -n "$ac_ct_CC"; then
3485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_ac_ct_CC="$ac_prog"
3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3498 done
3499 done
3500 IFS=$as_save_IFS
3504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3505 if test -n "$ac_ct_CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3507 $as_echo "$ac_ct_CC" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3514 test -n "$ac_ct_CC" && break
3515 done
3517 if test "x$ac_ct_CC" = x; then
3518 CC=""
3519 else
3520 case $cross_compiling:$ac_tool_warned in
3521 yes:)
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3524 ac_tool_warned=yes ;;
3525 esac
3526 CC=$ac_ct_CC
3531 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 as_fn_error $? "no acceptable C compiler found in \$PATH
3534 See \`config.log' for more details" "$LINENO" 5; }
3536 # Provide some information about the compiler.
3537 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3538 set X $ac_compile
3539 ac_compiler=$2
3540 for ac_option in --version -v -V -qversion; do
3541 { { ac_try="$ac_compiler $ac_option >&5"
3542 case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545 esac
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3549 ac_status=$?
3550 if test -s conftest.err; then
3551 sed '10a\
3552 ... rest of stderr output deleted ...
3553 10q' conftest.err >conftest.er1
3554 cat conftest.er1 >&5
3556 rm -f conftest.er1 conftest.err
3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558 test $ac_status = 0; }
3559 done
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3562 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3563 if ${ac_cv_c_compiler_gnu+:} false; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3570 main ()
3572 #ifndef __GNUC__
3573 choke me
3574 #endif
3577 return 0;
3579 _ACEOF
3580 if ac_fn_c_try_compile "$LINENO"; then :
3581 ac_compiler_gnu=yes
3582 else
3583 ac_compiler_gnu=no
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3590 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3591 if test $ac_compiler_gnu = yes; then
3592 GCC=yes
3593 else
3594 GCC=
3596 ac_test_CFLAGS=${CFLAGS+set}
3597 ac_save_CFLAGS=$CFLAGS
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3599 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3600 if ${ac_cv_prog_cc_g+:} false; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 ac_save_c_werror_flag=$ac_c_werror_flag
3604 ac_c_werror_flag=yes
3605 ac_cv_prog_cc_g=no
3606 CFLAGS="-g"
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3611 main ()
3615 return 0;
3617 _ACEOF
3618 if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_cv_prog_cc_g=yes
3620 else
3621 CFLAGS=""
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3626 main ()
3630 return 0;
3632 _ACEOF
3633 if ac_fn_c_try_compile "$LINENO"; then :
3635 else
3636 ac_c_werror_flag=$ac_save_c_werror_flag
3637 CFLAGS="-g"
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3642 main ()
3646 return 0;
3648 _ACEOF
3649 if ac_fn_c_try_compile "$LINENO"; then :
3650 ac_cv_prog_cc_g=yes
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657 ac_c_werror_flag=$ac_save_c_werror_flag
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3660 $as_echo "$ac_cv_prog_cc_g" >&6; }
3661 if test "$ac_test_CFLAGS" = set; then
3662 CFLAGS=$ac_save_CFLAGS
3663 elif test $ac_cv_prog_cc_g = yes; then
3664 if test "$GCC" = yes; then
3665 CFLAGS="-g -O2"
3666 else
3667 CFLAGS="-g"
3669 else
3670 if test "$GCC" = yes; then
3671 CFLAGS="-O2"
3672 else
3673 CFLAGS=
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3677 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3678 if ${ac_cv_prog_cc_c89+:} false; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 ac_cv_prog_cc_c89=no
3682 ac_save_CC=$CC
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685 #include <stdarg.h>
3686 #include <stdio.h>
3687 struct stat;
3688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3689 struct buf { int x; };
3690 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3691 static char *e (p, i)
3692 char **p;
3693 int i;
3695 return p[i];
3697 static char *f (char * (*g) (char **, int), char **p, ...)
3699 char *s;
3700 va_list v;
3701 va_start (v,p);
3702 s = g (p, va_arg (v,int));
3703 va_end (v);
3704 return s;
3707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3708 function prototypes and stuff, but not '\xHH' hex character constants.
3709 These don't provoke an error unfortunately, instead are silently treated
3710 as 'x'. The following induces an error, until -std is added to get
3711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3712 array size at least. It's necessary to write '\x00'==0 to get something
3713 that's true only with -std. */
3714 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3716 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3717 inside strings and character constants. */
3718 #define FOO(x) 'x'
3719 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3721 int test (int i, double x);
3722 struct s1 {int (*f) (int a);};
3723 struct s2 {int (*f) (double a);};
3724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3725 int argc;
3726 char **argv;
3728 main ()
3730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3732 return 0;
3734 _ACEOF
3735 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3736 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3738 CC="$ac_save_CC $ac_arg"
3739 if ac_fn_c_try_compile "$LINENO"; then :
3740 ac_cv_prog_cc_c89=$ac_arg
3742 rm -f core conftest.err conftest.$ac_objext
3743 test "x$ac_cv_prog_cc_c89" != "xno" && break
3744 done
3745 rm -f conftest.$ac_ext
3746 CC=$ac_save_CC
3749 # AC_CACHE_VAL
3750 case "x$ac_cv_prog_cc_c89" in
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3753 $as_echo "none needed" >&6; } ;;
3754 xno)
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3756 $as_echo "unsupported" >&6; } ;;
3758 CC="$CC $ac_cv_prog_cc_c89"
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3760 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3761 esac
3762 if test "x$ac_cv_prog_cc_c89" != xno; then :
3766 ac_ext=c
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772 aros_host_def_cc="$CC"
3773 case $ac_cv_prog_cc_stdc in #(
3774 no) :
3775 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3776 *) :
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3778 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3779 if ${ac_cv_prog_cc_c99+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 ac_cv_prog_cc_c99=no
3783 ac_save_CC=$CC
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3786 #include <stdarg.h>
3787 #include <stdbool.h>
3788 #include <stdlib.h>
3789 #include <wchar.h>
3790 #include <stdio.h>
3792 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3793 #define debug(...) fprintf (stderr, __VA_ARGS__)
3794 #define showlist(...) puts (#__VA_ARGS__)
3795 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3796 static void
3797 test_varargs_macros (void)
3799 int x = 1234;
3800 int y = 5678;
3801 debug ("Flag");
3802 debug ("X = %d\n", x);
3803 showlist (The first, second, and third items.);
3804 report (x>y, "x is %d but y is %d", x, y);
3807 // Check long long types.
3808 #define BIG64 18446744073709551615ull
3809 #define BIG32 4294967295ul
3810 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3811 #if !BIG_OK
3812 your preprocessor is broken;
3813 #endif
3814 #if BIG_OK
3815 #else
3816 your preprocessor is broken;
3817 #endif
3818 static long long int bignum = -9223372036854775807LL;
3819 static unsigned long long int ubignum = BIG64;
3821 struct incomplete_array
3823 int datasize;
3824 double data[];
3827 struct named_init {
3828 int number;
3829 const wchar_t *name;
3830 double average;
3833 typedef const char *ccp;
3835 static inline int
3836 test_restrict (ccp restrict text)
3838 // See if C++-style comments work.
3839 // Iterate through items via the restricted pointer.
3840 // Also check for declarations in for loops.
3841 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3842 continue;
3843 return 0;
3846 // Check varargs and va_copy.
3847 static void
3848 test_varargs (const char *format, ...)
3850 va_list args;
3851 va_start (args, format);
3852 va_list args_copy;
3853 va_copy (args_copy, args);
3855 const char *str;
3856 int number;
3857 float fnumber;
3859 while (*format)
3861 switch (*format++)
3863 case 's': // string
3864 str = va_arg (args_copy, const char *);
3865 break;
3866 case 'd': // int
3867 number = va_arg (args_copy, int);
3868 break;
3869 case 'f': // float
3870 fnumber = va_arg (args_copy, double);
3871 break;
3872 default:
3873 break;
3876 va_end (args_copy);
3877 va_end (args);
3881 main ()
3884 // Check bool.
3885 _Bool success = false;
3887 // Check restrict.
3888 if (test_restrict ("String literal") == 0)
3889 success = true;
3890 char *restrict newvar = "Another string";
3892 // Check varargs.
3893 test_varargs ("s, d' f .", "string", 65, 34.234);
3894 test_varargs_macros ();
3896 // Check flexible array members.
3897 struct incomplete_array *ia =
3898 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3899 ia->datasize = 10;
3900 for (int i = 0; i < ia->datasize; ++i)
3901 ia->data[i] = i * 1.234;
3903 // Check named initializers.
3904 struct named_init ni = {
3905 .number = 34,
3906 .name = L"Test wide string",
3907 .average = 543.34343,
3910 ni.number = 58;
3912 int dynamic_array[ni.number];
3913 dynamic_array[ni.number - 1] = 543;
3915 // work around unused variable warnings
3916 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3917 || dynamic_array[ni.number - 1] != 543);
3920 return 0;
3922 _ACEOF
3923 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3925 CC="$ac_save_CC $ac_arg"
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927 ac_cv_prog_cc_c99=$ac_arg
3929 rm -f core conftest.err conftest.$ac_objext
3930 test "x$ac_cv_prog_cc_c99" != "xno" && break
3931 done
3932 rm -f conftest.$ac_ext
3933 CC=$ac_save_CC
3936 # AC_CACHE_VAL
3937 case "x$ac_cv_prog_cc_c99" in
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3940 $as_echo "none needed" >&6; } ;;
3941 xno)
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3943 $as_echo "unsupported" >&6; } ;;
3945 CC="$CC $ac_cv_prog_cc_c99"
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3947 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3948 esac
3949 if test "x$ac_cv_prog_cc_c99" != xno; then :
3950 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3951 else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3953 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3954 if ${ac_cv_prog_cc_c89+:} false; then :
3955 $as_echo_n "(cached) " >&6
3956 else
3957 ac_cv_prog_cc_c89=no
3958 ac_save_CC=$CC
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3961 #include <stdarg.h>
3962 #include <stdio.h>
3963 struct stat;
3964 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3965 struct buf { int x; };
3966 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3967 static char *e (p, i)
3968 char **p;
3969 int i;
3971 return p[i];
3973 static char *f (char * (*g) (char **, int), char **p, ...)
3975 char *s;
3976 va_list v;
3977 va_start (v,p);
3978 s = g (p, va_arg (v,int));
3979 va_end (v);
3980 return s;
3983 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3984 function prototypes and stuff, but not '\xHH' hex character constants.
3985 These don't provoke an error unfortunately, instead are silently treated
3986 as 'x'. The following induces an error, until -std is added to get
3987 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3988 array size at least. It's necessary to write '\x00'==0 to get something
3989 that's true only with -std. */
3990 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3992 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3993 inside strings and character constants. */
3994 #define FOO(x) 'x'
3995 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3997 int test (int i, double x);
3998 struct s1 {int (*f) (int a);};
3999 struct s2 {int (*f) (double a);};
4000 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4001 int argc;
4002 char **argv;
4004 main ()
4006 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4008 return 0;
4010 _ACEOF
4011 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4012 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4014 CC="$ac_save_CC $ac_arg"
4015 if ac_fn_c_try_compile "$LINENO"; then :
4016 ac_cv_prog_cc_c89=$ac_arg
4018 rm -f core conftest.err conftest.$ac_objext
4019 test "x$ac_cv_prog_cc_c89" != "xno" && break
4020 done
4021 rm -f conftest.$ac_ext
4022 CC=$ac_save_CC
4025 # AC_CACHE_VAL
4026 case "x$ac_cv_prog_cc_c89" in
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4029 $as_echo "none needed" >&6; } ;;
4030 xno)
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4032 $as_echo "unsupported" >&6; } ;;
4034 CC="$CC $ac_cv_prog_cc_c89"
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4036 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4037 esac
4038 if test "x$ac_cv_prog_cc_c89" != xno; then :
4039 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4040 else
4041 ac_cv_prog_cc_stdc=no
4046 esac
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4048 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4049 if ${ac_cv_prog_cc_stdc+:} false; then :
4050 $as_echo_n "(cached) " >&6
4053 case $ac_cv_prog_cc_stdc in #(
4054 no) :
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4056 $as_echo "unsupported" >&6; } ;; #(
4057 '') :
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4059 $as_echo "none needed" >&6; } ;; #(
4060 *) :
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4062 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4063 esac
4065 ac_ext=c
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4071 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4072 # On Suns, sometimes $CPP names a directory.
4073 if test -n "$CPP" && test -d "$CPP"; then
4074 CPP=
4076 if test -z "$CPP"; then
4077 if ${ac_cv_prog_CPP+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 # Double quotes because CPP needs to be expanded
4081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4083 ac_preproc_ok=false
4084 for ac_c_preproc_warn_flag in '' yes
4086 # Use a header file that comes with gcc, so configuring glibc
4087 # with a fresh cross-compiler works.
4088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4089 # <limits.h> exists even on freestanding compilers.
4090 # On the NeXT, cc -E runs the code through the compiler's parser,
4091 # not just through cpp. "Syntax error" is here to catch this case.
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4094 #ifdef __STDC__
4095 # include <limits.h>
4096 #else
4097 # include <assert.h>
4098 #endif
4099 Syntax error
4100 _ACEOF
4101 if ac_fn_c_try_cpp "$LINENO"; then :
4103 else
4104 # Broken: fails on valid input.
4105 continue
4107 rm -f conftest.err conftest.i conftest.$ac_ext
4109 # OK, works on sane cases. Now check whether nonexistent headers
4110 # can be detected and how.
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113 #include <ac_nonexistent.h>
4114 _ACEOF
4115 if ac_fn_c_try_cpp "$LINENO"; then :
4116 # Broken: success on invalid input.
4117 continue
4118 else
4119 # Passes both tests.
4120 ac_preproc_ok=:
4121 break
4123 rm -f conftest.err conftest.i conftest.$ac_ext
4125 done
4126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4127 rm -f conftest.i conftest.err conftest.$ac_ext
4128 if $ac_preproc_ok; then :
4129 break
4132 done
4133 ac_cv_prog_CPP=$CPP
4136 CPP=$ac_cv_prog_CPP
4137 else
4138 ac_cv_prog_CPP=$CPP
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4141 $as_echo "$CPP" >&6; }
4142 ac_preproc_ok=false
4143 for ac_c_preproc_warn_flag in '' yes
4145 # Use a header file that comes with gcc, so configuring glibc
4146 # with a fresh cross-compiler works.
4147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4148 # <limits.h> exists even on freestanding compilers.
4149 # On the NeXT, cc -E runs the code through the compiler's parser,
4150 # not just through cpp. "Syntax error" is here to catch this case.
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153 #ifdef __STDC__
4154 # include <limits.h>
4155 #else
4156 # include <assert.h>
4157 #endif
4158 Syntax error
4159 _ACEOF
4160 if ac_fn_c_try_cpp "$LINENO"; then :
4162 else
4163 # Broken: fails on valid input.
4164 continue
4166 rm -f conftest.err conftest.i conftest.$ac_ext
4168 # OK, works on sane cases. Now check whether nonexistent headers
4169 # can be detected and how.
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 #include <ac_nonexistent.h>
4173 _ACEOF
4174 if ac_fn_c_try_cpp "$LINENO"; then :
4175 # Broken: success on invalid input.
4176 continue
4177 else
4178 # Passes both tests.
4179 ac_preproc_ok=:
4180 break
4182 rm -f conftest.err conftest.i conftest.$ac_ext
4184 done
4185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4186 rm -f conftest.i conftest.err conftest.$ac_ext
4187 if $ac_preproc_ok; then :
4189 else
4190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4192 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4193 See \`config.log' for more details" "$LINENO" 5; }
4196 ac_ext=c
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203 # Check for a compatible awk
4204 for ac_prog in gawk nawk
4206 # Extract the first word of "$ac_prog", so it can be a program name with args.
4207 set dummy $ac_prog; ac_word=$2
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if ${ac_cv_prog_AWK+:} false; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 if test -n "$AWK"; then
4214 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223 ac_cv_prog_AWK="$ac_prog"
4224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4227 done
4228 done
4229 IFS=$as_save_IFS
4233 AWK=$ac_cv_prog_AWK
4234 if test -n "$AWK"; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4236 $as_echo "$AWK" >&6; }
4237 else
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4243 test -n "$AWK" && break
4244 done
4246 req_avail=yes
4247 if test "$AWK" = ""; then
4248 req_avail=no
4250 if test "$AWK" = "no"; then
4251 req_avail=no
4253 if test "$req_avail" = "no"; then
4254 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4256 # Extract the first word of "mmake", so it can be a program name with args.
4257 set dummy mmake; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if ${ac_cv_prog_MMAKE+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 if test -n "$MMAKE"; then
4264 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_MMAKE="mmake "
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4277 done
4278 done
4279 IFS=$as_save_IFS
4283 MMAKE=$ac_cv_prog_MMAKE
4284 if test -n "$MMAKE"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4286 $as_echo "$MMAKE" >&6; }
4287 else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4294 # Perform some default variable assignments. Note all of these will be
4295 # Regenerated from the script, so there is no need to cache them.
4297 aros_build_host=$host
4298 aros_host_cpp="$CPP"
4299 aros_host_cc="$CC"
4300 aros_host_cxx="$CXX"
4301 if test "$GCC" = "yes"; then
4302 aros_gcc_ld=`$CC -print-prog-name=ld`
4303 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4304 set dummy `basename $aros_gcc_ld`; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_path_aros_host_ld+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 case $aros_host_ld in
4311 [\\/]* | ?:[\\/]*)
4312 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in `dirname $aros_gcc_ld`
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4326 done
4327 done
4328 IFS=$as_save_IFS
4331 esac
4333 aros_host_ld=$ac_cv_path_aros_host_ld
4334 if test -n "$aros_host_ld"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4336 $as_echo "$aros_host_ld" >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4344 if test "$aros_host_ld" = ""; then
4345 # Extract the first word of "ld", so it can be a program name with args.
4346 set dummy ld; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if ${ac_cv_path_aros_host_ld+:} false; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 case $aros_host_ld in
4353 [\\/]* | ?:[\\/]*)
4354 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4364 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 break 2
4368 done
4369 done
4370 IFS=$as_save_IFS
4373 esac
4375 aros_host_ld=$ac_cv_path_aros_host_ld
4376 if test -n "$aros_host_ld"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4378 $as_echo "$aros_host_ld" >&6; }
4379 else
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4386 req_avail=yes
4387 if test "$aros_host_ld" = ""; then
4388 req_avail=no
4390 if test "$aros_host_ld" = "no"; then
4391 req_avail=no
4393 if test "$req_avail" = "no"; then
4394 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4396 aros_host_make="make"
4397 aros_host_cflags="$CFLAGS"
4398 aros_host_cxxflags="$CXXFLAGS"
4399 aros_host_cppflags="$CPPFLAGS"
4400 aros_host_ldflags="$LDFLAGS"
4401 aros_host_debug="-g -O0"
4402 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4403 aros_host_mkargs="--no-print-directory"
4404 aros_host_exe_suffix="$EXEEXT"
4405 aros_host_lib_suffix=""
4407 # Ignore all compliance, AROS ROMs = 0
4408 # KickStart v1.0 = 30
4409 # KickStart v1.3 = 34
4410 # KickStart v2.0 = 37
4411 # KickStart v3.0 = 39
4412 # KickStart v3.1 = 40
4413 # AmigaOS v3.5 = 44
4414 aros_amigaos_compliance=0
4416 for ac_prog in aclocal aclocal19 aclocal-1.9
4418 # Extract the first word of "$ac_prog", so it can be a program name with args.
4419 set dummy $ac_prog; ac_word=$2
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4423 $as_echo_n "(cached) " >&6
4424 else
4425 if test -n "$aros_host_aclocal"; then
4426 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435 ac_cv_prog_aros_host_aclocal="$ac_prog"
4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4439 done
4440 done
4441 IFS=$as_save_IFS
4445 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4446 if test -n "$aros_host_aclocal"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4448 $as_echo "$aros_host_aclocal" >&6; }
4449 else
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4455 test -n "$aros_host_aclocal" && break
4456 done
4458 for ac_prog in autoconf autoconf259 autoconf253
4460 # Extract the first word of "$ac_prog", so it can be a program name with args.
4461 set dummy $ac_prog; ac_word=$2
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 $as_echo_n "checking for $ac_word... " >&6; }
4464 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test -n "$aros_host_autoconf"; then
4468 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4469 else
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_prog_aros_host_autoconf="$ac_prog"
4478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4481 done
4482 done
4483 IFS=$as_save_IFS
4487 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4488 if test -n "$aros_host_autoconf"; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4490 $as_echo "$aros_host_autoconf" >&6; }
4491 else
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 $as_echo "no" >&6; }
4497 test -n "$aros_host_autoconf" && break
4498 done
4500 for ac_prog in autoheader autoheader259 autoheader253
4502 # Extract the first word of "$ac_prog", so it can be a program name with args.
4503 set dummy $ac_prog; ac_word=$2
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505 $as_echo_n "checking for $ac_word... " >&6; }
4506 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4507 $as_echo_n "(cached) " >&6
4508 else
4509 if test -n "$aros_host_autoheader"; then
4510 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4511 else
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4519 ac_cv_prog_aros_host_autoheader="$ac_prog"
4520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4523 done
4524 done
4525 IFS=$as_save_IFS
4529 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4530 if test -n "$aros_host_autoheader"; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4532 $as_echo "$aros_host_autoheader" >&6; }
4533 else
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4539 test -n "$aros_host_autoheader" && break
4540 done
4542 for ac_prog in automake automake19 automake-1.9
4544 # Extract the first word of "$ac_prog", so it can be a program name with args.
4545 set dummy $ac_prog; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_aros_host_automake+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if test -n "$aros_host_automake"; then
4552 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_aros_host_automake="$ac_prog"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4565 done
4566 done
4567 IFS=$as_save_IFS
4571 aros_host_automake=$ac_cv_prog_aros_host_automake
4572 if test -n "$aros_host_automake"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4574 $as_echo "$aros_host_automake" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4581 test -n "$aros_host_automake" && break
4582 done
4585 req_avail=yes
4586 if test "$aros_host_aclocal" = ""; then
4587 req_avail=no
4589 if test "$aros_host_aclocal" = "no"; then
4590 req_avail=no
4592 if test "$req_avail" = "no"; then
4593 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4595 req_avail=yes
4596 if test "$aros_host_automake" = ""; then
4597 req_avail=no
4599 if test "$aros_host_automake" = "no"; then
4600 req_avail=no
4602 if test "$req_avail" = "no"; then
4603 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4606 case "$aros_host_cc" in
4607 *clang*)
4608 aros_host_cc_pipe=""
4610 *gcc*)
4611 aros_host_cc_pipe="-pipe"
4613 icc)
4614 aros_host_cc_pipe=""
4617 aros_host_cc_pipe=""
4619 esac
4621 aros_kernel_cc_includes=""
4622 aros_target_cc_includes=""
4623 host_cc_elf=yes
4625 # ----------------------------------------------------------------------------------------
4626 # Host-specific defaults
4628 # This is the main host configuration section. It is where the host
4629 # can change the values of any variables it needs to change. We do
4630 # not look at anything that compiles to the target yet, we'll get
4631 # to that later.
4633 case "$host_os" in
4634 aros*)
4635 aros_host_arch="aros"
4636 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4637 case "$host_cpu" in
4638 *i?86*)
4639 aros_host_cpu="i386"
4641 *x86_64*)
4642 aros_host_cpu="x86_64"
4644 *powerpc*)
4645 aros_host_cpu="ppc"
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4649 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4650 aros_host_cpu="$host_cpu"
4652 esac
4655 linux*)
4656 aros_host_arch="linux"
4657 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4658 android_build_os="linux-x86"
4659 android_tool="android"
4660 default_android_sdk="/opt/android-sdk-linux_x86"
4661 case "$host_cpu" in
4662 *i?86*)
4663 aros_host_cpu="i386"
4665 *x86_64*)
4666 aros_host_cpu="x86_64"
4668 *m68k*)
4669 aros_host_cpu="m68k"
4671 *powerpc*)
4672 aros_host_cpu="ppc"
4674 *arm*)
4675 aros_host_cpu="arm"
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4679 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4680 aros_host_cpu="$host_cpu"
4682 esac
4685 freebsd*)
4686 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4687 aros_host_make="gmake"
4688 aros_host_arch="freebsd"
4689 aros_host_cpu="i386"
4691 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4693 case $host_os in
4694 freebsd[234]*)
4695 aros_object_format="elf_i386"
4699 aros_object_format="elf_i386_fbsd"
4701 esac
4705 darwin*)
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4707 $as_echo_n "checking for macOS SDK files... " >&6; }
4708 LOC=$( xcode-select -p )
4709 if test $? != 0; then :
4710 as_fn_error $? "XCode incorrectly configured!
4711 please run 'xcode-select --install' before
4712 re-running configure" "$LINENO" 5
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4715 $as_echo "$LOC" >&6; }
4716 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4717 aros_host_arch="darwin"
4718 host_cc_elf=no
4719 if [ -z ${SED+x} ]; then SED="gsed"; fi
4720 android_build_os="darwin-x86"
4721 android_tool="android"
4722 default_android_sdk="/android-sdk-mac_x86"
4723 case "$host_cpu" in
4724 *i?86*)
4725 aros_host_cpu="i386"
4727 *x86_64*)
4728 aros_host_cpu="x86_64"
4730 *powerpc*)
4731 aros_host_cpu="ppc"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4735 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4736 aros_host_cpu="$host_cpu"
4738 esac
4740 aros_host_ldflags="$aros_host_ldflags -liconv"
4744 dragonfly*)
4745 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4746 aros_host_make="gmake"
4747 aros_host_arch="dragonfly"
4748 case $host_cpu in
4749 *i?86*)
4750 aros_host_cpu="i386"
4752 *amd64*)
4753 aros_host_cpu="x86_64"
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4757 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4758 aros_host_cpu="$host_cpu"
4760 esac
4763 netbsd*)
4764 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4765 aros_host_make="gmake"
4766 aros_host_arch="netbsd"
4767 case "$host_cpu" in
4768 *i?86*)
4769 aros_host_cpu="i386"
4771 *m68k*)
4772 aros_host_cpu="m68k"
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4776 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4777 aros_host_cpu="$host_cpu"
4779 esac
4780 aros_host_lib_suffix=".0.0"
4783 openbsd*)
4784 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4785 aros_host_make="gmake"
4786 aros_host_arch="openbsd"
4787 case "$host_cpu" in
4788 *i?86*)
4789 aros_host_cpu="i386"
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4793 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4794 aros_host_cpu="$host_cpu"
4796 esac
4799 solaris*)
4800 aros_host_arch="solaris"
4801 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4802 case "$host_cpu" in
4803 *i?86*)
4804 aros_host_cpu="i386"
4806 *sparc*)
4807 aros_host_cpu="sparc"
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4811 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4812 aros_host_cpu="$host_cpu"
4814 esac
4817 morphos*)
4818 aros_host_arch="morphos"
4819 aros_host_cpu="ppc"
4820 host_cc_elf=no
4823 amiga*)
4824 aros_host_arch="amiga"
4825 host_cc_elf=no
4826 SORT="/gg/bin/sort"
4827 TEST="/gg/bin/test"
4828 UNIQ="/gg/bin/uniq"
4829 FOR="for"
4830 TOUCH="/gg/bin/touch"
4831 case "$host_cpu" in
4832 *m68k*)
4833 aros_host_cpu="m68k"
4835 *powerpc*)
4836 aros_host_cpu="ppc"
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 cygwin*)
4847 aros_host_arch="cygwin"
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="/cygdrive/c/android-sdk-windows-1.6_r1"
4854 case "$host_cpu" in
4855 *i?86*)
4856 aros_host_cpu="i386"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4860 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4861 aros_host_cpu="$host_cpu"
4863 esac
4866 mingw32*)
4867 aros_host_arch="mingw32"
4868 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4869 host_cc_elf=no
4870 android_build_os="windows"
4871 android_tool="android.bat"
4872 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4874 libpng_libextra="-lws2_32"
4876 case "$host_cpu" in
4877 *i?86*)
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4880 $as_echo_n "checking for Windows native gcc target... " >&6; }
4881 host_cpu=`gcc -dumpmachine`
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4883 $as_echo "$host_cpu" >&6; }
4886 esac
4888 case "$host_cpu" in
4889 *i?86*)
4890 aros_host_cpu="i386"
4893 mingw32*)
4894 aros_host_cpu="i386"
4897 *x86_64*)
4898 aros_host_cpu="x86_64"
4899 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4904 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4905 aros_host_cpu="$host_cpu"
4907 esac
4910 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4912 esac
4914 # Extract the first word of "ar", so it can be a program name with args.
4915 set dummy ar; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if ${ac_cv_prog_aros_host_ar+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -n "$aros_host_ar"; then
4922 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_aros_host_ar="ar cr"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4935 done
4936 done
4937 IFS=$as_save_IFS
4941 aros_host_ar=$ac_cv_prog_aros_host_ar
4942 if test -n "$aros_host_ar"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4944 $as_echo "$aros_host_ar" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4951 req_avail=yes
4952 if test "$aros_host_ar" = ""; then
4953 req_avail=no
4955 if test "$aros_host_ar" = "no"; then
4956 req_avail=no
4958 if test "$req_avail" = "no"; then
4959 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4961 # Extract the first word of "ranlib", so it can be a program name with args.
4962 set dummy ranlib; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 if test -n "$aros_host_ranlib"; then
4969 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_prog_aros_host_ranlib="ranlib "
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 break 2
4982 done
4983 done
4984 IFS=$as_save_IFS
4988 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4989 if test -n "$aros_host_ranlib"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4991 $as_echo "$aros_host_ranlib" >&6; }
4992 else
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4998 req_avail=yes
4999 if test "$aros_host_ranlib" = ""; then
5000 req_avail=no
5002 if test "$aros_host_ranlib" = "no"; then
5003 req_avail=no
5005 if test "$req_avail" = "no"; then
5006 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5008 # Extract the first word of "strip", so it can be a program name with args.
5009 set dummy strip; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if ${ac_cv_prog_aros_host_strip+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 if test -n "$aros_host_strip"; then
5016 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_aros_host_strip="strip "
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5029 done
5030 done
5031 IFS=$as_save_IFS
5035 aros_host_strip=$ac_cv_prog_aros_host_strip
5036 if test -n "$aros_host_strip"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5038 $as_echo "$aros_host_strip" >&6; }
5039 else
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5045 req_avail=yes
5046 if test "$aros_host_strip" = ""; then
5047 req_avail=no
5049 if test "$aros_host_strip" = "no"; then
5050 req_avail=no
5052 if test "$req_avail" = "no"; then
5053 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5056 # Extract the first word of "rm", so it can be a program name with args.
5057 set dummy rm; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if ${ac_cv_prog_RM+:} false; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5063 if test -n "$RM"; then
5064 ac_cv_prog_RM="$RM" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_prog_RM="rm -rf"
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5077 done
5078 done
5079 IFS=$as_save_IFS
5083 RM=$ac_cv_prog_RM
5084 if test -n "$RM"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5086 $as_echo "$RM" >&6; }
5087 else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5093 req_avail=yes
5094 if test "$RM" = ""; then
5095 req_avail=no
5097 if test "$RM" = "no"; then
5098 req_avail=no
5100 if test "$req_avail" = "no"; then
5101 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5103 # Extract the first word of "cp", so it can be a program name with args.
5104 set dummy cp; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_CP+:} false; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 if test -n "$CP"; then
5111 ac_cv_prog_CP="$CP" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_CP="cp "
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5124 done
5125 done
5126 IFS=$as_save_IFS
5130 CP=$ac_cv_prog_CP
5131 if test -n "$CP"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5133 $as_echo "$CP" >&6; }
5134 else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5140 req_avail=yes
5141 if test "$CP" = ""; then
5142 req_avail=no
5144 if test "$CP" = "no"; then
5145 req_avail=no
5147 if test "$req_avail" = "no"; then
5148 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5150 # Extract the first word of "mv", so it can be a program name with args.
5151 set dummy mv; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_prog_MV+:} false; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 if test -n "$MV"; then
5158 ac_cv_prog_MV="$MV" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_MV="mv "
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5171 done
5172 done
5173 IFS=$as_save_IFS
5177 MV=$ac_cv_prog_MV
5178 if test -n "$MV"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5180 $as_echo "$MV" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5187 req_avail=yes
5188 if test "$MV" = ""; then
5189 req_avail=no
5191 if test "$MV" = "no"; then
5192 req_avail=no
5194 if test "$req_avail" = "no"; then
5195 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5197 # Extract the first word of "echo", so it can be a program name with args.
5198 set dummy echo; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_prog_ECHO+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 if test -n "$ECHO"; then
5205 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_ECHO="echo "
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5218 done
5219 done
5220 IFS=$as_save_IFS
5224 ECHO=$ac_cv_prog_ECHO
5225 if test -n "$ECHO"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5227 $as_echo "$ECHO" >&6; }
5228 else
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5234 req_avail=yes
5235 if test "$ECHO" = ""; then
5236 req_avail=no
5238 if test "$ECHO" = "no"; then
5239 req_avail=no
5241 if test "$req_avail" = "no"; then
5242 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5244 # Extract the first word of "mkdir", so it can be a program name with args.
5245 set dummy mkdir; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_prog_MKDIR+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 if test -n "$MKDIR"; then
5252 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_prog_MKDIR="mkdir -p"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5265 done
5266 done
5267 IFS=$as_save_IFS
5271 MKDIR=$ac_cv_prog_MKDIR
5272 if test -n "$MKDIR"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5274 $as_echo "$MKDIR" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5281 req_avail=yes
5282 if test "$MKDIR" = ""; then
5283 req_avail=no
5285 if test "$MKDIR" = "no"; then
5286 req_avail=no
5288 if test "$req_avail" = "no"; then
5289 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5291 # Extract the first word of "touch", so it can be a program name with args.
5292 set dummy touch; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_prog_TOUCH+:} false; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 if test -n "$TOUCH"; then
5299 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308 ac_cv_prog_TOUCH="touch "
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5312 done
5313 done
5314 IFS=$as_save_IFS
5318 TOUCH=$ac_cv_prog_TOUCH
5319 if test -n "$TOUCH"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5321 $as_echo "$TOUCH" >&6; }
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5328 req_avail=yes
5329 if test "$TOUCH" = ""; then
5330 req_avail=no
5332 if test "$TOUCH" = "no"; then
5333 req_avail=no
5335 if test "$req_avail" = "no"; then
5336 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5338 # Extract the first word of "sort", so it can be a program name with args.
5339 set dummy sort; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_prog_SORT+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 if test -n "$SORT"; then
5346 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_SORT="sort "
5356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5359 done
5360 done
5361 IFS=$as_save_IFS
5365 SORT=$ac_cv_prog_SORT
5366 if test -n "$SORT"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5368 $as_echo "$SORT" >&6; }
5369 else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5375 req_avail=yes
5376 if test "$SORT" = ""; then
5377 req_avail=no
5379 if test "$SORT" = "no"; then
5380 req_avail=no
5382 if test "$req_avail" = "no"; then
5383 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5385 # Extract the first word of "uniq", so it can be a program name with args.
5386 set dummy uniq; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if ${ac_cv_prog_UNIQ+:} false; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 if test -n "$UNIQ"; then
5393 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_UNIQ="uniq "
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5406 done
5407 done
5408 IFS=$as_save_IFS
5412 UNIQ=$ac_cv_prog_UNIQ
5413 if test -n "$UNIQ"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5415 $as_echo "$UNIQ" >&6; }
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5422 req_avail=yes
5423 if test "$UNIQ" = ""; then
5424 req_avail=no
5426 if test "$UNIQ" = "no"; then
5427 req_avail=no
5429 if test "$req_avail" = "no"; then
5430 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5432 # Extract the first word of "true", so it can be a program name with args.
5433 set dummy true; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_NOP+:} false; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 if test -n "$NOP"; then
5440 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_NOP="true "
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5453 done
5454 done
5455 IFS=$as_save_IFS
5459 NOP=$ac_cv_prog_NOP
5460 if test -n "$NOP"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5462 $as_echo "$NOP" >&6; }
5463 else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5469 req_avail=yes
5470 if test "$NOP" = ""; then
5471 req_avail=no
5473 if test "$NOP" = "no"; then
5474 req_avail=no
5476 if test "$req_avail" = "no"; then
5477 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5479 # Extract the first word of "cat", so it can be a program name with args.
5480 set dummy cat; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if ${ac_cv_prog_CAT+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 if test -n "$CAT"; then
5487 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5488 else
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496 ac_cv_prog_CAT="cat "
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
5500 done
5501 done
5502 IFS=$as_save_IFS
5506 CAT=$ac_cv_prog_CAT
5507 if test -n "$CAT"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5509 $as_echo "$CAT" >&6; }
5510 else
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5516 req_avail=yes
5517 if test "$CAT" = ""; then
5518 req_avail=no
5520 if test "$CAT" = "no"; then
5521 req_avail=no
5523 if test "$req_avail" = "no"; then
5524 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5526 # Extract the first word of "bison", so it can be a program name with args.
5527 set dummy bison; ac_word=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if ${ac_cv_prog_BISON+:} false; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 if test -n "$BISON"; then
5534 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5535 else
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543 ac_cv_prog_BISON="bison "
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 break 2
5547 done
5548 done
5549 IFS=$as_save_IFS
5553 BISON=$ac_cv_prog_BISON
5554 if test -n "$BISON"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5556 $as_echo "$BISON" >&6; }
5557 else
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5563 req_avail=yes
5564 if test "$BISON" = ""; then
5565 req_avail=no
5567 if test "$BISON" = "no"; then
5568 req_avail=no
5570 if test "$req_avail" = "no"; then
5571 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5573 # Extract the first word of "flex", so it can be a program name with args.
5574 set dummy flex; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_prog_FLEX+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 if test -n "$FLEX"; then
5581 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5582 else
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_FLEX="flex "
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 break 2
5594 done
5595 done
5596 IFS=$as_save_IFS
5600 FLEX=$ac_cv_prog_FLEX
5601 if test -n "$FLEX"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5603 $as_echo "$FLEX" >&6; }
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5610 req_avail=yes
5611 if test "$FLEX" = ""; then
5612 req_avail=no
5614 if test "$FLEX" = "no"; then
5615 req_avail=no
5617 if test "$req_avail" = "no"; then
5618 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5620 # Extract the first word of "pngtopnm", so it can be a program name with args.
5621 set dummy pngtopnm; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 if test -n "$PNGTOPNM"; then
5628 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_PNGTOPNM="pngtopnm "
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5641 done
5642 done
5643 IFS=$as_save_IFS
5647 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5648 if test -n "$PNGTOPNM"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5650 $as_echo "$PNGTOPNM" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5657 req_avail=yes
5658 if test "$PNGTOPNM" = ""; then
5659 req_avail=no
5661 if test "$PNGTOPNM" = "no"; then
5662 req_avail=no
5664 if test "$req_avail" = "no"; then
5665 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5667 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5668 set dummy ppmtoilbm; ac_word=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5672 $as_echo_n "(cached) " >&6
5673 else
5674 if test -n "$PPMTOILBM"; then
5675 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5676 else
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5684 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5688 done
5689 done
5690 IFS=$as_save_IFS
5694 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5695 if test -n "$PPMTOILBM"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5697 $as_echo "$PPMTOILBM" >&6; }
5698 else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5704 req_avail=yes
5705 if test "$PPMTOILBM" = ""; then
5706 req_avail=no
5708 if test "$PPMTOILBM" = "no"; then
5709 req_avail=no
5711 if test "$req_avail" = "no"; then
5712 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5714 # Extract the first word of "sed", so it can be a program name with args.
5715 set dummy sed; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_SED+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 if test -n "$SED"; then
5722 ac_cv_prog_SED="$SED" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_SED="sed "
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5735 done
5736 done
5737 IFS=$as_save_IFS
5741 SED=$ac_cv_prog_SED
5742 if test -n "$SED"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5744 $as_echo "$SED" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5751 req_avail=yes
5752 if test "$SED" = ""; then
5753 req_avail=no
5755 if test "$SED" = "no"; then
5756 req_avail=no
5758 if test "$req_avail" = "no"; then
5759 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5761 # Extract the first word of "chmod", so it can be a program name with args.
5762 set dummy chmod; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_prog_CHMOD+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 if test -n "$CHMOD"; then
5769 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5770 else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_CHMOD="chmod "
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5782 done
5783 done
5784 IFS=$as_save_IFS
5788 CHMOD=$ac_cv_prog_CHMOD
5789 if test -n "$CHMOD"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5791 $as_echo "$CHMOD" >&6; }
5792 else
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5798 req_avail=yes
5799 if test "$CHMOD" = ""; then
5800 req_avail=no
5802 if test "$CHMOD" = "no"; then
5803 req_avail=no
5805 if test "$req_avail" = "no"; then
5806 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5808 # Extract the first word of "patch", so it can be a program name with args.
5809 set dummy patch; ac_word=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if ${ac_cv_prog_PATCH+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 if test -n "$PATCH"; then
5816 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_PATCH="patch "
5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5829 done
5830 done
5831 IFS=$as_save_IFS
5835 PATCH=$ac_cv_prog_PATCH
5836 if test -n "$PATCH"; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5838 $as_echo "$PATCH" >&6; }
5839 else
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5845 req_avail=yes
5846 if test "$PATCH" = ""; then
5847 req_avail=no
5849 if test "$PATCH" = "no"; then
5850 req_avail=no
5852 if test "$req_avail" = "no"; then
5853 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5862 if test -n "$PYTHON"; then
5863 # If the user set $PYTHON, use it and don't search something else.
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5865 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5866 prog="import sys
5867 # split strings by '.' and convert to numeric. Append some zeros
5868 # because we need at least 4 digits for the hex conversion.
5869 # map returns an iterator in Python 3.0 and a list in 2.x
5870 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5871 minverhex = 0
5872 # xrange is not present in Python 3.0 and range returns an iterator
5873 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5874 sys.exit(sys.hexversion < minverhex)"
5875 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5876 ($PYTHON -c "$prog") >&5 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; then :
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5881 $as_echo "yes" >&6; }
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5887 am_display_PYTHON=$PYTHON
5888 else
5889 # Otherwise, try each interpreter until we find one that satisfies
5890 # VERSION.
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5892 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5893 if ${am_cv_pathless_PYTHON+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5897 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
5898 test "$am_cv_pathless_PYTHON" = none && break
5899 prog="import sys
5900 # split strings by '.' and convert to numeric. Append some zeros
5901 # because we need at least 4 digits for the hex conversion.
5902 # map returns an iterator in Python 3.0 and a list in 2.x
5903 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5904 minverhex = 0
5905 # xrange is not present in Python 3.0 and range returns an iterator
5906 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5907 sys.exit(sys.hexversion < minverhex)"
5908 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5909 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; then :
5913 break
5915 done
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5918 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5919 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5920 if test "$am_cv_pathless_PYTHON" = none; then
5921 PYTHON=:
5922 else
5923 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5924 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if ${ac_cv_path_PYTHON+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 case $PYTHON in
5931 [\\/]* | ?:[\\/]*)
5932 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5946 done
5947 done
5948 IFS=$as_save_IFS
5951 esac
5953 PYTHON=$ac_cv_path_PYTHON
5954 if test -n "$PYTHON"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5956 $as_echo "$PYTHON" >&6; }
5957 else
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5964 am_display_PYTHON=$am_cv_pathless_PYTHON
5968 if test "$PYTHON" = :; then
5969 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5970 else
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5974 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5975 if ${am_cv_python_version+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5981 $as_echo "$am_cv_python_version" >&6; }
5982 PYTHON_VERSION=$am_cv_python_version
5986 PYTHON_PREFIX='${prefix}'
5988 PYTHON_EXEC_PREFIX='${exec_prefix}'
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5993 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5994 if ${am_cv_python_platform+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6000 $as_echo "$am_cv_python_platform" >&6; }
6001 PYTHON_PLATFORM=$am_cv_python_platform
6004 # Just factor out some code duplication.
6005 am_python_setup_sysconfig="\
6006 import sys
6007 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6008 # with python 3.x. See automake bug#10227.
6009 try:
6010 import sysconfig
6011 except ImportError:
6012 can_use_sysconfig = 0
6013 else:
6014 can_use_sysconfig = 1
6015 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6016 # <https://github.com/pypa/virtualenv/issues/118>
6017 try:
6018 from platform import python_implementation
6019 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6020 can_use_sysconfig = 0
6021 except ImportError:
6022 pass"
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6026 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6027 if ${am_cv_python_pythondir+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 if test "x$prefix" = xNONE
6031 then
6032 am_py_prefix=$ac_default_prefix
6033 else
6034 am_py_prefix=$prefix
6036 am_cv_python_pythondir=`$PYTHON -c "
6037 $am_python_setup_sysconfig
6038 if can_use_sysconfig:
6039 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6040 else:
6041 from distutils import sysconfig
6042 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6043 sys.stdout.write(sitedir)"`
6044 case $am_cv_python_pythondir in
6045 $am_py_prefix*)
6046 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6047 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6050 case $am_py_prefix in
6051 /usr|/System*) ;;
6053 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6055 esac
6057 esac
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6061 $as_echo "$am_cv_python_pythondir" >&6; }
6062 pythondir=$am_cv_python_pythondir
6066 pkgpythondir=\${pythondir}/$PACKAGE
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6070 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6071 if ${am_cv_python_pyexecdir+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 if test "x$exec_prefix" = xNONE
6075 then
6076 am_py_exec_prefix=$am_py_prefix
6077 else
6078 am_py_exec_prefix=$exec_prefix
6080 am_cv_python_pyexecdir=`$PYTHON -c "
6081 $am_python_setup_sysconfig
6082 if can_use_sysconfig:
6083 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6084 else:
6085 from distutils import sysconfig
6086 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6087 sys.stdout.write(sitedir)"`
6088 case $am_cv_python_pyexecdir in
6089 $am_py_exec_prefix*)
6090 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6091 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6094 case $am_py_exec_prefix in
6095 /usr|/System*) ;;
6097 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6099 esac
6101 esac
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6105 $as_echo "$am_cv_python_pyexecdir" >&6; }
6106 pyexecdir=$am_cv_python_pyexecdir
6110 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6118 # Check whether --enable-libpng-config was given.
6119 if test "${enable_libpng_config+set}" = set; then :
6120 enableval=$enable_libpng_config;
6123 if test "$enable_libpng_config" != "no"; then
6124 # Extract the first word of "libpng-config", so it can be a program name with args.
6125 set dummy libpng-config; ac_word=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 if test -n "$arosconfig_use_libpngconfig"; then
6132 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6145 done
6146 done
6147 IFS=$as_save_IFS
6149 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6152 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6153 if test -n "$arosconfig_use_libpngconfig"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6155 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6156 else
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 $as_echo "no" >&6; }
6163 if test "$arosconfig_use_libpngconfig" = "yes"; then
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6165 $as_echo_n "checking libpng-config library... " >&6; }
6166 libpng_incdir="`libpng-config --cflags`"
6167 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6168 libpng="`libpng-config --libs`"
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6170 $as_echo "$libpng" >&6; }
6171 else
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6174 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6175 if ${ac_cv_lib_png_png_read_png+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 ac_check_lib_save_LIBS=$LIBS
6179 LIBS="-lpng $LIBS"
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6183 /* Override any GCC internal prototype to avoid an error.
6184 Use char because int might match the return type of a GCC
6185 builtin and then its argument prototype would still apply. */
6186 #ifdef __cplusplus
6187 extern "C"
6188 #endif
6189 char png_read_png ();
6191 main ()
6193 return png_read_png ();
6195 return 0;
6197 _ACEOF
6198 if ac_fn_c_try_link "$LINENO"; then :
6199 ac_cv_lib_png_png_read_png=yes
6200 else
6201 ac_cv_lib_png_png_read_png=no
6203 rm -f core conftest.err conftest.$ac_objext \
6204 conftest$ac_exeext conftest.$ac_ext
6205 LIBS=$ac_check_lib_save_LIBS
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6208 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6209 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6210 libpng="-lpng"
6211 else
6212 libpng="no"
6215 if test "$libpng_libextra" != ""; then
6216 if test "$libpng" != "no"; then
6217 libpng_libextra="$libpng_libextra $libpng"
6221 req_avail=yes
6222 if test "$libpng" = ""; then
6223 req_avail=no
6225 if test "$libpng" = "no"; then
6226 req_avail=no
6228 if test "$req_avail" = "no"; then
6229 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6235 FOR=for
6237 IF=if
6239 TEST=test
6241 CMP=cmp
6245 # Check for some includes for the X11 HIDD and the kernel
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6248 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6249 if ${ac_cv_path_GREP+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 if test -z "$GREP"; then
6253 ac_path_GREP_found=false
6254 # Loop through the user's path and test for each of PROGNAME-LIST
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_prog in grep ggrep; do
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6263 as_fn_executable_p "$ac_path_GREP" || continue
6264 # Check for GNU ac_path_GREP and select it if it is found.
6265 # Check for GNU $ac_path_GREP
6266 case `"$ac_path_GREP" --version 2>&1` in
6267 *GNU*)
6268 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6270 ac_count=0
6271 $as_echo_n 0123456789 >"conftest.in"
6272 while :
6274 cat "conftest.in" "conftest.in" >"conftest.tmp"
6275 mv "conftest.tmp" "conftest.in"
6276 cp "conftest.in" "conftest.nl"
6277 $as_echo 'GREP' >> "conftest.nl"
6278 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6280 as_fn_arith $ac_count + 1 && ac_count=$as_val
6281 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6282 # Best one so far, save it but keep looking for a better one
6283 ac_cv_path_GREP="$ac_path_GREP"
6284 ac_path_GREP_max=$ac_count
6286 # 10*(2^10) chars as input seems more than enough
6287 test $ac_count -gt 10 && break
6288 done
6289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6290 esac
6292 $ac_path_GREP_found && break 3
6293 done
6294 done
6295 done
6296 IFS=$as_save_IFS
6297 if test -z "$ac_cv_path_GREP"; then
6298 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6300 else
6301 ac_cv_path_GREP=$GREP
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6306 $as_echo "$ac_cv_path_GREP" >&6; }
6307 GREP="$ac_cv_path_GREP"
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6311 $as_echo_n "checking for egrep... " >&6; }
6312 if ${ac_cv_path_EGREP+:} false; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6316 then ac_cv_path_EGREP="$GREP -E"
6317 else
6318 if test -z "$EGREP"; then
6319 ac_path_EGREP_found=false
6320 # Loop through the user's path and test for each of PROGNAME-LIST
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_prog in egrep; do
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6329 as_fn_executable_p "$ac_path_EGREP" || continue
6330 # Check for GNU ac_path_EGREP and select it if it is found.
6331 # Check for GNU $ac_path_EGREP
6332 case `"$ac_path_EGREP" --version 2>&1` in
6333 *GNU*)
6334 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6336 ac_count=0
6337 $as_echo_n 0123456789 >"conftest.in"
6338 while :
6340 cat "conftest.in" "conftest.in" >"conftest.tmp"
6341 mv "conftest.tmp" "conftest.in"
6342 cp "conftest.in" "conftest.nl"
6343 $as_echo 'EGREP' >> "conftest.nl"
6344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6346 as_fn_arith $ac_count + 1 && ac_count=$as_val
6347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6348 # Best one so far, save it but keep looking for a better one
6349 ac_cv_path_EGREP="$ac_path_EGREP"
6350 ac_path_EGREP_max=$ac_count
6352 # 10*(2^10) chars as input seems more than enough
6353 test $ac_count -gt 10 && break
6354 done
6355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6356 esac
6358 $ac_path_EGREP_found && break 3
6359 done
6360 done
6361 done
6362 IFS=$as_save_IFS
6363 if test -z "$ac_cv_path_EGREP"; then
6364 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6366 else
6367 ac_cv_path_EGREP=$EGREP
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6373 $as_echo "$ac_cv_path_EGREP" >&6; }
6374 EGREP="$ac_cv_path_EGREP"
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6378 $as_echo_n "checking for ANSI C header files... " >&6; }
6379 if ${ac_cv_header_stdc+:} false; then :
6380 $as_echo_n "(cached) " >&6
6381 else
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6384 #include <stdlib.h>
6385 #include <stdarg.h>
6386 #include <string.h>
6387 #include <float.h>
6390 main ()
6394 return 0;
6396 _ACEOF
6397 if ac_fn_c_try_compile "$LINENO"; then :
6398 ac_cv_header_stdc=yes
6399 else
6400 ac_cv_header_stdc=no
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 if test $ac_cv_header_stdc = yes; then
6405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408 #include <string.h>
6410 _ACEOF
6411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6412 $EGREP "memchr" >/dev/null 2>&1; then :
6414 else
6415 ac_cv_header_stdc=no
6417 rm -f conftest*
6421 if test $ac_cv_header_stdc = yes; then
6422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6425 #include <stdlib.h>
6427 _ACEOF
6428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6429 $EGREP "free" >/dev/null 2>&1; then :
6431 else
6432 ac_cv_header_stdc=no
6434 rm -f conftest*
6438 if test $ac_cv_header_stdc = yes; then
6439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6440 if test "$cross_compiling" = yes; then :
6442 else
6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6445 #include <ctype.h>
6446 #include <stdlib.h>
6447 #if ((' ' & 0x0FF) == 0x020)
6448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6450 #else
6451 # define ISLOWER(c) \
6452 (('a' <= (c) && (c) <= 'i') \
6453 || ('j' <= (c) && (c) <= 'r') \
6454 || ('s' <= (c) && (c) <= 'z'))
6455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6456 #endif
6458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6460 main ()
6462 int i;
6463 for (i = 0; i < 256; i++)
6464 if (XOR (islower (i), ISLOWER (i))
6465 || toupper (i) != TOUPPER (i))
6466 return 2;
6467 return 0;
6469 _ACEOF
6470 if ac_fn_c_try_run "$LINENO"; then :
6472 else
6473 ac_cv_header_stdc=no
6475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6476 conftest.$ac_objext conftest.beam conftest.$ac_ext
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6482 $as_echo "$ac_cv_header_stdc" >&6; }
6483 if test $ac_cv_header_stdc = yes; then
6485 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6489 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6490 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6491 inttypes.h stdint.h unistd.h
6492 do :
6493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6494 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6496 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6497 cat >>confdefs.h <<_ACEOF
6498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6499 _ACEOF
6503 done
6506 for ac_header in sys/ipc.h sys/shm.h \
6507 sys/mmap.h sys/mman.h sysexits.h \
6508 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6510 do :
6511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6512 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6513 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6514 cat >>confdefs.h <<_ACEOF
6515 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6516 _ACEOF
6520 done
6523 for ac_header in sys/mount.h
6524 do :
6525 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6527 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6528 cat >>confdefs.h <<_ACEOF
6529 #define HAVE_SYS_MOUNT_H 1
6530 _ACEOF
6534 done
6536 for ac_header in GL/glx.h
6537 do :
6538 ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
6539 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
6540 cat >>confdefs.h <<_ACEOF
6541 #define HAVE_GL_GLX_H 1
6542 _ACEOF
6543 host_feature_glx=yes
6544 else
6545 host_feature_glx=no
6548 done
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
6552 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6556 #define __unused __attribute__((unused))
6557 #include <sys/stat.h>
6560 main ()
6564 return 0;
6566 _ACEOF
6567 if ac_fn_c_try_compile "$LINENO"; then :
6568 host_stat_h__unused_used=no
6569 else
6570 host_stat_h__unused_used=yes
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
6574 $as_echo "$host_stat_h__unused_used" >&6; }
6576 ac_header_dirent=no
6577 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6578 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6580 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6581 if eval \${$as_ac_Header+:} false; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6586 #include <sys/types.h>
6587 #include <$ac_hdr>
6590 main ()
6592 if ((DIR *) 0)
6593 return 0;
6595 return 0;
6597 _ACEOF
6598 if ac_fn_c_try_compile "$LINENO"; then :
6599 eval "$as_ac_Header=yes"
6600 else
6601 eval "$as_ac_Header=no"
6603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 eval ac_res=\$$as_ac_Header
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6607 $as_echo "$ac_res" >&6; }
6608 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6609 cat >>confdefs.h <<_ACEOF
6610 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6611 _ACEOF
6613 ac_header_dirent=$ac_hdr; break
6616 done
6617 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6618 if test $ac_header_dirent = dirent.h; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6620 $as_echo_n "checking for library containing opendir... " >&6; }
6621 if ${ac_cv_search_opendir+:} false; then :
6622 $as_echo_n "(cached) " >&6
6623 else
6624 ac_func_search_save_LIBS=$LIBS
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6628 /* Override any GCC internal prototype to avoid an error.
6629 Use char because int might match the return type of a GCC
6630 builtin and then its argument prototype would still apply. */
6631 #ifdef __cplusplus
6632 extern "C"
6633 #endif
6634 char opendir ();
6636 main ()
6638 return opendir ();
6640 return 0;
6642 _ACEOF
6643 for ac_lib in '' dir; do
6644 if test -z "$ac_lib"; then
6645 ac_res="none required"
6646 else
6647 ac_res=-l$ac_lib
6648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6650 if ac_fn_c_try_link "$LINENO"; then :
6651 ac_cv_search_opendir=$ac_res
6653 rm -f core conftest.err conftest.$ac_objext \
6654 conftest$ac_exeext
6655 if ${ac_cv_search_opendir+:} false; then :
6656 break
6658 done
6659 if ${ac_cv_search_opendir+:} false; then :
6661 else
6662 ac_cv_search_opendir=no
6664 rm conftest.$ac_ext
6665 LIBS=$ac_func_search_save_LIBS
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6668 $as_echo "$ac_cv_search_opendir" >&6; }
6669 ac_res=$ac_cv_search_opendir
6670 if test "$ac_res" != no; then :
6671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6675 else
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6677 $as_echo_n "checking for library containing opendir... " >&6; }
6678 if ${ac_cv_search_opendir+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 ac_func_search_save_LIBS=$LIBS
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6685 /* Override any GCC internal prototype to avoid an error.
6686 Use char because int might match the return type of a GCC
6687 builtin and then its argument prototype would still apply. */
6688 #ifdef __cplusplus
6689 extern "C"
6690 #endif
6691 char opendir ();
6693 main ()
6695 return opendir ();
6697 return 0;
6699 _ACEOF
6700 for ac_lib in '' x; do
6701 if test -z "$ac_lib"; then
6702 ac_res="none required"
6703 else
6704 ac_res=-l$ac_lib
6705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6707 if ac_fn_c_try_link "$LINENO"; then :
6708 ac_cv_search_opendir=$ac_res
6710 rm -f core conftest.err conftest.$ac_objext \
6711 conftest$ac_exeext
6712 if ${ac_cv_search_opendir+:} false; then :
6713 break
6715 done
6716 if ${ac_cv_search_opendir+:} false; then :
6718 else
6719 ac_cv_search_opendir=no
6721 rm conftest.$ac_ext
6722 LIBS=$ac_func_search_save_LIBS
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6725 $as_echo "$ac_cv_search_opendir" >&6; }
6726 ac_res=$ac_cv_search_opendir
6727 if test "$ac_res" != no; then :
6728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6735 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6736 if ${ac_cv_header_stat_broken+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 #include <sys/types.h>
6742 #include <sys/stat.h>
6744 #if defined S_ISBLK && defined S_IFDIR
6745 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6746 #endif
6748 #if defined S_ISBLK && defined S_IFCHR
6749 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6750 #endif
6752 #if defined S_ISLNK && defined S_IFREG
6753 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6754 #endif
6756 #if defined S_ISSOCK && defined S_IFREG
6757 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6758 #endif
6760 _ACEOF
6761 if ac_fn_c_try_compile "$LINENO"; then :
6762 ac_cv_header_stat_broken=no
6763 else
6764 ac_cv_header_stat_broken=yes
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6769 $as_echo "$ac_cv_header_stat_broken" >&6; }
6770 if test $ac_cv_header_stat_broken = yes; then
6772 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6777 $as_echo_n "checking for ANSI C header files... " >&6; }
6778 if ${ac_cv_header_stdc+:} false; then :
6779 $as_echo_n "(cached) " >&6
6780 else
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6783 #include <stdlib.h>
6784 #include <stdarg.h>
6785 #include <string.h>
6786 #include <float.h>
6789 main ()
6793 return 0;
6795 _ACEOF
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797 ac_cv_header_stdc=yes
6798 else
6799 ac_cv_header_stdc=no
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 if test $ac_cv_header_stdc = yes; then
6804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807 #include <string.h>
6809 _ACEOF
6810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6811 $EGREP "memchr" >/dev/null 2>&1; then :
6813 else
6814 ac_cv_header_stdc=no
6816 rm -f conftest*
6820 if test $ac_cv_header_stdc = yes; then
6821 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6824 #include <stdlib.h>
6826 _ACEOF
6827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6828 $EGREP "free" >/dev/null 2>&1; then :
6830 else
6831 ac_cv_header_stdc=no
6833 rm -f conftest*
6837 if test $ac_cv_header_stdc = yes; then
6838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6839 if test "$cross_compiling" = yes; then :
6841 else
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6844 #include <ctype.h>
6845 #include <stdlib.h>
6846 #if ((' ' & 0x0FF) == 0x020)
6847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6849 #else
6850 # define ISLOWER(c) \
6851 (('a' <= (c) && (c) <= 'i') \
6852 || ('j' <= (c) && (c) <= 'r') \
6853 || ('s' <= (c) && (c) <= 'z'))
6854 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6855 #endif
6857 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6859 main ()
6861 int i;
6862 for (i = 0; i < 256; i++)
6863 if (XOR (islower (i), ISLOWER (i))
6864 || toupper (i) != TOUPPER (i))
6865 return 2;
6866 return 0;
6868 _ACEOF
6869 if ac_fn_c_try_run "$LINENO"; then :
6871 else
6872 ac_cv_header_stdc=no
6874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6875 conftest.$ac_objext conftest.beam conftest.$ac_ext
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6881 $as_echo "$ac_cv_header_stdc" >&6; }
6882 if test $ac_cv_header_stdc = yes; then
6884 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6889 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6890 if ${ac_cv_header_sys_wait_h+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6895 #include <sys/types.h>
6896 #include <sys/wait.h>
6897 #ifndef WEXITSTATUS
6898 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6899 #endif
6900 #ifndef WIFEXITED
6901 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6902 #endif
6905 main ()
6907 int s;
6908 wait (&s);
6909 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6911 return 0;
6913 _ACEOF
6914 if ac_fn_c_try_compile "$LINENO"; then :
6915 ac_cv_header_sys_wait_h=yes
6916 else
6917 ac_cv_header_sys_wait_h=no
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6922 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6923 if test $ac_cv_header_sys_wait_h = yes; then
6925 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6930 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6931 if ${ac_cv_header_time+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6936 #include <sys/types.h>
6937 #include <sys/time.h>
6938 #include <time.h>
6941 main ()
6943 if ((struct tm *) 0)
6944 return 0;
6946 return 0;
6948 _ACEOF
6949 if ac_fn_c_try_compile "$LINENO"; then :
6950 ac_cv_header_time=yes
6951 else
6952 ac_cv_header_time=no
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6957 $as_echo "$ac_cv_header_time" >&6; }
6958 if test $ac_cv_header_time = yes; then
6960 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6964 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6965 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6967 cat >>confdefs.h <<_ACEOF
6968 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6969 _ACEOF
6972 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6977 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6978 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6980 cat >>confdefs.h <<_ACEOF
6981 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6982 _ACEOF
6985 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6987 else
6988 case " $LIBOBJS " in
6989 *" fileblocks.$ac_objext "* ) ;;
6990 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6992 esac
6997 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6998 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7000 cat >>confdefs.h <<_ACEOF
7001 #define HAVE_STRUCT_STAT_ST_RDEV 1
7002 _ACEOF
7005 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7011 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7012 if ${ac_cv_struct_tm+:} false; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7017 #include <sys/types.h>
7018 #include <time.h>
7021 main ()
7023 struct tm tm;
7024 int *p = &tm.tm_sec;
7025 return !p;
7027 return 0;
7029 _ACEOF
7030 if ac_fn_c_try_compile "$LINENO"; then :
7031 ac_cv_struct_tm=time.h
7032 else
7033 ac_cv_struct_tm=sys/time.h
7035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7038 $as_echo "$ac_cv_struct_tm" >&6; }
7039 if test $ac_cv_struct_tm = sys/time.h; then
7041 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7045 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7046 #include <$ac_cv_struct_tm>
7049 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7051 cat >>confdefs.h <<_ACEOF
7052 #define HAVE_STRUCT_TM_TM_ZONE 1
7053 _ACEOF
7058 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7060 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7062 else
7063 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7065 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7066 ac_have_decl=1
7067 else
7068 ac_have_decl=0
7071 cat >>confdefs.h <<_ACEOF
7072 #define HAVE_DECL_TZNAME $ac_have_decl
7073 _ACEOF
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7076 $as_echo_n "checking for tzname... " >&6; }
7077 if ${ac_cv_var_tzname+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7082 #include <time.h>
7083 #if !HAVE_DECL_TZNAME
7084 extern char *tzname[];
7085 #endif
7088 main ()
7090 return tzname[0][0];
7092 return 0;
7094 _ACEOF
7095 if ac_fn_c_try_link "$LINENO"; then :
7096 ac_cv_var_tzname=yes
7097 else
7098 ac_cv_var_tzname=no
7100 rm -f core conftest.err conftest.$ac_objext \
7101 conftest$ac_exeext conftest.$ac_ext
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7104 $as_echo "$ac_cv_var_tzname" >&6; }
7105 if test $ac_cv_var_tzname = yes; then
7107 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7112 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7113 if test "x$ac_cv_type_off_t" = xyes; then :
7115 else
7117 cat >>confdefs.h <<_ACEOF
7118 #define off_t long int
7119 _ACEOF
7123 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7124 if test "x$ac_cv_type_pid_t" = xyes; then :
7126 else
7128 cat >>confdefs.h <<_ACEOF
7129 #define pid_t int
7130 _ACEOF
7134 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7135 if test "x$ac_cv_type_size_t" = xyes; then :
7137 else
7139 cat >>confdefs.h <<_ACEOF
7140 #define size_t unsigned int
7141 _ACEOF
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7146 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7147 if ${ac_cv_type_uid_t+:} false; then :
7148 $as_echo_n "(cached) " >&6
7149 else
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 #include <sys/types.h>
7154 _ACEOF
7155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7156 $EGREP "uid_t" >/dev/null 2>&1; then :
7157 ac_cv_type_uid_t=yes
7158 else
7159 ac_cv_type_uid_t=no
7161 rm -f conftest*
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7165 $as_echo "$ac_cv_type_uid_t" >&6; }
7166 if test $ac_cv_type_uid_t = no; then
7168 $as_echo "#define uid_t int" >>confdefs.h
7171 $as_echo "#define gid_t int" >>confdefs.h
7176 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7177 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7179 cat >>confdefs.h <<_ACEOF
7180 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7181 _ACEOF
7187 # Look for some functions
7188 for ac_func in getpagesize kqueue statfs statvfs \
7189 clone kse_create rfork_thread thr_create sa_register \
7190 getcontext makecontext setcontext sigaltstack swapcontext
7191 do :
7192 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7193 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7194 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7195 cat >>confdefs.h <<_ACEOF
7196 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7197 _ACEOF
7200 done
7206 for ac_header in $ac_header_list
7207 do :
7208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7209 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7211 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7212 cat >>confdefs.h <<_ACEOF
7213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7214 _ACEOF
7218 done
7227 for ac_func in getpagesize
7228 do :
7229 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7230 if test "x$ac_cv_func_getpagesize" = xyes; then :
7231 cat >>confdefs.h <<_ACEOF
7232 #define HAVE_GETPAGESIZE 1
7233 _ACEOF
7236 done
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7239 $as_echo_n "checking for working mmap... " >&6; }
7240 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 if test "$cross_compiling" = yes; then :
7244 ac_cv_func_mmap_fixed_mapped=no
7245 else
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 $ac_includes_default
7249 /* malloc might have been renamed as rpl_malloc. */
7250 #undef malloc
7252 /* Thanks to Mike Haertel and Jim Avera for this test.
7253 Here is a matrix of mmap possibilities:
7254 mmap private not fixed
7255 mmap private fixed at somewhere currently unmapped
7256 mmap private fixed at somewhere already mapped
7257 mmap shared not fixed
7258 mmap shared fixed at somewhere currently unmapped
7259 mmap shared fixed at somewhere already mapped
7260 For private mappings, we should verify that changes cannot be read()
7261 back from the file, nor mmap's back from the file at a different
7262 address. (There have been systems where private was not correctly
7263 implemented like the infamous i386 svr4.0, and systems where the
7264 VM page cache was not coherent with the file system buffer cache
7265 like early versions of FreeBSD and possibly contemporary NetBSD.)
7266 For shared mappings, we should conversely verify that changes get
7267 propagated back to all the places they're supposed to be.
7269 Grep wants private fixed already mapped.
7270 The main things grep needs to know about mmap are:
7271 * does it exist and is it safe to write into the mmap'd area
7272 * how to use it (BSD variants) */
7274 #include <fcntl.h>
7275 #include <sys/mman.h>
7277 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7278 char *malloc ();
7279 #endif
7281 /* This mess was copied from the GNU getpagesize.h. */
7282 #ifndef HAVE_GETPAGESIZE
7283 # ifdef _SC_PAGESIZE
7284 # define getpagesize() sysconf(_SC_PAGESIZE)
7285 # else /* no _SC_PAGESIZE */
7286 # ifdef HAVE_SYS_PARAM_H
7287 # include <sys/param.h>
7288 # ifdef EXEC_PAGESIZE
7289 # define getpagesize() EXEC_PAGESIZE
7290 # else /* no EXEC_PAGESIZE */
7291 # ifdef NBPG
7292 # define getpagesize() NBPG * CLSIZE
7293 # ifndef CLSIZE
7294 # define CLSIZE 1
7295 # endif /* no CLSIZE */
7296 # else /* no NBPG */
7297 # ifdef NBPC
7298 # define getpagesize() NBPC
7299 # else /* no NBPC */
7300 # ifdef PAGESIZE
7301 # define getpagesize() PAGESIZE
7302 # endif /* PAGESIZE */
7303 # endif /* no NBPC */
7304 # endif /* no NBPG */
7305 # endif /* no EXEC_PAGESIZE */
7306 # else /* no HAVE_SYS_PARAM_H */
7307 # define getpagesize() 8192 /* punt totally */
7308 # endif /* no HAVE_SYS_PARAM_H */
7309 # endif /* no _SC_PAGESIZE */
7311 #endif /* no HAVE_GETPAGESIZE */
7314 main ()
7316 char *data, *data2, *data3;
7317 const char *cdata2;
7318 int i, pagesize;
7319 int fd, fd2;
7321 pagesize = getpagesize ();
7323 /* First, make a file with some known garbage in it. */
7324 data = (char *) malloc (pagesize);
7325 if (!data)
7326 return 1;
7327 for (i = 0; i < pagesize; ++i)
7328 *(data + i) = rand ();
7329 umask (0);
7330 fd = creat ("conftest.mmap", 0600);
7331 if (fd < 0)
7332 return 2;
7333 if (write (fd, data, pagesize) != pagesize)
7334 return 3;
7335 close (fd);
7337 /* Next, check that the tail of a page is zero-filled. File must have
7338 non-zero length, otherwise we risk SIGBUS for entire page. */
7339 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7340 if (fd2 < 0)
7341 return 4;
7342 cdata2 = "";
7343 if (write (fd2, cdata2, 1) != 1)
7344 return 5;
7345 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7346 if (data2 == MAP_FAILED)
7347 return 6;
7348 for (i = 0; i < pagesize; ++i)
7349 if (*(data2 + i))
7350 return 7;
7351 close (fd2);
7352 if (munmap (data2, pagesize))
7353 return 8;
7355 /* Next, try to mmap the file at a fixed address which already has
7356 something else allocated at it. If we can, also make sure that
7357 we see the same garbage. */
7358 fd = open ("conftest.mmap", O_RDWR);
7359 if (fd < 0)
7360 return 9;
7361 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7362 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7363 return 10;
7364 for (i = 0; i < pagesize; ++i)
7365 if (*(data + i) != *(data2 + i))
7366 return 11;
7368 /* Finally, make sure that changes to the mapped area do not
7369 percolate back to the file as seen by read(). (This is a bug on
7370 some variants of i386 svr4.0.) */
7371 for (i = 0; i < pagesize; ++i)
7372 *(data2 + i) = *(data2 + i) + 1;
7373 data3 = (char *) malloc (pagesize);
7374 if (!data3)
7375 return 12;
7376 if (read (fd, data3, pagesize) != pagesize)
7377 return 13;
7378 for (i = 0; i < pagesize; ++i)
7379 if (*(data + i) != *(data3 + i))
7380 return 14;
7381 close (fd);
7382 free (data);
7383 free (data3);
7384 return 0;
7386 _ACEOF
7387 if ac_fn_c_try_run "$LINENO"; then :
7388 ac_cv_func_mmap_fixed_mapped=yes
7389 else
7390 ac_cv_func_mmap_fixed_mapped=no
7392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7393 conftest.$ac_objext conftest.beam conftest.$ac_ext
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7398 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7399 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7401 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7404 rm -f conftest.mmap conftest.txt
7407 #-----------------------------------------------------------------------------
7410 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7411 # it switched on by default, and we use the host compiler, so it compiles AROS
7412 # code with this enabled resulting in link failures as we don't have support
7413 # for it.
7415 # We use two methods to disable it. For the host compiler (used to compile
7416 # some hosted modules), we test to see if the compiler supports stack
7417 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7418 # work on all platforms.
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7422 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7423 save_cflags="$CFLAGS"
7424 CFLAGS="$CFLAGS -fno-stack-protector"
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7429 main ()
7433 return 0;
7435 _ACEOF
7436 if ac_fn_c_try_compile "$LINENO"; then :
7437 use_no_stack_protector="yes"
7438 else
7439 use_no_stack_protector="no"
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7443 $as_echo "$use_no_stack_protector" >&6; }
7444 if test "x-$use_no_stack_protector" = "x-yes" ; then
7445 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7447 CFLAGS="$save_cflags"
7449 #-----------------------------------------------------------------------------
7451 # Disable pointer-signedness warnings if the compiler recognises the option
7452 # (this only works for the host compiler at the moment)
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7455 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7456 save_cflags="$CFLAGS"
7457 CFLAGS="$CFLAGS -Wno-pointer-sign"
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7462 main ()
7466 return 0;
7468 _ACEOF
7469 if ac_fn_c_try_compile "$LINENO"; then :
7470 use_no_sign_warning="yes"
7471 else
7472 use_no_sign_warning="no"
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7476 $as_echo "$use_no_sign_warning" >&6; }
7477 if test "x-$use_no_sign_warning" = "x-yes" ; then
7478 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7480 CFLAGS="$save_cflags"
7482 #-----------------------------------------------------------------------------
7484 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7487 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7488 save_cflags="$CFLAGS"
7489 CFLAGS="$CFLAGS -fgnu89-inline"
7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7494 main ()
7498 return 0;
7500 _ACEOF
7501 if ac_fn_c_try_compile "$LINENO"; then :
7502 use_gnu89_inline="yes"
7503 else
7504 use_gnu89_inline="no"
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7508 $as_echo "$use_gnu89_inline" >&6; }
7509 if test "x-$use_gnu89_inline" = "x-yes" ; then
7510 gnu89_inline="-fgnu89-inline"
7512 CFLAGS="$save_cflags"
7515 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7516 # On GCC >= 4.0 -iquote should be used
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7519 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7520 CFLAGS="$CFLAGS -iquote."
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7525 main ()
7529 return 0;
7531 _ACEOF
7532 if ac_fn_c_try_compile "$LINENO"; then :
7533 has_iquote="yes"
7534 else
7535 has_iquote="no"
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7539 $as_echo "$has_iquote" >&6; }
7540 if test "x-$has_iquote" = "x-yes" ; then
7541 host_cflags_iquote=-iquote
7542 host_cflags_iquote_end=
7543 else
7544 host_cflags_iquote=-I
7545 host_cflags_iquote_end=-I-
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7549 $as_echo "$as_me: Performing target configuration..." >&6;}
7552 test_kernel_cc=no
7554 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7555 export_newline="
7558 aros_elf_translate=
7559 aros_warn_flags=
7560 aros_isa_extra=
7561 aros_isa_flags=
7562 aros_config_cppflags=
7563 aros_config_cflags=
7564 aros_config_cxxflags=
7565 aros_config_aflags="$""(WARN_ALL) -x assembler-with-cpp -c"
7566 aros_config_ldflags=""
7568 aros_shared_default=yes
7570 aros_shared_cflags="-fPIC"
7571 aros_shared_aflags=""
7572 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7573 aros_kernel_ldflags="-Wl,-rpath,./lib"
7575 aros_kernel_ar_flags="cr"
7576 aros_target_ar_flags="cr"
7577 aros_target_nm_flags="-C -ul"
7578 aros_target_strip_flags="--strip-unneeded -R.comment"
7580 aros_compiler_libs=
7581 aros_arch_libs=
7583 aros_target_genmap="-Wl,-Map -Xlinker"
7585 # Native flavour stuff
7586 aros_serial_debug="0"
7588 # Palm native flavour stuff
7589 aros_palm_debug_hack="0"
7591 # Unix flavour stuff
7592 aros_nesting_supervisor="0"
7594 # Collect-aros stuff: "-ius" to ignore undefined symbols
7595 ignore_undefined_symbols=""
7597 # Check for X11 by default
7598 need_x11="auto"
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7601 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7603 # Check whether --with-toolchain was given.
7604 if test "${with_toolchain+set}" = set; then :
7605 withval=$with_toolchain; aros_toolchain="$withval"
7606 else
7607 aros_toolchain="$default_toolchain_family"
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7611 $as_echo "$aros_toolchain" >&6; }
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7615 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7616 # Check whether --enable-lto was given.
7617 if test "${enable_lto+set}" = set; then :
7618 enableval=$enable_lto; aros_config_lto="$enableval"
7619 else
7620 aros_config_lto="no"
7623 if test "$aros_config_lto" != "no"; then
7624 aros_config_lto="yes"
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7627 $as_echo "$aros_config_lto" >&6; }
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7630 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7631 # Check whether --enable-coverage was given.
7632 if test "${enable_coverage+set}" = set; then :
7633 enableval=$enable_coverage; aros_config_coverage="$enableval"
7634 else
7635 aros_config_coverage="no"
7638 if test "$aros_config_coverage" != "no"; then
7639 aros_config_coverage="yes"
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7642 $as_echo "$aros_config_coverage" >&6; }
7644 use_ld_wrapper=yes
7646 case "$aros_toolchain" in
7647 *llvm*)
7648 toolchain_c_compiler="clang"
7649 toolchain_cxx_compiler="clang++"
7650 toolchain_cpp_preprocessor="clang -E"
7651 toolchain_ld="ld.lld"
7652 aros_ld="ld"
7653 toolchain_as="llvm-as"
7654 toolchain_ar="llvm-ar"
7655 toolchain_ranlib="llvm-ranlib"
7656 toolchain_nm="llvm-nm"
7657 toolchain_strip="true"
7658 toolchain_objcopy="llvm-objcopy"
7659 toolchain_objdump="llvm-objdump"
7661 *gnu*)
7662 toolchain_c_compiler="gcc"
7663 toolchain_cxx_compiler="g++"
7664 toolchain_cpp_preprocessor="gcc -E"
7665 toolchain_as="as"
7666 aros_ld="ld"
7667 if test "$aros_config_lto" != "yes"; then
7668 toolchain_ld="ld"
7669 toolchain_ar="ar"
7670 toolchain_ranlib="ranlib"
7671 toolchain_nm="nm"
7672 else
7673 toolchain_ld="ld.bfd"
7674 toolchain_ar="gcc-ar"
7675 toolchain_ranlib="gcc-ranlib"
7676 toolchain_nm="gcc-nm"
7678 toolchain_strip="strip"
7679 toolchain_objcopy="objcopy"
7680 toolchain_objdump="objdump"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7684 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7685 toolchain_c_compiler="cc"
7686 toolchain_cxx_compiler="c++"
7687 toolchain_cpp_preprocessor="cpp"
7688 toolchain_ld="ld"
7689 aros_ld="ld"
7690 toolchain_as="as"
7691 toolchain_ar="ar"
7692 toolchain_ranlib="ranlib"
7693 toolchain_nm="nm"
7694 toolchain_strip="strip"
7695 toolchain_objcopy="objcopy"
7696 toolchain_objdump="objdump"
7698 esac
7700 #-----------------------------------------------------------------------------
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7703 $as_echo_n "checking which type of build to do... " >&6; }
7704 # Check whether --enable-build_type was given.
7705 if test "${enable_build_type+set}" = set; then :
7706 enableval=$enable_build_type; build_type=$enableval
7707 else
7708 build_type="personal"
7712 if test "$build_type" = "nightly"; then
7713 build_type_string="NIGHTLY"
7714 elif test "$build_type" = "snapshot"; then
7715 build_type_string="SNAPSHOT"
7716 elif test "$build_type" = "milestone"; then
7717 build_type_string="MILESTONE"
7718 elif test "$build_type" = "release"; then
7719 build_type_string="RELEASE"
7720 else
7721 build_type_string="PERSONAL"
7722 build_type="personal"
7725 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7728 $as_echo "$build_type" >&6; }
7730 #-----------------------------------------------------------------------------
7731 all_debug_types="messages stack modules mungwall symbols"
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7734 $as_echo_n "checking which debug types to enable... " >&6; }
7735 # Check whether --enable-debug was given.
7736 if test "${enable_debug+set}" = set; then :
7737 enableval=$enable_debug; debug="$enableval"
7738 else
7739 debug=""
7743 if test "$debug" = "" -o "$debug" = "no"; then
7744 debug="none"
7745 elif test "$debug" = "yes"; then
7746 debug="all"
7749 if test "$debug" = "all" ; then
7750 debug="messages stack modules symbols"
7751 for d in $all_debug_types; do
7752 export aros_${d}_debug="1"
7753 done
7754 else
7755 for d in $all_debug_types; do
7756 export aros_${d}_debug="0"
7757 done
7760 if test "$debug" != "none"; then
7761 debug=`echo $debug | sed s/,/\ /g`
7762 for d in $debug; do
7763 found="0"
7764 for d2 in $all_debug_types; do
7765 if test "$d2" = "$d"; then
7766 found="1"
7767 break
7769 done
7770 if test "$found" = "0"; then
7771 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7773 export aros_${d}_debug="1"
7774 done
7775 aros_debug="yes"
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7778 $as_echo "$debug" >&6; }
7780 if test "$aros_messages_debug" = "1"; then
7781 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7782 else
7783 aros_messages_debug=""
7785 if test "$aros_symbols_debug" = "1"; then
7786 aros_symbols_debug="-g"
7787 else
7788 aros_symbols_debug=""
7791 # These are the flags to pass when compiling debugged programs
7792 aros_debug_cppflags="$aros_messages_debug"
7793 aros_debug_cflags="$aros_symbols_debug"
7794 aros_debug_cxxflags=
7795 aros_debug_aflags=""
7796 aros_debug_ldflags="$aros_symbols_debug"
7798 #-----------------------------------------------------------------------------
7799 # Checking for distcc and ccache.
7801 # Always apply the transforms in this particular order. Basically you should
7802 # always run 'ccache distcc compiler' in that order for the best performance.
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7805 $as_echo_n "checking whether to enable distcc... " >&6; }
7806 # Check whether --enable-distcc was given.
7807 if test "${enable_distcc+set}" = set; then :
7808 enableval=$enable_distcc; distcc="$enableval"
7809 else
7810 distcc="no"
7813 if test "$distcc" != "" -a "$distcc" != "no"; then
7814 # AC_CHECK_PROG will print out the result in this case
7815 # Extract the first word of "distcc", so it can be a program name with args.
7816 set dummy distcc; ac_word=$2
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818 $as_echo_n "checking for $ac_word... " >&6; }
7819 if ${ac_cv_path_DISTCC+:} false; then :
7820 $as_echo_n "(cached) " >&6
7821 else
7822 case $DISTCC in
7823 [\\/]* | ?:[\\/]*)
7824 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7838 done
7839 done
7840 IFS=$as_save_IFS
7842 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7844 esac
7846 DISTCC=$ac_cv_path_DISTCC
7847 if test -n "$DISTCC"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7849 $as_echo "$DISTCC" >&6; }
7850 else
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7862 $as_echo_n "checking whether to enable ccache... " >&6; }
7863 # Check whether --enable-ccache was given.
7864 if test "${enable_ccache+set}" = set; then :
7865 enableval=$enable_ccache; ccache="$enableval"
7866 else
7867 ccache="no"
7870 if test "$ccache" != "" -a "$ccache" != "no"; then
7871 # AC_CHECK_PROG will print out the result in this case
7872 # Extract the first word of "ccache", so it can be a program name with args.
7873 set dummy ccache; ac_word=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if ${ac_cv_prog_CCACHE+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 if test -n "$CCACHE"; then
7880 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_CCACHE="ccache"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7893 done
7894 done
7895 IFS=$as_save_IFS
7899 CCACHE=$ac_cv_prog_CCACHE
7900 if test -n "$CCACHE"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7902 $as_echo "$CCACHE" >&6; }
7903 else
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7909 else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7914 #-----------------------------------------------------------------------------
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7916 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7918 # Check whether --with-kernel-gcc-version was given.
7919 if test "${with_kernel_gcc_version+set}" = set; then :
7920 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7921 else
7922 kernel_tool_version=""
7925 if test "$kernel_tool_version" != "" ; then
7926 msg_result=$kernel_tool_version
7927 else
7928 msg_result="default"
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7931 $as_echo "$msg_result" >&6; }
7933 #-----------------------------------------------------------------------------
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7935 $as_echo_n "checking what optimization flags to use... " >&6; }
7937 # Check whether --with-optimization was given.
7938 if test "${with_optimization+set}" = set; then :
7939 withval=$with_optimization; optimization_level="$withval"
7940 else
7941 optimization_level="unknown"
7944 if test "$optimization_level" = "unknown"; then
7945 optimization="default"
7946 if test "$debug" != "none"; then
7947 optimization_level="-O0"
7948 else
7949 optimization_level="-O2"
7951 else
7952 optimization="$optimization_level"
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7955 $as_echo "$optimization" >&6; }
7957 paranoia_default=yes
7958 #-----------------------------------------------------------------------------
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7960 $as_echo_n "checking which paranoia flags to use... " >&6; }
7962 # Check whether --with-paranoia was given.
7963 if test "${with_paranoia+set}" = set; then :
7964 withval=$with_paranoia; paranoia_flags="$withval"
7965 else
7966 paranoia_flags="$paranoia_default"
7969 if test "$paranoia_flags" = "no"; then
7970 paranoia_flags="$""(WARN_ALL) -Werror-implicit-function-declaration"
7971 msg_result="none"
7972 else
7973 if test "$paranoia_flags" = "yes"; then
7974 paranoia_flags="$""(WARN_ALL) $""(WARN_ERROR)"
7976 msg_result="$paranoia_flags"
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7979 $as_echo "$msg_result" >&6; }
7980 aros_warn_flags="$aros_warn_flags $paranoia_flags"
7982 #-----------------------------------------------------------------------------
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7984 $as_echo_n "checking what target variant to enable... " >&6; }
7985 # Check whether --enable-target_variant was given.
7986 if test "${enable_target_variant+set}" = set; then :
7987 enableval=$enable_target_variant; target_variant=$enableval
7988 else
7989 target_variant=""
7992 if test "$target_variant" = ""; then
7993 aros_target_variant=""
7994 aros_target_suffix=""
7995 enableval="none"
7996 else
7997 aros_target_variant="$target_variant"
7998 aros_target_suffix="-$target_variant"
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8001 $as_echo "$enableval" >&6; }
8003 #-----------------------------------------------------------------------------
8004 # Target-specific defaults. You can override then on a per-target basis.
8006 # Bootloader name. Currently used by PC target.
8007 target_bootloader="none"
8008 PLATFORM_EXECSMP=
8009 ENABLE_EXECSMP=
8011 #-----------------------------------------------------------------------------
8012 # Additional options for some specific targets
8014 case "$aros_target_variant" in
8015 ios)
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8017 $as_echo_n "checking XCode path... " >&6; }
8019 # Check whether --with-xcode was given.
8020 if test "${with_xcode+set}" = set; then :
8021 withval=$with_xcode; aros_xcode_path="$withval"
8022 else
8023 aros_xcode_path="/Developer"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8027 $as_echo "$aros_xcode_path" >&6; }
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8030 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8032 # Check whether --with-sdk-version was given.
8033 if test "${with_sdk_version+set}" = set; then :
8034 withval=$with_sdk_version; aros_sdk_version="$withval"
8035 else
8036 aros_sdk_version="4.1"
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8040 $as_echo "$aros_sdk_version" >&6; }
8044 "android")
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8046 $as_echo_n "checking Android SDK path... " >&6; }
8048 # Check whether --with-sdk was given.
8049 if test "${with_sdk+set}" = set; then :
8050 withval=$with_sdk; aros_android_sdk="$withval"
8051 else
8052 aros_android_sdk=$default_android_sdk
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8056 $as_echo "$aros_android_sdk" >&6; }
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8059 $as_echo_n "checking Android NDK path... " >&6; }
8061 # Check whether --with-ndk was given.
8062 if test "${with_ndk+set}" = set; then :
8063 withval=$with_ndk; aros_android_ndk="$withval"
8064 else
8065 aros_android_ndk="none"
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8069 $as_echo "$aros_android_ndk" >&6; }
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8072 $as_echo_n "checking what Android SDK version to use... " >&6; }
8074 # Check whether --with-sdk-version was given.
8075 if test "${with_sdk_version+set}" = set; then :
8076 withval=$with_sdk_version; aros_sdk_version="$withval"
8077 else
8078 aros_sdk_version="12"
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8082 $as_echo "$aros_sdk_version" >&6; }
8084 aros_android_level=android-$aros_sdk_version
8085 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8086 echo "Platform $aros_android_level is not installed in your SDK"
8087 echo "Use --with-sdk-version=<API level number> to select another platform version"
8088 echo "You can check what plaform versions are installed in your SDK"
8089 echo "by examining contents of $aros_android_sdk/platforms directory"
8090 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8093 export PATH="$aros_android_sdk/tools:$PATH"
8094 # Extract the first word of "$android_tool", so it can be a program name with args.
8095 set dummy $android_tool; ac_word=$2
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097 $as_echo_n "checking for $ac_word... " >&6; }
8098 if ${ac_cv_path_android_tool+:} false; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 case $android_tool in
8102 [\\/]* | ?:[\\/]*)
8103 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 for as_dir in $PATH
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 break 2
8117 done
8118 done
8119 IFS=$as_save_IFS
8122 esac
8124 android_tool=$ac_cv_path_android_tool
8125 if test -n "$android_tool"; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8127 $as_echo "$android_tool" >&6; }
8128 else
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }
8134 req_avail=yes
8135 if test "$android_tool" = ""; then
8136 req_avail=no
8138 if test "$android_tool" = "no"; then
8139 req_avail=no
8141 if test "$req_avail" = "no"; then
8142 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8145 if test "$aros_android_ndk" != "none"; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8147 $as_echo_n "checking what Android NDK version to use... " >&6; }
8149 # Check whether --with-ndk-version was given.
8150 if test "${with_ndk_version+set}" = set; then :
8151 withval=$with_ndk_version; aros_ndk_version="$withval"
8152 else
8153 aros_ndk_version="9"
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8157 $as_echo "$aros_ndk_version" >&6; }
8160 # Extract the first word of "ant", so it can be a program name with args.
8161 set dummy ant; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if ${ac_cv_path_ant+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 case $ant in
8168 [\\/]* | ?:[\\/]*)
8169 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8179 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8183 done
8184 done
8185 IFS=$as_save_IFS
8188 esac
8190 ant=$ac_cv_path_ant
8191 if test -n "$ant"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8193 $as_echo "$ant" >&6; }
8194 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8200 if test "$ant" = ""; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8202 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8206 $as_echo_n "checking Build debug or release apk... " >&6; }
8208 # Check whether --with-apk-version was given.
8209 if test "${with_apk_version+set}" = set; then :
8210 withval=$with_apk_version; aros_android_antapk=$withval
8211 else
8212 aros_android_antapk=release
8215 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8216 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8219 $as_echo "$aros_android_antapk" >&6; }
8221 target_extra_cfg+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8222 host_extra_cfg+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8223 aros_target_options+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8225 if test "$host_os" = "mingw32"; then
8226 android_tool="cmd //c $android_tool"
8229 need_dlopen="no"
8232 esac
8234 #-----------------------------------------------------------------------------
8235 # External toolchains
8236 kernel_tool_prefix="none"
8237 aros_tool_prefix="none"
8238 elf_tool_prefix="${target_cpu}-elf-"
8240 # Base target cpu ISA configuration switch.
8241 case "$target_cpu" in
8242 *aarch64*)
8244 *arm*)
8246 *m68k*)
8247 m68k_isa_extra="ISA_MC68000_FLAGS = -march=68000"
8248 m68k_020_isa_extra="ISA_MC68020_FLAGS = -march=68020"
8249 m68k_030_isa_extra="ISA_MC68030_FLAGS = -march=68030"
8250 m68k_040_isa_extra="ISA_MC68040_FLAGS = -march=68040"
8251 m68k_060_isa_extra="ISA_MC68060_FLAGS = -march=68060"
8252 m68k_ac080_isa_extra="ISA_AC68080_FLAGS = -march=68040"
8253 m68k_020_ext="ISA_MC68020_EXT :=020"
8254 m68k_030_ext="ISA_MC68030_EXT :=030"
8255 m68k_040_ext="ISA_MC68040_EXT :=040"
8256 m68k_060_ext="ISA_MC68060_EXT :=060"
8257 m68k_020_cflags="ISA_MC68020_CFLAGS ="
8258 m68k_030_cflags="ISA_MC68030_CFLAGS ="
8259 m68k_040_cflags="ISA_MC68040_CFLAGS ="
8260 m68k_060_cflags="ISA_MC68060_CFLAGS ="
8261 m68k_020_cppflags="ISA_MC68020_CPPFLAGS ="
8262 m68k_030_cppflags="ISA_MC68030_CPPFLAGS ="
8263 m68k_040_cppflags="ISA_MC68040_CPPFLAGS ="
8264 m68k_060_cppflags="ISA_MC68060_CPPFLAGS ="
8265 m68k_020_ldflags="ISA_MC68020_LDFLAGS ="
8266 m68k_030_ldflags="ISA_MC68030_LDFLAGS ="
8267 m68k_040_ldflags="ISA_MC68040_LDFLAGS ="
8268 m68k_060_ldflags="ISA_MC68060_LDFLAGS ="
8270 *x86_64* | *i?86*)
8271 x86_isa_extra="ISA_X86_FLAGS = -m32 -march=i486"
8272 x86_64_isa_extra="ISA_X8664_FLAGS = -mcmodel=large"
8274 *powerpc*)
8276 esac
8278 # This is the target configuration switch.
8279 case "$target_os" in
8280 linux*)
8281 aros_target_arch="linux"
8282 aros_target_family="unix"
8283 case "$target_cpu" in
8284 *m68k*)
8285 aros_target_cpu="m68k"
8286 aros_object_format="m68kelf"
8287 aros_flavour="emulcompat"
8288 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8289 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8290 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8291 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8292 gcc_target_cpu="mc68000"
8294 *i?86*)
8295 aros_target_cpu="i386"
8296 aros_object_format="elf_i386"
8297 aros_flavour="emulation"
8298 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8299 aros_isa_flags="$""(ISA_X86_FLAGS)"
8300 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8301 aros_kernel_ldflags="-Wl,-melf_i386"
8302 aros_nominal_depth=8
8303 gcc_target_cpu="i386"
8304 pci_hidd_target="hidd-pci-linux"
8305 android_tool_dir_prefix="x86"
8306 android_tool_prefix="i686-android-linux"
8307 android_ndk_arch="x86"
8309 *x86_64*)
8310 aros_target_cpu="x86_64"
8311 aros_object_format="elf_x86_64"
8312 aros_flavour="emulation"
8313 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8314 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8315 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8316 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8317 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8318 aros_nominal_depth=8
8319 pci_hidd_target="hidd-pci-linux"
8321 *powerpc*)
8322 aros_target_cpu="ppc"
8323 aros_object_format="elf32ppc"
8324 aros_flavour="emulation"
8325 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8326 aros_nominal_depth=8
8327 gcc_target_cpu="ppc"
8329 # TODO
8330 # Same as powerpc, but I need this for the nightly build to work again.
8331 # Actually, the nightly should be made working with powerpc target.
8332 # That just was too much work for the moment, another week or two.
8333 *ppc*)
8334 aros_target_cpu="ppc"
8335 aros_object_format="elf32ppc"
8336 aros_flavour="emulation"
8337 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8338 aros_nominal_depth=8
8339 gcc_target_cpu="ppc"
8341 *aarch64*)
8342 aros_target_cpu="aarch64"
8343 target_cpu="aarch64"
8344 aros_object_format="aarch64elf_aros"
8345 aros_flavour="emulation"
8346 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8347 gcc_target_cpu="aarch64"
8348 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8349 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8350 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8351 aros_arch_libs="-laeabi"
8352 gcc_default_float_abi="hard"
8353 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8355 *armhf*)
8356 aros_target_cpu="arm"
8357 target_cpu="arm"
8358 aros_object_format="armelf_aros"
8359 aros_flavour="emulation"
8360 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8361 gcc_target_cpu="arm"
8362 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8363 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8364 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8365 aros_arch_libs="-laeabi"
8366 gcc_default_float_abi="hard"
8367 android_tool_dir_prefix="arm-linux-androideabi"
8368 android_tool_prefix="arm-linux-androideabi"
8369 android_ndk_arch="arm"
8370 kernel_tool_prefix="arm-linux-gnueabihf-"
8372 *arm*)
8373 aros_target_cpu="arm"
8374 aros_object_format="armelf_aros"
8375 aros_flavour="emulation"
8376 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8377 gcc_target_cpu="arm"
8378 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8379 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8380 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8381 aros_arch_libs="-laeabi"
8382 android_tool_dir_prefix="arm-linux-androideabi"
8383 android_tool_prefix="arm-linux-androideabi"
8384 android_ndk_arch="arm"
8385 kernel_tool_prefix="arm-linux-gnueabi-"
8388 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8390 esac
8391 case "$aros_target_variant" in
8392 android)
8394 if test "$android_ndk_arch" = ""; then
8395 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8398 aros_nominal_width=320
8399 aros_nominal_height=480
8400 if test "$aros_android_ndk" = "none"; then
8401 aros_kernel_cflags="-mandroid"
8402 aros_kernel_ldflags="-mandroid"
8403 CFLAGS="-mandroid"
8404 else
8405 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8406 kernel_tool_version=""
8407 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8408 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8409 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8410 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8411 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8413 need_x11=no
8414 # Disable implicit PIC mode
8415 aros_config_cflags="$aros_config_cflags -fno-pic"
8416 kernel_tool_prefix="$android_tool_prefix-"
8418 esac
8422 aros_target_arch="pc"
8423 aros_shared_default="no"
8424 target_bootloader="grub2"
8425 case "$target_cpu" in
8426 *i?86*)
8427 aros_target_cpu="i386"
8430 if test "$aros_object_format" = "" ; then
8431 aros_object_format="elf_i386"
8433 aros_flavour="standalone"
8434 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8435 aros_isa_flags="$""(ISA_X86_FLAGS)"
8436 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8437 aros_kernel_ldflags="-Wl,-melf_i386"
8438 aros_nominal_width=640
8439 aros_nominal_height=480
8440 gcc_target_cpu="i386"
8442 *x86_64*)
8443 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8444 aros_target_cpu="x86_64"
8445 aros_serial_debug=1
8446 if test "$aros_object_format" = "" ; then
8447 aros_object_format="elf_x86_64"
8449 aros_flavour="standalone"
8450 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8451 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8452 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8453 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8454 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8455 aros_kernel_ldflags=""
8456 aros_nominal_width=640
8457 aros_nominal_height=480
8458 case "$aros_target_variant" in
8459 smp)
8460 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8462 esac
8465 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8467 esac
8470 prep)
8471 aros_target_arch="prep"
8472 aros_shared_default="no"
8473 aros_target_cpu="ppc"
8474 aros_object_format="elf32ppc"
8475 aros_flavour="ppcnative"
8476 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8477 aros_kernel_ldflags=""
8478 aros_nominal_width=640
8479 aros_nominal_height=480
8480 gcc_target_cpu="ppc"
8483 freebsd*)
8484 aros_target_arch="freebsd"
8485 aros_target_family="unix"
8486 aros_target_cpu="i386"
8487 aros_flavour="emulation"
8488 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8489 gcc_target_cpu="i386"
8491 aros_target_strip_flags="-x"
8494 darwin*)
8495 aros_target_arch="darwin"
8496 aros_target_family="unix"
8497 aros_flavour="emulation"
8498 case "$target_cpu" in
8499 *i?86*)
8500 aros_ios_platform="iPhoneSimulator"
8501 aros_target_cpu="i386"
8502 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8503 aros_isa_flags="$""(ISA_X86_FLAGS)"
8504 aros_kernel_ldflags=""
8505 aros_macosx_version="10.4"
8506 aros_nominal_depth=8
8507 gcc_target_cpu="i386"
8508 aros_object_format="elf_i386"
8509 aros_kernel_ar_flags="-cr"
8510 aros_target_strip_flags="-x"
8511 kernel_tool_flags="-m32"
8513 *x86_64*)
8514 aros_target_cpu="x86_64"
8515 aros_object_format="elf_x86_64"
8516 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8517 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8518 aros_macosx_version="10.6"
8519 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8520 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8521 aros_kernel_cflags="-m64"
8522 aros_kernel_ldflags="-m64"
8523 aros_nominal_depth=8
8524 aros_kernel_ar="ar"
8525 aros_kernel_ar_flags="-cr"
8526 aros_kernel_ld="ld"
8527 aros_kernel_as="as"
8528 aros_kernel_ranlib="ranlib"
8529 aros_kernel_nm="nm"
8530 aros_kernel_strip="strip"
8531 kernel_tool_prefix="i686-apple-darwin10-"
8533 *ppc*)
8534 aros_target_cpu="ppc"
8535 aros_object_format="elf32ppc"
8536 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8537 aros_kernel_ldflags=""
8538 aros_macosx_version="10.0"
8539 aros_nominal_depth=8
8540 gcc_target_cpu="ppc"
8541 aros_kernel_ar="ar"
8542 aros_kernel_ar_flags="-cr"
8543 aros_kernel_ld="ld -arch ppc"
8544 aros_kernel_as="as -arch ppc"
8545 aros_kernel_ranlib="ranlib -arch ppc"
8546 aros_kernel_nm="nm -arch ppc"
8547 aros_kernel_strip="strip -arch ppc"
8548 kernel_tool_prefix="powerpc-apple-darwin10-"
8550 *arm*)
8551 aros_ios_platform="iPhoneOS"
8552 aros_target_cpu="arm"
8553 aros_object_format="armelf_aros"
8554 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8555 aros_arch_libs="-laeabi"
8556 aros_nominal_depth=8
8557 gcc_target_cpu="arm"
8558 aros_kernel_ar="ar"
8559 aros_kernel_ar_flags="-cr"
8560 aros_kernel_ld="ld -arch arm"
8561 aros_kernel_ranlib="ranlib -arch arm"
8562 kernel_tool_prefix="arm-apple-darwin10-"
8563 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8566 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8568 esac
8569 case "$aros_target_variant" in
8570 ios)
8571 make_extra_targetcfg="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
8572 aros_ios_version="3.0"
8573 aros_nominal_width=320
8574 aros_nominal_height=480
8575 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8576 target_extra_cfg+="$export_newline""# Apple iOS specific$export_newline""IOS_PLATFORM := $aros_ios_platform$export_newline""IOS_OS_VERSION := $aros_ios_version$export_newline""IOS_SDK_PATH := $aros_ios_sdk$export_newline"
8577 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8578 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8579 need_x11=no
8580 # This is here because it may depend on iOS or SDK version
8581 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8582 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8583 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8586 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8587 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8589 esac
8592 dragonfly*)
8593 aros_target_arch="dragonfly"
8594 aros_target_family="unix"
8595 aros_flavour="emulation"
8596 case "$target_cpu" in
8597 *i?86*)
8598 aros_target_cpu="i386"
8599 aros_object_format="elf_i386"
8600 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8601 aros_isa_flags="$""(ISA_X86_FLAGS)"
8603 *x86_64*)
8604 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8605 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8606 aros_target_cpu="x86_64"
8607 aros_object_format="elf_x86_64"
8608 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8609 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8612 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8614 esac
8617 netbsd*)
8618 aros_target_arch="netbsd"
8619 aros_target_family="unix"
8620 case "$target_cpu" in
8621 *m68k*)
8622 aros_target_cpu="m68k"
8623 aros_object_format="m68kelf"
8624 aros_flavour="emulcompat"
8625 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8626 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8627 gcc_target_cpu="mc68000"
8629 *i?86*)
8630 aros_target_cpu="i386"
8631 aros_object_format="elf_i386"
8632 aros_flavour="emulation"
8633 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8634 aros_isa_flags="$""(ISA_X86_FLAGS)"
8635 aros_nominal_depth=8
8636 gcc_target_cpu="i386"
8639 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8641 esac
8642 aros_target_genmap="-Wl,-M -Xlinker >"
8643 aros_flavour="emulation"
8644 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8647 openbsd*)
8648 aros_target_arch="openbsd"
8649 aros_target_family="unix"
8650 case "$target_cpu" in
8651 *i?86*)
8652 aros_target_cpu="i386"
8653 aros_object_format="elf_i386"
8654 aros_flavour="emulation"
8655 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8656 aros_isa_flags="$""(ISA_X86_FLAGS)"
8657 gcc_target_cpu="i386"
8660 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8662 esac
8663 aros_target_genmap="-Wl,-M -Xlinker >"
8664 aros_target_nm_flags="-u"
8665 aros_flavour="emulation"
8668 solaris*)
8669 aros_target_arch="solaris"
8670 aros_target_family="unix"
8671 case "$target_cpu" in
8672 *i?86*)
8673 aros_target_cpu="i386"
8674 aros_object_format="elf_i386"
8675 aros_flavour="emulation"
8676 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8677 aros_isa_flags="$""(ISA_X86_FLAGS)"
8678 aros_nominal_depth=8
8679 gcc_target_cpu="i386"
8681 *sparc*)
8682 aros_target_cpu="sparc"
8683 aros_object_format="elf_sparc"
8684 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8685 gcc_target_cpu="sparc"
8688 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8690 esac
8691 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8692 aros_flavour="emulation"
8695 morphos*)
8696 aros_target_arch="morphos"
8697 aros_shared_default="no"
8698 aros_target_cpu="ppc"
8699 aros_object_format="elf_ppc"
8700 aros_flavour="nativecompat"
8701 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8702 gcc_target_cpu="ppc"
8705 sam440)
8706 aros_target_arch="sam440"
8707 aros_shared_default="no"
8708 aros_target_cpu="ppc"
8709 aros_object_format="elf32ppc"
8710 aros_flavour="ppcnative"
8711 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8712 aros_kernel_ldflags=""
8713 aros_nominal_width=1024
8714 aros_nominal_height=768
8715 aros_nominal_depth=24
8716 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8717 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8718 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8719 gcc_target_cpu="powerpc"
8722 efika)
8723 aros_target_arch="efika"
8724 aros_shared_default="no"
8725 aros_target_cpu="arm"
8726 aros_object_format="armelf_aros"
8727 aros_flavour="standalone"
8728 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8729 aros_kernel_ldflags=""
8730 aros_nominal_width=1024
8731 aros_nominal_height=600
8732 aros_arch_libs="-laeabi"
8733 gcc_default_cpu="armv7-a"
8734 gcc_default_fpu="vfpv3"
8735 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8736 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8737 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8738 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8739 if test "$optimization" = "default"; then
8740 optimization_level="-Os"
8742 case "$target_cpu" in
8743 *armhf*)
8744 gcc_default_float_abi="hard"
8745 target_cpu=arm
8746 aros_target_cpu=arm
8748 *arm*)
8749 gcc_default_float_abi="softfp"
8752 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8754 esac
8757 chrp)
8758 aros_target_arch="chrp"
8759 aros_shared_default="no"
8760 aros_target_cpu="ppc"
8761 aros_object_format="elf32ppc"
8762 aros_flavour="ppcnative"
8763 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8764 aros_kernel_ldflags=""
8765 aros_nominal_width=640
8766 aros_nominal_height=480
8767 aros_isa_flags="$aros_isa_flags -mno-toc"
8768 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8769 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8770 gcc_target_cpu="powerpc"
8771 case "$aros_target_variant" in
8772 efika)
8773 aros_isa_flags="$aros_isa_flags -mcpu=603e"
8774 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8776 esac
8779 r*pi)
8780 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8781 aros_flavour="standalone"
8782 aros_target_arch="raspi"
8784 aros_shared_default="no"
8786 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8788 case "$target_cpu" in
8789 *aarch64*)
8790 aros_target_cpu="aarch64"
8791 gcc_default_cpu="aarch64"
8792 aros_object_format="aarch64elf_aros"
8794 *armhf*)
8795 aros_target_cpu="arm"
8796 gcc_default_cpu="armv6zk"
8797 gcc_default_cpu_tune="arm1176jzf-s"
8798 aros_object_format="armelf_aros"
8799 aros_isa_flags="$aros_isa_flags -marm"
8800 aros_config_cflags="$aros_config_cflags"
8801 aros_config_cxxflags="$aros_config_cxxflags"
8802 aros_config_aflags="$aros_config_aflags -marm"
8803 aros_kernel_cflags="$aros_kernel_cflags -marm"
8804 aros_target_mkdep="$aros_target_mkdep -Darm"
8805 aros_arch_libs="-laeabi"
8807 *armeb*)
8808 aros_flavour="standcompat"
8809 aros_target_cpu="armeb"
8810 gcc_default_float_abi="hard"
8811 gcc_default_cpu="armv7ve"
8812 gcc_default_cpu_tune="cortex-a7"
8813 aros_object_format="armelfb_aros"
8814 aros_isa_flags="$aros_isa_flags -marm"
8815 aros_config_cflags="$aros_config_cflags"
8816 aros_config_cxxflags="$aros_config_cxxflags"
8817 aros_config_aflags="$aros_config_aflags -marm"
8818 aros_kernel_cflags="$aros_kernel_cflags -marm"
8819 aros_target_mkdep="$aros_target_mkdep -Darm"
8820 aros_arch_libs="-laeabi"
8822 *arm*)
8823 aros_target_cpu="arm"
8824 gcc_default_cpu="armv6zk"
8825 gcc_default_cpu_tune="arm1176jzf-s"
8826 aros_object_format="armelf_aros"
8827 aros_isa_flags="$aros_isa_flags -marm"
8828 aros_config_cflags="$aros_config_cflags"
8829 aros_config_cxxflags="$aros_config_cxxflags"
8830 aros_config_aflags="$aros_config_aflags -marm"
8831 aros_kernel_cflags="$aros_kernel_cflags -marm"
8832 aros_target_mkdep="$aros_target_mkdep -Darm"
8833 aros_arch_libs="-laeabi"
8836 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8838 esac
8840 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8841 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8842 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8843 aros_kernel_cflags="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8845 case "$aros_target_variant" in
8846 smp)
8847 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8849 esac
8852 stm32f7_discovery)
8853 aros_flavour="standalone"
8854 aros_target_arch="stm32f7_discovery"
8855 aros_target_cpu="arm"
8856 aros_target_cpu_mode="thumb2"
8857 aros_object_format="armelf_aros"
8858 aros_shared_default="no"
8860 gcc_default_cpu="armv7e-m"
8861 gcc_default_cpu_tune="cortex-m7"
8862 gcc_default_fpu="fpv5-sp-d16"
8863 gcc_default_float_abi="hard"
8865 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8868 amiga*)
8869 aros_elf_translate="$""(ELF2HUNK)"
8870 make_extra_commands="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
8871 aros_target_arch="amiga"
8872 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8873 aros_shared_default="no"
8875 case "$target_cpu" in
8876 *m68k*)
8877 # Check whether --enable-amigaos_compliance was given.
8878 if test "${enable_amigaos_compliance+set}" = set; then :
8879 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8882 aros_enable_mmu=no
8883 aros_target_cpu="m68k"
8884 aros_object_format="m68kelf"
8885 aros_flavour="standcompat"
8886 gcc_target_cpu="m68000"
8887 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8888 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8889 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
8890 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
8891 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
8892 if test "$optimization" = "default"; then
8893 optimization_level="-Os"
8895 aros_config_aflags="$aros_config_aflags"
8896 aros_target_strip_flags="-R.comment --strip-debug"
8897 aros_nominal_width=640
8898 aros_nominal_height=256
8899 aros_nominal_depth=2
8901 *ppc*)
8902 aros_cpu="ppc"
8903 aros_flavour="native"
8904 gcc_target_cpu="ppc"
8907 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8909 esac
8912 mingw*)
8913 aros_target_arch="mingw32"
8914 aros_shared_default="no"
8915 aros_flavour="emulation"
8916 aros_shared_cflags=""
8917 need_crosstools="yes"
8918 need_dlopen="no"
8919 rescomp="windres"
8920 case "$target_cpu" in
8921 *i?86*)
8922 aros_target_cpu="i386"
8923 aros_object_format="elf_i386"
8924 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8925 aros_isa_flags="$""(ISA_X86_FLAGS)"
8926 aros_nominal_depth=8
8927 gcc_target_cpu="i386"
8929 kernel_tool_prefix="i386-mingw32-"
8931 *x86_64*)
8932 aros_target_cpu="x86_64"
8933 aros_object_format="elf_x86_64"
8934 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8935 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8936 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8937 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8938 aros_nominal_depth=8
8939 kernel_tool_prefix="x86_64-w64-mingw32-"
8941 *arm*)
8942 aros_target_cpu="arm"
8943 aros_object_format="armelf_aros"
8944 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8945 aros_arch_libs="-laeabi"
8946 aros_nominal_depth=8
8947 gcc_target_cpu="arm"
8948 gcc_default_float_abi="soft"
8949 kernel_tool_prefix="arm-mingw32ce-"
8950 aros_nominal_width=160
8951 aros_nominal_height=160
8954 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8956 esac
8957 if test $host_os = "cygwin"; then
8958 aros_kernel_cflags="-mno-cygwin"
8961 pp*)
8962 aros_target_arch="pp"
8963 aros_shared_default="no"
8964 case "$target_cpu" in
8965 *m68k*)
8966 aros_target_cpu="m68k"
8967 aros_object_format="m68kelf"
8968 aros_flavour="palmnative"
8969 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8970 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8971 aros_nominal_width=160
8972 aros_nominal_height=160
8973 aros_nominal_depth=1
8974 aros_target_ar_flags="cru"
8975 aros_compiler_libs="-lgcc1"
8976 aros_shared_default=no
8977 aros_shared_cflags="-fpic"
8978 aros_shared_aflags=""
8979 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8980 aros_kernel_ldflags="-Wl,-rpath,./lib"
8981 aros_debug_cppflags="$aros_messages_debug"
8982 aros_debug_cflags="$aros_symbols_debug"
8983 aros_debug_aflags=""
8984 aros_debug_ldflags="$aros_symbols_debug"
8985 aros_mungwall_debug="0"
8986 aros_modules_debug="0"
8987 gcc_target_cpu="mc68000"
8988 ignore_undefined_symbols="-ius"
8991 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8993 esac
8996 mac*)
8997 aros_target_arch="mac"
8998 aros_shared_default="no"
8999 case "$target_cpu" in
9000 *m68k*)
9001 aros_target_cpu="m68k"
9002 aros_object_format="m68kelf"
9003 aros_flavour="mac68knative"
9004 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9005 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9006 aros_nominal_width=512
9007 aros_nominal_height=384
9008 aros_nominal_depth=8
9009 aros_target_ar_flags="cru"
9010 aros_compiler_libs="-lgcc1"
9011 aros_shared_default=no
9012 aros_shared_cflags="-fpic"
9013 aros_shared_aflags=""
9014 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9015 aros_kernel_ldflags="-Wl,-rpath,./lib"
9016 aros_debug_cppflags="$aros_messages_debug"
9017 aros_debug_cflags="$aros_symbols_debug"
9018 aros_debug_aflags=""
9019 aros_debug_ldflags="$aros_symbols_debug"
9020 aros_mungwall_debug="0"
9021 aros_modules_debug="0"
9022 gcc_target_cpu="mc68000"
9023 ignore_undefined_symbols="-ius"
9026 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9028 esac
9032 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
9034 esac
9036 #-----------------------------------------------------------------------------
9037 crosstools_guess="yes"
9038 aros_target_toolchain="no"
9039 aros_kernel_sysroot=""
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9042 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9044 # Check whether --with-kernel-toolchain-prefix was given.
9045 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9046 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9050 $as_echo "$kernel_tool_prefix" >&6; }
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9053 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9055 # Check whether --with-elf-toolchain-prefix was given.
9056 if test "${with_elf_toolchain_prefix+set}" = set; then :
9057 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
9058 crosstools_guess="no"
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9062 $as_echo "$elf_tool_prefix" >&6; }
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9065 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9067 # Check whether --with-aros-toolchain was given.
9068 if test "${with_aros_toolchain+set}" = set; then :
9069 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
9070 crosstools_guess="no"
9073 if test "$aros_tool_prefix" = "yes" ; then
9074 aros_tool_prefix=$aros_target_cpu-aros-
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9077 $as_echo "$aros_tool_prefix" >&6; }
9079 #-----------------------------------------------------------------------------
9080 # Checking if we should build crosstools..
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9082 $as_echo_n "checking whether to build crosstools... " >&6; }
9083 # Check whether --enable-crosstools was given.
9084 if test "${enable_crosstools+set}" = set; then :
9085 enableval=$enable_crosstools; crosstools="$enableval"
9086 else
9087 crosstools="$crosstools_guess"
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9091 $as_echo "$crosstools" >&6; }
9093 if test "${crosstools}" = "yes"; then
9094 if test "${crosstools_guess}" = "no"; then
9095 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9099 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
9100 aros_target_toolchain="yes"
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9104 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9106 # Check whether --with-aros-toolchain-install was given.
9107 if test "${with_aros_toolchain_install+set}" = set; then :
9108 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9111 if test "x$aros_toolchain_install" = "x"; then
9112 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9113 else
9114 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9115 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9116 if test "$crosstools_guess" = "no" ; then
9117 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9118 aros_kernel_sysroot="$""(TARGET_SYSROOT)"
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9123 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9125 #-----------------------------------------------------------------------------
9126 if test "$aros_toolchain" = "gnu" ; then
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9128 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9131 # Check whether --with-binutils-version was given.
9132 if test "${with_binutils_version+set}" = set; then :
9133 withval=$with_binutils_version; use_binutils_version="$withval"
9134 else
9135 use_binutils_version=""
9138 if test "$use_binutils_version" = ""; then
9139 target_binutils_version="$default_binutils_version"
9140 else
9141 target_binutils_version="$use_binutils_version"
9143 if test "$aros_toolchain" = "gnu" ; then
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9145 $as_echo "$target_binutils_version" >&6; }
9149 # Helper to identify gcc version
9152 #-----------------------------------------------------------------------------
9153 if test "$aros_toolchain" = "gnu" ; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9155 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9158 # Check whether --with-gcc-version was given.
9159 if test "${with_gcc_version+set}" = set; then :
9160 withval=$with_gcc_version; use_gcc_version="$withval"
9161 else
9162 use_gcc_version=""
9165 if test "$use_gcc_version" = ""; then
9166 if test "${crosstools}" = "no"; then
9167 if test "x$aros_toolchain_install" != "x"; then
9169 target_gcc_version=""
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9171 $as_echo_n "checking gcc version... " >&6; }
9172 if ${ax_cv_gcc_version+:} false; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9176 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9177 if test "x$ax_cv_gcc_version" = "x"; then :
9179 ax_cv_gcc_version=""
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9185 $as_echo "$ax_cv_gcc_version" >&6; }
9186 target_gcc_version=$ax_cv_gcc_version
9191 if test "$use_gcc_version" = ""; then
9192 target_gcc_version="$default_gcc_version"
9194 else
9195 target_gcc_version="$use_gcc_version"
9197 if test "$aros_toolchain" = "gnu" ; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9199 $as_echo "$target_gcc_version" >&6; }
9201 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9202 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9203 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9205 gcc_fix_bitfields="false"
9206 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9207 gcc_fix_bitfields="true"
9208 else
9209 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9210 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9211 gcc_fix_bitfields="true"
9216 if test "$gcc_fix_bitfields" = "true" ; then
9217 case "$aros_target_cpu" in
9218 *x86_64* | *i?86*)
9219 x86_isa_extra="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9220 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9222 esac
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9227 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9228 # Check whether --enable-objc was given.
9229 if test "${enable_objc+set}" = set; then :
9230 enableval=$enable_objc; objc="$enableval"
9231 else
9232 objc="no"
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9236 $as_echo "$objc" >&6; }
9237 if test "x$objc" = "xyes"; then
9238 objc_target="$objc"
9239 else
9240 objc_target="no-objc"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9244 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9245 # Check whether --enable-java was given.
9246 if test "${enable_java+set}" = set; then :
9247 enableval=$enable_java; java="$enableval"
9248 else
9249 java="no"
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9253 $as_echo "$java" >&6; }
9254 if test "x$java" != "xno"; then
9255 java_target="$java"
9256 else
9257 java_target="no-java"
9260 spec_obj_format="-m $aros_object_format"
9261 # Now process extra architecture-specific options.
9262 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9263 # as well as floating-point ABI.
9264 case "$aros_target_cpu" in
9265 *m68k*)
9266 aros_isa_targets="M68K_ISA_TARGETS :=MC68020 MC68040"
9267 aros_isa_extra="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9268 aros_isa_extra="$aros_isa_extra$m68k_isa_extra$export_newline$m68k_020_isa_extra$export_newline$m68k_030_isa_extra$export_newline$m68k_040_isa_extra$export_newline$m68k_060_isa_extra$export_newline$m68k_ac080_isa_extra$export_newline"
9269 aros_isa_extra="$aros_isa_extra$m68k_020_cppflags$export_newline$m68k_030_cppflags$export_newline$m68k_040_cppflags$export_newline$m68k_060_cppflags$export_newline"
9270 aros_isa_extra="$aros_isa_extra$m68k_020_cflags$export_newline$m68k_030_cflags$export_newline$m68k_040_cflags$export_newline$m68k_060_cflags$export_newline"
9271 aros_isa_extra="$aros_isa_extra$m68k_020_ldflags$export_newline$m68k_030_ldflags$export_newline$m68k_040_ldflags$export_newline$m68k_060_ldflags$export_newline"
9272 aros_isa_extra="$aros_isa_extra$m68k_020_ext$export_newline$m68k_030_ext$export_newline$m68k_040_ext$export_newline$m68k_060_ext$export_newline"
9274 *x86_64*)
9275 aros_isa_extra="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9276 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9278 arm*)
9279 if test "$gcc_default_cpu" = ""; then
9280 gcc_default_cpu="armv6"
9282 if test "$gcc_default_fpu" = ""; then
9283 gcc_default_fpu="vfp"
9285 if test "$gcc_default_endian" = ""; then
9286 if test "$target_cpu" = "armeb"; then
9287 gcc_default_endian="big-endian"
9288 else
9289 gcc_default_endian="little-endian"
9292 if test "$gcc_default_float_abi" = ""; then
9293 if test "$target_cpu" = "armhf"; then
9294 gcc_default_float_abi="hard"
9295 else
9296 gcc_default_float_abi="softfp"
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9301 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9303 # Check whether --with-cpu was given.
9304 if test "${with_cpu+set}" = set; then :
9305 withval=$with_cpu; aros_gcc_cpu="$withval"
9306 else
9307 aros_gcc_cpu=$gcc_default_cpu
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9311 $as_echo "$aros_gcc_cpu" >&6; }
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9314 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9316 # Check whether --with-fpu was given.
9317 if test "${with_fpu+set}" = set; then :
9318 withval=$with_fpu; aros_gcc_fpu="$withval"
9319 else
9320 aros_gcc_fpu=$gcc_default_fpu
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9324 $as_echo "$aros_gcc_fpu" >&6; }
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9327 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9329 # Check whether --with-float was given.
9330 if test "${with_float+set}" = set; then :
9331 withval=$with_float; aros_gcc_float_abi="$withval"
9332 else
9333 aros_gcc_float_abi=$gcc_default_float_abi
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9337 $as_echo "$aros_gcc_float_abi" >&6; }
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9340 $as_echo_n "checking Which ARM mode to use... " >&6; }
9341 if test "$aros_target_cpu_mode" = ""; then
9342 aros_target_cpu_mode="arm32"
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9344 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9345 else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9347 $as_echo "$aros_target_cpu_mode" >&6; }
9350 case "$aros_target_cpu_mode" in
9351 arm32)
9352 gcc_default_mode="arm"
9353 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -m$gcc_default_endian -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9355 arm64)
9356 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9358 thumb)
9359 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9361 thumb1)
9362 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9364 thumb2)
9365 gcc_default_mode="thumb"
9366 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9367 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -$gcc_default_endian -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9370 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9372 esac
9374 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9375 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9376 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9378 i386)
9379 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9380 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9382 esac
9384 # Some architectures may need custom ELF specs.
9385 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9386 elf_specs_in=config/${aros_object_format}-specs.in
9387 else
9388 elf_specs_in=config/elf-specs.in
9391 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9392 # Since we override specs, we may need to put these defines there
9393 if test "$gcc_target_cpu" != ""; then
9394 gcc_target_cpu="-D__${gcc_target_cpu}__"
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9398 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9400 # Check whether --with-portssources was given.
9401 if test "${with_portssources+set}" = set; then :
9402 withval=$with_portssources; with_portssrcdir=$withval
9403 else
9404 with_portssrcdir="default"
9407 if test "$with_portssrcdir" = "default"; then
9408 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9409 else
9410 AROS_PORTSSRCDIR="$with_portssrcdir"
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9413 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9416 $as_echo_n "checking which bootloader to use... " >&6; }
9418 # Check whether --with-bootloader was given.
9419 if test "${with_bootloader+set}" = set; then :
9420 withval=$with_bootloader; target_bootloader=$withval
9421 else
9422 target_bootloader=$target_bootloader
9425 if test "$target_bootloader" = "none"; then
9426 aros_target_bootloader=""
9427 else
9428 aros_target_bootloader="$target_bootloader"
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9431 $as_echo "$target_bootloader" >&6; }
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9434 $as_echo_n "checking which icon-set to use... " >&6; }
9436 # Check whether --with-iconset was given.
9437 if test "${with_iconset+set}" = set; then :
9438 withval=$with_iconset; target_iconset=$withval
9439 else
9440 target_iconset="default"
9443 if test "$target_iconset" = "default"; then
9444 aros_target_iconset="Gorilla"
9445 target_iconset="default (Gorilla)"
9446 else
9447 aros_target_iconset="$target_iconset"
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9450 $as_echo "$target_iconset" >&6; }
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9453 $as_echo_n "checking which GUI Theme to use... " >&6; }
9455 # Check whether --with-theme was given.
9456 if test "${with_theme+set}" = set; then :
9457 withval=$with_theme; target_guitheme=$withval
9458 else
9459 target_guitheme="default"
9462 if test "$target_guitheme" = "default"; then
9463 aros_target_guitheme="Ice"
9464 else
9465 aros_target_guitheme="$target_guitheme"
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9468 $as_echo "$aros_target_guitheme" >&6; }
9470 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9471 # for target code)
9472 cross_compiling=no
9474 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9475 cross_compiling=yes
9478 if test "$aros_host_cpu" == "x86_64" ; then
9479 if test "$aros_target_cpu" == "i386" ; then
9480 cross_compiling=no
9484 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9485 if test "$aros_host_arch" != "$aros_target_arch" ; then
9486 cross_compiling=yes
9488 else
9489 cross_compiling=yes
9492 if test "$cross_compiling" = "no" ; then
9493 kernel_tool_prefix=""
9494 if test "$host_cc_elf" = "yes" ; then
9495 elf_tool_prefix=""
9499 if test "$kernel_tool_version" != ""; then
9500 kernel_tool_version="-$kernel_tool_version"
9503 #######################################################################
9504 ## Compute what toolchains to use, and their paths ##
9505 #######################################################################
9507 # This takes, as input:
9508 # crosstools {yes,no}
9509 # kernel_tool_version {"",[version]}
9510 # target_tool_version {"",[version]}
9511 # kernel_tool_prefix {none,[some-arch-os-]}
9512 # gnu-toolchain -:
9513 # target_tool_prefix ${aros_target_cpu}-aros-
9514 # aros_tool_prefix ${aros_target_cpu}-aros-
9516 # The output is
9517 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9518 # Where the 'kernel' binaries are located
9519 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9520 # Where the 'target' binaries are located
9521 # (not the symlink farm - that is aros_target_*!)
9523 # The rules are:
9524 # if crosstools then
9525 # if kernel_tools_prefix = "no-kernel-prefix-"
9526 # aros_kernel_* = crosstools cc paths
9527 # aros_kernel_cc = elf cc wrapper around crosstools cc
9528 # else
9529 # VALIDATE(${kernel_tools_prefix}*)
9530 # aros_kernel_* = ${kernel_tools_prefix}*
9531 # if ${kernel_tools_prefix}cc is an AROS gcc
9532 # aros_kernel_cc = ${kernel_tools_prefix}cc
9533 # else
9534 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9535 # fi
9536 # fi
9538 # orig_target_* = aros built crosstools
9539 # orig_target_cc = elf cc wrapper around crosstools cc
9540 # else
9541 # VALIDATE(${kernel_tools_prefix}*)
9543 # orig_target_* = aros_kernel_*
9544 # if aros_kernel_cc is an AROS gcc
9545 # orig_target_cc = aros_kernel_cc
9546 # else
9547 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9548 # fi
9549 # fi
9551 if test "$aros_toolchain" = "gnu" ; then
9552 target_tool_prefix="${aros_target_cpu}-aros-"
9553 elif test "$aros_toolchain" = "llvm" ; then
9554 target_tool_prefix="bin/"
9557 if test "$kernel_tool_prefix" != "" ; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9559 $as_echo_n "checking which kernel tools... " >&6; }
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9561 $as_echo "$kernel_tool_prefix" >&6; };
9564 if test "$kernel_tool_prefix" = "none" ; then
9565 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9566 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9568 else
9569 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
9570 # Kernel tools required - find them
9571 # Note that 'normally', aros_kernel_* overrides will be
9572 # empty, unless specified in the per-arch sections above.
9573 test_kernel_cc=yes
9574 if test "x$aros_kernel_cpp" = "x"; then
9575 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9577 if test "${kernel_tool_version}" != ""; then
9578 if test "$aros_kernel_cpp" != ""; then
9579 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9580 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9581 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9585 if test "$aros_kernel_cpp" = ""; then
9586 if test "$cross_compiling" = "yes" ; then
9587 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9588 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9590 $as_echo_n "checking for $ac_word... " >&6; }
9591 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9592 $as_echo_n "(cached) " >&6
9593 else
9594 case $aros_kernel_cpp in
9595 [\\/]* | ?:[\\/]*)
9596 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600 for as_dir in $PATH
9602 IFS=$as_save_IFS
9603 test -z "$as_dir" && as_dir=.
9604 for ac_exec_ext in '' $ac_executable_extensions; do
9605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9606 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9608 break 2
9610 done
9611 done
9612 IFS=$as_save_IFS
9615 esac
9617 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9618 if test -n "$aros_kernel_cpp"; then
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9620 $as_echo "$aros_kernel_cpp" >&6; }
9621 else
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623 $as_echo "no" >&6; }
9627 else
9628 if test "$GCC" = "yes"; then
9629 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9630 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9631 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 $as_echo_n "checking for $ac_word... " >&6; }
9634 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 case $aros_kernel_cpp in
9638 [\\/]* | ?:[\\/]*)
9639 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643 for as_dir in `dirname $aros_gcc_cpp`
9645 IFS=$as_save_IFS
9646 test -z "$as_dir" && as_dir=.
9647 for ac_exec_ext in '' $ac_executable_extensions; do
9648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9649 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9651 break 2
9653 done
9654 done
9655 IFS=$as_save_IFS
9658 esac
9660 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9661 if test -n "$aros_kernel_cpp"; then
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9663 $as_echo "$aros_kernel_cpp" >&6; }
9664 else
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9666 $as_echo "no" >&6; }
9671 if test "$aros_kernel_cpp" = ""; then
9672 # Extract the first word of "cpp", so it can be a program name with args.
9673 set dummy cpp; ac_word=$2
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9675 $as_echo_n "checking for $ac_word... " >&6; }
9676 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9677 $as_echo_n "(cached) " >&6
9678 else
9679 case $aros_kernel_cpp in
9680 [\\/]* | ?:[\\/]*)
9681 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9685 for as_dir in $PATH
9687 IFS=$as_save_IFS
9688 test -z "$as_dir" && as_dir=.
9689 for ac_exec_ext in '' $ac_executable_extensions; do
9690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9691 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9693 break 2
9695 done
9696 done
9697 IFS=$as_save_IFS
9700 esac
9702 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9703 if test -n "$aros_kernel_cpp"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9705 $as_echo "$aros_kernel_cpp" >&6; }
9706 else
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9714 else
9715 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9716 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9717 set dummy $aros_kernel_cpp; ac_word=$2
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719 $as_echo_n "checking for $ac_word... " >&6; }
9720 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9721 $as_echo_n "(cached) " >&6
9722 else
9723 case $aros_kernel_cpp in
9724 [\\/]* | ?:[\\/]*)
9725 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 for as_dir in $PATH
9731 IFS=$as_save_IFS
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9735 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737 break 2
9739 done
9740 done
9741 IFS=$as_save_IFS
9744 esac
9746 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9747 if test -n "$aros_kernel_cpp"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9749 $as_echo "$aros_kernel_cpp" >&6; }
9750 else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752 $as_echo "no" >&6; }
9756 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9759 req_avail=yes
9760 if test "$aros_kernel_cpp" = ""; then
9761 req_avail=no
9763 if test "$aros_kernel_cpp" = "no"; then
9764 req_avail=no
9766 if test "$req_avail" = "no"; then
9767 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9770 if test "x$aros_kernel_cc" = "x"; then
9771 aros_kernel_cc=${kernel_tool_prefix}${CC}
9773 if test "${kernel_tool_version}" != ""; then
9774 if test "$aros_kernel_cc" != ""; then
9775 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9776 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9777 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9781 if test "$aros_kernel_cc" = ""; then
9782 if test "$cross_compiling" = "yes" ; then
9783 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9784 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786 $as_echo_n "checking for $ac_word... " >&6; }
9787 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 case $aros_kernel_cc in
9791 [\\/]* | ?:[\\/]*)
9792 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796 for as_dir in $PATH
9798 IFS=$as_save_IFS
9799 test -z "$as_dir" && as_dir=.
9800 for ac_exec_ext in '' $ac_executable_extensions; do
9801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9802 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9804 break 2
9806 done
9807 done
9808 IFS=$as_save_IFS
9811 esac
9813 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9814 if test -n "$aros_kernel_cc"; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9816 $as_echo "$aros_kernel_cc" >&6; }
9817 else
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9819 $as_echo "no" >&6; }
9823 else
9824 if test "$GCC" = "yes"; then
9825 aros_gcc_cc=`$CC -print-prog-name=cc`
9826 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9827 set dummy `basename $aros_gcc_cc`; ac_word=$2
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9829 $as_echo_n "checking for $ac_word... " >&6; }
9830 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9831 $as_echo_n "(cached) " >&6
9832 else
9833 case $aros_kernel_cc in
9834 [\\/]* | ?:[\\/]*)
9835 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9839 for as_dir in `dirname $aros_gcc_cc`
9841 IFS=$as_save_IFS
9842 test -z "$as_dir" && as_dir=.
9843 for ac_exec_ext in '' $ac_executable_extensions; do
9844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9845 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9847 break 2
9849 done
9850 done
9851 IFS=$as_save_IFS
9854 esac
9856 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9857 if test -n "$aros_kernel_cc"; then
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9859 $as_echo "$aros_kernel_cc" >&6; }
9860 else
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862 $as_echo "no" >&6; }
9867 if test "$aros_kernel_cc" = ""; then
9868 # Extract the first word of "cc", so it can be a program name with args.
9869 set dummy cc; ac_word=$2
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9871 $as_echo_n "checking for $ac_word... " >&6; }
9872 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9873 $as_echo_n "(cached) " >&6
9874 else
9875 case $aros_kernel_cc in
9876 [\\/]* | ?:[\\/]*)
9877 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 for as_dir in $PATH
9883 IFS=$as_save_IFS
9884 test -z "$as_dir" && as_dir=.
9885 for ac_exec_ext in '' $ac_executable_extensions; do
9886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9887 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9889 break 2
9891 done
9892 done
9893 IFS=$as_save_IFS
9896 esac
9898 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9899 if test -n "$aros_kernel_cc"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9901 $as_echo "$aros_kernel_cc" >&6; }
9902 else
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9910 else
9911 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9912 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9913 set dummy $aros_kernel_cc; ac_word=$2
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9915 $as_echo_n "checking for $ac_word... " >&6; }
9916 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9917 $as_echo_n "(cached) " >&6
9918 else
9919 case $aros_kernel_cc in
9920 [\\/]* | ?:[\\/]*)
9921 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9925 for as_dir in $PATH
9927 IFS=$as_save_IFS
9928 test -z "$as_dir" && as_dir=.
9929 for ac_exec_ext in '' $ac_executable_extensions; do
9930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9931 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9933 break 2
9935 done
9936 done
9937 IFS=$as_save_IFS
9940 esac
9942 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9943 if test -n "$aros_kernel_cc"; then
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9945 $as_echo "$aros_kernel_cc" >&6; }
9946 else
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948 $as_echo "no" >&6; }
9952 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9955 req_avail=yes
9956 if test "$aros_kernel_cc" = ""; then
9957 req_avail=no
9959 if test "$aros_kernel_cc" = "no"; then
9960 req_avail=no
9962 if test "$req_avail" = "no"; then
9963 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9966 if test "x$aros_kernel_cxx" = "x"; then
9967 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9969 if test "${kernel_tool_version}" != ""; then
9970 if test "$aros_kernel_cxx" != ""; then
9971 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9972 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9973 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9977 if test "$aros_kernel_cxx" = ""; then
9978 if test "$cross_compiling" = "yes" ; then
9979 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9980 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9982 $as_echo_n "checking for $ac_word... " >&6; }
9983 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9984 $as_echo_n "(cached) " >&6
9985 else
9986 case $aros_kernel_cxx in
9987 [\\/]* | ?:[\\/]*)
9988 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9992 for as_dir in $PATH
9994 IFS=$as_save_IFS
9995 test -z "$as_dir" && as_dir=.
9996 for ac_exec_ext in '' $ac_executable_extensions; do
9997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9998 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10000 break 2
10002 done
10003 done
10004 IFS=$as_save_IFS
10007 esac
10009 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10010 if test -n "$aros_kernel_cxx"; then
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10012 $as_echo "$aros_kernel_cxx" >&6; }
10013 else
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10015 $as_echo "no" >&6; }
10019 else
10020 if test "$GCC" = "yes"; then
10021 aros_gcc_cxx=`$CC -print-prog-name=cxx`
10022 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10023 set dummy `basename $aros_gcc_cxx`; ac_word=$2
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10025 $as_echo_n "checking for $ac_word... " >&6; }
10026 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10027 $as_echo_n "(cached) " >&6
10028 else
10029 case $aros_kernel_cxx in
10030 [\\/]* | ?:[\\/]*)
10031 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035 for as_dir in `dirname $aros_gcc_cxx`
10037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10041 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10043 break 2
10045 done
10046 done
10047 IFS=$as_save_IFS
10050 esac
10052 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10053 if test -n "$aros_kernel_cxx"; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10055 $as_echo "$aros_kernel_cxx" >&6; }
10056 else
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058 $as_echo "no" >&6; }
10063 if test "$aros_kernel_cxx" = ""; then
10064 # Extract the first word of "cxx", so it can be a program name with args.
10065 set dummy cxx; ac_word=$2
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067 $as_echo_n "checking for $ac_word... " >&6; }
10068 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10069 $as_echo_n "(cached) " >&6
10070 else
10071 case $aros_kernel_cxx in
10072 [\\/]* | ?:[\\/]*)
10073 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077 for as_dir in $PATH
10079 IFS=$as_save_IFS
10080 test -z "$as_dir" && as_dir=.
10081 for ac_exec_ext in '' $ac_executable_extensions; do
10082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10083 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10085 break 2
10087 done
10088 done
10089 IFS=$as_save_IFS
10092 esac
10094 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10095 if test -n "$aros_kernel_cxx"; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10097 $as_echo "$aros_kernel_cxx" >&6; }
10098 else
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100 $as_echo "no" >&6; }
10106 else
10107 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10108 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10109 set dummy $aros_kernel_cxx; ac_word=$2
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111 $as_echo_n "checking for $ac_word... " >&6; }
10112 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 case $aros_kernel_cxx in
10116 [\\/]* | ?:[\\/]*)
10117 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10121 for as_dir in $PATH
10123 IFS=$as_save_IFS
10124 test -z "$as_dir" && as_dir=.
10125 for ac_exec_ext in '' $ac_executable_extensions; do
10126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10127 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10129 break 2
10131 done
10132 done
10133 IFS=$as_save_IFS
10136 esac
10138 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10139 if test -n "$aros_kernel_cxx"; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10141 $as_echo "$aros_kernel_cxx" >&6; }
10142 else
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144 $as_echo "no" >&6; }
10148 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10151 # If it's set, make sure it's really there
10152 if test "x$aros_kernel_cxx" != "x" ; then
10153 req_avail=yes
10154 if test "$aros_kernel_cxx" = ""; then
10155 req_avail=no
10157 if test "$aros_kernel_cxx" = "no"; then
10158 req_avail=no
10160 if test "$req_avail" = "no"; then
10161 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10165 if test "$aros_kernel_ld" = ""; then
10166 if test "$cross_compiling" = "yes" ; then
10167 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10168 set dummy ${kernel_tool_prefix}ld; 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_ld+:} false; then :
10172 $as_echo_n "(cached) " >&6
10173 else
10174 case $aros_kernel_ld in
10175 [\\/]* | ?:[\\/]*)
10176 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # 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_ld="$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_ld=$ac_cv_path_aros_kernel_ld
10198 if test -n "$aros_kernel_ld"; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10200 $as_echo "$aros_kernel_ld" >&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_ld=`$CC -print-prog-name=ld`
10210 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10211 set dummy `basename $aros_gcc_ld`; 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_ld+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 case $aros_kernel_ld in
10218 [\\/]* | ?:[\\/]*)
10219 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # 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_ld`
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_ld="$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_ld=$ac_cv_path_aros_kernel_ld
10241 if test -n "$aros_kernel_ld"; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10243 $as_echo "$aros_kernel_ld" >&6; }
10244 else
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 $as_echo "no" >&6; }
10251 if test "$aros_kernel_ld" = ""; then
10252 # Extract the first word of "ld", so it can be a program name with args.
10253 set dummy ld; 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_ld+:} false; then :
10257 $as_echo_n "(cached) " >&6
10258 else
10259 case $aros_kernel_ld in
10260 [\\/]* | ?:[\\/]*)
10261 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # 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_ld="$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_ld=$ac_cv_path_aros_kernel_ld
10283 if test -n "$aros_kernel_ld"; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10285 $as_echo "$aros_kernel_ld" >&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_ld" : '[^ ]* \(.*\)'`
10296 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10297 set dummy $aros_kernel_ld; 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_ld+:} false; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 case $aros_kernel_ld in
10304 [\\/]* | ?:[\\/]*)
10305 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # 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_ld="$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_ld=$ac_cv_path_aros_kernel_ld
10327 if test -n "$aros_kernel_ld"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10329 $as_echo "$aros_kernel_ld" >&6; }
10330 else
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10336 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10339 req_avail=yes
10340 if test "$aros_kernel_ld" = ""; then
10341 req_avail=no
10343 if test "$aros_kernel_ld" = "no"; then
10344 req_avail=no
10346 if test "$req_avail" = "no"; then
10347 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10350 if test "$aros_kernel_as" = ""; then
10351 if test "$cross_compiling" = "yes" ; then
10352 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10353 set dummy ${kernel_tool_prefix}as; 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_as+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 case $aros_kernel_as in
10360 [\\/]* | ?:[\\/]*)
10361 ac_cv_path_aros_kernel_as="$aros_kernel_as" # 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_as="$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_as=$ac_cv_path_aros_kernel_as
10383 if test -n "$aros_kernel_as"; then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10385 $as_echo "$aros_kernel_as" >&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_as=`$CC -print-prog-name=as`
10395 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10396 set dummy `basename $aros_gcc_as`; 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_as+:} false; then :
10400 $as_echo_n "(cached) " >&6
10401 else
10402 case $aros_kernel_as in
10403 [\\/]* | ?:[\\/]*)
10404 ac_cv_path_aros_kernel_as="$aros_kernel_as" # 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_as`
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_as="$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_as=$ac_cv_path_aros_kernel_as
10426 if test -n "$aros_kernel_as"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10428 $as_echo "$aros_kernel_as" >&6; }
10429 else
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431 $as_echo "no" >&6; }
10436 if test "$aros_kernel_as" = ""; then
10437 # Extract the first word of "as", so it can be a program name with args.
10438 set dummy as; 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_as+:} false; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 case $aros_kernel_as in
10445 [\\/]* | ?:[\\/]*)
10446 ac_cv_path_aros_kernel_as="$aros_kernel_as" # 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_as="$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_as=$ac_cv_path_aros_kernel_as
10468 if test -n "$aros_kernel_as"; then
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10470 $as_echo "$aros_kernel_as" >&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_as" : '[^ ]* \(.*\)'`
10481 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10482 set dummy $aros_kernel_as; 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_as+:} false; then :
10486 $as_echo_n "(cached) " >&6
10487 else
10488 case $aros_kernel_as in
10489 [\\/]* | ?:[\\/]*)
10490 ac_cv_path_aros_kernel_as="$aros_kernel_as" # 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_as="$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_as=$ac_cv_path_aros_kernel_as
10512 if test -n "$aros_kernel_as"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10514 $as_echo "$aros_kernel_as" >&6; }
10515 else
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10521 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10524 req_avail=yes
10525 if test "$aros_kernel_as" = ""; then
10526 req_avail=no
10528 if test "$aros_kernel_as" = "no"; then
10529 req_avail=no
10531 if test "$req_avail" = "no"; then
10532 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10535 if test "$aros_kernel_ar" = ""; then
10536 if test "$cross_compiling" = "yes" ; then
10537 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10538 set dummy ${kernel_tool_prefix}ar; 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_ar+:} false; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 case $aros_kernel_ar in
10545 [\\/]* | ?:[\\/]*)
10546 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # 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_ar="$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_ar=$ac_cv_path_aros_kernel_ar
10568 if test -n "$aros_kernel_ar"; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10570 $as_echo "$aros_kernel_ar" >&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_ar=`$CC -print-prog-name=ar`
10580 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10581 set dummy `basename $aros_gcc_ar`; 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_ar+:} false; then :
10585 $as_echo_n "(cached) " >&6
10586 else
10587 case $aros_kernel_ar in
10588 [\\/]* | ?:[\\/]*)
10589 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # 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_ar`
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_ar="$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_ar=$ac_cv_path_aros_kernel_ar
10611 if test -n "$aros_kernel_ar"; then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10613 $as_echo "$aros_kernel_ar" >&6; }
10614 else
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616 $as_echo "no" >&6; }
10621 if test "$aros_kernel_ar" = ""; then
10622 # Extract the first word of "ar", so it can be a program name with args.
10623 set dummy ar; 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_ar+:} false; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 case $aros_kernel_ar in
10630 [\\/]* | ?:[\\/]*)
10631 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # 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_ar="$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_ar=$ac_cv_path_aros_kernel_ar
10653 if test -n "$aros_kernel_ar"; then
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10655 $as_echo "$aros_kernel_ar" >&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_ar" : '[^ ]* \(.*\)'`
10666 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10667 set dummy $aros_kernel_ar; 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_ar+:} false; then :
10671 $as_echo_n "(cached) " >&6
10672 else
10673 case $aros_kernel_ar in
10674 [\\/]* | ?:[\\/]*)
10675 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # 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_ar="$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_ar=$ac_cv_path_aros_kernel_ar
10697 if test -n "$aros_kernel_ar"; then
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10699 $as_echo "$aros_kernel_ar" >&6; }
10700 else
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10702 $as_echo "no" >&6; }
10706 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10709 req_avail=yes
10710 if test "$aros_kernel_ar" = ""; then
10711 req_avail=no
10713 if test "$aros_kernel_ar" = "no"; then
10714 req_avail=no
10716 if test "$req_avail" = "no"; then
10717 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10720 if test "$aros_kernel_ranlib" = ""; then
10721 if test "$cross_compiling" = "yes" ; then
10722 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10723 set dummy ${kernel_tool_prefix}ranlib; 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_ranlib+:} false; then :
10727 $as_echo_n "(cached) " >&6
10728 else
10729 case $aros_kernel_ranlib in
10730 [\\/]* | ?:[\\/]*)
10731 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # 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_ranlib="$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_ranlib=$ac_cv_path_aros_kernel_ranlib
10753 if test -n "$aros_kernel_ranlib"; then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10755 $as_echo "$aros_kernel_ranlib" >&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_ranlib=`$CC -print-prog-name=ranlib`
10765 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10766 set dummy `basename $aros_gcc_ranlib`; 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_ranlib+:} false; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 case $aros_kernel_ranlib in
10773 [\\/]* | ?:[\\/]*)
10774 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # 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_ranlib`
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_ranlib="$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_ranlib=$ac_cv_path_aros_kernel_ranlib
10796 if test -n "$aros_kernel_ranlib"; then
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10798 $as_echo "$aros_kernel_ranlib" >&6; }
10799 else
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; }
10806 if test "$aros_kernel_ranlib" = ""; then
10807 # Extract the first word of "ranlib", so it can be a program name with args.
10808 set dummy ranlib; 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_ranlib+:} false; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814 case $aros_kernel_ranlib in
10815 [\\/]* | ?:[\\/]*)
10816 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # 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_ranlib="$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_ranlib=$ac_cv_path_aros_kernel_ranlib
10838 if test -n "$aros_kernel_ranlib"; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10840 $as_echo "$aros_kernel_ranlib" >&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_ranlib" : '[^ ]* \(.*\)'`
10851 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10852 set dummy $aros_kernel_ranlib; 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_ranlib+:} false; then :
10856 $as_echo_n "(cached) " >&6
10857 else
10858 case $aros_kernel_ranlib in
10859 [\\/]* | ?:[\\/]*)
10860 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # 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_ranlib="$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_ranlib=$ac_cv_path_aros_kernel_ranlib
10882 if test -n "$aros_kernel_ranlib"; then
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10884 $as_echo "$aros_kernel_ranlib" >&6; }
10885 else
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887 $as_echo "no" >&6; }
10891 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10894 req_avail=yes
10895 if test "$aros_kernel_ranlib" = ""; then
10896 req_avail=no
10898 if test "$aros_kernel_ranlib" = "no"; then
10899 req_avail=no
10901 if test "$req_avail" = "no"; then
10902 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10905 if test "$aros_kernel_nm" = ""; then
10906 if test "$cross_compiling" = "yes" ; then
10907 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10908 set dummy ${kernel_tool_prefix}nm; 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_nm+:} false; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 case $aros_kernel_nm in
10915 [\\/]* | ?:[\\/]*)
10916 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # 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_nm="$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_nm=$ac_cv_path_aros_kernel_nm
10938 if test -n "$aros_kernel_nm"; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10940 $as_echo "$aros_kernel_nm" >&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_nm=`$CC -print-prog-name=nm`
10950 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10951 set dummy `basename $aros_gcc_nm`; 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_nm+:} false; then :
10955 $as_echo_n "(cached) " >&6
10956 else
10957 case $aros_kernel_nm in
10958 [\\/]* | ?:[\\/]*)
10959 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # 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_nm`
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_nm="$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_nm=$ac_cv_path_aros_kernel_nm
10981 if test -n "$aros_kernel_nm"; then
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10983 $as_echo "$aros_kernel_nm" >&6; }
10984 else
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 $as_echo "no" >&6; }
10991 if test "$aros_kernel_nm" = ""; then
10992 # Extract the first word of "nm", so it can be a program name with args.
10993 set dummy nm; 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_nm+:} false; then :
10997 $as_echo_n "(cached) " >&6
10998 else
10999 case $aros_kernel_nm in
11000 [\\/]* | ?:[\\/]*)
11001 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # 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_nm="$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_nm=$ac_cv_path_aros_kernel_nm
11023 if test -n "$aros_kernel_nm"; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11025 $as_echo "$aros_kernel_nm" >&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_nm" : '[^ ]* \(.*\)'`
11036 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11037 set dummy $aros_kernel_nm; 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_nm+:} false; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 case $aros_kernel_nm in
11044 [\\/]* | ?:[\\/]*)
11045 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # 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_nm="$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_nm=$ac_cv_path_aros_kernel_nm
11067 if test -n "$aros_kernel_nm"; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11069 $as_echo "$aros_kernel_nm" >&6; }
11070 else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11076 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
11079 req_avail=yes
11080 if test "$aros_kernel_nm" = ""; then
11081 req_avail=no
11083 if test "$aros_kernel_nm" = "no"; then
11084 req_avail=no
11086 if test "$req_avail" = "no"; then
11087 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11090 if test "$aros_kernel_strip" = ""; then
11091 if test "$cross_compiling" = "yes" ; then
11092 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11093 set dummy ${kernel_tool_prefix}strip; ac_word=$2
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095 $as_echo_n "checking for $ac_word... " >&6; }
11096 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 case $aros_kernel_strip in
11100 [\\/]* | ?:[\\/]*)
11101 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105 for as_dir in $PATH
11107 IFS=$as_save_IFS
11108 test -z "$as_dir" && as_dir=.
11109 for ac_exec_ext in '' $ac_executable_extensions; do
11110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11111 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 break 2
11115 done
11116 done
11117 IFS=$as_save_IFS
11120 esac
11122 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11123 if test -n "$aros_kernel_strip"; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11125 $as_echo "$aros_kernel_strip" >&6; }
11126 else
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; }
11132 else
11133 if test "$GCC" = "yes"; then
11134 aros_gcc_strip=`$CC -print-prog-name=strip`
11135 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11136 set dummy `basename $aros_gcc_strip`; ac_word=$2
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138 $as_echo_n "checking for $ac_word... " >&6; }
11139 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 case $aros_kernel_strip in
11143 [\\/]* | ?:[\\/]*)
11144 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148 for as_dir in `dirname $aros_gcc_strip`
11150 IFS=$as_save_IFS
11151 test -z "$as_dir" && as_dir=.
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11154 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 break 2
11158 done
11159 done
11160 IFS=$as_save_IFS
11163 esac
11165 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11166 if test -n "$aros_kernel_strip"; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11168 $as_echo "$aros_kernel_strip" >&6; }
11169 else
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171 $as_echo "no" >&6; }
11176 if test "$aros_kernel_strip" = ""; then
11177 # Extract the first word of "strip", so it can be a program name with args.
11178 set dummy strip; ac_word=$2
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11180 $as_echo_n "checking for $ac_word... " >&6; }
11181 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11182 $as_echo_n "(cached) " >&6
11183 else
11184 case $aros_kernel_strip in
11185 [\\/]* | ?:[\\/]*)
11186 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190 for as_dir in $PATH
11192 IFS=$as_save_IFS
11193 test -z "$as_dir" && as_dir=.
11194 for ac_exec_ext in '' $ac_executable_extensions; do
11195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11196 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11198 break 2
11200 done
11201 done
11202 IFS=$as_save_IFS
11205 esac
11207 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11208 if test -n "$aros_kernel_strip"; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11210 $as_echo "$aros_kernel_strip" >&6; }
11211 else
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 $as_echo "no" >&6; }
11219 else
11220 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11221 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11222 set dummy $aros_kernel_strip; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 case $aros_kernel_strip in
11229 [\\/]* | ?:[\\/]*)
11230 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11236 IFS=$as_save_IFS
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
11239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11240 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11242 break 2
11244 done
11245 done
11246 IFS=$as_save_IFS
11249 esac
11251 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11252 if test -n "$aros_kernel_strip"; then
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11254 $as_echo "$aros_kernel_strip" >&6; }
11255 else
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11261 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11264 req_avail=yes
11265 if test "$aros_kernel_strip" = ""; then
11266 req_avail=no
11268 if test "$aros_kernel_strip" = "no"; then
11269 req_avail=no
11271 if test "$req_avail" = "no"; then
11272 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11275 # Objcopy and objdump are not required for the kernel
11276 # toolchain on many architectures.
11277 # So we'll look for them, but not make them strictly required.
11279 if test "$aros_kernel_objcopy" = ""; then
11280 if test "$cross_compiling" = "yes" ; then
11281 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11282 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284 $as_echo_n "checking for $ac_word... " >&6; }
11285 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 case $aros_kernel_objcopy in
11289 [\\/]* | ?:[\\/]*)
11290 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294 for as_dir in $PATH
11296 IFS=$as_save_IFS
11297 test -z "$as_dir" && as_dir=.
11298 for ac_exec_ext in '' $ac_executable_extensions; do
11299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11300 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11302 break 2
11304 done
11305 done
11306 IFS=$as_save_IFS
11309 esac
11311 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11312 if test -n "$aros_kernel_objcopy"; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11314 $as_echo "$aros_kernel_objcopy" >&6; }
11315 else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11317 $as_echo "no" >&6; }
11321 else
11322 if test "$GCC" = "yes"; then
11323 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11324 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11325 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11327 $as_echo_n "checking for $ac_word... " >&6; }
11328 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11329 $as_echo_n "(cached) " >&6
11330 else
11331 case $aros_kernel_objcopy in
11332 [\\/]* | ?:[\\/]*)
11333 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11337 for as_dir in `dirname $aros_gcc_objcopy`
11339 IFS=$as_save_IFS
11340 test -z "$as_dir" && as_dir=.
11341 for ac_exec_ext in '' $ac_executable_extensions; do
11342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11343 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11345 break 2
11347 done
11348 done
11349 IFS=$as_save_IFS
11352 esac
11354 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11355 if test -n "$aros_kernel_objcopy"; then
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11357 $as_echo "$aros_kernel_objcopy" >&6; }
11358 else
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 $as_echo "no" >&6; }
11365 if test "$aros_kernel_objcopy" = ""; then
11366 # Extract the first word of "objcopy", so it can be a program name with args.
11367 set dummy objcopy; ac_word=$2
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11369 $as_echo_n "checking for $ac_word... " >&6; }
11370 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11371 $as_echo_n "(cached) " >&6
11372 else
11373 case $aros_kernel_objcopy in
11374 [\\/]* | ?:[\\/]*)
11375 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379 for as_dir in $PATH
11381 IFS=$as_save_IFS
11382 test -z "$as_dir" && as_dir=.
11383 for ac_exec_ext in '' $ac_executable_extensions; do
11384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11385 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11387 break 2
11389 done
11390 done
11391 IFS=$as_save_IFS
11394 esac
11396 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11397 if test -n "$aros_kernel_objcopy"; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11399 $as_echo "$aros_kernel_objcopy" >&6; }
11400 else
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402 $as_echo "no" >&6; }
11408 else
11409 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11410 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11411 set dummy $aros_kernel_objcopy; ac_word=$2
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11413 $as_echo_n "checking for $ac_word... " >&6; }
11414 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11417 case $aros_kernel_objcopy in
11418 [\\/]* | ?:[\\/]*)
11419 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11425 IFS=$as_save_IFS
11426 test -z "$as_dir" && as_dir=.
11427 for ac_exec_ext in '' $ac_executable_extensions; do
11428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11429 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11431 break 2
11433 done
11434 done
11435 IFS=$as_save_IFS
11438 esac
11440 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11441 if test -n "$aros_kernel_objcopy"; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11443 $as_echo "$aros_kernel_objcopy" >&6; }
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446 $as_echo "no" >&6; }
11450 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11454 if test "$aros_kernel_objdump" = ""; then
11455 if test "$cross_compiling" = "yes" ; then
11456 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11457 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11459 $as_echo_n "checking for $ac_word... " >&6; }
11460 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 case $aros_kernel_objdump in
11464 [\\/]* | ?:[\\/]*)
11465 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469 for as_dir in $PATH
11471 IFS=$as_save_IFS
11472 test -z "$as_dir" && as_dir=.
11473 for ac_exec_ext in '' $ac_executable_extensions; do
11474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11475 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11477 break 2
11479 done
11480 done
11481 IFS=$as_save_IFS
11484 esac
11486 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11487 if test -n "$aros_kernel_objdump"; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11489 $as_echo "$aros_kernel_objdump" >&6; }
11490 else
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492 $as_echo "no" >&6; }
11496 else
11497 if test "$GCC" = "yes"; then
11498 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11499 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11500 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11502 $as_echo_n "checking for $ac_word... " >&6; }
11503 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11504 $as_echo_n "(cached) " >&6
11505 else
11506 case $aros_kernel_objdump in
11507 [\\/]* | ?:[\\/]*)
11508 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512 for as_dir in `dirname $aros_gcc_objdump`
11514 IFS=$as_save_IFS
11515 test -z "$as_dir" && as_dir=.
11516 for ac_exec_ext in '' $ac_executable_extensions; do
11517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11518 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11520 break 2
11522 done
11523 done
11524 IFS=$as_save_IFS
11527 esac
11529 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11530 if test -n "$aros_kernel_objdump"; then
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11532 $as_echo "$aros_kernel_objdump" >&6; }
11533 else
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11540 if test "$aros_kernel_objdump" = ""; then
11541 # Extract the first word of "objdump", so it can be a program name with args.
11542 set dummy objdump; ac_word=$2
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544 $as_echo_n "checking for $ac_word... " >&6; }
11545 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11546 $as_echo_n "(cached) " >&6
11547 else
11548 case $aros_kernel_objdump in
11549 [\\/]* | ?:[\\/]*)
11550 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554 for as_dir in $PATH
11556 IFS=$as_save_IFS
11557 test -z "$as_dir" && as_dir=.
11558 for ac_exec_ext in '' $ac_executable_extensions; do
11559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11560 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11562 break 2
11564 done
11565 done
11566 IFS=$as_save_IFS
11569 esac
11571 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11572 if test -n "$aros_kernel_objdump"; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11574 $as_echo "$aros_kernel_objdump" >&6; }
11575 else
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11583 else
11584 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11585 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11586 set dummy $aros_kernel_objdump; ac_word=$2
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588 $as_echo_n "checking for $ac_word... " >&6; }
11589 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 case $aros_kernel_objdump in
11593 [\\/]* | ?:[\\/]*)
11594 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11598 for as_dir in $PATH
11600 IFS=$as_save_IFS
11601 test -z "$as_dir" && as_dir=.
11602 for ac_exec_ext in '' $ac_executable_extensions; do
11603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11604 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11606 break 2
11608 done
11609 done
11610 IFS=$as_save_IFS
11613 esac
11615 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11616 if test -n "$aros_kernel_objdump"; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11618 $as_echo "$aros_kernel_objdump" >&6; }
11619 else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11625 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11628 if test "x${crosstools}" != "xyes" ; then
11629 req_avail=yes
11630 if test "$aros_kernel_objcopy" = ""; then
11631 req_avail=no
11633 if test "$aros_kernel_objcopy" = "no"; then
11634 req_avail=no
11636 if test "$req_avail" = "no"; then
11637 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11639 req_avail=yes
11640 if test "$aros_kernel_objdump" = ""; then
11641 req_avail=no
11643 if test "$aros_kernel_objdump" = "no"; then
11644 req_avail=no
11646 if test "$req_avail" = "no"; then
11647 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11654 $as_echo_n "checking which target tools to use... " >&6; }
11655 if test "$aros_target_toolchain" = "yes"; then
11656 if test "$aros_toolchain" = "llvm" ; then
11657 msg_result="llvm"
11658 else
11659 msg_result=$target_tool_prefix
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11662 $as_echo "$msg_result" >&6; }
11663 # We are building AROS crosstools
11664 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11665 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11666 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11667 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11668 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11669 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11670 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11671 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11672 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11673 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11674 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11675 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11676 else
11677 # Determine whether AROS or ELF tools should be used
11678 if test "$aros_tool_prefix" = "none"; then
11679 aros_tool_prefix="${elf_tool_prefix}"
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11683 $as_echo "$aros_tool_prefix" >&6; }
11684 # We are *not* building AROS crosstools - use the AROS or ELF tools
11686 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11687 if test "$cross_compiling" = "yes" ; then
11688 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11689 set dummy ${target_tool_prefix}cpp; ac_word=$2
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11691 $as_echo_n "checking for $ac_word... " >&6; }
11692 if ${ac_cv_path_orig_target_cpp+:} false; then :
11693 $as_echo_n "(cached) " >&6
11694 else
11695 case $orig_target_cpp in
11696 [\\/]* | ?:[\\/]*)
11697 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701 for as_dir in $PATH
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
11705 for ac_exec_ext in '' $ac_executable_extensions; do
11706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11707 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11709 break 2
11711 done
11712 done
11713 IFS=$as_save_IFS
11716 esac
11718 orig_target_cpp=$ac_cv_path_orig_target_cpp
11719 if test -n "$orig_target_cpp"; then
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11721 $as_echo "$orig_target_cpp" >&6; }
11722 else
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724 $as_echo "no" >&6; }
11728 else
11729 if test "$GCC" = "yes"; then
11730 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11731 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11732 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11734 $as_echo_n "checking for $ac_word... " >&6; }
11735 if ${ac_cv_path_orig_target_cpp+:} false; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 case $orig_target_cpp in
11739 [\\/]* | ?:[\\/]*)
11740 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744 for as_dir in `dirname $aros_gcc_cpp`
11746 IFS=$as_save_IFS
11747 test -z "$as_dir" && as_dir=.
11748 for ac_exec_ext in '' $ac_executable_extensions; do
11749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11750 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11752 break 2
11754 done
11755 done
11756 IFS=$as_save_IFS
11759 esac
11761 orig_target_cpp=$ac_cv_path_orig_target_cpp
11762 if test -n "$orig_target_cpp"; then
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11764 $as_echo "$orig_target_cpp" >&6; }
11765 else
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767 $as_echo "no" >&6; }
11772 if test "$orig_target_cpp" = ""; then
11773 # Extract the first word of "cpp", so it can be a program name with args.
11774 set dummy cpp; ac_word=$2
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776 $as_echo_n "checking for $ac_word... " >&6; }
11777 if ${ac_cv_path_orig_target_cpp+:} false; then :
11778 $as_echo_n "(cached) " >&6
11779 else
11780 case $orig_target_cpp in
11781 [\\/]* | ?:[\\/]*)
11782 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11794 break 2
11796 done
11797 done
11798 IFS=$as_save_IFS
11801 esac
11803 orig_target_cpp=$ac_cv_path_orig_target_cpp
11804 if test -n "$orig_target_cpp"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11806 $as_echo "$orig_target_cpp" >&6; }
11807 else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11815 else
11816 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11817 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11818 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11820 $as_echo_n "checking for $ac_word... " >&6; }
11821 if ${ac_cv_path_orig_target_cpp+:} false; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 case $orig_target_cpp in
11825 [\\/]* | ?:[\\/]*)
11826 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830 for as_dir in $PATH
11832 IFS=$as_save_IFS
11833 test -z "$as_dir" && as_dir=.
11834 for ac_exec_ext in '' $ac_executable_extensions; do
11835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11836 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11838 break 2
11840 done
11841 done
11842 IFS=$as_save_IFS
11845 esac
11847 orig_target_cpp=$ac_cv_path_orig_target_cpp
11848 if test -n "$orig_target_cpp"; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11850 $as_echo "$orig_target_cpp" >&6; }
11851 else
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11857 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11860 req_avail=yes
11861 if test "$orig_target_cpp" = ""; then
11862 req_avail=no
11864 if test "$orig_target_cpp" = "no"; then
11865 req_avail=no
11867 if test "$req_avail" = "no"; then
11868 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11871 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11872 if test "$cross_compiling" = "yes" ; then
11873 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11874 set dummy ${target_tool_prefix}gcc; ac_word=$2
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11876 $as_echo_n "checking for $ac_word... " >&6; }
11877 if ${ac_cv_path_orig_target_cc+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 case $orig_target_cc in
11881 [\\/]* | ?:[\\/]*)
11882 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886 for as_dir in $PATH
11888 IFS=$as_save_IFS
11889 test -z "$as_dir" && as_dir=.
11890 for ac_exec_ext in '' $ac_executable_extensions; do
11891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11892 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894 break 2
11896 done
11897 done
11898 IFS=$as_save_IFS
11901 esac
11903 orig_target_cc=$ac_cv_path_orig_target_cc
11904 if test -n "$orig_target_cc"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11906 $as_echo "$orig_target_cc" >&6; }
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11913 else
11914 if test "$GCC" = "yes"; then
11915 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11916 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11917 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11919 $as_echo_n "checking for $ac_word... " >&6; }
11920 if ${ac_cv_path_orig_target_cc+:} false; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 case $orig_target_cc in
11924 [\\/]* | ?:[\\/]*)
11925 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929 for as_dir in `dirname $aros_gcc_gcc`
11931 IFS=$as_save_IFS
11932 test -z "$as_dir" && as_dir=.
11933 for ac_exec_ext in '' $ac_executable_extensions; do
11934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11935 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11937 break 2
11939 done
11940 done
11941 IFS=$as_save_IFS
11944 esac
11946 orig_target_cc=$ac_cv_path_orig_target_cc
11947 if test -n "$orig_target_cc"; then
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11949 $as_echo "$orig_target_cc" >&6; }
11950 else
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952 $as_echo "no" >&6; }
11957 if test "$orig_target_cc" = ""; then
11958 # Extract the first word of "gcc", so it can be a program name with args.
11959 set dummy gcc; ac_word=$2
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961 $as_echo_n "checking for $ac_word... " >&6; }
11962 if ${ac_cv_path_orig_target_cc+:} false; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 case $orig_target_cc in
11966 [\\/]* | ?:[\\/]*)
11967 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971 for as_dir in $PATH
11973 IFS=$as_save_IFS
11974 test -z "$as_dir" && as_dir=.
11975 for ac_exec_ext in '' $ac_executable_extensions; do
11976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11977 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11979 break 2
11981 done
11982 done
11983 IFS=$as_save_IFS
11986 esac
11988 orig_target_cc=$ac_cv_path_orig_target_cc
11989 if test -n "$orig_target_cc"; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11991 $as_echo "$orig_target_cc" >&6; }
11992 else
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
12000 else
12001 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12002 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12003 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12005 $as_echo_n "checking for $ac_word... " >&6; }
12006 if ${ac_cv_path_orig_target_cc+:} false; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 case $orig_target_cc in
12010 [\\/]* | ?:[\\/]*)
12011 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12015 for as_dir in $PATH
12017 IFS=$as_save_IFS
12018 test -z "$as_dir" && as_dir=.
12019 for ac_exec_ext in '' $ac_executable_extensions; do
12020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12021 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12023 break 2
12025 done
12026 done
12027 IFS=$as_save_IFS
12030 esac
12032 orig_target_cc=$ac_cv_path_orig_target_cc
12033 if test -n "$orig_target_cc"; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12035 $as_echo "$orig_target_cc" >&6; }
12036 else
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12042 orig_target_cc="$orig_target_cc $ac_tool_optarg"
12045 req_avail=yes
12046 if test "$orig_target_cc" = ""; then
12047 req_avail=no
12049 if test "$orig_target_cc" = "no"; then
12050 req_avail=no
12052 if test "$req_avail" = "no"; then
12053 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12056 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12057 if test "$cross_compiling" = "yes" ; then
12058 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12059 set dummy ${target_tool_prefix}g++; ac_word=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061 $as_echo_n "checking for $ac_word... " >&6; }
12062 if ${ac_cv_path_orig_target_cxx+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 case $orig_target_cxx in
12066 [\\/]* | ?:[\\/]*)
12067 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $PATH
12073 IFS=$as_save_IFS
12074 test -z "$as_dir" && as_dir=.
12075 for ac_exec_ext in '' $ac_executable_extensions; do
12076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12077 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12079 break 2
12081 done
12082 done
12083 IFS=$as_save_IFS
12086 esac
12088 orig_target_cxx=$ac_cv_path_orig_target_cxx
12089 if test -n "$orig_target_cxx"; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12091 $as_echo "$orig_target_cxx" >&6; }
12092 else
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094 $as_echo "no" >&6; }
12098 else
12099 if test "$GCC" = "yes"; then
12100 aros_gcc_g++=`$CC -print-prog-name=g++`
12101 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12102 set dummy `basename $aros_gcc_g++`; ac_word=$2
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12104 $as_echo_n "checking for $ac_word... " >&6; }
12105 if ${ac_cv_path_orig_target_cxx+:} false; then :
12106 $as_echo_n "(cached) " >&6
12107 else
12108 case $orig_target_cxx in
12109 [\\/]* | ?:[\\/]*)
12110 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114 for as_dir in `dirname $aros_gcc_g++`
12116 IFS=$as_save_IFS
12117 test -z "$as_dir" && as_dir=.
12118 for ac_exec_ext in '' $ac_executable_extensions; do
12119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12120 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12122 break 2
12124 done
12125 done
12126 IFS=$as_save_IFS
12129 esac
12131 orig_target_cxx=$ac_cv_path_orig_target_cxx
12132 if test -n "$orig_target_cxx"; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12134 $as_echo "$orig_target_cxx" >&6; }
12135 else
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12142 if test "$orig_target_cxx" = ""; then
12143 # Extract the first word of "g++", so it can be a program name with args.
12144 set dummy g++; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if ${ac_cv_path_orig_target_cxx+:} false; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 case $orig_target_cxx in
12151 [\\/]* | ?:[\\/]*)
12152 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12162 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164 break 2
12166 done
12167 done
12168 IFS=$as_save_IFS
12171 esac
12173 orig_target_cxx=$ac_cv_path_orig_target_cxx
12174 if test -n "$orig_target_cxx"; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12176 $as_echo "$orig_target_cxx" >&6; }
12177 else
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179 $as_echo "no" >&6; }
12185 else
12186 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12187 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12188 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if ${ac_cv_path_orig_target_cxx+:} false; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 case $orig_target_cxx in
12195 [\\/]* | ?:[\\/]*)
12196 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200 for as_dir in $PATH
12202 IFS=$as_save_IFS
12203 test -z "$as_dir" && as_dir=.
12204 for ac_exec_ext in '' $ac_executable_extensions; do
12205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12206 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12208 break 2
12210 done
12211 done
12212 IFS=$as_save_IFS
12215 esac
12217 orig_target_cxx=$ac_cv_path_orig_target_cxx
12218 if test -n "$orig_target_cxx"; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12220 $as_echo "$orig_target_cxx" >&6; }
12221 else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12227 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12230 req_avail=yes
12231 if test "$orig_target_cxx" = ""; then
12232 req_avail=no
12234 if test "$orig_target_cxx" = "no"; then
12235 req_avail=no
12237 if test "$req_avail" = "no"; then
12238 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12241 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12242 if test "$cross_compiling" = "yes" ; then
12243 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12244 set dummy ${target_tool_prefix}gcc; ac_word=$2
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246 $as_echo_n "checking for $ac_word... " >&6; }
12247 if ${ac_cv_path_orig_target_ld+:} false; then :
12248 $as_echo_n "(cached) " >&6
12249 else
12250 case $orig_target_ld in
12251 [\\/]* | ?:[\\/]*)
12252 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12258 IFS=$as_save_IFS
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12262 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264 break 2
12266 done
12267 done
12268 IFS=$as_save_IFS
12271 esac
12273 orig_target_ld=$ac_cv_path_orig_target_ld
12274 if test -n "$orig_target_ld"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12276 $as_echo "$orig_target_ld" >&6; }
12277 else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279 $as_echo "no" >&6; }
12283 else
12284 if test "$GCC" = "yes"; then
12285 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12286 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12287 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12289 $as_echo_n "checking for $ac_word... " >&6; }
12290 if ${ac_cv_path_orig_target_ld+:} false; then :
12291 $as_echo_n "(cached) " >&6
12292 else
12293 case $orig_target_ld in
12294 [\\/]* | ?:[\\/]*)
12295 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299 for as_dir in `dirname $aros_gcc_gcc`
12301 IFS=$as_save_IFS
12302 test -z "$as_dir" && as_dir=.
12303 for ac_exec_ext in '' $ac_executable_extensions; do
12304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12305 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307 break 2
12309 done
12310 done
12311 IFS=$as_save_IFS
12314 esac
12316 orig_target_ld=$ac_cv_path_orig_target_ld
12317 if test -n "$orig_target_ld"; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12319 $as_echo "$orig_target_ld" >&6; }
12320 else
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12327 if test "$orig_target_ld" = ""; then
12328 # Extract the first word of "gcc", so it can be a program name with args.
12329 set dummy gcc; ac_word=$2
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12331 $as_echo_n "checking for $ac_word... " >&6; }
12332 if ${ac_cv_path_orig_target_ld+:} false; then :
12333 $as_echo_n "(cached) " >&6
12334 else
12335 case $orig_target_ld in
12336 [\\/]* | ?:[\\/]*)
12337 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341 for as_dir in $PATH
12343 IFS=$as_save_IFS
12344 test -z "$as_dir" && as_dir=.
12345 for ac_exec_ext in '' $ac_executable_extensions; do
12346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12347 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12349 break 2
12351 done
12352 done
12353 IFS=$as_save_IFS
12356 esac
12358 orig_target_ld=$ac_cv_path_orig_target_ld
12359 if test -n "$orig_target_ld"; then
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12361 $as_echo "$orig_target_ld" >&6; }
12362 else
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364 $as_echo "no" >&6; }
12370 else
12371 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12372 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12373 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375 $as_echo_n "checking for $ac_word... " >&6; }
12376 if ${ac_cv_path_orig_target_ld+:} false; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 case $orig_target_ld in
12380 [\\/]* | ?:[\\/]*)
12381 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12387 IFS=$as_save_IFS
12388 test -z "$as_dir" && as_dir=.
12389 for ac_exec_ext in '' $ac_executable_extensions; do
12390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12391 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12393 break 2
12395 done
12396 done
12397 IFS=$as_save_IFS
12400 esac
12402 orig_target_ld=$ac_cv_path_orig_target_ld
12403 if test -n "$orig_target_ld"; then
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12405 $as_echo "$orig_target_ld" >&6; }
12406 else
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408 $as_echo "no" >&6; }
12412 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12415 req_avail=yes
12416 if test "$orig_target_ld" = ""; then
12417 req_avail=no
12419 if test "$orig_target_ld" = "no"; then
12420 req_avail=no
12422 if test "$req_avail" = "no"; then
12423 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12426 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12427 if test "$cross_compiling" = "yes" ; then
12428 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12429 set dummy ${target_tool_prefix}as; ac_word=$2
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12431 $as_echo_n "checking for $ac_word... " >&6; }
12432 if ${ac_cv_path_orig_target_as+:} false; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 case $orig_target_as in
12436 [\\/]* | ?:[\\/]*)
12437 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441 for as_dir in $PATH
12443 IFS=$as_save_IFS
12444 test -z "$as_dir" && as_dir=.
12445 for ac_exec_ext in '' $ac_executable_extensions; do
12446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12447 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12449 break 2
12451 done
12452 done
12453 IFS=$as_save_IFS
12456 esac
12458 orig_target_as=$ac_cv_path_orig_target_as
12459 if test -n "$orig_target_as"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12461 $as_echo "$orig_target_as" >&6; }
12462 else
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12468 else
12469 if test "$GCC" = "yes"; then
12470 aros_gcc_as=`$CC -print-prog-name=as`
12471 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12472 set dummy `basename $aros_gcc_as`; ac_word=$2
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12474 $as_echo_n "checking for $ac_word... " >&6; }
12475 if ${ac_cv_path_orig_target_as+:} false; then :
12476 $as_echo_n "(cached) " >&6
12477 else
12478 case $orig_target_as in
12479 [\\/]* | ?:[\\/]*)
12480 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in `dirname $aros_gcc_as`
12486 IFS=$as_save_IFS
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 break 2
12494 done
12495 done
12496 IFS=$as_save_IFS
12499 esac
12501 orig_target_as=$ac_cv_path_orig_target_as
12502 if test -n "$orig_target_as"; then
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12504 $as_echo "$orig_target_as" >&6; }
12505 else
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507 $as_echo "no" >&6; }
12512 if test "$orig_target_as" = ""; then
12513 # Extract the first word of "as", so it can be a program name with args.
12514 set dummy as; ac_word=$2
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516 $as_echo_n "checking for $ac_word... " >&6; }
12517 if ${ac_cv_path_orig_target_as+:} false; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 case $orig_target_as in
12521 [\\/]* | ?:[\\/]*)
12522 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12528 IFS=$as_save_IFS
12529 test -z "$as_dir" && as_dir=.
12530 for ac_exec_ext in '' $ac_executable_extensions; do
12531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12532 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12534 break 2
12536 done
12537 done
12538 IFS=$as_save_IFS
12541 esac
12543 orig_target_as=$ac_cv_path_orig_target_as
12544 if test -n "$orig_target_as"; then
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12546 $as_echo "$orig_target_as" >&6; }
12547 else
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12555 else
12556 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12557 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12558 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12560 $as_echo_n "checking for $ac_word... " >&6; }
12561 if ${ac_cv_path_orig_target_as+:} false; then :
12562 $as_echo_n "(cached) " >&6
12563 else
12564 case $orig_target_as in
12565 [\\/]* | ?:[\\/]*)
12566 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570 for as_dir in $PATH
12572 IFS=$as_save_IFS
12573 test -z "$as_dir" && as_dir=.
12574 for ac_exec_ext in '' $ac_executable_extensions; do
12575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12576 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12578 break 2
12580 done
12581 done
12582 IFS=$as_save_IFS
12585 esac
12587 orig_target_as=$ac_cv_path_orig_target_as
12588 if test -n "$orig_target_as"; then
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12590 $as_echo "$orig_target_as" >&6; }
12591 else
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 $as_echo "no" >&6; }
12597 orig_target_as="$orig_target_as $ac_tool_optarg"
12600 req_avail=yes
12601 if test "$orig_target_as" = ""; then
12602 req_avail=no
12604 if test "$orig_target_as" = "no"; then
12605 req_avail=no
12607 if test "$req_avail" = "no"; then
12608 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12611 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12612 if test "$cross_compiling" = "yes" ; then
12613 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12614 set dummy ${target_tool_prefix}ar; ac_word=$2
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12616 $as_echo_n "checking for $ac_word... " >&6; }
12617 if ${ac_cv_path_orig_target_ar+:} false; then :
12618 $as_echo_n "(cached) " >&6
12619 else
12620 case $orig_target_ar in
12621 [\\/]* | ?:[\\/]*)
12622 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in $PATH
12628 IFS=$as_save_IFS
12629 test -z "$as_dir" && as_dir=.
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12632 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12634 break 2
12636 done
12637 done
12638 IFS=$as_save_IFS
12641 esac
12643 orig_target_ar=$ac_cv_path_orig_target_ar
12644 if test -n "$orig_target_ar"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12646 $as_echo "$orig_target_ar" >&6; }
12647 else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12653 else
12654 if test "$GCC" = "yes"; then
12655 aros_gcc_ar=`$CC -print-prog-name=ar`
12656 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12657 set dummy `basename $aros_gcc_ar`; ac_word=$2
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659 $as_echo_n "checking for $ac_word... " >&6; }
12660 if ${ac_cv_path_orig_target_ar+:} false; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 case $orig_target_ar in
12664 [\\/]* | ?:[\\/]*)
12665 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669 for as_dir in `dirname $aros_gcc_ar`
12671 IFS=$as_save_IFS
12672 test -z "$as_dir" && as_dir=.
12673 for ac_exec_ext in '' $ac_executable_extensions; do
12674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12675 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12677 break 2
12679 done
12680 done
12681 IFS=$as_save_IFS
12684 esac
12686 orig_target_ar=$ac_cv_path_orig_target_ar
12687 if test -n "$orig_target_ar"; then
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12689 $as_echo "$orig_target_ar" >&6; }
12690 else
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 $as_echo "no" >&6; }
12697 if test "$orig_target_ar" = ""; then
12698 # Extract the first word of "ar", so it can be a program name with args.
12699 set dummy ar; ac_word=$2
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12701 $as_echo_n "checking for $ac_word... " >&6; }
12702 if ${ac_cv_path_orig_target_ar+:} false; then :
12703 $as_echo_n "(cached) " >&6
12704 else
12705 case $orig_target_ar in
12706 [\\/]* | ?:[\\/]*)
12707 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711 for as_dir in $PATH
12713 IFS=$as_save_IFS
12714 test -z "$as_dir" && as_dir=.
12715 for ac_exec_ext in '' $ac_executable_extensions; do
12716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12717 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12719 break 2
12721 done
12722 done
12723 IFS=$as_save_IFS
12726 esac
12728 orig_target_ar=$ac_cv_path_orig_target_ar
12729 if test -n "$orig_target_ar"; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12731 $as_echo "$orig_target_ar" >&6; }
12732 else
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12740 else
12741 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12742 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12743 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745 $as_echo_n "checking for $ac_word... " >&6; }
12746 if ${ac_cv_path_orig_target_ar+:} false; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 case $orig_target_ar in
12750 [\\/]* | ?:[\\/]*)
12751 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755 for as_dir in $PATH
12757 IFS=$as_save_IFS
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12761 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12763 break 2
12765 done
12766 done
12767 IFS=$as_save_IFS
12770 esac
12772 orig_target_ar=$ac_cv_path_orig_target_ar
12773 if test -n "$orig_target_ar"; then
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12775 $as_echo "$orig_target_ar" >&6; }
12776 else
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778 $as_echo "no" >&6; }
12782 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12785 req_avail=yes
12786 if test "$orig_target_ar" = ""; then
12787 req_avail=no
12789 if test "$orig_target_ar" = "no"; then
12790 req_avail=no
12792 if test "$req_avail" = "no"; then
12793 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12796 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12797 if test "$cross_compiling" = "yes" ; then
12798 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12799 set dummy ${target_tool_prefix}ar; ac_word=$2
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801 $as_echo_n "checking for $ac_word... " >&6; }
12802 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12803 $as_echo_n "(cached) " >&6
12804 else
12805 case $orig_target_ranlib in
12806 [\\/]* | ?:[\\/]*)
12807 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12811 for as_dir in $PATH
12813 IFS=$as_save_IFS
12814 test -z "$as_dir" && as_dir=.
12815 for ac_exec_ext in '' $ac_executable_extensions; do
12816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12817 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12819 break 2
12821 done
12822 done
12823 IFS=$as_save_IFS
12826 esac
12828 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12829 if test -n "$orig_target_ranlib"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12831 $as_echo "$orig_target_ranlib" >&6; }
12832 else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834 $as_echo "no" >&6; }
12838 else
12839 if test "$GCC" = "yes"; then
12840 aros_gcc_ar=`$CC -print-prog-name=ar`
12841 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12842 set dummy `basename $aros_gcc_ar`; ac_word=$2
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12844 $as_echo_n "checking for $ac_word... " >&6; }
12845 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12846 $as_echo_n "(cached) " >&6
12847 else
12848 case $orig_target_ranlib in
12849 [\\/]* | ?:[\\/]*)
12850 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854 for as_dir in `dirname $aros_gcc_ar`
12856 IFS=$as_save_IFS
12857 test -z "$as_dir" && as_dir=.
12858 for ac_exec_ext in '' $ac_executable_extensions; do
12859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12860 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12862 break 2
12864 done
12865 done
12866 IFS=$as_save_IFS
12869 esac
12871 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12872 if test -n "$orig_target_ranlib"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12874 $as_echo "$orig_target_ranlib" >&6; }
12875 else
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12882 if test "$orig_target_ranlib" = ""; then
12883 # Extract the first word of "ar", so it can be a program name with args.
12884 set dummy ar; ac_word=$2
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12886 $as_echo_n "checking for $ac_word... " >&6; }
12887 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 case $orig_target_ranlib in
12891 [\\/]* | ?:[\\/]*)
12892 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896 for as_dir in $PATH
12898 IFS=$as_save_IFS
12899 test -z "$as_dir" && as_dir=.
12900 for ac_exec_ext in '' $ac_executable_extensions; do
12901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12902 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12904 break 2
12906 done
12907 done
12908 IFS=$as_save_IFS
12911 esac
12913 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12914 if test -n "$orig_target_ranlib"; then
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12916 $as_echo "$orig_target_ranlib" >&6; }
12917 else
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919 $as_echo "no" >&6; }
12925 else
12926 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12927 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12928 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12930 $as_echo_n "checking for $ac_word... " >&6; }
12931 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 case $orig_target_ranlib in
12935 [\\/]* | ?:[\\/]*)
12936 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12940 for as_dir in $PATH
12942 IFS=$as_save_IFS
12943 test -z "$as_dir" && as_dir=.
12944 for ac_exec_ext in '' $ac_executable_extensions; do
12945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12946 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12948 break 2
12950 done
12951 done
12952 IFS=$as_save_IFS
12955 esac
12957 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12958 if test -n "$orig_target_ranlib"; then
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12960 $as_echo "$orig_target_ranlib" >&6; }
12961 else
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12967 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12970 req_avail=yes
12971 if test "$orig_target_ranlib" = ""; then
12972 req_avail=no
12974 if test "$orig_target_ranlib" = "no"; then
12975 req_avail=no
12977 if test "$req_avail" = "no"; then
12978 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12981 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12982 if test "$cross_compiling" = "yes" ; then
12983 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12984 set dummy ${target_tool_prefix}nm; ac_word=$2
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12986 $as_echo_n "checking for $ac_word... " >&6; }
12987 if ${ac_cv_path_orig_target_nm+:} false; then :
12988 $as_echo_n "(cached) " >&6
12989 else
12990 case $orig_target_nm in
12991 [\\/]* | ?:[\\/]*)
12992 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996 for as_dir in $PATH
12998 IFS=$as_save_IFS
12999 test -z "$as_dir" && as_dir=.
13000 for ac_exec_ext in '' $ac_executable_extensions; do
13001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13002 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13004 break 2
13006 done
13007 done
13008 IFS=$as_save_IFS
13011 esac
13013 orig_target_nm=$ac_cv_path_orig_target_nm
13014 if test -n "$orig_target_nm"; then
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13016 $as_echo "$orig_target_nm" >&6; }
13017 else
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13019 $as_echo "no" >&6; }
13023 else
13024 if test "$GCC" = "yes"; then
13025 aros_gcc_nm=`$CC -print-prog-name=nm`
13026 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13027 set dummy `basename $aros_gcc_nm`; ac_word=$2
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13029 $as_echo_n "checking for $ac_word... " >&6; }
13030 if ${ac_cv_path_orig_target_nm+:} false; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033 case $orig_target_nm in
13034 [\\/]* | ?:[\\/]*)
13035 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13039 for as_dir in `dirname $aros_gcc_nm`
13041 IFS=$as_save_IFS
13042 test -z "$as_dir" && as_dir=.
13043 for ac_exec_ext in '' $ac_executable_extensions; do
13044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13045 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13047 break 2
13049 done
13050 done
13051 IFS=$as_save_IFS
13054 esac
13056 orig_target_nm=$ac_cv_path_orig_target_nm
13057 if test -n "$orig_target_nm"; then
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13059 $as_echo "$orig_target_nm" >&6; }
13060 else
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13062 $as_echo "no" >&6; }
13067 if test "$orig_target_nm" = ""; then
13068 # Extract the first word of "nm", so it can be a program name with args.
13069 set dummy nm; ac_word=$2
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13071 $as_echo_n "checking for $ac_word... " >&6; }
13072 if ${ac_cv_path_orig_target_nm+:} false; then :
13073 $as_echo_n "(cached) " >&6
13074 else
13075 case $orig_target_nm in
13076 [\\/]* | ?:[\\/]*)
13077 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13081 for as_dir in $PATH
13083 IFS=$as_save_IFS
13084 test -z "$as_dir" && as_dir=.
13085 for ac_exec_ext in '' $ac_executable_extensions; do
13086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13087 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13089 break 2
13091 done
13092 done
13093 IFS=$as_save_IFS
13096 esac
13098 orig_target_nm=$ac_cv_path_orig_target_nm
13099 if test -n "$orig_target_nm"; then
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13101 $as_echo "$orig_target_nm" >&6; }
13102 else
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104 $as_echo "no" >&6; }
13110 else
13111 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13112 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13113 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13115 $as_echo_n "checking for $ac_word... " >&6; }
13116 if ${ac_cv_path_orig_target_nm+:} false; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13119 case $orig_target_nm in
13120 [\\/]* | ?:[\\/]*)
13121 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 for as_dir in $PATH
13127 IFS=$as_save_IFS
13128 test -z "$as_dir" && as_dir=.
13129 for ac_exec_ext in '' $ac_executable_extensions; do
13130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13131 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13133 break 2
13135 done
13136 done
13137 IFS=$as_save_IFS
13140 esac
13142 orig_target_nm=$ac_cv_path_orig_target_nm
13143 if test -n "$orig_target_nm"; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13145 $as_echo "$orig_target_nm" >&6; }
13146 else
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13152 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13155 req_avail=yes
13156 if test "$orig_target_nm" = ""; then
13157 req_avail=no
13159 if test "$orig_target_nm" = "no"; then
13160 req_avail=no
13162 if test "$req_avail" = "no"; then
13163 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13166 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13167 if test "$cross_compiling" = "yes" ; then
13168 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13169 set dummy ${target_tool_prefix}strip; ac_word=$2
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13171 $as_echo_n "checking for $ac_word... " >&6; }
13172 if ${ac_cv_path_orig_target_strip+:} false; then :
13173 $as_echo_n "(cached) " >&6
13174 else
13175 case $orig_target_strip in
13176 [\\/]* | ?:[\\/]*)
13177 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181 for as_dir in $PATH
13183 IFS=$as_save_IFS
13184 test -z "$as_dir" && as_dir=.
13185 for ac_exec_ext in '' $ac_executable_extensions; do
13186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13187 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13189 break 2
13191 done
13192 done
13193 IFS=$as_save_IFS
13196 esac
13198 orig_target_strip=$ac_cv_path_orig_target_strip
13199 if test -n "$orig_target_strip"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13201 $as_echo "$orig_target_strip" >&6; }
13202 else
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204 $as_echo "no" >&6; }
13208 else
13209 if test "$GCC" = "yes"; then
13210 aros_gcc_strip=`$CC -print-prog-name=strip`
13211 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13212 set dummy `basename $aros_gcc_strip`; ac_word=$2
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214 $as_echo_n "checking for $ac_word... " >&6; }
13215 if ${ac_cv_path_orig_target_strip+:} false; then :
13216 $as_echo_n "(cached) " >&6
13217 else
13218 case $orig_target_strip in
13219 [\\/]* | ?:[\\/]*)
13220 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 for as_dir in `dirname $aros_gcc_strip`
13226 IFS=$as_save_IFS
13227 test -z "$as_dir" && as_dir=.
13228 for ac_exec_ext in '' $ac_executable_extensions; do
13229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13230 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13232 break 2
13234 done
13235 done
13236 IFS=$as_save_IFS
13239 esac
13241 orig_target_strip=$ac_cv_path_orig_target_strip
13242 if test -n "$orig_target_strip"; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13244 $as_echo "$orig_target_strip" >&6; }
13245 else
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13247 $as_echo "no" >&6; }
13252 if test "$orig_target_strip" = ""; then
13253 # Extract the first word of "strip", so it can be a program name with args.
13254 set dummy strip; ac_word=$2
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13256 $as_echo_n "checking for $ac_word... " >&6; }
13257 if ${ac_cv_path_orig_target_strip+:} false; then :
13258 $as_echo_n "(cached) " >&6
13259 else
13260 case $orig_target_strip in
13261 [\\/]* | ?:[\\/]*)
13262 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13266 for as_dir in $PATH
13268 IFS=$as_save_IFS
13269 test -z "$as_dir" && as_dir=.
13270 for ac_exec_ext in '' $ac_executable_extensions; do
13271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13272 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13274 break 2
13276 done
13277 done
13278 IFS=$as_save_IFS
13281 esac
13283 orig_target_strip=$ac_cv_path_orig_target_strip
13284 if test -n "$orig_target_strip"; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13286 $as_echo "$orig_target_strip" >&6; }
13287 else
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289 $as_echo "no" >&6; }
13295 else
13296 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13297 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13298 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300 $as_echo_n "checking for $ac_word... " >&6; }
13301 if ${ac_cv_path_orig_target_strip+:} false; then :
13302 $as_echo_n "(cached) " >&6
13303 else
13304 case $orig_target_strip in
13305 [\\/]* | ?:[\\/]*)
13306 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310 for as_dir in $PATH
13312 IFS=$as_save_IFS
13313 test -z "$as_dir" && as_dir=.
13314 for ac_exec_ext in '' $ac_executable_extensions; do
13315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13316 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 break 2
13320 done
13321 done
13322 IFS=$as_save_IFS
13325 esac
13327 orig_target_strip=$ac_cv_path_orig_target_strip
13328 if test -n "$orig_target_strip"; then
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13330 $as_echo "$orig_target_strip" >&6; }
13331 else
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333 $as_echo "no" >&6; }
13337 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13340 req_avail=yes
13341 if test "$orig_target_strip" = ""; then
13342 req_avail=no
13344 if test "$orig_target_strip" = "no"; then
13345 req_avail=no
13347 if test "$req_avail" = "no"; then
13348 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13351 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13352 if test "$cross_compiling" = "yes" ; then
13353 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13354 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356 $as_echo_n "checking for $ac_word... " >&6; }
13357 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13358 $as_echo_n "(cached) " >&6
13359 else
13360 case $orig_target_objcopy in
13361 [\\/]* | ?:[\\/]*)
13362 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366 for as_dir in $PATH
13368 IFS=$as_save_IFS
13369 test -z "$as_dir" && as_dir=.
13370 for ac_exec_ext in '' $ac_executable_extensions; do
13371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13372 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13374 break 2
13376 done
13377 done
13378 IFS=$as_save_IFS
13381 esac
13383 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13384 if test -n "$orig_target_objcopy"; then
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13386 $as_echo "$orig_target_objcopy" >&6; }
13387 else
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }
13393 else
13394 if test "$GCC" = "yes"; then
13395 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13396 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13397 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13399 $as_echo_n "checking for $ac_word... " >&6; }
13400 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13401 $as_echo_n "(cached) " >&6
13402 else
13403 case $orig_target_objcopy in
13404 [\\/]* | ?:[\\/]*)
13405 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409 for as_dir in `dirname $aros_gcc_objcopy`
13411 IFS=$as_save_IFS
13412 test -z "$as_dir" && as_dir=.
13413 for ac_exec_ext in '' $ac_executable_extensions; do
13414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13415 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13417 break 2
13419 done
13420 done
13421 IFS=$as_save_IFS
13424 esac
13426 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13427 if test -n "$orig_target_objcopy"; then
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13429 $as_echo "$orig_target_objcopy" >&6; }
13430 else
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432 $as_echo "no" >&6; }
13437 if test "$orig_target_objcopy" = ""; then
13438 # Extract the first word of "objcopy", so it can be a program name with args.
13439 set dummy objcopy; ac_word=$2
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441 $as_echo_n "checking for $ac_word... " >&6; }
13442 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 case $orig_target_objcopy in
13446 [\\/]* | ?:[\\/]*)
13447 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451 for as_dir in $PATH
13453 IFS=$as_save_IFS
13454 test -z "$as_dir" && as_dir=.
13455 for ac_exec_ext in '' $ac_executable_extensions; do
13456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13457 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13459 break 2
13461 done
13462 done
13463 IFS=$as_save_IFS
13466 esac
13468 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13469 if test -n "$orig_target_objcopy"; then
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13471 $as_echo "$orig_target_objcopy" >&6; }
13472 else
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13474 $as_echo "no" >&6; }
13480 else
13481 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13482 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13483 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13485 $as_echo_n "checking for $ac_word... " >&6; }
13486 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13487 $as_echo_n "(cached) " >&6
13488 else
13489 case $orig_target_objcopy in
13490 [\\/]* | ?:[\\/]*)
13491 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13495 for as_dir in $PATH
13497 IFS=$as_save_IFS
13498 test -z "$as_dir" && as_dir=.
13499 for ac_exec_ext in '' $ac_executable_extensions; do
13500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13501 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13503 break 2
13505 done
13506 done
13507 IFS=$as_save_IFS
13510 esac
13512 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13513 if test -n "$orig_target_objcopy"; then
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13515 $as_echo "$orig_target_objcopy" >&6; }
13516 else
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518 $as_echo "no" >&6; }
13522 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13525 req_avail=yes
13526 if test "$orig_target_objcopy" = ""; then
13527 req_avail=no
13529 if test "$orig_target_objcopy" = "no"; then
13530 req_avail=no
13532 if test "$req_avail" = "no"; then
13533 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13536 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13537 if test "$cross_compiling" = "yes" ; then
13538 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13539 set dummy ${target_tool_prefix}objdump; ac_word=$2
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541 $as_echo_n "checking for $ac_word... " >&6; }
13542 if ${ac_cv_path_orig_target_objdump+:} false; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 case $orig_target_objdump in
13546 [\\/]* | ?:[\\/]*)
13547 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13551 for as_dir in $PATH
13553 IFS=$as_save_IFS
13554 test -z "$as_dir" && as_dir=.
13555 for ac_exec_ext in '' $ac_executable_extensions; do
13556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13557 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13559 break 2
13561 done
13562 done
13563 IFS=$as_save_IFS
13566 esac
13568 orig_target_objdump=$ac_cv_path_orig_target_objdump
13569 if test -n "$orig_target_objdump"; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13571 $as_echo "$orig_target_objdump" >&6; }
13572 else
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574 $as_echo "no" >&6; }
13578 else
13579 if test "$GCC" = "yes"; then
13580 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13581 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13582 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13584 $as_echo_n "checking for $ac_word... " >&6; }
13585 if ${ac_cv_path_orig_target_objdump+:} false; then :
13586 $as_echo_n "(cached) " >&6
13587 else
13588 case $orig_target_objdump in
13589 [\\/]* | ?:[\\/]*)
13590 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594 for as_dir in `dirname $aros_gcc_objdump`
13596 IFS=$as_save_IFS
13597 test -z "$as_dir" && as_dir=.
13598 for ac_exec_ext in '' $ac_executable_extensions; do
13599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13600 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13602 break 2
13604 done
13605 done
13606 IFS=$as_save_IFS
13609 esac
13611 orig_target_objdump=$ac_cv_path_orig_target_objdump
13612 if test -n "$orig_target_objdump"; then
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13614 $as_echo "$orig_target_objdump" >&6; }
13615 else
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13617 $as_echo "no" >&6; }
13622 if test "$orig_target_objdump" = ""; then
13623 # Extract the first word of "objdump", so it can be a program name with args.
13624 set dummy objdump; ac_word=$2
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13626 $as_echo_n "checking for $ac_word... " >&6; }
13627 if ${ac_cv_path_orig_target_objdump+:} false; then :
13628 $as_echo_n "(cached) " >&6
13629 else
13630 case $orig_target_objdump in
13631 [\\/]* | ?:[\\/]*)
13632 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13636 for as_dir in $PATH
13638 IFS=$as_save_IFS
13639 test -z "$as_dir" && as_dir=.
13640 for ac_exec_ext in '' $ac_executable_extensions; do
13641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13642 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13644 break 2
13646 done
13647 done
13648 IFS=$as_save_IFS
13651 esac
13653 orig_target_objdump=$ac_cv_path_orig_target_objdump
13654 if test -n "$orig_target_objdump"; then
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13656 $as_echo "$orig_target_objdump" >&6; }
13657 else
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659 $as_echo "no" >&6; }
13665 else
13666 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13667 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13668 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13670 $as_echo_n "checking for $ac_word... " >&6; }
13671 if ${ac_cv_path_orig_target_objdump+:} false; then :
13672 $as_echo_n "(cached) " >&6
13673 else
13674 case $orig_target_objdump in
13675 [\\/]* | ?:[\\/]*)
13676 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680 for as_dir in $PATH
13682 IFS=$as_save_IFS
13683 test -z "$as_dir" && as_dir=.
13684 for ac_exec_ext in '' $ac_executable_extensions; do
13685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13686 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13688 break 2
13690 done
13691 done
13692 IFS=$as_save_IFS
13695 esac
13697 orig_target_objdump=$ac_cv_path_orig_target_objdump
13698 if test -n "$orig_target_objdump"; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13700 $as_echo "$orig_target_objdump" >&6; }
13701 else
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703 $as_echo "no" >&6; }
13707 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13710 req_avail=yes
13711 if test "$orig_target_objdump" = ""; then
13712 req_avail=no
13714 if test "$orig_target_objdump" = "no"; then
13715 req_avail=no
13717 if test "$req_avail" = "no"; then
13718 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13722 if test "$kernel_tool_prefix" = "none" ; then
13723 # No kernel tools specified
13724 # Assume target tools == kernel tools with ELF wrapper
13725 aros_kernel_cc=$orig_target_cc
13726 aros_kernel_cxx=$orig_target_cxx
13727 aros_kernel_cpp=$orig_target_cpp
13728 aros_kernel_ld=$orig_target_ld
13729 aros_kernel_as=$orig_target_as
13730 aros_kernel_ar=$orig_target_ar
13731 aros_kernel_ranlib=$orig_target_ranlib
13732 aros_kernel_nm=$orig_target_nm
13733 aros_kernel_strip=$orig_target_strip
13734 aros_kernel_objcopy=$orig_target_objcopy
13735 aros_kernel_objdump=$orig_target_objdump
13736 use_kernel_cc_wrapper=yes
13739 # At this point, all aros_kernel_* and aros_target_*
13740 # tools should be set up correctly
13742 CC="$aros_kernel_cc $kernel_tool_flags"
13743 CPP="$aros_kernel_cpp"
13745 #-----------------------------------------------------------------------------
13747 # Find all the tools we need to compile. This could be cross-compiling
13748 # though! If that is the case we use the GNU form of the target and
13749 # simply add this to the front of the binary name. This is rather simple,
13750 # but it should work under most circumstances.
13752 # The default tools are to use the same as the host, but only if the
13753 # host and target CPU are the same. With GCC this is normally enough.
13756 aros_cc_pre=""
13757 aros_shared_ld="$aros_host_ld"
13759 aros_target_mkdep="$aros_host_mkdep"
13761 # The default tools executables to be linked to.
13762 if test "$rescomp" != ""; then
13763 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13764 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13766 $as_echo_n "checking for $ac_word... " >&6; }
13767 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13768 $as_echo_n "(cached) " >&6
13769 else
13770 case $aros_kernel_rescomp in
13771 [\\/]* | ?:[\\/]*)
13772 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13776 for as_dir in $PATH
13778 IFS=$as_save_IFS
13779 test -z "$as_dir" && as_dir=.
13780 for ac_exec_ext in '' $ac_executable_extensions; do
13781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13782 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13784 break 2
13786 done
13787 done
13788 IFS=$as_save_IFS
13791 esac
13793 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13794 if test -n "$aros_kernel_rescomp"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13796 $as_echo "$aros_kernel_rescomp" >&6; }
13797 else
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799 $as_echo "no" >&6; }
13803 req_avail=yes
13804 if test "$aros_kernel_rescomp" = ""; then
13805 req_avail=no
13807 if test "$aros_kernel_rescomp" = "no"; then
13808 req_avail=no
13810 if test "$req_avail" = "no"; then
13811 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13815 # Set up the sources for the symlink farm
13816 if test "$crosstools" = "yes"; then
13817 crosstools_target=tools-crosstools
13820 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13821 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13823 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13824 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13825 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13826 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13827 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13828 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13829 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13831 # aros_cc_pre is a variable that is added to the front of the compiler name
13832 # in the generated aros-gcc shell script. We need this to enable the cache
13833 # to work across cleaned builds. Also, support DISTCC using the correct
13834 # environment variable.
13837 if test "x${DISTCC}" != "x" ; then
13838 if test "x${CCACHE}" != "x" ; then
13839 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13840 else
13841 aros_cc_pre="${DISTCC} "
13843 else
13844 if test "x${CCACHE}" != "x" ; then
13845 aros_cc_pre="${CCACHE} "
13849 aros_target_nostdinc_cflags=-nostdinc
13851 aros_target_nostartup_ldflags=-nostartfiles
13853 aros_target_nix_ldflags=-nix
13855 aros_target_detach_ldflags=-detach
13857 aros_target_nostdlib_ldflags=-nostdlib
13860 aros_target_cc_path=
13862 # Target tools
13864 if test "$aros_target_toolchain" != "yes"; then
13865 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13866 if test "$GCC" = "yes"; then
13867 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13869 else
13870 # We do not know which c compiler version we are going to build and what we need to know
13871 # here is different for different versions so this will be set later during the
13872 # build of crosstools.
13873 if test "$aros_toolchain" = "gnu" ; then
13874 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13875 elif test "$aros_toolchain" = "llvm" ; then
13876 prefix="$AROS_CROSSTOOLSDIR/bin/"
13878 aros_target_cc_path=@aros_target_cc_path@
13880 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13881 aros_target_cc="${prefix}${toolchain_c_compiler}"
13882 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13883 aros_target_as="${prefix}${toolchain_as}"
13884 if test "${use_ld_wrapper}" = "yes"; then
13885 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13886 else
13887 aros_target_ld="${prefix}${toolchain_ld}"
13889 aros_toolchain_ld="${prefix}${toolchain_ld}"
13891 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13892 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13893 aros_target_objdump="${prefix}${toolchain_objdump}"
13894 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13895 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13896 aros_target_strip="${prefix}${toolchain_strip}"
13897 aros_plain_nm="${prefix}${toolchain_nm}"
13898 aros_plain_ar="${prefix}${toolchain_ar}"
13900 # Check whether --enable-includes was given.
13901 if test "${enable_includes+set}" = set; then :
13902 enableval=$enable_includes; aros_target_incl=$enable_includes
13903 else
13904 aros_target_incl=no
13908 if test "x$aros_target_incl" = "xno"; then
13909 if test "x$test_kernel_cc" != "xno"; then
13910 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13911 else
13912 aros_target_incl=
13916 if test "x$aros_kernel_includes" = "x"; then
13917 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13918 if test "x$aros_target_incl" != "x"; then
13919 aros_kernel_includes="-isystem $aros_target_incl"
13924 if test "x$test_kernel_cc" != "xno"; then
13925 if test "$aros_kernel_includes" != "" ; then
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13927 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13928 if test "$aros_kernel_cc_includes" = "" ; then
13929 # Try to guess where the directory is.
13930 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13931 if test -d $aros_kernel_cc_includes; then
13932 # Check if there is also an include-fixed directory and add it
13933 # to kernel compiler's include path as it may contain some of
13934 # the headers we need.
13935 if test -d "$aros_kernel_cc_includes"-fixed; then
13936 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13938 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13939 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13940 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13942 else
13943 # The directory doesn't exist, we need to do some more work.
13944 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13946 # These are the headers we're looking for.
13947 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13948 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13949 zutil.h stdint.h"
13951 dirs=
13952 for h in $headers; do
13953 # Which other headers are needed by each of the above?
13954 deps=$(echo "#include <$h>" | \
13955 $aros_kernel_cc -E -M - 2>/dev/null | \
13956 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13958 # Copy all the needed headers to a directory beneath gendir.
13959 for d in $deps; do
13960 h=$(basename $d)
13961 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13962 sed -n "s,^.*/include\(/.*\),\1,p")
13963 ! test -d $dir && mkdir -p $dir
13964 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13965 done
13966 done
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13970 $as_echo "$aros_kernel_cc_includes" >&6; }
13971 # Adding -nostdinc to kernel includes as they are always used together.
13972 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13976 if test "$crosstools" != "yes"; then
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13978 $as_echo_n "checking for the target compiler's include path... " >&6; }
13979 if test "$aros_target_cc_includes" = "" ; then
13980 #try to guess where the directory is
13981 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13982 if ! test -d $aros_target_cc_includes; then
13983 #the directory doesn't exist, we need to do some more work
13984 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13986 #these are the headers we're looking for
13987 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13988 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13989 zutil.h"
13991 dirs=
13992 for h in $headers; do
13993 #which other headers each of the above headers needs?
13994 deps=$(echo "#include <$h>" | \
13995 $orig_target_cc -E -M - 2>/dev/null | \
13996 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13998 #copy all the needed headers to a directory beneath gendir
13999 for d in $deps; do
14000 h=$(basename $d)
14001 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
14002 sed -n "s,^.*/include\(/.*\),\1,p")
14003 ! test -d $dir && mkdir -p $dir
14004 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14005 done
14006 done
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14010 $as_echo "$aros_target_cc_includes" >&6; }
14011 else
14012 # We do not know which c compiler version we are going to build and what we need to know
14013 # here is different for different versions so this will be set later during the
14014 # build of crosstools.
14015 aros_target_cc_includes=@aros_target_cc_includes@
14019 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14020 # On GCC >= 4.0 -iquote should be used
14023 save_cc="$CC"
14024 save_cflags="$CFLAGS"
14025 if test "x$test_kernel_cc" != "xno"; then
14026 CFLAGS="-iquote."
14027 kernel_cflags_iquote=$host_cflags_iquote
14028 kernel_cflags_iquote_end=$host_cflags_iquote_end
14029 if test "x-$cross_compiling" = "x-yes"; then
14030 CC="$aros_kernel_cc"
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14032 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14033 if test "x-$crosstools" != "x-yes"; then
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14038 main ()
14042 return 0;
14044 _ACEOF
14045 if ac_fn_c_try_compile "$LINENO"; then :
14046 use_no_stack_protector="yes"
14047 else
14048 use_no_stack_protector="no"
14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051 else
14052 # we do know it is supported for the smallest version of gcc we are going to build
14053 # we assume it's also supported by later versions
14054 use_no_stack_protector=yes
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14057 $as_echo "$use_no_stack_protector" >&6; }
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14059 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14060 if test "x-$crosstools" != "x-yes"; then
14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h. */
14065 main ()
14069 return 0;
14071 _ACEOF
14072 if ac_fn_c_try_compile "$LINENO"; then :
14073 has_iquote="yes"
14074 else
14075 has_iquote="no"
14077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078 else
14079 # we do know it is supported for the smallest version of gcc we are going to build
14080 # we assume it's also supported by later versions
14081 has_iquote=yes
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14084 $as_echo "$has_iquote" >&6; }
14085 if test "x-$has_iquote" = "x-yes" ; then
14086 kernel_cflags_iquote=-iquote
14087 kernel_cflags_iquote_end=
14088 else
14089 kernel_cflags_iquote=-I
14090 kernel_cflags_iquote_end=-I-
14093 if test "x-$use_no_stack_protector" = "x-yes" ; then
14094 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
14097 #-----------------------------------------------------------------------------
14099 # Check if we can explicitly choose older version of symbol hashing
14101 CFLAGS="save_cflags -Wl,--hash-style=sysv"
14102 CC="$aros_kernel_cc"
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14104 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14109 main ()
14113 return 0;
14115 _ACEOF
14116 if ac_fn_c_try_link "$LINENO"; then :
14117 use_hash_style="yes"
14118 else
14119 use_hash_style="no"
14121 rm -f core conftest.err conftest.$ac_objext \
14122 conftest$ac_exeext conftest.$ac_ext
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14124 $as_echo "$use_hash_style" >&6; }
14125 if test "x-$use_hash_style" = "x-yes" ; then
14126 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
14128 else
14129 kernel_cflags_iquote="$""(CFLAGS_IQUOTE)"
14130 kernel_cflags_iquote_end="$""(CFLAGS_IQUOTE_END)"
14132 CC="$save_cc"
14133 CFLAGS="$save_cflags"
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14142 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14144 # Check whether --with-resolution was given.
14145 if test "${with_resolution+set}" = set; then :
14146 withval=$with_resolution; resolution=$withval
14147 else
14148 resolution=none
14151 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14152 if test "$resolution" = "yes" ; then
14153 resolution="none"
14155 if test "$resolution" = "no" ; then
14156 resolution="none"
14158 if test "$resolution" != "none" ; then
14159 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14160 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14161 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14164 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14165 aros_cv_nominal_width=$aros_nominal_width
14166 aros_cv_nominal_height=$aros_nominal_height
14167 aros_cv_nominal_depth=$aros_nominal_depth
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14170 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14172 # Check whether --with-serial-debug was given.
14173 if test "${with_serial_debug+set}" = set; then :
14174 withval=$with_serial_debug; serial_debug=$withval
14175 else
14176 serial_debug=none
14179 if test "$aros_serial_debug" = 0 ; then
14180 serial_debug_forced=""
14181 if test "$serial_debug" = "yes" ; then
14182 serial_debug="1"
14184 if test "$serial_debug" = "no" ; then
14185 serial_debug="none"
14187 else
14188 serial_debug_forced="(forced)"
14189 serial_debug=$aros_serial_debug
14191 if test "$serial_debug" != "none" ; then
14192 aros_serial_debug=$serial_debug
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14194 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14195 else
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14197 $as_echo "no" >&6; }
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14201 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14202 # Check whether --enable-palm_debug_hack was given.
14203 if test "${enable_palm_debug_hack+set}" = set; then :
14204 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14205 else
14206 palm_debug_hack="no"
14209 if test "$palm_debug_hack" = "yes" ; then
14210 aros_palm_debug_hack="1"
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14213 $as_echo "$palm_debug_hack" >&6; }
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14216 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14217 # Check whether --enable-usb30_code was given.
14218 if test "${enable_usb30_code+set}" = set; then :
14219 enableval=$enable_usb30_code; usb30_code="yes"
14220 else
14221 usb30_code="no"
14224 if test "$usb30_code" = "yes" ; then
14225 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14226 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14229 $as_echo "$usb30_code" >&6; }
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14232 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14233 # Check whether --enable-nesting_supervisor was given.
14234 if test "${enable_nesting_supervisor+set}" = set; then :
14235 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14236 else
14237 nesting_supervisor="no"
14240 if test "$nesting_supervisor" = "yes" ; then
14241 aros_nesting_supervisor="1"
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14244 $as_echo "$nesting_supervisor" >&6; }
14246 if test "$aros_enable_mmu" = "" ; then
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14248 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14249 # Check whether --enable-mmu was given.
14250 if test "${enable_mmu+set}" = set; then :
14251 enableval=$enable_mmu; aros_enable_mmu=$enableval
14252 else
14253 aros_enable_mmu="yes"
14256 if test "$aros_enable_mmu" = "" ; then
14257 aros_enable_mmu="yes"
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14260 $as_echo "$aros_enable_mmu" >&6; }
14262 if test "$aros_enable_mmu" = "no" ; then
14263 aros_enable_mmu="0"
14264 else
14265 aros_enable_mmu="1"
14269 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14271 if test "x-$need_dlopen" != "x-no" ; then
14272 save_libs="$LIBS"
14273 LIBS=""
14274 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14275 if test "x$ac_cv_func_dlopen" = xyes; then :
14276 have_dl="yes"
14277 else
14278 have_dl="no"
14281 if test "x-$have_dl" = "x-no" ; then
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14283 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14284 if ${ac_cv_lib_dl_dlopen+:} false; then :
14285 $as_echo_n "(cached) " >&6
14286 else
14287 ac_check_lib_save_LIBS=$LIBS
14288 LIBS="-ldl $LIBS"
14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14292 /* Override any GCC internal prototype to avoid an error.
14293 Use char because int might match the return type of a GCC
14294 builtin and then its argument prototype would still apply. */
14295 #ifdef __cplusplus
14296 extern "C"
14297 #endif
14298 char dlopen ();
14300 main ()
14302 return dlopen ();
14304 return 0;
14306 _ACEOF
14307 if ac_fn_c_try_link "$LINENO"; then :
14308 ac_cv_lib_dl_dlopen=yes
14309 else
14310 ac_cv_lib_dl_dlopen=no
14312 rm -f core conftest.err conftest.$ac_objext \
14313 conftest$ac_exeext conftest.$ac_ext
14314 LIBS=$ac_check_lib_save_LIBS
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14317 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14318 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14319 have_dl="yes"
14320 aros_host_ldflags="$aros_host_ldflags -ldl"
14321 else
14322 have_dl="no"
14326 if test "x-$have_dl" = "x-no" ; then
14327 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14329 LIBS="$save_libs"
14333 # Check whether --enable-x11_hidd was given.
14334 if test "${enable_x11_hidd+set}" = set; then :
14335 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14336 else
14337 x11_hidd="$need_x11"
14340 case "x-$x11_hidd" in
14341 x-yes|x-no|x-auto) ;;
14342 *) x11_hidd="$need_x11" ;;
14343 esac
14345 ENABLE_X11=0
14347 if test "x-$x11_hidd" != "x-no" ; then
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14350 $as_echo_n "checking for X... " >&6; }
14353 # Check whether --with-x was given.
14354 if test "${with_x+set}" = set; then :
14355 withval=$with_x;
14358 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14359 if test "x$with_x" = xno; then
14360 # The user explicitly disabled X.
14361 have_x=disabled
14362 else
14363 case $x_includes,$x_libraries in #(
14364 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14365 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14366 $as_echo_n "(cached) " >&6
14367 else
14368 # One or both of the vars are not set, and there is no cached value.
14369 ac_x_includes=no ac_x_libraries=no
14370 rm -f -r conftest.dir
14371 if mkdir conftest.dir; then
14372 cd conftest.dir
14373 cat >Imakefile <<'_ACEOF'
14374 incroot:
14375 @echo incroot='${INCROOT}'
14376 usrlibdir:
14377 @echo usrlibdir='${USRLIBDIR}'
14378 libdir:
14379 @echo libdir='${LIBDIR}'
14380 _ACEOF
14381 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14382 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14383 for ac_var in incroot usrlibdir libdir; do
14384 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14385 done
14386 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14387 for ac_extension in a so sl dylib la dll; do
14388 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14389 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14390 ac_im_usrlibdir=$ac_im_libdir; break
14392 done
14393 # Screen out bogus values from the imake configuration. They are
14394 # bogus both because they are the default anyway, and because
14395 # using them would break gcc on systems where it needs fixed includes.
14396 case $ac_im_incroot in
14397 /usr/include) ac_x_includes= ;;
14398 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14399 esac
14400 case $ac_im_usrlibdir in
14401 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14402 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14403 esac
14405 cd ..
14406 rm -f -r conftest.dir
14409 # Standard set of common directories for X headers.
14410 # Check X11 before X11Rn because it is often a symlink to the current release.
14411 ac_x_header_dirs='
14412 /usr/X11/include
14413 /usr/X11R7/include
14414 /usr/X11R6/include
14415 /usr/X11R5/include
14416 /usr/X11R4/include
14418 /usr/include/X11
14419 /usr/include/X11R7
14420 /usr/include/X11R6
14421 /usr/include/X11R5
14422 /usr/include/X11R4
14424 /usr/local/X11/include
14425 /usr/local/X11R7/include
14426 /usr/local/X11R6/include
14427 /usr/local/X11R5/include
14428 /usr/local/X11R4/include
14430 /usr/local/include/X11
14431 /usr/local/include/X11R7
14432 /usr/local/include/X11R6
14433 /usr/local/include/X11R5
14434 /usr/local/include/X11R4
14436 /usr/X386/include
14437 /usr/x386/include
14438 /usr/XFree86/include/X11
14440 /usr/include
14441 /usr/local/include
14442 /usr/unsupported/include
14443 /usr/athena/include
14444 /usr/local/x11r5/include
14445 /usr/lpp/Xamples/include
14447 /usr/openwin/include
14448 /usr/openwin/share/include'
14450 if test "$ac_x_includes" = no; then
14451 # Guess where to find include files, by looking for Xlib.h.
14452 # First, try using that file with no special directory specified.
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14455 #include <X11/Xlib.h>
14456 _ACEOF
14457 if ac_fn_c_try_cpp "$LINENO"; then :
14458 # We can compile using X headers with no special include directory.
14459 ac_x_includes=
14460 else
14461 for ac_dir in $ac_x_header_dirs; do
14462 if test -r "$ac_dir/X11/Xlib.h"; then
14463 ac_x_includes=$ac_dir
14464 break
14466 done
14468 rm -f conftest.err conftest.i conftest.$ac_ext
14469 fi # $ac_x_includes = no
14471 if test "$ac_x_libraries" = no; then
14472 # Check for the libraries.
14473 # See if we find them without any special options.
14474 # Don't add to $LIBS permanently.
14475 ac_save_LIBS=$LIBS
14476 LIBS="-lX11 $LIBS"
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14479 #include <X11/Xlib.h>
14481 main ()
14483 XrmInitialize ()
14485 return 0;
14487 _ACEOF
14488 if ac_fn_c_try_link "$LINENO"; then :
14489 LIBS=$ac_save_LIBS
14490 # We can link X programs with no special library path.
14491 ac_x_libraries=
14492 else
14493 LIBS=$ac_save_LIBS
14494 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14496 # Don't even attempt the hair of trying to link an X program!
14497 for ac_extension in a so sl dylib la dll; do
14498 if test -r "$ac_dir/libX11.$ac_extension"; then
14499 ac_x_libraries=$ac_dir
14500 break 2
14502 done
14503 done
14505 rm -f core conftest.err conftest.$ac_objext \
14506 conftest$ac_exeext conftest.$ac_ext
14507 fi # $ac_x_libraries = no
14509 case $ac_x_includes,$ac_x_libraries in #(
14510 no,* | *,no | *\'*)
14511 # Didn't find X, or a directory has "'" in its name.
14512 ac_cv_have_x="have_x=no";; #(
14514 # Record where we found X for the cache.
14515 ac_cv_have_x="have_x=yes\
14516 ac_x_includes='$ac_x_includes'\
14517 ac_x_libraries='$ac_x_libraries'"
14518 esac
14520 ;; #(
14521 *) have_x=yes;;
14522 esac
14523 eval "$ac_cv_have_x"
14524 fi # $with_x != no
14526 if test "$have_x" != yes; then
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14528 $as_echo "$have_x" >&6; }
14529 no_x=yes
14530 else
14531 # If each of the values was on the command line, it overrides each guess.
14532 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14533 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14534 # Update the cache value to reflect the command line values.
14535 ac_cv_have_x="have_x=yes\
14536 ac_x_includes='$x_includes'\
14537 ac_x_libraries='$x_libraries'"
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14539 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14543 if test -n "$x_includes"; then
14544 X_CFLAGS="$X_CFLAGS -I$x_includes"
14547 if test -n "$x_libraries"; then
14548 X_LIBS="$X_LIBS -L$x_libraries"
14551 if test "x-$no_x" = "x-yes" ; then
14553 if test "x-$x11_hidd" != "x-auto" ; then
14554 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14557 else
14558 aros_target_options+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
14559 if test "x-$host_feature_glx" != "x-no" ; then
14560 aros_target_options+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
14562 ENABLE_X11=1
14564 aros_host_x11_cflags="$X_CFLAGS"
14565 aros_host_x11_ldflags="$X_LIBS -lX11"
14567 # Check whether --enable-x11_shm was given.
14568 if test "${enable_x11_shm+set}" = set; then :
14569 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14570 else
14571 x11_hidd_shm="auto"
14574 case "x-$x11_hidd_shm" in
14575 x-yes|x-no|x-auto) ;;
14576 *) x11_hidd_shm="auto" ;;
14577 esac
14579 have_xshm=no
14581 if test "x-$x11_hidd_shm" != "x-no" ; then
14583 for ac_header in sys/ipc.h
14584 do :
14585 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14586 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14587 cat >>confdefs.h <<_ACEOF
14588 #define HAVE_SYS_IPC_H 1
14589 _ACEOF
14593 done
14595 for ac_header in sys/shm.h
14596 do :
14597 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14598 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14599 cat >>confdefs.h <<_ACEOF
14600 #define HAVE_SYS_SHM_H 1
14601 _ACEOF
14605 done
14608 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14610 save_cflags="$CFLAGS"
14611 save_ldflags="$LDFLAGS"
14612 CFLAGS="$CFLAGS $X_CFLAGS"
14613 LDFLAGS="$LDFLAGS $X_LIBS"
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14615 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14616 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14617 $as_echo_n "(cached) " >&6
14618 else
14619 ac_check_lib_save_LIBS=$LIBS
14620 LIBS="-lXext $LIBS"
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14624 /* Override any GCC internal prototype to avoid an error.
14625 Use char because int might match the return type of a GCC
14626 builtin and then its argument prototype would still apply. */
14627 #ifdef __cplusplus
14628 extern "C"
14629 #endif
14630 char XShmQueryExtension ();
14632 main ()
14634 return XShmQueryExtension ();
14636 return 0;
14638 _ACEOF
14639 if ac_fn_c_try_link "$LINENO"; then :
14640 ac_cv_lib_Xext_XShmQueryExtension=yes
14641 else
14642 ac_cv_lib_Xext_XShmQueryExtension=no
14644 rm -f core conftest.err conftest.$ac_objext \
14645 conftest$ac_exeext conftest.$ac_ext
14646 LIBS=$ac_check_lib_save_LIBS
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14649 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14650 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14651 have_xshm=yes
14654 CFLAGS="$save_cflags"
14655 LDFLAGS="$save_ldflags"
14659 if test "x-$have_xshm" = "x-yes" ; then
14660 DO_XSHM_SUPPORT="1"
14661 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14662 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14663 else
14664 DO_XSHM_SUPPORT="0"
14668 # Check whether --enable-x11_vidmode was given.
14669 if test "${enable_x11_vidmode+set}" = set; then :
14670 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14671 else
14672 x11_hidd_vidmode="auto"
14675 case "x-$x11_hidd_vidmode" in
14676 x-yes|x-no|x-auto) ;;
14677 *) x11_hidd_vidmode="auto" ;;
14678 esac
14680 have_vidmode=no
14682 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14684 save_cflags="$CFLAGS"
14685 save_ldflags="$LDFLAGS"
14686 CFLAGS="$CFLAGS $X_CFLAGS"
14687 LDFLAGS="$LDFLAGS $X_LIBS"
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14689 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14690 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14691 $as_echo_n "(cached) " >&6
14692 else
14693 ac_check_lib_save_LIBS=$LIBS
14694 LIBS="-lXxf86vm $LIBS"
14695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14696 /* end confdefs.h. */
14698 /* Override any GCC internal prototype to avoid an error.
14699 Use char because int might match the return type of a GCC
14700 builtin and then its argument prototype would still apply. */
14701 #ifdef __cplusplus
14702 extern "C"
14703 #endif
14704 char XF86VidModeQueryExtension ();
14706 main ()
14708 return XF86VidModeQueryExtension ();
14710 return 0;
14712 _ACEOF
14713 if ac_fn_c_try_link "$LINENO"; then :
14714 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14715 else
14716 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14718 rm -f core conftest.err conftest.$ac_objext \
14719 conftest$ac_exeext conftest.$ac_ext
14720 LIBS=$ac_check_lib_save_LIBS
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14723 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14724 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14725 have_vidmode=yes
14728 CFLAGS="$save_cflags"
14729 LDFLAGS="$save_ldflags"
14732 if test "x-$have_vidmode" = "x-yes" ; then
14733 DO_VIDMODE_SUPPORT="1"
14734 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14735 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14736 else
14737 DO_VIDMODE_SUPPORT="0"
14742 # Check whether --enable-sdl_hidd was given.
14743 if test "${enable_sdl_hidd+set}" = set; then :
14744 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14745 else
14746 sdl_hidd="auto"
14749 case "x-$sdl_hidd" in
14750 x-yes|x-no|x-auto) ;;
14751 *) sdl_hidd="auto" ;;
14752 esac
14754 if test "x-$sdl_hidd" != "x-no" ; then
14756 SDL_VERSION=1.2.5
14758 # Check whether --with-sdl-prefix was given.
14759 if test "${with_sdl_prefix+set}" = set; then :
14760 withval=$with_sdl_prefix; sdl_prefix="$withval"
14761 else
14762 sdl_prefix=""
14766 # Check whether --with-sdl-exec-prefix was given.
14767 if test "${with_sdl_exec_prefix+set}" = set; then :
14768 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14769 else
14770 sdl_exec_prefix=""
14773 # Check whether --enable-sdltest was given.
14774 if test "${enable_sdltest+set}" = set; then :
14775 enableval=$enable_sdltest;
14776 else
14777 enable_sdltest=yes
14781 if test x$sdl_exec_prefix != x ; then
14782 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14783 if test x${SDL_CONFIG+set} != xset ; then
14784 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14787 if test x$sdl_prefix != x ; then
14788 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14789 if test x${SDL_CONFIG+set} != xset ; then
14790 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14794 as_save_PATH="$PATH"
14795 if test "x$prefix" != xNONE; then
14796 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14798 # Extract the first word of "sdl-config", so it can be a program name with args.
14799 set dummy sdl-config; ac_word=$2
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14801 $as_echo_n "checking for $ac_word... " >&6; }
14802 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14803 $as_echo_n "(cached) " >&6
14804 else
14805 case $SDL_CONFIG in
14806 [\\/]* | ?:[\\/]*)
14807 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14811 for as_dir in $PATH
14813 IFS=$as_save_IFS
14814 test -z "$as_dir" && as_dir=.
14815 for ac_exec_ext in '' $ac_executable_extensions; do
14816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14817 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14819 break 2
14821 done
14822 done
14823 IFS=$as_save_IFS
14825 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14827 esac
14829 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14830 if test -n "$SDL_CONFIG"; then
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14832 $as_echo "$SDL_CONFIG" >&6; }
14833 else
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14835 $as_echo "no" >&6; }
14839 PATH="$as_save_PATH"
14840 min_sdl_version=$SDL_VERSION
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14842 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14843 no_sdl=""
14844 if test "$SDL_CONFIG" = "no" ; then
14845 no_sdl=yes
14846 else
14847 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14848 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14850 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14851 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14852 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14853 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14854 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14855 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14856 if test "x$enable_sdltest" = "xyes" ; then
14857 ac_save_CFLAGS="$CFLAGS"
14858 ac_save_CXXFLAGS="$CXXFLAGS"
14859 ac_save_LIBS="$LIBS"
14860 CFLAGS="$CFLAGS $SDL_CFLAGS"
14861 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14862 LIBS="$LIBS $SDL_LIBS"
14863 rm -f conf.sdltest
14864 if test "$cross_compiling" = yes; then :
14865 echo $ac_n "cross compiling; assumed OK... $ac_c"
14866 else
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14870 #include <stdio.h>
14871 #include <stdlib.h>
14872 #include <string.h>
14873 #include "SDL.h"
14875 char*
14876 my_strdup (char *str)
14878 char *new_str;
14880 if (str)
14882 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14883 strcpy (new_str, str);
14885 else
14886 new_str = NULL;
14888 return new_str;
14891 int main (int argc, char *argv[])
14893 int major, minor, micro;
14894 char *tmp_version;
14896 /* This hangs on some systems (?)
14897 system ("touch conf.sdltest");
14899 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14901 /* HP/UX 9 (%@#!) writes to sscanf strings */
14902 tmp_version = my_strdup("$min_sdl_version");
14903 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14904 printf("%s, bad version string\n", "$min_sdl_version");
14905 exit(1);
14908 if (($sdl_major_version > major) ||
14909 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14910 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14912 return 0;
14914 else
14916 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14917 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14918 printf("*** best to upgrade to the required version.\n");
14919 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14920 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14921 printf("*** config.cache before re-running configure\n");
14922 return 1;
14927 _ACEOF
14928 if ac_fn_c_try_run "$LINENO"; then :
14930 else
14931 no_sdl=yes
14933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14934 conftest.$ac_objext conftest.beam conftest.$ac_ext
14937 CFLAGS="$ac_save_CFLAGS"
14938 CXXFLAGS="$ac_save_CXXFLAGS"
14939 LIBS="$ac_save_LIBS"
14942 if test "x$no_sdl" = x ; then
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14944 $as_echo "yes" >&6; }
14945 have_sdl="yes"
14946 else
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14948 $as_echo "no" >&6; }
14949 if test "$SDL_CONFIG" = "no" ; then
14950 echo "*** The sdl-config script installed by SDL could not be found"
14951 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14952 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14953 echo "*** full path to sdl-config."
14954 else
14955 if test -f conf.sdltest ; then
14957 else
14958 echo "*** Could not run SDL test program, checking why..."
14959 CFLAGS="$CFLAGS $SDL_CFLAGS"
14960 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14961 LIBS="$LIBS $SDL_LIBS"
14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h. */
14965 #include <stdio.h>
14966 #include "SDL.h"
14968 int main(int argc, char *argv[])
14969 { return 0; }
14970 #undef main
14971 #define main K_and_R_C_main
14974 main ()
14976 return 0;
14978 return 0;
14980 _ACEOF
14981 if ac_fn_c_try_link "$LINENO"; then :
14982 echo "*** The test program compiled, but did not run. This usually means"
14983 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14984 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14985 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14986 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14987 echo "*** is required on your system"
14988 echo "***"
14989 echo "*** If you have an old version installed, it is best to remove it, although"
14990 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14991 else
14992 echo "*** The test program failed to compile or link. See the file config.log for the"
14993 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14994 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14995 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14997 rm -f core conftest.err conftest.$ac_objext \
14998 conftest$ac_exeext conftest.$ac_ext
14999 CFLAGS="$ac_save_CFLAGS"
15000 CXXFLAGS="$ac_save_CXXFLAGS"
15001 LIBS="$ac_save_LIBS"
15004 SDL_CFLAGS=""
15005 SDL_LIBS=""
15006 have_sdl="no"
15010 rm -f conf.sdltest
15013 if test "x-$have_sdl" != "x-yes" ; then
15015 if test "x-$sdl_hidd" != "x-auto" ; then
15016 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15019 else
15020 aros_target_options+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15021 aros_host_sdl_cflags=$SDL_CFLAGS
15022 aros_host_sdl_libs=$SDL_LIBS
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15030 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15031 # Check whether --enable-dbus was given.
15032 if test "${enable_dbus+set}" = set; then :
15033 enableval=$enable_dbus; dbus="yes"
15034 else
15035 dbus="no"
15038 if test "$dbus" = "yes" ; then
15039 ENABLE_DBUS=1
15040 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15041 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15042 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15043 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15044 else
15045 ENABLE_DBUS=0
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15048 $as_echo "$dbus" >&6; }
15050 if test "$use_kernel_cc_wrapper" = "yes" ; then
15051 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15054 aros_kernel_cppflags=$aros_config_cppflags
15055 aros_optimization_cflags="$optimization_level"
15056 if test "$optimization" = "default"; then
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15058 $as_echo_n "checking default optimization level to use... " >&6; }
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15060 $as_echo "$optimization_level" >&6; }
15063 if ! test "$gcc_default_cpu" = "" ; then
15064 target_extra_cfg+="$export_newline""# ARM gcc default target$export_newline""GCC_DEFAULT_CPU := $gcc_default_cpu$export_newline""GCC_DEFAULT_FPU := $gcc_default_fpu$export_newline""GCC_DEFAULT_FLOAT_ABI := $gcc_default_float_abi$export_newline""GCC_DEFAULT_MODE := $gcc_default_mode$export_newline"
15068 # Generic
15082 # Compatability with other Amiga-like operation systems
15085 # Host related
15117 # Target Related
15216 # Bootloader related
15219 # Native version related
15224 # Palm native version related
15227 # Unix/Hosted version related
15230 # MMU related
15233 # Apple iOS related
15238 # ARM default GCC target related
15245 # Android related
15250 # DBUS related
15257 #X11 related
15260 # Debug related
15266 # Collect-aros stuff: "-ius" to ignore undefined symbols
15269 # C compiler related
15274 #ObjC compiler related
15277 #Java related
15280 # USB3.0 code
15283 case "$aros_flavour" in
15284 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15285 aros_flavour="emulation" ;;
15286 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15287 aros_flavour="emulation" ;;
15288 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15289 aros_flavour="standalone";;
15290 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15291 aros_flavour="standalone";;
15292 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15293 aros_flavour="native" ;;
15294 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15295 aros_flavour="native" ;;
15296 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15297 aros_flavour="linklib" ;;
15298 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15299 aros_flavour="palmnative" ;;
15300 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15301 aros_flavour="mac68knative" ;;
15302 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15303 aros_flavour="ppcnative" ;;
15304 esac
15306 if test ! -d ${aros_inc_dir} ; then
15307 ${MKDIR} ${aros_inc_dir}
15309 if test ! -d ${aros_geninc_dir} ; then
15310 ${MKDIR} ${aros_geninc_dir}
15312 if test ! -d ${aros_hostcfg_dir} ; then
15313 ${MKDIR} ${aros_hostcfg_dir}
15315 if test ! -d ${aros_targetcfg_dir} ; then
15316 ${MKDIR} ${aros_targetcfg_dir}
15318 if test ! -d ${aros_tools_dir} ; then
15319 ${MKDIR} ${aros_tools_dir}
15321 if test ! -d ${aros_scripts_dir} ; then
15322 ${MKDIR} ${aros_scripts_dir}
15325 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15328 # Generic build tools (metamake, etc)
15329 ac_config_commands="$ac_config_commands genmf-executable-support"
15331 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config compiler/include/geninc.cfg:compiler/include/geninc.cfg.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in tools/collect-aros/env.h"
15334 # Binutils
15335 ac_config_commands="$ac_config_commands binutils-support"
15337 if test "${use_ld_wrapper}" = "yes"; then
15338 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"
15341 # Bare Elf support script and spec
15342 if test "${use_kernel_cc_wrapper}" = "yes"; then
15343 ac_config_commands="$ac_config_commands elf-compiler-support"
15345 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"
15349 # Host compiler support scripts and spec
15350 if test "${aros_target_toolchain}" = "no"; then
15351 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15353 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"
15357 # Android support
15358 if test "$aros_target_variant" == "android"; then
15359 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15363 # cmake helper
15364 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15367 cat >confcache <<\_ACEOF
15368 # This file is a shell script that caches the results of configure
15369 # tests run on this system so they can be shared between configure
15370 # scripts and configure runs, see configure's option --config-cache.
15371 # It is not useful on other systems. If it contains results you don't
15372 # want to keep, you may remove or edit it.
15374 # config.status only pays attention to the cache file if you give it
15375 # the --recheck option to rerun configure.
15377 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15378 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15379 # following values.
15381 _ACEOF
15383 # The following way of writing the cache mishandles newlines in values,
15384 # but we know of no workaround that is simple, portable, and efficient.
15385 # So, we kill variables containing newlines.
15386 # Ultrix sh set writes to stderr and can't be redirected directly,
15387 # and sets the high bit in the cache file unless we assign to the vars.
15389 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15390 eval ac_val=\$$ac_var
15391 case $ac_val in #(
15392 *${as_nl}*)
15393 case $ac_var in #(
15394 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15395 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15396 esac
15397 case $ac_var in #(
15398 _ | IFS | as_nl) ;; #(
15399 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15400 *) { eval $ac_var=; unset $ac_var;} ;;
15401 esac ;;
15402 esac
15403 done
15405 (set) 2>&1 |
15406 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15407 *${as_nl}ac_space=\ *)
15408 # `set' does not quote correctly, so add quotes: double-quote
15409 # substitution turns \\\\ into \\, and sed turns \\ into \.
15410 sed -n \
15411 "s/'/'\\\\''/g;
15412 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15413 ;; #(
15415 # `set' quotes correctly as required by POSIX, so do not add quotes.
15416 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15418 esac |
15419 sort
15421 sed '
15422 /^ac_cv_env_/b end
15423 t clear
15424 :clear
15425 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15426 t end
15427 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15428 :end' >>confcache
15429 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15430 if test -w "$cache_file"; then
15431 if test "x$cache_file" != "x/dev/null"; then
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15433 $as_echo "$as_me: updating cache $cache_file" >&6;}
15434 if test ! -f "$cache_file" || test -h "$cache_file"; then
15435 cat confcache >"$cache_file"
15436 else
15437 case $cache_file in #(
15438 */* | ?:*)
15439 mv -f confcache "$cache_file"$$ &&
15440 mv -f "$cache_file"$$ "$cache_file" ;; #(
15442 mv -f confcache "$cache_file" ;;
15443 esac
15446 else
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15448 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15451 rm -f confcache
15453 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15454 # Let make expand exec_prefix.
15455 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15457 DEFS=-DHAVE_CONFIG_H
15459 ac_libobjs=
15460 ac_ltlibobjs=
15462 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15463 # 1. Remove the extension, and $U if already installed.
15464 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15465 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15466 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15467 # will be set to the directory where LIBOBJS objects are built.
15468 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15469 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15470 done
15471 LIBOBJS=$ac_libobjs
15473 LTLIBOBJS=$ac_ltlibobjs
15477 : "${CONFIG_STATUS=./config.status}"
15478 ac_write_fail=0
15479 ac_clean_files_save=$ac_clean_files
15480 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15482 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15483 as_write_fail=0
15484 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15485 #! $SHELL
15486 # Generated by $as_me.
15487 # Run this file to recreate the current configuration.
15488 # Compiler output produced by configure, useful for debugging
15489 # configure, is in config.log if it exists.
15491 debug=false
15492 ac_cs_recheck=false
15493 ac_cs_silent=false
15495 SHELL=\${CONFIG_SHELL-$SHELL}
15496 export SHELL
15497 _ASEOF
15498 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15499 ## -------------------- ##
15500 ## M4sh Initialization. ##
15501 ## -------------------- ##
15503 # Be more Bourne compatible
15504 DUALCASE=1; export DUALCASE # for MKS sh
15505 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15506 emulate sh
15507 NULLCMD=:
15508 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15509 # is contrary to our usage. Disable this feature.
15510 alias -g '${1+"$@"}'='"$@"'
15511 setopt NO_GLOB_SUBST
15512 else
15513 case `(set -o) 2>/dev/null` in #(
15514 *posix*) :
15515 set -o posix ;; #(
15516 *) :
15518 esac
15522 as_nl='
15524 export as_nl
15525 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15526 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15527 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15528 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15529 # Prefer a ksh shell builtin over an external printf program on Solaris,
15530 # but without wasting forks for bash or zsh.
15531 if test -z "$BASH_VERSION$ZSH_VERSION" \
15532 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15533 as_echo='print -r --'
15534 as_echo_n='print -rn --'
15535 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15536 as_echo='printf %s\n'
15537 as_echo_n='printf %s'
15538 else
15539 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15540 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15541 as_echo_n='/usr/ucb/echo -n'
15542 else
15543 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15544 as_echo_n_body='eval
15545 arg=$1;
15546 case $arg in #(
15547 *"$as_nl"*)
15548 expr "X$arg" : "X\\(.*\\)$as_nl";
15549 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15550 esac;
15551 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15553 export as_echo_n_body
15554 as_echo_n='sh -c $as_echo_n_body as_echo'
15556 export as_echo_body
15557 as_echo='sh -c $as_echo_body as_echo'
15560 # The user is always right.
15561 if test "${PATH_SEPARATOR+set}" != set; then
15562 PATH_SEPARATOR=:
15563 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15564 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15565 PATH_SEPARATOR=';'
15570 # IFS
15571 # We need space, tab and new line, in precisely that order. Quoting is
15572 # there to prevent editors from complaining about space-tab.
15573 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15574 # splitting by setting IFS to empty value.)
15575 IFS=" "" $as_nl"
15577 # Find who we are. Look in the path if we contain no directory separator.
15578 as_myself=
15579 case $0 in #((
15580 *[\\/]* ) as_myself=$0 ;;
15581 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15582 for as_dir in $PATH
15584 IFS=$as_save_IFS
15585 test -z "$as_dir" && as_dir=.
15586 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15587 done
15588 IFS=$as_save_IFS
15591 esac
15592 # We did not find ourselves, most probably we were run as `sh COMMAND'
15593 # in which case we are not to be found in the path.
15594 if test "x$as_myself" = x; then
15595 as_myself=$0
15597 if test ! -f "$as_myself"; then
15598 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15599 exit 1
15602 # Unset variables that we do not need and which cause bugs (e.g. in
15603 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15604 # suppresses any "Segmentation fault" message there. '((' could
15605 # trigger a bug in pdksh 5.2.14.
15606 for as_var in BASH_ENV ENV MAIL MAILPATH
15607 do eval test x\${$as_var+set} = xset \
15608 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15609 done
15610 PS1='$ '
15611 PS2='> '
15612 PS4='+ '
15614 # NLS nuisances.
15615 LC_ALL=C
15616 export LC_ALL
15617 LANGUAGE=C
15618 export LANGUAGE
15620 # CDPATH.
15621 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15624 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15625 # ----------------------------------------
15626 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15627 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15628 # script with STATUS, using 1 if that was 0.
15629 as_fn_error ()
15631 as_status=$1; test $as_status -eq 0 && as_status=1
15632 if test "$4"; then
15633 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15634 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15636 $as_echo "$as_me: error: $2" >&2
15637 as_fn_exit $as_status
15638 } # as_fn_error
15641 # as_fn_set_status STATUS
15642 # -----------------------
15643 # Set $? to STATUS, without forking.
15644 as_fn_set_status ()
15646 return $1
15647 } # as_fn_set_status
15649 # as_fn_exit STATUS
15650 # -----------------
15651 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15652 as_fn_exit ()
15654 set +e
15655 as_fn_set_status $1
15656 exit $1
15657 } # as_fn_exit
15659 # as_fn_unset VAR
15660 # ---------------
15661 # Portably unset VAR.
15662 as_fn_unset ()
15664 { eval $1=; unset $1;}
15666 as_unset=as_fn_unset
15667 # as_fn_append VAR VALUE
15668 # ----------------------
15669 # Append the text in VALUE to the end of the definition contained in VAR. Take
15670 # advantage of any shell optimizations that allow amortized linear growth over
15671 # repeated appends, instead of the typical quadratic growth present in naive
15672 # implementations.
15673 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15674 eval 'as_fn_append ()
15676 eval $1+=\$2
15678 else
15679 as_fn_append ()
15681 eval $1=\$$1\$2
15683 fi # as_fn_append
15685 # as_fn_arith ARG...
15686 # ------------------
15687 # Perform arithmetic evaluation on the ARGs, and store the result in the
15688 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15689 # must be portable across $(()) and expr.
15690 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15691 eval 'as_fn_arith ()
15693 as_val=$(( $* ))
15695 else
15696 as_fn_arith ()
15698 as_val=`expr "$@" || test $? -eq 1`
15700 fi # as_fn_arith
15703 if expr a : '\(a\)' >/dev/null 2>&1 &&
15704 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15705 as_expr=expr
15706 else
15707 as_expr=false
15710 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15711 as_basename=basename
15712 else
15713 as_basename=false
15716 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15717 as_dirname=dirname
15718 else
15719 as_dirname=false
15722 as_me=`$as_basename -- "$0" ||
15723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15724 X"$0" : 'X\(//\)$' \| \
15725 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15726 $as_echo X/"$0" |
15727 sed '/^.*\/\([^/][^/]*\)\/*$/{
15728 s//\1/
15731 /^X\/\(\/\/\)$/{
15732 s//\1/
15735 /^X\/\(\/\).*/{
15736 s//\1/
15739 s/.*/./; q'`
15741 # Avoid depending upon Character Ranges.
15742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15745 as_cr_digits='0123456789'
15746 as_cr_alnum=$as_cr_Letters$as_cr_digits
15748 ECHO_C= ECHO_N= ECHO_T=
15749 case `echo -n x` in #(((((
15750 -n*)
15751 case `echo 'xy\c'` in
15752 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15753 xy) ECHO_C='\c';;
15754 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15755 ECHO_T=' ';;
15756 esac;;
15758 ECHO_N='-n';;
15759 esac
15761 rm -f conf$$ conf$$.exe conf$$.file
15762 if test -d conf$$.dir; then
15763 rm -f conf$$.dir/conf$$.file
15764 else
15765 rm -f conf$$.dir
15766 mkdir conf$$.dir 2>/dev/null
15768 if (echo >conf$$.file) 2>/dev/null; then
15769 if ln -s conf$$.file conf$$ 2>/dev/null; then
15770 as_ln_s='ln -s'
15771 # ... but there are two gotchas:
15772 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15773 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15774 # In both cases, we have to default to `cp -pR'.
15775 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15776 as_ln_s='cp -pR'
15777 elif ln conf$$.file conf$$ 2>/dev/null; then
15778 as_ln_s=ln
15779 else
15780 as_ln_s='cp -pR'
15782 else
15783 as_ln_s='cp -pR'
15785 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15786 rmdir conf$$.dir 2>/dev/null
15789 # as_fn_mkdir_p
15790 # -------------
15791 # Create "$as_dir" as a directory, including parents if necessary.
15792 as_fn_mkdir_p ()
15795 case $as_dir in #(
15796 -*) as_dir=./$as_dir;;
15797 esac
15798 test -d "$as_dir" || eval $as_mkdir_p || {
15799 as_dirs=
15800 while :; do
15801 case $as_dir in #(
15802 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15803 *) as_qdir=$as_dir;;
15804 esac
15805 as_dirs="'$as_qdir' $as_dirs"
15806 as_dir=`$as_dirname -- "$as_dir" ||
15807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15808 X"$as_dir" : 'X\(//\)[^/]' \| \
15809 X"$as_dir" : 'X\(//\)$' \| \
15810 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15811 $as_echo X"$as_dir" |
15812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15813 s//\1/
15816 /^X\(\/\/\)[^/].*/{
15817 s//\1/
15820 /^X\(\/\/\)$/{
15821 s//\1/
15824 /^X\(\/\).*/{
15825 s//\1/
15828 s/.*/./; q'`
15829 test -d "$as_dir" && break
15830 done
15831 test -z "$as_dirs" || eval "mkdir $as_dirs"
15832 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15835 } # as_fn_mkdir_p
15836 if mkdir -p . 2>/dev/null; then
15837 as_mkdir_p='mkdir -p "$as_dir"'
15838 else
15839 test -d ./-p && rmdir ./-p
15840 as_mkdir_p=false
15844 # as_fn_executable_p FILE
15845 # -----------------------
15846 # Test if FILE is an executable regular file.
15847 as_fn_executable_p ()
15849 test -f "$1" && test -x "$1"
15850 } # as_fn_executable_p
15851 as_test_x='test -x'
15852 as_executable_p=as_fn_executable_p
15854 # Sed expression to map a string onto a valid CPP name.
15855 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15857 # Sed expression to map a string onto a valid variable name.
15858 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15861 exec 6>&1
15862 ## ----------------------------------- ##
15863 ## Main body of $CONFIG_STATUS script. ##
15864 ## ----------------------------------- ##
15865 _ASEOF
15866 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15869 # Save the log message, to keep $0 and so on meaningful, and to
15870 # report actual input values of CONFIG_FILES etc. instead of their
15871 # values after options handling.
15872 ac_log="
15873 This file was extended by $as_me, which was
15874 generated by GNU Autoconf 2.69. Invocation command line was
15876 CONFIG_FILES = $CONFIG_FILES
15877 CONFIG_HEADERS = $CONFIG_HEADERS
15878 CONFIG_LINKS = $CONFIG_LINKS
15879 CONFIG_COMMANDS = $CONFIG_COMMANDS
15880 $ $0 $@
15882 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15885 _ACEOF
15887 case $ac_config_files in *"
15888 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15889 esac
15891 case $ac_config_headers in *"
15892 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15893 esac
15896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15897 # Files that config.status was made for.
15898 config_files="$ac_config_files"
15899 config_headers="$ac_config_headers"
15900 config_commands="$ac_config_commands"
15902 _ACEOF
15904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15905 ac_cs_usage="\
15906 \`$as_me' instantiates files and other configuration actions
15907 from templates according to the current configuration. Unless the files
15908 and actions are specified as TAGs, all are instantiated by default.
15910 Usage: $0 [OPTION]... [TAG]...
15912 -h, --help print this help, then exit
15913 -V, --version print version number and configuration settings, then exit
15914 --config print configuration, then exit
15915 -q, --quiet, --silent
15916 do not print progress messages
15917 -d, --debug don't remove temporary files
15918 --recheck update $as_me by reconfiguring in the same conditions
15919 --file=FILE[:TEMPLATE]
15920 instantiate the configuration file FILE
15921 --header=FILE[:TEMPLATE]
15922 instantiate the configuration header FILE
15924 Configuration files:
15925 $config_files
15927 Configuration headers:
15928 $config_headers
15930 Configuration commands:
15931 $config_commands
15933 Report bugs to the package provider."
15935 _ACEOF
15936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15937 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15938 ac_cs_version="\\
15939 config.status
15940 configured by $0, generated by GNU Autoconf 2.69,
15941 with options \\"\$ac_cs_config\\"
15943 Copyright (C) 2012 Free Software Foundation, Inc.
15944 This config.status script is free software; the Free Software Foundation
15945 gives unlimited permission to copy, distribute and modify it."
15947 ac_pwd='$ac_pwd'
15948 srcdir='$srcdir'
15949 test -n "\$AWK" || AWK=awk
15950 _ACEOF
15952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15953 # The default lists apply if the user does not specify any file.
15954 ac_need_defaults=:
15955 while test $# != 0
15957 case $1 in
15958 --*=?*)
15959 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15960 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15961 ac_shift=:
15963 --*=)
15964 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15965 ac_optarg=
15966 ac_shift=:
15969 ac_option=$1
15970 ac_optarg=$2
15971 ac_shift=shift
15973 esac
15975 case $ac_option in
15976 # Handling of the options.
15977 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15978 ac_cs_recheck=: ;;
15979 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15980 $as_echo "$ac_cs_version"; exit ;;
15981 --config | --confi | --conf | --con | --co | --c )
15982 $as_echo "$ac_cs_config"; exit ;;
15983 --debug | --debu | --deb | --de | --d | -d )
15984 debug=: ;;
15985 --file | --fil | --fi | --f )
15986 $ac_shift
15987 case $ac_optarg in
15988 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15989 '') as_fn_error $? "missing file argument" ;;
15990 esac
15991 as_fn_append CONFIG_FILES " '$ac_optarg'"
15992 ac_need_defaults=false;;
15993 --header | --heade | --head | --hea )
15994 $ac_shift
15995 case $ac_optarg in
15996 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15997 esac
15998 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15999 ac_need_defaults=false;;
16000 --he | --h)
16001 # Conflict between --help and --header
16002 as_fn_error $? "ambiguous option: \`$1'
16003 Try \`$0 --help' for more information.";;
16004 --help | --hel | -h )
16005 $as_echo "$ac_cs_usage"; exit ;;
16006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16007 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16008 ac_cs_silent=: ;;
16010 # This is an error.
16011 -*) as_fn_error $? "unrecognized option: \`$1'
16012 Try \`$0 --help' for more information." ;;
16014 *) as_fn_append ac_config_targets " $1"
16015 ac_need_defaults=false ;;
16017 esac
16018 shift
16019 done
16021 ac_configure_extra_args=
16023 if $ac_cs_silent; then
16024 exec 6>/dev/null
16025 ac_configure_extra_args="$ac_configure_extra_args --silent"
16028 _ACEOF
16029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16030 if \$ac_cs_recheck; then
16031 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16032 shift
16033 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16034 CONFIG_SHELL='$SHELL'
16035 export CONFIG_SHELL
16036 exec "\$@"
16039 _ACEOF
16040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16041 exec 5>>config.log
16043 echo
16044 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16045 ## Running $as_me. ##
16046 _ASBOX
16047 $as_echo "$ac_log"
16048 } >&5
16050 _ACEOF
16051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16053 # INIT-COMMANDS
16056 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16057 aros_tools_dir=${aros_tools_dir}
16061 aros_host_exe_suffix=${aros_host_exe_suffix}
16062 aros_tools_dir=${aros_tools_dir}
16063 aros_target_cpu=${aros_target_cpu}
16064 aros_target_arch=${aros_target_arch}
16065 aros_target_suffix=${aros_target_suffix}
16066 orig_target_nm=${orig_target_nm}
16067 orig_target_as=${orig_target_as}
16068 orig_target_ar=${orig_target_ar}
16069 orig_target_ranlib=${orig_target_ranlib}
16070 orig_target_objdump=${orig_target_objdump}
16071 orig_target_objcopy=${orig_target_objcopy}
16072 orig_target_strip=${orig_target_strip}
16073 aros_kernel_ld=${aros_kernel_ld}
16077 aros_host_exe_suffix=${aros_host_exe_suffix}
16078 aros_tools_dir=${aros_tools_dir}
16079 aros_target_cpu=${aros_target_cpu}
16080 aros_target_arch=${aros_target_arch}
16081 aros_target_suffix=${aros_target_suffix}
16082 aros_kernel_ld=${aros_kernel_ld}
16086 aros_host_exe_suffix=${aros_host_exe_suffix}
16087 aros_tools_dir=${aros_tools_dir}
16088 aros_target_cpu=${aros_target_cpu}
16089 aros_target_arch=${aros_target_arch}
16090 aros_target_suffix=${aros_target_suffix}
16094 _ACEOF
16096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16098 # Handling of arguments.
16099 for ac_config_target in $ac_config_targets
16101 case $ac_config_target in
16102 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16103 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16104 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16105 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16106 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16107 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16108 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16109 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16110 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16111 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16112 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16113 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16114 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16115 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16116 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16117 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16118 "${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" ;;
16119 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16120 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16121 "${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" ;;
16122 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16123 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16124 "${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" ;;
16125 "${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" ;;
16126 "${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" ;;
16127 "${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" ;;
16128 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16130 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16131 esac
16132 done
16135 # If the user did not use the arguments to specify the items to instantiate,
16136 # then the envvar interface is used. Set only those that are not.
16137 # We use the long form for the default assignment because of an extremely
16138 # bizarre bug on SunOS 4.1.3.
16139 if $ac_need_defaults; then
16140 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16141 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16142 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16145 # Have a temporary directory for convenience. Make it in the build tree
16146 # simply because there is no reason against having it here, and in addition,
16147 # creating and moving files from /tmp can sometimes cause problems.
16148 # Hook for its removal unless debugging.
16149 # Note that there is a small window in which the directory will not be cleaned:
16150 # after its creation but before its name has been assigned to `$tmp'.
16151 $debug ||
16153 tmp= ac_tmp=
16154 trap 'exit_status=$?
16155 : "${ac_tmp:=$tmp}"
16156 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16158 trap 'as_fn_exit 1' 1 2 13 15
16160 # Create a (secure) tmp directory for tmp files.
16163 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16164 test -d "$tmp"
16165 } ||
16167 tmp=./conf$$-$RANDOM
16168 (umask 077 && mkdir "$tmp")
16169 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16170 ac_tmp=$tmp
16172 # Set up the scripts for CONFIG_FILES section.
16173 # No need to generate them if there are no CONFIG_FILES.
16174 # This happens for instance with `./config.status config.h'.
16175 if test -n "$CONFIG_FILES"; then
16178 ac_cr=`echo X | tr X '\015'`
16179 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16180 # But we know of no other shell where ac_cr would be empty at this
16181 # point, so we can use a bashism as a fallback.
16182 if test "x$ac_cr" = x; then
16183 eval ac_cr=\$\'\\r\'
16185 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16186 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16187 ac_cs_awk_cr='\\r'
16188 else
16189 ac_cs_awk_cr=$ac_cr
16192 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16193 _ACEOF
16197 echo "cat >conf$$subs.awk <<_ACEOF" &&
16198 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16199 echo "_ACEOF"
16200 } >conf$$subs.sh ||
16201 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16202 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16203 ac_delim='%!_!# '
16204 for ac_last_try in false false false false false :; do
16205 . ./conf$$subs.sh ||
16206 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16208 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16209 if test $ac_delim_n = $ac_delim_num; then
16210 break
16211 elif $ac_last_try; then
16212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16213 else
16214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16216 done
16217 rm -f conf$$subs.sh
16219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16220 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16221 _ACEOF
16222 sed -n '
16224 s/^/S["/; s/!.*/"]=/
16227 s/^[^!]*!//
16228 :repl
16229 t repl
16230 s/'"$ac_delim"'$//
16231 t delim
16234 s/\(.\{148\}\)..*/\1/
16235 t more1
16236 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16239 b repl
16240 :more1
16241 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16244 s/.\{148\}//
16245 t nl
16246 :delim
16248 s/\(.\{148\}\)..*/\1/
16249 t more2
16250 s/["\\]/\\&/g; s/^/"/; s/$/"/
16253 :more2
16254 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16257 s/.\{148\}//
16258 t delim
16259 ' <conf$$subs.awk | sed '
16260 /^[^""]/{
16262 s/\n//
16264 ' >>$CONFIG_STATUS || ac_write_fail=1
16265 rm -f conf$$subs.awk
16266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16267 _ACAWK
16268 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16269 for (key in S) S_is_set[key] = 1
16270 FS = "\a"
16274 line = $ 0
16275 nfields = split(line, field, "@")
16276 substed = 0
16277 len = length(field[1])
16278 for (i = 2; i < nfields; i++) {
16279 key = field[i]
16280 keylen = length(key)
16281 if (S_is_set[key]) {
16282 value = S[key]
16283 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16284 len += length(value) + length(field[++i])
16285 substed = 1
16286 } else
16287 len += 1 + keylen
16290 print line
16293 _ACAWK
16294 _ACEOF
16295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16296 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16297 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16298 else
16300 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16301 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16302 _ACEOF
16304 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16305 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16306 # trailing colons and then remove the whole line if VPATH becomes empty
16307 # (actually we leave an empty line to preserve line numbers).
16308 if test "x$srcdir" = x.; then
16309 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16311 s///
16312 s/^/:/
16313 s/[ ]*$/:/
16314 s/:\$(srcdir):/:/g
16315 s/:\${srcdir}:/:/g
16316 s/:@srcdir@:/:/g
16317 s/^:*//
16318 s/:*$//
16320 s/\(=[ ]*\).*/\1/
16322 s/\n//
16323 s/^[^=]*=[ ]*$//
16327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16328 fi # test -n "$CONFIG_FILES"
16330 # Set up the scripts for CONFIG_HEADERS section.
16331 # No need to generate them if there are no CONFIG_HEADERS.
16332 # This happens for instance with `./config.status Makefile'.
16333 if test -n "$CONFIG_HEADERS"; then
16334 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16335 BEGIN {
16336 _ACEOF
16338 # Transform confdefs.h into an awk script `defines.awk', embedded as
16339 # here-document in config.status, that substitutes the proper values into
16340 # config.h.in to produce config.h.
16342 # Create a delimiter string that does not exist in confdefs.h, to ease
16343 # handling of long lines.
16344 ac_delim='%!_!# '
16345 for ac_last_try in false false :; do
16346 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16347 if test -z "$ac_tt"; then
16348 break
16349 elif $ac_last_try; then
16350 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16351 else
16352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16354 done
16356 # For the awk script, D is an array of macro values keyed by name,
16357 # likewise P contains macro parameters if any. Preserve backslash
16358 # newline sequences.
16360 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16361 sed -n '
16362 s/.\{148\}/&'"$ac_delim"'/g
16363 t rset
16364 :rset
16365 s/^[ ]*#[ ]*define[ ][ ]*/ /
16366 t def
16368 :def
16369 s/\\$//
16370 t bsnl
16371 s/["\\]/\\&/g
16372 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16373 D["\1"]=" \3"/p
16374 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16376 :bsnl
16377 s/["\\]/\\&/g
16378 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16379 D["\1"]=" \3\\\\\\n"\\/p
16380 t cont
16381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16382 t cont
16384 :cont
16386 s/.\{148\}/&'"$ac_delim"'/g
16387 t clear
16388 :clear
16389 s/\\$//
16390 t bsnlc
16391 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16393 :bsnlc
16394 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16395 b cont
16396 ' <confdefs.h | sed '
16397 s/'"$ac_delim"'/"\\\
16398 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16401 for (key in D) D_is_set[key] = 1
16402 FS = "\a"
16404 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16405 line = \$ 0
16406 split(line, arg, " ")
16407 if (arg[1] == "#") {
16408 defundef = arg[2]
16409 mac1 = arg[3]
16410 } else {
16411 defundef = substr(arg[1], 2)
16412 mac1 = arg[2]
16414 split(mac1, mac2, "(") #)
16415 macro = mac2[1]
16416 prefix = substr(line, 1, index(line, defundef) - 1)
16417 if (D_is_set[macro]) {
16418 # Preserve the white space surrounding the "#".
16419 print prefix "define", macro P[macro] D[macro]
16420 next
16421 } else {
16422 # Replace #undef with comments. This is necessary, for example,
16423 # in the case of _POSIX_SOURCE, which is predefined and required
16424 # on some systems where configure will not decide to define it.
16425 if (defundef == "undef") {
16426 print "/*", prefix defundef, macro, "*/"
16427 next
16431 { print }
16432 _ACAWK
16433 _ACEOF
16434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16435 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16436 fi # test -n "$CONFIG_HEADERS"
16439 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16440 shift
16441 for ac_tag
16443 case $ac_tag in
16444 :[FHLC]) ac_mode=$ac_tag; continue;;
16445 esac
16446 case $ac_mode$ac_tag in
16447 :[FHL]*:*);;
16448 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16449 :[FH]-) ac_tag=-:-;;
16450 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16451 esac
16452 ac_save_IFS=$IFS
16453 IFS=:
16454 set x $ac_tag
16455 IFS=$ac_save_IFS
16456 shift
16457 ac_file=$1
16458 shift
16460 case $ac_mode in
16461 :L) ac_source=$1;;
16462 :[FH])
16463 ac_file_inputs=
16464 for ac_f
16466 case $ac_f in
16467 -) ac_f="$ac_tmp/stdin";;
16468 *) # Look for the file first in the build tree, then in the source tree
16469 # (if the path is not absolute). The absolute path cannot be DOS-style,
16470 # because $ac_f cannot contain `:'.
16471 test -f "$ac_f" ||
16472 case $ac_f in
16473 [\\/$]*) false;;
16474 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16475 esac ||
16476 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16477 esac
16478 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16479 as_fn_append ac_file_inputs " '$ac_f'"
16480 done
16482 # Let's still pretend it is `configure' which instantiates (i.e., don't
16483 # use $as_me), people would be surprised to read:
16484 # /* config.h. Generated by config.status. */
16485 configure_input='Generated from '`
16486 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16487 `' by configure.'
16488 if test x"$ac_file" != x-; then
16489 configure_input="$ac_file. $configure_input"
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16491 $as_echo "$as_me: creating $ac_file" >&6;}
16493 # Neutralize special characters interpreted by sed in replacement strings.
16494 case $configure_input in #(
16495 *\&* | *\|* | *\\* )
16496 ac_sed_conf_input=`$as_echo "$configure_input" |
16497 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16498 *) ac_sed_conf_input=$configure_input;;
16499 esac
16501 case $ac_tag in
16502 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16504 esac
16506 esac
16508 ac_dir=`$as_dirname -- "$ac_file" ||
16509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16510 X"$ac_file" : 'X\(//\)[^/]' \| \
16511 X"$ac_file" : 'X\(//\)$' \| \
16512 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16513 $as_echo X"$ac_file" |
16514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16515 s//\1/
16518 /^X\(\/\/\)[^/].*/{
16519 s//\1/
16522 /^X\(\/\/\)$/{
16523 s//\1/
16526 /^X\(\/\).*/{
16527 s//\1/
16530 s/.*/./; q'`
16531 as_dir="$ac_dir"; as_fn_mkdir_p
16532 ac_builddir=.
16534 case "$ac_dir" in
16535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16538 # A ".." for each directory in $ac_dir_suffix.
16539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16540 case $ac_top_builddir_sub in
16541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16543 esac ;;
16544 esac
16545 ac_abs_top_builddir=$ac_pwd
16546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16547 # for backward compatibility:
16548 ac_top_builddir=$ac_top_build_prefix
16550 case $srcdir in
16551 .) # We are building in place.
16552 ac_srcdir=.
16553 ac_top_srcdir=$ac_top_builddir_sub
16554 ac_abs_top_srcdir=$ac_pwd ;;
16555 [\\/]* | ?:[\\/]* ) # Absolute name.
16556 ac_srcdir=$srcdir$ac_dir_suffix;
16557 ac_top_srcdir=$srcdir
16558 ac_abs_top_srcdir=$srcdir ;;
16559 *) # Relative name.
16560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16561 ac_top_srcdir=$ac_top_build_prefix$srcdir
16562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16563 esac
16564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16567 case $ac_mode in
16570 # CONFIG_FILE
16573 _ACEOF
16575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16576 # If the template does not know about datarootdir, expand it.
16577 # FIXME: This hack should be removed a few years after 2.60.
16578 ac_datarootdir_hack=; ac_datarootdir_seen=
16579 ac_sed_dataroot='
16580 /datarootdir/ {
16584 /@datadir@/p
16585 /@docdir@/p
16586 /@infodir@/p
16587 /@localedir@/p
16588 /@mandir@/p'
16589 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16590 *datarootdir*) ac_datarootdir_seen=yes;;
16591 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16593 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16594 _ACEOF
16595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16596 ac_datarootdir_hack='
16597 s&@datadir@&$datadir&g
16598 s&@docdir@&$docdir&g
16599 s&@infodir@&$infodir&g
16600 s&@localedir@&$localedir&g
16601 s&@mandir@&$mandir&g
16602 s&\\\${datarootdir}&$datarootdir&g' ;;
16603 esac
16604 _ACEOF
16606 # Neutralize VPATH when `$srcdir' = `.'.
16607 # Shell code in configure.ac might set extrasub.
16608 # FIXME: do we really want to maintain this feature?
16609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16610 ac_sed_extra="$ac_vpsub
16611 $extrasub
16612 _ACEOF
16613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16615 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16616 s|@configure_input@|$ac_sed_conf_input|;t t
16617 s&@top_builddir@&$ac_top_builddir_sub&;t t
16618 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16619 s&@srcdir@&$ac_srcdir&;t t
16620 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16621 s&@top_srcdir@&$ac_top_srcdir&;t t
16622 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16623 s&@builddir@&$ac_builddir&;t t
16624 s&@abs_builddir@&$ac_abs_builddir&;t t
16625 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16626 $ac_datarootdir_hack
16628 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16629 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16631 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16632 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16634 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16636 which seems to be undefined. Please make sure it is defined" >&5
16637 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16638 which seems to be undefined. Please make sure it is defined" >&2;}
16640 rm -f "$ac_tmp/stdin"
16641 case $ac_file in
16642 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16643 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16644 esac \
16645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16649 # CONFIG_HEADER
16651 if test x"$ac_file" != x-; then
16653 $as_echo "/* $configure_input */" \
16654 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16655 } >"$ac_tmp/config.h" \
16656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16657 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16659 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16660 else
16661 rm -f "$ac_file"
16662 mv "$ac_tmp/config.h" "$ac_file" \
16663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16665 else
16666 $as_echo "/* $configure_input */" \
16667 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16668 || as_fn_error $? "could not create -" "$LINENO" 5
16672 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16673 $as_echo "$as_me: executing $ac_file commands" >&6;}
16675 esac
16678 case $ac_file$ac_mode in
16679 "genmf-executable-support":C)
16680 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16681 chmod a+x ${aros_tools_dir}/genmf.py
16683 "binutils-support":C)
16684 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16685 mkdir -p $prefix
16686 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16688 chmod a+x ${prefix2}-ld
16690 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16691 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16692 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16693 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16694 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16695 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16696 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16698 "elf-compiler-support":C)
16699 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16700 mkdir -p $prefix
16701 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16703 chmod a+x ${prefix2}-gcc
16705 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16707 "host-compiler-wrapper-support":C)
16708 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16709 mkdir -p $prefix
16710 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16712 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16715 esac
16716 done # for ac_tag
16719 as_fn_exit 0
16720 _ACEOF
16721 ac_clean_files=$ac_clean_files_save
16723 test $ac_write_fail = 0 ||
16724 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16727 # configure is writing to config.log, and then calls config.status.
16728 # config.status does its own redirection, appending to config.log.
16729 # Unfortunately, on DOS this fails, as config.log is still kept open
16730 # by configure, so config.status won't be able to write to it; its
16731 # output is simply discarded. So we exec the FD to /dev/null,
16732 # effectively closing config.log, so it can be properly (re)opened and
16733 # appended to by config.status. When coming back to configure, we
16734 # need to make the FD available again.
16735 if test "$no_create" != yes; then
16736 ac_cs_success=:
16737 ac_config_status_args=
16738 test "$silent" = yes &&
16739 ac_config_status_args="$ac_config_status_args --quiet"
16740 exec 5>/dev/null
16741 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16742 exec 5>>config.log
16743 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16744 # would make configure fail if this is the last instruction.
16745 $ac_cs_success || as_fn_exit 1
16747 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16749 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16754 #XXX compatability...
16755 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16757 if test -n "$aros_shared_cflags" ; then
16758 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16759 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg