just WIP....
[AROS.git] / configure
blob9a661d242e06e965cc567e395209397b4e84bc6d
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_endian
645 gcc_default_fpu
646 gcc_default_cpu_tune
647 gcc_default_cpu
648 aros_ios_sdk
649 aros_ios_version
650 aros_ios_platform
651 aros_enable_mmu
652 aros_nesting_supervisor
653 aros_palm_debug_hack
654 ENABLE_EXECSMP
655 PLATFORM_EXECSMP
656 aros_serial_debug
657 target_grub2_version
658 aros_host_sdl_libs
659 aros_host_sdl_cflags
660 aros_host_x11_ldflags
661 aros_host_x11_cflags
662 DO_VIDMODE_SUPPORT
663 DO_XSHM_SUPPORT
664 aros_nominal_depth
665 aros_nominal_height
666 aros_nominal_width
667 pci_hidd_target
668 host_android_gfx
669 host_sdl_gfx
670 host_x_gfx
671 crosstools_cxx_target
672 crosstools_target
673 aros_isa_flags
674 aros_isa_extra
675 aros_optimization_cflags
676 aros_config_coverage
677 aros_config_lto
678 aros_target_strip_flags
679 aros_target_genmap
680 aros_debug_ldflags
681 aros_debug_aflags
682 aros_debug_cxxflags
683 aros_debug_cflags
684 aros_debug_cppflags
685 aros_kernel_ldflags
686 aros_kernel_objcflags
687 aros_kernel_includes
688 aros_kernel_cflags
689 aros_kernel_cppflags
690 aros_kernel_sysroot
691 aros_config_ldflags
692 aros_config_aflags
693 aros_config_cxxflags
694 aros_config_cflags
695 aros_config_cppflags
696 aros_nowarn_flags
697 aros_warn_flags
698 aros_config_sysroot
699 aros_shared_ldflags
700 aros_shared_aflags
701 aros_shared_cflags
702 aros_arch_libs
703 aros_compiler_libs
704 spec_obj_format
705 aros_object_format
706 aros_shared_ld
707 aros_shared_default
708 aros_target_nm
709 aros_target_strip
710 aros_target_objcopy
711 aros_target_objdump
712 aros_target_cc_path
713 aros_target_cc_includes
714 aros_target_ld
715 aros_target_as
716 aros_target_cpp
717 aros_target_cxx
718 aros_target_cc
719 aros_plain_ar
720 aros_plain_nm
721 aros_target_ranlib
722 aros_target_ar
723 aros_target_suffix
724 aros_target_variant
725 aros_target_cpu_mode
726 aros_target_cpu
727 aros_target_family
728 aros_target_arch
729 aros_target_bootloader
730 aros_target_iconset
731 aros_target_guitheme
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 aros_amigaos_compliance
752 AROS_PORTSSRCDIR
753 AROS_CROSSTOOLSDIR
754 SRCDIR
755 AROS_BUILDDIR_UNIX
756 AROS_BUILDDIR
757 aros_build_host
758 aros_toolchain_ld
759 aros_target_toolchain
760 aros_flavour_uc
761 aros_flavour
762 aros_cpu
763 aros_arch
764 SDL_LIBS
765 SDL_CFLAGS
766 SDL_CONFIG
767 XMKMF
768 kernel_cflags_iquote_end
769 kernel_cflags_iquote
770 host_cflags_iquote_end
771 host_cflags_iquote
772 aros_toolchain
773 aros_target_nostdlib_ldflags
774 aros_target_detach_ldflags
775 aros_target_nix_ldflags
776 aros_target_nostartup_ldflags
777 aros_target_nostdinc_cflags
778 aros_kernel_rescomp
779 orig_target_objdump
780 orig_target_objcopy
781 orig_target_strip
782 orig_target_nm
783 orig_target_ranlib
784 orig_target_ar
785 orig_target_as
786 orig_target_ld
787 orig_target_cxx
788 orig_target_cc
789 orig_target_cpp
790 aros_kernel_objdump
791 aros_kernel_objcopy
792 aros_kernel_strip
793 aros_kernel_nm
794 aros_kernel_ranlib
795 aros_kernel_ar
796 aros_kernel_as
797 aros_kernel_ld
798 aros_kernel_cxx
799 aros_kernel_cc
800 aros_kernel_cpp
801 target_gcc_version
803 android_tool
804 CCACHE
805 DISTCC
806 LIBOBJS
807 EGREP
808 GREP
810 TEST
813 libpng_incdir
814 libpng_libextra
815 libpng
816 arosconfig_use_libpngconfig
817 pkgpyexecdir
818 pyexecdir
819 pkgpythondir
820 pythondir
821 PYTHON_PLATFORM
822 PYTHON_EXEC_PREFIX
823 PYTHON_PREFIX
824 PYTHON_VERSION
825 PYTHON
826 PATCH
827 CHMOD
829 PPMTOILBM
830 PNGTOPNM
831 FLEX
832 BISON
835 UNIQ
836 SORT
837 TOUCH
838 MKDIR
839 ECHO
843 aros_host_strip
844 aros_host_ranlib
845 aros_host_ar
846 aros_host_automake
847 aros_host_autoheader
848 aros_host_autoconf
849 aros_host_aclocal
850 aros_host_ld
851 MMAKE
854 ac_ct_CC
855 CFLAGS
857 OBJEXT
858 EXEEXT
859 ac_ct_CXX
860 CPPFLAGS
861 LDFLAGS
862 CXXFLAGS
864 host_os
865 host_vendor
866 host_cpu
867 host
868 build_os
869 build_vendor
870 build_cpu
871 build
872 target_alias
873 host_alias
874 build_alias
875 LIBS
876 ECHO_T
877 ECHO_N
878 ECHO_C
879 DEFS
880 mandir
881 localedir
882 libdir
883 psdir
884 pdfdir
885 dvidir
886 htmldir
887 infodir
888 docdir
889 oldincludedir
890 includedir
891 localstatedir
892 sharedstatedir
893 sysconfdir
894 datadir
895 datarootdir
896 libexecdir
897 sbindir
898 bindir
899 program_transform_name
900 prefix
901 exec_prefix
902 PACKAGE_URL
903 PACKAGE_BUGREPORT
904 PACKAGE_STRING
905 PACKAGE_VERSION
906 PACKAGE_TARNAME
907 PACKAGE_NAME
908 PATH_SEPARATOR
909 SHELL'
910 ac_subst_files=''
911 ac_user_opts='
912 enable_option_checking
913 with_c_compiler
914 with_cxx_compiler
915 enable_libpng_config
916 with_toolchain
917 enable_lto
918 enable_coverage
919 enable_build_type
920 enable_debug
921 enable_distcc
922 enable_ccache
923 with_kernel_gcc_version
924 with_optimization
925 with_paranoia
926 enable_target_variant
927 with_xcode
928 with_sdk_version
929 with_sdk
930 with_ndk
931 with_ndk_version
932 with_apk_version
933 enable_amigaos_compliance
934 with_kernel_toolchain_prefix
935 with_elf_toolchain_prefix
936 with_aros_toolchain
937 enable_crosstools
938 with_aros_toolchain_install
939 with_binutils_version
940 with_gcc_version
941 enable_objc
942 enable_java
943 with_cpu
944 with_fpu
945 with_float
946 with_portssources
947 with_bootloader
948 with_iconset
949 with_theme
950 enable_includes
951 with_resolution
952 with_serial_debug
953 enable_palm_debug_hack
954 enable_usb30_code
955 enable_nesting_supervisor
956 enable_mmu
957 enable_x11_hidd
958 with_x
959 enable_x11_shm
960 enable_x11_vidmode
961 enable_sdl_hidd
962 with_sdl_prefix
963 with_sdl_exec_prefix
964 enable_sdltest
965 enable_dbus
967 ac_precious_vars='build_alias
968 host_alias
969 target_alias
971 CXXFLAGS
972 LDFLAGS
973 LIBS
974 CPPFLAGS
977 CFLAGS
979 PYTHON
980 XMKMF'
983 # Initialize some variables set by options.
984 ac_init_help=
985 ac_init_version=false
986 ac_unrecognized_opts=
987 ac_unrecognized_sep=
988 # The variables have the same names as the options, with
989 # dashes changed to underlines.
990 cache_file=/dev/null
991 exec_prefix=NONE
992 no_create=
993 no_recursion=
994 prefix=NONE
995 program_prefix=NONE
996 program_suffix=NONE
997 program_transform_name=s,x,x,
998 silent=
999 site=
1000 srcdir=
1001 verbose=
1002 x_includes=NONE
1003 x_libraries=NONE
1005 # Installation directory options.
1006 # These are left unexpanded so users can "make install exec_prefix=/foo"
1007 # and all the variables that are supposed to be based on exec_prefix
1008 # by default will actually change.
1009 # Use braces instead of parens because sh, perl, etc. also accept them.
1010 # (The list follows the same order as the GNU Coding Standards.)
1011 bindir='${exec_prefix}/bin'
1012 sbindir='${exec_prefix}/sbin'
1013 libexecdir='${exec_prefix}/libexec'
1014 datarootdir='${prefix}/share'
1015 datadir='${datarootdir}'
1016 sysconfdir='${prefix}/etc'
1017 sharedstatedir='${prefix}/com'
1018 localstatedir='${prefix}/var'
1019 includedir='${prefix}/include'
1020 oldincludedir='/usr/include'
1021 docdir='${datarootdir}/doc/${PACKAGE}'
1022 infodir='${datarootdir}/info'
1023 htmldir='${docdir}'
1024 dvidir='${docdir}'
1025 pdfdir='${docdir}'
1026 psdir='${docdir}'
1027 libdir='${exec_prefix}/lib'
1028 localedir='${datarootdir}/locale'
1029 mandir='${datarootdir}/man'
1031 ac_prev=
1032 ac_dashdash=
1033 for ac_option
1035 # If the previous option needs an argument, assign it.
1036 if test -n "$ac_prev"; then
1037 eval $ac_prev=\$ac_option
1038 ac_prev=
1039 continue
1042 case $ac_option in
1043 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1044 *=) ac_optarg= ;;
1045 *) ac_optarg=yes ;;
1046 esac
1048 # Accept the important Cygnus configure options, so we can diagnose typos.
1050 case $ac_dashdash$ac_option in
1052 ac_dashdash=yes ;;
1054 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1055 ac_prev=bindir ;;
1056 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1057 bindir=$ac_optarg ;;
1059 -build | --build | --buil | --bui | --bu)
1060 ac_prev=build_alias ;;
1061 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1062 build_alias=$ac_optarg ;;
1064 -cache-file | --cache-file | --cache-fil | --cache-fi \
1065 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1066 ac_prev=cache_file ;;
1067 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1068 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1069 cache_file=$ac_optarg ;;
1071 --config-cache | -C)
1072 cache_file=config.cache ;;
1074 -datadir | --datadir | --datadi | --datad)
1075 ac_prev=datadir ;;
1076 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1077 datadir=$ac_optarg ;;
1079 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1080 | --dataroo | --dataro | --datar)
1081 ac_prev=datarootdir ;;
1082 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1083 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1084 datarootdir=$ac_optarg ;;
1086 -disable-* | --disable-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error $? "invalid feature name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1095 "enable_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval enable_$ac_useropt=no ;;
1102 -docdir | --docdir | --docdi | --doc | --do)
1103 ac_prev=docdir ;;
1104 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1105 docdir=$ac_optarg ;;
1107 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1108 ac_prev=dvidir ;;
1109 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1110 dvidir=$ac_optarg ;;
1112 -enable-* | --enable-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error $? "invalid feature name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1121 "enable_$ac_useropt"
1122 "*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval enable_$ac_useropt=\$ac_optarg ;;
1128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1130 | --exec | --exe | --ex)
1131 ac_prev=exec_prefix ;;
1132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1134 | --exec=* | --exe=* | --ex=*)
1135 exec_prefix=$ac_optarg ;;
1137 -gas | --gas | --ga | --g)
1138 # Obsolete; use --with-gas.
1139 with_gas=yes ;;
1141 -help | --help | --hel | --he | -h)
1142 ac_init_help=long ;;
1143 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1144 ac_init_help=recursive ;;
1145 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1146 ac_init_help=short ;;
1148 -host | --host | --hos | --ho)
1149 ac_prev=host_alias ;;
1150 -host=* | --host=* | --hos=* | --ho=*)
1151 host_alias=$ac_optarg ;;
1153 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1154 ac_prev=htmldir ;;
1155 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1156 | --ht=*)
1157 htmldir=$ac_optarg ;;
1159 -includedir | --includedir | --includedi | --included | --include \
1160 | --includ | --inclu | --incl | --inc)
1161 ac_prev=includedir ;;
1162 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1163 | --includ=* | --inclu=* | --incl=* | --inc=*)
1164 includedir=$ac_optarg ;;
1166 -infodir | --infodir | --infodi | --infod | --info | --inf)
1167 ac_prev=infodir ;;
1168 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1169 infodir=$ac_optarg ;;
1171 -libdir | --libdir | --libdi | --libd)
1172 ac_prev=libdir ;;
1173 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1174 libdir=$ac_optarg ;;
1176 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1177 | --libexe | --libex | --libe)
1178 ac_prev=libexecdir ;;
1179 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1180 | --libexe=* | --libex=* | --libe=*)
1181 libexecdir=$ac_optarg ;;
1183 -localedir | --localedir | --localedi | --localed | --locale)
1184 ac_prev=localedir ;;
1185 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1186 localedir=$ac_optarg ;;
1188 -localstatedir | --localstatedir | --localstatedi | --localstated \
1189 | --localstate | --localstat | --localsta | --localst | --locals)
1190 ac_prev=localstatedir ;;
1191 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1192 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1193 localstatedir=$ac_optarg ;;
1195 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1196 ac_prev=mandir ;;
1197 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1198 mandir=$ac_optarg ;;
1200 -nfp | --nfp | --nf)
1201 # Obsolete; use --without-fp.
1202 with_fp=no ;;
1204 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1205 | --no-cr | --no-c | -n)
1206 no_create=yes ;;
1208 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1209 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1210 no_recursion=yes ;;
1212 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1213 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1214 | --oldin | --oldi | --old | --ol | --o)
1215 ac_prev=oldincludedir ;;
1216 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1217 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1218 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1219 oldincludedir=$ac_optarg ;;
1221 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1222 ac_prev=prefix ;;
1223 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1224 prefix=$ac_optarg ;;
1226 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1227 | --program-pre | --program-pr | --program-p)
1228 ac_prev=program_prefix ;;
1229 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1230 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1231 program_prefix=$ac_optarg ;;
1233 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1234 | --program-suf | --program-su | --program-s)
1235 ac_prev=program_suffix ;;
1236 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1237 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1238 program_suffix=$ac_optarg ;;
1240 -program-transform-name | --program-transform-name \
1241 | --program-transform-nam | --program-transform-na \
1242 | --program-transform-n | --program-transform- \
1243 | --program-transform | --program-transfor \
1244 | --program-transfo | --program-transf \
1245 | --program-trans | --program-tran \
1246 | --progr-tra | --program-tr | --program-t)
1247 ac_prev=program_transform_name ;;
1248 -program-transform-name=* | --program-transform-name=* \
1249 | --program-transform-nam=* | --program-transform-na=* \
1250 | --program-transform-n=* | --program-transform-=* \
1251 | --program-transform=* | --program-transfor=* \
1252 | --program-transfo=* | --program-transf=* \
1253 | --program-trans=* | --program-tran=* \
1254 | --progr-tra=* | --program-tr=* | --program-t=*)
1255 program_transform_name=$ac_optarg ;;
1257 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1258 ac_prev=pdfdir ;;
1259 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1260 pdfdir=$ac_optarg ;;
1262 -psdir | --psdir | --psdi | --psd | --ps)
1263 ac_prev=psdir ;;
1264 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1265 psdir=$ac_optarg ;;
1267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268 | -silent | --silent | --silen | --sile | --sil)
1269 silent=yes ;;
1271 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1272 ac_prev=sbindir ;;
1273 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1274 | --sbi=* | --sb=*)
1275 sbindir=$ac_optarg ;;
1277 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1278 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1279 | --sharedst | --shareds | --shared | --share | --shar \
1280 | --sha | --sh)
1281 ac_prev=sharedstatedir ;;
1282 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1283 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1284 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1285 | --sha=* | --sh=*)
1286 sharedstatedir=$ac_optarg ;;
1288 -site | --site | --sit)
1289 ac_prev=site ;;
1290 -site=* | --site=* | --sit=*)
1291 site=$ac_optarg ;;
1293 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1294 ac_prev=srcdir ;;
1295 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1296 srcdir=$ac_optarg ;;
1298 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1299 | --syscon | --sysco | --sysc | --sys | --sy)
1300 ac_prev=sysconfdir ;;
1301 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1302 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1303 sysconfdir=$ac_optarg ;;
1305 -target | --target | --targe | --targ | --tar | --ta | --t)
1306 ac_prev=target_alias ;;
1307 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1308 target_alias=$ac_optarg ;;
1310 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1311 verbose=yes ;;
1313 -version | --version | --versio | --versi | --vers | -V)
1314 ac_init_version=: ;;
1316 -with-* | --with-*)
1317 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320 as_fn_error $? "invalid package name: $ac_useropt"
1321 ac_useropt_orig=$ac_useropt
1322 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323 case $ac_user_opts in
1325 "with_$ac_useropt"
1326 "*) ;;
1327 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1328 ac_unrecognized_sep=', ';;
1329 esac
1330 eval with_$ac_useropt=\$ac_optarg ;;
1332 -without-* | --without-*)
1333 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1336 as_fn_error $? "invalid package name: $ac_useropt"
1337 ac_useropt_orig=$ac_useropt
1338 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339 case $ac_user_opts in
1341 "with_$ac_useropt"
1342 "*) ;;
1343 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1344 ac_unrecognized_sep=', ';;
1345 esac
1346 eval with_$ac_useropt=no ;;
1348 --x)
1349 # Obsolete; use --with-x.
1350 with_x=yes ;;
1352 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1353 | --x-incl | --x-inc | --x-in | --x-i)
1354 ac_prev=x_includes ;;
1355 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1356 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1357 x_includes=$ac_optarg ;;
1359 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1360 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1361 ac_prev=x_libraries ;;
1362 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1363 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1364 x_libraries=$ac_optarg ;;
1366 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1367 Try \`$0 --help' for more information"
1370 *=*)
1371 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1372 # Reject names that are not valid shell variable names.
1373 case $ac_envvar in #(
1374 '' | [0-9]* | *[!_$as_cr_alnum]* )
1375 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1376 esac
1377 eval $ac_envvar=\$ac_optarg
1378 export $ac_envvar ;;
1381 # FIXME: should be removed in autoconf 3.0.
1382 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1383 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1385 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1388 esac
1389 done
1391 if test -n "$ac_prev"; then
1392 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1393 as_fn_error $? "missing argument to $ac_option"
1396 if test -n "$ac_unrecognized_opts"; then
1397 case $enable_option_checking in
1398 no) ;;
1399 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1400 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1401 esac
1404 # Check all directory arguments for consistency.
1405 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1406 datadir sysconfdir sharedstatedir localstatedir includedir \
1407 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1408 libdir localedir mandir
1410 eval ac_val=\$$ac_var
1411 # Remove trailing slashes.
1412 case $ac_val in
1413 */ )
1414 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1415 eval $ac_var=\$ac_val;;
1416 esac
1417 # Be sure to have absolute directory names.
1418 case $ac_val in
1419 [\\/$]* | ?:[\\/]* ) continue;;
1420 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1421 esac
1422 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1423 done
1425 # There might be people who depend on the old broken behavior: `$host'
1426 # used to hold the argument of --host etc.
1427 # FIXME: To remove some day.
1428 build=$build_alias
1429 host=$host_alias
1430 target=$target_alias
1432 # FIXME: To remove some day.
1433 if test "x$host_alias" != x; then
1434 if test "x$build_alias" = x; then
1435 cross_compiling=maybe
1436 elif test "x$build_alias" != "x$host_alias"; then
1437 cross_compiling=yes
1441 ac_tool_prefix=
1442 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1444 test "$silent" = yes && exec 6>/dev/null
1447 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1448 ac_ls_di=`ls -di .` &&
1449 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1450 as_fn_error $? "working directory cannot be determined"
1451 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1452 as_fn_error $? "pwd does not report name of working directory"
1455 # Find the source files, if location was not specified.
1456 if test -z "$srcdir"; then
1457 ac_srcdir_defaulted=yes
1458 # Try the directory containing this script, then the parent directory.
1459 ac_confdir=`$as_dirname -- "$as_myself" ||
1460 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1461 X"$as_myself" : 'X\(//\)[^/]' \| \
1462 X"$as_myself" : 'X\(//\)$' \| \
1463 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1464 $as_echo X"$as_myself" |
1465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1466 s//\1/
1469 /^X\(\/\/\)[^/].*/{
1470 s//\1/
1473 /^X\(\/\/\)$/{
1474 s//\1/
1477 /^X\(\/\).*/{
1478 s//\1/
1481 s/.*/./; q'`
1482 srcdir=$ac_confdir
1483 if test ! -r "$srcdir/$ac_unique_file"; then
1484 srcdir=..
1486 else
1487 ac_srcdir_defaulted=no
1489 if test ! -r "$srcdir/$ac_unique_file"; then
1490 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1491 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1493 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1494 ac_abs_confdir=`(
1495 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1496 pwd)`
1497 # When building in place, set srcdir=.
1498 if test "$ac_abs_confdir" = "$ac_pwd"; then
1499 srcdir=.
1501 # Remove unnecessary trailing slashes from srcdir.
1502 # Double slashes in file names in object file debugging info
1503 # mess up M-x gdb in Emacs.
1504 case $srcdir in
1505 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1506 esac
1507 for ac_var in $ac_precious_vars; do
1508 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1509 eval ac_env_${ac_var}_value=\$${ac_var}
1510 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1511 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1512 done
1515 # Report the --help message.
1517 if test "$ac_init_help" = "long"; then
1518 # Omit some internal or obsolete options to make the list less imposing.
1519 # This message is too long to be a string in the A/UX 3.1 sh.
1520 cat <<_ACEOF
1521 \`configure' configures this package to adapt to many kinds of systems.
1523 Usage: $0 [OPTION]... [VAR=VALUE]...
1525 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1526 VAR=VALUE. See below for descriptions of some of the useful variables.
1528 Defaults for the options are specified in brackets.
1530 Configuration:
1531 -h, --help display this help and exit
1532 --help=short display options specific to this package
1533 --help=recursive display the short help of all the included packages
1534 -V, --version display version information and exit
1535 -q, --quiet, --silent do not print \`checking ...' messages
1536 --cache-file=FILE cache test results in FILE [disabled]
1537 -C, --config-cache alias for \`--cache-file=config.cache'
1538 -n, --no-create do not create output files
1539 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1541 Installation directories:
1542 --prefix=PREFIX install architecture-independent files in PREFIX
1543 [$ac_default_prefix]
1544 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1545 [PREFIX]
1547 By default, \`make install' will install all the files in
1548 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1549 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1550 for instance \`--prefix=\$HOME'.
1552 For better control, use the options below.
1554 Fine tuning of the installation directories:
1555 --bindir=DIR user executables [EPREFIX/bin]
1556 --sbindir=DIR system admin executables [EPREFIX/sbin]
1557 --libexecdir=DIR program executables [EPREFIX/libexec]
1558 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1559 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1560 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1561 --libdir=DIR object code libraries [EPREFIX/lib]
1562 --includedir=DIR C header files [PREFIX/include]
1563 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1564 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1565 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1566 --infodir=DIR info documentation [DATAROOTDIR/info]
1567 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1568 --mandir=DIR man documentation [DATAROOTDIR/man]
1569 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1570 --htmldir=DIR html documentation [DOCDIR]
1571 --dvidir=DIR dvi documentation [DOCDIR]
1572 --pdfdir=DIR pdf documentation [DOCDIR]
1573 --psdir=DIR ps documentation [DOCDIR]
1574 _ACEOF
1576 cat <<\_ACEOF
1578 X features:
1579 --x-includes=DIR X include files are in DIR
1580 --x-libraries=DIR X library files are in DIR
1582 System types:
1583 --build=BUILD configure for building on BUILD [guessed]
1584 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1585 _ACEOF
1588 if test -n "$ac_init_help"; then
1590 cat <<\_ACEOF
1592 Optional Features:
1593 --disable-option-checking ignore unrecognized --enable/--with options
1594 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1595 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1596 --disable-libpng-config disable libpng-config test and configuration
1597 --enable-lto=yes|no Enable link time optimizations if the target
1598 compiler supports them (default=no)
1599 --enable-coverage=yes|no
1600 Enable coverage instrumentation if the target
1601 compiler supports it (default=no)
1602 --enable-build-type=TYPE
1603 Select the build type. Available types are:
1604 personal, nightly, snapshot, milestone, release. Do
1605 NOT use this option unless you know what you are
1606 doing! (default=personal)
1607 --enable-debug=list Enable different types of debug. Commas or
1608 whitespaces can be used to separate the items in the
1609 list. Available types of debug are: all, none,
1610 messages, stack, mungwall, modules, symbols. If no
1611 list is provided then "all" is assumed.
1612 (default=none)
1613 --enable-distcc Use distcc as a front end to the compiler
1614 (default=no).
1615 --enable-ccache Use ccache as a front end to the compiler
1616 (default=no).
1617 --enable-target-variant=NAME
1618 Enable a specific target variant (default=none)
1619 --enable-amigaos-compliance=VERSION
1620 Enforce userspace AmigaOS compliance to a specific
1621 KickStart version (default=none).
1622 --disable-crosstools Do not build cross-compiler toolchain
1623 --enable-objc Enable Objectve-C support (default=no)
1624 --enable-java Enable Java support (default=no)
1625 --enable-includes=dir Alternative system include directory
1626 --enable-palm-debug-hack
1627 Enable palm debug output hack in palm native
1628 (default=no)
1629 --enable-usb30-code Enable usb3.0 code (default=no)
1630 --enable-nesting-supervisor
1631 Enable nesting supervisor support in unix
1632 (default=no)
1633 --disable-mmu Disable MMU support (default=enabled)
1634 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1635 --enable-x11-shm use X11 shared memory (default=auto)
1636 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1637 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1638 --disable-sdltest Do not try to compile and run a test SDL program
1639 --enable-dbus Enable DBUS support via dbus.library (default=no)
1641 Optional Packages:
1642 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1643 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1644 --with-c-compiler=VERSION
1645 Use specified c compiler for building AROS
1646 --with-cxx-compiler=VERSION
1647 Use specified c++ compiler building AROS
1648 --with-toolchain=family Which toolchain family to crosscompile with
1649 (defaults to gnu)
1650 --with-kernel-gcc-version=VERSION
1651 Use gcc-VERSION for building bootstrap
1652 --with-optimization=FLAGS
1653 Use optimization flags FLAGS (e.g
1654 --with-optimization=-O2).
1655 --with-paranoia=(yes|no|FLAGS)
1656 Specific compiler warning FLAGS to enable for
1657 paranoia builds (default=-Wall -Werror)
1658 --with-xcode=PATH Specify XCode path for iOS targets
1659 (default=/Developer).
1660 --with-sdk-version=VERSION
1661 Use iOS SDK version VERSION (default=4.1).
1662 --with-sdk=PATH Specify Android SDK path
1663 (default=$default_android_sdk).
1664 --with-ndk=PATH Specify Android NDK path (default=none).
1665 --with-sdk-version=LEVEL
1666 Use Android SDK for API LEVEL (default=12).
1667 --with-ndk-version=LEVEL
1668 Use Android NDK for API LEVEL (default=9).
1669 --with-apk-version=(release|debug)
1670 Which version of AROSBootstrap.apk to compile.
1671 Release version needs key for signing, debug version
1672 will only run in emulator. (default=release)
1673 --with-kernel-toolchain-prefix=...
1674 Specify crosscompile toolchain prefix for kernel
1675 objects
1676 --with-elf-toolchain-prefix=...
1677 Specify crosscompile toolchain prefix to wrap for
1678 AROS objects
1679 --with-aros-toolchain=PREFIX
1680 Specify prebuilt AROS toolchain. Use yes for default
1681 name
1682 --with-aros-toolchain-install=DIR
1683 Where to install or search for cross tools binaries
1684 --with-binutils-version=VERSION
1685 Use binutils-VERSION for building AROS
1686 --with-gcc-version=VERSION
1687 Compile gcc-VERSION for AROS
1688 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1689 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1690 --with-float=<spec> Specify floating point ABI
1691 (default=$gcc_default_float_abi).
1692 --with-portssources=DIR Where to download sourcecode for external ports
1693 --with-bootloader=NAME Use a specific bootloader
1694 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1695 --with-theme=NAME Use a specific GUI Theme
1696 --with-resolution=XRESxYRESxDEPTH
1697 Default resolution of the initial WorkbenchScreen
1698 --with-serial-debug Enable serial debug output in native (default=no)
1699 --with-x use the X Window System
1700 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1701 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1703 Some influential environment variables:
1704 CXX C++ compiler command
1705 CXXFLAGS C++ compiler flags
1706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1707 nonstandard directory <lib dir>
1708 LIBS libraries to pass to the linker, e.g. -l<library>
1709 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1710 you have headers in a nonstandard directory <include dir>
1711 CC C compiler command
1712 CFLAGS C compiler flags
1713 CPP C preprocessor
1714 PYTHON the Python interpreter
1715 XMKMF Path to xmkmf, Makefile generator for X Window System
1717 Use these variables to override the choices made by `configure' or to help
1718 it to find libraries and programs with nonstandard names/locations.
1720 Report bugs to the package provider.
1721 _ACEOF
1722 ac_status=$?
1725 if test "$ac_init_help" = "recursive"; then
1726 # If there are subdirs, report their specific --help.
1727 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1728 test -d "$ac_dir" ||
1729 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1730 continue
1731 ac_builddir=.
1733 case "$ac_dir" in
1734 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1736 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1737 # A ".." for each directory in $ac_dir_suffix.
1738 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1739 case $ac_top_builddir_sub in
1740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1742 esac ;;
1743 esac
1744 ac_abs_top_builddir=$ac_pwd
1745 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1746 # for backward compatibility:
1747 ac_top_builddir=$ac_top_build_prefix
1749 case $srcdir in
1750 .) # We are building in place.
1751 ac_srcdir=.
1752 ac_top_srcdir=$ac_top_builddir_sub
1753 ac_abs_top_srcdir=$ac_pwd ;;
1754 [\\/]* | ?:[\\/]* ) # Absolute name.
1755 ac_srcdir=$srcdir$ac_dir_suffix;
1756 ac_top_srcdir=$srcdir
1757 ac_abs_top_srcdir=$srcdir ;;
1758 *) # Relative name.
1759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1760 ac_top_srcdir=$ac_top_build_prefix$srcdir
1761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1762 esac
1763 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1765 cd "$ac_dir" || { ac_status=$?; continue; }
1766 # Check for guested configure.
1767 if test -f "$ac_srcdir/configure.gnu"; then
1768 echo &&
1769 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1770 elif test -f "$ac_srcdir/configure"; then
1771 echo &&
1772 $SHELL "$ac_srcdir/configure" --help=recursive
1773 else
1774 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1775 fi || ac_status=$?
1776 cd "$ac_pwd" || { ac_status=$?; break; }
1777 done
1780 test -n "$ac_init_help" && exit $ac_status
1781 if $ac_init_version; then
1782 cat <<\_ACEOF
1783 configure
1784 generated by GNU Autoconf 2.69
1786 Copyright (C) 2012 Free Software Foundation, Inc.
1787 This configure script is free software; the Free Software Foundation
1788 gives unlimited permission to copy, distribute and modify it.
1789 _ACEOF
1790 exit
1793 ## ------------------------ ##
1794 ## Autoconf initialization. ##
1795 ## ------------------------ ##
1797 # ac_fn_cxx_try_compile LINENO
1798 # ----------------------------
1799 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_cxx_try_compile ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext
1804 if { { ac_try="$ac_compile"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_compile") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_cxx_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest.$ac_objext; then :
1823 ac_retval=0
1824 else
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1828 ac_retval=1
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1833 } # ac_fn_cxx_try_compile
1835 # ac_fn_c_try_compile LINENO
1836 # --------------------------
1837 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_c_try_compile ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 rm -f conftest.$ac_objext
1842 if { { ac_try="$ac_compile"
1843 case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_compile") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest.$ac_objext; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1866 ac_retval=1
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1871 } # ac_fn_c_try_compile
1873 # ac_fn_c_try_cpp LINENO
1874 # ----------------------
1875 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_c_try_cpp ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { { ac_try="$ac_cpp conftest.$ac_ext"
1880 case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1887 ac_status=$?
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } > conftest.i && {
1895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1896 test ! -s conftest.err
1897 }; then :
1898 ac_retval=0
1899 else
1900 $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1903 ac_retval=1
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1908 } # ac_fn_c_try_cpp
1910 # ac_fn_c_try_link LINENO
1911 # -----------------------
1912 # Try to link conftest.$ac_ext, and return whether this succeeded.
1913 ac_fn_c_try_link ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 rm -f conftest.$ac_objext conftest$ac_exeext
1917 if { { ac_try="$ac_link"
1918 case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_link") 2>conftest.err
1925 ac_status=$?
1926 if test -s conftest.err; then
1927 grep -v '^ *+' conftest.err >conftest.er1
1928 cat conftest.er1 >&5
1929 mv -f conftest.er1 conftest.err
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && {
1933 test -z "$ac_c_werror_flag" ||
1934 test ! -s conftest.err
1935 } && test -s conftest$ac_exeext && {
1936 test "$cross_compiling" = yes ||
1937 test -x conftest$ac_exeext
1938 }; then :
1939 ac_retval=0
1940 else
1941 $as_echo "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1944 ac_retval=1
1946 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1947 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1948 # interfere with the next link command; also delete a directory that is
1949 # left behind by Apple's compiler. We do this before executing the actions.
1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1954 } # ac_fn_c_try_link
1956 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1957 # -------------------------------------------------------
1958 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1959 # the include files in INCLUDES and setting the cache variable VAR
1960 # accordingly.
1961 ac_fn_c_check_header_mongrel ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 if eval \${$3+:} false; then :
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if eval \${$3+:} false; then :
1968 $as_echo_n "(cached) " >&6
1970 eval ac_res=\$$3
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 else
1974 # Is the header compilable?
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1976 $as_echo_n "checking $2 usability... " >&6; }
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1980 #include <$2>
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"; then :
1983 ac_header_compiler=yes
1984 else
1985 ac_header_compiler=no
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1989 $as_echo "$ac_header_compiler" >&6; }
1991 # Is the header present?
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1993 $as_echo_n "checking $2 presence... " >&6; }
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1996 #include <$2>
1997 _ACEOF
1998 if ac_fn_c_try_cpp "$LINENO"; then :
1999 ac_header_preproc=yes
2000 else
2001 ac_header_preproc=no
2003 rm -f conftest.err conftest.i conftest.$ac_ext
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2005 $as_echo "$ac_header_preproc" >&6; }
2007 # So? What about this header?
2008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2009 yes:no: )
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2011 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2013 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2015 no:yes:* )
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2017 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2019 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2021 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2023 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2025 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2027 esac
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029 $as_echo_n "checking for $2... " >&6; }
2030 if eval \${$3+:} false; then :
2031 $as_echo_n "(cached) " >&6
2032 else
2033 eval "$3=\$ac_header_compiler"
2035 eval ac_res=\$$3
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 } # ac_fn_c_check_header_mongrel
2043 # ac_fn_c_try_run LINENO
2044 # ----------------------
2045 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2046 # that executables *can* be run.
2047 ac_fn_c_try_run ()
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 if { { ac_try="$ac_link"
2051 case "(($ac_try" in
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2054 esac
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_link") 2>&5
2058 ac_status=$?
2059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2061 { { case "(($ac_try" in
2062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063 *) ac_try_echo=$ac_try;;
2064 esac
2065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067 (eval "$ac_try") 2>&5
2068 ac_status=$?
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070 test $ac_status = 0; }; }; then :
2071 ac_retval=0
2072 else
2073 $as_echo "$as_me: program exited with status $ac_status" >&5
2074 $as_echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2077 ac_retval=$ac_status
2079 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081 as_fn_set_status $ac_retval
2083 } # ac_fn_c_try_run
2085 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2086 # -------------------------------------------------------
2087 # Tests whether HEADER exists and can be compiled using the include files in
2088 # INCLUDES, setting the cache variable VAR accordingly.
2089 ac_fn_c_check_header_compile ()
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 $as_echo_n "checking for $2... " >&6; }
2094 if eval \${$3+:} false; then :
2095 $as_echo_n "(cached) " >&6
2096 else
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2100 #include <$2>
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 eval "$3=yes"
2104 else
2105 eval "$3=no"
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 eval ac_res=\$$3
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 } # ac_fn_c_check_header_compile
2116 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2117 # ----------------------------------------------------
2118 # Tries to find if the field MEMBER exists in type AGGR, after including
2119 # INCLUDES, setting cache variable VAR accordingly.
2120 ac_fn_c_check_member ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2124 $as_echo_n "checking for $2.$3... " >&6; }
2125 if eval \${$4+:} false; then :
2126 $as_echo_n "(cached) " >&6
2127 else
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2132 main ()
2134 static $2 ac_aggr;
2135 if (ac_aggr.$3)
2136 return 0;
2138 return 0;
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 eval "$4=yes"
2143 else
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2148 main ()
2150 static $2 ac_aggr;
2151 if (sizeof ac_aggr.$3)
2152 return 0;
2154 return 0;
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158 eval "$4=yes"
2159 else
2160 eval "$4=no"
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 eval ac_res=\$$4
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171 } # ac_fn_c_check_member
2173 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2174 # ---------------------------------------------
2175 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2176 # accordingly.
2177 ac_fn_c_check_decl ()
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 as_decl_name=`echo $2|sed 's/ *(.*//'`
2181 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2183 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2184 if eval \${$3+:} false; then :
2185 $as_echo_n "(cached) " >&6
2186 else
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2191 main ()
2193 #ifndef $as_decl_name
2194 #ifdef __cplusplus
2195 (void) $as_decl_use;
2196 #else
2197 (void) $as_decl_name;
2198 #endif
2199 #endif
2202 return 0;
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206 eval "$3=yes"
2207 else
2208 eval "$3=no"
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 eval ac_res=\$$3
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 $as_echo "$ac_res" >&6; }
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 } # ac_fn_c_check_decl
2219 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2220 # -------------------------------------------
2221 # Tests whether TYPE exists after having included INCLUDES, setting cache
2222 # variable VAR accordingly.
2223 ac_fn_c_check_type ()
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \${$3+:} false; then :
2229 $as_echo_n "(cached) " >&6
2230 else
2231 eval "$3=no"
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2236 main ()
2238 if (sizeof ($2))
2239 return 0;
2241 return 0;
2243 _ACEOF
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2249 main ()
2251 if (sizeof (($2)))
2252 return 0;
2254 return 0;
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"; then :
2259 else
2260 eval "$3=yes"
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 eval ac_res=\$$3
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 } # ac_fn_c_check_type
2273 # ac_fn_c_check_func LINENO FUNC VAR
2274 # ----------------------------------
2275 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2276 ac_fn_c_check_func ()
2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2280 $as_echo_n "checking for $2... " >&6; }
2281 if eval \${$3+:} false; then :
2282 $as_echo_n "(cached) " >&6
2283 else
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2286 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2288 #define $2 innocuous_$2
2290 /* System header to define __stub macros and hopefully few prototypes,
2291 which can conflict with char $2 (); below.
2292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2293 <limits.h> exists even on freestanding compilers. */
2295 #ifdef __STDC__
2296 # include <limits.h>
2297 #else
2298 # include <assert.h>
2299 #endif
2301 #undef $2
2303 /* Override any GCC internal prototype to avoid an error.
2304 Use char because int might match the return type of a GCC
2305 builtin and then its argument prototype would still apply. */
2306 #ifdef __cplusplus
2307 extern "C"
2308 #endif
2309 char $2 ();
2310 /* The GNU C library defines this for functions which it implements
2311 to always fail with ENOSYS. Some functions are actually named
2312 something starting with __ and the normal name is an alias. */
2313 #if defined __stub_$2 || defined __stub___$2
2314 choke me
2315 #endif
2318 main ()
2320 return $2 ();
2322 return 0;
2324 _ACEOF
2325 if ac_fn_c_try_link "$LINENO"; then :
2326 eval "$3=yes"
2327 else
2328 eval "$3=no"
2330 rm -f core conftest.err conftest.$ac_objext \
2331 conftest$ac_exeext conftest.$ac_ext
2333 eval ac_res=\$$3
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338 } # ac_fn_c_check_func
2339 cat >config.log <<_ACEOF
2340 This file contains any messages produced by compilers while
2341 running configure, to aid debugging if configure makes a mistake.
2343 It was created by $as_me, which was
2344 generated by GNU Autoconf 2.69. Invocation command line was
2346 $ $0 $@
2348 _ACEOF
2349 exec 5>>config.log
2351 cat <<_ASUNAME
2352 ## --------- ##
2353 ## Platform. ##
2354 ## --------- ##
2356 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2357 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2358 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2359 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2360 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2362 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2363 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2365 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2366 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2367 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2368 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2369 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2370 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2371 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2373 _ASUNAME
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 $as_echo "PATH: $as_dir"
2381 done
2382 IFS=$as_save_IFS
2384 } >&5
2386 cat >&5 <<_ACEOF
2389 ## ----------- ##
2390 ## Core tests. ##
2391 ## ----------- ##
2393 _ACEOF
2396 # Keep a trace of the command line.
2397 # Strip out --no-create and --no-recursion so they do not pile up.
2398 # Strip out --silent because we don't want to record it for future runs.
2399 # Also quote any args containing shell meta-characters.
2400 # Make two passes to allow for proper duplicate-argument suppression.
2401 ac_configure_args=
2402 ac_configure_args0=
2403 ac_configure_args1=
2404 ac_must_keep_next=false
2405 for ac_pass in 1 2
2407 for ac_arg
2409 case $ac_arg in
2410 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2412 | -silent | --silent | --silen | --sile | --sil)
2413 continue ;;
2414 *\'*)
2415 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2416 esac
2417 case $ac_pass in
2418 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2420 as_fn_append ac_configure_args1 " '$ac_arg'"
2421 if test $ac_must_keep_next = true; then
2422 ac_must_keep_next=false # Got value, back to normal.
2423 else
2424 case $ac_arg in
2425 *=* | --config-cache | -C | -disable-* | --disable-* \
2426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2428 | -with-* | --with-* | -without-* | --without-* | --x)
2429 case "$ac_configure_args0 " in
2430 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2431 esac
2433 -* ) ac_must_keep_next=true ;;
2434 esac
2436 as_fn_append ac_configure_args " '$ac_arg'"
2438 esac
2439 done
2440 done
2441 { ac_configure_args0=; unset ac_configure_args0;}
2442 { ac_configure_args1=; unset ac_configure_args1;}
2444 # When interrupted or exit'd, cleanup temporary files, and complete
2445 # config.log. We remove comments because anyway the quotes in there
2446 # would cause problems or look ugly.
2447 # WARNING: Use '\'' to represent an apostrophe within the trap.
2448 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2449 trap 'exit_status=$?
2450 # Save into config.log some information that might help in debugging.
2452 echo
2454 $as_echo "## ---------------- ##
2455 ## Cache variables. ##
2456 ## ---------------- ##"
2457 echo
2458 # The following way of writing the cache mishandles newlines in values,
2460 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2461 eval ac_val=\$$ac_var
2462 case $ac_val in #(
2463 *${as_nl}*)
2464 case $ac_var in #(
2465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2467 esac
2468 case $ac_var in #(
2469 _ | IFS | as_nl) ;; #(
2470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2471 *) { eval $ac_var=; unset $ac_var;} ;;
2472 esac ;;
2473 esac
2474 done
2475 (set) 2>&1 |
2476 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2477 *${as_nl}ac_space=\ *)
2478 sed -n \
2479 "s/'\''/'\''\\\\'\'''\''/g;
2480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2481 ;; #(
2483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2485 esac |
2486 sort
2488 echo
2490 $as_echo "## ----------------- ##
2491 ## Output variables. ##
2492 ## ----------------- ##"
2493 echo
2494 for ac_var in $ac_subst_vars
2496 eval ac_val=\$$ac_var
2497 case $ac_val in
2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2499 esac
2500 $as_echo "$ac_var='\''$ac_val'\''"
2501 done | sort
2502 echo
2504 if test -n "$ac_subst_files"; then
2505 $as_echo "## ------------------- ##
2506 ## File substitutions. ##
2507 ## ------------------- ##"
2508 echo
2509 for ac_var in $ac_subst_files
2511 eval ac_val=\$$ac_var
2512 case $ac_val in
2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514 esac
2515 $as_echo "$ac_var='\''$ac_val'\''"
2516 done | sort
2517 echo
2520 if test -s confdefs.h; then
2521 $as_echo "## ----------- ##
2522 ## confdefs.h. ##
2523 ## ----------- ##"
2524 echo
2525 cat confdefs.h
2526 echo
2528 test "$ac_signal" != 0 &&
2529 $as_echo "$as_me: caught signal $ac_signal"
2530 $as_echo "$as_me: exit $exit_status"
2531 } >&5
2532 rm -f core *.core core.conftest.* &&
2533 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2534 exit $exit_status
2536 for ac_signal in 1 2 13 15; do
2537 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2538 done
2539 ac_signal=0
2541 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2542 rm -f -r conftest* confdefs.h
2544 $as_echo "/* confdefs.h */" > confdefs.h
2546 # Predefined preprocessor variables.
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_NAME "$PACKAGE_NAME"
2550 _ACEOF
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2554 _ACEOF
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2558 _ACEOF
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_STRING "$PACKAGE_STRING"
2562 _ACEOF
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2566 _ACEOF
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_URL "$PACKAGE_URL"
2570 _ACEOF
2573 # Let the site file select an alternate cache file if it wants to.
2574 # Prefer an explicitly selected file to automatically selected ones.
2575 ac_site_file1=NONE
2576 ac_site_file2=NONE
2577 if test -n "$CONFIG_SITE"; then
2578 # We do not want a PATH search for config.site.
2579 case $CONFIG_SITE in #((
2580 -*) ac_site_file1=./$CONFIG_SITE;;
2581 */*) ac_site_file1=$CONFIG_SITE;;
2582 *) ac_site_file1=./$CONFIG_SITE;;
2583 esac
2584 elif test "x$prefix" != xNONE; then
2585 ac_site_file1=$prefix/share/config.site
2586 ac_site_file2=$prefix/etc/config.site
2587 else
2588 ac_site_file1=$ac_default_prefix/share/config.site
2589 ac_site_file2=$ac_default_prefix/etc/config.site
2591 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2593 test "x$ac_site_file" = xNONE && continue
2594 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2596 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2597 sed 's/^/| /' "$ac_site_file" >&5
2598 . "$ac_site_file" \
2599 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601 as_fn_error $? "failed to load site script $ac_site_file
2602 See \`config.log' for more details" "$LINENO" 5; }
2604 done
2606 if test -r "$cache_file"; then
2607 # Some versions of bash will fail to source /dev/null (special files
2608 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2609 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2611 $as_echo "$as_me: loading cache $cache_file" >&6;}
2612 case $cache_file in
2613 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2614 *) . "./$cache_file";;
2615 esac
2617 else
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2619 $as_echo "$as_me: creating cache $cache_file" >&6;}
2620 >$cache_file
2623 as_fn_append ac_header_list " stdlib.h"
2624 as_fn_append ac_header_list " unistd.h"
2625 as_fn_append ac_header_list " sys/param.h"
2626 # Check that the precious variables saved in the cache have kept the same
2627 # value.
2628 ac_cache_corrupted=false
2629 for ac_var in $ac_precious_vars; do
2630 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2631 eval ac_new_set=\$ac_env_${ac_var}_set
2632 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2633 eval ac_new_val=\$ac_env_${ac_var}_value
2634 case $ac_old_set,$ac_new_set in
2635 set,)
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2637 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2638 ac_cache_corrupted=: ;;
2639 ,set)
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2641 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2642 ac_cache_corrupted=: ;;
2643 ,);;
2645 if test "x$ac_old_val" != "x$ac_new_val"; then
2646 # differences in whitespace do not lead to failure.
2647 ac_old_val_w=`echo x $ac_old_val`
2648 ac_new_val_w=`echo x $ac_new_val`
2649 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2651 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2652 ac_cache_corrupted=:
2653 else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2655 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2656 eval $ac_var=\$ac_old_val
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2659 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2661 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2662 fi;;
2663 esac
2664 # Pass precious variables to config.status.
2665 if test "$ac_new_set" = set; then
2666 case $ac_new_val in
2667 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2668 *) ac_arg=$ac_var=$ac_new_val ;;
2669 esac
2670 case " $ac_configure_args " in
2671 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2672 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2673 esac
2675 done
2676 if $ac_cache_corrupted; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2680 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2681 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2683 ## -------------------- ##
2684 ## Main body of script. ##
2685 ## -------------------- ##
2687 ac_ext=c
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 ac_aux_dir=
2696 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2697 if test -f "$ac_dir/install-sh"; then
2698 ac_aux_dir=$ac_dir
2699 ac_install_sh="$ac_aux_dir/install-sh -c"
2700 break
2701 elif test -f "$ac_dir/install.sh"; then
2702 ac_aux_dir=$ac_dir
2703 ac_install_sh="$ac_aux_dir/install.sh -c"
2704 break
2705 elif test -f "$ac_dir/shtool"; then
2706 ac_aux_dir=$ac_dir
2707 ac_install_sh="$ac_aux_dir/shtool install -c"
2708 break
2710 done
2711 if test -z "$ac_aux_dir"; then
2712 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2715 # These three variables are undocumented and unsupported,
2716 # and are intended to be withdrawn in a future Autoconf release.
2717 # They can cause serious problems if a builder's source tree is in a directory
2718 # whose full name contains unusual characters.
2719 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2720 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2721 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2725 # Check what host we are running on.
2726 # If a target is not suggested, we use this one.
2727 # Note that what we call a target, Autoconf calls a host.
2728 # Make sure we can run config.sub.
2729 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2730 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2733 $as_echo_n "checking build system type... " >&6; }
2734 if ${ac_cv_build+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 ac_build_alias=$build_alias
2738 test "x$ac_build_alias" = x &&
2739 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2740 test "x$ac_build_alias" = x &&
2741 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2742 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2743 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2747 $as_echo "$ac_cv_build" >&6; }
2748 case $ac_cv_build in
2749 *-*-*) ;;
2750 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2751 esac
2752 build=$ac_cv_build
2753 ac_save_IFS=$IFS; IFS='-'
2754 set x $ac_cv_build
2755 shift
2756 build_cpu=$1
2757 build_vendor=$2
2758 shift; shift
2759 # Remember, the first character of IFS is used to create $*,
2760 # except with old shells:
2761 build_os=$*
2762 IFS=$ac_save_IFS
2763 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2767 $as_echo_n "checking host system type... " >&6; }
2768 if ${ac_cv_host+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test "x$host_alias" = x; then
2772 ac_cv_host=$ac_cv_build
2773 else
2774 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2780 $as_echo "$ac_cv_host" >&6; }
2781 case $ac_cv_host in
2782 *-*-*) ;;
2783 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2784 esac
2785 host=$ac_cv_host
2786 ac_save_IFS=$IFS; IFS='-'
2787 set x $ac_cv_host
2788 shift
2789 host_cpu=$1
2790 host_vendor=$2
2791 shift; shift
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2794 host_os=$*
2795 IFS=$ac_save_IFS
2796 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2800 # Default versions for the gnu tools we build
2801 default_gcc_version="4.6.4"
2802 default_binutils_version="2.23.2"
2803 default_grub2_version="2.02"
2804 target_grub2_version=$default_grub2_version
2806 # The AROS target is slightly different to the normal GNU style
2807 # format. We don't have the middle part, and we reverse the order
2808 # of the $(CPU) and $(OS) bits.
2810 # Don't strip the version of the target yet, it might be
2811 # useful on some systems.
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2814 $as_echo_n "checking for AROS style target... " >&6; }
2816 if test "$target" = "NONE" ; then
2817 target=$host_os-$host_cpu
2818 else
2819 if test "$target" = "" ; then
2820 target=$host_os-$host_cpu
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2824 $as_echo "$target" >&6; }
2826 if test "$host_os" = "mingw32" ; then
2827 PWDCMD="pwd -W"
2830 # Don't know where else to put this...
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2832 $as_echo_n "checking building AROS in... " >&6; }
2833 AROS_BUILDDIR=`${PWDCMD-pwd}`
2834 AROS_BUILDDIR_UNIX=${PWD}
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2836 $as_echo "$AROS_BUILDDIR" >&6; }
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2839 $as_echo_n "checking AROS source in... " >&6; }
2840 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2841 SRCDIR=${srcpwd}
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2843 $as_echo "$SRCDIR" >&6; }
2845 # Parse the target field into something useful.
2847 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2848 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2851 # Some debug output, to be removed again.
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2853 $as_echo_n "checking for target system (debug output)... " >&6; }
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2855 $as_echo "$target_os" >&6; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2857 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2859 $as_echo "$target_cpu" >&6; }
2861 aros_nominal_width=800
2862 aros_nominal_height=600
2863 aros_nominal_depth=4
2866 default_c_compilers="gcc clang cc"
2868 # Check whether --with-c-compiler was given.
2869 if test "${with_c_compiler+set}" = set; then :
2870 withval=$with_c_compiler; use_c_compiler="$withval"
2871 else
2872 use_c_compiler=""
2875 if test "$use_c_compiler" = ""; then
2876 host_c_compilers="$default_c_compilers"
2877 else
2878 host_c_compilers="$use_c_compiler"
2881 default_cxx_compilers="g++ clang++ c++"
2883 # Check whether --with-cxx-compiler was given.
2884 if test "${with_cxx_compiler+set}" = set; then :
2885 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2886 else
2887 use_cxx_compiler=""
2890 if test "$use_cxx_compiler" = ""; then
2891 host_cxx_compilers="$default_cxx_compilers"
2892 else
2893 host_cxx_compilers="$use_cxx_compiler"
2897 # The first step is to find the host binaries.
2898 # Check for a compiler.
2899 # Due to a bug in autoconf check for c++ compiler first.
2900 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2901 ac_ext=cpp
2902 ac_cpp='$CXXCPP $CPPFLAGS'
2903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2906 if test -z "$CXX"; then
2907 if test -n "$CCC"; then
2908 CXX=$CCC
2909 else
2910 if test -n "$ac_tool_prefix"; then
2911 for ac_prog in ${host_cxx_compilers}
2913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_CXX+:} false; then :
2918 $as_echo_n "(cached) " >&6
2919 else
2920 if test -n "$CXX"; then
2921 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2934 done
2935 done
2936 IFS=$as_save_IFS
2940 CXX=$ac_cv_prog_CXX
2941 if test -n "$CXX"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2943 $as_echo "$CXX" >&6; }
2944 else
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2950 test -n "$CXX" && break
2951 done
2953 if test -z "$CXX"; then
2954 ac_ct_CXX=$CXX
2955 for ac_prog in ${host_cxx_compilers}
2957 # Extract the first word of "$ac_prog", so it can be a program name with args.
2958 set dummy $ac_prog; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2962 $as_echo_n "(cached) " >&6
2963 else
2964 if test -n "$ac_ct_CXX"; then
2965 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2974 ac_cv_prog_ac_ct_CXX="$ac_prog"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 break 2
2978 done
2979 done
2980 IFS=$as_save_IFS
2984 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2985 if test -n "$ac_ct_CXX"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2987 $as_echo "$ac_ct_CXX" >&6; }
2988 else
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2994 test -n "$ac_ct_CXX" && break
2995 done
2997 if test "x$ac_ct_CXX" = x; then
2998 CXX="g++"
2999 else
3000 case $cross_compiling:$ac_tool_warned in
3001 yes:)
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3004 ac_tool_warned=yes ;;
3005 esac
3006 CXX=$ac_ct_CXX
3012 # Provide some information about the compiler.
3013 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3014 set X $ac_compile
3015 ac_compiler=$2
3016 for ac_option in --version -v -V -qversion; do
3017 { { ac_try="$ac_compiler $ac_option >&5"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3025 ac_status=$?
3026 if test -s conftest.err; then
3027 sed '10a\
3028 ... rest of stderr output deleted ...
3029 10q' conftest.err >conftest.er1
3030 cat conftest.er1 >&5
3032 rm -f conftest.er1 conftest.err
3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034 test $ac_status = 0; }
3035 done
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3041 main ()
3045 return 0;
3047 _ACEOF
3048 ac_clean_files_save=$ac_clean_files
3049 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3050 # Try to create an executable without -o first, disregard a.out.
3051 # It will help us diagnose broken compilers, and finding out an intuition
3052 # of exeext.
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3054 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3055 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3057 # The possible output files:
3058 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3060 ac_rmfiles=
3061 for ac_file in $ac_files
3063 case $ac_file in
3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3065 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3066 esac
3067 done
3068 rm -f $ac_rmfiles
3070 if { { ac_try="$ac_link_default"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_link_default") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; then :
3081 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3082 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3083 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3084 # so that the user can short-circuit this test for compilers unknown to
3085 # Autoconf.
3086 for ac_file in $ac_files ''
3088 test -f "$ac_file" || continue
3089 case $ac_file in
3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3092 [ab].out )
3093 # We found the default executable, but exeext='' is most
3094 # certainly right.
3095 break;;
3096 *.* )
3097 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3098 then :; else
3099 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3101 # We set ac_cv_exeext here because the later test for it is not
3102 # safe: cross compilers may not add the suffix if given an `-o'
3103 # argument, so we may need to know it at that point already.
3104 # Even if this section looks crufty: it has the advantage of
3105 # actually working.
3106 break;;
3108 break;;
3109 esac
3110 done
3111 test "$ac_cv_exeext" = no && ac_cv_exeext=
3113 else
3114 ac_file=''
3116 if test -z "$ac_file"; then :
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 $as_echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error 77 "C++ compiler cannot create executables
3125 See \`config.log' for more details" "$LINENO" 5; }
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3128 $as_echo "yes" >&6; }
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3131 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3133 $as_echo "$ac_file" >&6; }
3134 ac_exeext=$ac_cv_exeext
3136 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3137 ac_clean_files=$ac_clean_files_save
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3139 $as_echo_n "checking for suffix of executables... " >&6; }
3140 if { { ac_try="$ac_link"
3141 case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146 $as_echo "$ac_try_echo"; } >&5
3147 (eval "$ac_link") 2>&5
3148 ac_status=$?
3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }; then :
3151 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3152 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3153 # work properly (i.e., refer to `conftest.exe'), while it won't with
3154 # `rm'.
3155 for ac_file in conftest.exe conftest conftest.*; do
3156 test -f "$ac_file" || continue
3157 case $ac_file in
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3159 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3160 break;;
3161 * ) break;;
3162 esac
3163 done
3164 else
3165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3168 See \`config.log' for more details" "$LINENO" 5; }
3170 rm -f conftest conftest$ac_cv_exeext
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3172 $as_echo "$ac_cv_exeext" >&6; }
3174 rm -f conftest.$ac_ext
3175 EXEEXT=$ac_cv_exeext
3176 ac_exeext=$EXEEXT
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3179 #include <stdio.h>
3181 main ()
3183 FILE *f = fopen ("conftest.out", "w");
3184 return ferror (f) || fclose (f) != 0;
3187 return 0;
3189 _ACEOF
3190 ac_clean_files="$ac_clean_files conftest.out"
3191 # Check that the compiler produces executables we can run. If not, either
3192 # the compiler is broken, or we cross compile.
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3194 $as_echo_n "checking whether we are cross compiling... " >&6; }
3195 if test "$cross_compiling" != yes; then
3196 { { ac_try="$ac_link"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_link") 2>&5
3204 ac_status=$?
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }
3207 if { ac_try='./conftest$ac_cv_exeext'
3208 { { case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211 esac
3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 $as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_try") 2>&5
3215 ac_status=$?
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }; }; then
3218 cross_compiling=no
3219 else
3220 if test "$cross_compiling" = maybe; then
3221 cross_compiling=yes
3222 else
3223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 as_fn_error $? "cannot run C++ compiled programs.
3226 If you meant to cross compile, use \`--host'.
3227 See \`config.log' for more details" "$LINENO" 5; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3232 $as_echo "$cross_compiling" >&6; }
3234 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3235 ac_clean_files=$ac_clean_files_save
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3237 $as_echo_n "checking for suffix of object files... " >&6; }
3238 if ${ac_cv_objext+:} false; then :
3239 $as_echo_n "(cached) " >&6
3240 else
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3245 main ()
3249 return 0;
3251 _ACEOF
3252 rm -f conftest.o conftest.obj
3253 if { { ac_try="$ac_compile"
3254 case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257 esac
3258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259 $as_echo "$ac_try_echo"; } >&5
3260 (eval "$ac_compile") 2>&5
3261 ac_status=$?
3262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3263 test $ac_status = 0; }; then :
3264 for ac_file in conftest.o conftest.obj conftest.*; do
3265 test -f "$ac_file" || continue;
3266 case $ac_file in
3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3269 break;;
3270 esac
3271 done
3272 else
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error $? "cannot compute suffix of object files: cannot compile
3279 See \`config.log' for more details" "$LINENO" 5; }
3281 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3284 $as_echo "$ac_cv_objext" >&6; }
3285 OBJEXT=$ac_cv_objext
3286 ac_objext=$OBJEXT
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3288 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3289 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3296 main ()
3298 #ifndef __GNUC__
3299 choke me
3300 #endif
3303 return 0;
3305 _ACEOF
3306 if ac_fn_cxx_try_compile "$LINENO"; then :
3307 ac_compiler_gnu=yes
3308 else
3309 ac_compiler_gnu=no
3311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3316 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3317 if test $ac_compiler_gnu = yes; then
3318 GXX=yes
3319 else
3320 GXX=
3322 ac_test_CXXFLAGS=${CXXFLAGS+set}
3323 ac_save_CXXFLAGS=$CXXFLAGS
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3325 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3326 if ${ac_cv_prog_cxx_g+:} false; then :
3327 $as_echo_n "(cached) " >&6
3328 else
3329 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3330 ac_cxx_werror_flag=yes
3331 ac_cv_prog_cxx_g=no
3332 CXXFLAGS="-g"
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3337 main ()
3341 return 0;
3343 _ACEOF
3344 if ac_fn_cxx_try_compile "$LINENO"; then :
3345 ac_cv_prog_cxx_g=yes
3346 else
3347 CXXFLAGS=""
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3352 main ()
3356 return 0;
3358 _ACEOF
3359 if ac_fn_cxx_try_compile "$LINENO"; then :
3361 else
3362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3363 CXXFLAGS="-g"
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3368 main ()
3372 return 0;
3374 _ACEOF
3375 if ac_fn_cxx_try_compile "$LINENO"; then :
3376 ac_cv_prog_cxx_g=yes
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3386 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3387 if test "$ac_test_CXXFLAGS" = set; then
3388 CXXFLAGS=$ac_save_CXXFLAGS
3389 elif test $ac_cv_prog_cxx_g = yes; then
3390 if test "$GXX" = yes; then
3391 CXXFLAGS="-g -O2"
3392 else
3393 CXXFLAGS="-g"
3395 else
3396 if test "$GXX" = yes; then
3397 CXXFLAGS="-O2"
3398 else
3399 CXXFLAGS=
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408 ac_ext=c
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413 if test -n "$ac_tool_prefix"; then
3414 for ac_prog in ${host_c_compilers}
3416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if ${ac_cv_prog_CC+:} false; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 if test -n "$CC"; then
3424 ac_cv_prog_CC="$CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3437 done
3438 done
3439 IFS=$as_save_IFS
3443 CC=$ac_cv_prog_CC
3444 if test -n "$CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3446 $as_echo "$CC" >&6; }
3447 else
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3453 test -n "$CC" && break
3454 done
3456 if test -z "$CC"; then
3457 ac_ct_CC=$CC
3458 for ac_prog in ${host_c_compilers}
3460 # Extract the first word of "$ac_prog", so it can be a program name with args.
3461 set dummy $ac_prog; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 if test -n "$ac_ct_CC"; then
3468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3469 else
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3473 IFS=$as_save_IFS
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_prog_ac_ct_CC="$ac_prog"
3478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 break 2
3481 done
3482 done
3483 IFS=$as_save_IFS
3487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3488 if test -n "$ac_ct_CC"; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3490 $as_echo "$ac_ct_CC" >&6; }
3491 else
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3497 test -n "$ac_ct_CC" && break
3498 done
3500 if test "x$ac_ct_CC" = x; then
3501 CC=""
3502 else
3503 case $cross_compiling:$ac_tool_warned in
3504 yes:)
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3507 ac_tool_warned=yes ;;
3508 esac
3509 CC=$ac_ct_CC
3514 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516 as_fn_error $? "no acceptable C compiler found in \$PATH
3517 See \`config.log' for more details" "$LINENO" 5; }
3519 # Provide some information about the compiler.
3520 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3521 set X $ac_compile
3522 ac_compiler=$2
3523 for ac_option in --version -v -V -qversion; do
3524 { { ac_try="$ac_compiler $ac_option >&5"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530 $as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3532 ac_status=$?
3533 if test -s conftest.err; then
3534 sed '10a\
3535 ... rest of stderr output deleted ...
3536 10q' conftest.err >conftest.er1
3537 cat conftest.er1 >&5
3539 rm -f conftest.er1 conftest.err
3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 test $ac_status = 0; }
3542 done
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3546 if ${ac_cv_c_compiler_gnu+:} false; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3553 main ()
3555 #ifndef __GNUC__
3556 choke me
3557 #endif
3560 return 0;
3562 _ACEOF
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564 ac_compiler_gnu=yes
3565 else
3566 ac_compiler_gnu=no
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3573 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3574 if test $ac_compiler_gnu = yes; then
3575 GCC=yes
3576 else
3577 GCC=
3579 ac_test_CFLAGS=${CFLAGS+set}
3580 ac_save_CFLAGS=$CFLAGS
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3582 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3583 if ${ac_cv_prog_cc_g+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 ac_save_c_werror_flag=$ac_c_werror_flag
3587 ac_c_werror_flag=yes
3588 ac_cv_prog_cc_g=no
3589 CFLAGS="-g"
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3594 main ()
3598 return 0;
3600 _ACEOF
3601 if ac_fn_c_try_compile "$LINENO"; then :
3602 ac_cv_prog_cc_g=yes
3603 else
3604 CFLAGS=""
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3609 main ()
3613 return 0;
3615 _ACEOF
3616 if ac_fn_c_try_compile "$LINENO"; then :
3618 else
3619 ac_c_werror_flag=$ac_save_c_werror_flag
3620 CFLAGS="-g"
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3625 main ()
3629 return 0;
3631 _ACEOF
3632 if ac_fn_c_try_compile "$LINENO"; then :
3633 ac_cv_prog_cc_g=yes
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 ac_c_werror_flag=$ac_save_c_werror_flag
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3643 $as_echo "$ac_cv_prog_cc_g" >&6; }
3644 if test "$ac_test_CFLAGS" = set; then
3645 CFLAGS=$ac_save_CFLAGS
3646 elif test $ac_cv_prog_cc_g = yes; then
3647 if test "$GCC" = yes; then
3648 CFLAGS="-g -O2"
3649 else
3650 CFLAGS="-g"
3652 else
3653 if test "$GCC" = yes; then
3654 CFLAGS="-O2"
3655 else
3656 CFLAGS=
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3660 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3661 if ${ac_cv_prog_cc_c89+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 ac_cv_prog_cc_c89=no
3665 ac_save_CC=$CC
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668 #include <stdarg.h>
3669 #include <stdio.h>
3670 struct stat;
3671 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3672 struct buf { int x; };
3673 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3674 static char *e (p, i)
3675 char **p;
3676 int i;
3678 return p[i];
3680 static char *f (char * (*g) (char **, int), char **p, ...)
3682 char *s;
3683 va_list v;
3684 va_start (v,p);
3685 s = g (p, va_arg (v,int));
3686 va_end (v);
3687 return s;
3690 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3691 function prototypes and stuff, but not '\xHH' hex character constants.
3692 These don't provoke an error unfortunately, instead are silently treated
3693 as 'x'. The following induces an error, until -std is added to get
3694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3695 array size at least. It's necessary to write '\x00'==0 to get something
3696 that's true only with -std. */
3697 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3699 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3700 inside strings and character constants. */
3701 #define FOO(x) 'x'
3702 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3704 int test (int i, double x);
3705 struct s1 {int (*f) (int a);};
3706 struct s2 {int (*f) (double a);};
3707 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3708 int argc;
3709 char **argv;
3711 main ()
3713 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3715 return 0;
3717 _ACEOF
3718 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3719 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3721 CC="$ac_save_CC $ac_arg"
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723 ac_cv_prog_cc_c89=$ac_arg
3725 rm -f core conftest.err conftest.$ac_objext
3726 test "x$ac_cv_prog_cc_c89" != "xno" && break
3727 done
3728 rm -f conftest.$ac_ext
3729 CC=$ac_save_CC
3732 # AC_CACHE_VAL
3733 case "x$ac_cv_prog_cc_c89" in
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3736 $as_echo "none needed" >&6; } ;;
3737 xno)
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3739 $as_echo "unsupported" >&6; } ;;
3741 CC="$CC $ac_cv_prog_cc_c89"
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3743 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3744 esac
3745 if test "x$ac_cv_prog_cc_c89" != xno; then :
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 aros_host_def_cc="$CC"
3756 case $ac_cv_prog_cc_stdc in #(
3757 no) :
3758 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3759 *) :
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3761 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3762 if ${ac_cv_prog_cc_c99+:} false; then :
3763 $as_echo_n "(cached) " >&6
3764 else
3765 ac_cv_prog_cc_c99=no
3766 ac_save_CC=$CC
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769 #include <stdarg.h>
3770 #include <stdbool.h>
3771 #include <stdlib.h>
3772 #include <wchar.h>
3773 #include <stdio.h>
3775 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3776 #define debug(...) fprintf (stderr, __VA_ARGS__)
3777 #define showlist(...) puts (#__VA_ARGS__)
3778 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3779 static void
3780 test_varargs_macros (void)
3782 int x = 1234;
3783 int y = 5678;
3784 debug ("Flag");
3785 debug ("X = %d\n", x);
3786 showlist (The first, second, and third items.);
3787 report (x>y, "x is %d but y is %d", x, y);
3790 // Check long long types.
3791 #define BIG64 18446744073709551615ull
3792 #define BIG32 4294967295ul
3793 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3794 #if !BIG_OK
3795 your preprocessor is broken;
3796 #endif
3797 #if BIG_OK
3798 #else
3799 your preprocessor is broken;
3800 #endif
3801 static long long int bignum = -9223372036854775807LL;
3802 static unsigned long long int ubignum = BIG64;
3804 struct incomplete_array
3806 int datasize;
3807 double data[];
3810 struct named_init {
3811 int number;
3812 const wchar_t *name;
3813 double average;
3816 typedef const char *ccp;
3818 static inline int
3819 test_restrict (ccp restrict text)
3821 // See if C++-style comments work.
3822 // Iterate through items via the restricted pointer.
3823 // Also check for declarations in for loops.
3824 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3825 continue;
3826 return 0;
3829 // Check varargs and va_copy.
3830 static void
3831 test_varargs (const char *format, ...)
3833 va_list args;
3834 va_start (args, format);
3835 va_list args_copy;
3836 va_copy (args_copy, args);
3838 const char *str;
3839 int number;
3840 float fnumber;
3842 while (*format)
3844 switch (*format++)
3846 case 's': // string
3847 str = va_arg (args_copy, const char *);
3848 break;
3849 case 'd': // int
3850 number = va_arg (args_copy, int);
3851 break;
3852 case 'f': // float
3853 fnumber = va_arg (args_copy, double);
3854 break;
3855 default:
3856 break;
3859 va_end (args_copy);
3860 va_end (args);
3864 main ()
3867 // Check bool.
3868 _Bool success = false;
3870 // Check restrict.
3871 if (test_restrict ("String literal") == 0)
3872 success = true;
3873 char *restrict newvar = "Another string";
3875 // Check varargs.
3876 test_varargs ("s, d' f .", "string", 65, 34.234);
3877 test_varargs_macros ();
3879 // Check flexible array members.
3880 struct incomplete_array *ia =
3881 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3882 ia->datasize = 10;
3883 for (int i = 0; i < ia->datasize; ++i)
3884 ia->data[i] = i * 1.234;
3886 // Check named initializers.
3887 struct named_init ni = {
3888 .number = 34,
3889 .name = L"Test wide string",
3890 .average = 543.34343,
3893 ni.number = 58;
3895 int dynamic_array[ni.number];
3896 dynamic_array[ni.number - 1] = 543;
3898 // work around unused variable warnings
3899 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3900 || dynamic_array[ni.number - 1] != 543);
3903 return 0;
3905 _ACEOF
3906 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3908 CC="$ac_save_CC $ac_arg"
3909 if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_cv_prog_cc_c99=$ac_arg
3912 rm -f core conftest.err conftest.$ac_objext
3913 test "x$ac_cv_prog_cc_c99" != "xno" && break
3914 done
3915 rm -f conftest.$ac_ext
3916 CC=$ac_save_CC
3919 # AC_CACHE_VAL
3920 case "x$ac_cv_prog_cc_c99" in
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3923 $as_echo "none needed" >&6; } ;;
3924 xno)
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3926 $as_echo "unsupported" >&6; } ;;
3928 CC="$CC $ac_cv_prog_cc_c99"
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3930 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3931 esac
3932 if test "x$ac_cv_prog_cc_c99" != xno; then :
3933 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3934 else
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3936 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3937 if ${ac_cv_prog_cc_c89+:} false; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3940 ac_cv_prog_cc_c89=no
3941 ac_save_CC=$CC
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944 #include <stdarg.h>
3945 #include <stdio.h>
3946 struct stat;
3947 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3948 struct buf { int x; };
3949 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3950 static char *e (p, i)
3951 char **p;
3952 int i;
3954 return p[i];
3956 static char *f (char * (*g) (char **, int), char **p, ...)
3958 char *s;
3959 va_list v;
3960 va_start (v,p);
3961 s = g (p, va_arg (v,int));
3962 va_end (v);
3963 return s;
3966 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3967 function prototypes and stuff, but not '\xHH' hex character constants.
3968 These don't provoke an error unfortunately, instead are silently treated
3969 as 'x'. The following induces an error, until -std is added to get
3970 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3971 array size at least. It's necessary to write '\x00'==0 to get something
3972 that's true only with -std. */
3973 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3975 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3976 inside strings and character constants. */
3977 #define FOO(x) 'x'
3978 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3980 int test (int i, double x);
3981 struct s1 {int (*f) (int a);};
3982 struct s2 {int (*f) (double a);};
3983 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3984 int argc;
3985 char **argv;
3987 main ()
3989 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3991 return 0;
3993 _ACEOF
3994 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3995 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3997 CC="$ac_save_CC $ac_arg"
3998 if ac_fn_c_try_compile "$LINENO"; then :
3999 ac_cv_prog_cc_c89=$ac_arg
4001 rm -f core conftest.err conftest.$ac_objext
4002 test "x$ac_cv_prog_cc_c89" != "xno" && break
4003 done
4004 rm -f conftest.$ac_ext
4005 CC=$ac_save_CC
4008 # AC_CACHE_VAL
4009 case "x$ac_cv_prog_cc_c89" in
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4012 $as_echo "none needed" >&6; } ;;
4013 xno)
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4015 $as_echo "unsupported" >&6; } ;;
4017 CC="$CC $ac_cv_prog_cc_c89"
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4019 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4020 esac
4021 if test "x$ac_cv_prog_cc_c89" != xno; then :
4022 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4023 else
4024 ac_cv_prog_cc_stdc=no
4029 esac
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4031 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4032 if ${ac_cv_prog_cc_stdc+:} false; then :
4033 $as_echo_n "(cached) " >&6
4036 case $ac_cv_prog_cc_stdc in #(
4037 no) :
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4039 $as_echo "unsupported" >&6; } ;; #(
4040 '') :
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4042 $as_echo "none needed" >&6; } ;; #(
4043 *) :
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4045 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4046 esac
4048 ac_ext=c
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4054 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4055 # On Suns, sometimes $CPP names a directory.
4056 if test -n "$CPP" && test -d "$CPP"; then
4057 CPP=
4059 if test -z "$CPP"; then
4060 if ${ac_cv_prog_CPP+:} false; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 # Double quotes because CPP needs to be expanded
4064 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4066 ac_preproc_ok=false
4067 for ac_c_preproc_warn_flag in '' yes
4069 # Use a header file that comes with gcc, so configuring glibc
4070 # with a fresh cross-compiler works.
4071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4072 # <limits.h> exists even on freestanding compilers.
4073 # On the NeXT, cc -E runs the code through the compiler's parser,
4074 # not just through cpp. "Syntax error" is here to catch this case.
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4077 #ifdef __STDC__
4078 # include <limits.h>
4079 #else
4080 # include <assert.h>
4081 #endif
4082 Syntax error
4083 _ACEOF
4084 if ac_fn_c_try_cpp "$LINENO"; then :
4086 else
4087 # Broken: fails on valid input.
4088 continue
4090 rm -f conftest.err conftest.i conftest.$ac_ext
4092 # OK, works on sane cases. Now check whether nonexistent headers
4093 # can be detected and how.
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096 #include <ac_nonexistent.h>
4097 _ACEOF
4098 if ac_fn_c_try_cpp "$LINENO"; then :
4099 # Broken: success on invalid input.
4100 continue
4101 else
4102 # Passes both tests.
4103 ac_preproc_ok=:
4104 break
4106 rm -f conftest.err conftest.i conftest.$ac_ext
4108 done
4109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4110 rm -f conftest.i conftest.err conftest.$ac_ext
4111 if $ac_preproc_ok; then :
4112 break
4115 done
4116 ac_cv_prog_CPP=$CPP
4119 CPP=$ac_cv_prog_CPP
4120 else
4121 ac_cv_prog_CPP=$CPP
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4124 $as_echo "$CPP" >&6; }
4125 ac_preproc_ok=false
4126 for ac_c_preproc_warn_flag in '' yes
4128 # Use a header file that comes with gcc, so configuring glibc
4129 # with a fresh cross-compiler works.
4130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 # <limits.h> exists even on freestanding compilers.
4132 # On the NeXT, cc -E runs the code through the compiler's parser,
4133 # not just through cpp. "Syntax error" is here to catch this case.
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4136 #ifdef __STDC__
4137 # include <limits.h>
4138 #else
4139 # include <assert.h>
4140 #endif
4141 Syntax error
4142 _ACEOF
4143 if ac_fn_c_try_cpp "$LINENO"; then :
4145 else
4146 # Broken: fails on valid input.
4147 continue
4149 rm -f conftest.err conftest.i conftest.$ac_ext
4151 # OK, works on sane cases. Now check whether nonexistent headers
4152 # can be detected and how.
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <ac_nonexistent.h>
4156 _ACEOF
4157 if ac_fn_c_try_cpp "$LINENO"; then :
4158 # Broken: success on invalid input.
4159 continue
4160 else
4161 # Passes both tests.
4162 ac_preproc_ok=:
4163 break
4165 rm -f conftest.err conftest.i conftest.$ac_ext
4167 done
4168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4169 rm -f conftest.i conftest.err conftest.$ac_ext
4170 if $ac_preproc_ok; then :
4172 else
4173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4175 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4176 See \`config.log' for more details" "$LINENO" 5; }
4179 ac_ext=c
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186 # Check for a compatible awk
4187 for ac_prog in gawk nawk
4189 # Extract the first word of "$ac_prog", so it can be a program name with args.
4190 set dummy $ac_prog; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if ${ac_cv_prog_AWK+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -n "$AWK"; then
4197 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4206 ac_cv_prog_AWK="$ac_prog"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 break 2
4210 done
4211 done
4212 IFS=$as_save_IFS
4216 AWK=$ac_cv_prog_AWK
4217 if test -n "$AWK"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4219 $as_echo "$AWK" >&6; }
4220 else
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4226 test -n "$AWK" && break
4227 done
4229 req_avail=yes
4230 if test "$AWK" = ""; then
4231 req_avail=no
4233 if test "$AWK" = "no"; then
4234 req_avail=no
4236 if test "$req_avail" = "no"; then
4237 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4239 # Extract the first word of "mmake", so it can be a program name with args.
4240 set dummy mmake; ac_word=$2
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 $as_echo_n "checking for $ac_word... " >&6; }
4243 if ${ac_cv_prog_MMAKE+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -n "$MMAKE"; then
4247 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4256 ac_cv_prog_MMAKE="mmake "
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4260 done
4261 done
4262 IFS=$as_save_IFS
4266 MMAKE=$ac_cv_prog_MMAKE
4267 if test -n "$MMAKE"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4269 $as_echo "$MMAKE" >&6; }
4270 else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4277 # Perform some default variable assignments. Note all of these will be
4278 # Regenerated from the script, so there is no need to cache them.
4280 aros_build_host=$host
4281 aros_host_cpp="$CPP"
4282 aros_host_cc="$CC"
4283 aros_host_cxx="$CXX"
4284 if test "$GCC" = "yes"; then
4285 aros_gcc_ld=`$CC -print-prog-name=ld`
4286 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4287 set dummy `basename $aros_gcc_ld`; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if ${ac_cv_path_aros_host_ld+:} false; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 case $aros_host_ld in
4294 [\\/]* | ?:[\\/]*)
4295 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in `dirname $aros_gcc_ld`
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 break 2
4309 done
4310 done
4311 IFS=$as_save_IFS
4314 esac
4316 aros_host_ld=$ac_cv_path_aros_host_ld
4317 if test -n "$aros_host_ld"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4319 $as_echo "$aros_host_ld" >&6; }
4320 else
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4327 if test "$aros_host_ld" = ""; then
4328 # Extract the first word of "ld", so it can be a program name with args.
4329 set dummy ld; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_path_aros_host_ld+:} false; then :
4333 $as_echo_n "(cached) " >&6
4334 else
4335 case $aros_host_ld in
4336 [\\/]* | ?:[\\/]*)
4337 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4351 done
4352 done
4353 IFS=$as_save_IFS
4356 esac
4358 aros_host_ld=$ac_cv_path_aros_host_ld
4359 if test -n "$aros_host_ld"; then
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4361 $as_echo "$aros_host_ld" >&6; }
4362 else
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 $as_echo "no" >&6; }
4369 req_avail=yes
4370 if test "$aros_host_ld" = ""; then
4371 req_avail=no
4373 if test "$aros_host_ld" = "no"; then
4374 req_avail=no
4376 if test "$req_avail" = "no"; then
4377 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4379 aros_host_make="make"
4380 aros_host_cflags="$CFLAGS"
4381 aros_host_cxxflags="$CXXFLAGS"
4382 aros_host_cppflags="$CPPFLAGS"
4383 aros_host_ldflags="$LDFLAGS"
4384 aros_host_debug="-g -O0"
4385 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4386 aros_host_mkargs="--no-print-directory"
4387 aros_host_exe_suffix="$EXEEXT"
4388 aros_host_lib_suffix=""
4390 # Ignore all compliance, AROS ROMs = 0
4391 # KickStart v1.0 = 30
4392 # KickStart v1.3 = 34
4393 # KickStart v2.0 = 37
4394 # KickStart v3.0 = 39
4395 # KickStart v3.1 = 40
4396 # AmigaOS v3.5 = 44
4397 aros_amigaos_compliance=0
4399 for ac_prog in aclocal aclocal19 aclocal-1.9
4401 # Extract the first word of "$ac_prog", so it can be a program name with args.
4402 set dummy $ac_prog; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 if test -n "$aros_host_aclocal"; then
4409 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4418 ac_cv_prog_aros_host_aclocal="$ac_prog"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4422 done
4423 done
4424 IFS=$as_save_IFS
4428 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4429 if test -n "$aros_host_aclocal"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4431 $as_echo "$aros_host_aclocal" >&6; }
4432 else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4438 test -n "$aros_host_aclocal" && break
4439 done
4441 for ac_prog in autoconf autoconf259 autoconf253
4443 # Extract the first word of "$ac_prog", so it can be a program name with args.
4444 set dummy $ac_prog; ac_word=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 if test -n "$aros_host_autoconf"; then
4451 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460 ac_cv_prog_aros_host_autoconf="$ac_prog"
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4464 done
4465 done
4466 IFS=$as_save_IFS
4470 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4471 if test -n "$aros_host_autoconf"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4473 $as_echo "$aros_host_autoconf" >&6; }
4474 else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4480 test -n "$aros_host_autoconf" && break
4481 done
4483 for ac_prog in autoheader autoheader259 autoheader253
4485 # Extract the first word of "$ac_prog", so it can be a program name with args.
4486 set dummy $ac_prog; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 if test -n "$aros_host_autoheader"; then
4493 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4502 ac_cv_prog_aros_host_autoheader="$ac_prog"
4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 break 2
4506 done
4507 done
4508 IFS=$as_save_IFS
4512 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4513 if test -n "$aros_host_autoheader"; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4515 $as_echo "$aros_host_autoheader" >&6; }
4516 else
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4522 test -n "$aros_host_autoheader" && break
4523 done
4525 for ac_prog in automake automake19 automake-1.9
4527 # Extract the first word of "$ac_prog", so it can be a program name with args.
4528 set dummy $ac_prog; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if ${ac_cv_prog_aros_host_automake+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 if test -n "$aros_host_automake"; then
4535 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_aros_host_automake="$ac_prog"
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4548 done
4549 done
4550 IFS=$as_save_IFS
4554 aros_host_automake=$ac_cv_prog_aros_host_automake
4555 if test -n "$aros_host_automake"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4557 $as_echo "$aros_host_automake" >&6; }
4558 else
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4564 test -n "$aros_host_automake" && break
4565 done
4568 req_avail=yes
4569 if test "$aros_host_aclocal" = ""; then
4570 req_avail=no
4572 if test "$aros_host_aclocal" = "no"; then
4573 req_avail=no
4575 if test "$req_avail" = "no"; then
4576 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4578 req_avail=yes
4579 if test "$aros_host_automake" = ""; then
4580 req_avail=no
4582 if test "$aros_host_automake" = "no"; then
4583 req_avail=no
4585 if test "$req_avail" = "no"; then
4586 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4589 case "$aros_host_cc" in
4590 *clang*)
4591 aros_host_cc_pipe=""
4593 *gcc*)
4594 aros_host_cc_pipe="-pipe"
4596 icc)
4597 aros_host_cc_pipe=""
4600 aros_host_cc_pipe=""
4602 esac
4604 aros_kernel_cc_includes=""
4605 aros_target_cc_includes=""
4606 host_cc_elf=yes
4608 # ----------------------------------------------------------------------------------------
4609 # Host-specific defaults
4611 # This is the main host configuration section. It is where the host
4612 # can change the values of any variables it needs to change. We do
4613 # not look at anything that compiles to the target yet, we'll get
4614 # to that later.
4616 case "$host_os" in
4617 aros*)
4618 aros_host_arch="aros"
4619 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4620 case "$host_cpu" in
4621 *i?86*)
4622 aros_host_cpu="i386"
4624 *x86_64*)
4625 aros_host_cpu="x86_64"
4627 *powerpc*)
4628 aros_host_cpu="ppc"
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4632 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4633 aros_host_cpu="$host_cpu"
4635 esac
4638 linux*)
4639 aros_host_arch="linux"
4640 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4641 android_build_os="linux-x86"
4642 android_tool="android"
4643 default_android_sdk="/opt/android-sdk-linux_x86"
4644 case "$host_cpu" in
4645 *i?86*)
4646 aros_host_cpu="i386"
4648 *x86_64*)
4649 aros_host_cpu="x86_64"
4651 *m68k*)
4652 aros_host_cpu="m68k"
4654 *powerpc*)
4655 aros_host_cpu="ppc"
4657 *arm*)
4658 aros_host_cpu="arm"
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4662 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4663 aros_host_cpu="$host_cpu"
4665 esac
4668 freebsd*)
4669 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4670 aros_host_make="gmake"
4671 aros_host_arch="freebsd"
4672 aros_host_cpu="i386"
4674 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4676 case $host_os in
4677 freebsd[234]*)
4678 aros_object_format="elf_i386"
4682 aros_object_format="elf_i386_fbsd"
4684 esac
4688 darwin*)
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4690 $as_echo_n "checking for macOS SDK files... " >&6; }
4691 LOC=$( xcode-select -p )
4692 if test $? != 0; then :
4693 as_fn_error $? "XCode incorrectly configured!
4694 please run 'xcode-select --install' before
4695 re-running configure" "$LINENO" 5
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4698 $as_echo "$LOC" >&6; }
4699 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4700 aros_host_arch="darwin"
4701 host_cc_elf=no
4702 if [ -z ${SED+x} ]; then SED="gsed"; fi
4703 android_build_os="darwin-x86"
4704 android_tool="android"
4705 default_android_sdk="/android-sdk-mac_x86"
4706 case "$host_cpu" in
4707 *i?86*)
4708 aros_host_cpu="i386"
4710 *x86_64*)
4711 aros_host_cpu="x86_64"
4713 *powerpc*)
4714 aros_host_cpu="ppc"
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4718 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4719 aros_host_cpu="$host_cpu"
4721 esac
4723 aros_host_ldflags="$aros_host_ldflags -liconv"
4727 dragonfly*)
4728 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4729 aros_host_make="gmake"
4730 aros_host_arch="dragonfly"
4731 case $host_cpu in
4732 *i?86*)
4733 aros_host_cpu="i386"
4735 *amd64*)
4736 aros_host_cpu="x86_64"
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4740 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4741 aros_host_cpu="$host_cpu"
4743 esac
4746 netbsd*)
4747 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4748 aros_host_make="gmake"
4749 aros_host_arch="netbsd"
4750 case "$host_cpu" in
4751 *i?86*)
4752 aros_host_cpu="i386"
4754 *m68k*)
4755 aros_host_cpu="m68k"
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4759 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4760 aros_host_cpu="$host_cpu"
4762 esac
4763 aros_host_lib_suffix=".0.0"
4766 openbsd*)
4767 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4768 aros_host_make="gmake"
4769 aros_host_arch="openbsd"
4770 case "$host_cpu" in
4771 *i?86*)
4772 aros_host_cpu="i386"
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
4782 solaris*)
4783 aros_host_arch="solaris"
4784 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4785 case "$host_cpu" in
4786 *i?86*)
4787 aros_host_cpu="i386"
4789 *sparc*)
4790 aros_host_cpu="sparc"
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4794 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4795 aros_host_cpu="$host_cpu"
4797 esac
4800 morphos*)
4801 aros_host_arch="morphos"
4802 aros_host_cpu="ppc"
4803 host_cc_elf=no
4806 amiga*)
4807 aros_host_arch="amiga"
4808 host_cc_elf=no
4809 SORT="/gg/bin/sort"
4810 TEST="/gg/bin/test"
4811 UNIQ="/gg/bin/uniq"
4812 FOR="for"
4813 TOUCH="/gg/bin/touch"
4814 case "$host_cpu" in
4815 *m68k*)
4816 aros_host_cpu="m68k"
4818 *powerpc*)
4819 aros_host_cpu="ppc"
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4823 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4824 aros_host_cpu="$host_cpu"
4826 esac
4829 cygwin*)
4830 aros_host_arch="cygwin"
4831 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4832 host_cc_elf=no
4833 android_build_os="windows"
4834 android_tool="android.bat"
4835 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4837 case "$host_cpu" in
4838 *i?86*)
4839 aros_host_cpu="i386"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4843 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4844 aros_host_cpu="$host_cpu"
4846 esac
4849 mingw32*)
4850 aros_host_arch="mingw32"
4851 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4852 host_cc_elf=no
4853 android_build_os="windows"
4854 android_tool="android.bat"
4855 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4857 libpng_libextra="-lws2_32"
4859 case "$host_cpu" in
4860 *i?86*)
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4863 $as_echo_n "checking for Windows native gcc target... " >&6; }
4864 host_cpu=`gcc -dumpmachine`
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4866 $as_echo "$host_cpu" >&6; }
4869 esac
4871 case "$host_cpu" in
4872 *i?86*)
4873 aros_host_cpu="i386"
4876 mingw32*)
4877 aros_host_cpu="i386"
4880 *x86_64*)
4881 aros_host_cpu="x86_64"
4882 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4887 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4888 aros_host_cpu="$host_cpu"
4890 esac
4893 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4895 esac
4897 # Extract the first word of "ar", so it can be a program name with args.
4898 set dummy ar; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_prog_aros_host_ar+:} false; then :
4902 $as_echo_n "(cached) " >&6
4903 else
4904 if test -n "$aros_host_ar"; then
4905 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4906 else
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914 ac_cv_prog_aros_host_ar="ar cr"
4915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 break 2
4918 done
4919 done
4920 IFS=$as_save_IFS
4924 aros_host_ar=$ac_cv_prog_aros_host_ar
4925 if test -n "$aros_host_ar"; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4927 $as_echo "$aros_host_ar" >&6; }
4928 else
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4934 req_avail=yes
4935 if test "$aros_host_ar" = ""; then
4936 req_avail=no
4938 if test "$aros_host_ar" = "no"; then
4939 req_avail=no
4941 if test "$req_avail" = "no"; then
4942 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4944 # Extract the first word of "ranlib", so it can be a program name with args.
4945 set dummy ranlib; ac_word=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 if test -n "$aros_host_ranlib"; then
4952 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961 ac_cv_prog_aros_host_ranlib="ranlib "
4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 break 2
4965 done
4966 done
4967 IFS=$as_save_IFS
4971 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4972 if test -n "$aros_host_ranlib"; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4974 $as_echo "$aros_host_ranlib" >&6; }
4975 else
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4981 req_avail=yes
4982 if test "$aros_host_ranlib" = ""; then
4983 req_avail=no
4985 if test "$aros_host_ranlib" = "no"; then
4986 req_avail=no
4988 if test "$req_avail" = "no"; then
4989 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4991 # Extract the first word of "strip", so it can be a program name with args.
4992 set dummy strip; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if ${ac_cv_prog_aros_host_strip+:} false; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if test -n "$aros_host_strip"; then
4999 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008 ac_cv_prog_aros_host_strip="strip "
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5012 done
5013 done
5014 IFS=$as_save_IFS
5018 aros_host_strip=$ac_cv_prog_aros_host_strip
5019 if test -n "$aros_host_strip"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5021 $as_echo "$aros_host_strip" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5028 req_avail=yes
5029 if test "$aros_host_strip" = ""; then
5030 req_avail=no
5032 if test "$aros_host_strip" = "no"; then
5033 req_avail=no
5035 if test "$req_avail" = "no"; then
5036 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5039 # Extract the first word of "rm", so it can be a program name with args.
5040 set dummy rm; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if ${ac_cv_prog_RM+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$RM"; then
5047 ac_cv_prog_RM="$RM" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056 ac_cv_prog_RM="rm -rf"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5060 done
5061 done
5062 IFS=$as_save_IFS
5066 RM=$ac_cv_prog_RM
5067 if test -n "$RM"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5069 $as_echo "$RM" >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5076 req_avail=yes
5077 if test "$RM" = ""; then
5078 req_avail=no
5080 if test "$RM" = "no"; then
5081 req_avail=no
5083 if test "$req_avail" = "no"; then
5084 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5086 # Extract the first word of "cp", so it can be a program name with args.
5087 set dummy cp; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_CP+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -n "$CP"; then
5094 ac_cv_prog_CP="$CP" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_CP="cp "
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5107 done
5108 done
5109 IFS=$as_save_IFS
5113 CP=$ac_cv_prog_CP
5114 if test -n "$CP"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5116 $as_echo "$CP" >&6; }
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5123 req_avail=yes
5124 if test "$CP" = ""; then
5125 req_avail=no
5127 if test "$CP" = "no"; then
5128 req_avail=no
5130 if test "$req_avail" = "no"; then
5131 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5133 # Extract the first word of "mv", so it can be a program name with args.
5134 set dummy mv; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_MV+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 if test -n "$MV"; then
5141 ac_cv_prog_MV="$MV" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_MV="mv "
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5154 done
5155 done
5156 IFS=$as_save_IFS
5160 MV=$ac_cv_prog_MV
5161 if test -n "$MV"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5163 $as_echo "$MV" >&6; }
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5170 req_avail=yes
5171 if test "$MV" = ""; then
5172 req_avail=no
5174 if test "$MV" = "no"; then
5175 req_avail=no
5177 if test "$req_avail" = "no"; then
5178 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5180 # Extract the first word of "echo", so it can be a program name with args.
5181 set dummy echo; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_prog_ECHO+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 if test -n "$ECHO"; then
5188 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_prog_ECHO="echo "
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5201 done
5202 done
5203 IFS=$as_save_IFS
5207 ECHO=$ac_cv_prog_ECHO
5208 if test -n "$ECHO"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5210 $as_echo "$ECHO" >&6; }
5211 else
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5217 req_avail=yes
5218 if test "$ECHO" = ""; then
5219 req_avail=no
5221 if test "$ECHO" = "no"; then
5222 req_avail=no
5224 if test "$req_avail" = "no"; then
5225 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5227 # Extract the first word of "mkdir", so it can be a program name with args.
5228 set dummy mkdir; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_prog_MKDIR+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 if test -n "$MKDIR"; then
5235 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244 ac_cv_prog_MKDIR="mkdir -p"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5248 done
5249 done
5250 IFS=$as_save_IFS
5254 MKDIR=$ac_cv_prog_MKDIR
5255 if test -n "$MKDIR"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5257 $as_echo "$MKDIR" >&6; }
5258 else
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5264 req_avail=yes
5265 if test "$MKDIR" = ""; then
5266 req_avail=no
5268 if test "$MKDIR" = "no"; then
5269 req_avail=no
5271 if test "$req_avail" = "no"; then
5272 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5274 # Extract the first word of "touch", so it can be a program name with args.
5275 set dummy touch; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if ${ac_cv_prog_TOUCH+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 if test -n "$TOUCH"; then
5282 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 ac_cv_prog_TOUCH="touch "
5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5295 done
5296 done
5297 IFS=$as_save_IFS
5301 TOUCH=$ac_cv_prog_TOUCH
5302 if test -n "$TOUCH"; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5304 $as_echo "$TOUCH" >&6; }
5305 else
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 $as_echo "no" >&6; }
5311 req_avail=yes
5312 if test "$TOUCH" = ""; then
5313 req_avail=no
5315 if test "$TOUCH" = "no"; then
5316 req_avail=no
5318 if test "$req_avail" = "no"; then
5319 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5321 # Extract the first word of "sort", so it can be a program name with args.
5322 set dummy sort; ac_word=$2
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if ${ac_cv_prog_SORT+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 if test -n "$SORT"; then
5329 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_SORT="sort "
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5342 done
5343 done
5344 IFS=$as_save_IFS
5348 SORT=$ac_cv_prog_SORT
5349 if test -n "$SORT"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5351 $as_echo "$SORT" >&6; }
5352 else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5358 req_avail=yes
5359 if test "$SORT" = ""; then
5360 req_avail=no
5362 if test "$SORT" = "no"; then
5363 req_avail=no
5365 if test "$req_avail" = "no"; then
5366 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5368 # Extract the first word of "uniq", so it can be a program name with args.
5369 set dummy uniq; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_prog_UNIQ+:} false; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 if test -n "$UNIQ"; then
5376 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385 ac_cv_prog_UNIQ="uniq "
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 break 2
5389 done
5390 done
5391 IFS=$as_save_IFS
5395 UNIQ=$ac_cv_prog_UNIQ
5396 if test -n "$UNIQ"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5398 $as_echo "$UNIQ" >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5405 req_avail=yes
5406 if test "$UNIQ" = ""; then
5407 req_avail=no
5409 if test "$UNIQ" = "no"; then
5410 req_avail=no
5412 if test "$req_avail" = "no"; then
5413 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5415 # Extract the first word of "true", so it can be a program name with args.
5416 set dummy true; ac_word=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if ${ac_cv_prog_NOP+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 if test -n "$NOP"; then
5423 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5424 else
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_prog_NOP="true "
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5436 done
5437 done
5438 IFS=$as_save_IFS
5442 NOP=$ac_cv_prog_NOP
5443 if test -n "$NOP"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5445 $as_echo "$NOP" >&6; }
5446 else
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5452 req_avail=yes
5453 if test "$NOP" = ""; then
5454 req_avail=no
5456 if test "$NOP" = "no"; then
5457 req_avail=no
5459 if test "$req_avail" = "no"; then
5460 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5462 # Extract the first word of "cat", so it can be a program name with args.
5463 set dummy cat; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if ${ac_cv_prog_CAT+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 if test -n "$CAT"; then
5470 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5471 else
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479 ac_cv_prog_CAT="cat "
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5483 done
5484 done
5485 IFS=$as_save_IFS
5489 CAT=$ac_cv_prog_CAT
5490 if test -n "$CAT"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5492 $as_echo "$CAT" >&6; }
5493 else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5499 req_avail=yes
5500 if test "$CAT" = ""; then
5501 req_avail=no
5503 if test "$CAT" = "no"; then
5504 req_avail=no
5506 if test "$req_avail" = "no"; then
5507 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5509 # Extract the first word of "bison", so it can be a program name with args.
5510 set dummy bison; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if ${ac_cv_prog_BISON+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 if test -n "$BISON"; then
5517 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5518 else
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5526 ac_cv_prog_BISON="bison "
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5530 done
5531 done
5532 IFS=$as_save_IFS
5536 BISON=$ac_cv_prog_BISON
5537 if test -n "$BISON"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5539 $as_echo "$BISON" >&6; }
5540 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5546 req_avail=yes
5547 if test "$BISON" = ""; then
5548 req_avail=no
5550 if test "$BISON" = "no"; then
5551 req_avail=no
5553 if test "$req_avail" = "no"; then
5554 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5556 # Extract the first word of "flex", so it can be a program name with args.
5557 set dummy flex; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_FLEX+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 if test -n "$FLEX"; then
5564 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573 ac_cv_prog_FLEX="flex "
5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 break 2
5577 done
5578 done
5579 IFS=$as_save_IFS
5583 FLEX=$ac_cv_prog_FLEX
5584 if test -n "$FLEX"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5586 $as_echo "$FLEX" >&6; }
5587 else
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5593 req_avail=yes
5594 if test "$FLEX" = ""; then
5595 req_avail=no
5597 if test "$FLEX" = "no"; then
5598 req_avail=no
5600 if test "$req_avail" = "no"; then
5601 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5603 # Extract the first word of "pngtopnm", so it can be a program name with args.
5604 set dummy pngtopnm; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 if test -n "$PNGTOPNM"; then
5611 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620 ac_cv_prog_PNGTOPNM="pngtopnm "
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5624 done
5625 done
5626 IFS=$as_save_IFS
5630 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5631 if test -n "$PNGTOPNM"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5633 $as_echo "$PNGTOPNM" >&6; }
5634 else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5640 req_avail=yes
5641 if test "$PNGTOPNM" = ""; then
5642 req_avail=no
5644 if test "$PNGTOPNM" = "no"; then
5645 req_avail=no
5647 if test "$req_avail" = "no"; then
5648 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5650 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5651 set dummy ppmtoilbm; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 if test -n "$PPMTOILBM"; then
5658 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5659 else
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 break 2
5671 done
5672 done
5673 IFS=$as_save_IFS
5677 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5678 if test -n "$PPMTOILBM"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5680 $as_echo "$PPMTOILBM" >&6; }
5681 else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5687 req_avail=yes
5688 if test "$PPMTOILBM" = ""; then
5689 req_avail=no
5691 if test "$PPMTOILBM" = "no"; then
5692 req_avail=no
5694 if test "$req_avail" = "no"; then
5695 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5697 # Extract the first word of "sed", so it can be a program name with args.
5698 set dummy sed; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if ${ac_cv_prog_SED+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 if test -n "$SED"; then
5705 ac_cv_prog_SED="$SED" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714 ac_cv_prog_SED="sed "
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5718 done
5719 done
5720 IFS=$as_save_IFS
5724 SED=$ac_cv_prog_SED
5725 if test -n "$SED"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5727 $as_echo "$SED" >&6; }
5728 else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5734 req_avail=yes
5735 if test "$SED" = ""; then
5736 req_avail=no
5738 if test "$SED" = "no"; then
5739 req_avail=no
5741 if test "$req_avail" = "no"; then
5742 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5744 # Extract the first word of "chmod", so it can be a program name with args.
5745 set dummy chmod; ac_word=$2
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747 $as_echo_n "checking for $ac_word... " >&6; }
5748 if ${ac_cv_prog_CHMOD+:} false; then :
5749 $as_echo_n "(cached) " >&6
5750 else
5751 if test -n "$CHMOD"; then
5752 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5753 else
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH
5757 IFS=$as_save_IFS
5758 test -z "$as_dir" && as_dir=.
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5761 ac_cv_prog_CHMOD="chmod "
5762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 break 2
5765 done
5766 done
5767 IFS=$as_save_IFS
5771 CHMOD=$ac_cv_prog_CHMOD
5772 if test -n "$CHMOD"; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5774 $as_echo "$CHMOD" >&6; }
5775 else
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777 $as_echo "no" >&6; }
5781 req_avail=yes
5782 if test "$CHMOD" = ""; then
5783 req_avail=no
5785 if test "$CHMOD" = "no"; then
5786 req_avail=no
5788 if test "$req_avail" = "no"; then
5789 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5791 # Extract the first word of "patch", so it can be a program name with args.
5792 set dummy patch; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if ${ac_cv_prog_PATCH+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 if test -n "$PATCH"; then
5799 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5800 else
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5808 ac_cv_prog_PATCH="patch "
5809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5812 done
5813 done
5814 IFS=$as_save_IFS
5818 PATCH=$ac_cv_prog_PATCH
5819 if test -n "$PATCH"; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5821 $as_echo "$PATCH" >&6; }
5822 else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 $as_echo "no" >&6; }
5828 req_avail=yes
5829 if test "$PATCH" = ""; then
5830 req_avail=no
5832 if test "$PATCH" = "no"; then
5833 req_avail=no
5835 if test "$req_avail" = "no"; then
5836 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5845 if test -n "$PYTHON"; then
5846 # If the user set $PYTHON, use it and don't search something else.
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5848 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5849 prog="import sys
5850 # split strings by '.' and convert to numeric. Append some zeros
5851 # because we need at least 4 digits for the hex conversion.
5852 # map returns an iterator in Python 3.0 and a list in 2.x
5853 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5854 minverhex = 0
5855 # xrange is not present in Python 3.0 and range returns an iterator
5856 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5857 sys.exit(sys.hexversion < minverhex)"
5858 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5859 ($PYTHON -c "$prog") >&5 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; then :
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5864 $as_echo "yes" >&6; }
5865 else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 $as_echo "no" >&6; }
5868 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5870 am_display_PYTHON=$PYTHON
5871 else
5872 # Otherwise, try each interpreter until we find one that satisfies
5873 # VERSION.
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5875 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5876 if ${am_cv_pathless_PYTHON+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5880 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
5881 test "$am_cv_pathless_PYTHON" = none && break
5882 prog="import sys
5883 # split strings by '.' and convert to numeric. Append some zeros
5884 # because we need at least 4 digits for the hex conversion.
5885 # map returns an iterator in Python 3.0 and a list in 2.x
5886 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5887 minverhex = 0
5888 # xrange is not present in Python 3.0 and range returns an iterator
5889 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5890 sys.exit(sys.hexversion < minverhex)"
5891 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5892 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; then :
5896 break
5898 done
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5901 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5902 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5903 if test "$am_cv_pathless_PYTHON" = none; then
5904 PYTHON=:
5905 else
5906 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5907 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if ${ac_cv_path_PYTHON+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 case $PYTHON in
5914 [\\/]* | ?:[\\/]*)
5915 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5929 done
5930 done
5931 IFS=$as_save_IFS
5934 esac
5936 PYTHON=$ac_cv_path_PYTHON
5937 if test -n "$PYTHON"; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5939 $as_echo "$PYTHON" >&6; }
5940 else
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5947 am_display_PYTHON=$am_cv_pathless_PYTHON
5951 if test "$PYTHON" = :; then
5952 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5953 else
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5957 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5958 if ${am_cv_python_version+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5964 $as_echo "$am_cv_python_version" >&6; }
5965 PYTHON_VERSION=$am_cv_python_version
5969 PYTHON_PREFIX='${prefix}'
5971 PYTHON_EXEC_PREFIX='${exec_prefix}'
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5976 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5977 if ${am_cv_python_platform+:} false; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5983 $as_echo "$am_cv_python_platform" >&6; }
5984 PYTHON_PLATFORM=$am_cv_python_platform
5987 # Just factor out some code duplication.
5988 am_python_setup_sysconfig="\
5989 import sys
5990 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5991 # with python 3.x. See automake bug#10227.
5992 try:
5993 import sysconfig
5994 except ImportError:
5995 can_use_sysconfig = 0
5996 else:
5997 can_use_sysconfig = 1
5998 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5999 # <https://github.com/pypa/virtualenv/issues/118>
6000 try:
6001 from platform import python_implementation
6002 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6003 can_use_sysconfig = 0
6004 except ImportError:
6005 pass"
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6009 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6010 if ${am_cv_python_pythondir+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 if test "x$prefix" = xNONE
6014 then
6015 am_py_prefix=$ac_default_prefix
6016 else
6017 am_py_prefix=$prefix
6019 am_cv_python_pythondir=`$PYTHON -c "
6020 $am_python_setup_sysconfig
6021 if can_use_sysconfig:
6022 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6023 else:
6024 from distutils import sysconfig
6025 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6026 sys.stdout.write(sitedir)"`
6027 case $am_cv_python_pythondir in
6028 $am_py_prefix*)
6029 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6030 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6033 case $am_py_prefix in
6034 /usr|/System*) ;;
6036 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6038 esac
6040 esac
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6044 $as_echo "$am_cv_python_pythondir" >&6; }
6045 pythondir=$am_cv_python_pythondir
6049 pkgpythondir=\${pythondir}/$PACKAGE
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6053 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6054 if ${am_cv_python_pyexecdir+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 if test "x$exec_prefix" = xNONE
6058 then
6059 am_py_exec_prefix=$am_py_prefix
6060 else
6061 am_py_exec_prefix=$exec_prefix
6063 am_cv_python_pyexecdir=`$PYTHON -c "
6064 $am_python_setup_sysconfig
6065 if can_use_sysconfig:
6066 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6067 else:
6068 from distutils import sysconfig
6069 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6070 sys.stdout.write(sitedir)"`
6071 case $am_cv_python_pyexecdir in
6072 $am_py_exec_prefix*)
6073 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6074 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6077 case $am_py_exec_prefix in
6078 /usr|/System*) ;;
6080 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6082 esac
6084 esac
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6088 $as_echo "$am_cv_python_pyexecdir" >&6; }
6089 pyexecdir=$am_cv_python_pyexecdir
6093 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6101 # Check whether --enable-libpng-config was given.
6102 if test "${enable_libpng_config+set}" = set; then :
6103 enableval=$enable_libpng_config;
6106 if test "$enable_libpng_config" != "no"; then
6107 # Extract the first word of "libpng-config", so it can be a program name with args.
6108 set dummy libpng-config; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 if test -n "$arosconfig_use_libpngconfig"; then
6115 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6116 else
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 break 2
6128 done
6129 done
6130 IFS=$as_save_IFS
6132 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6135 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6136 if test -n "$arosconfig_use_libpngconfig"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6138 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6139 else
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6146 if test "$arosconfig_use_libpngconfig" = "yes"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6148 $as_echo_n "checking libpng-config library... " >&6; }
6149 libpng_incdir="`libpng-config --cflags`"
6150 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6151 libpng="`libpng-config --libs`"
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6153 $as_echo "$libpng" >&6; }
6154 else
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6157 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6158 if ${ac_cv_lib_png_png_read_png+:} false; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 ac_check_lib_save_LIBS=$LIBS
6162 LIBS="-lpng $LIBS"
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6166 /* Override any GCC internal prototype to avoid an error.
6167 Use char because int might match the return type of a GCC
6168 builtin and then its argument prototype would still apply. */
6169 #ifdef __cplusplus
6170 extern "C"
6171 #endif
6172 char png_read_png ();
6174 main ()
6176 return png_read_png ();
6178 return 0;
6180 _ACEOF
6181 if ac_fn_c_try_link "$LINENO"; then :
6182 ac_cv_lib_png_png_read_png=yes
6183 else
6184 ac_cv_lib_png_png_read_png=no
6186 rm -f core conftest.err conftest.$ac_objext \
6187 conftest$ac_exeext conftest.$ac_ext
6188 LIBS=$ac_check_lib_save_LIBS
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6191 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6192 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6193 libpng="-lpng"
6194 else
6195 libpng="no"
6198 if test "$libpng_libextra" != ""; then
6199 if test "$libpng" != "no"; then
6200 libpng_libextra="$libpng_libextra $libpng"
6204 req_avail=yes
6205 if test "$libpng" = ""; then
6206 req_avail=no
6208 if test "$libpng" = "no"; then
6209 req_avail=no
6211 if test "$req_avail" = "no"; then
6212 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6218 FOR=for
6220 IF=if
6222 TEST=test
6224 CMP=cmp
6228 # Check for some includes for the X11 HIDD and the kernel
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6231 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6232 if ${ac_cv_path_GREP+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 if test -z "$GREP"; then
6236 ac_path_GREP_found=false
6237 # Loop through the user's path and test for each of PROGNAME-LIST
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_prog in grep ggrep; do
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6246 as_fn_executable_p "$ac_path_GREP" || continue
6247 # Check for GNU ac_path_GREP and select it if it is found.
6248 # Check for GNU $ac_path_GREP
6249 case `"$ac_path_GREP" --version 2>&1` in
6250 *GNU*)
6251 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6253 ac_count=0
6254 $as_echo_n 0123456789 >"conftest.in"
6255 while :
6257 cat "conftest.in" "conftest.in" >"conftest.tmp"
6258 mv "conftest.tmp" "conftest.in"
6259 cp "conftest.in" "conftest.nl"
6260 $as_echo 'GREP' >> "conftest.nl"
6261 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6263 as_fn_arith $ac_count + 1 && ac_count=$as_val
6264 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6265 # Best one so far, save it but keep looking for a better one
6266 ac_cv_path_GREP="$ac_path_GREP"
6267 ac_path_GREP_max=$ac_count
6269 # 10*(2^10) chars as input seems more than enough
6270 test $ac_count -gt 10 && break
6271 done
6272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6273 esac
6275 $ac_path_GREP_found && break 3
6276 done
6277 done
6278 done
6279 IFS=$as_save_IFS
6280 if test -z "$ac_cv_path_GREP"; then
6281 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6283 else
6284 ac_cv_path_GREP=$GREP
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6289 $as_echo "$ac_cv_path_GREP" >&6; }
6290 GREP="$ac_cv_path_GREP"
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6294 $as_echo_n "checking for egrep... " >&6; }
6295 if ${ac_cv_path_EGREP+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6299 then ac_cv_path_EGREP="$GREP -E"
6300 else
6301 if test -z "$EGREP"; then
6302 ac_path_EGREP_found=false
6303 # Loop through the user's path and test for each of PROGNAME-LIST
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_prog in egrep; do
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6312 as_fn_executable_p "$ac_path_EGREP" || continue
6313 # Check for GNU ac_path_EGREP and select it if it is found.
6314 # Check for GNU $ac_path_EGREP
6315 case `"$ac_path_EGREP" --version 2>&1` in
6316 *GNU*)
6317 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6319 ac_count=0
6320 $as_echo_n 0123456789 >"conftest.in"
6321 while :
6323 cat "conftest.in" "conftest.in" >"conftest.tmp"
6324 mv "conftest.tmp" "conftest.in"
6325 cp "conftest.in" "conftest.nl"
6326 $as_echo 'EGREP' >> "conftest.nl"
6327 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6329 as_fn_arith $ac_count + 1 && ac_count=$as_val
6330 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6331 # Best one so far, save it but keep looking for a better one
6332 ac_cv_path_EGREP="$ac_path_EGREP"
6333 ac_path_EGREP_max=$ac_count
6335 # 10*(2^10) chars as input seems more than enough
6336 test $ac_count -gt 10 && break
6337 done
6338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6339 esac
6341 $ac_path_EGREP_found && break 3
6342 done
6343 done
6344 done
6345 IFS=$as_save_IFS
6346 if test -z "$ac_cv_path_EGREP"; then
6347 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6349 else
6350 ac_cv_path_EGREP=$EGREP
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6356 $as_echo "$ac_cv_path_EGREP" >&6; }
6357 EGREP="$ac_cv_path_EGREP"
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6361 $as_echo_n "checking for ANSI C header files... " >&6; }
6362 if ${ac_cv_header_stdc+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367 #include <stdlib.h>
6368 #include <stdarg.h>
6369 #include <string.h>
6370 #include <float.h>
6373 main ()
6377 return 0;
6379 _ACEOF
6380 if ac_fn_c_try_compile "$LINENO"; then :
6381 ac_cv_header_stdc=yes
6382 else
6383 ac_cv_header_stdc=no
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 if test $ac_cv_header_stdc = yes; then
6388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6391 #include <string.h>
6393 _ACEOF
6394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6395 $EGREP "memchr" >/dev/null 2>&1; then :
6397 else
6398 ac_cv_header_stdc=no
6400 rm -f conftest*
6404 if test $ac_cv_header_stdc = yes; then
6405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408 #include <stdlib.h>
6410 _ACEOF
6411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6412 $EGREP "free" >/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 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6423 if test "$cross_compiling" = yes; then :
6425 else
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6428 #include <ctype.h>
6429 #include <stdlib.h>
6430 #if ((' ' & 0x0FF) == 0x020)
6431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6433 #else
6434 # define ISLOWER(c) \
6435 (('a' <= (c) && (c) <= 'i') \
6436 || ('j' <= (c) && (c) <= 'r') \
6437 || ('s' <= (c) && (c) <= 'z'))
6438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6439 #endif
6441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6443 main ()
6445 int i;
6446 for (i = 0; i < 256; i++)
6447 if (XOR (islower (i), ISLOWER (i))
6448 || toupper (i) != TOUPPER (i))
6449 return 2;
6450 return 0;
6452 _ACEOF
6453 if ac_fn_c_try_run "$LINENO"; then :
6455 else
6456 ac_cv_header_stdc=no
6458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6459 conftest.$ac_objext conftest.beam conftest.$ac_ext
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6465 $as_echo "$ac_cv_header_stdc" >&6; }
6466 if test $ac_cv_header_stdc = yes; then
6468 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6472 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6473 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6474 inttypes.h stdint.h unistd.h
6475 do :
6476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6477 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6479 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6480 cat >>confdefs.h <<_ACEOF
6481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6482 _ACEOF
6486 done
6489 for ac_header in sys/ipc.h sys/shm.h \
6490 sys/mmap.h sys/mman.h sysexits.h \
6491 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6493 do :
6494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6495 ac_fn_c_check_header_mongrel "$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/mount.h
6507 do :
6508 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6510 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6511 cat >>confdefs.h <<_ACEOF
6512 #define HAVE_SYS_MOUNT_H 1
6513 _ACEOF
6517 done
6520 ac_header_dirent=no
6521 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6522 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6524 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6525 if eval \${$as_ac_Header+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6530 #include <sys/types.h>
6531 #include <$ac_hdr>
6534 main ()
6536 if ((DIR *) 0)
6537 return 0;
6539 return 0;
6541 _ACEOF
6542 if ac_fn_c_try_compile "$LINENO"; then :
6543 eval "$as_ac_Header=yes"
6544 else
6545 eval "$as_ac_Header=no"
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 eval ac_res=\$$as_ac_Header
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6551 $as_echo "$ac_res" >&6; }
6552 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6553 cat >>confdefs.h <<_ACEOF
6554 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6555 _ACEOF
6557 ac_header_dirent=$ac_hdr; break
6560 done
6561 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6562 if test $ac_header_dirent = dirent.h; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6564 $as_echo_n "checking for library containing opendir... " >&6; }
6565 if ${ac_cv_search_opendir+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 ac_func_search_save_LIBS=$LIBS
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6572 /* Override any GCC internal prototype to avoid an error.
6573 Use char because int might match the return type of a GCC
6574 builtin and then its argument prototype would still apply. */
6575 #ifdef __cplusplus
6576 extern "C"
6577 #endif
6578 char opendir ();
6580 main ()
6582 return opendir ();
6584 return 0;
6586 _ACEOF
6587 for ac_lib in '' dir; do
6588 if test -z "$ac_lib"; then
6589 ac_res="none required"
6590 else
6591 ac_res=-l$ac_lib
6592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6594 if ac_fn_c_try_link "$LINENO"; then :
6595 ac_cv_search_opendir=$ac_res
6597 rm -f core conftest.err conftest.$ac_objext \
6598 conftest$ac_exeext
6599 if ${ac_cv_search_opendir+:} false; then :
6600 break
6602 done
6603 if ${ac_cv_search_opendir+:} false; then :
6605 else
6606 ac_cv_search_opendir=no
6608 rm conftest.$ac_ext
6609 LIBS=$ac_func_search_save_LIBS
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6612 $as_echo "$ac_cv_search_opendir" >&6; }
6613 ac_res=$ac_cv_search_opendir
6614 if test "$ac_res" != no; then :
6615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6619 else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6621 $as_echo_n "checking for library containing opendir... " >&6; }
6622 if ${ac_cv_search_opendir+:} false; then :
6623 $as_echo_n "(cached) " >&6
6624 else
6625 ac_func_search_save_LIBS=$LIBS
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6629 /* Override any GCC internal prototype to avoid an error.
6630 Use char because int might match the return type of a GCC
6631 builtin and then its argument prototype would still apply. */
6632 #ifdef __cplusplus
6633 extern "C"
6634 #endif
6635 char opendir ();
6637 main ()
6639 return opendir ();
6641 return 0;
6643 _ACEOF
6644 for ac_lib in '' x; do
6645 if test -z "$ac_lib"; then
6646 ac_res="none required"
6647 else
6648 ac_res=-l$ac_lib
6649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6651 if ac_fn_c_try_link "$LINENO"; then :
6652 ac_cv_search_opendir=$ac_res
6654 rm -f core conftest.err conftest.$ac_objext \
6655 conftest$ac_exeext
6656 if ${ac_cv_search_opendir+:} false; then :
6657 break
6659 done
6660 if ${ac_cv_search_opendir+:} false; then :
6662 else
6663 ac_cv_search_opendir=no
6665 rm conftest.$ac_ext
6666 LIBS=$ac_func_search_save_LIBS
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6669 $as_echo "$ac_cv_search_opendir" >&6; }
6670 ac_res=$ac_cv_search_opendir
6671 if test "$ac_res" != no; then :
6672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6679 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6680 if ${ac_cv_header_stat_broken+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685 #include <sys/types.h>
6686 #include <sys/stat.h>
6688 #if defined S_ISBLK && defined S_IFDIR
6689 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6690 #endif
6692 #if defined S_ISBLK && defined S_IFCHR
6693 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6694 #endif
6696 #if defined S_ISLNK && defined S_IFREG
6697 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6698 #endif
6700 #if defined S_ISSOCK && defined S_IFREG
6701 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6702 #endif
6704 _ACEOF
6705 if ac_fn_c_try_compile "$LINENO"; then :
6706 ac_cv_header_stat_broken=no
6707 else
6708 ac_cv_header_stat_broken=yes
6710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6713 $as_echo "$ac_cv_header_stat_broken" >&6; }
6714 if test $ac_cv_header_stat_broken = yes; then
6716 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6721 $as_echo_n "checking for ANSI C header files... " >&6; }
6722 if ${ac_cv_header_stdc+:} false; then :
6723 $as_echo_n "(cached) " >&6
6724 else
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6727 #include <stdlib.h>
6728 #include <stdarg.h>
6729 #include <string.h>
6730 #include <float.h>
6733 main ()
6737 return 0;
6739 _ACEOF
6740 if ac_fn_c_try_compile "$LINENO"; then :
6741 ac_cv_header_stdc=yes
6742 else
6743 ac_cv_header_stdc=no
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6747 if test $ac_cv_header_stdc = yes; then
6748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 #include <string.h>
6753 _ACEOF
6754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6755 $EGREP "memchr" >/dev/null 2>&1; then :
6757 else
6758 ac_cv_header_stdc=no
6760 rm -f conftest*
6764 if test $ac_cv_header_stdc = yes; then
6765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 #include <stdlib.h>
6770 _ACEOF
6771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6772 $EGREP "free" >/dev/null 2>&1; then :
6774 else
6775 ac_cv_header_stdc=no
6777 rm -f conftest*
6781 if test $ac_cv_header_stdc = yes; then
6782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6783 if test "$cross_compiling" = yes; then :
6785 else
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 #include <ctype.h>
6789 #include <stdlib.h>
6790 #if ((' ' & 0x0FF) == 0x020)
6791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6793 #else
6794 # define ISLOWER(c) \
6795 (('a' <= (c) && (c) <= 'i') \
6796 || ('j' <= (c) && (c) <= 'r') \
6797 || ('s' <= (c) && (c) <= 'z'))
6798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6799 #endif
6801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6803 main ()
6805 int i;
6806 for (i = 0; i < 256; i++)
6807 if (XOR (islower (i), ISLOWER (i))
6808 || toupper (i) != TOUPPER (i))
6809 return 2;
6810 return 0;
6812 _ACEOF
6813 if ac_fn_c_try_run "$LINENO"; then :
6815 else
6816 ac_cv_header_stdc=no
6818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6819 conftest.$ac_objext conftest.beam conftest.$ac_ext
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6825 $as_echo "$ac_cv_header_stdc" >&6; }
6826 if test $ac_cv_header_stdc = yes; then
6828 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6833 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6834 if ${ac_cv_header_sys_wait_h+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 #include <sys/types.h>
6840 #include <sys/wait.h>
6841 #ifndef WEXITSTATUS
6842 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6843 #endif
6844 #ifndef WIFEXITED
6845 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6846 #endif
6849 main ()
6851 int s;
6852 wait (&s);
6853 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6855 return 0;
6857 _ACEOF
6858 if ac_fn_c_try_compile "$LINENO"; then :
6859 ac_cv_header_sys_wait_h=yes
6860 else
6861 ac_cv_header_sys_wait_h=no
6863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6866 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6867 if test $ac_cv_header_sys_wait_h = yes; then
6869 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6874 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6875 if ${ac_cv_header_time+:} false; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 #include <sys/types.h>
6881 #include <sys/time.h>
6882 #include <time.h>
6885 main ()
6887 if ((struct tm *) 0)
6888 return 0;
6890 return 0;
6892 _ACEOF
6893 if ac_fn_c_try_compile "$LINENO"; then :
6894 ac_cv_header_time=yes
6895 else
6896 ac_cv_header_time=no
6898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6901 $as_echo "$ac_cv_header_time" >&6; }
6902 if test $ac_cv_header_time = yes; then
6904 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6908 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6909 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6911 cat >>confdefs.h <<_ACEOF
6912 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6913 _ACEOF
6916 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6921 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6922 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6924 cat >>confdefs.h <<_ACEOF
6925 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6926 _ACEOF
6929 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6931 else
6932 case " $LIBOBJS " in
6933 *" fileblocks.$ac_objext "* ) ;;
6934 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6936 esac
6941 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6942 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6944 cat >>confdefs.h <<_ACEOF
6945 #define HAVE_STRUCT_STAT_ST_RDEV 1
6946 _ACEOF
6949 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6955 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6956 if ${ac_cv_struct_tm+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6961 #include <sys/types.h>
6962 #include <time.h>
6965 main ()
6967 struct tm tm;
6968 int *p = &tm.tm_sec;
6969 return !p;
6971 return 0;
6973 _ACEOF
6974 if ac_fn_c_try_compile "$LINENO"; then :
6975 ac_cv_struct_tm=time.h
6976 else
6977 ac_cv_struct_tm=sys/time.h
6979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6982 $as_echo "$ac_cv_struct_tm" >&6; }
6983 if test $ac_cv_struct_tm = sys/time.h; then
6985 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6989 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6990 #include <$ac_cv_struct_tm>
6993 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6995 cat >>confdefs.h <<_ACEOF
6996 #define HAVE_STRUCT_TM_TM_ZONE 1
6997 _ACEOF
7002 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7004 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7006 else
7007 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7009 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7010 ac_have_decl=1
7011 else
7012 ac_have_decl=0
7015 cat >>confdefs.h <<_ACEOF
7016 #define HAVE_DECL_TZNAME $ac_have_decl
7017 _ACEOF
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7020 $as_echo_n "checking for tzname... " >&6; }
7021 if ${ac_cv_var_tzname+:} false; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026 #include <time.h>
7027 #if !HAVE_DECL_TZNAME
7028 extern char *tzname[];
7029 #endif
7032 main ()
7034 return tzname[0][0];
7036 return 0;
7038 _ACEOF
7039 if ac_fn_c_try_link "$LINENO"; then :
7040 ac_cv_var_tzname=yes
7041 else
7042 ac_cv_var_tzname=no
7044 rm -f core conftest.err conftest.$ac_objext \
7045 conftest$ac_exeext conftest.$ac_ext
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7048 $as_echo "$ac_cv_var_tzname" >&6; }
7049 if test $ac_cv_var_tzname = yes; then
7051 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7056 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7057 if test "x$ac_cv_type_off_t" = xyes; then :
7059 else
7061 cat >>confdefs.h <<_ACEOF
7062 #define off_t long int
7063 _ACEOF
7067 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7068 if test "x$ac_cv_type_pid_t" = xyes; then :
7070 else
7072 cat >>confdefs.h <<_ACEOF
7073 #define pid_t int
7074 _ACEOF
7078 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7079 if test "x$ac_cv_type_size_t" = xyes; then :
7081 else
7083 cat >>confdefs.h <<_ACEOF
7084 #define size_t unsigned int
7085 _ACEOF
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7090 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7091 if ${ac_cv_type_uid_t+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7096 #include <sys/types.h>
7098 _ACEOF
7099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7100 $EGREP "uid_t" >/dev/null 2>&1; then :
7101 ac_cv_type_uid_t=yes
7102 else
7103 ac_cv_type_uid_t=no
7105 rm -f conftest*
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7109 $as_echo "$ac_cv_type_uid_t" >&6; }
7110 if test $ac_cv_type_uid_t = no; then
7112 $as_echo "#define uid_t int" >>confdefs.h
7115 $as_echo "#define gid_t int" >>confdefs.h
7120 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7121 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7123 cat >>confdefs.h <<_ACEOF
7124 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7125 _ACEOF
7131 # Look for some functions
7132 for ac_func in getpagesize kqueue statfs statvfs \
7133 clone kse_create rfork_thread thr_create sa_register \
7134 getcontext makecontext setcontext sigaltstack swapcontext
7135 do :
7136 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7137 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7138 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7139 cat >>confdefs.h <<_ACEOF
7140 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7141 _ACEOF
7144 done
7150 for ac_header in $ac_header_list
7151 do :
7152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7153 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7155 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7156 cat >>confdefs.h <<_ACEOF
7157 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7158 _ACEOF
7162 done
7171 for ac_func in getpagesize
7172 do :
7173 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7174 if test "x$ac_cv_func_getpagesize" = xyes; then :
7175 cat >>confdefs.h <<_ACEOF
7176 #define HAVE_GETPAGESIZE 1
7177 _ACEOF
7180 done
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7183 $as_echo_n "checking for working mmap... " >&6; }
7184 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 if test "$cross_compiling" = yes; then :
7188 ac_cv_func_mmap_fixed_mapped=no
7189 else
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 $ac_includes_default
7193 /* malloc might have been renamed as rpl_malloc. */
7194 #undef malloc
7196 /* Thanks to Mike Haertel and Jim Avera for this test.
7197 Here is a matrix of mmap possibilities:
7198 mmap private not fixed
7199 mmap private fixed at somewhere currently unmapped
7200 mmap private fixed at somewhere already mapped
7201 mmap shared not fixed
7202 mmap shared fixed at somewhere currently unmapped
7203 mmap shared fixed at somewhere already mapped
7204 For private mappings, we should verify that changes cannot be read()
7205 back from the file, nor mmap's back from the file at a different
7206 address. (There have been systems where private was not correctly
7207 implemented like the infamous i386 svr4.0, and systems where the
7208 VM page cache was not coherent with the file system buffer cache
7209 like early versions of FreeBSD and possibly contemporary NetBSD.)
7210 For shared mappings, we should conversely verify that changes get
7211 propagated back to all the places they're supposed to be.
7213 Grep wants private fixed already mapped.
7214 The main things grep needs to know about mmap are:
7215 * does it exist and is it safe to write into the mmap'd area
7216 * how to use it (BSD variants) */
7218 #include <fcntl.h>
7219 #include <sys/mman.h>
7221 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7222 char *malloc ();
7223 #endif
7225 /* This mess was copied from the GNU getpagesize.h. */
7226 #ifndef HAVE_GETPAGESIZE
7227 # ifdef _SC_PAGESIZE
7228 # define getpagesize() sysconf(_SC_PAGESIZE)
7229 # else /* no _SC_PAGESIZE */
7230 # ifdef HAVE_SYS_PARAM_H
7231 # include <sys/param.h>
7232 # ifdef EXEC_PAGESIZE
7233 # define getpagesize() EXEC_PAGESIZE
7234 # else /* no EXEC_PAGESIZE */
7235 # ifdef NBPG
7236 # define getpagesize() NBPG * CLSIZE
7237 # ifndef CLSIZE
7238 # define CLSIZE 1
7239 # endif /* no CLSIZE */
7240 # else /* no NBPG */
7241 # ifdef NBPC
7242 # define getpagesize() NBPC
7243 # else /* no NBPC */
7244 # ifdef PAGESIZE
7245 # define getpagesize() PAGESIZE
7246 # endif /* PAGESIZE */
7247 # endif /* no NBPC */
7248 # endif /* no NBPG */
7249 # endif /* no EXEC_PAGESIZE */
7250 # else /* no HAVE_SYS_PARAM_H */
7251 # define getpagesize() 8192 /* punt totally */
7252 # endif /* no HAVE_SYS_PARAM_H */
7253 # endif /* no _SC_PAGESIZE */
7255 #endif /* no HAVE_GETPAGESIZE */
7258 main ()
7260 char *data, *data2, *data3;
7261 const char *cdata2;
7262 int i, pagesize;
7263 int fd, fd2;
7265 pagesize = getpagesize ();
7267 /* First, make a file with some known garbage in it. */
7268 data = (char *) malloc (pagesize);
7269 if (!data)
7270 return 1;
7271 for (i = 0; i < pagesize; ++i)
7272 *(data + i) = rand ();
7273 umask (0);
7274 fd = creat ("conftest.mmap", 0600);
7275 if (fd < 0)
7276 return 2;
7277 if (write (fd, data, pagesize) != pagesize)
7278 return 3;
7279 close (fd);
7281 /* Next, check that the tail of a page is zero-filled. File must have
7282 non-zero length, otherwise we risk SIGBUS for entire page. */
7283 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7284 if (fd2 < 0)
7285 return 4;
7286 cdata2 = "";
7287 if (write (fd2, cdata2, 1) != 1)
7288 return 5;
7289 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7290 if (data2 == MAP_FAILED)
7291 return 6;
7292 for (i = 0; i < pagesize; ++i)
7293 if (*(data2 + i))
7294 return 7;
7295 close (fd2);
7296 if (munmap (data2, pagesize))
7297 return 8;
7299 /* Next, try to mmap the file at a fixed address which already has
7300 something else allocated at it. If we can, also make sure that
7301 we see the same garbage. */
7302 fd = open ("conftest.mmap", O_RDWR);
7303 if (fd < 0)
7304 return 9;
7305 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7306 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7307 return 10;
7308 for (i = 0; i < pagesize; ++i)
7309 if (*(data + i) != *(data2 + i))
7310 return 11;
7312 /* Finally, make sure that changes to the mapped area do not
7313 percolate back to the file as seen by read(). (This is a bug on
7314 some variants of i386 svr4.0.) */
7315 for (i = 0; i < pagesize; ++i)
7316 *(data2 + i) = *(data2 + i) + 1;
7317 data3 = (char *) malloc (pagesize);
7318 if (!data3)
7319 return 12;
7320 if (read (fd, data3, pagesize) != pagesize)
7321 return 13;
7322 for (i = 0; i < pagesize; ++i)
7323 if (*(data + i) != *(data3 + i))
7324 return 14;
7325 close (fd);
7326 return 0;
7328 _ACEOF
7329 if ac_fn_c_try_run "$LINENO"; then :
7330 ac_cv_func_mmap_fixed_mapped=yes
7331 else
7332 ac_cv_func_mmap_fixed_mapped=no
7334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7335 conftest.$ac_objext conftest.beam conftest.$ac_ext
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7340 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7341 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7343 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7346 rm -f conftest.mmap conftest.txt
7349 #-----------------------------------------------------------------------------
7352 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7353 # it switched on by default, and we use the host compiler, so it compiles AROS
7354 # code with this enabled resulting in link failures as we don't have support
7355 # for it.
7357 # We use two methods to disable it. For the host compiler (used to compile
7358 # some hosted modules), we test to see if the compiler supports stack
7359 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7360 # work on all platforms.
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7364 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7365 save_cflags="$CFLAGS"
7366 CFLAGS="$CFLAGS -fno-stack-protector"
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7371 main ()
7375 return 0;
7377 _ACEOF
7378 if ac_fn_c_try_compile "$LINENO"; then :
7379 use_no_stack_protector="yes"
7380 else
7381 use_no_stack_protector="no"
7383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7385 $as_echo "$use_no_stack_protector" >&6; }
7386 if test "x-$use_no_stack_protector" = "x-yes" ; then
7387 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7389 CFLAGS="$save_cflags"
7391 #-----------------------------------------------------------------------------
7393 # Disable pointer-signedness warnings if the compiler recognises the option
7394 # (this only works for the host compiler at the moment)
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7397 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7398 save_cflags="$CFLAGS"
7399 CFLAGS="$CFLAGS -Wno-pointer-sign"
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7404 main ()
7408 return 0;
7410 _ACEOF
7411 if ac_fn_c_try_compile "$LINENO"; then :
7412 use_no_sign_warning="yes"
7413 else
7414 use_no_sign_warning="no"
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7418 $as_echo "$use_no_sign_warning" >&6; }
7419 if test "x-$use_no_sign_warning" = "x-yes" ; then
7420 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7422 CFLAGS="$save_cflags"
7424 #-----------------------------------------------------------------------------
7426 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7429 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7430 save_cflags="$CFLAGS"
7431 CFLAGS="$CFLAGS -fgnu89-inline"
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7436 main ()
7440 return 0;
7442 _ACEOF
7443 if ac_fn_c_try_compile "$LINENO"; then :
7444 use_gnu89_inline="yes"
7445 else
7446 use_gnu89_inline="no"
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7450 $as_echo "$use_gnu89_inline" >&6; }
7451 if test "x-$use_gnu89_inline" = "x-yes" ; then
7452 gnu89_inline="-fgnu89-inline"
7454 CFLAGS="$save_cflags"
7457 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7458 # On GCC >= 4.0 -iquote should be used
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7461 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7462 CFLAGS="$CFLAGS -iquote."
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7467 main ()
7471 return 0;
7473 _ACEOF
7474 if ac_fn_c_try_compile "$LINENO"; then :
7475 has_iquote="yes"
7476 else
7477 has_iquote="no"
7479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7481 $as_echo "$has_iquote" >&6; }
7482 if test "x-$has_iquote" = "x-yes" ; then
7483 host_cflags_iquote=-iquote
7484 host_cflags_iquote_end=
7485 else
7486 host_cflags_iquote=-I
7487 host_cflags_iquote_end=-I-
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7491 $as_echo "$as_me: Performing target configuration..." >&6;}
7494 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7496 toolchain_needs_sysroot=no
7498 aros_warn_flags=
7499 aros_isa_extra=
7500 aros_isa_flags=
7501 aros_config_cppflags=
7502 aros_config_cflags=
7503 aros_config_cxxflags=
7504 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7505 aros_config_ldflags=""
7507 aros_shared_default=yes
7509 aros_shared_cflags="-fPIC"
7510 aros_shared_aflags=""
7511 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7512 aros_kernel_ldflags="-Wl,-rpath,./lib"
7514 aros_kernel_ar_flags="cr"
7515 aros_target_ar_flags="cr"
7516 aros_target_nm_flags="-C -ul"
7517 aros_target_strip_flags="--strip-unneeded -R.comment"
7519 aros_compiler_libs=
7520 aros_arch_libs=
7522 aros_target_genmap="-Wl,-Map -Xlinker"
7524 # Native flavour stuff
7525 aros_serial_debug="0"
7527 # Palm native flavour stuff
7528 aros_palm_debug_hack="0"
7530 # Unix flavour stuff
7531 aros_nesting_supervisor="0"
7533 # Collect-aros stuff: "-ius" to ignore undefined symbols
7534 ignore_undefined_symbols=""
7536 # Check for X11 by default
7537 need_x11="auto"
7539 host_x_gfx=no
7540 host_sdl_gfx=no
7541 host_android_gfx=no
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7545 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7547 # Check whether --with-toolchain was given.
7548 if test "${with_toolchain+set}" = set; then :
7549 withval=$with_toolchain; aros_toolchain="$withval"
7550 else
7551 aros_toolchain="gnu"
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7555 $as_echo "$aros_toolchain" >&6; }
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7559 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7560 # Check whether --enable-lto was given.
7561 if test "${enable_lto+set}" = set; then :
7562 enableval=$enable_lto; aros_config_lto="$enableval"
7563 else
7564 aros_config_lto="no"
7567 if test "$aros_config_lto" != "no"; then
7568 aros_config_lto="yes"
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7571 $as_echo "$aros_config_lto" >&6; }
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7574 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7575 # Check whether --enable-coverage was given.
7576 if test "${enable_coverage+set}" = set; then :
7577 enableval=$enable_coverage; aros_config_coverage="$enableval"
7578 else
7579 aros_config_coverage="no"
7582 if test "$aros_config_coverage" != "no"; then
7583 aros_config_coverage="yes"
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7586 $as_echo "$aros_config_coverage" >&6; }
7588 use_ld_wrapper=yes
7590 case "$aros_toolchain" in
7591 *llvm*)
7592 # toolchain_needs_sysroot=yes
7593 toolchain_c_compiler="clang"
7594 toolchain_cxx_compiler="clang++"
7595 toolchain_cpp_preprocessor="clang -E"
7596 toolchain_ld="ld.lld"
7597 aros_ld="ld"
7598 toolchain_as="llvm-as"
7599 toolchain_ar="llvm-ar"
7600 toolchain_ranlib="llvm-ranlib"
7601 toolchain_nm="llvm-nm"
7602 toolchain_strip="true"
7603 toolchain_objcopy="llvm-objcopy"
7604 toolchain_objdump="llvm-objdump"
7606 *gnu*)
7607 toolchain_c_compiler="gcc"
7608 toolchain_cxx_compiler="g++"
7609 toolchain_cpp_preprocessor="gcc -E"
7610 toolchain_as="as"
7611 aros_ld="ld"
7612 if test "$aros_config_lto" != "yes"; then
7613 toolchain_ld="ld"
7614 toolchain_ar="ar"
7615 toolchain_ranlib="ranlib"
7616 toolchain_nm="nm"
7617 else
7618 toolchain_ld="ld.bfd"
7619 toolchain_ar="gcc-ar"
7620 toolchain_ranlib="gcc-ranlib"
7621 toolchain_nm="gcc-nm"
7623 toolchain_strip="strip"
7624 toolchain_objcopy="objcopy"
7625 toolchain_objdump="objdump"
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7629 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7630 toolchain_c_compiler="cc"
7631 toolchain_cxx_compiler="c++"
7632 toolchain_cpp_preprocessor="cpp"
7633 toolchain_ld="ld"
7634 aros_ld="ld"
7635 toolchain_as="as"
7636 toolchain_ar="ar"
7637 toolchain_ranlib="ranlib"
7638 toolchain_nm="nm"
7639 toolchain_strip="strip"
7640 toolchain_objcopy="objcopy"
7641 toolchain_objdump="objdump"
7643 esac
7645 #-----------------------------------------------------------------------------
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7648 $as_echo_n "checking which type of build to do... " >&6; }
7649 # Check whether --enable-build_type was given.
7650 if test "${enable_build_type+set}" = set; then :
7651 enableval=$enable_build_type; build_type=$enableval
7652 else
7653 build_type="personal"
7657 if test "$build_type" = "nightly"; then
7658 build_type_string="NIGHTLY"
7659 elif test "$build_type" = "snapshot"; then
7660 build_type_string="SNAPSHOT"
7661 elif test "$build_type" = "milestone"; then
7662 build_type_string="MILESTONE"
7663 elif test "$build_type" = "release"; then
7664 build_type_string="RELEASE"
7665 else
7666 build_type_string="PERSONAL"
7667 build_type="personal"
7670 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7673 $as_echo "$build_type" >&6; }
7675 #-----------------------------------------------------------------------------
7676 all_debug_types="messages stack modules mungwall symbols"
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7679 $as_echo_n "checking which debug types to enable... " >&6; }
7680 # Check whether --enable-debug was given.
7681 if test "${enable_debug+set}" = set; then :
7682 enableval=$enable_debug; debug="$enableval"
7683 else
7684 debug=""
7688 if test "$debug" = "" -o "$debug" = "no"; then
7689 debug="none"
7690 elif test "$debug" = "yes"; then
7691 debug="all"
7694 if test "$debug" = "all" ; then
7695 debug="messages stack modules symbols"
7696 for d in $all_debug_types; do
7697 export aros_${d}_debug="1"
7698 done
7699 else
7700 for d in $all_debug_types; do
7701 export aros_${d}_debug="0"
7702 done
7705 if test "$debug" != "none"; then
7706 debug=`echo $debug | sed s/,/\ /g`
7707 for d in $debug; do
7708 found="0"
7709 for d2 in $all_debug_types; do
7710 if test "$d2" = "$d"; then
7711 found="1"
7712 break
7714 done
7715 if test "$found" = "0"; then
7716 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7718 export aros_${d}_debug="1"
7719 done
7720 aros_debug="yes"
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7723 $as_echo "$debug" >&6; }
7725 if test "$aros_messages_debug" = "1"; then
7726 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7727 else
7728 aros_messages_debug=""
7730 if test "$aros_symbols_debug" = "1"; then
7731 aros_symbols_debug="-g"
7732 else
7733 aros_symbols_debug=""
7736 # These are the flags to pass when compiling debugged programs
7737 aros_debug_cppflags="$aros_messages_debug"
7738 aros_debug_cflags="$aros_symbols_debug"
7739 aros_debug_cxxflags=
7740 aros_debug_aflags=""
7741 aros_debug_ldflags="$aros_symbols_debug"
7743 #-----------------------------------------------------------------------------
7744 # Checking for distcc and ccache.
7746 # Always apply the transforms in this particular order. Basically you should
7747 # always run 'ccache distcc compiler' in that order for the best performance.
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7750 $as_echo_n "checking whether to enable distcc... " >&6; }
7751 # Check whether --enable-distcc was given.
7752 if test "${enable_distcc+set}" = set; then :
7753 enableval=$enable_distcc; distcc="$enableval"
7754 else
7755 distcc="no"
7758 if test "$distcc" != "" -a "$distcc" != "no"; then
7759 # AC_CHECK_PROG will print out the result in this case
7760 # Extract the first word of "distcc", so it can be a program name with args.
7761 set dummy distcc; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if ${ac_cv_path_DISTCC+:} false; then :
7765 $as_echo_n "(cached) " >&6
7766 else
7767 case $DISTCC in
7768 [\\/]* | ?:[\\/]*)
7769 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 break 2
7783 done
7784 done
7785 IFS=$as_save_IFS
7787 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7789 esac
7791 DISTCC=$ac_cv_path_DISTCC
7792 if test -n "$DISTCC"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7794 $as_echo "$DISTCC" >&6; }
7795 else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7801 else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7807 $as_echo_n "checking whether to enable ccache... " >&6; }
7808 # Check whether --enable-ccache was given.
7809 if test "${enable_ccache+set}" = set; then :
7810 enableval=$enable_ccache; ccache="$enableval"
7811 else
7812 ccache="no"
7815 if test "$ccache" != "" -a "$ccache" != "no"; then
7816 # AC_CHECK_PROG will print out the result in this case
7817 # Extract the first word of "ccache", so it can be a program name with args.
7818 set dummy ccache; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if ${ac_cv_prog_CCACHE+:} false; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 if test -n "$CCACHE"; then
7825 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7826 else
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_prog_CCACHE="ccache"
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
7844 CCACHE=$ac_cv_prog_CCACHE
7845 if test -n "$CCACHE"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7847 $as_echo "$CCACHE" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7854 else
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7859 #-----------------------------------------------------------------------------
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7861 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7863 # Check whether --with-kernel-gcc-version was given.
7864 if test "${with_kernel_gcc_version+set}" = set; then :
7865 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7866 else
7867 kernel_tool_version=""
7870 if test "$kernel_tool_version" != "" ; then
7871 msg_result=$kernel_tool_version
7872 else
7873 msg_result="default"
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7876 $as_echo "$msg_result" >&6; }
7878 #-----------------------------------------------------------------------------
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7880 $as_echo_n "checking what optimization flags to use... " >&6; }
7882 # Check whether --with-optimization was given.
7883 if test "${with_optimization+set}" = set; then :
7884 withval=$with_optimization; optimization_level="$withval"
7885 else
7886 optimization_level="unknown"
7889 if test "$optimization_level" = "unknown"; then
7890 optimization="default"
7891 if test "$debug" != "none"; then
7892 optimization_level="-O0"
7893 else
7894 optimization_level="-O2"
7896 else
7897 optimization="$optimization_level"
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7900 $as_echo "$optimization" >&6; }
7902 paranoia_default=yes
7903 #-----------------------------------------------------------------------------
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7905 $as_echo_n "checking which paranoia flags to use... " >&6; }
7907 # Check whether --with-paranoia was given.
7908 if test "${with_paranoia+set}" = set; then :
7909 withval=$with_paranoia; paranoia_flags="$withval"
7910 else
7911 paranoia_flags="$paranoia_default"
7914 if test "$paranoia_flags" = "no"; then
7915 paranoia_flags="-Wall -Werror-implicit-function-declaration"
7916 msg_result="none"
7917 else
7918 if test "$paranoia_flags" = "yes"; then
7919 paranoia_flags="-Wall -Werror"
7921 msg_result="$paranoia_flags"
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7924 $as_echo "$msg_result" >&6; }
7925 aros_warn_flags="$aros_warn_flags $paranoia_flags"
7927 #-----------------------------------------------------------------------------
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7929 $as_echo_n "checking what target variant to enable... " >&6; }
7930 # Check whether --enable-target_variant was given.
7931 if test "${enable_target_variant+set}" = set; then :
7932 enableval=$enable_target_variant; target_variant=$enableval
7933 else
7934 target_variant=""
7937 if test "$target_variant" = ""; then
7938 aros_target_variant=""
7939 aros_target_suffix=""
7940 enableval="none"
7941 else
7942 aros_target_variant="$target_variant"
7943 aros_target_suffix="-$target_variant"
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7946 $as_echo "$enableval" >&6; }
7948 #-----------------------------------------------------------------------------
7949 # Target-specific defaults. You can override then on a per-target basis.
7951 # Bootloader name. Currently used by PC target.
7952 target_bootloader="none"
7953 PLATFORM_EXECSMP=
7954 ENABLE_EXECSMP=
7956 #-----------------------------------------------------------------------------
7957 # Additional options for some specific targets
7959 case "$aros_target_variant" in
7960 ios)
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7962 $as_echo_n "checking XCode path... " >&6; }
7964 # Check whether --with-xcode was given.
7965 if test "${with_xcode+set}" = set; then :
7966 withval=$with_xcode; aros_xcode_path="$withval"
7967 else
7968 aros_xcode_path="/Developer"
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7972 $as_echo "$aros_xcode_path" >&6; }
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7975 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7977 # Check whether --with-sdk-version was given.
7978 if test "${with_sdk_version+set}" = set; then :
7979 withval=$with_sdk_version; aros_sdk_version="$withval"
7980 else
7981 aros_sdk_version="4.1"
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7985 $as_echo "$aros_sdk_version" >&6; }
7989 "android")
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7991 $as_echo_n "checking Android SDK path... " >&6; }
7993 # Check whether --with-sdk was given.
7994 if test "${with_sdk+set}" = set; then :
7995 withval=$with_sdk; aros_android_sdk="$withval"
7996 else
7997 aros_android_sdk=$default_android_sdk
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8001 $as_echo "$aros_android_sdk" >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8004 $as_echo_n "checking Android NDK path... " >&6; }
8006 # Check whether --with-ndk was given.
8007 if test "${with_ndk+set}" = set; then :
8008 withval=$with_ndk; aros_android_ndk="$withval"
8009 else
8010 aros_android_ndk="none"
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8014 $as_echo "$aros_android_ndk" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8017 $as_echo_n "checking what Android SDK version to use... " >&6; }
8019 # Check whether --with-sdk-version was given.
8020 if test "${with_sdk_version+set}" = set; then :
8021 withval=$with_sdk_version; aros_sdk_version="$withval"
8022 else
8023 aros_sdk_version="12"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8027 $as_echo "$aros_sdk_version" >&6; }
8029 aros_android_level=android-$aros_sdk_version
8030 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8031 echo "Platform $aros_android_level is not installed in your SDK"
8032 echo "Use --with-sdk-version=<API level number> to select another platform version"
8033 echo "You can check what plaform versions are installed in your SDK"
8034 echo "by examining contents of $aros_android_sdk/platforms directory"
8035 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8038 export PATH="$aros_android_sdk/tools:$PATH"
8039 # Extract the first word of "$android_tool", so it can be a program name with args.
8040 set dummy $android_tool; ac_word=$2
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042 $as_echo_n "checking for $ac_word... " >&6; }
8043 if ${ac_cv_path_android_tool+:} false; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 case $android_tool in
8047 [\\/]* | ?:[\\/]*)
8048 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 break 2
8062 done
8063 done
8064 IFS=$as_save_IFS
8067 esac
8069 android_tool=$ac_cv_path_android_tool
8070 if test -n "$android_tool"; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8072 $as_echo "$android_tool" >&6; }
8073 else
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8079 req_avail=yes
8080 if test "$android_tool" = ""; then
8081 req_avail=no
8083 if test "$android_tool" = "no"; then
8084 req_avail=no
8086 if test "$req_avail" = "no"; then
8087 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8090 if test "$aros_android_ndk" != "none"; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8092 $as_echo_n "checking what Android NDK version to use... " >&6; }
8094 # Check whether --with-ndk-version was given.
8095 if test "${with_ndk_version+set}" = set; then :
8096 withval=$with_ndk_version; aros_ndk_version="$withval"
8097 else
8098 aros_ndk_version="9"
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8102 $as_echo "$aros_ndk_version" >&6; }
8105 # Extract the first word of "ant", so it can be a program name with args.
8106 set dummy ant; ac_word=$2
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108 $as_echo_n "checking for $ac_word... " >&6; }
8109 if ${ac_cv_path_ant+:} false; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 case $ant in
8113 [\\/]* | ?:[\\/]*)
8114 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8128 done
8129 done
8130 IFS=$as_save_IFS
8133 esac
8135 ant=$ac_cv_path_ant
8136 if test -n "$ant"; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8138 $as_echo "$ant" >&6; }
8139 else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8145 if test "$ant" = ""; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8147 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8151 $as_echo_n "checking Build debug or release apk... " >&6; }
8153 # Check whether --with-apk-version was given.
8154 if test "${with_apk_version+set}" = set; then :
8155 withval=$with_apk_version; aros_android_antapk=$withval
8156 else
8157 aros_android_antapk=release
8160 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8161 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8164 $as_echo "$aros_android_antapk" >&6; }
8166 if test "$host_os" = "mingw32"; then
8167 android_tool="cmd //c $android_tool"
8170 need_dlopen="no"
8173 esac
8175 #-----------------------------------------------------------------------------
8176 # External toolchains
8177 kernel_tool_prefix="none"
8178 aros_tool_prefix="none"
8179 elf_tool_prefix="${target_cpu}-elf-"
8180 x86_isa_extra="ISA_X86_FLAGS := -m32 -march=i486"
8181 x86_64_isa_extra="ISA_X8664_FLAGS := -mcmodel=large"
8182 export_newline="
8184 # This is the target configuration switch.
8185 case "$target_os" in
8186 linux*)
8187 aros_target_arch="linux"
8188 aros_target_family="unix"
8189 case "$target_cpu" in
8190 *m68k*)
8191 aros_target_cpu="m68k"
8192 aros_object_format="m68kelf"
8193 aros_flavour="emulcompat"
8194 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8195 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8196 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8197 gcc_target_cpu="mc68000"
8199 *i?86*)
8200 aros_target_cpu="i386"
8201 aros_object_format="elf_i386"
8202 aros_flavour="emulation"
8203 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8204 aros_isa_flags="$""(ISA_X86_FLAGS)"
8205 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8206 aros_kernel_ldflags="-Wl,-melf_i386"
8207 aros_nominal_depth=8
8208 gcc_target_cpu="i386"
8209 pci_hidd_target="hidd-pci-linux"
8210 android_tool_dir_prefix="x86"
8211 android_tool_prefix="i686-android-linux"
8212 android_ndk_arch="x86"
8214 *x86_64*)
8215 aros_target_cpu="x86_64"
8216 aros_object_format="elf_x86_64"
8217 aros_flavour="emulation"
8218 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8219 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8220 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8221 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8222 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8223 aros_nominal_depth=8
8224 pci_hidd_target="hidd-pci-linux"
8226 *powerpc*)
8227 aros_target_cpu="ppc"
8228 aros_object_format="elf32ppc"
8229 aros_flavour="emulation"
8230 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8231 aros_nominal_depth=8
8232 gcc_target_cpu="ppc"
8234 # TODO
8235 # Same as powerpc, but I need this for the nightly build to work again.
8236 # Actually, the nightly should be made working with powerpc target.
8237 # That just was too much work for the moment, another week or two.
8238 *ppc*)
8239 aros_target_cpu="ppc"
8240 aros_object_format="elf32ppc"
8241 aros_flavour="emulation"
8242 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8243 aros_nominal_depth=8
8244 gcc_target_cpu="ppc"
8246 *aarch64*)
8247 aros_target_cpu="aarch64"
8248 target_cpu="aarch64"
8249 aros_object_format="aarch64elf_aros"
8250 aros_flavour="emulation"
8251 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8252 gcc_target_cpu="aarch64"
8253 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8254 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8255 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8256 aros_arch_libs="-laeabi"
8257 gcc_default_float_abi="hard"
8258 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8260 *armhf*)
8261 aros_target_cpu="arm"
8262 target_cpu="arm"
8263 aros_object_format="armelf_aros"
8264 aros_flavour="emulation"
8265 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8266 gcc_target_cpu="arm"
8267 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8268 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8269 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8270 aros_arch_libs="-laeabi"
8271 gcc_default_float_abi="hard"
8272 android_tool_dir_prefix="arm-linux-androideabi"
8273 android_tool_prefix="arm-linux-androideabi"
8274 android_ndk_arch="arm"
8275 kernel_tool_prefix="arm-linux-gnueabihf-"
8277 *arm*)
8278 aros_target_cpu="arm"
8279 aros_object_format="armelf_aros"
8280 aros_flavour="emulation"
8281 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8282 gcc_target_cpu="arm"
8283 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8284 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8285 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8286 aros_arch_libs="-laeabi"
8287 android_tool_dir_prefix="arm-linux-androideabi"
8288 android_tool_prefix="arm-linux-androideabi"
8289 android_ndk_arch="arm"
8290 kernel_tool_prefix="arm-linux-gnueabi-"
8293 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8295 esac
8296 case "$aros_target_variant" in
8297 android)
8299 if test "$android_ndk_arch" = ""; then
8300 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8303 aros_nominal_width=320
8304 aros_nominal_height=480
8305 if test "$aros_android_ndk" = "none"; then
8306 aros_kernel_cflags="-mandroid"
8307 aros_kernel_ldflags="-mandroid"
8308 CFLAGS="-mandroid"
8309 else
8310 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8311 kernel_tool_version=""
8312 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8313 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8314 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8315 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8316 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8318 need_x11=no
8319 host_android_gfx=yes
8320 # Disable implicit PIC mode
8321 aros_config_cflags="$aros_config_cflags -fno-pic"
8322 kernel_tool_prefix="$android_tool_prefix-"
8324 esac
8328 aros_target_arch="pc"
8329 aros_shared_default="no"
8330 target_bootloader="grub2"
8331 case "$target_cpu" in
8332 *i?86*)
8333 aros_target_cpu="i386"
8336 if test "$aros_object_format" = "" ; then
8337 aros_object_format="elf_i386"
8339 aros_flavour="standalone"
8340 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8341 aros_isa_flags="$""(ISA_X86_FLAGS)"
8342 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8343 aros_kernel_ldflags="-Wl,-melf_i386"
8344 aros_nominal_width=640
8345 aros_nominal_height=480
8346 gcc_target_cpu="i386"
8348 *x86_64*)
8349 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8350 aros_target_cpu="x86_64"
8351 aros_serial_debug=1
8352 if test "$aros_object_format" = "" ; then
8353 aros_object_format="elf_x86_64"
8355 aros_flavour="standalone"
8356 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8357 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8358 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8359 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8360 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8361 aros_kernel_ldflags=""
8362 aros_nominal_width=640
8363 aros_nominal_height=480
8364 case "$aros_target_variant" in
8365 smp)
8366 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8368 esac
8371 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8373 esac
8376 prep)
8377 aros_target_arch="prep"
8378 aros_shared_default="no"
8379 aros_target_cpu="ppc"
8380 aros_object_format="elf32ppc"
8381 aros_flavour="ppcnative"
8382 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8383 aros_kernel_ldflags=""
8384 aros_nominal_width=640
8385 aros_nominal_height=480
8386 gcc_target_cpu="ppc"
8389 freebsd*)
8390 aros_target_arch="freebsd"
8391 aros_target_family="unix"
8392 aros_target_cpu="i386"
8393 aros_flavour="emulation"
8394 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8395 gcc_target_cpu="i386"
8397 aros_target_strip_flags="-x"
8400 darwin*)
8401 aros_target_arch="darwin"
8402 aros_target_family="unix"
8403 aros_flavour="emulation"
8404 case "$target_cpu" in
8405 *i?86*)
8406 aros_ios_platform="iPhoneSimulator"
8407 aros_target_cpu="i386"
8408 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8409 aros_isa_flags="$""(ISA_X86_FLAGS)"
8410 aros_kernel_ldflags=""
8411 aros_macosx_version="10.4"
8412 aros_nominal_depth=8
8413 gcc_target_cpu="i386"
8414 aros_object_format="elf_i386"
8415 aros_kernel_ar_flags="-cr"
8416 aros_target_strip_flags="-x"
8417 kernel_tool_flags="-m32"
8419 *x86_64*)
8420 aros_target_cpu="x86_64"
8421 aros_object_format="elf_x86_64"
8422 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8423 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8424 aros_macosx_version="10.6"
8425 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8426 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8427 aros_kernel_cflags="-m64"
8428 aros_kernel_ldflags="-m64"
8429 aros_nominal_depth=8
8430 aros_kernel_ar="ar"
8431 aros_kernel_ar_flags="-cr"
8432 aros_kernel_ld="ld"
8433 aros_kernel_as="as"
8434 aros_kernel_ranlib="ranlib"
8435 aros_kernel_nm="nm"
8436 aros_kernel_strip="strip"
8437 kernel_tool_prefix="i686-apple-darwin10-"
8439 *ppc*)
8440 aros_target_cpu="ppc"
8441 aros_object_format="elf32ppc"
8442 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8443 aros_kernel_ldflags=""
8444 aros_macosx_version="10.0"
8445 aros_nominal_depth=8
8446 gcc_target_cpu="ppc"
8447 aros_kernel_ar="ar"
8448 aros_kernel_ar_flags="-cr"
8449 aros_kernel_ld="ld -arch ppc"
8450 aros_kernel_as="as -arch ppc"
8451 aros_kernel_ranlib="ranlib -arch ppc"
8452 aros_kernel_nm="nm -arch ppc"
8453 aros_kernel_strip="strip -arch ppc"
8454 kernel_tool_prefix="powerpc-apple-darwin10-"
8456 *arm*)
8457 aros_ios_platform="iPhoneOS"
8458 aros_target_cpu="arm"
8459 aros_object_format="armelf_aros"
8460 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8461 aros_arch_libs="-laeabi"
8462 aros_nominal_depth=8
8463 gcc_target_cpu="arm"
8464 aros_kernel_ar="ar"
8465 aros_kernel_ar_flags="-cr"
8466 aros_kernel_ld="ld -arch arm"
8467 aros_kernel_ranlib="ranlib -arch arm"
8468 kernel_tool_prefix="arm-apple-darwin10-"
8469 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8472 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8474 esac
8475 case "$aros_target_variant" in
8476 ios)
8477 aros_ios_version="3.0"
8478 aros_nominal_width=320
8479 aros_nominal_height=480
8480 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8481 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8482 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8483 need_x11=no
8484 # This is here because it may depend on iOS or SDK version
8485 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8486 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8487 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8490 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8491 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8493 esac
8496 dragonfly*)
8497 aros_target_arch="dragonfly"
8498 aros_target_family="unix"
8499 aros_flavour="emulation"
8500 case "$target_cpu" in
8501 *i?86*)
8502 aros_target_cpu="i386"
8503 aros_object_format="elf_i386"
8504 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8505 aros_isa_flags="$""(ISA_X86_FLAGS)"
8507 *x86_64*)
8508 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8509 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8510 aros_target_cpu="x86_64"
8511 aros_object_format="elf_x86_64"
8512 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8513 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8516 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8518 esac
8521 netbsd*)
8522 aros_target_arch="netbsd"
8523 aros_target_family="unix"
8524 case "$target_cpu" in
8525 *m68k*)
8526 aros_target_cpu="m68k"
8527 aros_object_format="m68kelf"
8528 aros_flavour="emulcompat"
8529 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8530 gcc_target_cpu="mc68000"
8532 *i?86*)
8533 aros_target_cpu="i386"
8534 aros_object_format="elf_i386"
8535 aros_flavour="emulation"
8536 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8537 aros_isa_flags="$""(ISA_X86_FLAGS)"
8538 aros_nominal_depth=8
8539 gcc_target_cpu="i386"
8542 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8544 esac
8545 aros_target_genmap="-Wl,-M -Xlinker >"
8546 aros_flavour="emulation"
8547 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8550 openbsd*)
8551 aros_target_arch="openbsd"
8552 aros_target_family="unix"
8553 case "$target_cpu" in
8554 *i?86*)
8555 aros_target_cpu="i386"
8556 aros_object_format="elf_i386"
8557 aros_flavour="emulation"
8558 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8559 aros_isa_flags="$""(ISA_X86_FLAGS)"
8560 gcc_target_cpu="i386"
8563 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8565 esac
8566 aros_target_genmap="-Wl,-M -Xlinker >"
8567 aros_target_nm_flags="-u"
8568 aros_flavour="emulation"
8571 solaris*)
8572 aros_target_arch="solaris"
8573 aros_target_family="unix"
8574 case "$target_cpu" in
8575 *i?86*)
8576 aros_target_cpu="i386"
8577 aros_object_format="elf_i386"
8578 aros_flavour="emulation"
8579 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8580 aros_isa_flags="$""(ISA_X86_FLAGS)"
8581 aros_nominal_depth=8
8582 gcc_target_cpu="i386"
8584 *sparc*)
8585 aros_target_cpu="sparc"
8586 aros_object_format="elf_sparc"
8587 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8588 gcc_target_cpu="sparc"
8591 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8593 esac
8594 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8595 aros_flavour="emulation"
8598 morphos*)
8599 aros_target_arch="morphos"
8600 aros_shared_default="no"
8601 aros_target_cpu="ppc"
8602 aros_object_format="elf_ppc"
8603 aros_flavour="nativecompat"
8604 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8605 gcc_target_cpu="ppc"
8608 sam440)
8609 aros_target_arch="sam440"
8610 aros_shared_default="no"
8611 aros_target_cpu="ppc"
8612 aros_object_format="elf32ppc"
8613 aros_flavour="ppcnative"
8614 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8615 aros_kernel_ldflags=""
8616 aros_nominal_width=1024
8617 aros_nominal_height=768
8618 aros_nominal_depth=24
8619 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8620 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8621 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8622 gcc_target_cpu="powerpc"
8625 efika)
8626 aros_target_arch="efika"
8627 aros_shared_default="no"
8628 aros_target_cpu="arm"
8629 aros_object_format="armelf_aros"
8630 aros_flavour="standalone"
8631 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8632 aros_kernel_ldflags=""
8633 aros_nominal_width=1024
8634 aros_nominal_height=600
8635 aros_arch_libs="-laeabi"
8636 gcc_default_cpu="armv7-a"
8637 gcc_default_fpu="vfpv3"
8638 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8639 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8640 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8641 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8642 if test "$optimization" = "default"; then
8643 optimization_level="-Os"
8645 case "$target_cpu" in
8646 *armhf*)
8647 gcc_default_float_abi="hard"
8648 target_cpu=arm
8649 aros_target_cpu=arm
8651 *arm*)
8652 gcc_default_float_abi="softfp"
8655 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8657 esac
8660 chrp)
8661 aros_target_arch="chrp"
8662 aros_shared_default="no"
8663 aros_target_cpu="ppc"
8664 aros_object_format="elf32ppc"
8665 aros_flavour="ppcnative"
8666 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8667 aros_kernel_ldflags=""
8668 aros_nominal_width=640
8669 aros_nominal_height=480
8670 aros_isa_flags="$aros_isa_flags -mno-toc"
8671 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8672 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8673 gcc_target_cpu="powerpc"
8674 case "$aros_target_variant" in
8675 efika)
8676 aros_isa_flags="$aros_isa_flags -mcpu=603e"
8677 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8679 esac
8682 r*pi)
8683 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8684 aros_flavour="standalone"
8685 aros_target_arch="raspi"
8687 aros_shared_default="no"
8689 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8691 case "$target_cpu" in
8692 *aarch64*)
8693 aros_target_cpu="aarch64"
8694 gcc_default_cpu="aarch64"
8695 aros_object_format="aarch64elf_aros"
8697 *armhf*)
8698 aros_target_cpu="arm"
8699 gcc_default_cpu="armv6zk"
8700 gcc_default_cpu_tune="arm1176jzf-s"
8701 aros_object_format="armelf_aros"
8702 aros_isa_flags="$aros_isa_flags -marm"
8703 aros_config_cflags="$aros_config_cflags"
8704 aros_config_cxxflags="$aros_config_cxxflags"
8705 aros_config_aflags="$aros_config_aflags -marm"
8706 aros_kernel_cflags="$aros_kernel_cflags -marm"
8707 aros_target_mkdep="$aros_target_mkdep -Darm"
8708 aros_arch_libs="-laeabi"
8710 *armeb*)
8711 aros_flavour="standcompat"
8712 aros_target_cpu="armeb"
8713 gcc_default_float_abi="hard"
8714 gcc_default_cpu="armv7ve"
8715 gcc_default_cpu_tune="cortex-a7"
8716 aros_object_format="armelfb_aros"
8717 aros_isa_flags="$aros_isa_flags -marm"
8718 aros_config_cflags="$aros_config_cflags"
8719 aros_config_cxxflags="$aros_config_cxxflags"
8720 aros_config_aflags="$aros_config_aflags -marm"
8721 aros_kernel_cflags="$aros_kernel_cflags -marm"
8722 aros_target_mkdep="$aros_target_mkdep -Darm"
8723 aros_arch_libs="-laeabi"
8725 *arm*)
8726 aros_target_cpu="arm"
8727 gcc_default_cpu="armv6zk"
8728 gcc_default_cpu_tune="arm1176jzf-s"
8729 aros_object_format="armelf_aros"
8730 aros_isa_flags="$aros_isa_flags -marm"
8731 aros_config_cflags="$aros_config_cflags"
8732 aros_config_cxxflags="$aros_config_cxxflags"
8733 aros_config_aflags="$aros_config_aflags -marm"
8734 aros_kernel_cflags="$aros_kernel_cflags -marm"
8735 aros_target_mkdep="$aros_target_mkdep -Darm"
8736 aros_arch_libs="-laeabi"
8739 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8741 esac
8743 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8744 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
8745 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8746 aros_kernel_cflags="$aros_kernel_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8748 case "$aros_target_variant" in
8749 smp)
8750 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8752 esac
8755 stm32f7_discovery)
8756 aros_flavour="standalone"
8757 aros_target_arch="stm32f7_discovery"
8758 aros_target_cpu="arm"
8759 aros_target_cpu_mode="thumb2"
8760 aros_object_format="armelf_aros"
8761 aros_shared_default="no"
8763 gcc_default_cpu="armv7e-m"
8764 gcc_default_cpu_tune="cortex-m7"
8765 gcc_default_fpu="fpv5-sp-d16"
8766 gcc_default_float_abi="hard"
8768 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8771 amiga*)
8772 aros_target_arch="amiga"
8773 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8774 aros_shared_default="no"
8776 case "$target_cpu" in
8777 *m68k*)
8778 # Check whether --enable-amigaos_compliance was given.
8779 if test "${enable_amigaos_compliance+set}" = set; then :
8780 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8783 aros_enable_mmu=no
8784 aros_target_cpu="m68k"
8785 aros_object_format="m68kelf"
8786 aros_flavour="standcompat"
8787 gcc_target_cpu="m68000"
8788 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8789 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
8790 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8791 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8792 if test "$optimization" = "default"; then
8793 optimization_level="-Os"
8795 aros_config_aflags="$aros_config_aflags"
8796 aros_target_strip_flags="-R.comment --strip-debug"
8797 aros_nominal_width=640
8798 aros_nominal_height=256
8799 aros_nominal_depth=2
8801 *ppc*)
8802 aros_cpu="ppc"
8803 aros_flavour="native"
8804 gcc_target_cpu="ppc"
8807 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8809 esac
8812 mingw*)
8813 aros_target_arch="mingw32"
8814 aros_shared_default="no"
8815 aros_flavour="emulation"
8816 aros_shared_cflags=""
8817 need_crosstools="yes"
8818 need_dlopen="no"
8819 rescomp="windres"
8820 case "$target_cpu" in
8821 *i?86*)
8822 aros_target_cpu="i386"
8823 aros_object_format="elf_i386"
8824 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8825 aros_isa_flags="$""(ISA_X86_FLAGS)"
8826 aros_nominal_depth=8
8827 gcc_target_cpu="i386"
8829 kernel_tool_prefix="i386-mingw32-"
8831 *x86_64*)
8832 aros_target_cpu="x86_64"
8833 aros_object_format="elf_x86_64"
8834 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8835 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8836 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8837 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8838 aros_nominal_depth=8
8839 kernel_tool_prefix="x86_64-w64-mingw32-"
8841 *arm*)
8842 aros_target_cpu="arm"
8843 aros_object_format="armelf_aros"
8844 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8845 aros_arch_libs="-laeabi"
8846 aros_nominal_depth=8
8847 gcc_target_cpu="arm"
8848 gcc_default_float_abi="soft"
8849 kernel_tool_prefix="arm-mingw32ce-"
8850 aros_nominal_width=160
8851 aros_nominal_height=160
8854 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8856 esac
8857 if test $host_os = "cygwin"; then
8858 aros_kernel_cflags="-mno-cygwin"
8861 pp*)
8862 aros_target_arch="pp"
8863 aros_shared_default="no"
8864 case "$target_cpu" in
8865 *m68k*)
8866 aros_target_cpu="m68k"
8867 aros_object_format="m68kelf"
8868 aros_flavour="palmnative"
8869 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8870 aros_nominal_width=160
8871 aros_nominal_height=160
8872 aros_nominal_depth=1
8873 aros_target_ar_flags="cru"
8874 aros_compiler_libs="-lgcc1"
8875 aros_shared_default=no
8876 aros_shared_cflags="-fpic"
8877 aros_shared_aflags=""
8878 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8879 aros_kernel_ldflags="-Wl,-rpath,./lib"
8880 aros_debug_cppflags="$aros_messages_debug"
8881 aros_debug_cflags="$aros_symbols_debug"
8882 aros_debug_aflags=""
8883 aros_debug_ldflags="$aros_symbols_debug"
8884 aros_mungwall_debug="0"
8885 aros_modules_debug="0"
8886 gcc_target_cpu="mc68000"
8887 ignore_undefined_symbols="-ius"
8890 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8892 esac
8895 mac*)
8896 aros_target_arch="mac"
8897 aros_shared_default="no"
8898 case "$target_cpu" in
8899 *m68k*)
8900 aros_target_cpu="m68k"
8901 aros_object_format="m68kelf"
8902 aros_flavour="mac68knative"
8903 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8904 aros_nominal_width=512
8905 aros_nominal_height=384
8906 aros_nominal_depth=8
8907 aros_target_ar_flags="cru"
8908 aros_compiler_libs="-lgcc1"
8909 aros_shared_default=no
8910 aros_shared_cflags="-fpic"
8911 aros_shared_aflags=""
8912 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8913 aros_kernel_ldflags="-Wl,-rpath,./lib"
8914 aros_debug_cppflags="$aros_messages_debug"
8915 aros_debug_cflags="$aros_symbols_debug"
8916 aros_debug_aflags=""
8917 aros_debug_ldflags="$aros_symbols_debug"
8918 aros_mungwall_debug="0"
8919 aros_modules_debug="0"
8920 gcc_target_cpu="mc68000"
8921 ignore_undefined_symbols="-ius"
8924 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8926 esac
8930 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8932 esac
8934 #-----------------------------------------------------------------------------
8935 crosstools_guess="yes"
8936 aros_target_toolchain="no"
8937 aros_config_sysroot=""
8938 aros_kernel_sysroot=""
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8941 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8943 # Check whether --with-kernel-toolchain-prefix was given.
8944 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8945 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8949 $as_echo "$kernel_tool_prefix" >&6; }
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8952 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8954 # Check whether --with-elf-toolchain-prefix was given.
8955 if test "${with_elf_toolchain_prefix+set}" = set; then :
8956 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8957 crosstools_guess="no"
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8961 $as_echo "$elf_tool_prefix" >&6; }
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8964 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8966 # Check whether --with-aros-toolchain was given.
8967 if test "${with_aros_toolchain+set}" = set; then :
8968 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8969 crosstools_guess="no"
8972 if test "$aros_tool_prefix" = "yes" ; then
8973 aros_tool_prefix=$aros_target_cpu-aros-
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8976 $as_echo "$aros_tool_prefix" >&6; }
8978 #-----------------------------------------------------------------------------
8979 # Checking if we should build crosstools..
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8981 $as_echo_n "checking whether to build crosstools... " >&6; }
8982 # Check whether --enable-crosstools was given.
8983 if test "${enable_crosstools+set}" = set; then :
8984 enableval=$enable_crosstools; crosstools="$enableval"
8985 else
8986 crosstools="$crosstools_guess"
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8990 $as_echo "$crosstools" >&6; }
8992 if test "${crosstools}" = "yes"; then
8993 if test "${crosstools_guess}" = "no"; then
8994 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8998 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8999 aros_target_toolchain="yes"
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9003 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9005 # Check whether --with-aros-toolchain-install was given.
9006 if test "${with_aros_toolchain_install+set}" = set; then :
9007 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9010 if test "x$aros_toolchain_install" = "x"; then
9011 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9012 else
9013 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9014 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9015 if test "$crosstools_guess" = "no" ; then
9016 toolchain_needs_sysroot=yes
9018 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9019 aros_kernel_sysroot = $aros_config_sysroot
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9024 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
9027 $as_echo_n "checking If we need to use --sysroot... " >&6; }
9028 if test "$toolchain_needs_sysroot" = "yes" ; then
9029 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer"
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
9032 $as_echo "$toolchain_needs_sysroot" >&6; }
9034 #-----------------------------------------------------------------------------
9035 if test "$aros_toolchain" = "gnu" ; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9037 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9040 # Check whether --with-binutils-version was given.
9041 if test "${with_binutils_version+set}" = set; then :
9042 withval=$with_binutils_version; use_binutils_version="$withval"
9043 else
9044 use_binutils_version=""
9047 if test "$use_binutils_version" = ""; then
9048 target_binutils_version="$default_binutils_version"
9049 else
9050 target_binutils_version="$use_binutils_version"
9052 if test "$aros_toolchain" = "gnu" ; then
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9054 $as_echo "$target_binutils_version" >&6; }
9058 # Helper to identify gcc version
9061 #-----------------------------------------------------------------------------
9062 if test "$aros_toolchain" = "gnu" ; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9064 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9067 # Check whether --with-gcc-version was given.
9068 if test "${with_gcc_version+set}" = set; then :
9069 withval=$with_gcc_version; use_gcc_version="$withval"
9070 else
9071 use_gcc_version=""
9074 if test "$use_gcc_version" = ""; then
9075 if test "${crosstools}" = "no"; then
9076 if test "x$aros_toolchain_install" != "x"; then
9078 target_gcc_version=""
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9080 $as_echo_n "checking gcc version... " >&6; }
9081 if ${ax_cv_gcc_version+:} false; then :
9082 $as_echo_n "(cached) " >&6
9083 else
9085 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9086 if test "x$ax_cv_gcc_version" = "x"; then :
9088 ax_cv_gcc_version=""
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9094 $as_echo "$ax_cv_gcc_version" >&6; }
9095 target_gcc_version=$ax_cv_gcc_version
9100 if test "$use_gcc_version" = ""; then
9101 target_gcc_version="$default_gcc_version"
9103 else
9104 target_gcc_version="$use_gcc_version"
9106 if test "$aros_toolchain" = "gnu" ; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9108 $as_echo "$target_gcc_version" >&6; }
9110 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9111 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9112 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9114 gcc_fix_bitfields="false"
9115 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9116 gcc_fix_bitfields="true"
9117 else
9118 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9119 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9120 gcc_fix_bitfields="true"
9125 if test "$gcc_fix_bitfields" = "true" ; then
9126 case "$aros_target_cpu" in
9127 *x86_64* | i386)
9128 x86_isa_extra="$x86_isa_extra -mno-ms-bitfields"
9129 x86_64_isa_extra="$x86_64_isa_extra -mno-ms-bitfields"
9131 esac
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9136 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9137 # Check whether --enable-objc was given.
9138 if test "${enable_objc+set}" = set; then :
9139 enableval=$enable_objc; objc="$enableval"
9140 else
9141 objc="no"
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9145 $as_echo "$objc" >&6; }
9146 if test "x$objc" = "xyes"; then
9147 objc_target="$objc"
9148 else
9149 objc_target="no-objc"
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9153 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9154 # Check whether --enable-java was given.
9155 if test "${enable_java+set}" = set; then :
9156 enableval=$enable_java; java="$enableval"
9157 else
9158 java="no"
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9162 $as_echo "$java" >&6; }
9163 if test "x$java" != "xno"; then
9164 java_target="$java"
9165 else
9166 java_target="no-java"
9169 spec_obj_format="-m $aros_object_format"
9170 # Now process extra architecture-specific options.
9171 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9172 # as well as floating-point ABI.
9173 case "$aros_target_cpu" in
9174 *x86_64*)
9175 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9176 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9178 arm*)
9179 if test "$gcc_default_cpu" = ""; then
9180 gcc_default_cpu="armv6"
9182 if test "$gcc_default_fpu" = ""; then
9183 gcc_default_fpu="vfp"
9185 if test "$gcc_default_endian" = ""; then
9186 if test "$target_cpu" = "armeb"; then
9187 gcc_default_endian="big-endian"
9188 else
9189 gcc_default_endian="little-endian"
9192 if test "$gcc_default_float_abi" = ""; then
9193 if test "$target_cpu" = "armhf"; then
9194 gcc_default_float_abi="hard"
9195 else
9196 gcc_default_float_abi="softfp"
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9201 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9203 # Check whether --with-cpu was given.
9204 if test "${with_cpu+set}" = set; then :
9205 withval=$with_cpu; aros_gcc_cpu="$withval"
9206 else
9207 aros_gcc_cpu=$gcc_default_cpu
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9211 $as_echo "$aros_gcc_cpu" >&6; }
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9214 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9216 # Check whether --with-fpu was given.
9217 if test "${with_fpu+set}" = set; then :
9218 withval=$with_fpu; aros_gcc_fpu="$withval"
9219 else
9220 aros_gcc_fpu=$gcc_default_fpu
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9224 $as_echo "$aros_gcc_fpu" >&6; }
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9227 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9229 # Check whether --with-float was given.
9230 if test "${with_float+set}" = set; then :
9231 withval=$with_float; aros_gcc_float_abi="$withval"
9232 else
9233 aros_gcc_float_abi=$gcc_default_float_abi
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9237 $as_echo "$aros_gcc_float_abi" >&6; }
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9240 $as_echo_n "checking Which ARM mode to use... " >&6; }
9241 if test "$aros_target_cpu_mode" = ""; then
9242 aros_target_cpu_mode="arm32"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9244 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9245 else
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9247 $as_echo "$aros_target_cpu_mode" >&6; }
9250 case "$aros_target_cpu_mode" in
9251 arm32)
9252 gcc_default_mode="arm"
9253 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"
9255 arm64)
9256 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9258 thumb)
9259 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9261 thumb1)
9262 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9264 thumb2)
9265 gcc_default_mode="thumb"
9266 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9267 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -m$gcc_default_endian -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9270 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9272 esac
9274 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9275 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
9276 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9278 i386)
9279 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9280 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9282 esac
9284 # Some architectures may need custom ELF specs.
9285 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9286 elf_specs_in=config/${aros_object_format}-specs.in
9287 else
9288 elf_specs_in=config/elf-specs.in
9291 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9292 # Since we override specs, we may need to put these defines there
9293 if test "$gcc_target_cpu" != ""; then
9294 gcc_target_cpu="-D__${gcc_target_cpu}__"
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9298 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9300 # Check whether --with-portssources was given.
9301 if test "${with_portssources+set}" = set; then :
9302 withval=$with_portssources; with_portssrcdir=$withval
9303 else
9304 with_portssrcdir="default"
9307 if test "$with_portssrcdir" = "default"; then
9308 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9309 else
9310 AROS_PORTSSRCDIR="$with_portssrcdir"
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9313 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9316 $as_echo_n "checking which bootloader to use... " >&6; }
9318 # Check whether --with-bootloader was given.
9319 if test "${with_bootloader+set}" = set; then :
9320 withval=$with_bootloader; target_bootloader=$withval
9321 else
9322 target_bootloader=$target_bootloader
9325 if test "$target_bootloader" = "none"; then
9326 aros_target_bootloader=""
9327 else
9328 aros_target_bootloader="$target_bootloader"
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9331 $as_echo "$target_bootloader" >&6; }
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9334 $as_echo_n "checking which icon-set to use... " >&6; }
9336 # Check whether --with-iconset was given.
9337 if test "${with_iconset+set}" = set; then :
9338 withval=$with_iconset; target_iconset=$withval
9339 else
9340 target_iconset="default"
9343 if test "$target_iconset" = "default"; then
9344 aros_target_iconset="Gorilla"
9345 target_iconset="default (Gorilla)"
9346 else
9347 aros_target_iconset="$target_iconset"
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9350 $as_echo "$target_iconset" >&6; }
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9353 $as_echo_n "checking which GUI Theme to use... " >&6; }
9355 # Check whether --with-theme was given.
9356 if test "${with_theme+set}" = set; then :
9357 withval=$with_theme; target_guitheme=$withval
9358 else
9359 target_guitheme="default"
9362 if test "$target_guitheme" = "default"; then
9363 aros_target_guitheme="Ice"
9364 else
9365 aros_target_guitheme="$target_guitheme"
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9368 $as_echo "$aros_target_guitheme" >&6; }
9370 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9371 # for target code)
9372 cross_compiling=no
9374 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9375 cross_compiling=yes
9378 if test "$aros_host_cpu" == "x86_64" ; then
9379 if test "$aros_target_cpu" == "i386" ; then
9380 cross_compiling=no
9384 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9385 if test "$aros_host_arch" != "$aros_target_arch" ; then
9386 cross_compiling=yes
9388 else
9389 if test "$host_cc_elf" = "no" ; then
9390 cross_compiling=yes
9394 if test "$cross_compiling" = "no" ; then
9395 kernel_tool_prefix=""
9396 if test "$host_cc_elf" = "yes" ; then
9397 elf_tool_prefix=""
9401 if test "$kernel_tool_version" != ""; then
9402 kernel_tool_version="-$kernel_tool_version"
9405 #######################################################################
9406 ## Compute what toolchains to use, and their paths ##
9407 #######################################################################
9409 # This takes, as input:
9410 # crosstools {yes,no}
9411 # kernel_tool_version {"",[version]}
9412 # target_tool_version {"",[version]}
9413 # kernel_tool_prefix {none,[some-arch-os-]}
9414 # gnu-toolchain -:
9415 # target_tool_prefix ${aros_target_cpu}-aros-
9416 # aros_tool_prefix ${aros_target_cpu}-aros-
9418 # The output is
9419 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9420 # Where the 'kernel' binaries are located
9421 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9422 # Where the 'target' binaries are located
9423 # (not the symlink farm - that is aros_target_*!)
9425 # The rules are:
9426 # if crosstools then
9427 # if kernel_tools_prefix = "no-kernel-prefix-"
9428 # aros_kernel_* = crosstools cc paths
9429 # aros_kernel_cc = elf cc wrapper around crosstools cc
9430 # else
9431 # VALIDATE(${kernel_tools_prefix}*)
9432 # aros_kernel_* = ${kernel_tools_prefix}*
9433 # if ${kernel_tools_prefix}cc is an AROS gcc
9434 # aros_kernel_cc = ${kernel_tools_prefix}cc
9435 # else
9436 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9437 # fi
9438 # fi
9440 # orig_target_* = aros built crosstools
9441 # orig_target_cc = elf cc wrapper around crosstools cc
9442 # else
9443 # VALIDATE(${kernel_tools_prefix}*)
9445 # orig_target_* = aros_kernel_*
9446 # if aros_kernel_cc is an AROS gcc
9447 # orig_target_cc = aros_kernel_cc
9448 # else
9449 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9450 # fi
9451 # fi
9453 if test "$aros_toolchain" = "gnu" ; then
9454 target_tool_prefix="${aros_target_cpu}-aros-"
9455 elif test "$aros_toolchain" = "llvm" ; then
9456 target_tool_prefix="bin/"
9459 if test "$kernel_tool_prefix" != "" ; then
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9461 $as_echo_n "checking which kernel tools... " >&6; }
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9463 $as_echo "$kernel_tool_prefix" >&6; };
9466 if test "$kernel_tool_prefix" = "none" ; then
9467 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9468 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9470 else
9471 # Kernel tools required - find them
9472 # Note that 'normally', aros_kernel_* overrides will be
9473 # empty, unless specified in the per-arch sections above.
9474 if test "x$aros_kernel_cpp" = "x"; then
9475 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9477 if test "${kernel_tool_version}" != ""; then
9478 if test "$aros_kernel_cpp" != ""; then
9479 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9480 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9481 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9485 if test "$aros_kernel_cpp" = ""; then
9486 if test "$cross_compiling" = "yes" ; then
9487 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9488 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490 $as_echo_n "checking for $ac_word... " >&6; }
9491 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 case $aros_kernel_cpp in
9495 [\\/]* | ?:[\\/]*)
9496 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9506 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9510 done
9511 done
9512 IFS=$as_save_IFS
9515 esac
9517 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9518 if test -n "$aros_kernel_cpp"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9520 $as_echo "$aros_kernel_cpp" >&6; }
9521 else
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9527 else
9528 if test "$GCC" = "yes"; then
9529 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9530 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9531 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533 $as_echo_n "checking for $ac_word... " >&6; }
9534 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 case $aros_kernel_cpp in
9538 [\\/]* | ?:[\\/]*)
9539 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9543 for as_dir in `dirname $aros_gcc_cpp`
9545 IFS=$as_save_IFS
9546 test -z "$as_dir" && as_dir=.
9547 for ac_exec_ext in '' $ac_executable_extensions; do
9548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9549 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9551 break 2
9553 done
9554 done
9555 IFS=$as_save_IFS
9558 esac
9560 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9561 if test -n "$aros_kernel_cpp"; then
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9563 $as_echo "$aros_kernel_cpp" >&6; }
9564 else
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566 $as_echo "no" >&6; }
9571 if test "$aros_kernel_cpp" = ""; then
9572 # Extract the first word of "cpp", so it can be a program name with args.
9573 set dummy cpp; ac_word=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 case $aros_kernel_cpp in
9580 [\\/]* | ?:[\\/]*)
9581 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585 for as_dir in $PATH
9587 IFS=$as_save_IFS
9588 test -z "$as_dir" && as_dir=.
9589 for ac_exec_ext in '' $ac_executable_extensions; do
9590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9591 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593 break 2
9595 done
9596 done
9597 IFS=$as_save_IFS
9600 esac
9602 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9603 if test -n "$aros_kernel_cpp"; then
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9605 $as_echo "$aros_kernel_cpp" >&6; }
9606 else
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608 $as_echo "no" >&6; }
9614 else
9615 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9616 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9617 set dummy $aros_kernel_cpp; ac_word=$2
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619 $as_echo_n "checking for $ac_word... " >&6; }
9620 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 case $aros_kernel_cpp in
9624 [\\/]* | ?:[\\/]*)
9625 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629 for as_dir in $PATH
9631 IFS=$as_save_IFS
9632 test -z "$as_dir" && as_dir=.
9633 for ac_exec_ext in '' $ac_executable_extensions; do
9634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9635 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9637 break 2
9639 done
9640 done
9641 IFS=$as_save_IFS
9644 esac
9646 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9647 if test -n "$aros_kernel_cpp"; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9649 $as_echo "$aros_kernel_cpp" >&6; }
9650 else
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9652 $as_echo "no" >&6; }
9656 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9659 req_avail=yes
9660 if test "$aros_kernel_cpp" = ""; then
9661 req_avail=no
9663 if test "$aros_kernel_cpp" = "no"; then
9664 req_avail=no
9666 if test "$req_avail" = "no"; then
9667 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9670 if test "x$aros_kernel_cc" = "x"; then
9671 aros_kernel_cc=${kernel_tool_prefix}${CC}
9673 if test "${kernel_tool_version}" != ""; then
9674 if test "$aros_kernel_cc" != ""; then
9675 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9676 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9677 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9681 if test "$aros_kernel_cc" = ""; then
9682 if test "$cross_compiling" = "yes" ; then
9683 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9684 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9686 $as_echo_n "checking for $ac_word... " >&6; }
9687 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 case $aros_kernel_cc in
9691 [\\/]* | ?:[\\/]*)
9692 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9696 for as_dir in $PATH
9698 IFS=$as_save_IFS
9699 test -z "$as_dir" && as_dir=.
9700 for ac_exec_ext in '' $ac_executable_extensions; do
9701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9702 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9704 break 2
9706 done
9707 done
9708 IFS=$as_save_IFS
9711 esac
9713 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9714 if test -n "$aros_kernel_cc"; then
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9716 $as_echo "$aros_kernel_cc" >&6; }
9717 else
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719 $as_echo "no" >&6; }
9723 else
9724 if test "$GCC" = "yes"; then
9725 aros_gcc_cc=`$CC -print-prog-name=cc`
9726 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9727 set dummy `basename $aros_gcc_cc`; ac_word=$2
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9729 $as_echo_n "checking for $ac_word... " >&6; }
9730 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 case $aros_kernel_cc in
9734 [\\/]* | ?:[\\/]*)
9735 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739 for as_dir in `dirname $aros_gcc_cc`
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9745 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9747 break 2
9749 done
9750 done
9751 IFS=$as_save_IFS
9754 esac
9756 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9757 if test -n "$aros_kernel_cc"; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9759 $as_echo "$aros_kernel_cc" >&6; }
9760 else
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762 $as_echo "no" >&6; }
9767 if test "$aros_kernel_cc" = ""; then
9768 # Extract the first word of "cc", so it can be a program name with args.
9769 set dummy cc; ac_word=$2
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9771 $as_echo_n "checking for $ac_word... " >&6; }
9772 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 case $aros_kernel_cc in
9776 [\\/]* | ?:[\\/]*)
9777 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781 for as_dir in $PATH
9783 IFS=$as_save_IFS
9784 test -z "$as_dir" && as_dir=.
9785 for ac_exec_ext in '' $ac_executable_extensions; do
9786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9787 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9789 break 2
9791 done
9792 done
9793 IFS=$as_save_IFS
9796 esac
9798 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9799 if test -n "$aros_kernel_cc"; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9801 $as_echo "$aros_kernel_cc" >&6; }
9802 else
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; }
9810 else
9811 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9812 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9813 set dummy $aros_kernel_cc; ac_word=$2
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815 $as_echo_n "checking for $ac_word... " >&6; }
9816 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9817 $as_echo_n "(cached) " >&6
9818 else
9819 case $aros_kernel_cc in
9820 [\\/]* | ?:[\\/]*)
9821 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 for as_dir in $PATH
9827 IFS=$as_save_IFS
9828 test -z "$as_dir" && as_dir=.
9829 for ac_exec_ext in '' $ac_executable_extensions; do
9830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9831 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833 break 2
9835 done
9836 done
9837 IFS=$as_save_IFS
9840 esac
9842 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9843 if test -n "$aros_kernel_cc"; then
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9845 $as_echo "$aros_kernel_cc" >&6; }
9846 else
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848 $as_echo "no" >&6; }
9852 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9855 req_avail=yes
9856 if test "$aros_kernel_cc" = ""; then
9857 req_avail=no
9859 if test "$aros_kernel_cc" = "no"; then
9860 req_avail=no
9862 if test "$req_avail" = "no"; then
9863 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9866 if test "x$aros_kernel_cxx" = "x"; then
9867 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9869 if test "${kernel_tool_version}" != ""; then
9870 if test "$aros_kernel_cxx" != ""; then
9871 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9872 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9873 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9877 if test "$aros_kernel_cxx" = ""; then
9878 if test "$cross_compiling" = "yes" ; then
9879 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9880 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9882 $as_echo_n "checking for $ac_word... " >&6; }
9883 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 case $aros_kernel_cxx in
9887 [\\/]* | ?:[\\/]*)
9888 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9892 for as_dir in $PATH
9894 IFS=$as_save_IFS
9895 test -z "$as_dir" && as_dir=.
9896 for ac_exec_ext in '' $ac_executable_extensions; do
9897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9898 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 break 2
9902 done
9903 done
9904 IFS=$as_save_IFS
9907 esac
9909 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9910 if test -n "$aros_kernel_cxx"; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9912 $as_echo "$aros_kernel_cxx" >&6; }
9913 else
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915 $as_echo "no" >&6; }
9919 else
9920 if test "$GCC" = "yes"; then
9921 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9922 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9923 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925 $as_echo_n "checking for $ac_word... " >&6; }
9926 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 case $aros_kernel_cxx in
9930 [\\/]* | ?:[\\/]*)
9931 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9935 for as_dir in `dirname $aros_gcc_cxx`
9937 IFS=$as_save_IFS
9938 test -z "$as_dir" && as_dir=.
9939 for ac_exec_ext in '' $ac_executable_extensions; do
9940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9941 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9943 break 2
9945 done
9946 done
9947 IFS=$as_save_IFS
9950 esac
9952 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9953 if test -n "$aros_kernel_cxx"; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9955 $as_echo "$aros_kernel_cxx" >&6; }
9956 else
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958 $as_echo "no" >&6; }
9963 if test "$aros_kernel_cxx" = ""; then
9964 # Extract the first word of "cxx", so it can be a program name with args.
9965 set dummy cxx; ac_word=$2
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967 $as_echo_n "checking for $ac_word... " >&6; }
9968 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 case $aros_kernel_cxx in
9972 [\\/]* | ?:[\\/]*)
9973 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977 for as_dir in $PATH
9979 IFS=$as_save_IFS
9980 test -z "$as_dir" && as_dir=.
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9983 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9985 break 2
9987 done
9988 done
9989 IFS=$as_save_IFS
9992 esac
9994 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9995 if test -n "$aros_kernel_cxx"; then
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9997 $as_echo "$aros_kernel_cxx" >&6; }
9998 else
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000 $as_echo "no" >&6; }
10006 else
10007 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10008 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10009 set dummy $aros_kernel_cxx; ac_word=$2
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011 $as_echo_n "checking for $ac_word... " >&6; }
10012 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 case $aros_kernel_cxx in
10016 [\\/]* | ?:[\\/]*)
10017 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in $PATH
10023 IFS=$as_save_IFS
10024 test -z "$as_dir" && as_dir=.
10025 for ac_exec_ext in '' $ac_executable_extensions; do
10026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10027 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029 break 2
10031 done
10032 done
10033 IFS=$as_save_IFS
10036 esac
10038 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10039 if test -n "$aros_kernel_cxx"; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10041 $as_echo "$aros_kernel_cxx" >&6; }
10042 else
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044 $as_echo "no" >&6; }
10048 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10051 # If it's set, make sure it's really there
10052 if test "x$aros_kernel_cxx" != "x" ; then
10053 req_avail=yes
10054 if test "$aros_kernel_cxx" = ""; then
10055 req_avail=no
10057 if test "$aros_kernel_cxx" = "no"; then
10058 req_avail=no
10060 if test "$req_avail" = "no"; then
10061 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10065 if test "$aros_kernel_ld" = ""; then
10066 if test "$cross_compiling" = "yes" ; then
10067 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10068 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10070 $as_echo_n "checking for $ac_word... " >&6; }
10071 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10072 $as_echo_n "(cached) " >&6
10073 else
10074 case $aros_kernel_ld in
10075 [\\/]* | ?:[\\/]*)
10076 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080 for as_dir in $PATH
10082 IFS=$as_save_IFS
10083 test -z "$as_dir" && as_dir=.
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10086 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10088 break 2
10090 done
10091 done
10092 IFS=$as_save_IFS
10095 esac
10097 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10098 if test -n "$aros_kernel_ld"; then
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10100 $as_echo "$aros_kernel_ld" >&6; }
10101 else
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 $as_echo "no" >&6; }
10107 else
10108 if test "$GCC" = "yes"; then
10109 aros_gcc_ld=`$CC -print-prog-name=ld`
10110 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10111 set dummy `basename $aros_gcc_ld`; ac_word=$2
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10113 $as_echo_n "checking for $ac_word... " >&6; }
10114 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10115 $as_echo_n "(cached) " >&6
10116 else
10117 case $aros_kernel_ld in
10118 [\\/]* | ?:[\\/]*)
10119 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123 for as_dir in `dirname $aros_gcc_ld`
10125 IFS=$as_save_IFS
10126 test -z "$as_dir" && as_dir=.
10127 for ac_exec_ext in '' $ac_executable_extensions; do
10128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10129 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10131 break 2
10133 done
10134 done
10135 IFS=$as_save_IFS
10138 esac
10140 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10141 if test -n "$aros_kernel_ld"; then
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10143 $as_echo "$aros_kernel_ld" >&6; }
10144 else
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10146 $as_echo "no" >&6; }
10151 if test "$aros_kernel_ld" = ""; then
10152 # Extract the first word of "ld", so it can be a program name with args.
10153 set dummy ld; ac_word=$2
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10155 $as_echo_n "checking for $ac_word... " >&6; }
10156 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10157 $as_echo_n "(cached) " >&6
10158 else
10159 case $aros_kernel_ld in
10160 [\\/]* | ?:[\\/]*)
10161 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10165 for as_dir in $PATH
10167 IFS=$as_save_IFS
10168 test -z "$as_dir" && as_dir=.
10169 for ac_exec_ext in '' $ac_executable_extensions; do
10170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10171 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10173 break 2
10175 done
10176 done
10177 IFS=$as_save_IFS
10180 esac
10182 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10183 if test -n "$aros_kernel_ld"; then
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10185 $as_echo "$aros_kernel_ld" >&6; }
10186 else
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188 $as_echo "no" >&6; }
10194 else
10195 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10196 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10197 set dummy $aros_kernel_ld; ac_word=$2
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199 $as_echo_n "checking for $ac_word... " >&6; }
10200 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10201 $as_echo_n "(cached) " >&6
10202 else
10203 case $aros_kernel_ld in
10204 [\\/]* | ?:[\\/]*)
10205 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in $PATH
10211 IFS=$as_save_IFS
10212 test -z "$as_dir" && as_dir=.
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10215 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 break 2
10219 done
10220 done
10221 IFS=$as_save_IFS
10224 esac
10226 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10227 if test -n "$aros_kernel_ld"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10229 $as_echo "$aros_kernel_ld" >&6; }
10230 else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10236 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10239 req_avail=yes
10240 if test "$aros_kernel_ld" = ""; then
10241 req_avail=no
10243 if test "$aros_kernel_ld" = "no"; then
10244 req_avail=no
10246 if test "$req_avail" = "no"; then
10247 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10250 if test "$aros_kernel_as" = ""; then
10251 if test "$cross_compiling" = "yes" ; then
10252 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10253 set dummy ${kernel_tool_prefix}as; ac_word=$2
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10255 $as_echo_n "checking for $ac_word... " >&6; }
10256 if ${ac_cv_path_aros_kernel_as+:} false; then :
10257 $as_echo_n "(cached) " >&6
10258 else
10259 case $aros_kernel_as in
10260 [\\/]* | ?:[\\/]*)
10261 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10265 for as_dir in $PATH
10267 IFS=$as_save_IFS
10268 test -z "$as_dir" && as_dir=.
10269 for ac_exec_ext in '' $ac_executable_extensions; do
10270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10271 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10273 break 2
10275 done
10276 done
10277 IFS=$as_save_IFS
10280 esac
10282 aros_kernel_as=$ac_cv_path_aros_kernel_as
10283 if test -n "$aros_kernel_as"; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10285 $as_echo "$aros_kernel_as" >&6; }
10286 else
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288 $as_echo "no" >&6; }
10292 else
10293 if test "$GCC" = "yes"; then
10294 aros_gcc_as=`$CC -print-prog-name=as`
10295 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10296 set dummy `basename $aros_gcc_as`; ac_word=$2
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10298 $as_echo_n "checking for $ac_word... " >&6; }
10299 if ${ac_cv_path_aros_kernel_as+:} false; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 case $aros_kernel_as in
10303 [\\/]* | ?:[\\/]*)
10304 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10308 for as_dir in `dirname $aros_gcc_as`
10310 IFS=$as_save_IFS
10311 test -z "$as_dir" && as_dir=.
10312 for ac_exec_ext in '' $ac_executable_extensions; do
10313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10314 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10316 break 2
10318 done
10319 done
10320 IFS=$as_save_IFS
10323 esac
10325 aros_kernel_as=$ac_cv_path_aros_kernel_as
10326 if test -n "$aros_kernel_as"; then
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10328 $as_echo "$aros_kernel_as" >&6; }
10329 else
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331 $as_echo "no" >&6; }
10336 if test "$aros_kernel_as" = ""; then
10337 # Extract the first word of "as", so it can be a program name with args.
10338 set dummy as; ac_word=$2
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10340 $as_echo_n "checking for $ac_word... " >&6; }
10341 if ${ac_cv_path_aros_kernel_as+:} false; then :
10342 $as_echo_n "(cached) " >&6
10343 else
10344 case $aros_kernel_as in
10345 [\\/]* | ?:[\\/]*)
10346 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350 for as_dir in $PATH
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10356 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10358 break 2
10360 done
10361 done
10362 IFS=$as_save_IFS
10365 esac
10367 aros_kernel_as=$ac_cv_path_aros_kernel_as
10368 if test -n "$aros_kernel_as"; then
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10370 $as_echo "$aros_kernel_as" >&6; }
10371 else
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }
10379 else
10380 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10381 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10382 set dummy $aros_kernel_as; ac_word=$2
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10384 $as_echo_n "checking for $ac_word... " >&6; }
10385 if ${ac_cv_path_aros_kernel_as+:} false; then :
10386 $as_echo_n "(cached) " >&6
10387 else
10388 case $aros_kernel_as in
10389 [\\/]* | ?:[\\/]*)
10390 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10394 for as_dir in $PATH
10396 IFS=$as_save_IFS
10397 test -z "$as_dir" && as_dir=.
10398 for ac_exec_ext in '' $ac_executable_extensions; do
10399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10400 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10402 break 2
10404 done
10405 done
10406 IFS=$as_save_IFS
10409 esac
10411 aros_kernel_as=$ac_cv_path_aros_kernel_as
10412 if test -n "$aros_kernel_as"; then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10414 $as_echo "$aros_kernel_as" >&6; }
10415 else
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10417 $as_echo "no" >&6; }
10421 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10424 req_avail=yes
10425 if test "$aros_kernel_as" = ""; then
10426 req_avail=no
10428 if test "$aros_kernel_as" = "no"; then
10429 req_avail=no
10431 if test "$req_avail" = "no"; then
10432 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10435 if test "$aros_kernel_ar" = ""; then
10436 if test "$cross_compiling" = "yes" ; then
10437 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10438 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10440 $as_echo_n "checking for $ac_word... " >&6; }
10441 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 case $aros_kernel_ar in
10445 [\\/]* | ?:[\\/]*)
10446 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10452 IFS=$as_save_IFS
10453 test -z "$as_dir" && as_dir=.
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10456 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458 break 2
10460 done
10461 done
10462 IFS=$as_save_IFS
10465 esac
10467 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10468 if test -n "$aros_kernel_ar"; then
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10470 $as_echo "$aros_kernel_ar" >&6; }
10471 else
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473 $as_echo "no" >&6; }
10477 else
10478 if test "$GCC" = "yes"; then
10479 aros_gcc_ar=`$CC -print-prog-name=ar`
10480 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10481 set dummy `basename $aros_gcc_ar`; ac_word=$2
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483 $as_echo_n "checking for $ac_word... " >&6; }
10484 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 case $aros_kernel_ar in
10488 [\\/]* | ?:[\\/]*)
10489 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493 for as_dir in `dirname $aros_gcc_ar`
10495 IFS=$as_save_IFS
10496 test -z "$as_dir" && as_dir=.
10497 for ac_exec_ext in '' $ac_executable_extensions; do
10498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10499 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10501 break 2
10503 done
10504 done
10505 IFS=$as_save_IFS
10508 esac
10510 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10511 if test -n "$aros_kernel_ar"; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10513 $as_echo "$aros_kernel_ar" >&6; }
10514 else
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516 $as_echo "no" >&6; }
10521 if test "$aros_kernel_ar" = ""; then
10522 # Extract the first word of "ar", so it can be a program name with args.
10523 set dummy ar; ac_word=$2
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10525 $as_echo_n "checking for $ac_word... " >&6; }
10526 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10527 $as_echo_n "(cached) " >&6
10528 else
10529 case $aros_kernel_ar in
10530 [\\/]* | ?:[\\/]*)
10531 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535 for as_dir in $PATH
10537 IFS=$as_save_IFS
10538 test -z "$as_dir" && as_dir=.
10539 for ac_exec_ext in '' $ac_executable_extensions; do
10540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10541 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543 break 2
10545 done
10546 done
10547 IFS=$as_save_IFS
10550 esac
10552 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10553 if test -n "$aros_kernel_ar"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10555 $as_echo "$aros_kernel_ar" >&6; }
10556 else
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10564 else
10565 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10566 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10567 set dummy $aros_kernel_ar; ac_word=$2
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10569 $as_echo_n "checking for $ac_word... " >&6; }
10570 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10571 $as_echo_n "(cached) " >&6
10572 else
10573 case $aros_kernel_ar in
10574 [\\/]* | ?:[\\/]*)
10575 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579 for as_dir in $PATH
10581 IFS=$as_save_IFS
10582 test -z "$as_dir" && as_dir=.
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10585 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10587 break 2
10589 done
10590 done
10591 IFS=$as_save_IFS
10594 esac
10596 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10597 if test -n "$aros_kernel_ar"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10599 $as_echo "$aros_kernel_ar" >&6; }
10600 else
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10606 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10609 req_avail=yes
10610 if test "$aros_kernel_ar" = ""; then
10611 req_avail=no
10613 if test "$aros_kernel_ar" = "no"; then
10614 req_avail=no
10616 if test "$req_avail" = "no"; then
10617 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10620 if test "$aros_kernel_ranlib" = ""; then
10621 if test "$cross_compiling" = "yes" ; then
10622 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10623 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10625 $as_echo_n "checking for $ac_word... " >&6; }
10626 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 case $aros_kernel_ranlib in
10630 [\\/]* | ?:[\\/]*)
10631 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635 for as_dir in $PATH
10637 IFS=$as_save_IFS
10638 test -z "$as_dir" && as_dir=.
10639 for ac_exec_ext in '' $ac_executable_extensions; do
10640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10641 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10643 break 2
10645 done
10646 done
10647 IFS=$as_save_IFS
10650 esac
10652 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10653 if test -n "$aros_kernel_ranlib"; then
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10655 $as_echo "$aros_kernel_ranlib" >&6; }
10656 else
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658 $as_echo "no" >&6; }
10662 else
10663 if test "$GCC" = "yes"; then
10664 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10665 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10666 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10668 $as_echo_n "checking for $ac_word... " >&6; }
10669 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10672 case $aros_kernel_ranlib in
10673 [\\/]* | ?:[\\/]*)
10674 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678 for as_dir in `dirname $aros_gcc_ranlib`
10680 IFS=$as_save_IFS
10681 test -z "$as_dir" && as_dir=.
10682 for ac_exec_ext in '' $ac_executable_extensions; do
10683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10684 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10686 break 2
10688 done
10689 done
10690 IFS=$as_save_IFS
10693 esac
10695 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10696 if test -n "$aros_kernel_ranlib"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10698 $as_echo "$aros_kernel_ranlib" >&6; }
10699 else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10706 if test "$aros_kernel_ranlib" = ""; then
10707 # Extract the first word of "ranlib", so it can be a program name with args.
10708 set dummy ranlib; ac_word=$2
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10710 $as_echo_n "checking for $ac_word... " >&6; }
10711 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10712 $as_echo_n "(cached) " >&6
10713 else
10714 case $aros_kernel_ranlib in
10715 [\\/]* | ?:[\\/]*)
10716 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720 for as_dir in $PATH
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
10724 for ac_exec_ext in '' $ac_executable_extensions; do
10725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10726 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 break 2
10730 done
10731 done
10732 IFS=$as_save_IFS
10735 esac
10737 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10738 if test -n "$aros_kernel_ranlib"; then
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10740 $as_echo "$aros_kernel_ranlib" >&6; }
10741 else
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10749 else
10750 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10751 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10752 set dummy $aros_kernel_ranlib; ac_word=$2
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754 $as_echo_n "checking for $ac_word... " >&6; }
10755 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 case $aros_kernel_ranlib in
10759 [\\/]* | ?:[\\/]*)
10760 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764 for as_dir in $PATH
10766 IFS=$as_save_IFS
10767 test -z "$as_dir" && as_dir=.
10768 for ac_exec_ext in '' $ac_executable_extensions; do
10769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10770 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772 break 2
10774 done
10775 done
10776 IFS=$as_save_IFS
10779 esac
10781 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10782 if test -n "$aros_kernel_ranlib"; then
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10784 $as_echo "$aros_kernel_ranlib" >&6; }
10785 else
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787 $as_echo "no" >&6; }
10791 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10794 req_avail=yes
10795 if test "$aros_kernel_ranlib" = ""; then
10796 req_avail=no
10798 if test "$aros_kernel_ranlib" = "no"; then
10799 req_avail=no
10801 if test "$req_avail" = "no"; then
10802 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10805 if test "$aros_kernel_nm" = ""; then
10806 if test "$cross_compiling" = "yes" ; then
10807 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10808 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10810 $as_echo_n "checking for $ac_word... " >&6; }
10811 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814 case $aros_kernel_nm in
10815 [\\/]* | ?:[\\/]*)
10816 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820 for as_dir in $PATH
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10826 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10830 done
10831 done
10832 IFS=$as_save_IFS
10835 esac
10837 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10838 if test -n "$aros_kernel_nm"; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10840 $as_echo "$aros_kernel_nm" >&6; }
10841 else
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10843 $as_echo "no" >&6; }
10847 else
10848 if test "$GCC" = "yes"; then
10849 aros_gcc_nm=`$CC -print-prog-name=nm`
10850 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10851 set dummy `basename $aros_gcc_nm`; ac_word=$2
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10853 $as_echo_n "checking for $ac_word... " >&6; }
10854 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10855 $as_echo_n "(cached) " >&6
10856 else
10857 case $aros_kernel_nm in
10858 [\\/]* | ?:[\\/]*)
10859 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863 for as_dir in `dirname $aros_gcc_nm`
10865 IFS=$as_save_IFS
10866 test -z "$as_dir" && as_dir=.
10867 for ac_exec_ext in '' $ac_executable_extensions; do
10868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10869 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10871 break 2
10873 done
10874 done
10875 IFS=$as_save_IFS
10878 esac
10880 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10881 if test -n "$aros_kernel_nm"; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10883 $as_echo "$aros_kernel_nm" >&6; }
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886 $as_echo "no" >&6; }
10891 if test "$aros_kernel_nm" = ""; then
10892 # Extract the first word of "nm", so it can be a program name with args.
10893 set dummy nm; ac_word=$2
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10895 $as_echo_n "checking for $ac_word... " >&6; }
10896 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 case $aros_kernel_nm in
10900 [\\/]* | ?:[\\/]*)
10901 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10905 for as_dir in $PATH
10907 IFS=$as_save_IFS
10908 test -z "$as_dir" && as_dir=.
10909 for ac_exec_ext in '' $ac_executable_extensions; do
10910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10911 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10913 break 2
10915 done
10916 done
10917 IFS=$as_save_IFS
10920 esac
10922 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10923 if test -n "$aros_kernel_nm"; then
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10925 $as_echo "$aros_kernel_nm" >&6; }
10926 else
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928 $as_echo "no" >&6; }
10934 else
10935 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
10936 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10937 set dummy $aros_kernel_nm; ac_word=$2
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10939 $as_echo_n "checking for $ac_word... " >&6; }
10940 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 case $aros_kernel_nm in
10944 [\\/]* | ?:[\\/]*)
10945 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10949 for as_dir in $PATH
10951 IFS=$as_save_IFS
10952 test -z "$as_dir" && as_dir=.
10953 for ac_exec_ext in '' $ac_executable_extensions; do
10954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10955 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10957 break 2
10959 done
10960 done
10961 IFS=$as_save_IFS
10964 esac
10966 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10967 if test -n "$aros_kernel_nm"; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10969 $as_echo "$aros_kernel_nm" >&6; }
10970 else
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10976 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
10979 req_avail=yes
10980 if test "$aros_kernel_nm" = ""; then
10981 req_avail=no
10983 if test "$aros_kernel_nm" = "no"; then
10984 req_avail=no
10986 if test "$req_avail" = "no"; then
10987 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10990 if test "$aros_kernel_strip" = ""; then
10991 if test "$cross_compiling" = "yes" ; then
10992 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10993 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995 $as_echo_n "checking for $ac_word... " >&6; }
10996 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10997 $as_echo_n "(cached) " >&6
10998 else
10999 case $aros_kernel_strip in
11000 [\\/]* | ?:[\\/]*)
11001 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005 for as_dir in $PATH
11007 IFS=$as_save_IFS
11008 test -z "$as_dir" && as_dir=.
11009 for ac_exec_ext in '' $ac_executable_extensions; do
11010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11011 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11013 break 2
11015 done
11016 done
11017 IFS=$as_save_IFS
11020 esac
11022 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11023 if test -n "$aros_kernel_strip"; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11025 $as_echo "$aros_kernel_strip" >&6; }
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 $as_echo "no" >&6; }
11032 else
11033 if test "$GCC" = "yes"; then
11034 aros_gcc_strip=`$CC -print-prog-name=strip`
11035 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11036 set dummy `basename $aros_gcc_strip`; ac_word=$2
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11038 $as_echo_n "checking for $ac_word... " >&6; }
11039 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11040 $as_echo_n "(cached) " >&6
11041 else
11042 case $aros_kernel_strip in
11043 [\\/]* | ?:[\\/]*)
11044 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11048 for as_dir in `dirname $aros_gcc_strip`
11050 IFS=$as_save_IFS
11051 test -z "$as_dir" && as_dir=.
11052 for ac_exec_ext in '' $ac_executable_extensions; do
11053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11054 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11056 break 2
11058 done
11059 done
11060 IFS=$as_save_IFS
11063 esac
11065 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11066 if test -n "$aros_kernel_strip"; then
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11068 $as_echo "$aros_kernel_strip" >&6; }
11069 else
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071 $as_echo "no" >&6; }
11076 if test "$aros_kernel_strip" = ""; then
11077 # Extract the first word of "strip", so it can be a program name with args.
11078 set dummy strip; ac_word=$2
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11080 $as_echo_n "checking for $ac_word... " >&6; }
11081 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11082 $as_echo_n "(cached) " >&6
11083 else
11084 case $aros_kernel_strip in
11085 [\\/]* | ?:[\\/]*)
11086 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11090 for as_dir in $PATH
11092 IFS=$as_save_IFS
11093 test -z "$as_dir" && as_dir=.
11094 for ac_exec_ext in '' $ac_executable_extensions; do
11095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11096 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11098 break 2
11100 done
11101 done
11102 IFS=$as_save_IFS
11105 esac
11107 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11108 if test -n "$aros_kernel_strip"; then
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11110 $as_echo "$aros_kernel_strip" >&6; }
11111 else
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113 $as_echo "no" >&6; }
11119 else
11120 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11121 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11122 set dummy $aros_kernel_strip; ac_word=$2
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124 $as_echo_n "checking for $ac_word... " >&6; }
11125 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11126 $as_echo_n "(cached) " >&6
11127 else
11128 case $aros_kernel_strip in
11129 [\\/]* | ?:[\\/]*)
11130 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11142 break 2
11144 done
11145 done
11146 IFS=$as_save_IFS
11149 esac
11151 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11152 if test -n "$aros_kernel_strip"; then
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11154 $as_echo "$aros_kernel_strip" >&6; }
11155 else
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11161 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11164 req_avail=yes
11165 if test "$aros_kernel_strip" = ""; then
11166 req_avail=no
11168 if test "$aros_kernel_strip" = "no"; then
11169 req_avail=no
11171 if test "$req_avail" = "no"; then
11172 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11175 # Objcopy and objdump are not required for the kernel
11176 # toolchain on many architectures.
11177 # So we'll look for them, but not make them strictly required.
11179 if test "$aros_kernel_objcopy" = ""; then
11180 if test "$cross_compiling" = "yes" ; then
11181 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11182 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11184 $as_echo_n "checking for $ac_word... " >&6; }
11185 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11186 $as_echo_n "(cached) " >&6
11187 else
11188 case $aros_kernel_objcopy in
11189 [\\/]* | ?:[\\/]*)
11190 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194 for as_dir in $PATH
11196 IFS=$as_save_IFS
11197 test -z "$as_dir" && as_dir=.
11198 for ac_exec_ext in '' $ac_executable_extensions; do
11199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11200 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11202 break 2
11204 done
11205 done
11206 IFS=$as_save_IFS
11209 esac
11211 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11212 if test -n "$aros_kernel_objcopy"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11214 $as_echo "$aros_kernel_objcopy" >&6; }
11215 else
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217 $as_echo "no" >&6; }
11221 else
11222 if test "$GCC" = "yes"; then
11223 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11224 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11225 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11227 $as_echo_n "checking for $ac_word... " >&6; }
11228 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11229 $as_echo_n "(cached) " >&6
11230 else
11231 case $aros_kernel_objcopy in
11232 [\\/]* | ?:[\\/]*)
11233 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237 for as_dir in `dirname $aros_gcc_objcopy`
11239 IFS=$as_save_IFS
11240 test -z "$as_dir" && as_dir=.
11241 for ac_exec_ext in '' $ac_executable_extensions; do
11242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11243 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 break 2
11247 done
11248 done
11249 IFS=$as_save_IFS
11252 esac
11254 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11255 if test -n "$aros_kernel_objcopy"; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11257 $as_echo "$aros_kernel_objcopy" >&6; }
11258 else
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260 $as_echo "no" >&6; }
11265 if test "$aros_kernel_objcopy" = ""; then
11266 # Extract the first word of "objcopy", so it can be a program name with args.
11267 set dummy objcopy; ac_word=$2
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11269 $as_echo_n "checking for $ac_word... " >&6; }
11270 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 case $aros_kernel_objcopy in
11274 [\\/]* | ?:[\\/]*)
11275 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11279 for as_dir in $PATH
11281 IFS=$as_save_IFS
11282 test -z "$as_dir" && as_dir=.
11283 for ac_exec_ext in '' $ac_executable_extensions; do
11284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11285 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11287 break 2
11289 done
11290 done
11291 IFS=$as_save_IFS
11294 esac
11296 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11297 if test -n "$aros_kernel_objcopy"; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11299 $as_echo "$aros_kernel_objcopy" >&6; }
11300 else
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302 $as_echo "no" >&6; }
11308 else
11309 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11310 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11311 set dummy $aros_kernel_objcopy; ac_word=$2
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11313 $as_echo_n "checking for $ac_word... " >&6; }
11314 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 case $aros_kernel_objcopy in
11318 [\\/]* | ?:[\\/]*)
11319 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11323 for as_dir in $PATH
11325 IFS=$as_save_IFS
11326 test -z "$as_dir" && as_dir=.
11327 for ac_exec_ext in '' $ac_executable_extensions; do
11328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11329 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11331 break 2
11333 done
11334 done
11335 IFS=$as_save_IFS
11338 esac
11340 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11341 if test -n "$aros_kernel_objcopy"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11343 $as_echo "$aros_kernel_objcopy" >&6; }
11344 else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11350 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11354 if test "$aros_kernel_objdump" = ""; then
11355 if test "$cross_compiling" = "yes" ; then
11356 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11357 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11359 $as_echo_n "checking for $ac_word... " >&6; }
11360 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 case $aros_kernel_objdump in
11364 [\\/]* | ?:[\\/]*)
11365 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369 for as_dir in $PATH
11371 IFS=$as_save_IFS
11372 test -z "$as_dir" && as_dir=.
11373 for ac_exec_ext in '' $ac_executable_extensions; do
11374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11375 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11377 break 2
11379 done
11380 done
11381 IFS=$as_save_IFS
11384 esac
11386 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11387 if test -n "$aros_kernel_objdump"; then
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11389 $as_echo "$aros_kernel_objdump" >&6; }
11390 else
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11392 $as_echo "no" >&6; }
11396 else
11397 if test "$GCC" = "yes"; then
11398 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11399 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11400 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11402 $as_echo_n "checking for $ac_word... " >&6; }
11403 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 case $aros_kernel_objdump in
11407 [\\/]* | ?:[\\/]*)
11408 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in `dirname $aros_gcc_objdump`
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11418 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11420 break 2
11422 done
11423 done
11424 IFS=$as_save_IFS
11427 esac
11429 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11430 if test -n "$aros_kernel_objdump"; then
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11432 $as_echo "$aros_kernel_objdump" >&6; }
11433 else
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11435 $as_echo "no" >&6; }
11440 if test "$aros_kernel_objdump" = ""; then
11441 # Extract the first word of "objdump", so it can be a program name with args.
11442 set dummy objdump; ac_word=$2
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11444 $as_echo_n "checking for $ac_word... " >&6; }
11445 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 case $aros_kernel_objdump in
11449 [\\/]* | ?:[\\/]*)
11450 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454 for as_dir in $PATH
11456 IFS=$as_save_IFS
11457 test -z "$as_dir" && as_dir=.
11458 for ac_exec_ext in '' $ac_executable_extensions; do
11459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11460 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11462 break 2
11464 done
11465 done
11466 IFS=$as_save_IFS
11469 esac
11471 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11472 if test -n "$aros_kernel_objdump"; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11474 $as_echo "$aros_kernel_objdump" >&6; }
11475 else
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11483 else
11484 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11485 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11486 set dummy $aros_kernel_objdump; ac_word=$2
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11488 $as_echo_n "checking for $ac_word... " >&6; }
11489 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 case $aros_kernel_objdump in
11493 [\\/]* | ?:[\\/]*)
11494 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11498 for as_dir in $PATH
11500 IFS=$as_save_IFS
11501 test -z "$as_dir" && as_dir=.
11502 for ac_exec_ext in '' $ac_executable_extensions; do
11503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11504 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11506 break 2
11508 done
11509 done
11510 IFS=$as_save_IFS
11513 esac
11515 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11516 if test -n "$aros_kernel_objdump"; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11518 $as_echo "$aros_kernel_objdump" >&6; }
11519 else
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11521 $as_echo "no" >&6; }
11525 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11528 if test "x${crosstools}" != "xyes" ; then
11529 req_avail=yes
11530 if test "$aros_kernel_objcopy" = ""; then
11531 req_avail=no
11533 if test "$aros_kernel_objcopy" = "no"; then
11534 req_avail=no
11536 if test "$req_avail" = "no"; then
11537 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11539 req_avail=yes
11540 if test "$aros_kernel_objdump" = ""; then
11541 req_avail=no
11543 if test "$aros_kernel_objdump" = "no"; then
11544 req_avail=no
11546 if test "$req_avail" = "no"; then
11547 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11553 $as_echo_n "checking which target tools to use... " >&6; }
11554 if test "$aros_target_toolchain" = "yes"; then
11555 if test "$aros_toolchain" = "llvm" ; then
11556 msg_result="llvm"
11557 else
11558 msg_result=$target_tool_prefix
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11561 $as_echo "$msg_result" >&6; }
11562 # We are building AROS crosstools
11563 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11564 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11565 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11566 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11567 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11568 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11569 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11570 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11571 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11572 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11573 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11574 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11575 else
11576 # Determine whether AROS or ELF tools should be used
11577 if test "$aros_tool_prefix" = "none"; then
11578 aros_tool_prefix="${elf_tool_prefix}"
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11582 $as_echo "$aros_tool_prefix" >&6; }
11583 # We are *not* building AROS crosstools - use the AROS or ELF tools
11585 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11586 if test "$cross_compiling" = "yes" ; then
11587 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11588 set dummy ${target_tool_prefix}cpp; ac_word=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if ${ac_cv_path_orig_target_cpp+:} false; then :
11592 $as_echo_n "(cached) " >&6
11593 else
11594 case $orig_target_cpp in
11595 [\\/]* | ?:[\\/]*)
11596 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11606 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 break 2
11610 done
11611 done
11612 IFS=$as_save_IFS
11615 esac
11617 orig_target_cpp=$ac_cv_path_orig_target_cpp
11618 if test -n "$orig_target_cpp"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11620 $as_echo "$orig_target_cpp" >&6; }
11621 else
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11627 else
11628 if test "$GCC" = "yes"; then
11629 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11630 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11631 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 $as_echo_n "checking for $ac_word... " >&6; }
11634 if ${ac_cv_path_orig_target_cpp+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 case $orig_target_cpp in
11638 [\\/]* | ?:[\\/]*)
11639 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643 for as_dir in `dirname $aros_gcc_cpp`
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11649 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 break 2
11653 done
11654 done
11655 IFS=$as_save_IFS
11658 esac
11660 orig_target_cpp=$ac_cv_path_orig_target_cpp
11661 if test -n "$orig_target_cpp"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11663 $as_echo "$orig_target_cpp" >&6; }
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11671 if test "$orig_target_cpp" = ""; then
11672 # Extract the first word of "cpp", so it can be a program name with args.
11673 set dummy cpp; ac_word=$2
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11675 $as_echo_n "checking for $ac_word... " >&6; }
11676 if ${ac_cv_path_orig_target_cpp+:} false; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 case $orig_target_cpp in
11680 [\\/]* | ?:[\\/]*)
11681 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685 for as_dir in $PATH
11687 IFS=$as_save_IFS
11688 test -z "$as_dir" && as_dir=.
11689 for ac_exec_ext in '' $ac_executable_extensions; do
11690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11691 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 break 2
11695 done
11696 done
11697 IFS=$as_save_IFS
11700 esac
11702 orig_target_cpp=$ac_cv_path_orig_target_cpp
11703 if test -n "$orig_target_cpp"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11705 $as_echo "$orig_target_cpp" >&6; }
11706 else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11714 else
11715 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11716 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11717 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719 $as_echo_n "checking for $ac_word... " >&6; }
11720 if ${ac_cv_path_orig_target_cpp+:} false; then :
11721 $as_echo_n "(cached) " >&6
11722 else
11723 case $orig_target_cpp in
11724 [\\/]* | ?:[\\/]*)
11725 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11729 for as_dir in $PATH
11731 IFS=$as_save_IFS
11732 test -z "$as_dir" && as_dir=.
11733 for ac_exec_ext in '' $ac_executable_extensions; do
11734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11735 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11737 break 2
11739 done
11740 done
11741 IFS=$as_save_IFS
11744 esac
11746 orig_target_cpp=$ac_cv_path_orig_target_cpp
11747 if test -n "$orig_target_cpp"; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11749 $as_echo "$orig_target_cpp" >&6; }
11750 else
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11756 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11759 req_avail=yes
11760 if test "$orig_target_cpp" = ""; then
11761 req_avail=no
11763 if test "$orig_target_cpp" = "no"; then
11764 req_avail=no
11766 if test "$req_avail" = "no"; then
11767 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11770 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11771 if test "$cross_compiling" = "yes" ; then
11772 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11773 set dummy ${target_tool_prefix}gcc; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if ${ac_cv_path_orig_target_cc+:} false; then :
11777 $as_echo_n "(cached) " >&6
11778 else
11779 case $orig_target_cc in
11780 [\\/]* | ?:[\\/]*)
11781 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11787 IFS=$as_save_IFS
11788 test -z "$as_dir" && as_dir=.
11789 for ac_exec_ext in '' $ac_executable_extensions; do
11790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11791 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793 break 2
11795 done
11796 done
11797 IFS=$as_save_IFS
11800 esac
11802 orig_target_cc=$ac_cv_path_orig_target_cc
11803 if test -n "$orig_target_cc"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11805 $as_echo "$orig_target_cc" >&6; }
11806 else
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11812 else
11813 if test "$GCC" = "yes"; then
11814 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11815 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11816 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11818 $as_echo_n "checking for $ac_word... " >&6; }
11819 if ${ac_cv_path_orig_target_cc+:} false; then :
11820 $as_echo_n "(cached) " >&6
11821 else
11822 case $orig_target_cc in
11823 [\\/]* | ?:[\\/]*)
11824 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in `dirname $aros_gcc_gcc`
11830 IFS=$as_save_IFS
11831 test -z "$as_dir" && as_dir=.
11832 for ac_exec_ext in '' $ac_executable_extensions; do
11833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11834 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11836 break 2
11838 done
11839 done
11840 IFS=$as_save_IFS
11843 esac
11845 orig_target_cc=$ac_cv_path_orig_target_cc
11846 if test -n "$orig_target_cc"; then
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11848 $as_echo "$orig_target_cc" >&6; }
11849 else
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11856 if test "$orig_target_cc" = ""; then
11857 # Extract the first word of "gcc", so it can be a program name with args.
11858 set dummy gcc; ac_word=$2
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11860 $as_echo_n "checking for $ac_word... " >&6; }
11861 if ${ac_cv_path_orig_target_cc+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 case $orig_target_cc in
11865 [\\/]* | ?:[\\/]*)
11866 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11870 for as_dir in $PATH
11872 IFS=$as_save_IFS
11873 test -z "$as_dir" && as_dir=.
11874 for ac_exec_ext in '' $ac_executable_extensions; do
11875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11876 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11878 break 2
11880 done
11881 done
11882 IFS=$as_save_IFS
11885 esac
11887 orig_target_cc=$ac_cv_path_orig_target_cc
11888 if test -n "$orig_target_cc"; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11890 $as_echo "$orig_target_cc" >&6; }
11891 else
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11899 else
11900 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11901 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11902 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11904 $as_echo_n "checking for $ac_word... " >&6; }
11905 if ${ac_cv_path_orig_target_cc+:} false; then :
11906 $as_echo_n "(cached) " >&6
11907 else
11908 case $orig_target_cc in
11909 [\\/]* | ?:[\\/]*)
11910 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11914 for as_dir in $PATH
11916 IFS=$as_save_IFS
11917 test -z "$as_dir" && as_dir=.
11918 for ac_exec_ext in '' $ac_executable_extensions; do
11919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11920 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11922 break 2
11924 done
11925 done
11926 IFS=$as_save_IFS
11929 esac
11931 orig_target_cc=$ac_cv_path_orig_target_cc
11932 if test -n "$orig_target_cc"; then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11934 $as_echo "$orig_target_cc" >&6; }
11935 else
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937 $as_echo "no" >&6; }
11941 orig_target_cc="$orig_target_cc $ac_tool_optarg"
11944 req_avail=yes
11945 if test "$orig_target_cc" = ""; then
11946 req_avail=no
11948 if test "$orig_target_cc" = "no"; then
11949 req_avail=no
11951 if test "$req_avail" = "no"; then
11952 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11955 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11956 if test "$cross_compiling" = "yes" ; then
11957 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11958 set dummy ${target_tool_prefix}g++; ac_word=$2
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11960 $as_echo_n "checking for $ac_word... " >&6; }
11961 if ${ac_cv_path_orig_target_cxx+:} false; then :
11962 $as_echo_n "(cached) " >&6
11963 else
11964 case $orig_target_cxx in
11965 [\\/]* | ?:[\\/]*)
11966 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11970 for as_dir in $PATH
11972 IFS=$as_save_IFS
11973 test -z "$as_dir" && as_dir=.
11974 for ac_exec_ext in '' $ac_executable_extensions; do
11975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11976 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11978 break 2
11980 done
11981 done
11982 IFS=$as_save_IFS
11985 esac
11987 orig_target_cxx=$ac_cv_path_orig_target_cxx
11988 if test -n "$orig_target_cxx"; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11990 $as_echo "$orig_target_cxx" >&6; }
11991 else
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993 $as_echo "no" >&6; }
11997 else
11998 if test "$GCC" = "yes"; then
11999 aros_gcc_g++=`$CC -print-prog-name=g++`
12000 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12001 set dummy `basename $aros_gcc_g++`; ac_word=$2
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12003 $as_echo_n "checking for $ac_word... " >&6; }
12004 if ${ac_cv_path_orig_target_cxx+:} false; then :
12005 $as_echo_n "(cached) " >&6
12006 else
12007 case $orig_target_cxx in
12008 [\\/]* | ?:[\\/]*)
12009 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12013 for as_dir in `dirname $aros_gcc_g++`
12015 IFS=$as_save_IFS
12016 test -z "$as_dir" && as_dir=.
12017 for ac_exec_ext in '' $ac_executable_extensions; do
12018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12019 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12021 break 2
12023 done
12024 done
12025 IFS=$as_save_IFS
12028 esac
12030 orig_target_cxx=$ac_cv_path_orig_target_cxx
12031 if test -n "$orig_target_cxx"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12033 $as_echo "$orig_target_cxx" >&6; }
12034 else
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12041 if test "$orig_target_cxx" = ""; then
12042 # Extract the first word of "g++", so it can be a program name with args.
12043 set dummy g++; ac_word=$2
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12045 $as_echo_n "checking for $ac_word... " >&6; }
12046 if ${ac_cv_path_orig_target_cxx+:} false; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 case $orig_target_cxx in
12050 [\\/]* | ?:[\\/]*)
12051 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12057 IFS=$as_save_IFS
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12061 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12063 break 2
12065 done
12066 done
12067 IFS=$as_save_IFS
12070 esac
12072 orig_target_cxx=$ac_cv_path_orig_target_cxx
12073 if test -n "$orig_target_cxx"; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12075 $as_echo "$orig_target_cxx" >&6; }
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12084 else
12085 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12086 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12087 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12089 $as_echo_n "checking for $ac_word... " >&6; }
12090 if ${ac_cv_path_orig_target_cxx+:} false; then :
12091 $as_echo_n "(cached) " >&6
12092 else
12093 case $orig_target_cxx in
12094 [\\/]* | ?:[\\/]*)
12095 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12101 IFS=$as_save_IFS
12102 test -z "$as_dir" && as_dir=.
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12105 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12107 break 2
12109 done
12110 done
12111 IFS=$as_save_IFS
12114 esac
12116 orig_target_cxx=$ac_cv_path_orig_target_cxx
12117 if test -n "$orig_target_cxx"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12119 $as_echo "$orig_target_cxx" >&6; }
12120 else
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12126 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12129 req_avail=yes
12130 if test "$orig_target_cxx" = ""; then
12131 req_avail=no
12133 if test "$orig_target_cxx" = "no"; then
12134 req_avail=no
12136 if test "$req_avail" = "no"; then
12137 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12140 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12141 if test "$cross_compiling" = "yes" ; then
12142 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12143 set dummy ${target_tool_prefix}gcc; ac_word=$2
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145 $as_echo_n "checking for $ac_word... " >&6; }
12146 if ${ac_cv_path_orig_target_ld+:} false; then :
12147 $as_echo_n "(cached) " >&6
12148 else
12149 case $orig_target_ld in
12150 [\\/]* | ?:[\\/]*)
12151 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155 for as_dir in $PATH
12157 IFS=$as_save_IFS
12158 test -z "$as_dir" && as_dir=.
12159 for ac_exec_ext in '' $ac_executable_extensions; do
12160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12161 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12163 break 2
12165 done
12166 done
12167 IFS=$as_save_IFS
12170 esac
12172 orig_target_ld=$ac_cv_path_orig_target_ld
12173 if test -n "$orig_target_ld"; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12175 $as_echo "$orig_target_ld" >&6; }
12176 else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178 $as_echo "no" >&6; }
12182 else
12183 if test "$GCC" = "yes"; then
12184 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12185 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12186 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188 $as_echo_n "checking for $ac_word... " >&6; }
12189 if ${ac_cv_path_orig_target_ld+:} false; then :
12190 $as_echo_n "(cached) " >&6
12191 else
12192 case $orig_target_ld in
12193 [\\/]* | ?:[\\/]*)
12194 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198 for as_dir in `dirname $aros_gcc_gcc`
12200 IFS=$as_save_IFS
12201 test -z "$as_dir" && as_dir=.
12202 for ac_exec_ext in '' $ac_executable_extensions; do
12203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12204 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12206 break 2
12208 done
12209 done
12210 IFS=$as_save_IFS
12213 esac
12215 orig_target_ld=$ac_cv_path_orig_target_ld
12216 if test -n "$orig_target_ld"; then
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12218 $as_echo "$orig_target_ld" >&6; }
12219 else
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12221 $as_echo "no" >&6; }
12226 if test "$orig_target_ld" = ""; then
12227 # Extract the first word of "gcc", so it can be a program name with args.
12228 set dummy gcc; ac_word=$2
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12230 $as_echo_n "checking for $ac_word... " >&6; }
12231 if ${ac_cv_path_orig_target_ld+:} false; then :
12232 $as_echo_n "(cached) " >&6
12233 else
12234 case $orig_target_ld in
12235 [\\/]* | ?:[\\/]*)
12236 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12242 IFS=$as_save_IFS
12243 test -z "$as_dir" && as_dir=.
12244 for ac_exec_ext in '' $ac_executable_extensions; do
12245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12246 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248 break 2
12250 done
12251 done
12252 IFS=$as_save_IFS
12255 esac
12257 orig_target_ld=$ac_cv_path_orig_target_ld
12258 if test -n "$orig_target_ld"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12260 $as_echo "$orig_target_ld" >&6; }
12261 else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12269 else
12270 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12271 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12272 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274 $as_echo_n "checking for $ac_word... " >&6; }
12275 if ${ac_cv_path_orig_target_ld+:} false; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 case $orig_target_ld in
12279 [\\/]* | ?:[\\/]*)
12280 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284 for as_dir in $PATH
12286 IFS=$as_save_IFS
12287 test -z "$as_dir" && as_dir=.
12288 for ac_exec_ext in '' $ac_executable_extensions; do
12289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12290 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292 break 2
12294 done
12295 done
12296 IFS=$as_save_IFS
12299 esac
12301 orig_target_ld=$ac_cv_path_orig_target_ld
12302 if test -n "$orig_target_ld"; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12304 $as_echo "$orig_target_ld" >&6; }
12305 else
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12311 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12314 req_avail=yes
12315 if test "$orig_target_ld" = ""; then
12316 req_avail=no
12318 if test "$orig_target_ld" = "no"; then
12319 req_avail=no
12321 if test "$req_avail" = "no"; then
12322 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12325 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12326 if test "$cross_compiling" = "yes" ; then
12327 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12328 set dummy ${target_tool_prefix}as; ac_word=$2
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330 $as_echo_n "checking for $ac_word... " >&6; }
12331 if ${ac_cv_path_orig_target_as+:} false; then :
12332 $as_echo_n "(cached) " >&6
12333 else
12334 case $orig_target_as in
12335 [\\/]* | ?:[\\/]*)
12336 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340 for as_dir in $PATH
12342 IFS=$as_save_IFS
12343 test -z "$as_dir" && as_dir=.
12344 for ac_exec_ext in '' $ac_executable_extensions; do
12345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12346 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12348 break 2
12350 done
12351 done
12352 IFS=$as_save_IFS
12355 esac
12357 orig_target_as=$ac_cv_path_orig_target_as
12358 if test -n "$orig_target_as"; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12360 $as_echo "$orig_target_as" >&6; }
12361 else
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12367 else
12368 if test "$GCC" = "yes"; then
12369 aros_gcc_as=`$CC -print-prog-name=as`
12370 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12371 set dummy `basename $aros_gcc_as`; ac_word=$2
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12373 $as_echo_n "checking for $ac_word... " >&6; }
12374 if ${ac_cv_path_orig_target_as+:} false; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 case $orig_target_as in
12378 [\\/]* | ?:[\\/]*)
12379 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in `dirname $aros_gcc_as`
12385 IFS=$as_save_IFS
12386 test -z "$as_dir" && as_dir=.
12387 for ac_exec_ext in '' $ac_executable_extensions; do
12388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12389 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12391 break 2
12393 done
12394 done
12395 IFS=$as_save_IFS
12398 esac
12400 orig_target_as=$ac_cv_path_orig_target_as
12401 if test -n "$orig_target_as"; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12403 $as_echo "$orig_target_as" >&6; }
12404 else
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12411 if test "$orig_target_as" = ""; then
12412 # Extract the first word of "as", so it can be a program name with args.
12413 set dummy as; ac_word=$2
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12415 $as_echo_n "checking for $ac_word... " >&6; }
12416 if ${ac_cv_path_orig_target_as+:} false; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 case $orig_target_as in
12420 [\\/]* | ?:[\\/]*)
12421 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12425 for as_dir in $PATH
12427 IFS=$as_save_IFS
12428 test -z "$as_dir" && as_dir=.
12429 for ac_exec_ext in '' $ac_executable_extensions; do
12430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12431 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12433 break 2
12435 done
12436 done
12437 IFS=$as_save_IFS
12440 esac
12442 orig_target_as=$ac_cv_path_orig_target_as
12443 if test -n "$orig_target_as"; then
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12445 $as_echo "$orig_target_as" >&6; }
12446 else
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448 $as_echo "no" >&6; }
12454 else
12455 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12456 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12457 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12459 $as_echo_n "checking for $ac_word... " >&6; }
12460 if ${ac_cv_path_orig_target_as+:} false; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 case $orig_target_as in
12464 [\\/]* | ?:[\\/]*)
12465 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $PATH
12471 IFS=$as_save_IFS
12472 test -z "$as_dir" && as_dir=.
12473 for ac_exec_ext in '' $ac_executable_extensions; do
12474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12475 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477 break 2
12479 done
12480 done
12481 IFS=$as_save_IFS
12484 esac
12486 orig_target_as=$ac_cv_path_orig_target_as
12487 if test -n "$orig_target_as"; then
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12489 $as_echo "$orig_target_as" >&6; }
12490 else
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492 $as_echo "no" >&6; }
12496 orig_target_as="$orig_target_as $ac_tool_optarg"
12499 req_avail=yes
12500 if test "$orig_target_as" = ""; then
12501 req_avail=no
12503 if test "$orig_target_as" = "no"; then
12504 req_avail=no
12506 if test "$req_avail" = "no"; then
12507 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12510 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12511 if test "$cross_compiling" = "yes" ; then
12512 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12513 set dummy ${target_tool_prefix}ar; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if ${ac_cv_path_orig_target_ar+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 case $orig_target_ar in
12520 [\\/]* | ?:[\\/]*)
12521 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12527 IFS=$as_save_IFS
12528 test -z "$as_dir" && as_dir=.
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12531 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12533 break 2
12535 done
12536 done
12537 IFS=$as_save_IFS
12540 esac
12542 orig_target_ar=$ac_cv_path_orig_target_ar
12543 if test -n "$orig_target_ar"; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12545 $as_echo "$orig_target_ar" >&6; }
12546 else
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12552 else
12553 if test "$GCC" = "yes"; then
12554 aros_gcc_ar=`$CC -print-prog-name=ar`
12555 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12556 set dummy `basename $aros_gcc_ar`; ac_word=$2
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558 $as_echo_n "checking for $ac_word... " >&6; }
12559 if ${ac_cv_path_orig_target_ar+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 case $orig_target_ar in
12563 [\\/]* | ?:[\\/]*)
12564 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in `dirname $aros_gcc_ar`
12570 IFS=$as_save_IFS
12571 test -z "$as_dir" && as_dir=.
12572 for ac_exec_ext in '' $ac_executable_extensions; do
12573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12574 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12576 break 2
12578 done
12579 done
12580 IFS=$as_save_IFS
12583 esac
12585 orig_target_ar=$ac_cv_path_orig_target_ar
12586 if test -n "$orig_target_ar"; then
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12588 $as_echo "$orig_target_ar" >&6; }
12589 else
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 $as_echo "no" >&6; }
12596 if test "$orig_target_ar" = ""; then
12597 # Extract the first word of "ar", so it can be a program name with args.
12598 set dummy ar; ac_word=$2
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600 $as_echo_n "checking for $ac_word... " >&6; }
12601 if ${ac_cv_path_orig_target_ar+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 case $orig_target_ar in
12605 [\\/]* | ?:[\\/]*)
12606 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610 for as_dir in $PATH
12612 IFS=$as_save_IFS
12613 test -z "$as_dir" && as_dir=.
12614 for ac_exec_ext in '' $ac_executable_extensions; do
12615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12616 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 break 2
12620 done
12621 done
12622 IFS=$as_save_IFS
12625 esac
12627 orig_target_ar=$ac_cv_path_orig_target_ar
12628 if test -n "$orig_target_ar"; then
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12630 $as_echo "$orig_target_ar" >&6; }
12631 else
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633 $as_echo "no" >&6; }
12639 else
12640 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12641 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12642 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644 $as_echo_n "checking for $ac_word... " >&6; }
12645 if ${ac_cv_path_orig_target_ar+:} false; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 case $orig_target_ar in
12649 [\\/]* | ?:[\\/]*)
12650 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12660 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12664 done
12665 done
12666 IFS=$as_save_IFS
12669 esac
12671 orig_target_ar=$ac_cv_path_orig_target_ar
12672 if test -n "$orig_target_ar"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12674 $as_echo "$orig_target_ar" >&6; }
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12681 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12684 req_avail=yes
12685 if test "$orig_target_ar" = ""; then
12686 req_avail=no
12688 if test "$orig_target_ar" = "no"; then
12689 req_avail=no
12691 if test "$req_avail" = "no"; then
12692 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12695 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12696 if test "$cross_compiling" = "yes" ; then
12697 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12698 set dummy ${target_tool_prefix}ar; ac_word=$2
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700 $as_echo_n "checking for $ac_word... " >&6; }
12701 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 case $orig_target_ranlib in
12705 [\\/]* | ?:[\\/]*)
12706 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710 for as_dir in $PATH
12712 IFS=$as_save_IFS
12713 test -z "$as_dir" && as_dir=.
12714 for ac_exec_ext in '' $ac_executable_extensions; do
12715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12716 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12718 break 2
12720 done
12721 done
12722 IFS=$as_save_IFS
12725 esac
12727 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12728 if test -n "$orig_target_ranlib"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12730 $as_echo "$orig_target_ranlib" >&6; }
12731 else
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12737 else
12738 if test "$GCC" = "yes"; then
12739 aros_gcc_ar=`$CC -print-prog-name=ar`
12740 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12741 set dummy `basename $aros_gcc_ar`; ac_word=$2
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12743 $as_echo_n "checking for $ac_word... " >&6; }
12744 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12745 $as_echo_n "(cached) " >&6
12746 else
12747 case $orig_target_ranlib in
12748 [\\/]* | ?:[\\/]*)
12749 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753 for as_dir in `dirname $aros_gcc_ar`
12755 IFS=$as_save_IFS
12756 test -z "$as_dir" && as_dir=.
12757 for ac_exec_ext in '' $ac_executable_extensions; do
12758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12759 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761 break 2
12763 done
12764 done
12765 IFS=$as_save_IFS
12768 esac
12770 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12771 if test -n "$orig_target_ranlib"; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12773 $as_echo "$orig_target_ranlib" >&6; }
12774 else
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12781 if test "$orig_target_ranlib" = ""; then
12782 # Extract the first word of "ar", so it can be a program name with args.
12783 set dummy ar; ac_word=$2
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12785 $as_echo_n "checking for $ac_word... " >&6; }
12786 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12787 $as_echo_n "(cached) " >&6
12788 else
12789 case $orig_target_ranlib in
12790 [\\/]* | ?:[\\/]*)
12791 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795 for as_dir in $PATH
12797 IFS=$as_save_IFS
12798 test -z "$as_dir" && as_dir=.
12799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12801 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12803 break 2
12805 done
12806 done
12807 IFS=$as_save_IFS
12810 esac
12812 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12813 if test -n "$orig_target_ranlib"; then
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12815 $as_echo "$orig_target_ranlib" >&6; }
12816 else
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12818 $as_echo "no" >&6; }
12824 else
12825 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12826 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12827 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12829 $as_echo_n "checking for $ac_word... " >&6; }
12830 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12831 $as_echo_n "(cached) " >&6
12832 else
12833 case $orig_target_ranlib in
12834 [\\/]* | ?:[\\/]*)
12835 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839 for as_dir in $PATH
12841 IFS=$as_save_IFS
12842 test -z "$as_dir" && as_dir=.
12843 for ac_exec_ext in '' $ac_executable_extensions; do
12844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12845 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12847 break 2
12849 done
12850 done
12851 IFS=$as_save_IFS
12854 esac
12856 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12857 if test -n "$orig_target_ranlib"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12859 $as_echo "$orig_target_ranlib" >&6; }
12860 else
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12866 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12869 req_avail=yes
12870 if test "$orig_target_ranlib" = ""; then
12871 req_avail=no
12873 if test "$orig_target_ranlib" = "no"; then
12874 req_avail=no
12876 if test "$req_avail" = "no"; then
12877 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12880 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12881 if test "$cross_compiling" = "yes" ; then
12882 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12883 set dummy ${target_tool_prefix}nm; ac_word=$2
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12885 $as_echo_n "checking for $ac_word... " >&6; }
12886 if ${ac_cv_path_orig_target_nm+:} false; then :
12887 $as_echo_n "(cached) " >&6
12888 else
12889 case $orig_target_nm in
12890 [\\/]* | ?:[\\/]*)
12891 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12901 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 break 2
12905 done
12906 done
12907 IFS=$as_save_IFS
12910 esac
12912 orig_target_nm=$ac_cv_path_orig_target_nm
12913 if test -n "$orig_target_nm"; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12915 $as_echo "$orig_target_nm" >&6; }
12916 else
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918 $as_echo "no" >&6; }
12922 else
12923 if test "$GCC" = "yes"; then
12924 aros_gcc_nm=`$CC -print-prog-name=nm`
12925 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12926 set dummy `basename $aros_gcc_nm`; ac_word=$2
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12928 $as_echo_n "checking for $ac_word... " >&6; }
12929 if ${ac_cv_path_orig_target_nm+:} false; then :
12930 $as_echo_n "(cached) " >&6
12931 else
12932 case $orig_target_nm in
12933 [\\/]* | ?:[\\/]*)
12934 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12938 for as_dir in `dirname $aros_gcc_nm`
12940 IFS=$as_save_IFS
12941 test -z "$as_dir" && as_dir=.
12942 for ac_exec_ext in '' $ac_executable_extensions; do
12943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12944 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12946 break 2
12948 done
12949 done
12950 IFS=$as_save_IFS
12953 esac
12955 orig_target_nm=$ac_cv_path_orig_target_nm
12956 if test -n "$orig_target_nm"; then
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12958 $as_echo "$orig_target_nm" >&6; }
12959 else
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961 $as_echo "no" >&6; }
12966 if test "$orig_target_nm" = ""; then
12967 # Extract the first word of "nm", so it can be a program name with args.
12968 set dummy nm; ac_word=$2
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12970 $as_echo_n "checking for $ac_word... " >&6; }
12971 if ${ac_cv_path_orig_target_nm+:} false; then :
12972 $as_echo_n "(cached) " >&6
12973 else
12974 case $orig_target_nm in
12975 [\\/]* | ?:[\\/]*)
12976 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12980 for as_dir in $PATH
12982 IFS=$as_save_IFS
12983 test -z "$as_dir" && as_dir=.
12984 for ac_exec_ext in '' $ac_executable_extensions; do
12985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12986 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12988 break 2
12990 done
12991 done
12992 IFS=$as_save_IFS
12995 esac
12997 orig_target_nm=$ac_cv_path_orig_target_nm
12998 if test -n "$orig_target_nm"; then
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13000 $as_echo "$orig_target_nm" >&6; }
13001 else
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003 $as_echo "no" >&6; }
13009 else
13010 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13011 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13012 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13014 $as_echo_n "checking for $ac_word... " >&6; }
13015 if ${ac_cv_path_orig_target_nm+:} false; then :
13016 $as_echo_n "(cached) " >&6
13017 else
13018 case $orig_target_nm in
13019 [\\/]* | ?:[\\/]*)
13020 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024 for as_dir in $PATH
13026 IFS=$as_save_IFS
13027 test -z "$as_dir" && as_dir=.
13028 for ac_exec_ext in '' $ac_executable_extensions; do
13029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13030 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13032 break 2
13034 done
13035 done
13036 IFS=$as_save_IFS
13039 esac
13041 orig_target_nm=$ac_cv_path_orig_target_nm
13042 if test -n "$orig_target_nm"; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13044 $as_echo "$orig_target_nm" >&6; }
13045 else
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047 $as_echo "no" >&6; }
13051 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13054 req_avail=yes
13055 if test "$orig_target_nm" = ""; then
13056 req_avail=no
13058 if test "$orig_target_nm" = "no"; then
13059 req_avail=no
13061 if test "$req_avail" = "no"; then
13062 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13065 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13066 if test "$cross_compiling" = "yes" ; then
13067 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13068 set dummy ${target_tool_prefix}strip; ac_word=$2
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070 $as_echo_n "checking for $ac_word... " >&6; }
13071 if ${ac_cv_path_orig_target_strip+:} false; then :
13072 $as_echo_n "(cached) " >&6
13073 else
13074 case $orig_target_strip in
13075 [\\/]* | ?:[\\/]*)
13076 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080 for as_dir in $PATH
13082 IFS=$as_save_IFS
13083 test -z "$as_dir" && as_dir=.
13084 for ac_exec_ext in '' $ac_executable_extensions; do
13085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13086 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 break 2
13090 done
13091 done
13092 IFS=$as_save_IFS
13095 esac
13097 orig_target_strip=$ac_cv_path_orig_target_strip
13098 if test -n "$orig_target_strip"; then
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13100 $as_echo "$orig_target_strip" >&6; }
13101 else
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13103 $as_echo "no" >&6; }
13107 else
13108 if test "$GCC" = "yes"; then
13109 aros_gcc_strip=`$CC -print-prog-name=strip`
13110 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13111 set dummy `basename $aros_gcc_strip`; ac_word=$2
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13113 $as_echo_n "checking for $ac_word... " >&6; }
13114 if ${ac_cv_path_orig_target_strip+:} false; then :
13115 $as_echo_n "(cached) " >&6
13116 else
13117 case $orig_target_strip in
13118 [\\/]* | ?:[\\/]*)
13119 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123 for as_dir in `dirname $aros_gcc_strip`
13125 IFS=$as_save_IFS
13126 test -z "$as_dir" && as_dir=.
13127 for ac_exec_ext in '' $ac_executable_extensions; do
13128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13129 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13131 break 2
13133 done
13134 done
13135 IFS=$as_save_IFS
13138 esac
13140 orig_target_strip=$ac_cv_path_orig_target_strip
13141 if test -n "$orig_target_strip"; then
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13143 $as_echo "$orig_target_strip" >&6; }
13144 else
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146 $as_echo "no" >&6; }
13151 if test "$orig_target_strip" = ""; then
13152 # Extract the first word of "strip", so it can be a program name with args.
13153 set dummy strip; ac_word=$2
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13155 $as_echo_n "checking for $ac_word... " >&6; }
13156 if ${ac_cv_path_orig_target_strip+:} false; then :
13157 $as_echo_n "(cached) " >&6
13158 else
13159 case $orig_target_strip in
13160 [\\/]* | ?:[\\/]*)
13161 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $PATH
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13171 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13175 done
13176 done
13177 IFS=$as_save_IFS
13180 esac
13182 orig_target_strip=$ac_cv_path_orig_target_strip
13183 if test -n "$orig_target_strip"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13185 $as_echo "$orig_target_strip" >&6; }
13186 else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13194 else
13195 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13196 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13197 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13199 $as_echo_n "checking for $ac_word... " >&6; }
13200 if ${ac_cv_path_orig_target_strip+:} false; then :
13201 $as_echo_n "(cached) " >&6
13202 else
13203 case $orig_target_strip in
13204 [\\/]* | ?:[\\/]*)
13205 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13211 IFS=$as_save_IFS
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
13214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13215 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13217 break 2
13219 done
13220 done
13221 IFS=$as_save_IFS
13224 esac
13226 orig_target_strip=$ac_cv_path_orig_target_strip
13227 if test -n "$orig_target_strip"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13229 $as_echo "$orig_target_strip" >&6; }
13230 else
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13236 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13239 req_avail=yes
13240 if test "$orig_target_strip" = ""; then
13241 req_avail=no
13243 if test "$orig_target_strip" = "no"; then
13244 req_avail=no
13246 if test "$req_avail" = "no"; then
13247 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13250 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13251 if test "$cross_compiling" = "yes" ; then
13252 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13253 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255 $as_echo_n "checking for $ac_word... " >&6; }
13256 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13257 $as_echo_n "(cached) " >&6
13258 else
13259 case $orig_target_objcopy in
13260 [\\/]* | ?:[\\/]*)
13261 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13265 for as_dir in $PATH
13267 IFS=$as_save_IFS
13268 test -z "$as_dir" && as_dir=.
13269 for ac_exec_ext in '' $ac_executable_extensions; do
13270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13271 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13273 break 2
13275 done
13276 done
13277 IFS=$as_save_IFS
13280 esac
13282 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13283 if test -n "$orig_target_objcopy"; then
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13285 $as_echo "$orig_target_objcopy" >&6; }
13286 else
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13288 $as_echo "no" >&6; }
13292 else
13293 if test "$GCC" = "yes"; then
13294 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13295 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13296 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13298 $as_echo_n "checking for $ac_word... " >&6; }
13299 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13300 $as_echo_n "(cached) " >&6
13301 else
13302 case $orig_target_objcopy in
13303 [\\/]* | ?:[\\/]*)
13304 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13308 for as_dir in `dirname $aros_gcc_objcopy`
13310 IFS=$as_save_IFS
13311 test -z "$as_dir" && as_dir=.
13312 for ac_exec_ext in '' $ac_executable_extensions; do
13313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13314 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13316 break 2
13318 done
13319 done
13320 IFS=$as_save_IFS
13323 esac
13325 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13326 if test -n "$orig_target_objcopy"; then
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13328 $as_echo "$orig_target_objcopy" >&6; }
13329 else
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331 $as_echo "no" >&6; }
13336 if test "$orig_target_objcopy" = ""; then
13337 # Extract the first word of "objcopy", so it can be a program name with args.
13338 set dummy objcopy; ac_word=$2
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13340 $as_echo_n "checking for $ac_word... " >&6; }
13341 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13342 $as_echo_n "(cached) " >&6
13343 else
13344 case $orig_target_objcopy in
13345 [\\/]* | ?:[\\/]*)
13346 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350 for as_dir in $PATH
13352 IFS=$as_save_IFS
13353 test -z "$as_dir" && as_dir=.
13354 for ac_exec_ext in '' $ac_executable_extensions; do
13355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13356 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 break 2
13360 done
13361 done
13362 IFS=$as_save_IFS
13365 esac
13367 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13368 if test -n "$orig_target_objcopy"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13370 $as_echo "$orig_target_objcopy" >&6; }
13371 else
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13379 else
13380 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13381 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13382 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13384 $as_echo_n "checking for $ac_word... " >&6; }
13385 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13386 $as_echo_n "(cached) " >&6
13387 else
13388 case $orig_target_objcopy in
13389 [\\/]* | ?:[\\/]*)
13390 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13396 IFS=$as_save_IFS
13397 test -z "$as_dir" && as_dir=.
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13400 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13402 break 2
13404 done
13405 done
13406 IFS=$as_save_IFS
13409 esac
13411 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13412 if test -n "$orig_target_objcopy"; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13414 $as_echo "$orig_target_objcopy" >&6; }
13415 else
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417 $as_echo "no" >&6; }
13421 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13424 req_avail=yes
13425 if test "$orig_target_objcopy" = ""; then
13426 req_avail=no
13428 if test "$orig_target_objcopy" = "no"; then
13429 req_avail=no
13431 if test "$req_avail" = "no"; then
13432 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13435 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13436 if test "$cross_compiling" = "yes" ; then
13437 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13438 set dummy ${target_tool_prefix}objdump; ac_word=$2
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13440 $as_echo_n "checking for $ac_word... " >&6; }
13441 if ${ac_cv_path_orig_target_objdump+:} false; then :
13442 $as_echo_n "(cached) " >&6
13443 else
13444 case $orig_target_objdump in
13445 [\\/]* | ?:[\\/]*)
13446 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13450 for as_dir in $PATH
13452 IFS=$as_save_IFS
13453 test -z "$as_dir" && as_dir=.
13454 for ac_exec_ext in '' $ac_executable_extensions; do
13455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13456 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13458 break 2
13460 done
13461 done
13462 IFS=$as_save_IFS
13465 esac
13467 orig_target_objdump=$ac_cv_path_orig_target_objdump
13468 if test -n "$orig_target_objdump"; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13470 $as_echo "$orig_target_objdump" >&6; }
13471 else
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473 $as_echo "no" >&6; }
13477 else
13478 if test "$GCC" = "yes"; then
13479 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13480 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13481 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13483 $as_echo_n "checking for $ac_word... " >&6; }
13484 if ${ac_cv_path_orig_target_objdump+:} false; then :
13485 $as_echo_n "(cached) " >&6
13486 else
13487 case $orig_target_objdump in
13488 [\\/]* | ?:[\\/]*)
13489 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13493 for as_dir in `dirname $aros_gcc_objdump`
13495 IFS=$as_save_IFS
13496 test -z "$as_dir" && as_dir=.
13497 for ac_exec_ext in '' $ac_executable_extensions; do
13498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13499 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13501 break 2
13503 done
13504 done
13505 IFS=$as_save_IFS
13508 esac
13510 orig_target_objdump=$ac_cv_path_orig_target_objdump
13511 if test -n "$orig_target_objdump"; then
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13513 $as_echo "$orig_target_objdump" >&6; }
13514 else
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13516 $as_echo "no" >&6; }
13521 if test "$orig_target_objdump" = ""; then
13522 # Extract the first word of "objdump", so it can be a program name with args.
13523 set dummy objdump; ac_word=$2
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13525 $as_echo_n "checking for $ac_word... " >&6; }
13526 if ${ac_cv_path_orig_target_objdump+:} false; then :
13527 $as_echo_n "(cached) " >&6
13528 else
13529 case $orig_target_objdump in
13530 [\\/]* | ?:[\\/]*)
13531 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535 for as_dir in $PATH
13537 IFS=$as_save_IFS
13538 test -z "$as_dir" && as_dir=.
13539 for ac_exec_ext in '' $ac_executable_extensions; do
13540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13541 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13543 break 2
13545 done
13546 done
13547 IFS=$as_save_IFS
13550 esac
13552 orig_target_objdump=$ac_cv_path_orig_target_objdump
13553 if test -n "$orig_target_objdump"; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13555 $as_echo "$orig_target_objdump" >&6; }
13556 else
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558 $as_echo "no" >&6; }
13564 else
13565 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13566 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13567 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569 $as_echo_n "checking for $ac_word... " >&6; }
13570 if ${ac_cv_path_orig_target_objdump+:} false; then :
13571 $as_echo_n "(cached) " >&6
13572 else
13573 case $orig_target_objdump in
13574 [\\/]* | ?:[\\/]*)
13575 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579 for as_dir in $PATH
13581 IFS=$as_save_IFS
13582 test -z "$as_dir" && as_dir=.
13583 for ac_exec_ext in '' $ac_executable_extensions; do
13584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13585 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13587 break 2
13589 done
13590 done
13591 IFS=$as_save_IFS
13594 esac
13596 orig_target_objdump=$ac_cv_path_orig_target_objdump
13597 if test -n "$orig_target_objdump"; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13599 $as_echo "$orig_target_objdump" >&6; }
13600 else
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13606 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13609 req_avail=yes
13610 if test "$orig_target_objdump" = ""; then
13611 req_avail=no
13613 if test "$orig_target_objdump" = "no"; then
13614 req_avail=no
13616 if test "$req_avail" = "no"; then
13617 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13621 if test "$kernel_tool_prefix" = "none" ; then
13622 # No kernel tools specified
13623 # Assume target tools == kernel tools with ELF wrapper
13624 aros_kernel_cc=$orig_target_cc
13625 aros_kernel_cxx=$orig_target_cxx
13626 aros_kernel_cpp=$orig_target_cpp
13627 aros_kernel_ld=$orig_target_ld
13628 aros_kernel_as=$orig_target_as
13629 aros_kernel_ar=$orig_target_ar
13630 aros_kernel_ranlib=$orig_target_ranlib
13631 aros_kernel_nm=$orig_target_nm
13632 aros_kernel_strip=$orig_target_strip
13633 aros_kernel_objcopy=$orig_target_objcopy
13634 aros_kernel_objdump=$orig_target_objdump
13635 use_kernel_cc_wrapper=yes
13638 # At this point, all aros_kernel_* and aros_target_*
13639 # tools should be set up correctly
13641 CC="$aros_kernel_cc $kernel_tool_flags"
13642 CPP="$aros_kernel_cpp"
13644 #-----------------------------------------------------------------------------
13646 # Find all the tools we need to compile. This could be cross-compiling
13647 # though! If that is the case we use the GNU form of the target and
13648 # simply add this to the front of the binary name. This is rather simple,
13649 # but it should work under most circumstances.
13651 # The default tools are to use the same as the host, but only if the
13652 # host and target CPU are the same. With GCC this is normally enough.
13655 aros_cc_pre=""
13656 aros_shared_ld="$aros_host_ld"
13658 aros_target_mkdep="$aros_host_mkdep"
13660 # The default tools executables to be linked to.
13661 if test "$rescomp" != ""; then
13662 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13663 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13665 $as_echo_n "checking for $ac_word... " >&6; }
13666 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13667 $as_echo_n "(cached) " >&6
13668 else
13669 case $aros_kernel_rescomp in
13670 [\\/]* | ?:[\\/]*)
13671 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13675 for as_dir in $PATH
13677 IFS=$as_save_IFS
13678 test -z "$as_dir" && as_dir=.
13679 for ac_exec_ext in '' $ac_executable_extensions; do
13680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13681 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13683 break 2
13685 done
13686 done
13687 IFS=$as_save_IFS
13690 esac
13692 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13693 if test -n "$aros_kernel_rescomp"; then
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13695 $as_echo "$aros_kernel_rescomp" >&6; }
13696 else
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698 $as_echo "no" >&6; }
13702 req_avail=yes
13703 if test "$aros_kernel_rescomp" = ""; then
13704 req_avail=no
13706 if test "$aros_kernel_rescomp" = "no"; then
13707 req_avail=no
13709 if test "$req_avail" = "no"; then
13710 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13714 # Set up the sources for the symlink farm
13715 if test "$crosstools" = "yes"; then
13716 crosstools_target=tools-crosstools
13719 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13720 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13722 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13723 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13724 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13725 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13726 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13727 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13728 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13730 # aros_cc_pre is a variable that is added to the front of the compiler name
13731 # in the generated aros-gcc shell script. We need this to enable the cache
13732 # to work across cleaned builds. Also, support DISTCC using the correct
13733 # environment variable.
13736 if test "x${DISTCC}" != "x" ; then
13737 if test "x${CCACHE}" != "x" ; then
13738 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13739 else
13740 aros_cc_pre="${DISTCC} "
13742 else
13743 if test "x${CCACHE}" != "x" ; then
13744 aros_cc_pre="${CCACHE} "
13748 aros_target_nostdinc_cflags=-nostdinc
13750 aros_target_nostartup_ldflags=-nostartfiles
13752 aros_target_nix_ldflags=-nix
13754 aros_target_detach_ldflags=-detach
13756 aros_target_nostdlib_ldflags=-nostdlib
13759 # Target tools
13761 if test "$aros_target_toolchain" != "yes"; then
13762 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13763 if test "$GCC" = "yes"; then
13764 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13766 else
13767 # We do not know which c compiler version we are going to build and what we need to know
13768 # here is different for different versions so this will be set later during the
13769 # build of crosstools.
13770 if test "$aros_toolchain" = "gnu" ; then
13771 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13772 elif test "$aros_toolchain" = "llvm" ; then
13773 prefix="$AROS_CROSSTOOLSDIR/bin/"
13775 aros_target_cc_path=@aros_target_cc_path@
13777 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13778 aros_target_cc="${prefix}${toolchain_c_compiler}"
13779 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13780 aros_target_as="${prefix}${toolchain_as}"
13781 if test "${use_ld_wrapper}" = "yes"; then
13782 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13783 else
13784 aros_target_ld="${prefix}${toolchain_ld}"
13786 aros_toolchain_ld="${prefix}${toolchain_ld}"
13788 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13789 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13790 aros_target_objdump="${prefix}${toolchain_objdump}"
13791 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13792 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13793 aros_target_strip="${prefix}${toolchain_strip}"
13794 aros_plain_nm="${prefix}${toolchain_nm}"
13795 aros_plain_ar="${prefix}${toolchain_ar}"
13797 # Check whether --enable-includes was given.
13798 if test "${enable_includes+set}" = set; then :
13799 enableval=$enable_includes; aros_target_incl=$enable_includes
13800 else
13801 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13805 if test "$aros_kernel_includes" = ""; then
13806 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13807 aros_kernel_includes="-isystem $aros_target_incl"
13811 if test "$aros_kernel_includes" != "" ; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13813 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13814 if test "$aros_kernel_cc_includes" = "" ; then
13815 # Try to guess where the directory is.
13816 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13817 if test -d $aros_kernel_cc_includes; then
13818 # Check if there is also an include-fixed directory and add it
13819 # to kernel compiler's include path as it may contain some of
13820 # the headers we need.
13821 if test -d "$aros_kernel_cc_includes"-fixed; then
13822 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13824 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13825 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13826 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13828 else
13829 # The directory doesn't exist, we need to do some more work.
13830 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13832 # These are the headers we're looking for.
13833 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13834 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13835 zutil.h stdint.h"
13837 dirs=
13838 for h in $headers; do
13839 # Which other headers are needed by each of the above?
13840 deps=$(echo "#include <$h>" | \
13841 $aros_kernel_cc -E -M - 2>/dev/null | \
13842 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13844 # Copy all the needed headers to a directory beneath gendir.
13845 for d in $deps; do
13846 h=$(basename $d)
13847 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13848 sed -n "s,^.*/include\(/.*\),\1,p")
13849 ! test -d $dir && mkdir -p $dir
13850 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13851 done
13852 done
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13856 $as_echo "$aros_kernel_cc_includes" >&6; }
13857 # Adding -nostdinc to kernel includes as they are always used together.
13858 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13861 if test "$crosstools" != "yes"; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13863 $as_echo_n "checking for the target compiler's include path... " >&6; }
13864 if test "$aros_target_cc_includes" = "" ; then
13865 #try to guess where the directory is
13866 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13867 if ! test -d $aros_target_cc_includes; then
13868 #the directory doesn't exist, we need to do some more work
13869 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13871 #these are the headers we're looking for
13872 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13873 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13874 zutil.h"
13876 dirs=
13877 for h in $headers; do
13878 #which other headers each of the above headers needs?
13879 deps=$(echo "#include <$h>" | \
13880 $orig_target_cc -E -M - 2>/dev/null | \
13881 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13883 #copy all the needed headers to a directory beneath gendir
13884 for d in $deps; do
13885 h=$(basename $d)
13886 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13887 sed -n "s,^.*/include\(/.*\),\1,p")
13888 ! test -d $dir && mkdir -p $dir
13889 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13890 done
13891 done
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13895 $as_echo "$aros_target_cc_includes" >&6; }
13896 else
13897 # We do not know which c compiler version we are going to build and what we need to know
13898 # here is different for different versions so this will be set later during the
13899 # build of crosstools.
13900 aros_target_cc_includes=@aros_target_cc_includes@
13904 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13905 # On GCC >= 4.0 -iquote should be used
13908 save_cc="$CC"
13909 save_cflags="$CFLAGS"
13910 CFLAGS="-iquote."
13911 kernel_cflags_iquote=$host_cflags_iquote
13912 kernel_cflags_iquote_end=$host_cflags_iquote_end
13913 if test "x-$cross_compiling" = "x-yes"; then
13914 CC="$aros_kernel_cc"
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13916 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13917 if test "x-$crosstools" != "x-yes"; then
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13922 main ()
13926 return 0;
13928 _ACEOF
13929 if ac_fn_c_try_compile "$LINENO"; then :
13930 use_no_stack_protector="yes"
13931 else
13932 use_no_stack_protector="no"
13934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13935 else
13936 # we do know it is supported for the smallest version of gcc we are going to build
13937 # we assume it's also supported by later versions
13938 use_no_stack_protector=yes
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13941 $as_echo "$use_no_stack_protector" >&6; }
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13943 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13944 if test "x-$crosstools" != "x-yes"; then
13945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13946 /* end confdefs.h. */
13949 main ()
13953 return 0;
13955 _ACEOF
13956 if ac_fn_c_try_compile "$LINENO"; then :
13957 has_iquote="yes"
13958 else
13959 has_iquote="no"
13961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962 else
13963 # we do know it is supported for the smallest version of gcc we are going to build
13964 # we assume it's also supported by later versions
13965 has_iquote=yes
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13968 $as_echo "$has_iquote" >&6; }
13969 if test "x-$has_iquote" = "x-yes" ; then
13970 kernel_cflags_iquote=-iquote
13971 kernel_cflags_iquote_end=
13972 else
13973 kernel_cflags_iquote=-I
13974 kernel_cflags_iquote_end=-I-
13977 if test "x-$use_no_stack_protector" = "x-yes" ; then
13978 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13981 #-----------------------------------------------------------------------------
13983 # Check if we can explicitly choose older version of symbol hashing
13985 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13986 CC="$aros_kernel_cc"
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13988 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13993 main ()
13997 return 0;
13999 _ACEOF
14000 if ac_fn_c_try_link "$LINENO"; then :
14001 use_hash_style="yes"
14002 else
14003 use_hash_style="no"
14005 rm -f core conftest.err conftest.$ac_objext \
14006 conftest$ac_exeext conftest.$ac_ext
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14008 $as_echo "$use_hash_style" >&6; }
14009 if test "x-$use_hash_style" = "x-yes" ; then
14010 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
14012 CC="$save_cc"
14013 CFLAGS="$save_cflags"
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14022 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14024 # Check whether --with-resolution was given.
14025 if test "${with_resolution+set}" = set; then :
14026 withval=$with_resolution; resolution=$withval
14027 else
14028 resolution=none
14031 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14032 if test "$resolution" = "yes" ; then
14033 resolution="none"
14035 if test "$resolution" = "no" ; then
14036 resolution="none"
14038 if test "$resolution" != "none" ; then
14039 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14040 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14041 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14044 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14045 aros_cv_nominal_width=$aros_nominal_width
14046 aros_cv_nominal_height=$aros_nominal_height
14047 aros_cv_nominal_depth=$aros_nominal_depth
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14050 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14052 # Check whether --with-serial-debug was given.
14053 if test "${with_serial_debug+set}" = set; then :
14054 withval=$with_serial_debug; serial_debug=$withval
14055 else
14056 serial_debug=none
14059 if test "$aros_serial_debug" = 0 ; then
14060 serial_debug_forced=""
14061 if test "$serial_debug" = "yes" ; then
14062 serial_debug="1"
14064 if test "$serial_debug" = "no" ; then
14065 serial_debug="none"
14067 else
14068 serial_debug_forced="(forced)"
14069 serial_debug=$aros_serial_debug
14071 if test "$serial_debug" != "none" ; then
14072 aros_serial_debug=$serial_debug
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14074 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14075 else
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14077 $as_echo "no" >&6; }
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14081 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14082 # Check whether --enable-palm_debug_hack was given.
14083 if test "${enable_palm_debug_hack+set}" = set; then :
14084 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14085 else
14086 palm_debug_hack="no"
14089 if test "$palm_debug_hack" = "yes" ; then
14090 aros_palm_debug_hack="1"
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14093 $as_echo "$palm_debug_hack" >&6; }
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14096 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14097 # Check whether --enable-usb30_code was given.
14098 if test "${enable_usb30_code+set}" = set; then :
14099 enableval=$enable_usb30_code; usb30_code="yes"
14100 else
14101 usb30_code="no"
14104 if test "$usb30_code" = "yes" ; then
14105 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14106 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14109 $as_echo "$usb30_code" >&6; }
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14112 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14113 # Check whether --enable-nesting_supervisor was given.
14114 if test "${enable_nesting_supervisor+set}" = set; then :
14115 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14116 else
14117 nesting_supervisor="no"
14120 if test "$nesting_supervisor" = "yes" ; then
14121 aros_nesting_supervisor="1"
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14124 $as_echo "$nesting_supervisor" >&6; }
14126 if test "$aros_enable_mmu" = "" ; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14128 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14129 # Check whether --enable-mmu was given.
14130 if test "${enable_mmu+set}" = set; then :
14131 enableval=$enable_mmu; aros_enable_mmu=$enableval
14132 else
14133 aros_enable_mmu="yes"
14136 if test "$aros_enable_mmu" = "" ; then
14137 aros_enable_mmu="yes"
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14140 $as_echo "$aros_enable_mmu" >&6; }
14142 if test "$aros_enable_mmu" = "no" ; then
14143 aros_enable_mmu="0"
14144 else
14145 aros_enable_mmu="1"
14149 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14151 if test "x-$need_dlopen" != "x-no" ; then
14152 save_libs="$LIBS"
14153 LIBS=""
14154 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14155 if test "x$ac_cv_func_dlopen" = xyes; then :
14156 have_dl="yes"
14157 else
14158 have_dl="no"
14161 if test "x-$have_dl" = "x-no" ; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14163 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14164 if ${ac_cv_lib_dl_dlopen+:} false; then :
14165 $as_echo_n "(cached) " >&6
14166 else
14167 ac_check_lib_save_LIBS=$LIBS
14168 LIBS="-ldl $LIBS"
14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14172 /* Override any GCC internal prototype to avoid an error.
14173 Use char because int might match the return type of a GCC
14174 builtin and then its argument prototype would still apply. */
14175 #ifdef __cplusplus
14176 extern "C"
14177 #endif
14178 char dlopen ();
14180 main ()
14182 return dlopen ();
14184 return 0;
14186 _ACEOF
14187 if ac_fn_c_try_link "$LINENO"; then :
14188 ac_cv_lib_dl_dlopen=yes
14189 else
14190 ac_cv_lib_dl_dlopen=no
14192 rm -f core conftest.err conftest.$ac_objext \
14193 conftest$ac_exeext conftest.$ac_ext
14194 LIBS=$ac_check_lib_save_LIBS
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14197 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14198 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14199 have_dl="yes"
14200 aros_host_ldflags="$aros_host_ldflags -ldl"
14201 else
14202 have_dl="no"
14206 if test "x-$have_dl" = "x-no" ; then
14207 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14209 LIBS="$save_libs"
14213 # Check whether --enable-x11_hidd was given.
14214 if test "${enable_x11_hidd+set}" = set; then :
14215 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14216 else
14217 x11_hidd="$need_x11"
14220 case "x-$x11_hidd" in
14221 x-yes|x-no|x-auto) ;;
14222 *) x11_hidd="$need_x11" ;;
14223 esac
14225 ENABLE_X11=0
14227 if test "x-$x11_hidd" != "x-no" ; then
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14230 $as_echo_n "checking for X... " >&6; }
14233 # Check whether --with-x was given.
14234 if test "${with_x+set}" = set; then :
14235 withval=$with_x;
14238 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14239 if test "x$with_x" = xno; then
14240 # The user explicitly disabled X.
14241 have_x=disabled
14242 else
14243 case $x_includes,$x_libraries in #(
14244 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14245 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14246 $as_echo_n "(cached) " >&6
14247 else
14248 # One or both of the vars are not set, and there is no cached value.
14249 ac_x_includes=no ac_x_libraries=no
14250 rm -f -r conftest.dir
14251 if mkdir conftest.dir; then
14252 cd conftest.dir
14253 cat >Imakefile <<'_ACEOF'
14254 incroot:
14255 @echo incroot='${INCROOT}'
14256 usrlibdir:
14257 @echo usrlibdir='${USRLIBDIR}'
14258 libdir:
14259 @echo libdir='${LIBDIR}'
14260 _ACEOF
14261 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14262 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14263 for ac_var in incroot usrlibdir libdir; do
14264 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14265 done
14266 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14267 for ac_extension in a so sl dylib la dll; do
14268 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14269 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14270 ac_im_usrlibdir=$ac_im_libdir; break
14272 done
14273 # Screen out bogus values from the imake configuration. They are
14274 # bogus both because they are the default anyway, and because
14275 # using them would break gcc on systems where it needs fixed includes.
14276 case $ac_im_incroot in
14277 /usr/include) ac_x_includes= ;;
14278 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14279 esac
14280 case $ac_im_usrlibdir in
14281 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14282 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14283 esac
14285 cd ..
14286 rm -f -r conftest.dir
14289 # Standard set of common directories for X headers.
14290 # Check X11 before X11Rn because it is often a symlink to the current release.
14291 ac_x_header_dirs='
14292 /usr/X11/include
14293 /usr/X11R7/include
14294 /usr/X11R6/include
14295 /usr/X11R5/include
14296 /usr/X11R4/include
14298 /usr/include/X11
14299 /usr/include/X11R7
14300 /usr/include/X11R6
14301 /usr/include/X11R5
14302 /usr/include/X11R4
14304 /usr/local/X11/include
14305 /usr/local/X11R7/include
14306 /usr/local/X11R6/include
14307 /usr/local/X11R5/include
14308 /usr/local/X11R4/include
14310 /usr/local/include/X11
14311 /usr/local/include/X11R7
14312 /usr/local/include/X11R6
14313 /usr/local/include/X11R5
14314 /usr/local/include/X11R4
14316 /usr/X386/include
14317 /usr/x386/include
14318 /usr/XFree86/include/X11
14320 /usr/include
14321 /usr/local/include
14322 /usr/unsupported/include
14323 /usr/athena/include
14324 /usr/local/x11r5/include
14325 /usr/lpp/Xamples/include
14327 /usr/openwin/include
14328 /usr/openwin/share/include'
14330 if test "$ac_x_includes" = no; then
14331 # Guess where to find include files, by looking for Xlib.h.
14332 # First, try using that file with no special directory specified.
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14335 #include <X11/Xlib.h>
14336 _ACEOF
14337 if ac_fn_c_try_cpp "$LINENO"; then :
14338 # We can compile using X headers with no special include directory.
14339 ac_x_includes=
14340 else
14341 for ac_dir in $ac_x_header_dirs; do
14342 if test -r "$ac_dir/X11/Xlib.h"; then
14343 ac_x_includes=$ac_dir
14344 break
14346 done
14348 rm -f conftest.err conftest.i conftest.$ac_ext
14349 fi # $ac_x_includes = no
14351 if test "$ac_x_libraries" = no; then
14352 # Check for the libraries.
14353 # See if we find them without any special options.
14354 # Don't add to $LIBS permanently.
14355 ac_save_LIBS=$LIBS
14356 LIBS="-lX11 $LIBS"
14357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h. */
14359 #include <X11/Xlib.h>
14361 main ()
14363 XrmInitialize ()
14365 return 0;
14367 _ACEOF
14368 if ac_fn_c_try_link "$LINENO"; then :
14369 LIBS=$ac_save_LIBS
14370 # We can link X programs with no special library path.
14371 ac_x_libraries=
14372 else
14373 LIBS=$ac_save_LIBS
14374 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14376 # Don't even attempt the hair of trying to link an X program!
14377 for ac_extension in a so sl dylib la dll; do
14378 if test -r "$ac_dir/libX11.$ac_extension"; then
14379 ac_x_libraries=$ac_dir
14380 break 2
14382 done
14383 done
14385 rm -f core conftest.err conftest.$ac_objext \
14386 conftest$ac_exeext conftest.$ac_ext
14387 fi # $ac_x_libraries = no
14389 case $ac_x_includes,$ac_x_libraries in #(
14390 no,* | *,no | *\'*)
14391 # Didn't find X, or a directory has "'" in its name.
14392 ac_cv_have_x="have_x=no";; #(
14394 # Record where we found X for the cache.
14395 ac_cv_have_x="have_x=yes\
14396 ac_x_includes='$ac_x_includes'\
14397 ac_x_libraries='$ac_x_libraries'"
14398 esac
14400 ;; #(
14401 *) have_x=yes;;
14402 esac
14403 eval "$ac_cv_have_x"
14404 fi # $with_x != no
14406 if test "$have_x" != yes; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14408 $as_echo "$have_x" >&6; }
14409 no_x=yes
14410 else
14411 # If each of the values was on the command line, it overrides each guess.
14412 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14413 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14414 # Update the cache value to reflect the command line values.
14415 ac_cv_have_x="have_x=yes\
14416 ac_x_includes='$x_includes'\
14417 ac_x_libraries='$x_libraries'"
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14419 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14423 if test -n "$x_includes"; then
14424 X_CFLAGS="$X_CFLAGS -I$x_includes"
14427 if test -n "$x_libraries"; then
14428 X_LIBS="$X_LIBS -L$x_libraries"
14431 if test "x-$no_x" = "x-yes" ; then
14433 if test "x-$x11_hidd" != "x-auto" ; then
14434 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14437 else
14438 host_x_gfx=yes
14439 ENABLE_X11=1
14441 aros_host_x11_cflags="$X_CFLAGS"
14442 aros_host_x11_ldflags="$X_LIBS -lX11"
14444 # Check whether --enable-x11_shm was given.
14445 if test "${enable_x11_shm+set}" = set; then :
14446 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14447 else
14448 x11_hidd_shm="auto"
14451 case "x-$x11_hidd_shm" in
14452 x-yes|x-no|x-auto) ;;
14453 *) x11_hidd_shm="auto" ;;
14454 esac
14456 have_xshm=no
14458 if test "x-$x11_hidd_shm" != "x-no" ; then
14460 for ac_header in sys/ipc.h
14461 do :
14462 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14463 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14464 cat >>confdefs.h <<_ACEOF
14465 #define HAVE_SYS_IPC_H 1
14466 _ACEOF
14470 done
14472 for ac_header in sys/shm.h
14473 do :
14474 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14475 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14476 cat >>confdefs.h <<_ACEOF
14477 #define HAVE_SYS_SHM_H 1
14478 _ACEOF
14482 done
14485 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14487 save_cflags="$CFLAGS"
14488 save_ldflags="$LDFLAGS"
14489 CFLAGS="$CFLAGS $X_CFLAGS"
14490 LDFLAGS="$LDFLAGS $X_LIBS"
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14492 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14493 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14494 $as_echo_n "(cached) " >&6
14495 else
14496 ac_check_lib_save_LIBS=$LIBS
14497 LIBS="-lXext $LIBS"
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14501 /* Override any GCC internal prototype to avoid an error.
14502 Use char because int might match the return type of a GCC
14503 builtin and then its argument prototype would still apply. */
14504 #ifdef __cplusplus
14505 extern "C"
14506 #endif
14507 char XShmQueryExtension ();
14509 main ()
14511 return XShmQueryExtension ();
14513 return 0;
14515 _ACEOF
14516 if ac_fn_c_try_link "$LINENO"; then :
14517 ac_cv_lib_Xext_XShmQueryExtension=yes
14518 else
14519 ac_cv_lib_Xext_XShmQueryExtension=no
14521 rm -f core conftest.err conftest.$ac_objext \
14522 conftest$ac_exeext conftest.$ac_ext
14523 LIBS=$ac_check_lib_save_LIBS
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14526 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14527 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14528 have_xshm=yes
14531 CFLAGS="$save_cflags"
14532 LDFLAGS="$save_ldflags"
14536 if test "x-$have_xshm" = "x-yes" ; then
14537 DO_XSHM_SUPPORT="1"
14538 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14539 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14540 else
14541 DO_XSHM_SUPPORT="0"
14545 # Check whether --enable-x11_vidmode was given.
14546 if test "${enable_x11_vidmode+set}" = set; then :
14547 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14548 else
14549 x11_hidd_vidmode="auto"
14552 case "x-$x11_hidd_vidmode" in
14553 x-yes|x-no|x-auto) ;;
14554 *) x11_hidd_vidmode="auto" ;;
14555 esac
14557 have_vidmode=no
14559 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14561 save_cflags="$CFLAGS"
14562 save_ldflags="$LDFLAGS"
14563 CFLAGS="$CFLAGS $X_CFLAGS"
14564 LDFLAGS="$LDFLAGS $X_LIBS"
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14566 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14567 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14568 $as_echo_n "(cached) " >&6
14569 else
14570 ac_check_lib_save_LIBS=$LIBS
14571 LIBS="-lXxf86vm $LIBS"
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14575 /* Override any GCC internal prototype to avoid an error.
14576 Use char because int might match the return type of a GCC
14577 builtin and then its argument prototype would still apply. */
14578 #ifdef __cplusplus
14579 extern "C"
14580 #endif
14581 char XF86VidModeQueryExtension ();
14583 main ()
14585 return XF86VidModeQueryExtension ();
14587 return 0;
14589 _ACEOF
14590 if ac_fn_c_try_link "$LINENO"; then :
14591 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14592 else
14593 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14595 rm -f core conftest.err conftest.$ac_objext \
14596 conftest$ac_exeext conftest.$ac_ext
14597 LIBS=$ac_check_lib_save_LIBS
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14600 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14601 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14602 have_vidmode=yes
14605 CFLAGS="$save_cflags"
14606 LDFLAGS="$save_ldflags"
14609 if test "x-$have_vidmode" = "x-yes" ; then
14610 DO_VIDMODE_SUPPORT="1"
14611 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14612 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14613 else
14614 DO_VIDMODE_SUPPORT="0"
14619 # Check whether --enable-sdl_hidd was given.
14620 if test "${enable_sdl_hidd+set}" = set; then :
14621 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14622 else
14623 sdl_hidd="auto"
14626 case "x-$sdl_hidd" in
14627 x-yes|x-no|x-auto) ;;
14628 *) sdl_hidd="auto" ;;
14629 esac
14631 if test "x-$sdl_hidd" != "x-no" ; then
14633 SDL_VERSION=1.2.5
14635 # Check whether --with-sdl-prefix was given.
14636 if test "${with_sdl_prefix+set}" = set; then :
14637 withval=$with_sdl_prefix; sdl_prefix="$withval"
14638 else
14639 sdl_prefix=""
14643 # Check whether --with-sdl-exec-prefix was given.
14644 if test "${with_sdl_exec_prefix+set}" = set; then :
14645 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14646 else
14647 sdl_exec_prefix=""
14650 # Check whether --enable-sdltest was given.
14651 if test "${enable_sdltest+set}" = set; then :
14652 enableval=$enable_sdltest;
14653 else
14654 enable_sdltest=yes
14658 if test x$sdl_exec_prefix != x ; then
14659 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14660 if test x${SDL_CONFIG+set} != xset ; then
14661 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14664 if test x$sdl_prefix != x ; then
14665 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14666 if test x${SDL_CONFIG+set} != xset ; then
14667 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14671 as_save_PATH="$PATH"
14672 if test "x$prefix" != xNONE; then
14673 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14675 # Extract the first word of "sdl-config", so it can be a program name with args.
14676 set dummy sdl-config; ac_word=$2
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14678 $as_echo_n "checking for $ac_word... " >&6; }
14679 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14680 $as_echo_n "(cached) " >&6
14681 else
14682 case $SDL_CONFIG in
14683 [\\/]* | ?:[\\/]*)
14684 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14688 for as_dir in $PATH
14690 IFS=$as_save_IFS
14691 test -z "$as_dir" && as_dir=.
14692 for ac_exec_ext in '' $ac_executable_extensions; do
14693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14694 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14696 break 2
14698 done
14699 done
14700 IFS=$as_save_IFS
14702 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14704 esac
14706 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14707 if test -n "$SDL_CONFIG"; then
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14709 $as_echo "$SDL_CONFIG" >&6; }
14710 else
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712 $as_echo "no" >&6; }
14716 PATH="$as_save_PATH"
14717 min_sdl_version=$SDL_VERSION
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14719 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14720 no_sdl=""
14721 if test "$SDL_CONFIG" = "no" ; then
14722 no_sdl=yes
14723 else
14724 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14725 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14727 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14728 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14729 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14730 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14731 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14732 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14733 if test "x$enable_sdltest" = "xyes" ; then
14734 ac_save_CFLAGS="$CFLAGS"
14735 ac_save_CXXFLAGS="$CXXFLAGS"
14736 ac_save_LIBS="$LIBS"
14737 CFLAGS="$CFLAGS $SDL_CFLAGS"
14738 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14739 LIBS="$LIBS $SDL_LIBS"
14740 rm -f conf.sdltest
14741 if test "$cross_compiling" = yes; then :
14742 echo $ac_n "cross compiling; assumed OK... $ac_c"
14743 else
14744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14745 /* end confdefs.h. */
14747 #include <stdio.h>
14748 #include <stdlib.h>
14749 #include <string.h>
14750 #include "SDL.h"
14752 char*
14753 my_strdup (char *str)
14755 char *new_str;
14757 if (str)
14759 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14760 strcpy (new_str, str);
14762 else
14763 new_str = NULL;
14765 return new_str;
14768 int main (int argc, char *argv[])
14770 int major, minor, micro;
14771 char *tmp_version;
14773 /* This hangs on some systems (?)
14774 system ("touch conf.sdltest");
14776 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14778 /* HP/UX 9 (%@#!) writes to sscanf strings */
14779 tmp_version = my_strdup("$min_sdl_version");
14780 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14781 printf("%s, bad version string\n", "$min_sdl_version");
14782 exit(1);
14785 if (($sdl_major_version > major) ||
14786 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14787 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14789 return 0;
14791 else
14793 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14794 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14795 printf("*** best to upgrade to the required version.\n");
14796 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14797 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14798 printf("*** config.cache before re-running configure\n");
14799 return 1;
14804 _ACEOF
14805 if ac_fn_c_try_run "$LINENO"; then :
14807 else
14808 no_sdl=yes
14810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14811 conftest.$ac_objext conftest.beam conftest.$ac_ext
14814 CFLAGS="$ac_save_CFLAGS"
14815 CXXFLAGS="$ac_save_CXXFLAGS"
14816 LIBS="$ac_save_LIBS"
14819 if test "x$no_sdl" = x ; then
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14821 $as_echo "yes" >&6; }
14822 have_sdl="yes"
14823 else
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14825 $as_echo "no" >&6; }
14826 if test "$SDL_CONFIG" = "no" ; then
14827 echo "*** The sdl-config script installed by SDL could not be found"
14828 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14829 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14830 echo "*** full path to sdl-config."
14831 else
14832 if test -f conf.sdltest ; then
14834 else
14835 echo "*** Could not run SDL test program, checking why..."
14836 CFLAGS="$CFLAGS $SDL_CFLAGS"
14837 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14838 LIBS="$LIBS $SDL_LIBS"
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14842 #include <stdio.h>
14843 #include "SDL.h"
14845 int main(int argc, char *argv[])
14846 { return 0; }
14847 #undef main
14848 #define main K_and_R_C_main
14851 main ()
14853 return 0;
14855 return 0;
14857 _ACEOF
14858 if ac_fn_c_try_link "$LINENO"; then :
14859 echo "*** The test program compiled, but did not run. This usually means"
14860 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14861 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14862 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14863 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14864 echo "*** is required on your system"
14865 echo "***"
14866 echo "*** If you have an old version installed, it is best to remove it, although"
14867 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14868 else
14869 echo "*** The test program failed to compile or link. See the file config.log for the"
14870 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14871 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14872 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14874 rm -f core conftest.err conftest.$ac_objext \
14875 conftest$ac_exeext conftest.$ac_ext
14876 CFLAGS="$ac_save_CFLAGS"
14877 CXXFLAGS="$ac_save_CXXFLAGS"
14878 LIBS="$ac_save_LIBS"
14881 SDL_CFLAGS=""
14882 SDL_LIBS=""
14883 have_sdl="no"
14887 rm -f conf.sdltest
14890 if test "x-$have_sdl" != "x-yes" ; then
14892 if test "x-$sdl_hidd" != "x-auto" ; then
14893 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14896 else
14897 host_sdl_gfx=yes
14898 aros_host_sdl_cflags=$SDL_CFLAGS
14899 aros_host_sdl_libs=$SDL_LIBS
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14907 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14908 # Check whether --enable-dbus was given.
14909 if test "${enable_dbus+set}" = set; then :
14910 enableval=$enable_dbus; dbus="yes"
14911 else
14912 dbus="no"
14915 if test "$dbus" = "yes" ; then
14916 ENABLE_DBUS=1
14917 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14918 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14919 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14920 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14921 else
14922 ENABLE_DBUS=0
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14925 $as_echo "$dbus" >&6; }
14927 if test "$use_kernel_cc_wrapper" = "yes" ; then
14928 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14931 aros_kernel_cppflags=$aros_config_cppflags
14932 aros_optimization_cflags="$optimization_level"
14933 if test "$optimization" = "default"; then
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
14935 $as_echo_n "checking default optimization level to use... " >&6; }
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
14937 $as_echo "$optimization_level" >&6; }
14941 # Generic
14955 # Compatability with other Amiga-like operation systems
14958 # Host related
14988 # Target Related
15068 # Hosted Graphics Related
15086 # Bootloader related
15089 # Native version related
15094 # Palm native version related
15097 # Unix/Hosted version related
15100 # MMU related
15103 # Apple iOS related
15108 # ARM default GCC target related
15115 # Android related
15120 # DBUS related
15127 #X11 related
15130 # Debug related
15136 # Collect-aros stuff: "-ius" to ignore undefined symbols
15139 # C compiler related
15144 #ObjC compiler related
15147 #Java related
15150 # USB3.0 code
15153 case "$aros_flavour" in
15154 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15155 aros_flavour="emulation" ;;
15156 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15157 aros_flavour="emulation" ;;
15158 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15159 aros_flavour="standalone";;
15160 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15161 aros_flavour="standalone";;
15162 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15163 aros_flavour="native" ;;
15164 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15165 aros_flavour="native" ;;
15166 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15167 aros_flavour="linklib" ;;
15168 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15169 aros_flavour="palmnative" ;;
15170 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15171 aros_flavour="mac68knative" ;;
15172 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15173 aros_flavour="ppcnative" ;;
15174 esac
15176 if test ! -d ${aros_inc_dir} ; then
15177 ${MKDIR} ${aros_inc_dir}
15179 if test ! -d ${aros_geninc_dir} ; then
15180 ${MKDIR} ${aros_geninc_dir}
15182 if test ! -d ${aros_hostcfg_dir} ; then
15183 ${MKDIR} ${aros_hostcfg_dir}
15185 if test ! -d ${aros_targetcfg_dir} ; then
15186 ${MKDIR} ${aros_targetcfg_dir}
15188 if test ! -d ${aros_tools_dir} ; then
15189 ${MKDIR} ${aros_tools_dir}
15191 if test ! -d ${aros_scripts_dir} ; then
15192 ${MKDIR} ${aros_scripts_dir}
15195 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15198 # Generic build tools (metamake, etc)
15199 ac_config_commands="$ac_config_commands genmf-executable-support"
15201 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"
15204 # Binutils
15205 ac_config_commands="$ac_config_commands binutils-support"
15207 if test "${use_ld_wrapper}" = "yes"; then
15208 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"
15211 # Bare Elf support script and spec
15212 if test "${use_kernel_cc_wrapper}" = "yes"; then
15213 ac_config_commands="$ac_config_commands elf-compiler-support"
15215 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"
15219 # Host compiler support scripts and spec
15220 if test "${aros_target_toolchain}" = "no"; then
15221 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15223 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"
15227 # Android support
15228 if test "$aros_target_variant" == "android"; then
15229 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15233 # cmake helper
15234 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15237 cat >confcache <<\_ACEOF
15238 # This file is a shell script that caches the results of configure
15239 # tests run on this system so they can be shared between configure
15240 # scripts and configure runs, see configure's option --config-cache.
15241 # It is not useful on other systems. If it contains results you don't
15242 # want to keep, you may remove or edit it.
15244 # config.status only pays attention to the cache file if you give it
15245 # the --recheck option to rerun configure.
15247 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15248 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15249 # following values.
15251 _ACEOF
15253 # The following way of writing the cache mishandles newlines in values,
15254 # but we know of no workaround that is simple, portable, and efficient.
15255 # So, we kill variables containing newlines.
15256 # Ultrix sh set writes to stderr and can't be redirected directly,
15257 # and sets the high bit in the cache file unless we assign to the vars.
15259 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15260 eval ac_val=\$$ac_var
15261 case $ac_val in #(
15262 *${as_nl}*)
15263 case $ac_var in #(
15264 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15265 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15266 esac
15267 case $ac_var in #(
15268 _ | IFS | as_nl) ;; #(
15269 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15270 *) { eval $ac_var=; unset $ac_var;} ;;
15271 esac ;;
15272 esac
15273 done
15275 (set) 2>&1 |
15276 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15277 *${as_nl}ac_space=\ *)
15278 # `set' does not quote correctly, so add quotes: double-quote
15279 # substitution turns \\\\ into \\, and sed turns \\ into \.
15280 sed -n \
15281 "s/'/'\\\\''/g;
15282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15283 ;; #(
15285 # `set' quotes correctly as required by POSIX, so do not add quotes.
15286 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15288 esac |
15289 sort
15291 sed '
15292 /^ac_cv_env_/b end
15293 t clear
15294 :clear
15295 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15296 t end
15297 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15298 :end' >>confcache
15299 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15300 if test -w "$cache_file"; then
15301 if test "x$cache_file" != "x/dev/null"; then
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15303 $as_echo "$as_me: updating cache $cache_file" >&6;}
15304 if test ! -f "$cache_file" || test -h "$cache_file"; then
15305 cat confcache >"$cache_file"
15306 else
15307 case $cache_file in #(
15308 */* | ?:*)
15309 mv -f confcache "$cache_file"$$ &&
15310 mv -f "$cache_file"$$ "$cache_file" ;; #(
15312 mv -f confcache "$cache_file" ;;
15313 esac
15316 else
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15318 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15321 rm -f confcache
15323 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15324 # Let make expand exec_prefix.
15325 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15327 DEFS=-DHAVE_CONFIG_H
15329 ac_libobjs=
15330 ac_ltlibobjs=
15332 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15333 # 1. Remove the extension, and $U if already installed.
15334 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15335 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15336 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15337 # will be set to the directory where LIBOBJS objects are built.
15338 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15339 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15340 done
15341 LIBOBJS=$ac_libobjs
15343 LTLIBOBJS=$ac_ltlibobjs
15347 : "${CONFIG_STATUS=./config.status}"
15348 ac_write_fail=0
15349 ac_clean_files_save=$ac_clean_files
15350 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15352 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15353 as_write_fail=0
15354 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15355 #! $SHELL
15356 # Generated by $as_me.
15357 # Run this file to recreate the current configuration.
15358 # Compiler output produced by configure, useful for debugging
15359 # configure, is in config.log if it exists.
15361 debug=false
15362 ac_cs_recheck=false
15363 ac_cs_silent=false
15365 SHELL=\${CONFIG_SHELL-$SHELL}
15366 export SHELL
15367 _ASEOF
15368 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15369 ## -------------------- ##
15370 ## M4sh Initialization. ##
15371 ## -------------------- ##
15373 # Be more Bourne compatible
15374 DUALCASE=1; export DUALCASE # for MKS sh
15375 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15376 emulate sh
15377 NULLCMD=:
15378 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15379 # is contrary to our usage. Disable this feature.
15380 alias -g '${1+"$@"}'='"$@"'
15381 setopt NO_GLOB_SUBST
15382 else
15383 case `(set -o) 2>/dev/null` in #(
15384 *posix*) :
15385 set -o posix ;; #(
15386 *) :
15388 esac
15392 as_nl='
15394 export as_nl
15395 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15396 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15397 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15398 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15399 # Prefer a ksh shell builtin over an external printf program on Solaris,
15400 # but without wasting forks for bash or zsh.
15401 if test -z "$BASH_VERSION$ZSH_VERSION" \
15402 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15403 as_echo='print -r --'
15404 as_echo_n='print -rn --'
15405 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15406 as_echo='printf %s\n'
15407 as_echo_n='printf %s'
15408 else
15409 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15410 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15411 as_echo_n='/usr/ucb/echo -n'
15412 else
15413 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15414 as_echo_n_body='eval
15415 arg=$1;
15416 case $arg in #(
15417 *"$as_nl"*)
15418 expr "X$arg" : "X\\(.*\\)$as_nl";
15419 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15420 esac;
15421 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15423 export as_echo_n_body
15424 as_echo_n='sh -c $as_echo_n_body as_echo'
15426 export as_echo_body
15427 as_echo='sh -c $as_echo_body as_echo'
15430 # The user is always right.
15431 if test "${PATH_SEPARATOR+set}" != set; then
15432 PATH_SEPARATOR=:
15433 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15434 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15435 PATH_SEPARATOR=';'
15440 # IFS
15441 # We need space, tab and new line, in precisely that order. Quoting is
15442 # there to prevent editors from complaining about space-tab.
15443 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15444 # splitting by setting IFS to empty value.)
15445 IFS=" "" $as_nl"
15447 # Find who we are. Look in the path if we contain no directory separator.
15448 as_myself=
15449 case $0 in #((
15450 *[\\/]* ) as_myself=$0 ;;
15451 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15452 for as_dir in $PATH
15454 IFS=$as_save_IFS
15455 test -z "$as_dir" && as_dir=.
15456 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15457 done
15458 IFS=$as_save_IFS
15461 esac
15462 # We did not find ourselves, most probably we were run as `sh COMMAND'
15463 # in which case we are not to be found in the path.
15464 if test "x$as_myself" = x; then
15465 as_myself=$0
15467 if test ! -f "$as_myself"; then
15468 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15469 exit 1
15472 # Unset variables that we do not need and which cause bugs (e.g. in
15473 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15474 # suppresses any "Segmentation fault" message there. '((' could
15475 # trigger a bug in pdksh 5.2.14.
15476 for as_var in BASH_ENV ENV MAIL MAILPATH
15477 do eval test x\${$as_var+set} = xset \
15478 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15479 done
15480 PS1='$ '
15481 PS2='> '
15482 PS4='+ '
15484 # NLS nuisances.
15485 LC_ALL=C
15486 export LC_ALL
15487 LANGUAGE=C
15488 export LANGUAGE
15490 # CDPATH.
15491 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15494 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15495 # ----------------------------------------
15496 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15497 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15498 # script with STATUS, using 1 if that was 0.
15499 as_fn_error ()
15501 as_status=$1; test $as_status -eq 0 && as_status=1
15502 if test "$4"; then
15503 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15504 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15506 $as_echo "$as_me: error: $2" >&2
15507 as_fn_exit $as_status
15508 } # as_fn_error
15511 # as_fn_set_status STATUS
15512 # -----------------------
15513 # Set $? to STATUS, without forking.
15514 as_fn_set_status ()
15516 return $1
15517 } # as_fn_set_status
15519 # as_fn_exit STATUS
15520 # -----------------
15521 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15522 as_fn_exit ()
15524 set +e
15525 as_fn_set_status $1
15526 exit $1
15527 } # as_fn_exit
15529 # as_fn_unset VAR
15530 # ---------------
15531 # Portably unset VAR.
15532 as_fn_unset ()
15534 { eval $1=; unset $1;}
15536 as_unset=as_fn_unset
15537 # as_fn_append VAR VALUE
15538 # ----------------------
15539 # Append the text in VALUE to the end of the definition contained in VAR. Take
15540 # advantage of any shell optimizations that allow amortized linear growth over
15541 # repeated appends, instead of the typical quadratic growth present in naive
15542 # implementations.
15543 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15544 eval 'as_fn_append ()
15546 eval $1+=\$2
15548 else
15549 as_fn_append ()
15551 eval $1=\$$1\$2
15553 fi # as_fn_append
15555 # as_fn_arith ARG...
15556 # ------------------
15557 # Perform arithmetic evaluation on the ARGs, and store the result in the
15558 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15559 # must be portable across $(()) and expr.
15560 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15561 eval 'as_fn_arith ()
15563 as_val=$(( $* ))
15565 else
15566 as_fn_arith ()
15568 as_val=`expr "$@" || test $? -eq 1`
15570 fi # as_fn_arith
15573 if expr a : '\(a\)' >/dev/null 2>&1 &&
15574 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15575 as_expr=expr
15576 else
15577 as_expr=false
15580 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15581 as_basename=basename
15582 else
15583 as_basename=false
15586 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15587 as_dirname=dirname
15588 else
15589 as_dirname=false
15592 as_me=`$as_basename -- "$0" ||
15593 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15594 X"$0" : 'X\(//\)$' \| \
15595 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15596 $as_echo X/"$0" |
15597 sed '/^.*\/\([^/][^/]*\)\/*$/{
15598 s//\1/
15601 /^X\/\(\/\/\)$/{
15602 s//\1/
15605 /^X\/\(\/\).*/{
15606 s//\1/
15609 s/.*/./; q'`
15611 # Avoid depending upon Character Ranges.
15612 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15613 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15614 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15615 as_cr_digits='0123456789'
15616 as_cr_alnum=$as_cr_Letters$as_cr_digits
15618 ECHO_C= ECHO_N= ECHO_T=
15619 case `echo -n x` in #(((((
15620 -n*)
15621 case `echo 'xy\c'` in
15622 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15623 xy) ECHO_C='\c';;
15624 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15625 ECHO_T=' ';;
15626 esac;;
15628 ECHO_N='-n';;
15629 esac
15631 rm -f conf$$ conf$$.exe conf$$.file
15632 if test -d conf$$.dir; then
15633 rm -f conf$$.dir/conf$$.file
15634 else
15635 rm -f conf$$.dir
15636 mkdir conf$$.dir 2>/dev/null
15638 if (echo >conf$$.file) 2>/dev/null; then
15639 if ln -s conf$$.file conf$$ 2>/dev/null; then
15640 as_ln_s='ln -s'
15641 # ... but there are two gotchas:
15642 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15643 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15644 # In both cases, we have to default to `cp -pR'.
15645 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15646 as_ln_s='cp -pR'
15647 elif ln conf$$.file conf$$ 2>/dev/null; then
15648 as_ln_s=ln
15649 else
15650 as_ln_s='cp -pR'
15652 else
15653 as_ln_s='cp -pR'
15655 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15656 rmdir conf$$.dir 2>/dev/null
15659 # as_fn_mkdir_p
15660 # -------------
15661 # Create "$as_dir" as a directory, including parents if necessary.
15662 as_fn_mkdir_p ()
15665 case $as_dir in #(
15666 -*) as_dir=./$as_dir;;
15667 esac
15668 test -d "$as_dir" || eval $as_mkdir_p || {
15669 as_dirs=
15670 while :; do
15671 case $as_dir in #(
15672 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15673 *) as_qdir=$as_dir;;
15674 esac
15675 as_dirs="'$as_qdir' $as_dirs"
15676 as_dir=`$as_dirname -- "$as_dir" ||
15677 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15678 X"$as_dir" : 'X\(//\)[^/]' \| \
15679 X"$as_dir" : 'X\(//\)$' \| \
15680 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15681 $as_echo X"$as_dir" |
15682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15683 s//\1/
15686 /^X\(\/\/\)[^/].*/{
15687 s//\1/
15690 /^X\(\/\/\)$/{
15691 s//\1/
15694 /^X\(\/\).*/{
15695 s//\1/
15698 s/.*/./; q'`
15699 test -d "$as_dir" && break
15700 done
15701 test -z "$as_dirs" || eval "mkdir $as_dirs"
15702 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15705 } # as_fn_mkdir_p
15706 if mkdir -p . 2>/dev/null; then
15707 as_mkdir_p='mkdir -p "$as_dir"'
15708 else
15709 test -d ./-p && rmdir ./-p
15710 as_mkdir_p=false
15714 # as_fn_executable_p FILE
15715 # -----------------------
15716 # Test if FILE is an executable regular file.
15717 as_fn_executable_p ()
15719 test -f "$1" && test -x "$1"
15720 } # as_fn_executable_p
15721 as_test_x='test -x'
15722 as_executable_p=as_fn_executable_p
15724 # Sed expression to map a string onto a valid CPP name.
15725 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15727 # Sed expression to map a string onto a valid variable name.
15728 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15731 exec 6>&1
15732 ## ----------------------------------- ##
15733 ## Main body of $CONFIG_STATUS script. ##
15734 ## ----------------------------------- ##
15735 _ASEOF
15736 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15739 # Save the log message, to keep $0 and so on meaningful, and to
15740 # report actual input values of CONFIG_FILES etc. instead of their
15741 # values after options handling.
15742 ac_log="
15743 This file was extended by $as_me, which was
15744 generated by GNU Autoconf 2.69. Invocation command line was
15746 CONFIG_FILES = $CONFIG_FILES
15747 CONFIG_HEADERS = $CONFIG_HEADERS
15748 CONFIG_LINKS = $CONFIG_LINKS
15749 CONFIG_COMMANDS = $CONFIG_COMMANDS
15750 $ $0 $@
15752 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15755 _ACEOF
15757 case $ac_config_files in *"
15758 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15759 esac
15761 case $ac_config_headers in *"
15762 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15763 esac
15766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15767 # Files that config.status was made for.
15768 config_files="$ac_config_files"
15769 config_headers="$ac_config_headers"
15770 config_commands="$ac_config_commands"
15772 _ACEOF
15774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15775 ac_cs_usage="\
15776 \`$as_me' instantiates files and other configuration actions
15777 from templates according to the current configuration. Unless the files
15778 and actions are specified as TAGs, all are instantiated by default.
15780 Usage: $0 [OPTION]... [TAG]...
15782 -h, --help print this help, then exit
15783 -V, --version print version number and configuration settings, then exit
15784 --config print configuration, then exit
15785 -q, --quiet, --silent
15786 do not print progress messages
15787 -d, --debug don't remove temporary files
15788 --recheck update $as_me by reconfiguring in the same conditions
15789 --file=FILE[:TEMPLATE]
15790 instantiate the configuration file FILE
15791 --header=FILE[:TEMPLATE]
15792 instantiate the configuration header FILE
15794 Configuration files:
15795 $config_files
15797 Configuration headers:
15798 $config_headers
15800 Configuration commands:
15801 $config_commands
15803 Report bugs to the package provider."
15805 _ACEOF
15806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15807 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15808 ac_cs_version="\\
15809 config.status
15810 configured by $0, generated by GNU Autoconf 2.69,
15811 with options \\"\$ac_cs_config\\"
15813 Copyright (C) 2012 Free Software Foundation, Inc.
15814 This config.status script is free software; the Free Software Foundation
15815 gives unlimited permission to copy, distribute and modify it."
15817 ac_pwd='$ac_pwd'
15818 srcdir='$srcdir'
15819 test -n "\$AWK" || AWK=awk
15820 _ACEOF
15822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15823 # The default lists apply if the user does not specify any file.
15824 ac_need_defaults=:
15825 while test $# != 0
15827 case $1 in
15828 --*=?*)
15829 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15830 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15831 ac_shift=:
15833 --*=)
15834 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15835 ac_optarg=
15836 ac_shift=:
15839 ac_option=$1
15840 ac_optarg=$2
15841 ac_shift=shift
15843 esac
15845 case $ac_option in
15846 # Handling of the options.
15847 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15848 ac_cs_recheck=: ;;
15849 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15850 $as_echo "$ac_cs_version"; exit ;;
15851 --config | --confi | --conf | --con | --co | --c )
15852 $as_echo "$ac_cs_config"; exit ;;
15853 --debug | --debu | --deb | --de | --d | -d )
15854 debug=: ;;
15855 --file | --fil | --fi | --f )
15856 $ac_shift
15857 case $ac_optarg in
15858 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15859 '') as_fn_error $? "missing file argument" ;;
15860 esac
15861 as_fn_append CONFIG_FILES " '$ac_optarg'"
15862 ac_need_defaults=false;;
15863 --header | --heade | --head | --hea )
15864 $ac_shift
15865 case $ac_optarg in
15866 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15867 esac
15868 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15869 ac_need_defaults=false;;
15870 --he | --h)
15871 # Conflict between --help and --header
15872 as_fn_error $? "ambiguous option: \`$1'
15873 Try \`$0 --help' for more information.";;
15874 --help | --hel | -h )
15875 $as_echo "$ac_cs_usage"; exit ;;
15876 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15877 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15878 ac_cs_silent=: ;;
15880 # This is an error.
15881 -*) as_fn_error $? "unrecognized option: \`$1'
15882 Try \`$0 --help' for more information." ;;
15884 *) as_fn_append ac_config_targets " $1"
15885 ac_need_defaults=false ;;
15887 esac
15888 shift
15889 done
15891 ac_configure_extra_args=
15893 if $ac_cs_silent; then
15894 exec 6>/dev/null
15895 ac_configure_extra_args="$ac_configure_extra_args --silent"
15898 _ACEOF
15899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15900 if \$ac_cs_recheck; then
15901 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15902 shift
15903 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15904 CONFIG_SHELL='$SHELL'
15905 export CONFIG_SHELL
15906 exec "\$@"
15909 _ACEOF
15910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15911 exec 5>>config.log
15913 echo
15914 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15915 ## Running $as_me. ##
15916 _ASBOX
15917 $as_echo "$ac_log"
15918 } >&5
15920 _ACEOF
15921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15923 # INIT-COMMANDS
15926 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
15927 aros_tools_dir=${aros_tools_dir}
15931 aros_host_exe_suffix=${aros_host_exe_suffix}
15932 aros_tools_dir=${aros_tools_dir}
15933 aros_target_cpu=${aros_target_cpu}
15934 aros_target_arch=${aros_target_arch}
15935 aros_target_suffix=${aros_target_suffix}
15936 orig_target_nm=${orig_target_nm}
15937 orig_target_as=${orig_target_as}
15938 orig_target_ar=${orig_target_ar}
15939 orig_target_ranlib=${orig_target_ranlib}
15940 orig_target_objdump=${orig_target_objdump}
15941 orig_target_objcopy=${orig_target_objcopy}
15942 orig_target_strip=${orig_target_strip}
15943 aros_kernel_ld=${aros_kernel_ld}
15947 aros_host_exe_suffix=${aros_host_exe_suffix}
15948 aros_tools_dir=${aros_tools_dir}
15949 aros_target_cpu=${aros_target_cpu}
15950 aros_target_arch=${aros_target_arch}
15951 aros_target_suffix=${aros_target_suffix}
15952 aros_kernel_ld=${aros_kernel_ld}
15956 aros_host_exe_suffix=${aros_host_exe_suffix}
15957 aros_tools_dir=${aros_tools_dir}
15958 aros_target_cpu=${aros_target_cpu}
15959 aros_target_arch=${aros_target_arch}
15960 aros_target_suffix=${aros_target_suffix}
15964 _ACEOF
15966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15968 # Handling of arguments.
15969 for ac_config_target in $ac_config_targets
15971 case $ac_config_target in
15972 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15973 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15974 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15975 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15976 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15977 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15978 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15979 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15980 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15981 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15982 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
15983 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15984 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15985 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
15986 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15987 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15988 "${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" ;;
15989 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15990 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15991 "${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" ;;
15992 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15993 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15994 "${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" ;;
15995 "${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" ;;
15996 "${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" ;;
15997 "${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" ;;
15998 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16000 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16001 esac
16002 done
16005 # If the user did not use the arguments to specify the items to instantiate,
16006 # then the envvar interface is used. Set only those that are not.
16007 # We use the long form for the default assignment because of an extremely
16008 # bizarre bug on SunOS 4.1.3.
16009 if $ac_need_defaults; then
16010 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16011 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16012 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16015 # Have a temporary directory for convenience. Make it in the build tree
16016 # simply because there is no reason against having it here, and in addition,
16017 # creating and moving files from /tmp can sometimes cause problems.
16018 # Hook for its removal unless debugging.
16019 # Note that there is a small window in which the directory will not be cleaned:
16020 # after its creation but before its name has been assigned to `$tmp'.
16021 $debug ||
16023 tmp= ac_tmp=
16024 trap 'exit_status=$?
16025 : "${ac_tmp:=$tmp}"
16026 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16028 trap 'as_fn_exit 1' 1 2 13 15
16030 # Create a (secure) tmp directory for tmp files.
16033 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16034 test -d "$tmp"
16035 } ||
16037 tmp=./conf$$-$RANDOM
16038 (umask 077 && mkdir "$tmp")
16039 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16040 ac_tmp=$tmp
16042 # Set up the scripts for CONFIG_FILES section.
16043 # No need to generate them if there are no CONFIG_FILES.
16044 # This happens for instance with `./config.status config.h'.
16045 if test -n "$CONFIG_FILES"; then
16048 ac_cr=`echo X | tr X '\015'`
16049 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16050 # But we know of no other shell where ac_cr would be empty at this
16051 # point, so we can use a bashism as a fallback.
16052 if test "x$ac_cr" = x; then
16053 eval ac_cr=\$\'\\r\'
16055 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16056 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16057 ac_cs_awk_cr='\\r'
16058 else
16059 ac_cs_awk_cr=$ac_cr
16062 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16063 _ACEOF
16067 echo "cat >conf$$subs.awk <<_ACEOF" &&
16068 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16069 echo "_ACEOF"
16070 } >conf$$subs.sh ||
16071 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16072 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16073 ac_delim='%!_!# '
16074 for ac_last_try in false false false false false :; do
16075 . ./conf$$subs.sh ||
16076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16078 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16079 if test $ac_delim_n = $ac_delim_num; then
16080 break
16081 elif $ac_last_try; then
16082 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16083 else
16084 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16086 done
16087 rm -f conf$$subs.sh
16089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16090 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16091 _ACEOF
16092 sed -n '
16094 s/^/S["/; s/!.*/"]=/
16097 s/^[^!]*!//
16098 :repl
16099 t repl
16100 s/'"$ac_delim"'$//
16101 t delim
16104 s/\(.\{148\}\)..*/\1/
16105 t more1
16106 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16109 b repl
16110 :more1
16111 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16114 s/.\{148\}//
16115 t nl
16116 :delim
16118 s/\(.\{148\}\)..*/\1/
16119 t more2
16120 s/["\\]/\\&/g; s/^/"/; s/$/"/
16123 :more2
16124 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16127 s/.\{148\}//
16128 t delim
16129 ' <conf$$subs.awk | sed '
16130 /^[^""]/{
16132 s/\n//
16134 ' >>$CONFIG_STATUS || ac_write_fail=1
16135 rm -f conf$$subs.awk
16136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16137 _ACAWK
16138 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16139 for (key in S) S_is_set[key] = 1
16140 FS = "\a"
16144 line = $ 0
16145 nfields = split(line, field, "@")
16146 substed = 0
16147 len = length(field[1])
16148 for (i = 2; i < nfields; i++) {
16149 key = field[i]
16150 keylen = length(key)
16151 if (S_is_set[key]) {
16152 value = S[key]
16153 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16154 len += length(value) + length(field[++i])
16155 substed = 1
16156 } else
16157 len += 1 + keylen
16160 print line
16163 _ACAWK
16164 _ACEOF
16165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16166 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16167 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16168 else
16170 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16171 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16172 _ACEOF
16174 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16175 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16176 # trailing colons and then remove the whole line if VPATH becomes empty
16177 # (actually we leave an empty line to preserve line numbers).
16178 if test "x$srcdir" = x.; then
16179 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16181 s///
16182 s/^/:/
16183 s/[ ]*$/:/
16184 s/:\$(srcdir):/:/g
16185 s/:\${srcdir}:/:/g
16186 s/:@srcdir@:/:/g
16187 s/^:*//
16188 s/:*$//
16190 s/\(=[ ]*\).*/\1/
16192 s/\n//
16193 s/^[^=]*=[ ]*$//
16197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16198 fi # test -n "$CONFIG_FILES"
16200 # Set up the scripts for CONFIG_HEADERS section.
16201 # No need to generate them if there are no CONFIG_HEADERS.
16202 # This happens for instance with `./config.status Makefile'.
16203 if test -n "$CONFIG_HEADERS"; then
16204 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16205 BEGIN {
16206 _ACEOF
16208 # Transform confdefs.h into an awk script `defines.awk', embedded as
16209 # here-document in config.status, that substitutes the proper values into
16210 # config.h.in to produce config.h.
16212 # Create a delimiter string that does not exist in confdefs.h, to ease
16213 # handling of long lines.
16214 ac_delim='%!_!# '
16215 for ac_last_try in false false :; do
16216 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16217 if test -z "$ac_tt"; then
16218 break
16219 elif $ac_last_try; then
16220 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16221 else
16222 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16224 done
16226 # For the awk script, D is an array of macro values keyed by name,
16227 # likewise P contains macro parameters if any. Preserve backslash
16228 # newline sequences.
16230 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16231 sed -n '
16232 s/.\{148\}/&'"$ac_delim"'/g
16233 t rset
16234 :rset
16235 s/^[ ]*#[ ]*define[ ][ ]*/ /
16236 t def
16238 :def
16239 s/\\$//
16240 t bsnl
16241 s/["\\]/\\&/g
16242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16243 D["\1"]=" \3"/p
16244 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16246 :bsnl
16247 s/["\\]/\\&/g
16248 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16249 D["\1"]=" \3\\\\\\n"\\/p
16250 t cont
16251 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16252 t cont
16254 :cont
16256 s/.\{148\}/&'"$ac_delim"'/g
16257 t clear
16258 :clear
16259 s/\\$//
16260 t bsnlc
16261 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16263 :bsnlc
16264 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16265 b cont
16266 ' <confdefs.h | sed '
16267 s/'"$ac_delim"'/"\\\
16268 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16271 for (key in D) D_is_set[key] = 1
16272 FS = "\a"
16274 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16275 line = \$ 0
16276 split(line, arg, " ")
16277 if (arg[1] == "#") {
16278 defundef = arg[2]
16279 mac1 = arg[3]
16280 } else {
16281 defundef = substr(arg[1], 2)
16282 mac1 = arg[2]
16284 split(mac1, mac2, "(") #)
16285 macro = mac2[1]
16286 prefix = substr(line, 1, index(line, defundef) - 1)
16287 if (D_is_set[macro]) {
16288 # Preserve the white space surrounding the "#".
16289 print prefix "define", macro P[macro] D[macro]
16290 next
16291 } else {
16292 # Replace #undef with comments. This is necessary, for example,
16293 # in the case of _POSIX_SOURCE, which is predefined and required
16294 # on some systems where configure will not decide to define it.
16295 if (defundef == "undef") {
16296 print "/*", prefix defundef, macro, "*/"
16297 next
16301 { print }
16302 _ACAWK
16303 _ACEOF
16304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16305 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16306 fi # test -n "$CONFIG_HEADERS"
16309 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16310 shift
16311 for ac_tag
16313 case $ac_tag in
16314 :[FHLC]) ac_mode=$ac_tag; continue;;
16315 esac
16316 case $ac_mode$ac_tag in
16317 :[FHL]*:*);;
16318 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16319 :[FH]-) ac_tag=-:-;;
16320 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16321 esac
16322 ac_save_IFS=$IFS
16323 IFS=:
16324 set x $ac_tag
16325 IFS=$ac_save_IFS
16326 shift
16327 ac_file=$1
16328 shift
16330 case $ac_mode in
16331 :L) ac_source=$1;;
16332 :[FH])
16333 ac_file_inputs=
16334 for ac_f
16336 case $ac_f in
16337 -) ac_f="$ac_tmp/stdin";;
16338 *) # Look for the file first in the build tree, then in the source tree
16339 # (if the path is not absolute). The absolute path cannot be DOS-style,
16340 # because $ac_f cannot contain `:'.
16341 test -f "$ac_f" ||
16342 case $ac_f in
16343 [\\/$]*) false;;
16344 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16345 esac ||
16346 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16347 esac
16348 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16349 as_fn_append ac_file_inputs " '$ac_f'"
16350 done
16352 # Let's still pretend it is `configure' which instantiates (i.e., don't
16353 # use $as_me), people would be surprised to read:
16354 # /* config.h. Generated by config.status. */
16355 configure_input='Generated from '`
16356 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16357 `' by configure.'
16358 if test x"$ac_file" != x-; then
16359 configure_input="$ac_file. $configure_input"
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16361 $as_echo "$as_me: creating $ac_file" >&6;}
16363 # Neutralize special characters interpreted by sed in replacement strings.
16364 case $configure_input in #(
16365 *\&* | *\|* | *\\* )
16366 ac_sed_conf_input=`$as_echo "$configure_input" |
16367 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16368 *) ac_sed_conf_input=$configure_input;;
16369 esac
16371 case $ac_tag in
16372 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16374 esac
16376 esac
16378 ac_dir=`$as_dirname -- "$ac_file" ||
16379 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16380 X"$ac_file" : 'X\(//\)[^/]' \| \
16381 X"$ac_file" : 'X\(//\)$' \| \
16382 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16383 $as_echo X"$ac_file" |
16384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16385 s//\1/
16388 /^X\(\/\/\)[^/].*/{
16389 s//\1/
16392 /^X\(\/\/\)$/{
16393 s//\1/
16396 /^X\(\/\).*/{
16397 s//\1/
16400 s/.*/./; q'`
16401 as_dir="$ac_dir"; as_fn_mkdir_p
16402 ac_builddir=.
16404 case "$ac_dir" in
16405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16408 # A ".." for each directory in $ac_dir_suffix.
16409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16410 case $ac_top_builddir_sub in
16411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16413 esac ;;
16414 esac
16415 ac_abs_top_builddir=$ac_pwd
16416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16417 # for backward compatibility:
16418 ac_top_builddir=$ac_top_build_prefix
16420 case $srcdir in
16421 .) # We are building in place.
16422 ac_srcdir=.
16423 ac_top_srcdir=$ac_top_builddir_sub
16424 ac_abs_top_srcdir=$ac_pwd ;;
16425 [\\/]* | ?:[\\/]* ) # Absolute name.
16426 ac_srcdir=$srcdir$ac_dir_suffix;
16427 ac_top_srcdir=$srcdir
16428 ac_abs_top_srcdir=$srcdir ;;
16429 *) # Relative name.
16430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16431 ac_top_srcdir=$ac_top_build_prefix$srcdir
16432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16433 esac
16434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16437 case $ac_mode in
16440 # CONFIG_FILE
16443 _ACEOF
16445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16446 # If the template does not know about datarootdir, expand it.
16447 # FIXME: This hack should be removed a few years after 2.60.
16448 ac_datarootdir_hack=; ac_datarootdir_seen=
16449 ac_sed_dataroot='
16450 /datarootdir/ {
16454 /@datadir@/p
16455 /@docdir@/p
16456 /@infodir@/p
16457 /@localedir@/p
16458 /@mandir@/p'
16459 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16460 *datarootdir*) ac_datarootdir_seen=yes;;
16461 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16463 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16464 _ACEOF
16465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16466 ac_datarootdir_hack='
16467 s&@datadir@&$datadir&g
16468 s&@docdir@&$docdir&g
16469 s&@infodir@&$infodir&g
16470 s&@localedir@&$localedir&g
16471 s&@mandir@&$mandir&g
16472 s&\\\${datarootdir}&$datarootdir&g' ;;
16473 esac
16474 _ACEOF
16476 # Neutralize VPATH when `$srcdir' = `.'.
16477 # Shell code in configure.ac might set extrasub.
16478 # FIXME: do we really want to maintain this feature?
16479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16480 ac_sed_extra="$ac_vpsub
16481 $extrasub
16482 _ACEOF
16483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16485 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16486 s|@configure_input@|$ac_sed_conf_input|;t t
16487 s&@top_builddir@&$ac_top_builddir_sub&;t t
16488 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16489 s&@srcdir@&$ac_srcdir&;t t
16490 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16491 s&@top_srcdir@&$ac_top_srcdir&;t t
16492 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16493 s&@builddir@&$ac_builddir&;t t
16494 s&@abs_builddir@&$ac_abs_builddir&;t t
16495 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16496 $ac_datarootdir_hack
16498 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16499 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16501 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16502 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16503 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16504 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16506 which seems to be undefined. Please make sure it is defined" >&5
16507 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16508 which seems to be undefined. Please make sure it is defined" >&2;}
16510 rm -f "$ac_tmp/stdin"
16511 case $ac_file in
16512 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16513 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16514 esac \
16515 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16519 # CONFIG_HEADER
16521 if test x"$ac_file" != x-; then
16523 $as_echo "/* $configure_input */" \
16524 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16525 } >"$ac_tmp/config.h" \
16526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16527 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16529 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16530 else
16531 rm -f "$ac_file"
16532 mv "$ac_tmp/config.h" "$ac_file" \
16533 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16535 else
16536 $as_echo "/* $configure_input */" \
16537 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16538 || as_fn_error $? "could not create -" "$LINENO" 5
16542 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16543 $as_echo "$as_me: executing $ac_file commands" >&6;}
16545 esac
16548 case $ac_file$ac_mode in
16549 "genmf-executable-support":C)
16550 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16551 chmod a+x ${aros_tools_dir}/genmf.py
16553 "binutils-support":C)
16554 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16555 mkdir -p $prefix
16556 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16558 chmod a+x ${prefix2}-ld
16560 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16561 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16562 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16563 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16564 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16565 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16566 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16568 "elf-compiler-support":C)
16569 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16570 mkdir -p $prefix
16571 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16573 chmod a+x ${prefix2}-gcc
16575 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16577 "host-compiler-wrapper-support":C)
16578 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16579 mkdir -p $prefix
16580 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16582 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16585 esac
16586 done # for ac_tag
16589 as_fn_exit 0
16590 _ACEOF
16591 ac_clean_files=$ac_clean_files_save
16593 test $ac_write_fail = 0 ||
16594 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16597 # configure is writing to config.log, and then calls config.status.
16598 # config.status does its own redirection, appending to config.log.
16599 # Unfortunately, on DOS this fails, as config.log is still kept open
16600 # by configure, so config.status won't be able to write to it; its
16601 # output is simply discarded. So we exec the FD to /dev/null,
16602 # effectively closing config.log, so it can be properly (re)opened and
16603 # appended to by config.status. When coming back to configure, we
16604 # need to make the FD available again.
16605 if test "$no_create" != yes; then
16606 ac_cs_success=:
16607 ac_config_status_args=
16608 test "$silent" = yes &&
16609 ac_config_status_args="$ac_config_status_args --quiet"
16610 exec 5>/dev/null
16611 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16612 exec 5>>config.log
16613 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16614 # would make configure fail if this is the last instruction.
16615 $ac_cs_success || as_fn_exit 1
16617 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16619 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16624 #XXX compatability...
16625 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16627 if test -n "$aros_shared_cflags" ; then
16628 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16629 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg