use RGBA if it is defined (todo: use the preferred option for the target). expand...
[AROS.git] / configure
blobf9078034a7e71552f2e51a7a06b93f75cc6407bf
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 java_target
626 objc_target
627 target_binutils_version
628 gcc_target_cpu
629 ignore_undefined_symbols
630 aros_modules_debug
631 aros_stack_debug
632 aros_mungwall_debug
633 aros_debug
634 ENABLE_X11
635 KERNEL_DBUS_INCLUDES
636 KERNEL_DBUS_KOBJ
637 DBUS_LIBFLAGS
638 DBUS_CFLAGS
639 ENABLE_DBUS
640 aros_android_antapk
641 aros_android_level
642 gcc_default_mode
643 gcc_default_float_abi
644 gcc_default_fpu
645 gcc_default_cpu_tune
646 gcc_default_cpu
647 aros_ios_sdk
648 aros_ios_version
649 aros_ios_platform
650 aros_enable_mmu
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 ENABLE_EXECSMP
654 PLATFORM_EXECSMP
655 aros_serial_debug
656 target_grub2_version
657 aros_host_sdl_libs
658 aros_host_sdl_cflags
659 aros_host_x11_ldflags
660 aros_host_x11_cflags
661 DO_VIDMODE_SUPPORT
662 DO_XSHM_SUPPORT
663 aros_nominal_depth
664 aros_nominal_height
665 aros_nominal_width
666 pci_hidd_target
667 host_android_gfx
668 host_sdl_gfx
669 host_x_gfx
670 crosstools_cxx_target
671 crosstools_target
672 aros_isa_flags
673 aros_isa_extra
674 aros_optimization_cflags
675 aros_config_coverage
676 aros_config_lto
677 aros_target_strip_flags
678 aros_target_genmap
679 aros_debug_ldflags
680 aros_debug_aflags
681 aros_debug_cxxflags
682 aros_debug_cflags
683 aros_debug_cppflags
684 aros_kernel_ldflags
685 aros_kernel_objcflags
686 aros_kernel_includes
687 aros_kernel_cflags
688 aros_kernel_cppflags
689 aros_kernel_sysroot
690 aros_config_ldflags
691 aros_config_aflags
692 aros_config_cxxflags
693 aros_config_cflags
694 aros_config_cppflags
695 aros_nowarn_flags
696 aros_warn_flags
697 aros_config_sysroot
698 aros_shared_ldflags
699 aros_shared_aflags
700 aros_shared_cflags
701 aros_arch_libs
702 aros_compiler_libs
703 spec_obj_format
704 aros_object_format
705 aros_shared_ld
706 aros_shared_default
707 aros_target_nm
708 aros_target_strip
709 aros_target_objcopy
710 aros_target_objdump
711 aros_target_cc_path
712 aros_target_cc_includes
713 aros_target_ld
714 aros_target_as
715 aros_target_cpp
716 aros_target_cxx
717 aros_target_cc
718 aros_plain_ar
719 aros_plain_nm
720 aros_target_ranlib
721 aros_target_ar
722 aros_target_suffix
723 aros_target_variant
724 aros_target_cpu_mode
725 aros_target_cpu
726 aros_target_family
727 aros_target_arch
728 aros_target_bootloader
729 aros_target_iconset
730 aros_target_guitheme
731 aros_tools_dir
732 aros_host_lib_suffix
733 aros_host_exe_suffix
734 aros_host_mkargs
735 aros_host_mkdep
736 aros_host_debug
737 aros_host_ldflags
738 gnu89_inline
739 aros_host_cxxflags
740 aros_host_cflags
741 aros_host_cppflags
742 aros_host_make
743 aros_host_cxx
744 aros_host_cc
745 aros_host_def_cc
746 aros_host_cpp
747 aros_host_cpu
748 aros_host_arch
749 aros_cc_pre
750 aros_amigaos_compliance
751 AROS_PORTSSRCDIR
752 AROS_CROSSTOOLSDIR
753 SRCDIR
754 AROS_BUILDDIR_UNIX
755 AROS_BUILDDIR
756 aros_build_host
757 aros_toolchain_ld
758 aros_target_toolchain
759 aros_flavour_uc
760 aros_flavour
761 aros_cpu
762 aros_arch
763 SDL_LIBS
764 SDL_CFLAGS
765 SDL_CONFIG
766 XMKMF
767 kernel_cflags_iquote_end
768 kernel_cflags_iquote
769 host_cflags_iquote_end
770 host_cflags_iquote
771 aros_toolchain
772 aros_target_nostdlib_ldflags
773 aros_target_detach_ldflags
774 aros_target_nix_ldflags
775 aros_target_nostartup_ldflags
776 aros_target_nostdinc_cflags
777 aros_kernel_rescomp
778 orig_target_objdump
779 orig_target_objcopy
780 orig_target_strip
781 orig_target_nm
782 orig_target_ranlib
783 orig_target_ar
784 orig_target_as
785 orig_target_ld
786 orig_target_cxx
787 orig_target_cc
788 orig_target_cpp
789 aros_kernel_objdump
790 aros_kernel_objcopy
791 aros_kernel_strip
792 aros_kernel_nm
793 aros_kernel_ranlib
794 aros_kernel_ar
795 aros_kernel_as
796 aros_kernel_ld
797 aros_kernel_cxx
798 aros_kernel_cc
799 aros_kernel_cpp
800 target_gcc_version
802 android_tool
803 CCACHE
804 DISTCC
805 LIBOBJS
806 EGREP
807 GREP
809 TEST
812 libpng_incdir
813 libpng_libextra
814 libpng
815 arosconfig_use_libpngconfig
816 pkgpyexecdir
817 pyexecdir
818 pkgpythondir
819 pythondir
820 PYTHON_PLATFORM
821 PYTHON_EXEC_PREFIX
822 PYTHON_PREFIX
823 PYTHON_VERSION
824 PYTHON
825 PATCH
826 CHMOD
828 PPMTOILBM
829 PNGTOPNM
830 FLEX
831 BISON
834 UNIQ
835 SORT
836 TOUCH
837 MKDIR
838 ECHO
842 aros_host_strip
843 aros_host_ranlib
844 aros_host_ar
845 aros_host_automake
846 aros_host_autoheader
847 aros_host_autoconf
848 aros_host_aclocal
849 aros_host_ld
850 MMAKE
853 ac_ct_CC
854 CFLAGS
856 OBJEXT
857 EXEEXT
858 ac_ct_CXX
859 CPPFLAGS
860 LDFLAGS
861 CXXFLAGS
863 host_os
864 host_vendor
865 host_cpu
866 host
867 build_os
868 build_vendor
869 build_cpu
870 build
871 target_alias
872 host_alias
873 build_alias
874 LIBS
875 ECHO_T
876 ECHO_N
877 ECHO_C
878 DEFS
879 mandir
880 localedir
881 libdir
882 psdir
883 pdfdir
884 dvidir
885 htmldir
886 infodir
887 docdir
888 oldincludedir
889 includedir
890 runstatedir
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 runstatedir='${localstatedir}/run'
1020 includedir='${prefix}/include'
1021 oldincludedir='/usr/include'
1022 docdir='${datarootdir}/doc/${PACKAGE}'
1023 infodir='${datarootdir}/info'
1024 htmldir='${docdir}'
1025 dvidir='${docdir}'
1026 pdfdir='${docdir}'
1027 psdir='${docdir}'
1028 libdir='${exec_prefix}/lib'
1029 localedir='${datarootdir}/locale'
1030 mandir='${datarootdir}/man'
1032 ac_prev=
1033 ac_dashdash=
1034 for ac_option
1036 # If the previous option needs an argument, assign it.
1037 if test -n "$ac_prev"; then
1038 eval $ac_prev=\$ac_option
1039 ac_prev=
1040 continue
1043 case $ac_option in
1044 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1045 *=) ac_optarg= ;;
1046 *) ac_optarg=yes ;;
1047 esac
1049 # Accept the important Cygnus configure options, so we can diagnose typos.
1051 case $ac_dashdash$ac_option in
1053 ac_dashdash=yes ;;
1055 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1056 ac_prev=bindir ;;
1057 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1058 bindir=$ac_optarg ;;
1060 -build | --build | --buil | --bui | --bu)
1061 ac_prev=build_alias ;;
1062 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1063 build_alias=$ac_optarg ;;
1065 -cache-file | --cache-file | --cache-fil | --cache-fi \
1066 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1067 ac_prev=cache_file ;;
1068 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1069 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1070 cache_file=$ac_optarg ;;
1072 --config-cache | -C)
1073 cache_file=config.cache ;;
1075 -datadir | --datadir | --datadi | --datad)
1076 ac_prev=datadir ;;
1077 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1078 datadir=$ac_optarg ;;
1080 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1081 | --dataroo | --dataro | --datar)
1082 ac_prev=datarootdir ;;
1083 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1084 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1085 datarootdir=$ac_optarg ;;
1087 -disable-* | --disable-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error $? "invalid feature name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1096 "enable_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval enable_$ac_useropt=no ;;
1103 -docdir | --docdir | --docdi | --doc | --do)
1104 ac_prev=docdir ;;
1105 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1106 docdir=$ac_optarg ;;
1108 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1109 ac_prev=dvidir ;;
1110 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1111 dvidir=$ac_optarg ;;
1113 -enable-* | --enable-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid feature name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1122 "enable_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval enable_$ac_useropt=\$ac_optarg ;;
1129 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1130 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1131 | --exec | --exe | --ex)
1132 ac_prev=exec_prefix ;;
1133 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1134 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1135 | --exec=* | --exe=* | --ex=*)
1136 exec_prefix=$ac_optarg ;;
1138 -gas | --gas | --ga | --g)
1139 # Obsolete; use --with-gas.
1140 with_gas=yes ;;
1142 -help | --help | --hel | --he | -h)
1143 ac_init_help=long ;;
1144 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1145 ac_init_help=recursive ;;
1146 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1147 ac_init_help=short ;;
1149 -host | --host | --hos | --ho)
1150 ac_prev=host_alias ;;
1151 -host=* | --host=* | --hos=* | --ho=*)
1152 host_alias=$ac_optarg ;;
1154 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1155 ac_prev=htmldir ;;
1156 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1157 | --ht=*)
1158 htmldir=$ac_optarg ;;
1160 -includedir | --includedir | --includedi | --included | --include \
1161 | --includ | --inclu | --incl | --inc)
1162 ac_prev=includedir ;;
1163 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1164 | --includ=* | --inclu=* | --incl=* | --inc=*)
1165 includedir=$ac_optarg ;;
1167 -infodir | --infodir | --infodi | --infod | --info | --inf)
1168 ac_prev=infodir ;;
1169 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1170 infodir=$ac_optarg ;;
1172 -libdir | --libdir | --libdi | --libd)
1173 ac_prev=libdir ;;
1174 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1175 libdir=$ac_optarg ;;
1177 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1178 | --libexe | --libex | --libe)
1179 ac_prev=libexecdir ;;
1180 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1181 | --libexe=* | --libex=* | --libe=*)
1182 libexecdir=$ac_optarg ;;
1184 -localedir | --localedir | --localedi | --localed | --locale)
1185 ac_prev=localedir ;;
1186 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1187 localedir=$ac_optarg ;;
1189 -localstatedir | --localstatedir | --localstatedi | --localstated \
1190 | --localstate | --localstat | --localsta | --localst | --locals)
1191 ac_prev=localstatedir ;;
1192 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1193 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1194 localstatedir=$ac_optarg ;;
1196 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1197 ac_prev=mandir ;;
1198 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1199 mandir=$ac_optarg ;;
1201 -nfp | --nfp | --nf)
1202 # Obsolete; use --without-fp.
1203 with_fp=no ;;
1205 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1206 | --no-cr | --no-c | -n)
1207 no_create=yes ;;
1209 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1210 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1211 no_recursion=yes ;;
1213 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1214 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1215 | --oldin | --oldi | --old | --ol | --o)
1216 ac_prev=oldincludedir ;;
1217 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1218 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1219 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1220 oldincludedir=$ac_optarg ;;
1222 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1223 ac_prev=prefix ;;
1224 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1225 prefix=$ac_optarg ;;
1227 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1228 | --program-pre | --program-pr | --program-p)
1229 ac_prev=program_prefix ;;
1230 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1231 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1232 program_prefix=$ac_optarg ;;
1234 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1235 | --program-suf | --program-su | --program-s)
1236 ac_prev=program_suffix ;;
1237 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1238 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1239 program_suffix=$ac_optarg ;;
1241 -program-transform-name | --program-transform-name \
1242 | --program-transform-nam | --program-transform-na \
1243 | --program-transform-n | --program-transform- \
1244 | --program-transform | --program-transfor \
1245 | --program-transfo | --program-transf \
1246 | --program-trans | --program-tran \
1247 | --progr-tra | --program-tr | --program-t)
1248 ac_prev=program_transform_name ;;
1249 -program-transform-name=* | --program-transform-name=* \
1250 | --program-transform-nam=* | --program-transform-na=* \
1251 | --program-transform-n=* | --program-transform-=* \
1252 | --program-transform=* | --program-transfor=* \
1253 | --program-transfo=* | --program-transf=* \
1254 | --program-trans=* | --program-tran=* \
1255 | --progr-tra=* | --program-tr=* | --program-t=*)
1256 program_transform_name=$ac_optarg ;;
1258 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1259 ac_prev=pdfdir ;;
1260 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1261 pdfdir=$ac_optarg ;;
1263 -psdir | --psdir | --psdi | --psd | --ps)
1264 ac_prev=psdir ;;
1265 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1266 psdir=$ac_optarg ;;
1268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269 | -silent | --silent | --silen | --sile | --sil)
1270 silent=yes ;;
1272 -runstatedir | --runstatedir | --runstatedi | --runstated \
1273 | --runstate | --runstat | --runsta | --runst | --runs \
1274 | --run | --ru | --r)
1275 ac_prev=runstatedir ;;
1276 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1277 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1278 | --run=* | --ru=* | --r=*)
1279 runstatedir=$ac_optarg ;;
1281 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1282 ac_prev=sbindir ;;
1283 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1284 | --sbi=* | --sb=*)
1285 sbindir=$ac_optarg ;;
1287 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1288 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1289 | --sharedst | --shareds | --shared | --share | --shar \
1290 | --sha | --sh)
1291 ac_prev=sharedstatedir ;;
1292 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1293 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1294 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1295 | --sha=* | --sh=*)
1296 sharedstatedir=$ac_optarg ;;
1298 -site | --site | --sit)
1299 ac_prev=site ;;
1300 -site=* | --site=* | --sit=*)
1301 site=$ac_optarg ;;
1303 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1304 ac_prev=srcdir ;;
1305 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1306 srcdir=$ac_optarg ;;
1308 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1309 | --syscon | --sysco | --sysc | --sys | --sy)
1310 ac_prev=sysconfdir ;;
1311 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1312 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1313 sysconfdir=$ac_optarg ;;
1315 -target | --target | --targe | --targ | --tar | --ta | --t)
1316 ac_prev=target_alias ;;
1317 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1318 target_alias=$ac_optarg ;;
1320 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1321 verbose=yes ;;
1323 -version | --version | --versio | --versi | --vers | -V)
1324 ac_init_version=: ;;
1326 -with-* | --with-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330 as_fn_error $? "invalid package name: $ac_useropt"
1331 ac_useropt_orig=$ac_useropt
1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1335 "with_$ac_useropt"
1336 "*) ;;
1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1338 ac_unrecognized_sep=', ';;
1339 esac
1340 eval with_$ac_useropt=\$ac_optarg ;;
1342 -without-* | --without-*)
1343 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346 as_fn_error $? "invalid package name: $ac_useropt"
1347 ac_useropt_orig=$ac_useropt
1348 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349 case $ac_user_opts in
1351 "with_$ac_useropt"
1352 "*) ;;
1353 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1354 ac_unrecognized_sep=', ';;
1355 esac
1356 eval with_$ac_useropt=no ;;
1358 --x)
1359 # Obsolete; use --with-x.
1360 with_x=yes ;;
1362 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1363 | --x-incl | --x-inc | --x-in | --x-i)
1364 ac_prev=x_includes ;;
1365 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1366 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1367 x_includes=$ac_optarg ;;
1369 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1370 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1371 ac_prev=x_libraries ;;
1372 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1373 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1374 x_libraries=$ac_optarg ;;
1376 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1377 Try \`$0 --help' for more information"
1380 *=*)
1381 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1382 # Reject names that are not valid shell variable names.
1383 case $ac_envvar in #(
1384 '' | [0-9]* | *[!_$as_cr_alnum]* )
1385 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1386 esac
1387 eval $ac_envvar=\$ac_optarg
1388 export $ac_envvar ;;
1391 # FIXME: should be removed in autoconf 3.0.
1392 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1393 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1394 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1395 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1398 esac
1399 done
1401 if test -n "$ac_prev"; then
1402 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1403 as_fn_error $? "missing argument to $ac_option"
1406 if test -n "$ac_unrecognized_opts"; then
1407 case $enable_option_checking in
1408 no) ;;
1409 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1410 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1411 esac
1414 # Check all directory arguments for consistency.
1415 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1416 datadir sysconfdir sharedstatedir localstatedir includedir \
1417 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1418 libdir localedir mandir runstatedir
1420 eval ac_val=\$$ac_var
1421 # Remove trailing slashes.
1422 case $ac_val in
1423 */ )
1424 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1425 eval $ac_var=\$ac_val;;
1426 esac
1427 # Be sure to have absolute directory names.
1428 case $ac_val in
1429 [\\/$]* | ?:[\\/]* ) continue;;
1430 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1431 esac
1432 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1433 done
1435 # There might be people who depend on the old broken behavior: `$host'
1436 # used to hold the argument of --host etc.
1437 # FIXME: To remove some day.
1438 build=$build_alias
1439 host=$host_alias
1440 target=$target_alias
1442 # FIXME: To remove some day.
1443 if test "x$host_alias" != x; then
1444 if test "x$build_alias" = x; then
1445 cross_compiling=maybe
1446 elif test "x$build_alias" != "x$host_alias"; then
1447 cross_compiling=yes
1451 ac_tool_prefix=
1452 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1454 test "$silent" = yes && exec 6>/dev/null
1457 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1458 ac_ls_di=`ls -di .` &&
1459 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1460 as_fn_error $? "working directory cannot be determined"
1461 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1462 as_fn_error $? "pwd does not report name of working directory"
1465 # Find the source files, if location was not specified.
1466 if test -z "$srcdir"; then
1467 ac_srcdir_defaulted=yes
1468 # Try the directory containing this script, then the parent directory.
1469 ac_confdir=`$as_dirname -- "$as_myself" ||
1470 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1471 X"$as_myself" : 'X\(//\)[^/]' \| \
1472 X"$as_myself" : 'X\(//\)$' \| \
1473 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1474 $as_echo X"$as_myself" |
1475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1476 s//\1/
1479 /^X\(\/\/\)[^/].*/{
1480 s//\1/
1483 /^X\(\/\/\)$/{
1484 s//\1/
1487 /^X\(\/\).*/{
1488 s//\1/
1491 s/.*/./; q'`
1492 srcdir=$ac_confdir
1493 if test ! -r "$srcdir/$ac_unique_file"; then
1494 srcdir=..
1496 else
1497 ac_srcdir_defaulted=no
1499 if test ! -r "$srcdir/$ac_unique_file"; then
1500 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1501 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1503 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1504 ac_abs_confdir=`(
1505 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1506 pwd)`
1507 # When building in place, set srcdir=.
1508 if test "$ac_abs_confdir" = "$ac_pwd"; then
1509 srcdir=.
1511 # Remove unnecessary trailing slashes from srcdir.
1512 # Double slashes in file names in object file debugging info
1513 # mess up M-x gdb in Emacs.
1514 case $srcdir in
1515 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1516 esac
1517 for ac_var in $ac_precious_vars; do
1518 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1519 eval ac_env_${ac_var}_value=\$${ac_var}
1520 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1521 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1522 done
1525 # Report the --help message.
1527 if test "$ac_init_help" = "long"; then
1528 # Omit some internal or obsolete options to make the list less imposing.
1529 # This message is too long to be a string in the A/UX 3.1 sh.
1530 cat <<_ACEOF
1531 \`configure' configures this package to adapt to many kinds of systems.
1533 Usage: $0 [OPTION]... [VAR=VALUE]...
1535 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1536 VAR=VALUE. See below for descriptions of some of the useful variables.
1538 Defaults for the options are specified in brackets.
1540 Configuration:
1541 -h, --help display this help and exit
1542 --help=short display options specific to this package
1543 --help=recursive display the short help of all the included packages
1544 -V, --version display version information and exit
1545 -q, --quiet, --silent do not print \`checking ...' messages
1546 --cache-file=FILE cache test results in FILE [disabled]
1547 -C, --config-cache alias for \`--cache-file=config.cache'
1548 -n, --no-create do not create output files
1549 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1551 Installation directories:
1552 --prefix=PREFIX install architecture-independent files in PREFIX
1553 [$ac_default_prefix]
1554 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1555 [PREFIX]
1557 By default, \`make install' will install all the files in
1558 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1559 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1560 for instance \`--prefix=\$HOME'.
1562 For better control, use the options below.
1564 Fine tuning of the installation directories:
1565 --bindir=DIR user executables [EPREFIX/bin]
1566 --sbindir=DIR system admin executables [EPREFIX/sbin]
1567 --libexecdir=DIR program executables [EPREFIX/libexec]
1568 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1569 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1570 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1571 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1572 --libdir=DIR object code libraries [EPREFIX/lib]
1573 --includedir=DIR C header files [PREFIX/include]
1574 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1575 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1576 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1577 --infodir=DIR info documentation [DATAROOTDIR/info]
1578 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1579 --mandir=DIR man documentation [DATAROOTDIR/man]
1580 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1581 --htmldir=DIR html documentation [DOCDIR]
1582 --dvidir=DIR dvi documentation [DOCDIR]
1583 --pdfdir=DIR pdf documentation [DOCDIR]
1584 --psdir=DIR ps documentation [DOCDIR]
1585 _ACEOF
1587 cat <<\_ACEOF
1589 X features:
1590 --x-includes=DIR X include files are in DIR
1591 --x-libraries=DIR X library files are in DIR
1593 System types:
1594 --build=BUILD configure for building on BUILD [guessed]
1595 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1596 _ACEOF
1599 if test -n "$ac_init_help"; then
1601 cat <<\_ACEOF
1603 Optional Features:
1604 --disable-option-checking ignore unrecognized --enable/--with options
1605 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1606 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1607 --disable-libpng-config disable libpng-config test and configuration
1608 --enable-lto=yes|no Enable link time optimizations if the target
1609 compiler supports them (default=no)
1610 --enable-coverage=yes|no
1611 Enable coverage instrumentation if the target
1612 compiler supports it (default=no)
1613 --enable-build-type=TYPE
1614 Select the build type. Available types are:
1615 personal, nightly, snapshot, milestone, release. Do
1616 NOT use this option unless you know what you are
1617 doing! (default=personal)
1618 --enable-debug=list Enable different types of debug. Commas or
1619 whitespaces can be used to separate the items in the
1620 list. Available types of debug are: all, none,
1621 messages, stack, mungwall, modules, symbols. If no
1622 list is provided then "all" is assumed.
1623 (default=none)
1624 --enable-distcc Use distcc as a front end to the compiler
1625 (default=no).
1626 --enable-ccache Use ccache as a front end to the compiler
1627 (default=no).
1628 --enable-target-variant=NAME
1629 Enable a specific target variant (default=none)
1630 --enable-amigaos-compliance=VERSION
1631 Enforce userspace AmigaOS compliance to a specific
1632 KickStart version (default=none).
1633 --disable-crosstools Do not build cross-compiler toolchain
1634 --enable-objc Enable Objectve-C support (default=no)
1635 --enable-java Enable Java support (default=no)
1636 --enable-includes=dir Alternative system include directory
1637 --enable-palm-debug-hack
1638 Enable palm debug output hack in palm native
1639 (default=no)
1640 --enable-usb30-code Enable usb3.0 code (default=no)
1641 --enable-nesting-supervisor
1642 Enable nesting supervisor support in unix
1643 (default=no)
1644 --disable-mmu Disable MMU support (default=enabled)
1645 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1646 --enable-x11-shm use X11 shared memory (default=auto)
1647 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1648 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1649 --disable-sdltest Do not try to compile and run a test SDL program
1650 --enable-dbus Enable DBUS support via dbus.library (default=no)
1652 Optional Packages:
1653 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1654 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1655 --with-c-compiler=VERSION
1656 Use specified c compiler for building AROS
1657 --with-cxx-compiler=VERSION
1658 Use specified c++ compiler building AROS
1659 --with-toolchain=family Which toolchain family to crosscompile with
1660 (defaults to gnu)
1661 --with-kernel-gcc-version=VERSION
1662 Use gcc-VERSION for building bootstrap
1663 --with-optimization=FLAGS
1664 Use optimization flags FLAGS (e.g
1665 --with-optimization=-O2).
1666 --with-paranoia=(yes|no|FLAGS)
1667 Specific compiler warning FLAGS to enable for
1668 paranoia builds (default=-Wall -Werror)
1669 --with-xcode=PATH Specify XCode path for iOS targets
1670 (default=/Developer).
1671 --with-sdk-version=VERSION
1672 Use iOS SDK version VERSION (default=4.1).
1673 --with-sdk=PATH Specify Android SDK path
1674 (default=$default_android_sdk).
1675 --with-ndk=PATH Specify Android NDK path (default=none).
1676 --with-sdk-version=LEVEL
1677 Use Android SDK for API LEVEL (default=12).
1678 --with-ndk-version=LEVEL
1679 Use Android NDK for API LEVEL (default=9).
1680 --with-apk-version=(release|debug)
1681 Which version of AROSBootstrap.apk to compile.
1682 Release version needs key for signing, debug version
1683 will only run in emulator. (default=release)
1684 --with-kernel-toolchain-prefix=...
1685 Specify crosscompile toolchain prefix for kernel
1686 objects
1687 --with-elf-toolchain-prefix=...
1688 Specify crosscompile toolchain prefix to wrap for
1689 AROS objects
1690 --with-aros-toolchain=PREFIX
1691 Specify prebuilt AROS toolchain. Use yes for default
1692 name
1693 --with-aros-toolchain-install=DIR
1694 Where to install or search for cross tools binaries
1695 --with-binutils-version=VERSION
1696 Use binutils-VERSION for building AROS
1697 --with-gcc-version=VERSION
1698 Compile gcc-VERSION for AROS
1699 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1700 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1701 --with-float=<spec> Specify floating point ABI
1702 (default=$gcc_default_float_abi).
1703 --with-portssources=DIR Where to download sourcecode for external ports
1704 --with-bootloader=NAME Use a specific bootloader
1705 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1706 --with-theme=NAME Use a specific GUI Theme
1707 --with-resolution=XRESxYRESxDEPTH
1708 Default resolution of the initial WorkbenchScreen
1709 --with-serial-debug Enable serial debug output in native (default=no)
1710 --with-x use the X Window System
1711 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1712 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1714 Some influential environment variables:
1715 CXX C++ compiler command
1716 CXXFLAGS C++ compiler flags
1717 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1718 nonstandard directory <lib dir>
1719 LIBS libraries to pass to the linker, e.g. -l<library>
1720 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1721 you have headers in a nonstandard directory <include dir>
1722 CC C compiler command
1723 CFLAGS C compiler flags
1724 CPP C preprocessor
1725 PYTHON the Python interpreter
1726 XMKMF Path to xmkmf, Makefile generator for X Window System
1728 Use these variables to override the choices made by `configure' or to help
1729 it to find libraries and programs with nonstandard names/locations.
1731 Report bugs to the package provider.
1732 _ACEOF
1733 ac_status=$?
1736 if test "$ac_init_help" = "recursive"; then
1737 # If there are subdirs, report their specific --help.
1738 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1739 test -d "$ac_dir" ||
1740 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1741 continue
1742 ac_builddir=.
1744 case "$ac_dir" in
1745 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1747 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1748 # A ".." for each directory in $ac_dir_suffix.
1749 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1750 case $ac_top_builddir_sub in
1751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1753 esac ;;
1754 esac
1755 ac_abs_top_builddir=$ac_pwd
1756 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1757 # for backward compatibility:
1758 ac_top_builddir=$ac_top_build_prefix
1760 case $srcdir in
1761 .) # We are building in place.
1762 ac_srcdir=.
1763 ac_top_srcdir=$ac_top_builddir_sub
1764 ac_abs_top_srcdir=$ac_pwd ;;
1765 [\\/]* | ?:[\\/]* ) # Absolute name.
1766 ac_srcdir=$srcdir$ac_dir_suffix;
1767 ac_top_srcdir=$srcdir
1768 ac_abs_top_srcdir=$srcdir ;;
1769 *) # Relative name.
1770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1771 ac_top_srcdir=$ac_top_build_prefix$srcdir
1772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1773 esac
1774 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1776 cd "$ac_dir" || { ac_status=$?; continue; }
1777 # Check for guested configure.
1778 if test -f "$ac_srcdir/configure.gnu"; then
1779 echo &&
1780 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1781 elif test -f "$ac_srcdir/configure"; then
1782 echo &&
1783 $SHELL "$ac_srcdir/configure" --help=recursive
1784 else
1785 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1786 fi || ac_status=$?
1787 cd "$ac_pwd" || { ac_status=$?; break; }
1788 done
1791 test -n "$ac_init_help" && exit $ac_status
1792 if $ac_init_version; then
1793 cat <<\_ACEOF
1794 configure
1795 generated by GNU Autoconf 2.69
1797 Copyright (C) 2012 Free Software Foundation, Inc.
1798 This configure script is free software; the Free Software Foundation
1799 gives unlimited permission to copy, distribute and modify it.
1800 _ACEOF
1801 exit
1804 ## ------------------------ ##
1805 ## Autoconf initialization. ##
1806 ## ------------------------ ##
1808 # ac_fn_cxx_try_compile LINENO
1809 # ----------------------------
1810 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_cxx_try_compile ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext
1815 if { { ac_try="$ac_compile"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_compile") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_cxx_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest.$ac_objext; then :
1834 ac_retval=0
1835 else
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1839 ac_retval=1
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1844 } # ac_fn_cxx_try_compile
1846 # ac_fn_c_try_compile LINENO
1847 # --------------------------
1848 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_c_try_compile ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext
1853 if { { ac_try="$ac_compile"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_compile") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest.$ac_objext; then :
1872 ac_retval=0
1873 else
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1877 ac_retval=1
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1882 } # ac_fn_c_try_compile
1884 # ac_fn_c_try_cpp LINENO
1885 # ----------------------
1886 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_c_try_cpp ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if { { ac_try="$ac_cpp conftest.$ac_ext"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } > conftest.i && {
1906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 }; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 ac_retval=1
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1919 } # ac_fn_c_try_cpp
1921 # ac_fn_c_try_link LINENO
1922 # -----------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_c_try_link ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_c_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 test -x conftest$ac_exeext
1949 }; then :
1950 ac_retval=0
1951 else
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1955 ac_retval=1
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status $ac_retval
1965 } # ac_fn_c_try_link
1967 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1968 # -------------------------------------------------------
1969 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1970 # the include files in INCLUDES and setting the cache variable VAR
1971 # accordingly.
1972 ac_fn_c_check_header_mongrel ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if eval \${$3+:} false; then :
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979 $as_echo_n "(cached) " >&6
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 else
1985 # Is the header compilable?
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1987 $as_echo_n "checking $2 usability... " >&6; }
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1991 #include <$2>
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_header_compiler=yes
1995 else
1996 ac_header_compiler=no
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2000 $as_echo "$ac_header_compiler" >&6; }
2002 # Is the header present?
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2004 $as_echo_n "checking $2 presence... " >&6; }
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2007 #include <$2>
2008 _ACEOF
2009 if ac_fn_c_try_cpp "$LINENO"; then :
2010 ac_header_preproc=yes
2011 else
2012 ac_header_preproc=no
2014 rm -f conftest.err conftest.i conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2016 $as_echo "$ac_header_preproc" >&6; }
2018 # So? What about this header?
2019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2020 yes:no: )
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2022 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2026 no:yes:* )
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2028 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2030 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2032 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2034 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2038 esac
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 eval "$3=\$ac_header_compiler"
2046 eval ac_res=\$$3
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 } # ac_fn_c_check_header_mongrel
2054 # ac_fn_c_try_run LINENO
2055 # ----------------------
2056 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2057 # that executables *can* be run.
2058 ac_fn_c_try_run ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if { { ac_try="$ac_link"
2062 case "(($ac_try" in
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2065 esac
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_link") 2>&5
2069 ac_status=$?
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2072 { { case "(($ac_try" in
2073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074 *) ac_try_echo=$ac_try;;
2075 esac
2076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077 $as_echo "$ac_try_echo"; } >&5
2078 (eval "$ac_try") 2>&5
2079 ac_status=$?
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; }; }; then :
2082 ac_retval=0
2083 else
2084 $as_echo "$as_me: program exited with status $ac_status" >&5
2085 $as_echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2088 ac_retval=$ac_status
2090 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 as_fn_set_status $ac_retval
2094 } # ac_fn_c_try_run
2096 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2097 # -------------------------------------------------------
2098 # Tests whether HEADER exists and can be compiled using the include files in
2099 # INCLUDES, setting the cache variable VAR accordingly.
2100 ac_fn_c_check_header_compile ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \${$3+:} false; then :
2106 $as_echo_n "(cached) " >&6
2107 else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2111 #include <$2>
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 eval "$3=yes"
2115 else
2116 eval "$3=no"
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 eval ac_res=\$$3
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 } # ac_fn_c_check_header_compile
2127 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2128 # ----------------------------------------------------
2129 # Tries to find if the field MEMBER exists in type AGGR, after including
2130 # INCLUDES, setting cache variable VAR accordingly.
2131 ac_fn_c_check_member ()
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2135 $as_echo_n "checking for $2.$3... " >&6; }
2136 if eval \${$4+:} false; then :
2137 $as_echo_n "(cached) " >&6
2138 else
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2143 main ()
2145 static $2 ac_aggr;
2146 if (ac_aggr.$3)
2147 return 0;
2149 return 0;
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153 eval "$4=yes"
2154 else
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2159 main ()
2161 static $2 ac_aggr;
2162 if (sizeof ac_aggr.$3)
2163 return 0;
2165 return 0;
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2169 eval "$4=yes"
2170 else
2171 eval "$4=no"
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 eval ac_res=\$$4
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 } # ac_fn_c_check_member
2184 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2185 # ---------------------------------------------
2186 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2187 # accordingly.
2188 ac_fn_c_check_decl ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 as_decl_name=`echo $2|sed 's/ *(.*//'`
2192 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2194 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2195 if eval \${$3+:} false; then :
2196 $as_echo_n "(cached) " >&6
2197 else
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2202 main ()
2204 #ifndef $as_decl_name
2205 #ifdef __cplusplus
2206 (void) $as_decl_use;
2207 #else
2208 (void) $as_decl_name;
2209 #endif
2210 #endif
2213 return 0;
2215 _ACEOF
2216 if ac_fn_c_try_compile "$LINENO"; then :
2217 eval "$3=yes"
2218 else
2219 eval "$3=no"
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 eval ac_res=\$$3
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228 } # ac_fn_c_check_decl
2230 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2231 # -------------------------------------------
2232 # Tests whether TYPE exists after having included INCLUDES, setting cache
2233 # variable VAR accordingly.
2234 ac_fn_c_check_type ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if eval \${$3+:} false; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 eval "$3=no"
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2247 main ()
2249 if (sizeof ($2))
2250 return 0;
2252 return 0;
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2260 main ()
2262 if (sizeof (($2)))
2263 return 0;
2265 return 0;
2267 _ACEOF
2268 if ac_fn_c_try_compile "$LINENO"; then :
2270 else
2271 eval "$3=yes"
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 eval ac_res=\$$3
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282 } # ac_fn_c_check_type
2284 # ac_fn_c_check_func LINENO FUNC VAR
2285 # ----------------------------------
2286 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2287 ac_fn_c_check_func ()
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2291 $as_echo_n "checking for $2... " >&6; }
2292 if eval \${$3+:} false; then :
2293 $as_echo_n "(cached) " >&6
2294 else
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2297 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2299 #define $2 innocuous_$2
2301 /* System header to define __stub macros and hopefully few prototypes,
2302 which can conflict with char $2 (); below.
2303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2304 <limits.h> exists even on freestanding compilers. */
2306 #ifdef __STDC__
2307 # include <limits.h>
2308 #else
2309 # include <assert.h>
2310 #endif
2312 #undef $2
2314 /* Override any GCC internal prototype to avoid an error.
2315 Use char because int might match the return type of a GCC
2316 builtin and then its argument prototype would still apply. */
2317 #ifdef __cplusplus
2318 extern "C"
2319 #endif
2320 char $2 ();
2321 /* The GNU C library defines this for functions which it implements
2322 to always fail with ENOSYS. Some functions are actually named
2323 something starting with __ and the normal name is an alias. */
2324 #if defined __stub_$2 || defined __stub___$2
2325 choke me
2326 #endif
2329 main ()
2331 return $2 ();
2333 return 0;
2335 _ACEOF
2336 if ac_fn_c_try_link "$LINENO"; then :
2337 eval "$3=yes"
2338 else
2339 eval "$3=no"
2341 rm -f core conftest.err conftest.$ac_objext \
2342 conftest$ac_exeext conftest.$ac_ext
2344 eval ac_res=\$$3
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2349 } # ac_fn_c_check_func
2350 cat >config.log <<_ACEOF
2351 This file contains any messages produced by compilers while
2352 running configure, to aid debugging if configure makes a mistake.
2354 It was created by $as_me, which was
2355 generated by GNU Autoconf 2.69. Invocation command line was
2357 $ $0 $@
2359 _ACEOF
2360 exec 5>>config.log
2362 cat <<_ASUNAME
2363 ## --------- ##
2364 ## Platform. ##
2365 ## --------- ##
2367 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2368 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2369 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2370 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2371 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2373 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2374 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2376 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2377 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2378 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2379 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2380 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2381 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2382 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2384 _ASUNAME
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 $as_echo "PATH: $as_dir"
2392 done
2393 IFS=$as_save_IFS
2395 } >&5
2397 cat >&5 <<_ACEOF
2400 ## ----------- ##
2401 ## Core tests. ##
2402 ## ----------- ##
2404 _ACEOF
2407 # Keep a trace of the command line.
2408 # Strip out --no-create and --no-recursion so they do not pile up.
2409 # Strip out --silent because we don't want to record it for future runs.
2410 # Also quote any args containing shell meta-characters.
2411 # Make two passes to allow for proper duplicate-argument suppression.
2412 ac_configure_args=
2413 ac_configure_args0=
2414 ac_configure_args1=
2415 ac_must_keep_next=false
2416 for ac_pass in 1 2
2418 for ac_arg
2420 case $ac_arg in
2421 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2423 | -silent | --silent | --silen | --sile | --sil)
2424 continue ;;
2425 *\'*)
2426 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2427 esac
2428 case $ac_pass in
2429 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2431 as_fn_append ac_configure_args1 " '$ac_arg'"
2432 if test $ac_must_keep_next = true; then
2433 ac_must_keep_next=false # Got value, back to normal.
2434 else
2435 case $ac_arg in
2436 *=* | --config-cache | -C | -disable-* | --disable-* \
2437 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2438 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2439 | -with-* | --with-* | -without-* | --without-* | --x)
2440 case "$ac_configure_args0 " in
2441 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2442 esac
2444 -* ) ac_must_keep_next=true ;;
2445 esac
2447 as_fn_append ac_configure_args " '$ac_arg'"
2449 esac
2450 done
2451 done
2452 { ac_configure_args0=; unset ac_configure_args0;}
2453 { ac_configure_args1=; unset ac_configure_args1;}
2455 # When interrupted or exit'd, cleanup temporary files, and complete
2456 # config.log. We remove comments because anyway the quotes in there
2457 # would cause problems or look ugly.
2458 # WARNING: Use '\'' to represent an apostrophe within the trap.
2459 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2460 trap 'exit_status=$?
2461 # Save into config.log some information that might help in debugging.
2463 echo
2465 $as_echo "## ---------------- ##
2466 ## Cache variables. ##
2467 ## ---------------- ##"
2468 echo
2469 # The following way of writing the cache mishandles newlines in values,
2471 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2472 eval ac_val=\$$ac_var
2473 case $ac_val in #(
2474 *${as_nl}*)
2475 case $ac_var in #(
2476 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2477 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2478 esac
2479 case $ac_var in #(
2480 _ | IFS | as_nl) ;; #(
2481 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2482 *) { eval $ac_var=; unset $ac_var;} ;;
2483 esac ;;
2484 esac
2485 done
2486 (set) 2>&1 |
2487 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2488 *${as_nl}ac_space=\ *)
2489 sed -n \
2490 "s/'\''/'\''\\\\'\'''\''/g;
2491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2492 ;; #(
2494 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2496 esac |
2497 sort
2499 echo
2501 $as_echo "## ----------------- ##
2502 ## Output variables. ##
2503 ## ----------------- ##"
2504 echo
2505 for ac_var in $ac_subst_vars
2507 eval ac_val=\$$ac_var
2508 case $ac_val in
2509 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2510 esac
2511 $as_echo "$ac_var='\''$ac_val'\''"
2512 done | sort
2513 echo
2515 if test -n "$ac_subst_files"; then
2516 $as_echo "## ------------------- ##
2517 ## File substitutions. ##
2518 ## ------------------- ##"
2519 echo
2520 for ac_var in $ac_subst_files
2522 eval ac_val=\$$ac_var
2523 case $ac_val in
2524 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2525 esac
2526 $as_echo "$ac_var='\''$ac_val'\''"
2527 done | sort
2528 echo
2531 if test -s confdefs.h; then
2532 $as_echo "## ----------- ##
2533 ## confdefs.h. ##
2534 ## ----------- ##"
2535 echo
2536 cat confdefs.h
2537 echo
2539 test "$ac_signal" != 0 &&
2540 $as_echo "$as_me: caught signal $ac_signal"
2541 $as_echo "$as_me: exit $exit_status"
2542 } >&5
2543 rm -f core *.core core.conftest.* &&
2544 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2545 exit $exit_status
2547 for ac_signal in 1 2 13 15; do
2548 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2549 done
2550 ac_signal=0
2552 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2553 rm -f -r conftest* confdefs.h
2555 $as_echo "/* confdefs.h */" > confdefs.h
2557 # Predefined preprocessor variables.
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_NAME "$PACKAGE_NAME"
2561 _ACEOF
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2565 _ACEOF
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2569 _ACEOF
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_STRING "$PACKAGE_STRING"
2573 _ACEOF
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2577 _ACEOF
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_URL "$PACKAGE_URL"
2581 _ACEOF
2584 # Let the site file select an alternate cache file if it wants to.
2585 # Prefer an explicitly selected file to automatically selected ones.
2586 ac_site_file1=NONE
2587 ac_site_file2=NONE
2588 if test -n "$CONFIG_SITE"; then
2589 # We do not want a PATH search for config.site.
2590 case $CONFIG_SITE in #((
2591 -*) ac_site_file1=./$CONFIG_SITE;;
2592 */*) ac_site_file1=$CONFIG_SITE;;
2593 *) ac_site_file1=./$CONFIG_SITE;;
2594 esac
2595 elif test "x$prefix" != xNONE; then
2596 ac_site_file1=$prefix/share/config.site
2597 ac_site_file2=$prefix/etc/config.site
2598 else
2599 ac_site_file1=$ac_default_prefix/share/config.site
2600 ac_site_file2=$ac_default_prefix/etc/config.site
2602 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2604 test "x$ac_site_file" = xNONE && continue
2605 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2607 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2608 sed 's/^/| /' "$ac_site_file" >&5
2609 . "$ac_site_file" \
2610 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612 as_fn_error $? "failed to load site script $ac_site_file
2613 See \`config.log' for more details" "$LINENO" 5; }
2615 done
2617 if test -r "$cache_file"; then
2618 # Some versions of bash will fail to source /dev/null (special files
2619 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2620 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2622 $as_echo "$as_me: loading cache $cache_file" >&6;}
2623 case $cache_file in
2624 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2625 *) . "./$cache_file";;
2626 esac
2628 else
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2630 $as_echo "$as_me: creating cache $cache_file" >&6;}
2631 >$cache_file
2634 as_fn_append ac_header_list " stdlib.h"
2635 as_fn_append ac_header_list " unistd.h"
2636 as_fn_append ac_header_list " sys/param.h"
2637 # Check that the precious variables saved in the cache have kept the same
2638 # value.
2639 ac_cache_corrupted=false
2640 for ac_var in $ac_precious_vars; do
2641 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2642 eval ac_new_set=\$ac_env_${ac_var}_set
2643 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2644 eval ac_new_val=\$ac_env_${ac_var}_value
2645 case $ac_old_set,$ac_new_set in
2646 set,)
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2648 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2649 ac_cache_corrupted=: ;;
2650 ,set)
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2652 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2653 ac_cache_corrupted=: ;;
2654 ,);;
2656 if test "x$ac_old_val" != "x$ac_new_val"; then
2657 # differences in whitespace do not lead to failure.
2658 ac_old_val_w=`echo x $ac_old_val`
2659 ac_new_val_w=`echo x $ac_new_val`
2660 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2662 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2663 ac_cache_corrupted=:
2664 else
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2666 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2667 eval $ac_var=\$ac_old_val
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2670 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2672 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2673 fi;;
2674 esac
2675 # Pass precious variables to config.status.
2676 if test "$ac_new_set" = set; then
2677 case $ac_new_val in
2678 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2679 *) ac_arg=$ac_var=$ac_new_val ;;
2680 esac
2681 case " $ac_configure_args " in
2682 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2683 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2684 esac
2686 done
2687 if $ac_cache_corrupted; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2691 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2692 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2694 ## -------------------- ##
2695 ## Main body of script. ##
2696 ## -------------------- ##
2698 ac_ext=c
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2706 ac_aux_dir=
2707 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2708 if test -f "$ac_dir/install-sh"; then
2709 ac_aux_dir=$ac_dir
2710 ac_install_sh="$ac_aux_dir/install-sh -c"
2711 break
2712 elif test -f "$ac_dir/install.sh"; then
2713 ac_aux_dir=$ac_dir
2714 ac_install_sh="$ac_aux_dir/install.sh -c"
2715 break
2716 elif test -f "$ac_dir/shtool"; then
2717 ac_aux_dir=$ac_dir
2718 ac_install_sh="$ac_aux_dir/shtool install -c"
2719 break
2721 done
2722 if test -z "$ac_aux_dir"; then
2723 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2726 # These three variables are undocumented and unsupported,
2727 # and are intended to be withdrawn in a future Autoconf release.
2728 # They can cause serious problems if a builder's source tree is in a directory
2729 # whose full name contains unusual characters.
2730 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2731 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2732 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2736 # Check what host we are running on.
2737 # If a target is not suggested, we use this one.
2738 # Note that what we call a target, Autoconf calls a host.
2739 # Make sure we can run config.sub.
2740 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2741 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2744 $as_echo_n "checking build system type... " >&6; }
2745 if ${ac_cv_build+:} false; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 ac_build_alias=$build_alias
2749 test "x$ac_build_alias" = x &&
2750 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2751 test "x$ac_build_alias" = x &&
2752 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2753 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2754 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2758 $as_echo "$ac_cv_build" >&6; }
2759 case $ac_cv_build in
2760 *-*-*) ;;
2761 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2762 esac
2763 build=$ac_cv_build
2764 ac_save_IFS=$IFS; IFS='-'
2765 set x $ac_cv_build
2766 shift
2767 build_cpu=$1
2768 build_vendor=$2
2769 shift; shift
2770 # Remember, the first character of IFS is used to create $*,
2771 # except with old shells:
2772 build_os=$*
2773 IFS=$ac_save_IFS
2774 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2778 $as_echo_n "checking host system type... " >&6; }
2779 if ${ac_cv_host+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 if test "x$host_alias" = x; then
2783 ac_cv_host=$ac_cv_build
2784 else
2785 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2791 $as_echo "$ac_cv_host" >&6; }
2792 case $ac_cv_host in
2793 *-*-*) ;;
2794 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2795 esac
2796 host=$ac_cv_host
2797 ac_save_IFS=$IFS; IFS='-'
2798 set x $ac_cv_host
2799 shift
2800 host_cpu=$1
2801 host_vendor=$2
2802 shift; shift
2803 # Remember, the first character of IFS is used to create $*,
2804 # except with old shells:
2805 host_os=$*
2806 IFS=$ac_save_IFS
2807 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2811 # Default versions for the gnu tools we build
2812 default_gcc_version="6.5.0"
2813 default_binutils_version="2.32"
2814 default_grub2_version="2.02"
2815 target_grub2_version=$default_grub2_version
2817 # The AROS target is slightly different to the normal GNU style
2818 # format. We don't have the middle part, and we reverse the order
2819 # of the $(CPU) and $(OS) bits.
2821 # Don't strip the version of the target yet, it might be
2822 # useful on some systems.
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2825 $as_echo_n "checking for AROS style target... " >&6; }
2827 if test "$target" = "NONE" ; then
2828 target=$host_os-$host_cpu
2829 else
2830 if test "$target" = "" ; then
2831 target=$host_os-$host_cpu
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2835 $as_echo "$target" >&6; }
2837 if test "$host_os" = "mingw32" ; then
2838 PWDCMD="pwd -W"
2841 # Don't know where else to put this...
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2843 $as_echo_n "checking building AROS in... " >&6; }
2844 AROS_BUILDDIR=`${PWDCMD-pwd}`
2845 AROS_BUILDDIR_UNIX=${PWD}
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2847 $as_echo "$AROS_BUILDDIR" >&6; }
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2850 $as_echo_n "checking AROS source in... " >&6; }
2851 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2852 SRCDIR=${srcpwd}
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2854 $as_echo "$SRCDIR" >&6; }
2856 # Parse the target field into something useful.
2858 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2859 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2862 # Some debug output, to be removed again.
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2864 $as_echo_n "checking for target system (debug output)... " >&6; }
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2866 $as_echo "$target_os" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2868 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2870 $as_echo "$target_cpu" >&6; }
2872 aros_nominal_width=800
2873 aros_nominal_height=600
2874 aros_nominal_depth=4
2877 default_c_compilers="gcc clang cc"
2879 # Check whether --with-c-compiler was given.
2880 if test "${with_c_compiler+set}" = set; then :
2881 withval=$with_c_compiler; use_c_compiler="$withval"
2882 else
2883 use_c_compiler=""
2886 if test "$use_c_compiler" = ""; then
2887 host_c_compilers="$default_c_compilers"
2888 else
2889 host_c_compilers="$use_c_compiler"
2892 default_cxx_compilers="g++ clang++ c++"
2894 # Check whether --with-cxx-compiler was given.
2895 if test "${with_cxx_compiler+set}" = set; then :
2896 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2897 else
2898 use_cxx_compiler=""
2901 if test "$use_cxx_compiler" = ""; then
2902 host_cxx_compilers="$default_cxx_compilers"
2903 else
2904 host_cxx_compilers="$use_cxx_compiler"
2908 # The first step is to find the host binaries.
2909 # Check for a compiler.
2910 # Due to a bug in autoconf check for c++ compiler first.
2911 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2912 ac_ext=cpp
2913 ac_cpp='$CXXCPP $CPPFLAGS'
2914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2917 if test -z "$CXX"; then
2918 if test -n "$CCC"; then
2919 CXX=$CCC
2920 else
2921 if test -n "$ac_tool_prefix"; then
2922 for ac_prog in ${host_cxx_compilers}
2924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if ${ac_cv_prog_CXX+:} false; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$CXX"; then
2932 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2945 done
2946 done
2947 IFS=$as_save_IFS
2951 CXX=$ac_cv_prog_CXX
2952 if test -n "$CXX"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2954 $as_echo "$CXX" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2961 test -n "$CXX" && break
2962 done
2964 if test -z "$CXX"; then
2965 ac_ct_CXX=$CXX
2966 for ac_prog in ${host_cxx_compilers}
2968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy $ac_prog; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$ac_ct_CXX"; then
2976 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_ac_ct_CXX="$ac_prog"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2989 done
2990 done
2991 IFS=$as_save_IFS
2995 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2996 if test -n "$ac_ct_CXX"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2998 $as_echo "$ac_ct_CXX" >&6; }
2999 else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3005 test -n "$ac_ct_CXX" && break
3006 done
3008 if test "x$ac_ct_CXX" = x; then
3009 CXX="g++"
3010 else
3011 case $cross_compiling:$ac_tool_warned in
3012 yes:)
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015 ac_tool_warned=yes ;;
3016 esac
3017 CXX=$ac_ct_CXX
3023 # Provide some information about the compiler.
3024 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3025 set X $ac_compile
3026 ac_compiler=$2
3027 for ac_option in --version -v -V -qversion; do
3028 { { ac_try="$ac_compiler $ac_option >&5"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3036 ac_status=$?
3037 if test -s conftest.err; then
3038 sed '10a\
3039 ... rest of stderr output deleted ...
3040 10q' conftest.err >conftest.er1
3041 cat conftest.er1 >&5
3043 rm -f conftest.er1 conftest.err
3044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045 test $ac_status = 0; }
3046 done
3048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h. */
3052 main ()
3056 return 0;
3058 _ACEOF
3059 ac_clean_files_save=$ac_clean_files
3060 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3061 # Try to create an executable without -o first, disregard a.out.
3062 # It will help us diagnose broken compilers, and finding out an intuition
3063 # of exeext.
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3065 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3066 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3068 # The possible output files:
3069 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3071 ac_rmfiles=
3072 for ac_file in $ac_files
3074 case $ac_file in
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3076 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3077 esac
3078 done
3079 rm -f $ac_rmfiles
3081 if { { ac_try="$ac_link_default"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3087 $as_echo "$ac_try_echo"; } >&5
3088 (eval "$ac_link_default") 2>&5
3089 ac_status=$?
3090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3091 test $ac_status = 0; }; then :
3092 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3093 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3094 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3095 # so that the user can short-circuit this test for compilers unknown to
3096 # Autoconf.
3097 for ac_file in $ac_files ''
3099 test -f "$ac_file" || continue
3100 case $ac_file in
3101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3103 [ab].out )
3104 # We found the default executable, but exeext='' is most
3105 # certainly right.
3106 break;;
3107 *.* )
3108 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3109 then :; else
3110 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3112 # We set ac_cv_exeext here because the later test for it is not
3113 # safe: cross compilers may not add the suffix if given an `-o'
3114 # argument, so we may need to know it at that point already.
3115 # Even if this section looks crufty: it has the advantage of
3116 # actually working.
3117 break;;
3119 break;;
3120 esac
3121 done
3122 test "$ac_cv_exeext" = no && ac_cv_exeext=
3124 else
3125 ac_file=''
3127 if test -z "$ac_file"; then :
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3130 $as_echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135 as_fn_error 77 "C++ compiler cannot create executables
3136 See \`config.log' for more details" "$LINENO" 5; }
3137 else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139 $as_echo "yes" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3142 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3144 $as_echo "$ac_file" >&6; }
3145 ac_exeext=$ac_cv_exeext
3147 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3148 ac_clean_files=$ac_clean_files_save
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3150 $as_echo_n "checking for suffix of executables... " >&6; }
3151 if { { ac_try="$ac_link"
3152 case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_link") 2>&5
3159 ac_status=$?
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }; then :
3162 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3163 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3164 # work properly (i.e., refer to `conftest.exe'), while it won't with
3165 # `rm'.
3166 for ac_file in conftest.exe conftest conftest.*; do
3167 test -f "$ac_file" || continue
3168 case $ac_file in
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171 break;;
3172 * ) break;;
3173 esac
3174 done
3175 else
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3179 See \`config.log' for more details" "$LINENO" 5; }
3181 rm -f conftest conftest$ac_cv_exeext
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3183 $as_echo "$ac_cv_exeext" >&6; }
3185 rm -f conftest.$ac_ext
3186 EXEEXT=$ac_cv_exeext
3187 ac_exeext=$EXEEXT
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3190 #include <stdio.h>
3192 main ()
3194 FILE *f = fopen ("conftest.out", "w");
3195 return ferror (f) || fclose (f) != 0;
3198 return 0;
3200 _ACEOF
3201 ac_clean_files="$ac_clean_files conftest.out"
3202 # Check that the compiler produces executables we can run. If not, either
3203 # the compiler is broken, or we cross compile.
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3205 $as_echo_n "checking whether we are cross compiling... " >&6; }
3206 if test "$cross_compiling" != yes; then
3207 { { ac_try="$ac_link"
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_link") 2>&5
3215 ac_status=$?
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }
3218 if { ac_try='./conftest$ac_cv_exeext'
3219 { { case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_try") 2>&5
3226 ac_status=$?
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; }; then
3229 cross_compiling=no
3230 else
3231 if test "$cross_compiling" = maybe; then
3232 cross_compiling=yes
3233 else
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error $? "cannot run C++ compiled programs.
3237 If you meant to cross compile, use \`--host'.
3238 See \`config.log' for more details" "$LINENO" 5; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3243 $as_echo "$cross_compiling" >&6; }
3245 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3246 ac_clean_files=$ac_clean_files_save
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3248 $as_echo_n "checking for suffix of object files... " >&6; }
3249 if ${ac_cv_objext+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3256 main ()
3260 return 0;
3262 _ACEOF
3263 rm -f conftest.o conftest.obj
3264 if { { ac_try="$ac_compile"
3265 case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_compile") 2>&5
3272 ac_status=$?
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }; then :
3275 for ac_file in conftest.o conftest.obj conftest.*; do
3276 test -f "$ac_file" || continue;
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3279 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3280 break;;
3281 esac
3282 done
3283 else
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "cannot compute suffix of object files: cannot compile
3290 See \`config.log' for more details" "$LINENO" 5; }
3292 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3295 $as_echo "$ac_cv_objext" >&6; }
3296 OBJEXT=$ac_cv_objext
3297 ac_objext=$OBJEXT
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3299 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3300 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3307 main ()
3309 #ifndef __GNUC__
3310 choke me
3311 #endif
3314 return 0;
3316 _ACEOF
3317 if ac_fn_cxx_try_compile "$LINENO"; then :
3318 ac_compiler_gnu=yes
3319 else
3320 ac_compiler_gnu=no
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3327 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3328 if test $ac_compiler_gnu = yes; then
3329 GXX=yes
3330 else
3331 GXX=
3333 ac_test_CXXFLAGS=${CXXFLAGS+set}
3334 ac_save_CXXFLAGS=$CXXFLAGS
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3336 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3337 if ${ac_cv_prog_cxx_g+:} false; then :
3338 $as_echo_n "(cached) " >&6
3339 else
3340 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3341 ac_cxx_werror_flag=yes
3342 ac_cv_prog_cxx_g=no
3343 CXXFLAGS="-g"
3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h. */
3348 main ()
3352 return 0;
3354 _ACEOF
3355 if ac_fn_cxx_try_compile "$LINENO"; then :
3356 ac_cv_prog_cxx_g=yes
3357 else
3358 CXXFLAGS=""
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3363 main ()
3367 return 0;
3369 _ACEOF
3370 if ac_fn_cxx_try_compile "$LINENO"; then :
3372 else
3373 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3374 CXXFLAGS="-g"
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3379 main ()
3383 return 0;
3385 _ACEOF
3386 if ac_fn_cxx_try_compile "$LINENO"; then :
3387 ac_cv_prog_cxx_g=yes
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3397 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3398 if test "$ac_test_CXXFLAGS" = set; then
3399 CXXFLAGS=$ac_save_CXXFLAGS
3400 elif test $ac_cv_prog_cxx_g = yes; then
3401 if test "$GXX" = yes; then
3402 CXXFLAGS="-g -O2"
3403 else
3404 CXXFLAGS="-g"
3406 else
3407 if test "$GXX" = yes; then
3408 CXXFLAGS="-O2"
3409 else
3410 CXXFLAGS=
3413 ac_ext=c
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419 ac_ext=c
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424 if test -n "$ac_tool_prefix"; then
3425 for ac_prog in ${host_c_compilers}
3427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if ${ac_cv_prog_CC+:} false; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 if test -n "$CC"; then
3435 ac_cv_prog_CC="$CC" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 break 2
3448 done
3449 done
3450 IFS=$as_save_IFS
3454 CC=$ac_cv_prog_CC
3455 if test -n "$CC"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 $as_echo "$CC" >&6; }
3458 else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3464 test -n "$CC" && break
3465 done
3467 if test -z "$CC"; then
3468 ac_ct_CC=$CC
3469 for ac_prog in ${host_c_compilers}
3471 # Extract the first word of "$ac_prog", so it can be a program name with args.
3472 set dummy $ac_prog; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 if test -n "$ac_ct_CC"; then
3479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_prog_ac_ct_CC="$ac_prog"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 break 2
3492 done
3493 done
3494 IFS=$as_save_IFS
3498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3499 if test -n "$ac_ct_CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3501 $as_echo "$ac_ct_CC" >&6; }
3502 else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3508 test -n "$ac_ct_CC" && break
3509 done
3511 if test "x$ac_ct_CC" = x; then
3512 CC=""
3513 else
3514 case $cross_compiling:$ac_tool_warned in
3515 yes:)
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3518 ac_tool_warned=yes ;;
3519 esac
3520 CC=$ac_ct_CC
3525 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "no acceptable C compiler found in \$PATH
3528 See \`config.log' for more details" "$LINENO" 5; }
3530 # Provide some information about the compiler.
3531 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3532 set X $ac_compile
3533 ac_compiler=$2
3534 for ac_option in --version -v -V -qversion; do
3535 { { ac_try="$ac_compiler $ac_option >&5"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3543 ac_status=$?
3544 if test -s conftest.err; then
3545 sed '10a\
3546 ... rest of stderr output deleted ...
3547 10q' conftest.err >conftest.er1
3548 cat conftest.er1 >&5
3550 rm -f conftest.er1 conftest.err
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }
3553 done
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3556 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3557 if ${ac_cv_c_compiler_gnu+:} false; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3564 main ()
3566 #ifndef __GNUC__
3567 choke me
3568 #endif
3571 return 0;
3573 _ACEOF
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_compiler_gnu=yes
3576 else
3577 ac_compiler_gnu=no
3579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3584 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3585 if test $ac_compiler_gnu = yes; then
3586 GCC=yes
3587 else
3588 GCC=
3590 ac_test_CFLAGS=${CFLAGS+set}
3591 ac_save_CFLAGS=$CFLAGS
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3593 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3594 if ${ac_cv_prog_cc_g+:} false; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 ac_save_c_werror_flag=$ac_c_werror_flag
3598 ac_c_werror_flag=yes
3599 ac_cv_prog_cc_g=no
3600 CFLAGS="-g"
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3605 main ()
3609 return 0;
3611 _ACEOF
3612 if ac_fn_c_try_compile "$LINENO"; then :
3613 ac_cv_prog_cc_g=yes
3614 else
3615 CFLAGS=""
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3620 main ()
3624 return 0;
3626 _ACEOF
3627 if ac_fn_c_try_compile "$LINENO"; then :
3629 else
3630 ac_c_werror_flag=$ac_save_c_werror_flag
3631 CFLAGS="-g"
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3636 main ()
3640 return 0;
3642 _ACEOF
3643 if ac_fn_c_try_compile "$LINENO"; then :
3644 ac_cv_prog_cc_g=yes
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 ac_c_werror_flag=$ac_save_c_werror_flag
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3654 $as_echo "$ac_cv_prog_cc_g" >&6; }
3655 if test "$ac_test_CFLAGS" = set; then
3656 CFLAGS=$ac_save_CFLAGS
3657 elif test $ac_cv_prog_cc_g = yes; then
3658 if test "$GCC" = yes; then
3659 CFLAGS="-g -O2"
3660 else
3661 CFLAGS="-g"
3663 else
3664 if test "$GCC" = yes; then
3665 CFLAGS="-O2"
3666 else
3667 CFLAGS=
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3671 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3672 if ${ac_cv_prog_cc_c89+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 ac_cv_prog_cc_c89=no
3676 ac_save_CC=$CC
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #include <stdarg.h>
3680 #include <stdio.h>
3681 struct stat;
3682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3683 struct buf { int x; };
3684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3685 static char *e (p, i)
3686 char **p;
3687 int i;
3689 return p[i];
3691 static char *f (char * (*g) (char **, int), char **p, ...)
3693 char *s;
3694 va_list v;
3695 va_start (v,p);
3696 s = g (p, va_arg (v,int));
3697 va_end (v);
3698 return s;
3701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3702 function prototypes and stuff, but not '\xHH' hex character constants.
3703 These don't provoke an error unfortunately, instead are silently treated
3704 as 'x'. The following induces an error, until -std is added to get
3705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3706 array size at least. It's necessary to write '\x00'==0 to get something
3707 that's true only with -std. */
3708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3711 inside strings and character constants. */
3712 #define FOO(x) 'x'
3713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3715 int test (int i, double x);
3716 struct s1 {int (*f) (int a);};
3717 struct s2 {int (*f) (double a);};
3718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3719 int argc;
3720 char **argv;
3722 main ()
3724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3726 return 0;
3728 _ACEOF
3729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3732 CC="$ac_save_CC $ac_arg"
3733 if ac_fn_c_try_compile "$LINENO"; then :
3734 ac_cv_prog_cc_c89=$ac_arg
3736 rm -f core conftest.err conftest.$ac_objext
3737 test "x$ac_cv_prog_cc_c89" != "xno" && break
3738 done
3739 rm -f conftest.$ac_ext
3740 CC=$ac_save_CC
3743 # AC_CACHE_VAL
3744 case "x$ac_cv_prog_cc_c89" in
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3747 $as_echo "none needed" >&6; } ;;
3748 xno)
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3750 $as_echo "unsupported" >&6; } ;;
3752 CC="$CC $ac_cv_prog_cc_c89"
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3754 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3755 esac
3756 if test "x$ac_cv_prog_cc_c89" != xno; then :
3760 ac_ext=c
3761 ac_cpp='$CPP $CPPFLAGS'
3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766 aros_host_def_cc="$CC"
3767 case $ac_cv_prog_cc_stdc in #(
3768 no) :
3769 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3770 *) :
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3772 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3773 if ${ac_cv_prog_cc_c99+:} false; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 ac_cv_prog_cc_c99=no
3777 ac_save_CC=$CC
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3780 #include <stdarg.h>
3781 #include <stdbool.h>
3782 #include <stdlib.h>
3783 #include <wchar.h>
3784 #include <stdio.h>
3786 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3787 #define debug(...) fprintf (stderr, __VA_ARGS__)
3788 #define showlist(...) puts (#__VA_ARGS__)
3789 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3790 static void
3791 test_varargs_macros (void)
3793 int x = 1234;
3794 int y = 5678;
3795 debug ("Flag");
3796 debug ("X = %d\n", x);
3797 showlist (The first, second, and third items.);
3798 report (x>y, "x is %d but y is %d", x, y);
3801 // Check long long types.
3802 #define BIG64 18446744073709551615ull
3803 #define BIG32 4294967295ul
3804 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3805 #if !BIG_OK
3806 your preprocessor is broken;
3807 #endif
3808 #if BIG_OK
3809 #else
3810 your preprocessor is broken;
3811 #endif
3812 static long long int bignum = -9223372036854775807LL;
3813 static unsigned long long int ubignum = BIG64;
3815 struct incomplete_array
3817 int datasize;
3818 double data[];
3821 struct named_init {
3822 int number;
3823 const wchar_t *name;
3824 double average;
3827 typedef const char *ccp;
3829 static inline int
3830 test_restrict (ccp restrict text)
3832 // See if C++-style comments work.
3833 // Iterate through items via the restricted pointer.
3834 // Also check for declarations in for loops.
3835 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3836 continue;
3837 return 0;
3840 // Check varargs and va_copy.
3841 static void
3842 test_varargs (const char *format, ...)
3844 va_list args;
3845 va_start (args, format);
3846 va_list args_copy;
3847 va_copy (args_copy, args);
3849 const char *str;
3850 int number;
3851 float fnumber;
3853 while (*format)
3855 switch (*format++)
3857 case 's': // string
3858 str = va_arg (args_copy, const char *);
3859 break;
3860 case 'd': // int
3861 number = va_arg (args_copy, int);
3862 break;
3863 case 'f': // float
3864 fnumber = va_arg (args_copy, double);
3865 break;
3866 default:
3867 break;
3870 va_end (args_copy);
3871 va_end (args);
3875 main ()
3878 // Check bool.
3879 _Bool success = false;
3881 // Check restrict.
3882 if (test_restrict ("String literal") == 0)
3883 success = true;
3884 char *restrict newvar = "Another string";
3886 // Check varargs.
3887 test_varargs ("s, d' f .", "string", 65, 34.234);
3888 test_varargs_macros ();
3890 // Check flexible array members.
3891 struct incomplete_array *ia =
3892 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3893 ia->datasize = 10;
3894 for (int i = 0; i < ia->datasize; ++i)
3895 ia->data[i] = i * 1.234;
3897 // Check named initializers.
3898 struct named_init ni = {
3899 .number = 34,
3900 .name = L"Test wide string",
3901 .average = 543.34343,
3904 ni.number = 58;
3906 int dynamic_array[ni.number];
3907 dynamic_array[ni.number - 1] = 543;
3909 // work around unused variable warnings
3910 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3911 || dynamic_array[ni.number - 1] != 543);
3914 return 0;
3916 _ACEOF
3917 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3919 CC="$ac_save_CC $ac_arg"
3920 if ac_fn_c_try_compile "$LINENO"; then :
3921 ac_cv_prog_cc_c99=$ac_arg
3923 rm -f core conftest.err conftest.$ac_objext
3924 test "x$ac_cv_prog_cc_c99" != "xno" && break
3925 done
3926 rm -f conftest.$ac_ext
3927 CC=$ac_save_CC
3930 # AC_CACHE_VAL
3931 case "x$ac_cv_prog_cc_c99" in
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3934 $as_echo "none needed" >&6; } ;;
3935 xno)
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3937 $as_echo "unsupported" >&6; } ;;
3939 CC="$CC $ac_cv_prog_cc_c99"
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3941 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3942 esac
3943 if test "x$ac_cv_prog_cc_c99" != xno; then :
3944 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3945 else
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3947 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3948 if ${ac_cv_prog_cc_c89+:} false; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 ac_cv_prog_cc_c89=no
3952 ac_save_CC=$CC
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955 #include <stdarg.h>
3956 #include <stdio.h>
3957 struct stat;
3958 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3959 struct buf { int x; };
3960 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3961 static char *e (p, i)
3962 char **p;
3963 int i;
3965 return p[i];
3967 static char *f (char * (*g) (char **, int), char **p, ...)
3969 char *s;
3970 va_list v;
3971 va_start (v,p);
3972 s = g (p, va_arg (v,int));
3973 va_end (v);
3974 return s;
3977 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3978 function prototypes and stuff, but not '\xHH' hex character constants.
3979 These don't provoke an error unfortunately, instead are silently treated
3980 as 'x'. The following induces an error, until -std is added to get
3981 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3982 array size at least. It's necessary to write '\x00'==0 to get something
3983 that's true only with -std. */
3984 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3986 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3987 inside strings and character constants. */
3988 #define FOO(x) 'x'
3989 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3991 int test (int i, double x);
3992 struct s1 {int (*f) (int a);};
3993 struct s2 {int (*f) (double a);};
3994 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3995 int argc;
3996 char **argv;
3998 main ()
4000 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4002 return 0;
4004 _ACEOF
4005 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4006 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4008 CC="$ac_save_CC $ac_arg"
4009 if ac_fn_c_try_compile "$LINENO"; then :
4010 ac_cv_prog_cc_c89=$ac_arg
4012 rm -f core conftest.err conftest.$ac_objext
4013 test "x$ac_cv_prog_cc_c89" != "xno" && break
4014 done
4015 rm -f conftest.$ac_ext
4016 CC=$ac_save_CC
4019 # AC_CACHE_VAL
4020 case "x$ac_cv_prog_cc_c89" in
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4023 $as_echo "none needed" >&6; } ;;
4024 xno)
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4026 $as_echo "unsupported" >&6; } ;;
4028 CC="$CC $ac_cv_prog_cc_c89"
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4030 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4031 esac
4032 if test "x$ac_cv_prog_cc_c89" != xno; then :
4033 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4034 else
4035 ac_cv_prog_cc_stdc=no
4040 esac
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4042 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4043 if ${ac_cv_prog_cc_stdc+:} false; then :
4044 $as_echo_n "(cached) " >&6
4047 case $ac_cv_prog_cc_stdc in #(
4048 no) :
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4050 $as_echo "unsupported" >&6; } ;; #(
4051 '') :
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4053 $as_echo "none needed" >&6; } ;; #(
4054 *) :
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4056 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4057 esac
4059 ac_ext=c
4060 ac_cpp='$CPP $CPPFLAGS'
4061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4065 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4066 # On Suns, sometimes $CPP names a directory.
4067 if test -n "$CPP" && test -d "$CPP"; then
4068 CPP=
4070 if test -z "$CPP"; then
4071 if ${ac_cv_prog_CPP+:} false; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 # Double quotes because CPP needs to be expanded
4075 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4077 ac_preproc_ok=false
4078 for ac_c_preproc_warn_flag in '' yes
4080 # Use a header file that comes with gcc, so configuring glibc
4081 # with a fresh cross-compiler works.
4082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4083 # <limits.h> exists even on freestanding compilers.
4084 # On the NeXT, cc -E runs the code through the compiler's parser,
4085 # not just through cpp. "Syntax error" is here to catch this case.
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088 #ifdef __STDC__
4089 # include <limits.h>
4090 #else
4091 # include <assert.h>
4092 #endif
4093 Syntax error
4094 _ACEOF
4095 if ac_fn_c_try_cpp "$LINENO"; then :
4097 else
4098 # Broken: fails on valid input.
4099 continue
4101 rm -f conftest.err conftest.i conftest.$ac_ext
4103 # OK, works on sane cases. Now check whether nonexistent headers
4104 # can be detected and how.
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107 #include <ac_nonexistent.h>
4108 _ACEOF
4109 if ac_fn_c_try_cpp "$LINENO"; then :
4110 # Broken: success on invalid input.
4111 continue
4112 else
4113 # Passes both tests.
4114 ac_preproc_ok=:
4115 break
4117 rm -f conftest.err conftest.i conftest.$ac_ext
4119 done
4120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4121 rm -f conftest.i conftest.err conftest.$ac_ext
4122 if $ac_preproc_ok; then :
4123 break
4126 done
4127 ac_cv_prog_CPP=$CPP
4130 CPP=$ac_cv_prog_CPP
4131 else
4132 ac_cv_prog_CPP=$CPP
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4135 $as_echo "$CPP" >&6; }
4136 ac_preproc_ok=false
4137 for ac_c_preproc_warn_flag in '' yes
4139 # Use a header file that comes with gcc, so configuring glibc
4140 # with a fresh cross-compiler works.
4141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4142 # <limits.h> exists even on freestanding compilers.
4143 # On the NeXT, cc -E runs the code through the compiler's parser,
4144 # not just through cpp. "Syntax error" is here to catch this case.
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147 #ifdef __STDC__
4148 # include <limits.h>
4149 #else
4150 # include <assert.h>
4151 #endif
4152 Syntax error
4153 _ACEOF
4154 if ac_fn_c_try_cpp "$LINENO"; then :
4156 else
4157 # Broken: fails on valid input.
4158 continue
4160 rm -f conftest.err conftest.i conftest.$ac_ext
4162 # OK, works on sane cases. Now check whether nonexistent headers
4163 # can be detected and how.
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166 #include <ac_nonexistent.h>
4167 _ACEOF
4168 if ac_fn_c_try_cpp "$LINENO"; then :
4169 # Broken: success on invalid input.
4170 continue
4171 else
4172 # Passes both tests.
4173 ac_preproc_ok=:
4174 break
4176 rm -f conftest.err conftest.i conftest.$ac_ext
4178 done
4179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4180 rm -f conftest.i conftest.err conftest.$ac_ext
4181 if $ac_preproc_ok; then :
4183 else
4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4187 See \`config.log' for more details" "$LINENO" 5; }
4190 ac_ext=c
4191 ac_cpp='$CPP $CPPFLAGS'
4192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197 # Check for a compatible awk
4198 for ac_prog in gawk nawk
4200 # Extract the first word of "$ac_prog", so it can be a program name with args.
4201 set dummy $ac_prog; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if ${ac_cv_prog_AWK+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 if test -n "$AWK"; then
4208 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_AWK="$ac_prog"
4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4221 done
4222 done
4223 IFS=$as_save_IFS
4227 AWK=$ac_cv_prog_AWK
4228 if test -n "$AWK"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4230 $as_echo "$AWK" >&6; }
4231 else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4237 test -n "$AWK" && break
4238 done
4240 req_avail=yes
4241 if test "$AWK" = ""; then
4242 req_avail=no
4244 if test "$AWK" = "no"; then
4245 req_avail=no
4247 if test "$req_avail" = "no"; then
4248 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4250 # Extract the first word of "mmake", so it can be a program name with args.
4251 set dummy mmake; ac_word=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if ${ac_cv_prog_MMAKE+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 if test -n "$MMAKE"; then
4258 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4259 else
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_MMAKE="mmake "
4268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 break 2
4271 done
4272 done
4273 IFS=$as_save_IFS
4277 MMAKE=$ac_cv_prog_MMAKE
4278 if test -n "$MMAKE"; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4280 $as_echo "$MMAKE" >&6; }
4281 else
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4288 # Perform some default variable assignments. Note all of these will be
4289 # Regenerated from the script, so there is no need to cache them.
4291 aros_build_host=$host
4292 aros_host_cpp="$CPP"
4293 aros_host_cc="$CC"
4294 aros_host_cxx="$CXX"
4295 if test "$GCC" = "yes"; then
4296 aros_gcc_ld=`$CC -print-prog-name=ld`
4297 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4298 set dummy `basename $aros_gcc_ld`; ac_word=$2
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4300 $as_echo_n "checking for $ac_word... " >&6; }
4301 if ${ac_cv_path_aros_host_ld+:} false; then :
4302 $as_echo_n "(cached) " >&6
4303 else
4304 case $aros_host_ld in
4305 [\\/]* | ?:[\\/]*)
4306 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in `dirname $aros_gcc_ld`
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4320 done
4321 done
4322 IFS=$as_save_IFS
4325 esac
4327 aros_host_ld=$ac_cv_path_aros_host_ld
4328 if test -n "$aros_host_ld"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4330 $as_echo "$aros_host_ld" >&6; }
4331 else
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333 $as_echo "no" >&6; }
4338 if test "$aros_host_ld" = ""; then
4339 # Extract the first word of "ld", so it can be a program name with args.
4340 set dummy ld; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if ${ac_cv_path_aros_host_ld+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 case $aros_host_ld in
4347 [\\/]* | ?:[\\/]*)
4348 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4358 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 break 2
4362 done
4363 done
4364 IFS=$as_save_IFS
4367 esac
4369 aros_host_ld=$ac_cv_path_aros_host_ld
4370 if test -n "$aros_host_ld"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4372 $as_echo "$aros_host_ld" >&6; }
4373 else
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4380 req_avail=yes
4381 if test "$aros_host_ld" = ""; then
4382 req_avail=no
4384 if test "$aros_host_ld" = "no"; then
4385 req_avail=no
4387 if test "$req_avail" = "no"; then
4388 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4390 aros_host_make="make"
4391 aros_host_cflags="$CFLAGS"
4392 aros_host_cxxflags="$CXXFLAGS"
4393 aros_host_cppflags="$CPPFLAGS"
4394 aros_host_ldflags="$LDFLAGS"
4395 aros_host_debug="-g -O0"
4396 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4397 aros_host_mkargs="--no-print-directory"
4398 aros_host_exe_suffix="$EXEEXT"
4399 aros_host_lib_suffix=""
4401 # Ignore all compliance, AROS ROMs = 0
4402 # KickStart v1.0 = 30
4403 # KickStart v1.3 = 34
4404 # KickStart v2.0 = 37
4405 # KickStart v3.0 = 39
4406 # KickStart v3.1 = 40
4407 # AmigaOS v3.5 = 44
4408 aros_amigaos_compliance=0
4410 for ac_prog in aclocal aclocal19 aclocal-1.9
4412 # Extract the first word of "$ac_prog", so it can be a program name with args.
4413 set dummy $ac_prog; ac_word=$2
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 if test -n "$aros_host_aclocal"; then
4420 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4429 ac_cv_prog_aros_host_aclocal="$ac_prog"
4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4433 done
4434 done
4435 IFS=$as_save_IFS
4439 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4440 if test -n "$aros_host_aclocal"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4442 $as_echo "$aros_host_aclocal" >&6; }
4443 else
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4449 test -n "$aros_host_aclocal" && break
4450 done
4452 for ac_prog in autoconf autoconf259 autoconf253
4454 # Extract the first word of "$ac_prog", so it can be a program name with args.
4455 set dummy $ac_prog; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if test -n "$aros_host_autoconf"; then
4462 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471 ac_cv_prog_aros_host_autoconf="$ac_prog"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4475 done
4476 done
4477 IFS=$as_save_IFS
4481 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4482 if test -n "$aros_host_autoconf"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4484 $as_echo "$aros_host_autoconf" >&6; }
4485 else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4491 test -n "$aros_host_autoconf" && break
4492 done
4494 for ac_prog in autoheader autoheader259 autoheader253
4496 # Extract the first word of "$ac_prog", so it can be a program name with args.
4497 set dummy $ac_prog; ac_word=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if test -n "$aros_host_autoheader"; then
4504 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_aros_host_autoheader="$ac_prog"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4517 done
4518 done
4519 IFS=$as_save_IFS
4523 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4524 if test -n "$aros_host_autoheader"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4526 $as_echo "$aros_host_autoheader" >&6; }
4527 else
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4533 test -n "$aros_host_autoheader" && break
4534 done
4536 for ac_prog in automake automake19 automake-1.9
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if ${ac_cv_prog_aros_host_automake+:} false; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$aros_host_automake"; then
4546 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_aros_host_automake="$ac_prog"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4565 aros_host_automake=$ac_cv_prog_aros_host_automake
4566 if test -n "$aros_host_automake"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4568 $as_echo "$aros_host_automake" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4575 test -n "$aros_host_automake" && break
4576 done
4579 req_avail=yes
4580 if test "$aros_host_aclocal" = ""; then
4581 req_avail=no
4583 if test "$aros_host_aclocal" = "no"; then
4584 req_avail=no
4586 if test "$req_avail" = "no"; then
4587 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4589 req_avail=yes
4590 if test "$aros_host_automake" = ""; then
4591 req_avail=no
4593 if test "$aros_host_automake" = "no"; then
4594 req_avail=no
4596 if test "$req_avail" = "no"; then
4597 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4600 case "$aros_host_cc" in
4601 *clang*)
4602 aros_host_cc_pipe=""
4604 *gcc*)
4605 aros_host_cc_pipe="-pipe"
4607 icc)
4608 aros_host_cc_pipe=""
4611 aros_host_cc_pipe=""
4613 esac
4615 aros_kernel_cc_includes=""
4616 aros_target_cc_includes=""
4617 host_cc_elf=yes
4619 # ----------------------------------------------------------------------------------------
4620 # Host-specific defaults
4622 # This is the main host configuration section. It is where the host
4623 # can change the values of any variables it needs to change. We do
4624 # not look at anything that compiles to the target yet, we'll get
4625 # to that later.
4627 case "$host_os" in
4628 aros*)
4629 aros_host_arch="aros"
4630 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4631 case "$host_cpu" in
4632 *i?86*)
4633 aros_host_cpu="i386"
4635 *x86_64*)
4636 aros_host_cpu="x86_64"
4638 *powerpc*)
4639 aros_host_cpu="ppc"
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4643 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4644 aros_host_cpu="$host_cpu"
4646 esac
4649 linux*)
4650 aros_host_arch="linux"
4651 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4652 android_build_os="linux-x86"
4653 android_tool="android"
4654 default_android_sdk="/opt/android-sdk-linux_x86"
4655 case "$host_cpu" in
4656 *i?86*)
4657 aros_host_cpu="i386"
4659 *x86_64*)
4660 aros_host_cpu="x86_64"
4662 *m68k*)
4663 aros_host_cpu="m68k"
4665 *powerpc*)
4666 aros_host_cpu="ppc"
4668 *arm*)
4669 aros_host_cpu="arm"
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4673 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4674 aros_host_cpu="$host_cpu"
4676 esac
4679 freebsd*)
4680 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4681 aros_host_make="gmake"
4682 aros_host_arch="freebsd"
4683 aros_host_cpu="i386"
4685 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4687 case $host_os in
4688 freebsd[234]*)
4689 aros_object_format="elf_i386"
4693 aros_object_format="elf_i386_fbsd"
4695 esac
4699 darwin*)
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4701 $as_echo_n "checking for macOS SDK files... " >&6; }
4702 LOC=$( xcode-select -p )
4703 if test $? != 0; then :
4704 as_fn_error $? "XCode incorrectly configured!
4705 please run 'xcode-select --install' before
4706 re-running configure" "$LINENO" 5
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4709 $as_echo "$LOC" >&6; }
4710 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4711 aros_host_arch="darwin"
4712 host_cc_elf=no
4713 if [ -z ${SED+x} ]; then SED="gsed"; fi
4714 android_build_os="darwin-x86"
4715 android_tool="android"
4716 default_android_sdk="/android-sdk-mac_x86"
4717 case "$host_cpu" in
4718 *i?86*)
4719 aros_host_cpu="i386"
4721 *x86_64*)
4722 aros_host_cpu="x86_64"
4724 *powerpc*)
4725 aros_host_cpu="ppc"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4729 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4730 aros_host_cpu="$host_cpu"
4732 esac
4734 aros_host_ldflags="$aros_host_ldflags -liconv"
4738 dragonfly*)
4739 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4740 aros_host_make="gmake"
4741 aros_host_arch="dragonfly"
4742 case $host_cpu in
4743 *i?86*)
4744 aros_host_cpu="i386"
4746 *amd64*)
4747 aros_host_cpu="x86_64"
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4751 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4752 aros_host_cpu="$host_cpu"
4754 esac
4757 netbsd*)
4758 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4759 aros_host_make="gmake"
4760 aros_host_arch="netbsd"
4761 case "$host_cpu" in
4762 *i?86*)
4763 aros_host_cpu="i386"
4765 *m68k*)
4766 aros_host_cpu="m68k"
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4770 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4771 aros_host_cpu="$host_cpu"
4773 esac
4774 aros_host_lib_suffix=".0.0"
4777 openbsd*)
4778 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4779 aros_host_make="gmake"
4780 aros_host_arch="openbsd"
4781 case "$host_cpu" in
4782 *i?86*)
4783 aros_host_cpu="i386"
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4787 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4788 aros_host_cpu="$host_cpu"
4790 esac
4793 solaris*)
4794 aros_host_arch="solaris"
4795 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4796 case "$host_cpu" in
4797 *i?86*)
4798 aros_host_cpu="i386"
4800 *sparc*)
4801 aros_host_cpu="sparc"
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4805 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4806 aros_host_cpu="$host_cpu"
4808 esac
4811 morphos*)
4812 aros_host_arch="morphos"
4813 aros_host_cpu="ppc"
4814 host_cc_elf=no
4817 amiga*)
4818 aros_host_arch="amiga"
4819 host_cc_elf=no
4820 SORT="/gg/bin/sort"
4821 TEST="/gg/bin/test"
4822 UNIQ="/gg/bin/uniq"
4823 FOR="for"
4824 TOUCH="/gg/bin/touch"
4825 case "$host_cpu" in
4826 *m68k*)
4827 aros_host_cpu="m68k"
4829 *powerpc*)
4830 aros_host_cpu="ppc"
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4834 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4835 aros_host_cpu="$host_cpu"
4837 esac
4840 cygwin*)
4841 aros_host_arch="cygwin"
4842 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4843 host_cc_elf=no
4844 android_build_os="windows"
4845 android_tool="android.bat"
4846 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4848 case "$host_cpu" in
4849 *i?86*)
4850 aros_host_cpu="i386"
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4854 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4855 aros_host_cpu="$host_cpu"
4857 esac
4860 mingw32*)
4861 aros_host_arch="mingw32"
4862 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4863 host_cc_elf=no
4864 android_build_os="windows"
4865 android_tool="android.bat"
4866 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4868 libpng_libextra="-lws2_32"
4870 case "$host_cpu" in
4871 *i?86*)
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4874 $as_echo_n "checking for Windows native gcc target... " >&6; }
4875 host_cpu=`gcc -dumpmachine`
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4877 $as_echo "$host_cpu" >&6; }
4880 esac
4882 case "$host_cpu" in
4883 *i?86*)
4884 aros_host_cpu="i386"
4887 mingw32*)
4888 aros_host_cpu="i386"
4891 *x86_64*)
4892 aros_host_cpu="x86_64"
4893 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4898 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4899 aros_host_cpu="$host_cpu"
4901 esac
4904 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4906 esac
4908 # Extract the first word of "ar", so it can be a program name with args.
4909 set dummy ar; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if ${ac_cv_prog_aros_host_ar+:} false; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 if test -n "$aros_host_ar"; then
4916 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4917 else
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4925 ac_cv_prog_aros_host_ar="ar cr"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4929 done
4930 done
4931 IFS=$as_save_IFS
4935 aros_host_ar=$ac_cv_prog_aros_host_ar
4936 if test -n "$aros_host_ar"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4938 $as_echo "$aros_host_ar" >&6; }
4939 else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4945 req_avail=yes
4946 if test "$aros_host_ar" = ""; then
4947 req_avail=no
4949 if test "$aros_host_ar" = "no"; then
4950 req_avail=no
4952 if test "$req_avail" = "no"; then
4953 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4955 # Extract the first word of "ranlib", so it can be a program name with args.
4956 set dummy ranlib; ac_word=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 if test -n "$aros_host_ranlib"; then
4963 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4964 else
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4972 ac_cv_prog_aros_host_ranlib="ranlib "
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 break 2
4976 done
4977 done
4978 IFS=$as_save_IFS
4982 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4983 if test -n "$aros_host_ranlib"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4985 $as_echo "$aros_host_ranlib" >&6; }
4986 else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4992 req_avail=yes
4993 if test "$aros_host_ranlib" = ""; then
4994 req_avail=no
4996 if test "$aros_host_ranlib" = "no"; then
4997 req_avail=no
4999 if test "$req_avail" = "no"; then
5000 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5002 # Extract the first word of "strip", so it can be a program name with args.
5003 set dummy strip; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if ${ac_cv_prog_aros_host_strip+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 if test -n "$aros_host_strip"; then
5010 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019 ac_cv_prog_aros_host_strip="strip "
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5023 done
5024 done
5025 IFS=$as_save_IFS
5029 aros_host_strip=$ac_cv_prog_aros_host_strip
5030 if test -n "$aros_host_strip"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5032 $as_echo "$aros_host_strip" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5039 req_avail=yes
5040 if test "$aros_host_strip" = ""; then
5041 req_avail=no
5043 if test "$aros_host_strip" = "no"; then
5044 req_avail=no
5046 if test "$req_avail" = "no"; then
5047 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5050 # Extract the first word of "rm", so it can be a program name with args.
5051 set dummy rm; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_RM+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if test -n "$RM"; then
5058 ac_cv_prog_RM="$RM" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_RM="rm -rf"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5071 done
5072 done
5073 IFS=$as_save_IFS
5077 RM=$ac_cv_prog_RM
5078 if test -n "$RM"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5080 $as_echo "$RM" >&6; }
5081 else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5087 req_avail=yes
5088 if test "$RM" = ""; then
5089 req_avail=no
5091 if test "$RM" = "no"; then
5092 req_avail=no
5094 if test "$req_avail" = "no"; then
5095 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5097 # Extract the first word of "cp", so it can be a program name with args.
5098 set dummy cp; ac_word=$2
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5101 if ${ac_cv_prog_CP+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 if test -n "$CP"; then
5105 ac_cv_prog_CP="$CP" # Let the user override the test.
5106 else
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_prog_CP="cp "
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 break 2
5118 done
5119 done
5120 IFS=$as_save_IFS
5124 CP=$ac_cv_prog_CP
5125 if test -n "$CP"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5127 $as_echo "$CP" >&6; }
5128 else
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5134 req_avail=yes
5135 if test "$CP" = ""; then
5136 req_avail=no
5138 if test "$CP" = "no"; then
5139 req_avail=no
5141 if test "$req_avail" = "no"; then
5142 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5144 # Extract the first word of "mv", so it can be a program name with args.
5145 set dummy mv; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_prog_MV+:} false; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 if test -n "$MV"; then
5152 ac_cv_prog_MV="$MV" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_MV="mv "
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5165 done
5166 done
5167 IFS=$as_save_IFS
5171 MV=$ac_cv_prog_MV
5172 if test -n "$MV"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5174 $as_echo "$MV" >&6; }
5175 else
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5181 req_avail=yes
5182 if test "$MV" = ""; then
5183 req_avail=no
5185 if test "$MV" = "no"; then
5186 req_avail=no
5188 if test "$req_avail" = "no"; then
5189 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5191 # Extract the first word of "echo", so it can be a program name with args.
5192 set dummy echo; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_prog_ECHO+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 if test -n "$ECHO"; then
5199 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_ECHO="echo "
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5212 done
5213 done
5214 IFS=$as_save_IFS
5218 ECHO=$ac_cv_prog_ECHO
5219 if test -n "$ECHO"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5221 $as_echo "$ECHO" >&6; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5228 req_avail=yes
5229 if test "$ECHO" = ""; then
5230 req_avail=no
5232 if test "$ECHO" = "no"; then
5233 req_avail=no
5235 if test "$req_avail" = "no"; then
5236 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5238 # Extract the first word of "mkdir", so it can be a program name with args.
5239 set dummy mkdir; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if ${ac_cv_prog_MKDIR+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 if test -n "$MKDIR"; then
5246 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_MKDIR="mkdir -p"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5259 done
5260 done
5261 IFS=$as_save_IFS
5265 MKDIR=$ac_cv_prog_MKDIR
5266 if test -n "$MKDIR"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5268 $as_echo "$MKDIR" >&6; }
5269 else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5275 req_avail=yes
5276 if test "$MKDIR" = ""; then
5277 req_avail=no
5279 if test "$MKDIR" = "no"; then
5280 req_avail=no
5282 if test "$req_avail" = "no"; then
5283 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5285 # Extract the first word of "touch", so it can be a program name with args.
5286 set dummy touch; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_prog_TOUCH+:} false; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if test -n "$TOUCH"; then
5293 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5302 ac_cv_prog_TOUCH="touch "
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5306 done
5307 done
5308 IFS=$as_save_IFS
5312 TOUCH=$ac_cv_prog_TOUCH
5313 if test -n "$TOUCH"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5315 $as_echo "$TOUCH" >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5322 req_avail=yes
5323 if test "$TOUCH" = ""; then
5324 req_avail=no
5326 if test "$TOUCH" = "no"; then
5327 req_avail=no
5329 if test "$req_avail" = "no"; then
5330 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5332 # Extract the first word of "sort", so it can be a program name with args.
5333 set dummy sort; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_prog_SORT+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 if test -n "$SORT"; then
5340 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5341 else
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5349 ac_cv_prog_SORT="sort "
5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 break 2
5353 done
5354 done
5355 IFS=$as_save_IFS
5359 SORT=$ac_cv_prog_SORT
5360 if test -n "$SORT"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5362 $as_echo "$SORT" >&6; }
5363 else
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5369 req_avail=yes
5370 if test "$SORT" = ""; then
5371 req_avail=no
5373 if test "$SORT" = "no"; then
5374 req_avail=no
5376 if test "$req_avail" = "no"; then
5377 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5379 # Extract the first word of "uniq", so it can be a program name with args.
5380 set dummy uniq; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_UNIQ+:} false; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 if test -n "$UNIQ"; then
5387 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_UNIQ="uniq "
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5400 done
5401 done
5402 IFS=$as_save_IFS
5406 UNIQ=$ac_cv_prog_UNIQ
5407 if test -n "$UNIQ"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5409 $as_echo "$UNIQ" >&6; }
5410 else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5416 req_avail=yes
5417 if test "$UNIQ" = ""; then
5418 req_avail=no
5420 if test "$UNIQ" = "no"; then
5421 req_avail=no
5423 if test "$req_avail" = "no"; then
5424 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5426 # Extract the first word of "true", so it can be a program name with args.
5427 set dummy true; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if ${ac_cv_prog_NOP+:} false; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 if test -n "$NOP"; then
5434 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443 ac_cv_prog_NOP="true "
5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5447 done
5448 done
5449 IFS=$as_save_IFS
5453 NOP=$ac_cv_prog_NOP
5454 if test -n "$NOP"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5456 $as_echo "$NOP" >&6; }
5457 else
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5463 req_avail=yes
5464 if test "$NOP" = ""; then
5465 req_avail=no
5467 if test "$NOP" = "no"; then
5468 req_avail=no
5470 if test "$req_avail" = "no"; then
5471 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5473 # Extract the first word of "cat", so it can be a program name with args.
5474 set dummy cat; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_CAT+:} false; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 if test -n "$CAT"; then
5481 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_CAT="cat "
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5494 done
5495 done
5496 IFS=$as_save_IFS
5500 CAT=$ac_cv_prog_CAT
5501 if test -n "$CAT"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5503 $as_echo "$CAT" >&6; }
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5510 req_avail=yes
5511 if test "$CAT" = ""; then
5512 req_avail=no
5514 if test "$CAT" = "no"; then
5515 req_avail=no
5517 if test "$req_avail" = "no"; then
5518 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5520 # Extract the first word of "bison", so it can be a program name with args.
5521 set dummy bison; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if ${ac_cv_prog_BISON+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 if test -n "$BISON"; then
5528 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5529 else
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 for as_dir in $PATH
5533 IFS=$as_save_IFS
5534 test -z "$as_dir" && as_dir=.
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5537 ac_cv_prog_BISON="bison "
5538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539 break 2
5541 done
5542 done
5543 IFS=$as_save_IFS
5547 BISON=$ac_cv_prog_BISON
5548 if test -n "$BISON"; then
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5550 $as_echo "$BISON" >&6; }
5551 else
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5557 req_avail=yes
5558 if test "$BISON" = ""; then
5559 req_avail=no
5561 if test "$BISON" = "no"; then
5562 req_avail=no
5564 if test "$req_avail" = "no"; then
5565 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5567 # Extract the first word of "flex", so it can be a program name with args.
5568 set dummy flex; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_FLEX+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if test -n "$FLEX"; then
5575 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_FLEX="flex "
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5588 done
5589 done
5590 IFS=$as_save_IFS
5594 FLEX=$ac_cv_prog_FLEX
5595 if test -n "$FLEX"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5597 $as_echo "$FLEX" >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5604 req_avail=yes
5605 if test "$FLEX" = ""; then
5606 req_avail=no
5608 if test "$FLEX" = "no"; then
5609 req_avail=no
5611 if test "$req_avail" = "no"; then
5612 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5614 # Extract the first word of "pngtopnm", so it can be a program name with args.
5615 set dummy pngtopnm; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 if test -n "$PNGTOPNM"; then
5622 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5631 ac_cv_prog_PNGTOPNM="pngtopnm "
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5635 done
5636 done
5637 IFS=$as_save_IFS
5641 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5642 if test -n "$PNGTOPNM"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5644 $as_echo "$PNGTOPNM" >&6; }
5645 else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5651 req_avail=yes
5652 if test "$PNGTOPNM" = ""; then
5653 req_avail=no
5655 if test "$PNGTOPNM" = "no"; then
5656 req_avail=no
5658 if test "$req_avail" = "no"; then
5659 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5661 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5662 set dummy ppmtoilbm; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5666 $as_echo_n "(cached) " >&6
5667 else
5668 if test -n "$PPMTOILBM"; then
5669 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 break 2
5682 done
5683 done
5684 IFS=$as_save_IFS
5688 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5689 if test -n "$PPMTOILBM"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5691 $as_echo "$PPMTOILBM" >&6; }
5692 else
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5698 req_avail=yes
5699 if test "$PPMTOILBM" = ""; then
5700 req_avail=no
5702 if test "$PPMTOILBM" = "no"; then
5703 req_avail=no
5705 if test "$req_avail" = "no"; then
5706 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5708 # Extract the first word of "sed", so it can be a program name with args.
5709 set dummy sed; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if ${ac_cv_prog_SED+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 if test -n "$SED"; then
5716 ac_cv_prog_SED="$SED" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_SED="sed "
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5729 done
5730 done
5731 IFS=$as_save_IFS
5735 SED=$ac_cv_prog_SED
5736 if test -n "$SED"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5738 $as_echo "$SED" >&6; }
5739 else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5745 req_avail=yes
5746 if test "$SED" = ""; then
5747 req_avail=no
5749 if test "$SED" = "no"; then
5750 req_avail=no
5752 if test "$req_avail" = "no"; then
5753 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5755 # Extract the first word of "chmod", so it can be a program name with args.
5756 set dummy chmod; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if ${ac_cv_prog_CHMOD+:} false; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if test -n "$CHMOD"; then
5763 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772 ac_cv_prog_CHMOD="chmod "
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5776 done
5777 done
5778 IFS=$as_save_IFS
5782 CHMOD=$ac_cv_prog_CHMOD
5783 if test -n "$CHMOD"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5785 $as_echo "$CHMOD" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5792 req_avail=yes
5793 if test "$CHMOD" = ""; then
5794 req_avail=no
5796 if test "$CHMOD" = "no"; then
5797 req_avail=no
5799 if test "$req_avail" = "no"; then
5800 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5802 # Extract the first word of "patch", so it can be a program name with args.
5803 set dummy patch; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if ${ac_cv_prog_PATCH+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 if test -n "$PATCH"; then
5810 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_PATCH="patch "
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5823 done
5824 done
5825 IFS=$as_save_IFS
5829 PATCH=$ac_cv_prog_PATCH
5830 if test -n "$PATCH"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5832 $as_echo "$PATCH" >&6; }
5833 else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5839 req_avail=yes
5840 if test "$PATCH" = ""; then
5841 req_avail=no
5843 if test "$PATCH" = "no"; then
5844 req_avail=no
5846 if test "$req_avail" = "no"; then
5847 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5856 if test -n "$PYTHON"; then
5857 # If the user set $PYTHON, use it and don't search something else.
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5859 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5860 prog="import sys
5861 # split strings by '.' and convert to numeric. Append some zeros
5862 # because we need at least 4 digits for the hex conversion.
5863 # map returns an iterator in Python 3.0 and a list in 2.x
5864 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5865 minverhex = 0
5866 # xrange is not present in Python 3.0 and range returns an iterator
5867 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5868 sys.exit(sys.hexversion < minverhex)"
5869 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5870 ($PYTHON -c "$prog") >&5 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; then :
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5875 $as_echo "yes" >&6; }
5876 else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5881 am_display_PYTHON=$PYTHON
5882 else
5883 # Otherwise, try each interpreter until we find one that satisfies
5884 # VERSION.
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5886 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5887 if ${am_cv_pathless_PYTHON+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5891 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
5892 test "$am_cv_pathless_PYTHON" = none && break
5893 prog="import sys
5894 # split strings by '.' and convert to numeric. Append some zeros
5895 # because we need at least 4 digits for the hex conversion.
5896 # map returns an iterator in Python 3.0 and a list in 2.x
5897 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5898 minverhex = 0
5899 # xrange is not present in Python 3.0 and range returns an iterator
5900 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5901 sys.exit(sys.hexversion < minverhex)"
5902 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5903 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5904 ac_status=$?
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; then :
5907 break
5909 done
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5912 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5913 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5914 if test "$am_cv_pathless_PYTHON" = none; then
5915 PYTHON=:
5916 else
5917 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5918 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if ${ac_cv_path_PYTHON+:} false; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 case $PYTHON in
5925 [\\/]* | ?:[\\/]*)
5926 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5936 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5940 done
5941 done
5942 IFS=$as_save_IFS
5945 esac
5947 PYTHON=$ac_cv_path_PYTHON
5948 if test -n "$PYTHON"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5950 $as_echo "$PYTHON" >&6; }
5951 else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5958 am_display_PYTHON=$am_cv_pathless_PYTHON
5962 if test "$PYTHON" = :; then
5963 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5964 else
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5968 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5969 if ${am_cv_python_version+:} false; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5972 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5975 $as_echo "$am_cv_python_version" >&6; }
5976 PYTHON_VERSION=$am_cv_python_version
5980 PYTHON_PREFIX='${prefix}'
5982 PYTHON_EXEC_PREFIX='${exec_prefix}'
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5987 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5988 if ${am_cv_python_platform+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5994 $as_echo "$am_cv_python_platform" >&6; }
5995 PYTHON_PLATFORM=$am_cv_python_platform
5998 # Just factor out some code duplication.
5999 am_python_setup_sysconfig="\
6000 import sys
6001 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6002 # with python 3.x. See automake bug#10227.
6003 try:
6004 import sysconfig
6005 except ImportError:
6006 can_use_sysconfig = 0
6007 else:
6008 can_use_sysconfig = 1
6009 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6010 # <https://github.com/pypa/virtualenv/issues/118>
6011 try:
6012 from platform import python_implementation
6013 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6014 can_use_sysconfig = 0
6015 except ImportError:
6016 pass"
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6020 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6021 if ${am_cv_python_pythondir+:} false; then :
6022 $as_echo_n "(cached) " >&6
6023 else
6024 if test "x$prefix" = xNONE
6025 then
6026 am_py_prefix=$ac_default_prefix
6027 else
6028 am_py_prefix=$prefix
6030 am_cv_python_pythondir=`$PYTHON -c "
6031 $am_python_setup_sysconfig
6032 if can_use_sysconfig:
6033 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6034 else:
6035 from distutils import sysconfig
6036 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6037 sys.stdout.write(sitedir)"`
6038 case $am_cv_python_pythondir in
6039 $am_py_prefix*)
6040 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6041 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6044 case $am_py_prefix in
6045 /usr|/System*) ;;
6047 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6049 esac
6051 esac
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6055 $as_echo "$am_cv_python_pythondir" >&6; }
6056 pythondir=$am_cv_python_pythondir
6060 pkgpythondir=\${pythondir}/$PACKAGE
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6064 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6065 if ${am_cv_python_pyexecdir+:} false; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 if test "x$exec_prefix" = xNONE
6069 then
6070 am_py_exec_prefix=$am_py_prefix
6071 else
6072 am_py_exec_prefix=$exec_prefix
6074 am_cv_python_pyexecdir=`$PYTHON -c "
6075 $am_python_setup_sysconfig
6076 if can_use_sysconfig:
6077 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6078 else:
6079 from distutils import sysconfig
6080 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6081 sys.stdout.write(sitedir)"`
6082 case $am_cv_python_pyexecdir in
6083 $am_py_exec_prefix*)
6084 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6085 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6088 case $am_py_exec_prefix in
6089 /usr|/System*) ;;
6091 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6093 esac
6095 esac
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6099 $as_echo "$am_cv_python_pyexecdir" >&6; }
6100 pyexecdir=$am_cv_python_pyexecdir
6104 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6112 # Check whether --enable-libpng-config was given.
6113 if test "${enable_libpng_config+set}" = set; then :
6114 enableval=$enable_libpng_config;
6117 if test "$enable_libpng_config" != "no"; then
6118 # Extract the first word of "libpng-config", so it can be a program name with args.
6119 set dummy libpng-config; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 if test -n "$arosconfig_use_libpngconfig"; then
6126 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6139 done
6140 done
6141 IFS=$as_save_IFS
6143 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6146 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6147 if test -n "$arosconfig_use_libpngconfig"; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6149 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6150 else
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 $as_echo "no" >&6; }
6157 if test "$arosconfig_use_libpngconfig" = "yes"; then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6159 $as_echo_n "checking libpng-config library... " >&6; }
6160 libpng_incdir="`libpng-config --cflags`"
6161 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6162 libpng="`libpng-config --libs`"
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6164 $as_echo "$libpng" >&6; }
6165 else
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6168 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6169 if ${ac_cv_lib_png_png_read_png+:} false; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 ac_check_lib_save_LIBS=$LIBS
6173 LIBS="-lpng $LIBS"
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6177 /* Override any GCC internal prototype to avoid an error.
6178 Use char because int might match the return type of a GCC
6179 builtin and then its argument prototype would still apply. */
6180 #ifdef __cplusplus
6181 extern "C"
6182 #endif
6183 char png_read_png ();
6185 main ()
6187 return png_read_png ();
6189 return 0;
6191 _ACEOF
6192 if ac_fn_c_try_link "$LINENO"; then :
6193 ac_cv_lib_png_png_read_png=yes
6194 else
6195 ac_cv_lib_png_png_read_png=no
6197 rm -f core conftest.err conftest.$ac_objext \
6198 conftest$ac_exeext conftest.$ac_ext
6199 LIBS=$ac_check_lib_save_LIBS
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6202 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6203 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6204 libpng="-lpng"
6205 else
6206 libpng="no"
6209 if test "$libpng_libextra" != ""; then
6210 if test "$libpng" != "no"; then
6211 libpng_libextra="$libpng_libextra $libpng"
6215 req_avail=yes
6216 if test "$libpng" = ""; then
6217 req_avail=no
6219 if test "$libpng" = "no"; then
6220 req_avail=no
6222 if test "$req_avail" = "no"; then
6223 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6229 FOR=for
6231 IF=if
6233 TEST=test
6235 CMP=cmp
6239 # Check for some includes for the X11 HIDD and the kernel
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6242 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6243 if ${ac_cv_path_GREP+:} false; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 if test -z "$GREP"; then
6247 ac_path_GREP_found=false
6248 # Loop through the user's path and test for each of PROGNAME-LIST
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
6254 for ac_prog in grep ggrep; do
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6257 as_fn_executable_p "$ac_path_GREP" || continue
6258 # Check for GNU ac_path_GREP and select it if it is found.
6259 # Check for GNU $ac_path_GREP
6260 case `"$ac_path_GREP" --version 2>&1` in
6261 *GNU*)
6262 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6264 ac_count=0
6265 $as_echo_n 0123456789 >"conftest.in"
6266 while :
6268 cat "conftest.in" "conftest.in" >"conftest.tmp"
6269 mv "conftest.tmp" "conftest.in"
6270 cp "conftest.in" "conftest.nl"
6271 $as_echo 'GREP' >> "conftest.nl"
6272 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6274 as_fn_arith $ac_count + 1 && ac_count=$as_val
6275 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6276 # Best one so far, save it but keep looking for a better one
6277 ac_cv_path_GREP="$ac_path_GREP"
6278 ac_path_GREP_max=$ac_count
6280 # 10*(2^10) chars as input seems more than enough
6281 test $ac_count -gt 10 && break
6282 done
6283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6284 esac
6286 $ac_path_GREP_found && break 3
6287 done
6288 done
6289 done
6290 IFS=$as_save_IFS
6291 if test -z "$ac_cv_path_GREP"; then
6292 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6294 else
6295 ac_cv_path_GREP=$GREP
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6300 $as_echo "$ac_cv_path_GREP" >&6; }
6301 GREP="$ac_cv_path_GREP"
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6305 $as_echo_n "checking for egrep... " >&6; }
6306 if ${ac_cv_path_EGREP+:} false; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6310 then ac_cv_path_EGREP="$GREP -E"
6311 else
6312 if test -z "$EGREP"; then
6313 ac_path_EGREP_found=false
6314 # Loop through the user's path and test for each of PROGNAME-LIST
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_prog in egrep; do
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6323 as_fn_executable_p "$ac_path_EGREP" || continue
6324 # Check for GNU ac_path_EGREP and select it if it is found.
6325 # Check for GNU $ac_path_EGREP
6326 case `"$ac_path_EGREP" --version 2>&1` in
6327 *GNU*)
6328 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6330 ac_count=0
6331 $as_echo_n 0123456789 >"conftest.in"
6332 while :
6334 cat "conftest.in" "conftest.in" >"conftest.tmp"
6335 mv "conftest.tmp" "conftest.in"
6336 cp "conftest.in" "conftest.nl"
6337 $as_echo 'EGREP' >> "conftest.nl"
6338 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6340 as_fn_arith $ac_count + 1 && ac_count=$as_val
6341 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6342 # Best one so far, save it but keep looking for a better one
6343 ac_cv_path_EGREP="$ac_path_EGREP"
6344 ac_path_EGREP_max=$ac_count
6346 # 10*(2^10) chars as input seems more than enough
6347 test $ac_count -gt 10 && break
6348 done
6349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6350 esac
6352 $ac_path_EGREP_found && break 3
6353 done
6354 done
6355 done
6356 IFS=$as_save_IFS
6357 if test -z "$ac_cv_path_EGREP"; then
6358 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6360 else
6361 ac_cv_path_EGREP=$EGREP
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6367 $as_echo "$ac_cv_path_EGREP" >&6; }
6368 EGREP="$ac_cv_path_EGREP"
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6372 $as_echo_n "checking for ANSI C header files... " >&6; }
6373 if ${ac_cv_header_stdc+:} false; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6378 #include <stdlib.h>
6379 #include <stdarg.h>
6380 #include <string.h>
6381 #include <float.h>
6384 main ()
6388 return 0;
6390 _ACEOF
6391 if ac_fn_c_try_compile "$LINENO"; then :
6392 ac_cv_header_stdc=yes
6393 else
6394 ac_cv_header_stdc=no
6396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398 if test $ac_cv_header_stdc = yes; then
6399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6402 #include <string.h>
6404 _ACEOF
6405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6406 $EGREP "memchr" >/dev/null 2>&1; then :
6408 else
6409 ac_cv_header_stdc=no
6411 rm -f conftest*
6415 if test $ac_cv_header_stdc = yes; then
6416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6419 #include <stdlib.h>
6421 _ACEOF
6422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6423 $EGREP "free" >/dev/null 2>&1; then :
6425 else
6426 ac_cv_header_stdc=no
6428 rm -f conftest*
6432 if test $ac_cv_header_stdc = yes; then
6433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6434 if test "$cross_compiling" = yes; then :
6436 else
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6439 #include <ctype.h>
6440 #include <stdlib.h>
6441 #if ((' ' & 0x0FF) == 0x020)
6442 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6443 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6444 #else
6445 # define ISLOWER(c) \
6446 (('a' <= (c) && (c) <= 'i') \
6447 || ('j' <= (c) && (c) <= 'r') \
6448 || ('s' <= (c) && (c) <= 'z'))
6449 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6450 #endif
6452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6454 main ()
6456 int i;
6457 for (i = 0; i < 256; i++)
6458 if (XOR (islower (i), ISLOWER (i))
6459 || toupper (i) != TOUPPER (i))
6460 return 2;
6461 return 0;
6463 _ACEOF
6464 if ac_fn_c_try_run "$LINENO"; then :
6466 else
6467 ac_cv_header_stdc=no
6469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6470 conftest.$ac_objext conftest.beam conftest.$ac_ext
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6476 $as_echo "$ac_cv_header_stdc" >&6; }
6477 if test $ac_cv_header_stdc = yes; then
6479 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6483 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6484 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6485 inttypes.h stdint.h unistd.h
6486 do :
6487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6488 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6490 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6491 cat >>confdefs.h <<_ACEOF
6492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6493 _ACEOF
6497 done
6500 for ac_header in sys/ipc.h sys/shm.h \
6501 sys/mmap.h sys/mman.h sysexits.h \
6502 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6504 do :
6505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6506 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6507 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6508 cat >>confdefs.h <<_ACEOF
6509 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6510 _ACEOF
6514 done
6517 for ac_header in sys/mount.h
6518 do :
6519 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6521 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6522 cat >>confdefs.h <<_ACEOF
6523 #define HAVE_SYS_MOUNT_H 1
6524 _ACEOF
6528 done
6531 ac_header_dirent=no
6532 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6533 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6535 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6536 if eval \${$as_ac_Header+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 #include <sys/types.h>
6542 #include <$ac_hdr>
6545 main ()
6547 if ((DIR *) 0)
6548 return 0;
6550 return 0;
6552 _ACEOF
6553 if ac_fn_c_try_compile "$LINENO"; then :
6554 eval "$as_ac_Header=yes"
6555 else
6556 eval "$as_ac_Header=no"
6558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 eval ac_res=\$$as_ac_Header
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6562 $as_echo "$ac_res" >&6; }
6563 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6564 cat >>confdefs.h <<_ACEOF
6565 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6566 _ACEOF
6568 ac_header_dirent=$ac_hdr; break
6571 done
6572 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6573 if test $ac_header_dirent = dirent.h; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6575 $as_echo_n "checking for library containing opendir... " >&6; }
6576 if ${ac_cv_search_opendir+:} false; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 ac_func_search_save_LIBS=$LIBS
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6583 /* Override any GCC internal prototype to avoid an error.
6584 Use char because int might match the return type of a GCC
6585 builtin and then its argument prototype would still apply. */
6586 #ifdef __cplusplus
6587 extern "C"
6588 #endif
6589 char opendir ();
6591 main ()
6593 return opendir ();
6595 return 0;
6597 _ACEOF
6598 for ac_lib in '' dir; do
6599 if test -z "$ac_lib"; then
6600 ac_res="none required"
6601 else
6602 ac_res=-l$ac_lib
6603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6605 if ac_fn_c_try_link "$LINENO"; then :
6606 ac_cv_search_opendir=$ac_res
6608 rm -f core conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext
6610 if ${ac_cv_search_opendir+:} false; then :
6611 break
6613 done
6614 if ${ac_cv_search_opendir+:} false; then :
6616 else
6617 ac_cv_search_opendir=no
6619 rm conftest.$ac_ext
6620 LIBS=$ac_func_search_save_LIBS
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6623 $as_echo "$ac_cv_search_opendir" >&6; }
6624 ac_res=$ac_cv_search_opendir
6625 if test "$ac_res" != no; then :
6626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6630 else
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6632 $as_echo_n "checking for library containing opendir... " >&6; }
6633 if ${ac_cv_search_opendir+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 ac_func_search_save_LIBS=$LIBS
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6640 /* Override any GCC internal prototype to avoid an error.
6641 Use char because int might match the return type of a GCC
6642 builtin and then its argument prototype would still apply. */
6643 #ifdef __cplusplus
6644 extern "C"
6645 #endif
6646 char opendir ();
6648 main ()
6650 return opendir ();
6652 return 0;
6654 _ACEOF
6655 for ac_lib in '' x; do
6656 if test -z "$ac_lib"; then
6657 ac_res="none required"
6658 else
6659 ac_res=-l$ac_lib
6660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6662 if ac_fn_c_try_link "$LINENO"; then :
6663 ac_cv_search_opendir=$ac_res
6665 rm -f core conftest.err conftest.$ac_objext \
6666 conftest$ac_exeext
6667 if ${ac_cv_search_opendir+:} false; then :
6668 break
6670 done
6671 if ${ac_cv_search_opendir+:} false; then :
6673 else
6674 ac_cv_search_opendir=no
6676 rm conftest.$ac_ext
6677 LIBS=$ac_func_search_save_LIBS
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6680 $as_echo "$ac_cv_search_opendir" >&6; }
6681 ac_res=$ac_cv_search_opendir
6682 if test "$ac_res" != no; then :
6683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6690 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6691 if ${ac_cv_header_stat_broken+:} false; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6696 #include <sys/types.h>
6697 #include <sys/stat.h>
6699 #if defined S_ISBLK && defined S_IFDIR
6700 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6701 #endif
6703 #if defined S_ISBLK && defined S_IFCHR
6704 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6705 #endif
6707 #if defined S_ISLNK && defined S_IFREG
6708 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6709 #endif
6711 #if defined S_ISSOCK && defined S_IFREG
6712 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6713 #endif
6715 _ACEOF
6716 if ac_fn_c_try_compile "$LINENO"; then :
6717 ac_cv_header_stat_broken=no
6718 else
6719 ac_cv_header_stat_broken=yes
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6724 $as_echo "$ac_cv_header_stat_broken" >&6; }
6725 if test $ac_cv_header_stat_broken = yes; then
6727 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6732 $as_echo_n "checking for ANSI C header files... " >&6; }
6733 if ${ac_cv_header_stdc+:} false; then :
6734 $as_echo_n "(cached) " >&6
6735 else
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6738 #include <stdlib.h>
6739 #include <stdarg.h>
6740 #include <string.h>
6741 #include <float.h>
6744 main ()
6748 return 0;
6750 _ACEOF
6751 if ac_fn_c_try_compile "$LINENO"; then :
6752 ac_cv_header_stdc=yes
6753 else
6754 ac_cv_header_stdc=no
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 if test $ac_cv_header_stdc = yes; then
6759 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762 #include <string.h>
6764 _ACEOF
6765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6766 $EGREP "memchr" >/dev/null 2>&1; then :
6768 else
6769 ac_cv_header_stdc=no
6771 rm -f conftest*
6775 if test $ac_cv_header_stdc = yes; then
6776 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 #include <stdlib.h>
6781 _ACEOF
6782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6783 $EGREP "free" >/dev/null 2>&1; then :
6785 else
6786 ac_cv_header_stdc=no
6788 rm -f conftest*
6792 if test $ac_cv_header_stdc = yes; then
6793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6794 if test "$cross_compiling" = yes; then :
6796 else
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6799 #include <ctype.h>
6800 #include <stdlib.h>
6801 #if ((' ' & 0x0FF) == 0x020)
6802 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6803 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6804 #else
6805 # define ISLOWER(c) \
6806 (('a' <= (c) && (c) <= 'i') \
6807 || ('j' <= (c) && (c) <= 'r') \
6808 || ('s' <= (c) && (c) <= 'z'))
6809 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6810 #endif
6812 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6814 main ()
6816 int i;
6817 for (i = 0; i < 256; i++)
6818 if (XOR (islower (i), ISLOWER (i))
6819 || toupper (i) != TOUPPER (i))
6820 return 2;
6821 return 0;
6823 _ACEOF
6824 if ac_fn_c_try_run "$LINENO"; then :
6826 else
6827 ac_cv_header_stdc=no
6829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6830 conftest.$ac_objext conftest.beam conftest.$ac_ext
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6836 $as_echo "$ac_cv_header_stdc" >&6; }
6837 if test $ac_cv_header_stdc = yes; then
6839 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6844 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6845 if ${ac_cv_header_sys_wait_h+:} false; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 #include <sys/types.h>
6851 #include <sys/wait.h>
6852 #ifndef WEXITSTATUS
6853 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6854 #endif
6855 #ifndef WIFEXITED
6856 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6857 #endif
6860 main ()
6862 int s;
6863 wait (&s);
6864 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6866 return 0;
6868 _ACEOF
6869 if ac_fn_c_try_compile "$LINENO"; then :
6870 ac_cv_header_sys_wait_h=yes
6871 else
6872 ac_cv_header_sys_wait_h=no
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6877 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6878 if test $ac_cv_header_sys_wait_h = yes; then
6880 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6885 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6886 if ${ac_cv_header_time+:} false; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 #include <sys/types.h>
6892 #include <sys/time.h>
6893 #include <time.h>
6896 main ()
6898 if ((struct tm *) 0)
6899 return 0;
6901 return 0;
6903 _ACEOF
6904 if ac_fn_c_try_compile "$LINENO"; then :
6905 ac_cv_header_time=yes
6906 else
6907 ac_cv_header_time=no
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6912 $as_echo "$ac_cv_header_time" >&6; }
6913 if test $ac_cv_header_time = yes; then
6915 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6919 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6920 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6922 cat >>confdefs.h <<_ACEOF
6923 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6924 _ACEOF
6927 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6932 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6933 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6935 cat >>confdefs.h <<_ACEOF
6936 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6937 _ACEOF
6940 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6942 else
6943 case " $LIBOBJS " in
6944 *" fileblocks.$ac_objext "* ) ;;
6945 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6947 esac
6952 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6953 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6955 cat >>confdefs.h <<_ACEOF
6956 #define HAVE_STRUCT_STAT_ST_RDEV 1
6957 _ACEOF
6960 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6966 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6967 if ${ac_cv_struct_tm+:} false; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6972 #include <sys/types.h>
6973 #include <time.h>
6976 main ()
6978 struct tm tm;
6979 int *p = &tm.tm_sec;
6980 return !p;
6982 return 0;
6984 _ACEOF
6985 if ac_fn_c_try_compile "$LINENO"; then :
6986 ac_cv_struct_tm=time.h
6987 else
6988 ac_cv_struct_tm=sys/time.h
6990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6993 $as_echo "$ac_cv_struct_tm" >&6; }
6994 if test $ac_cv_struct_tm = sys/time.h; then
6996 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7000 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7001 #include <$ac_cv_struct_tm>
7004 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7006 cat >>confdefs.h <<_ACEOF
7007 #define HAVE_STRUCT_TM_TM_ZONE 1
7008 _ACEOF
7013 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7015 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7017 else
7018 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7020 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7021 ac_have_decl=1
7022 else
7023 ac_have_decl=0
7026 cat >>confdefs.h <<_ACEOF
7027 #define HAVE_DECL_TZNAME $ac_have_decl
7028 _ACEOF
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7031 $as_echo_n "checking for tzname... " >&6; }
7032 if ${ac_cv_var_tzname+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7037 #include <time.h>
7038 #if !HAVE_DECL_TZNAME
7039 extern char *tzname[];
7040 #endif
7043 main ()
7045 return tzname[0][0];
7047 return 0;
7049 _ACEOF
7050 if ac_fn_c_try_link "$LINENO"; then :
7051 ac_cv_var_tzname=yes
7052 else
7053 ac_cv_var_tzname=no
7055 rm -f core conftest.err conftest.$ac_objext \
7056 conftest$ac_exeext conftest.$ac_ext
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7059 $as_echo "$ac_cv_var_tzname" >&6; }
7060 if test $ac_cv_var_tzname = yes; then
7062 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7067 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7068 if test "x$ac_cv_type_off_t" = xyes; then :
7070 else
7072 cat >>confdefs.h <<_ACEOF
7073 #define off_t long int
7074 _ACEOF
7078 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7079 if test "x$ac_cv_type_pid_t" = xyes; then :
7081 else
7083 cat >>confdefs.h <<_ACEOF
7084 #define pid_t int
7085 _ACEOF
7089 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7090 if test "x$ac_cv_type_size_t" = xyes; then :
7092 else
7094 cat >>confdefs.h <<_ACEOF
7095 #define size_t unsigned int
7096 _ACEOF
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7101 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7102 if ${ac_cv_type_uid_t+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 #include <sys/types.h>
7109 _ACEOF
7110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7111 $EGREP "uid_t" >/dev/null 2>&1; then :
7112 ac_cv_type_uid_t=yes
7113 else
7114 ac_cv_type_uid_t=no
7116 rm -f conftest*
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7120 $as_echo "$ac_cv_type_uid_t" >&6; }
7121 if test $ac_cv_type_uid_t = no; then
7123 $as_echo "#define uid_t int" >>confdefs.h
7126 $as_echo "#define gid_t int" >>confdefs.h
7131 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7132 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7134 cat >>confdefs.h <<_ACEOF
7135 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7136 _ACEOF
7142 # Look for some functions
7143 for ac_func in getpagesize kqueue statfs statvfs \
7144 clone kse_create rfork_thread thr_create sa_register \
7145 getcontext makecontext setcontext sigaltstack swapcontext
7146 do :
7147 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7148 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7149 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7150 cat >>confdefs.h <<_ACEOF
7151 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7152 _ACEOF
7155 done
7161 for ac_header in $ac_header_list
7162 do :
7163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7164 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7166 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7167 cat >>confdefs.h <<_ACEOF
7168 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7169 _ACEOF
7173 done
7182 for ac_func in getpagesize
7183 do :
7184 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7185 if test "x$ac_cv_func_getpagesize" = xyes; then :
7186 cat >>confdefs.h <<_ACEOF
7187 #define HAVE_GETPAGESIZE 1
7188 _ACEOF
7191 done
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7194 $as_echo_n "checking for working mmap... " >&6; }
7195 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 if test "$cross_compiling" = yes; then :
7199 ac_cv_func_mmap_fixed_mapped=no
7200 else
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7203 $ac_includes_default
7204 /* malloc might have been renamed as rpl_malloc. */
7205 #undef malloc
7207 /* Thanks to Mike Haertel and Jim Avera for this test.
7208 Here is a matrix of mmap possibilities:
7209 mmap private not fixed
7210 mmap private fixed at somewhere currently unmapped
7211 mmap private fixed at somewhere already mapped
7212 mmap shared not fixed
7213 mmap shared fixed at somewhere currently unmapped
7214 mmap shared fixed at somewhere already mapped
7215 For private mappings, we should verify that changes cannot be read()
7216 back from the file, nor mmap's back from the file at a different
7217 address. (There have been systems where private was not correctly
7218 implemented like the infamous i386 svr4.0, and systems where the
7219 VM page cache was not coherent with the file system buffer cache
7220 like early versions of FreeBSD and possibly contemporary NetBSD.)
7221 For shared mappings, we should conversely verify that changes get
7222 propagated back to all the places they're supposed to be.
7224 Grep wants private fixed already mapped.
7225 The main things grep needs to know about mmap are:
7226 * does it exist and is it safe to write into the mmap'd area
7227 * how to use it (BSD variants) */
7229 #include <fcntl.h>
7230 #include <sys/mman.h>
7232 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7233 char *malloc ();
7234 #endif
7236 /* This mess was copied from the GNU getpagesize.h. */
7237 #ifndef HAVE_GETPAGESIZE
7238 # ifdef _SC_PAGESIZE
7239 # define getpagesize() sysconf(_SC_PAGESIZE)
7240 # else /* no _SC_PAGESIZE */
7241 # ifdef HAVE_SYS_PARAM_H
7242 # include <sys/param.h>
7243 # ifdef EXEC_PAGESIZE
7244 # define getpagesize() EXEC_PAGESIZE
7245 # else /* no EXEC_PAGESIZE */
7246 # ifdef NBPG
7247 # define getpagesize() NBPG * CLSIZE
7248 # ifndef CLSIZE
7249 # define CLSIZE 1
7250 # endif /* no CLSIZE */
7251 # else /* no NBPG */
7252 # ifdef NBPC
7253 # define getpagesize() NBPC
7254 # else /* no NBPC */
7255 # ifdef PAGESIZE
7256 # define getpagesize() PAGESIZE
7257 # endif /* PAGESIZE */
7258 # endif /* no NBPC */
7259 # endif /* no NBPG */
7260 # endif /* no EXEC_PAGESIZE */
7261 # else /* no HAVE_SYS_PARAM_H */
7262 # define getpagesize() 8192 /* punt totally */
7263 # endif /* no HAVE_SYS_PARAM_H */
7264 # endif /* no _SC_PAGESIZE */
7266 #endif /* no HAVE_GETPAGESIZE */
7269 main ()
7271 char *data, *data2, *data3;
7272 const char *cdata2;
7273 int i, pagesize;
7274 int fd, fd2;
7276 pagesize = getpagesize ();
7278 /* First, make a file with some known garbage in it. */
7279 data = (char *) malloc (pagesize);
7280 if (!data)
7281 return 1;
7282 for (i = 0; i < pagesize; ++i)
7283 *(data + i) = rand ();
7284 umask (0);
7285 fd = creat ("conftest.mmap", 0600);
7286 if (fd < 0)
7287 return 2;
7288 if (write (fd, data, pagesize) != pagesize)
7289 return 3;
7290 close (fd);
7292 /* Next, check that the tail of a page is zero-filled. File must have
7293 non-zero length, otherwise we risk SIGBUS for entire page. */
7294 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7295 if (fd2 < 0)
7296 return 4;
7297 cdata2 = "";
7298 if (write (fd2, cdata2, 1) != 1)
7299 return 5;
7300 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7301 if (data2 == MAP_FAILED)
7302 return 6;
7303 for (i = 0; i < pagesize; ++i)
7304 if (*(data2 + i))
7305 return 7;
7306 close (fd2);
7307 if (munmap (data2, pagesize))
7308 return 8;
7310 /* Next, try to mmap the file at a fixed address which already has
7311 something else allocated at it. If we can, also make sure that
7312 we see the same garbage. */
7313 fd = open ("conftest.mmap", O_RDWR);
7314 if (fd < 0)
7315 return 9;
7316 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7317 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7318 return 10;
7319 for (i = 0; i < pagesize; ++i)
7320 if (*(data + i) != *(data2 + i))
7321 return 11;
7323 /* Finally, make sure that changes to the mapped area do not
7324 percolate back to the file as seen by read(). (This is a bug on
7325 some variants of i386 svr4.0.) */
7326 for (i = 0; i < pagesize; ++i)
7327 *(data2 + i) = *(data2 + i) + 1;
7328 data3 = (char *) malloc (pagesize);
7329 if (!data3)
7330 return 12;
7331 if (read (fd, data3, pagesize) != pagesize)
7332 return 13;
7333 for (i = 0; i < pagesize; ++i)
7334 if (*(data + i) != *(data3 + i))
7335 return 14;
7336 close (fd);
7337 free (data);
7338 free (data3);
7339 return 0;
7341 _ACEOF
7342 if ac_fn_c_try_run "$LINENO"; then :
7343 ac_cv_func_mmap_fixed_mapped=yes
7344 else
7345 ac_cv_func_mmap_fixed_mapped=no
7347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7348 conftest.$ac_objext conftest.beam conftest.$ac_ext
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7353 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7354 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7356 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7359 rm -f conftest.mmap conftest.txt
7362 #-----------------------------------------------------------------------------
7365 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7366 # it switched on by default, and we use the host compiler, so it compiles AROS
7367 # code with this enabled resulting in link failures as we don't have support
7368 # for it.
7370 # We use two methods to disable it. For the host compiler (used to compile
7371 # some hosted modules), we test to see if the compiler supports stack
7372 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7373 # work on all platforms.
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7377 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7378 save_cflags="$CFLAGS"
7379 CFLAGS="$CFLAGS -fno-stack-protector"
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7384 main ()
7388 return 0;
7390 _ACEOF
7391 if ac_fn_c_try_compile "$LINENO"; then :
7392 use_no_stack_protector="yes"
7393 else
7394 use_no_stack_protector="no"
7396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7398 $as_echo "$use_no_stack_protector" >&6; }
7399 if test "x-$use_no_stack_protector" = "x-yes" ; then
7400 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7402 CFLAGS="$save_cflags"
7404 #-----------------------------------------------------------------------------
7406 # Disable pointer-signedness warnings if the compiler recognises the option
7407 # (this only works for the host compiler at the moment)
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7410 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7411 save_cflags="$CFLAGS"
7412 CFLAGS="$CFLAGS -Wno-pointer-sign"
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7417 main ()
7421 return 0;
7423 _ACEOF
7424 if ac_fn_c_try_compile "$LINENO"; then :
7425 use_no_sign_warning="yes"
7426 else
7427 use_no_sign_warning="no"
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7431 $as_echo "$use_no_sign_warning" >&6; }
7432 if test "x-$use_no_sign_warning" = "x-yes" ; then
7433 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7435 CFLAGS="$save_cflags"
7437 #-----------------------------------------------------------------------------
7439 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7442 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7443 save_cflags="$CFLAGS"
7444 CFLAGS="$CFLAGS -fgnu89-inline"
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7449 main ()
7453 return 0;
7455 _ACEOF
7456 if ac_fn_c_try_compile "$LINENO"; then :
7457 use_gnu89_inline="yes"
7458 else
7459 use_gnu89_inline="no"
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7463 $as_echo "$use_gnu89_inline" >&6; }
7464 if test "x-$use_gnu89_inline" = "x-yes" ; then
7465 gnu89_inline="-fgnu89-inline"
7467 CFLAGS="$save_cflags"
7470 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7471 # On GCC >= 4.0 -iquote should be used
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7474 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7475 CFLAGS="$CFLAGS -iquote."
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7480 main ()
7484 return 0;
7486 _ACEOF
7487 if ac_fn_c_try_compile "$LINENO"; then :
7488 has_iquote="yes"
7489 else
7490 has_iquote="no"
7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7494 $as_echo "$has_iquote" >&6; }
7495 if test "x-$has_iquote" = "x-yes" ; then
7496 host_cflags_iquote=-iquote
7497 host_cflags_iquote_end=
7498 else
7499 host_cflags_iquote=-I
7500 host_cflags_iquote_end=-I-
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7504 $as_echo "$as_me: Performing target configuration..." >&6;}
7507 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7509 toolchain_needs_sysroot=no
7511 aros_warn_flags=
7512 aros_isa_extra=
7513 aros_isa_flags=
7514 aros_config_cppflags=
7515 aros_config_cflags=
7516 aros_config_cxxflags=
7517 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7518 aros_config_ldflags=""
7520 aros_shared_default=yes
7522 aros_shared_cflags="-fPIC"
7523 aros_shared_aflags=""
7524 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7525 aros_kernel_ldflags="-Wl,-rpath,./lib"
7527 aros_kernel_ar_flags="cr"
7528 aros_target_ar_flags="cr"
7529 aros_target_nm_flags="-C -ul"
7530 aros_target_strip_flags="--strip-unneeded -R.comment"
7532 aros_compiler_libs=
7533 aros_arch_libs=
7535 aros_target_genmap="-Wl,-Map -Xlinker"
7537 # Native flavour stuff
7538 aros_serial_debug="0"
7540 # Palm native flavour stuff
7541 aros_palm_debug_hack="0"
7543 # Unix flavour stuff
7544 aros_nesting_supervisor="0"
7546 # Collect-aros stuff: "-ius" to ignore undefined symbols
7547 ignore_undefined_symbols=""
7549 # Check for X11 by default
7550 need_x11="auto"
7552 host_x_gfx=no
7553 host_sdl_gfx=no
7554 host_android_gfx=no
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7558 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7560 # Check whether --with-toolchain was given.
7561 if test "${with_toolchain+set}" = set; then :
7562 withval=$with_toolchain; aros_toolchain="$withval"
7563 else
7564 aros_toolchain="gnu"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7568 $as_echo "$aros_toolchain" >&6; }
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7572 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7573 # Check whether --enable-lto was given.
7574 if test "${enable_lto+set}" = set; then :
7575 enableval=$enable_lto; aros_config_lto="$enableval"
7576 else
7577 aros_config_lto="no"
7580 if test "$aros_config_lto" != "no"; then
7581 aros_config_lto="yes"
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7584 $as_echo "$aros_config_lto" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7587 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7588 # Check whether --enable-coverage was given.
7589 if test "${enable_coverage+set}" = set; then :
7590 enableval=$enable_coverage; aros_config_coverage="$enableval"
7591 else
7592 aros_config_coverage="no"
7595 if test "$aros_config_coverage" != "no"; then
7596 aros_config_coverage="yes"
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7599 $as_echo "$aros_config_coverage" >&6; }
7601 use_ld_wrapper=yes
7603 case "$aros_toolchain" in
7604 *llvm*)
7605 # toolchain_needs_sysroot=yes
7606 toolchain_c_compiler="clang"
7607 toolchain_cxx_compiler="clang++"
7608 toolchain_cpp_preprocessor="clang -E"
7609 toolchain_ld="ld.lld"
7610 aros_ld="ld"
7611 toolchain_as="llvm-as"
7612 toolchain_ar="llvm-ar"
7613 toolchain_ranlib="llvm-ranlib"
7614 toolchain_nm="llvm-nm"
7615 toolchain_strip="true"
7616 toolchain_objcopy="llvm-objcopy"
7617 toolchain_objdump="llvm-objdump"
7619 *gnu*)
7620 toolchain_c_compiler="gcc"
7621 toolchain_cxx_compiler="g++"
7622 toolchain_cpp_preprocessor="gcc -E"
7623 toolchain_as="as"
7624 aros_ld="ld"
7625 if test "$aros_config_lto" != "yes"; then
7626 toolchain_ld="ld"
7627 toolchain_ar="ar"
7628 toolchain_ranlib="ranlib"
7629 toolchain_nm="nm"
7630 else
7631 toolchain_ld="ld.bfd"
7632 toolchain_ar="gcc-ar"
7633 toolchain_ranlib="gcc-ranlib"
7634 toolchain_nm="gcc-nm"
7636 toolchain_strip="strip"
7637 toolchain_objcopy="objcopy"
7638 toolchain_objdump="objdump"
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7642 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7643 toolchain_c_compiler="cc"
7644 toolchain_cxx_compiler="c++"
7645 toolchain_cpp_preprocessor="cpp"
7646 toolchain_ld="ld"
7647 aros_ld="ld"
7648 toolchain_as="as"
7649 toolchain_ar="ar"
7650 toolchain_ranlib="ranlib"
7651 toolchain_nm="nm"
7652 toolchain_strip="strip"
7653 toolchain_objcopy="objcopy"
7654 toolchain_objdump="objdump"
7656 esac
7658 #-----------------------------------------------------------------------------
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7661 $as_echo_n "checking which type of build to do... " >&6; }
7662 # Check whether --enable-build_type was given.
7663 if test "${enable_build_type+set}" = set; then :
7664 enableval=$enable_build_type; build_type=$enableval
7665 else
7666 build_type="personal"
7670 if test "$build_type" = "nightly"; then
7671 build_type_string="NIGHTLY"
7672 elif test "$build_type" = "snapshot"; then
7673 build_type_string="SNAPSHOT"
7674 elif test "$build_type" = "milestone"; then
7675 build_type_string="MILESTONE"
7676 elif test "$build_type" = "release"; then
7677 build_type_string="RELEASE"
7678 else
7679 build_type_string="PERSONAL"
7680 build_type="personal"
7683 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7686 $as_echo "$build_type" >&6; }
7688 #-----------------------------------------------------------------------------
7689 all_debug_types="messages stack modules mungwall symbols"
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7692 $as_echo_n "checking which debug types to enable... " >&6; }
7693 # Check whether --enable-debug was given.
7694 if test "${enable_debug+set}" = set; then :
7695 enableval=$enable_debug; debug="$enableval"
7696 else
7697 debug=""
7701 if test "$debug" = "" -o "$debug" = "no"; then
7702 debug="none"
7703 elif test "$debug" = "yes"; then
7704 debug="all"
7707 if test "$debug" = "all" ; then
7708 debug="messages stack modules symbols"
7709 for d in $all_debug_types; do
7710 export aros_${d}_debug="1"
7711 done
7712 else
7713 for d in $all_debug_types; do
7714 export aros_${d}_debug="0"
7715 done
7718 if test "$debug" != "none"; then
7719 debug=`echo $debug | sed s/,/\ /g`
7720 for d in $debug; do
7721 found="0"
7722 for d2 in $all_debug_types; do
7723 if test "$d2" = "$d"; then
7724 found="1"
7725 break
7727 done
7728 if test "$found" = "0"; then
7729 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7731 export aros_${d}_debug="1"
7732 done
7733 aros_debug="yes"
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7736 $as_echo "$debug" >&6; }
7738 if test "$aros_messages_debug" = "1"; then
7739 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7740 else
7741 aros_messages_debug=""
7743 if test "$aros_symbols_debug" = "1"; then
7744 aros_symbols_debug="-g"
7745 else
7746 aros_symbols_debug=""
7749 # These are the flags to pass when compiling debugged programs
7750 aros_debug_cppflags="$aros_messages_debug"
7751 aros_debug_cflags="$aros_symbols_debug"
7752 aros_debug_cxxflags=
7753 aros_debug_aflags=""
7754 aros_debug_ldflags="$aros_symbols_debug"
7756 #-----------------------------------------------------------------------------
7757 # Checking for distcc and ccache.
7759 # Always apply the transforms in this particular order. Basically you should
7760 # always run 'ccache distcc compiler' in that order for the best performance.
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7763 $as_echo_n "checking whether to enable distcc... " >&6; }
7764 # Check whether --enable-distcc was given.
7765 if test "${enable_distcc+set}" = set; then :
7766 enableval=$enable_distcc; distcc="$enableval"
7767 else
7768 distcc="no"
7771 if test "$distcc" != "" -a "$distcc" != "no"; then
7772 # AC_CHECK_PROG will print out the result in this case
7773 # Extract the first word of "distcc", so it can be a program name with args.
7774 set dummy distcc; ac_word=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if ${ac_cv_path_DISTCC+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 case $DISTCC in
7781 [\\/]* | ?:[\\/]*)
7782 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7792 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7796 done
7797 done
7798 IFS=$as_save_IFS
7800 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7802 esac
7804 DISTCC=$ac_cv_path_DISTCC
7805 if test -n "$DISTCC"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7807 $as_echo "$DISTCC" >&6; }
7808 else
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7814 else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7820 $as_echo_n "checking whether to enable ccache... " >&6; }
7821 # Check whether --enable-ccache was given.
7822 if test "${enable_ccache+set}" = set; then :
7823 enableval=$enable_ccache; ccache="$enableval"
7824 else
7825 ccache="no"
7828 if test "$ccache" != "" -a "$ccache" != "no"; then
7829 # AC_CHECK_PROG will print out the result in this case
7830 # Extract the first word of "ccache", so it can be a program name with args.
7831 set dummy ccache; ac_word=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if ${ac_cv_prog_CCACHE+:} false; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 if test -n "$CCACHE"; then
7838 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7847 ac_cv_prog_CCACHE="ccache"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 break 2
7851 done
7852 done
7853 IFS=$as_save_IFS
7857 CCACHE=$ac_cv_prog_CCACHE
7858 if test -n "$CCACHE"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7860 $as_echo "$CCACHE" >&6; }
7861 else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7867 else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7872 #-----------------------------------------------------------------------------
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7874 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7876 # Check whether --with-kernel-gcc-version was given.
7877 if test "${with_kernel_gcc_version+set}" = set; then :
7878 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7879 else
7880 kernel_tool_version=""
7883 if test "$kernel_tool_version" != "" ; then
7884 msg_result=$kernel_tool_version
7885 else
7886 msg_result="default"
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7889 $as_echo "$msg_result" >&6; }
7891 #-----------------------------------------------------------------------------
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7893 $as_echo_n "checking what optimization flags to use... " >&6; }
7895 # Check whether --with-optimization was given.
7896 if test "${with_optimization+set}" = set; then :
7897 withval=$with_optimization; optimization_level="$withval"
7898 else
7899 optimization_level="unknown"
7902 if test "$optimization_level" = "unknown"; then
7903 optimization="default"
7904 if test "$debug" != "none"; then
7905 optimization_level="-O0"
7906 else
7907 optimization_level="-O2"
7909 else
7910 optimization="$optimization_level"
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7913 $as_echo "$optimization" >&6; }
7915 paranoia_default=yes
7916 #-----------------------------------------------------------------------------
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7918 $as_echo_n "checking which paranoia flags to use... " >&6; }
7920 # Check whether --with-paranoia was given.
7921 if test "${with_paranoia+set}" = set; then :
7922 withval=$with_paranoia; paranoia_flags="$withval"
7923 else
7924 paranoia_flags="$paranoia_default"
7927 if test "$paranoia_flags" = "no"; then
7928 paranoia_flags="-Wall -Werror-implicit-function-declaration"
7929 msg_result="none"
7930 else
7931 if test "$paranoia_flags" = "yes"; then
7932 paranoia_flags="-Wall -Werror"
7934 msg_result="$paranoia_flags"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7937 $as_echo "$msg_result" >&6; }
7938 aros_warn_flags="$aros_warn_flags $paranoia_flags"
7940 #-----------------------------------------------------------------------------
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7942 $as_echo_n "checking what target variant to enable... " >&6; }
7943 # Check whether --enable-target_variant was given.
7944 if test "${enable_target_variant+set}" = set; then :
7945 enableval=$enable_target_variant; target_variant=$enableval
7946 else
7947 target_variant=""
7950 if test "$target_variant" = ""; then
7951 aros_target_variant=""
7952 aros_target_suffix=""
7953 enableval="none"
7954 else
7955 aros_target_variant="$target_variant"
7956 aros_target_suffix="-$target_variant"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7959 $as_echo "$enableval" >&6; }
7961 #-----------------------------------------------------------------------------
7962 # Target-specific defaults. You can override then on a per-target basis.
7964 # Bootloader name. Currently used by PC target.
7965 target_bootloader="none"
7966 PLATFORM_EXECSMP=
7967 ENABLE_EXECSMP=
7969 #-----------------------------------------------------------------------------
7970 # Additional options for some specific targets
7972 case "$aros_target_variant" in
7973 ios)
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7975 $as_echo_n "checking XCode path... " >&6; }
7977 # Check whether --with-xcode was given.
7978 if test "${with_xcode+set}" = set; then :
7979 withval=$with_xcode; aros_xcode_path="$withval"
7980 else
7981 aros_xcode_path="/Developer"
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7985 $as_echo "$aros_xcode_path" >&6; }
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7988 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7990 # Check whether --with-sdk-version was given.
7991 if test "${with_sdk_version+set}" = set; then :
7992 withval=$with_sdk_version; aros_sdk_version="$withval"
7993 else
7994 aros_sdk_version="4.1"
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7998 $as_echo "$aros_sdk_version" >&6; }
8002 "android")
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8004 $as_echo_n "checking Android SDK path... " >&6; }
8006 # Check whether --with-sdk was given.
8007 if test "${with_sdk+set}" = set; then :
8008 withval=$with_sdk; aros_android_sdk="$withval"
8009 else
8010 aros_android_sdk=$default_android_sdk
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8014 $as_echo "$aros_android_sdk" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8017 $as_echo_n "checking Android NDK path... " >&6; }
8019 # Check whether --with-ndk was given.
8020 if test "${with_ndk+set}" = set; then :
8021 withval=$with_ndk; aros_android_ndk="$withval"
8022 else
8023 aros_android_ndk="none"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8027 $as_echo "$aros_android_ndk" >&6; }
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8030 $as_echo_n "checking what Android SDK version to use... " >&6; }
8032 # Check whether --with-sdk-version was given.
8033 if test "${with_sdk_version+set}" = set; then :
8034 withval=$with_sdk_version; aros_sdk_version="$withval"
8035 else
8036 aros_sdk_version="12"
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8040 $as_echo "$aros_sdk_version" >&6; }
8042 aros_android_level=android-$aros_sdk_version
8043 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8044 echo "Platform $aros_android_level is not installed in your SDK"
8045 echo "Use --with-sdk-version=<API level number> to select another platform version"
8046 echo "You can check what plaform versions are installed in your SDK"
8047 echo "by examining contents of $aros_android_sdk/platforms directory"
8048 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8051 export PATH="$aros_android_sdk/tools:$PATH"
8052 # Extract the first word of "$android_tool", so it can be a program name with args.
8053 set dummy $android_tool; ac_word=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if ${ac_cv_path_android_tool+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 case $android_tool in
8060 [\\/]* | ?:[\\/]*)
8061 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8075 done
8076 done
8077 IFS=$as_save_IFS
8080 esac
8082 android_tool=$ac_cv_path_android_tool
8083 if test -n "$android_tool"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8085 $as_echo "$android_tool" >&6; }
8086 else
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8092 req_avail=yes
8093 if test "$android_tool" = ""; then
8094 req_avail=no
8096 if test "$android_tool" = "no"; then
8097 req_avail=no
8099 if test "$req_avail" = "no"; then
8100 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8103 if test "$aros_android_ndk" != "none"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8105 $as_echo_n "checking what Android NDK version to use... " >&6; }
8107 # Check whether --with-ndk-version was given.
8108 if test "${with_ndk_version+set}" = set; then :
8109 withval=$with_ndk_version; aros_ndk_version="$withval"
8110 else
8111 aros_ndk_version="9"
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8115 $as_echo "$aros_ndk_version" >&6; }
8118 # Extract the first word of "ant", so it can be a program name with args.
8119 set dummy ant; ac_word=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if ${ac_cv_path_ant+:} false; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 case $ant in
8126 [\\/]* | ?:[\\/]*)
8127 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 for as_dir in $PATH
8133 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=.
8135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8137 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 break 2
8141 done
8142 done
8143 IFS=$as_save_IFS
8146 esac
8148 ant=$ac_cv_path_ant
8149 if test -n "$ant"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8151 $as_echo "$ant" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8158 if test "$ant" = ""; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8160 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8164 $as_echo_n "checking Build debug or release apk... " >&6; }
8166 # Check whether --with-apk-version was given.
8167 if test "${with_apk_version+set}" = set; then :
8168 withval=$with_apk_version; aros_android_antapk=$withval
8169 else
8170 aros_android_antapk=release
8173 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8174 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8177 $as_echo "$aros_android_antapk" >&6; }
8179 if test "$host_os" = "mingw32"; then
8180 android_tool="cmd //c $android_tool"
8183 need_dlopen="no"
8186 esac
8188 #-----------------------------------------------------------------------------
8189 # External toolchains
8190 kernel_tool_prefix="none"
8191 aros_tool_prefix="none"
8192 elf_tool_prefix="${target_cpu}-elf-"
8194 export_newline="
8197 # Base target cpu ISA configuration switch.
8198 case "$target_cpu" in
8199 *aarch64*)
8201 *arm*)
8203 *m68k*)
8204 m68k_isa_extra="ISA_MC68000_FLAGS := -march=68000"
8205 m68k_020_isa_extra="ISA_MC68020_FLAGS := -march=68020"
8206 m68k_030_isa_extra="ISA_MC68030_FLAGS := -march=68030"
8207 m68k_040_isa_extra="ISA_MC68040_FLAGS := -march=68040"
8208 m68k_060_isa_extra="ISA_MC68060_FLAGS := -march=68060"
8209 m68k_ac080_isa_extra="ISA_AC68080_FLAGS := -march=68040"
8210 m68k_020_ext="ISA_MC68020_EXT :=020"
8211 m68k_030_ext="ISA_MC68030_EXT :=030"
8212 m68k_040_ext="ISA_MC68040_EXT :=040"
8213 m68k_060_ext="ISA_MC68060_EXT :=060"
8214 m68k_020_cflags="ISA_MC68020_CFLAGS :="
8215 m68k_030_cflags="ISA_MC68030_CFLAGS :="
8216 m68k_040_cflags="ISA_MC68040_CFLAGS :="
8217 m68k_060_cflags="ISA_MC68060_CFLAGS :="
8218 m68k_020_cppflags="ISA_MC68020_CPPFLAGS :="
8219 m68k_030_cppflags="ISA_MC68030_CPPFLAGS :="
8220 m68k_040_cppflags="ISA_MC68040_CPPFLAGS :="
8221 m68k_060_cppflags="ISA_MC68060_CPPFLAGS :="
8222 m68k_020_ldflags="ISA_MC68020_LDFLAGS :="
8223 m68k_030_ldflags="ISA_MC68030_LDFLAGS :="
8224 m68k_040_ldflags="ISA_MC68040_LDFLAGS :="
8225 m68k_060_ldflags="ISA_MC68060_LDFLAGS :="
8227 *x86_64* | *i?86*)
8228 x86_isa_extra="ISA_X86_FLAGS := -m32 -march=i486"
8229 x86_64_isa_extra="ISA_X8664_FLAGS := -mcmodel=large"
8231 *powerpc*)
8233 esac
8235 # This is the target configuration switch.
8236 case "$target_os" in
8237 linux*)
8238 aros_target_arch="linux"
8239 aros_target_family="unix"
8240 case "$target_cpu" in
8241 *m68k*)
8242 aros_target_cpu="m68k"
8243 aros_object_format="m68kelf"
8244 aros_flavour="emulcompat"
8245 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8246 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8247 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8248 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8249 gcc_target_cpu="mc68000"
8251 *i?86*)
8252 aros_target_cpu="i386"
8253 aros_object_format="elf_i386"
8254 aros_flavour="emulation"
8255 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8256 aros_isa_flags="$""(ISA_X86_FLAGS)"
8257 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8258 aros_kernel_ldflags="-Wl,-melf_i386"
8259 aros_nominal_depth=8
8260 gcc_target_cpu="i386"
8261 pci_hidd_target="hidd-pci-linux"
8262 android_tool_dir_prefix="x86"
8263 android_tool_prefix="i686-android-linux"
8264 android_ndk_arch="x86"
8266 *x86_64*)
8267 aros_target_cpu="x86_64"
8268 aros_object_format="elf_x86_64"
8269 aros_flavour="emulation"
8270 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8271 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8272 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8273 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8274 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8275 aros_nominal_depth=8
8276 pci_hidd_target="hidd-pci-linux"
8278 *powerpc*)
8279 aros_target_cpu="ppc"
8280 aros_object_format="elf32ppc"
8281 aros_flavour="emulation"
8282 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8283 aros_nominal_depth=8
8284 gcc_target_cpu="ppc"
8286 # TODO
8287 # Same as powerpc, but I need this for the nightly build to work again.
8288 # Actually, the nightly should be made working with powerpc target.
8289 # That just was too much work for the moment, another week or two.
8290 *ppc*)
8291 aros_target_cpu="ppc"
8292 aros_object_format="elf32ppc"
8293 aros_flavour="emulation"
8294 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8295 aros_nominal_depth=8
8296 gcc_target_cpu="ppc"
8298 *aarch64*)
8299 aros_target_cpu="aarch64"
8300 target_cpu="aarch64"
8301 aros_object_format="aarch64elf_aros"
8302 aros_flavour="emulation"
8303 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8304 gcc_target_cpu="aarch64"
8305 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8306 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8307 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8308 aros_arch_libs="-laeabi"
8309 gcc_default_float_abi="hard"
8310 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8312 *armhf*)
8313 aros_target_cpu="arm"
8314 target_cpu="arm"
8315 aros_object_format="armelf_aros"
8316 aros_flavour="emulation"
8317 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8318 gcc_target_cpu="arm"
8319 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8320 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8321 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8322 aros_arch_libs="-laeabi"
8323 gcc_default_float_abi="hard"
8324 android_tool_dir_prefix="arm-linux-androideabi"
8325 android_tool_prefix="arm-linux-androideabi"
8326 android_ndk_arch="arm"
8327 kernel_tool_prefix="arm-linux-gnueabihf-"
8329 *arm*)
8330 aros_target_cpu="arm"
8331 aros_object_format="armelf_aros"
8332 aros_flavour="emulation"
8333 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8334 gcc_target_cpu="arm"
8335 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8336 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8337 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8338 aros_arch_libs="-laeabi"
8339 android_tool_dir_prefix="arm-linux-androideabi"
8340 android_tool_prefix="arm-linux-androideabi"
8341 android_ndk_arch="arm"
8342 kernel_tool_prefix="arm-linux-gnueabi-"
8345 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8347 esac
8348 case "$aros_target_variant" in
8349 android)
8351 if test "$android_ndk_arch" = ""; then
8352 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8355 aros_nominal_width=320
8356 aros_nominal_height=480
8357 if test "$aros_android_ndk" = "none"; then
8358 aros_kernel_cflags="-mandroid"
8359 aros_kernel_ldflags="-mandroid"
8360 CFLAGS="-mandroid"
8361 else
8362 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8363 kernel_tool_version=""
8364 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8365 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8366 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8367 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8368 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8370 need_x11=no
8371 host_android_gfx=yes
8372 # Disable implicit PIC mode
8373 aros_config_cflags="$aros_config_cflags -fno-pic"
8374 kernel_tool_prefix="$android_tool_prefix-"
8376 esac
8380 aros_target_arch="pc"
8381 aros_shared_default="no"
8382 target_bootloader="grub2"
8383 case "$target_cpu" in
8384 *i?86*)
8385 aros_target_cpu="i386"
8388 if test "$aros_object_format" = "" ; then
8389 aros_object_format="elf_i386"
8391 aros_flavour="standalone"
8392 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8393 aros_isa_flags="$""(ISA_X86_FLAGS)"
8394 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8395 aros_kernel_ldflags="-Wl,-melf_i386"
8396 aros_nominal_width=640
8397 aros_nominal_height=480
8398 gcc_target_cpu="i386"
8400 *x86_64*)
8401 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8402 aros_target_cpu="x86_64"
8403 aros_serial_debug=1
8404 if test "$aros_object_format" = "" ; then
8405 aros_object_format="elf_x86_64"
8407 aros_flavour="standalone"
8408 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8409 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8410 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8411 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8412 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8413 aros_kernel_ldflags=""
8414 aros_nominal_width=640
8415 aros_nominal_height=480
8416 case "$aros_target_variant" in
8417 smp)
8418 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8420 esac
8423 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8425 esac
8428 prep)
8429 aros_target_arch="prep"
8430 aros_shared_default="no"
8431 aros_target_cpu="ppc"
8432 aros_object_format="elf32ppc"
8433 aros_flavour="ppcnative"
8434 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8435 aros_kernel_ldflags=""
8436 aros_nominal_width=640
8437 aros_nominal_height=480
8438 gcc_target_cpu="ppc"
8441 freebsd*)
8442 aros_target_arch="freebsd"
8443 aros_target_family="unix"
8444 aros_target_cpu="i386"
8445 aros_flavour="emulation"
8446 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8447 gcc_target_cpu="i386"
8449 aros_target_strip_flags="-x"
8452 darwin*)
8453 aros_target_arch="darwin"
8454 aros_target_family="unix"
8455 aros_flavour="emulation"
8456 case "$target_cpu" in
8457 *i?86*)
8458 aros_ios_platform="iPhoneSimulator"
8459 aros_target_cpu="i386"
8460 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8461 aros_isa_flags="$""(ISA_X86_FLAGS)"
8462 aros_kernel_ldflags=""
8463 aros_macosx_version="10.4"
8464 aros_nominal_depth=8
8465 gcc_target_cpu="i386"
8466 aros_object_format="elf_i386"
8467 aros_kernel_ar_flags="-cr"
8468 aros_target_strip_flags="-x"
8469 kernel_tool_flags="-m32"
8471 *x86_64*)
8472 aros_target_cpu="x86_64"
8473 aros_object_format="elf_x86_64"
8474 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8475 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8476 aros_macosx_version="10.6"
8477 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8478 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8479 aros_kernel_cflags="-m64"
8480 aros_kernel_ldflags="-m64"
8481 aros_nominal_depth=8
8482 aros_kernel_ar="ar"
8483 aros_kernel_ar_flags="-cr"
8484 aros_kernel_ld="ld"
8485 aros_kernel_as="as"
8486 aros_kernel_ranlib="ranlib"
8487 aros_kernel_nm="nm"
8488 aros_kernel_strip="strip"
8489 kernel_tool_prefix="i686-apple-darwin10-"
8491 *ppc*)
8492 aros_target_cpu="ppc"
8493 aros_object_format="elf32ppc"
8494 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8495 aros_kernel_ldflags=""
8496 aros_macosx_version="10.0"
8497 aros_nominal_depth=8
8498 gcc_target_cpu="ppc"
8499 aros_kernel_ar="ar"
8500 aros_kernel_ar_flags="-cr"
8501 aros_kernel_ld="ld -arch ppc"
8502 aros_kernel_as="as -arch ppc"
8503 aros_kernel_ranlib="ranlib -arch ppc"
8504 aros_kernel_nm="nm -arch ppc"
8505 aros_kernel_strip="strip -arch ppc"
8506 kernel_tool_prefix="powerpc-apple-darwin10-"
8508 *arm*)
8509 aros_ios_platform="iPhoneOS"
8510 aros_target_cpu="arm"
8511 aros_object_format="armelf_aros"
8512 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8513 aros_arch_libs="-laeabi"
8514 aros_nominal_depth=8
8515 gcc_target_cpu="arm"
8516 aros_kernel_ar="ar"
8517 aros_kernel_ar_flags="-cr"
8518 aros_kernel_ld="ld -arch arm"
8519 aros_kernel_ranlib="ranlib -arch arm"
8520 kernel_tool_prefix="arm-apple-darwin10-"
8521 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8524 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8526 esac
8527 case "$aros_target_variant" in
8528 ios)
8529 aros_ios_version="3.0"
8530 aros_nominal_width=320
8531 aros_nominal_height=480
8532 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8533 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8534 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8535 need_x11=no
8536 # This is here because it may depend on iOS or SDK version
8537 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8538 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8539 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8542 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8543 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8545 esac
8548 dragonfly*)
8549 aros_target_arch="dragonfly"
8550 aros_target_family="unix"
8551 aros_flavour="emulation"
8552 case "$target_cpu" in
8553 *i?86*)
8554 aros_target_cpu="i386"
8555 aros_object_format="elf_i386"
8556 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8557 aros_isa_flags="$""(ISA_X86_FLAGS)"
8559 *x86_64*)
8560 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8561 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8562 aros_target_cpu="x86_64"
8563 aros_object_format="elf_x86_64"
8564 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8565 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8568 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8570 esac
8573 netbsd*)
8574 aros_target_arch="netbsd"
8575 aros_target_family="unix"
8576 case "$target_cpu" in
8577 *m68k*)
8578 aros_target_cpu="m68k"
8579 aros_object_format="m68kelf"
8580 aros_flavour="emulcompat"
8581 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8582 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8583 gcc_target_cpu="mc68000"
8585 *i?86*)
8586 aros_target_cpu="i386"
8587 aros_object_format="elf_i386"
8588 aros_flavour="emulation"
8589 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8590 aros_isa_flags="$""(ISA_X86_FLAGS)"
8591 aros_nominal_depth=8
8592 gcc_target_cpu="i386"
8595 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8597 esac
8598 aros_target_genmap="-Wl,-M -Xlinker >"
8599 aros_flavour="emulation"
8600 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8603 openbsd*)
8604 aros_target_arch="openbsd"
8605 aros_target_family="unix"
8606 case "$target_cpu" in
8607 *i?86*)
8608 aros_target_cpu="i386"
8609 aros_object_format="elf_i386"
8610 aros_flavour="emulation"
8611 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8612 aros_isa_flags="$""(ISA_X86_FLAGS)"
8613 gcc_target_cpu="i386"
8616 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8618 esac
8619 aros_target_genmap="-Wl,-M -Xlinker >"
8620 aros_target_nm_flags="-u"
8621 aros_flavour="emulation"
8624 solaris*)
8625 aros_target_arch="solaris"
8626 aros_target_family="unix"
8627 case "$target_cpu" in
8628 *i?86*)
8629 aros_target_cpu="i386"
8630 aros_object_format="elf_i386"
8631 aros_flavour="emulation"
8632 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8633 aros_isa_flags="$""(ISA_X86_FLAGS)"
8634 aros_nominal_depth=8
8635 gcc_target_cpu="i386"
8637 *sparc*)
8638 aros_target_cpu="sparc"
8639 aros_object_format="elf_sparc"
8640 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8641 gcc_target_cpu="sparc"
8644 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8646 esac
8647 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8648 aros_flavour="emulation"
8651 morphos*)
8652 aros_target_arch="morphos"
8653 aros_shared_default="no"
8654 aros_target_cpu="ppc"
8655 aros_object_format="elf_ppc"
8656 aros_flavour="nativecompat"
8657 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8658 gcc_target_cpu="ppc"
8661 sam440)
8662 aros_target_arch="sam440"
8663 aros_shared_default="no"
8664 aros_target_cpu="ppc"
8665 aros_object_format="elf32ppc"
8666 aros_flavour="ppcnative"
8667 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8668 aros_kernel_ldflags=""
8669 aros_nominal_width=1024
8670 aros_nominal_height=768
8671 aros_nominal_depth=24
8672 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8673 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8674 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8675 gcc_target_cpu="powerpc"
8678 efika)
8679 aros_target_arch="efika"
8680 aros_shared_default="no"
8681 aros_target_cpu="arm"
8682 aros_object_format="armelf_aros"
8683 aros_flavour="standalone"
8684 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8685 aros_kernel_ldflags=""
8686 aros_nominal_width=1024
8687 aros_nominal_height=600
8688 aros_arch_libs="-laeabi"
8689 gcc_default_cpu="armv7-a"
8690 gcc_default_fpu="vfpv3"
8691 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8692 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8693 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8694 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8695 if test "$optimization" = "default"; then
8696 optimization_level="-Os"
8698 case "$target_cpu" in
8699 *armhf*)
8700 gcc_default_float_abi="hard"
8701 target_cpu=arm
8702 aros_target_cpu=arm
8704 *arm*)
8705 gcc_default_float_abi="softfp"
8708 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8710 esac
8713 chrp)
8714 aros_target_arch="chrp"
8715 aros_shared_default="no"
8716 aros_target_cpu="ppc"
8717 aros_object_format="elf32ppc"
8718 aros_flavour="ppcnative"
8719 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8720 aros_kernel_ldflags=""
8721 aros_nominal_width=640
8722 aros_nominal_height=480
8723 aros_isa_flags="$aros_isa_flags -mno-toc"
8724 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8725 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8726 gcc_target_cpu="powerpc"
8727 case "$aros_target_variant" in
8728 efika)
8729 aros_isa_flags="$aros_isa_flags -mcpu=603e"
8730 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8732 esac
8735 r*pi)
8736 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8737 aros_flavour="standalone"
8738 aros_target_arch="raspi"
8740 aros_shared_default="no"
8742 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8744 case "$target_cpu" in
8745 *aarch64*)
8746 aros_target_cpu="aarch64"
8747 gcc_default_cpu="aarch64"
8748 aros_object_format="aarch64elf_aros"
8750 *armhf*)
8751 aros_target_cpu="arm"
8752 gcc_default_cpu="armv6zk"
8753 gcc_default_cpu_tune="arm1176jzf-s"
8754 aros_object_format="armelf_aros"
8755 aros_isa_flags="$aros_isa_flags -marm"
8756 aros_config_cflags="$aros_config_cflags"
8757 aros_config_cxxflags="$aros_config_cxxflags"
8758 aros_config_aflags="$aros_config_aflags -marm"
8759 aros_kernel_cflags="$aros_kernel_cflags -marm"
8760 aros_target_mkdep="$aros_target_mkdep -Darm"
8761 aros_arch_libs="-laeabi"
8763 *armeb*)
8764 aros_flavour="standcompat"
8765 aros_target_cpu="armeb"
8766 gcc_default_float_abi="hard"
8767 gcc_default_cpu="armv7ve"
8768 gcc_default_cpu_tune="cortex-a7"
8769 aros_object_format="armelfb_aros"
8770 aros_isa_flags="$aros_isa_flags -marm"
8771 aros_config_cflags="$aros_config_cflags"
8772 aros_config_cxxflags="$aros_config_cxxflags"
8773 aros_config_aflags="$aros_config_aflags -marm"
8774 aros_kernel_cflags="$aros_kernel_cflags -marm"
8775 aros_target_mkdep="$aros_target_mkdep -Darm"
8776 aros_arch_libs="-laeabi"
8778 *arm*)
8779 aros_target_cpu="arm"
8780 gcc_default_cpu="armv6zk"
8781 gcc_default_cpu_tune="arm1176jzf-s"
8782 aros_object_format="armelf_aros"
8783 aros_isa_flags="$aros_isa_flags -marm"
8784 aros_config_cflags="$aros_config_cflags"
8785 aros_config_cxxflags="$aros_config_cxxflags"
8786 aros_config_aflags="$aros_config_aflags -marm"
8787 aros_kernel_cflags="$aros_kernel_cflags -marm"
8788 aros_target_mkdep="$aros_target_mkdep -Darm"
8789 aros_arch_libs="-laeabi"
8792 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8794 esac
8796 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8797 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
8798 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8799 aros_kernel_cflags="$aros_kernel_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8801 case "$aros_target_variant" in
8802 smp)
8803 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8805 esac
8808 stm32f7_discovery)
8809 aros_flavour="standalone"
8810 aros_target_arch="stm32f7_discovery"
8811 aros_target_cpu="arm"
8812 aros_target_cpu_mode="thumb2"
8813 aros_object_format="armelf_aros"
8814 aros_shared_default="no"
8816 gcc_default_cpu="armv7e-m"
8817 gcc_default_cpu_tune="cortex-m7"
8818 gcc_default_fpu="fpv5-sp-d16"
8819 gcc_default_float_abi="hard"
8821 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8824 amiga*)
8825 aros_target_arch="amiga"
8826 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8827 aros_shared_default="no"
8829 case "$target_cpu" in
8830 *m68k*)
8831 # Check whether --enable-amigaos_compliance was given.
8832 if test "${enable_amigaos_compliance+set}" = set; then :
8833 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8836 aros_enable_mmu=no
8837 aros_target_cpu="m68k"
8838 aros_object_format="m68kelf"
8839 aros_flavour="standcompat"
8840 gcc_target_cpu="m68000"
8841 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8842 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8843 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
8844 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8845 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8846 if test "$optimization" = "default"; then
8847 optimization_level="-Os"
8849 aros_config_aflags="$aros_config_aflags"
8850 aros_target_strip_flags="-R.comment --strip-debug"
8851 aros_nominal_width=640
8852 aros_nominal_height=256
8853 aros_nominal_depth=2
8855 *ppc*)
8856 aros_cpu="ppc"
8857 aros_flavour="native"
8858 gcc_target_cpu="ppc"
8861 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8863 esac
8866 mingw*)
8867 aros_target_arch="mingw32"
8868 aros_shared_default="no"
8869 aros_flavour="emulation"
8870 aros_shared_cflags=""
8871 need_crosstools="yes"
8872 need_dlopen="no"
8873 rescomp="windres"
8874 case "$target_cpu" in
8875 *i?86*)
8876 aros_target_cpu="i386"
8877 aros_object_format="elf_i386"
8878 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8879 aros_isa_flags="$""(ISA_X86_FLAGS)"
8880 aros_nominal_depth=8
8881 gcc_target_cpu="i386"
8883 kernel_tool_prefix="i386-mingw32-"
8885 *x86_64*)
8886 aros_target_cpu="x86_64"
8887 aros_object_format="elf_x86_64"
8888 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8889 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8890 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8891 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8892 aros_nominal_depth=8
8893 kernel_tool_prefix="x86_64-w64-mingw32-"
8895 *arm*)
8896 aros_target_cpu="arm"
8897 aros_object_format="armelf_aros"
8898 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8899 aros_arch_libs="-laeabi"
8900 aros_nominal_depth=8
8901 gcc_target_cpu="arm"
8902 gcc_default_float_abi="soft"
8903 kernel_tool_prefix="arm-mingw32ce-"
8904 aros_nominal_width=160
8905 aros_nominal_height=160
8908 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8910 esac
8911 if test $host_os = "cygwin"; then
8912 aros_kernel_cflags="-mno-cygwin"
8915 pp*)
8916 aros_target_arch="pp"
8917 aros_shared_default="no"
8918 case "$target_cpu" in
8919 *m68k*)
8920 aros_target_cpu="m68k"
8921 aros_object_format="m68kelf"
8922 aros_flavour="palmnative"
8923 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8924 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8925 aros_nominal_width=160
8926 aros_nominal_height=160
8927 aros_nominal_depth=1
8928 aros_target_ar_flags="cru"
8929 aros_compiler_libs="-lgcc1"
8930 aros_shared_default=no
8931 aros_shared_cflags="-fpic"
8932 aros_shared_aflags=""
8933 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8934 aros_kernel_ldflags="-Wl,-rpath,./lib"
8935 aros_debug_cppflags="$aros_messages_debug"
8936 aros_debug_cflags="$aros_symbols_debug"
8937 aros_debug_aflags=""
8938 aros_debug_ldflags="$aros_symbols_debug"
8939 aros_mungwall_debug="0"
8940 aros_modules_debug="0"
8941 gcc_target_cpu="mc68000"
8942 ignore_undefined_symbols="-ius"
8945 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8947 esac
8950 mac*)
8951 aros_target_arch="mac"
8952 aros_shared_default="no"
8953 case "$target_cpu" in
8954 *m68k*)
8955 aros_target_cpu="m68k"
8956 aros_object_format="m68kelf"
8957 aros_flavour="mac68knative"
8958 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8959 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8960 aros_nominal_width=512
8961 aros_nominal_height=384
8962 aros_nominal_depth=8
8963 aros_target_ar_flags="cru"
8964 aros_compiler_libs="-lgcc1"
8965 aros_shared_default=no
8966 aros_shared_cflags="-fpic"
8967 aros_shared_aflags=""
8968 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8969 aros_kernel_ldflags="-Wl,-rpath,./lib"
8970 aros_debug_cppflags="$aros_messages_debug"
8971 aros_debug_cflags="$aros_symbols_debug"
8972 aros_debug_aflags=""
8973 aros_debug_ldflags="$aros_symbols_debug"
8974 aros_mungwall_debug="0"
8975 aros_modules_debug="0"
8976 gcc_target_cpu="mc68000"
8977 ignore_undefined_symbols="-ius"
8980 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8982 esac
8986 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8988 esac
8990 #-----------------------------------------------------------------------------
8991 crosstools_guess="yes"
8992 aros_target_toolchain="no"
8993 aros_config_sysroot=""
8994 aros_kernel_sysroot=""
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8997 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8999 # Check whether --with-kernel-toolchain-prefix was given.
9000 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9001 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9005 $as_echo "$kernel_tool_prefix" >&6; }
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9008 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9010 # Check whether --with-elf-toolchain-prefix was given.
9011 if test "${with_elf_toolchain_prefix+set}" = set; then :
9012 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
9013 crosstools_guess="no"
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9017 $as_echo "$elf_tool_prefix" >&6; }
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9020 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9022 # Check whether --with-aros-toolchain was given.
9023 if test "${with_aros_toolchain+set}" = set; then :
9024 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
9025 crosstools_guess="no"
9028 if test "$aros_tool_prefix" = "yes" ; then
9029 aros_tool_prefix=$aros_target_cpu-aros-
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9032 $as_echo "$aros_tool_prefix" >&6; }
9034 #-----------------------------------------------------------------------------
9035 # Checking if we should build crosstools..
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9037 $as_echo_n "checking whether to build crosstools... " >&6; }
9038 # Check whether --enable-crosstools was given.
9039 if test "${enable_crosstools+set}" = set; then :
9040 enableval=$enable_crosstools; crosstools="$enableval"
9041 else
9042 crosstools="$crosstools_guess"
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9046 $as_echo "$crosstools" >&6; }
9048 if test "${crosstools}" = "yes"; then
9049 if test "${crosstools_guess}" = "no"; then
9050 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9054 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
9055 aros_target_toolchain="yes"
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9059 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9061 # Check whether --with-aros-toolchain-install was given.
9062 if test "${with_aros_toolchain_install+set}" = set; then :
9063 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9066 if test "x$aros_toolchain_install" = "x"; then
9067 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9068 else
9069 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9070 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9071 if test "$crosstools_guess" = "no" ; then
9072 toolchain_needs_sysroot=yes
9074 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9075 aros_kernel_sysroot = $aros_config_sysroot
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9080 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
9083 $as_echo_n "checking If we need to use --sysroot... " >&6; }
9084 if test "$toolchain_needs_sysroot" = "yes" ; then
9085 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer"
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
9088 $as_echo "$toolchain_needs_sysroot" >&6; }
9090 #-----------------------------------------------------------------------------
9091 if test "$aros_toolchain" = "gnu" ; then
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9093 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9096 # Check whether --with-binutils-version was given.
9097 if test "${with_binutils_version+set}" = set; then :
9098 withval=$with_binutils_version; use_binutils_version="$withval"
9099 else
9100 use_binutils_version=""
9103 if test "$use_binutils_version" = ""; then
9104 target_binutils_version="$default_binutils_version"
9105 else
9106 target_binutils_version="$use_binutils_version"
9108 if test "$aros_toolchain" = "gnu" ; then
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9110 $as_echo "$target_binutils_version" >&6; }
9114 # Helper to identify gcc version
9117 #-----------------------------------------------------------------------------
9118 if test "$aros_toolchain" = "gnu" ; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9120 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9123 # Check whether --with-gcc-version was given.
9124 if test "${with_gcc_version+set}" = set; then :
9125 withval=$with_gcc_version; use_gcc_version="$withval"
9126 else
9127 use_gcc_version=""
9130 if test "$use_gcc_version" = ""; then
9131 if test "${crosstools}" = "no"; then
9132 if test "x$aros_toolchain_install" != "x"; then
9134 target_gcc_version=""
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9136 $as_echo_n "checking gcc version... " >&6; }
9137 if ${ax_cv_gcc_version+:} false; then :
9138 $as_echo_n "(cached) " >&6
9139 else
9141 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9142 if test "x$ax_cv_gcc_version" = "x"; then :
9144 ax_cv_gcc_version=""
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9150 $as_echo "$ax_cv_gcc_version" >&6; }
9151 target_gcc_version=$ax_cv_gcc_version
9156 if test "$use_gcc_version" = ""; then
9157 target_gcc_version="$default_gcc_version"
9159 else
9160 target_gcc_version="$use_gcc_version"
9162 if test "$aros_toolchain" = "gnu" ; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9164 $as_echo "$target_gcc_version" >&6; }
9166 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9167 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9168 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9170 gcc_fix_bitfields="false"
9171 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9172 gcc_fix_bitfields="true"
9173 else
9174 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9175 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9176 gcc_fix_bitfields="true"
9181 if test "$gcc_fix_bitfields" = "true" ; then
9182 case "$aros_target_cpu" in
9183 *x86_64* | *i?86*)
9184 x86_isa_extra="$x86_isa_extra -mno-ms-bitfields"
9185 x86_64_isa_extra="$x86_64_isa_extra -mno-ms-bitfields"
9187 esac
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9192 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9193 # Check whether --enable-objc was given.
9194 if test "${enable_objc+set}" = set; then :
9195 enableval=$enable_objc; objc="$enableval"
9196 else
9197 objc="no"
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9201 $as_echo "$objc" >&6; }
9202 if test "x$objc" = "xyes"; then
9203 objc_target="$objc"
9204 else
9205 objc_target="no-objc"
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9209 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9210 # Check whether --enable-java was given.
9211 if test "${enable_java+set}" = set; then :
9212 enableval=$enable_java; java="$enableval"
9213 else
9214 java="no"
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9218 $as_echo "$java" >&6; }
9219 if test "x$java" != "xno"; then
9220 java_target="$java"
9221 else
9222 java_target="no-java"
9225 spec_obj_format="-m $aros_object_format"
9226 # Now process extra architecture-specific options.
9227 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9228 # as well as floating-point ABI.
9229 case "$aros_target_cpu" in
9230 *m68k*)
9231 aros_isa_targets="M68K_ISA_TARGETS:=MC68020 MC68040"
9232 aros_isa_extra="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9233 aros_isa_extra="$aros_isa_extra$m68k_isa_extra$export_newline$m68k_020_isa_extra$export_newline$m68k_030_isa_extra$export_newline$m68k_040_isa_extra$export_newline$m68k_060_isa_extra$export_newline$m68k_ac080_isa_extra$export_newline"
9234 aros_isa_extra="$aros_isa_extra$m68k_020_cppflags$export_newline$m68k_030_cppflags$export_newline$m68k_040_cppflags$export_newline$m68k_060_cppflags$export_newline"
9235 aros_isa_extra="$aros_isa_extra$m68k_020_cflags$export_newline$m68k_030_cflags$export_newline$m68k_040_cflags$export_newline$m68k_060_cflags$export_newline"
9236 aros_isa_extra="$aros_isa_extra$m68k_020_ldflags$export_newline$m68k_030_ldflags$export_newline$m68k_040_ldflags$export_newline$m68k_060_ldflags$export_newline"
9237 aros_isa_extra="$aros_isa_extra$m68k_020_ext$export_newline$m68k_030_ext$export_newline$m68k_040_ext$export_newline$m68k_060_ext$export_newline"
9239 *x86_64*)
9240 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9241 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9243 arm*)
9244 if test "$gcc_default_cpu" = ""; then
9245 gcc_default_cpu="armv6"
9247 if test "$gcc_default_fpu" = ""; then
9248 gcc_default_fpu="vfp"
9250 if test "$gcc_default_endian" = ""; then
9251 if test "$target_cpu" = "armeb"; then
9252 gcc_default_endian="big-endian"
9253 else
9254 gcc_default_endian="little-endian"
9257 if test "$gcc_default_float_abi" = ""; then
9258 if test "$target_cpu" = "armhf"; then
9259 gcc_default_float_abi="hard"
9260 else
9261 gcc_default_float_abi="softfp"
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9266 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9268 # Check whether --with-cpu was given.
9269 if test "${with_cpu+set}" = set; then :
9270 withval=$with_cpu; aros_gcc_cpu="$withval"
9271 else
9272 aros_gcc_cpu=$gcc_default_cpu
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9276 $as_echo "$aros_gcc_cpu" >&6; }
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9279 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9281 # Check whether --with-fpu was given.
9282 if test "${with_fpu+set}" = set; then :
9283 withval=$with_fpu; aros_gcc_fpu="$withval"
9284 else
9285 aros_gcc_fpu=$gcc_default_fpu
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9289 $as_echo "$aros_gcc_fpu" >&6; }
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9292 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9294 # Check whether --with-float was given.
9295 if test "${with_float+set}" = set; then :
9296 withval=$with_float; aros_gcc_float_abi="$withval"
9297 else
9298 aros_gcc_float_abi=$gcc_default_float_abi
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9302 $as_echo "$aros_gcc_float_abi" >&6; }
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9305 $as_echo_n "checking Which ARM mode to use... " >&6; }
9306 if test "$aros_target_cpu_mode" = ""; then
9307 aros_target_cpu_mode="arm32"
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9309 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9310 else
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9312 $as_echo "$aros_target_cpu_mode" >&6; }
9315 case "$aros_target_cpu_mode" in
9316 arm32)
9317 gcc_default_mode="arm"
9318 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"
9320 arm64)
9321 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9323 thumb)
9324 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9326 thumb1)
9327 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9329 thumb2)
9330 gcc_default_mode="thumb"
9331 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9332 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -$gcc_default_endian -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9335 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9337 esac
9339 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9340 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
9341 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9343 i386)
9344 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9345 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9347 esac
9349 # Some architectures may need custom ELF specs.
9350 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9351 elf_specs_in=config/${aros_object_format}-specs.in
9352 else
9353 elf_specs_in=config/elf-specs.in
9356 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9357 # Since we override specs, we may need to put these defines there
9358 if test "$gcc_target_cpu" != ""; then
9359 gcc_target_cpu="-D__${gcc_target_cpu}__"
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9363 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9365 # Check whether --with-portssources was given.
9366 if test "${with_portssources+set}" = set; then :
9367 withval=$with_portssources; with_portssrcdir=$withval
9368 else
9369 with_portssrcdir="default"
9372 if test "$with_portssrcdir" = "default"; then
9373 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9374 else
9375 AROS_PORTSSRCDIR="$with_portssrcdir"
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9378 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9381 $as_echo_n "checking which bootloader to use... " >&6; }
9383 # Check whether --with-bootloader was given.
9384 if test "${with_bootloader+set}" = set; then :
9385 withval=$with_bootloader; target_bootloader=$withval
9386 else
9387 target_bootloader=$target_bootloader
9390 if test "$target_bootloader" = "none"; then
9391 aros_target_bootloader=""
9392 else
9393 aros_target_bootloader="$target_bootloader"
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9396 $as_echo "$target_bootloader" >&6; }
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9399 $as_echo_n "checking which icon-set to use... " >&6; }
9401 # Check whether --with-iconset was given.
9402 if test "${with_iconset+set}" = set; then :
9403 withval=$with_iconset; target_iconset=$withval
9404 else
9405 target_iconset="default"
9408 if test "$target_iconset" = "default"; then
9409 aros_target_iconset="Gorilla"
9410 target_iconset="default (Gorilla)"
9411 else
9412 aros_target_iconset="$target_iconset"
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9415 $as_echo "$target_iconset" >&6; }
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9418 $as_echo_n "checking which GUI Theme to use... " >&6; }
9420 # Check whether --with-theme was given.
9421 if test "${with_theme+set}" = set; then :
9422 withval=$with_theme; target_guitheme=$withval
9423 else
9424 target_guitheme="default"
9427 if test "$target_guitheme" = "default"; then
9428 aros_target_guitheme="Ice"
9429 else
9430 aros_target_guitheme="$target_guitheme"
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9433 $as_echo "$aros_target_guitheme" >&6; }
9435 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9436 # for target code)
9437 cross_compiling=no
9439 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9440 cross_compiling=yes
9443 if test "$aros_host_cpu" == "x86_64" ; then
9444 if test "$aros_target_cpu" == "i386" ; then
9445 cross_compiling=no
9449 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9450 if test "$aros_host_arch" != "$aros_target_arch" ; then
9451 cross_compiling=yes
9453 else
9454 if test "$host_cc_elf" = "no" ; then
9455 cross_compiling=yes
9459 if test "$cross_compiling" = "no" ; then
9460 kernel_tool_prefix=""
9461 if test "$host_cc_elf" = "yes" ; then
9462 elf_tool_prefix=""
9466 if test "$kernel_tool_version" != ""; then
9467 kernel_tool_version="-$kernel_tool_version"
9470 #######################################################################
9471 ## Compute what toolchains to use, and their paths ##
9472 #######################################################################
9474 # This takes, as input:
9475 # crosstools {yes,no}
9476 # kernel_tool_version {"",[version]}
9477 # target_tool_version {"",[version]}
9478 # kernel_tool_prefix {none,[some-arch-os-]}
9479 # gnu-toolchain -:
9480 # target_tool_prefix ${aros_target_cpu}-aros-
9481 # aros_tool_prefix ${aros_target_cpu}-aros-
9483 # The output is
9484 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9485 # Where the 'kernel' binaries are located
9486 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9487 # Where the 'target' binaries are located
9488 # (not the symlink farm - that is aros_target_*!)
9490 # The rules are:
9491 # if crosstools then
9492 # if kernel_tools_prefix = "no-kernel-prefix-"
9493 # aros_kernel_* = crosstools cc paths
9494 # aros_kernel_cc = elf cc wrapper around crosstools cc
9495 # else
9496 # VALIDATE(${kernel_tools_prefix}*)
9497 # aros_kernel_* = ${kernel_tools_prefix}*
9498 # if ${kernel_tools_prefix}cc is an AROS gcc
9499 # aros_kernel_cc = ${kernel_tools_prefix}cc
9500 # else
9501 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9502 # fi
9503 # fi
9505 # orig_target_* = aros built crosstools
9506 # orig_target_cc = elf cc wrapper around crosstools cc
9507 # else
9508 # VALIDATE(${kernel_tools_prefix}*)
9510 # orig_target_* = aros_kernel_*
9511 # if aros_kernel_cc is an AROS gcc
9512 # orig_target_cc = aros_kernel_cc
9513 # else
9514 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9515 # fi
9516 # fi
9518 if test "$aros_toolchain" = "gnu" ; then
9519 target_tool_prefix="${aros_target_cpu}-aros-"
9520 elif test "$aros_toolchain" = "llvm" ; then
9521 target_tool_prefix="bin/"
9524 if test "$kernel_tool_prefix" != "" ; then
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9526 $as_echo_n "checking which kernel tools... " >&6; }
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9528 $as_echo "$kernel_tool_prefix" >&6; };
9531 if test "$kernel_tool_prefix" = "none" ; then
9532 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9533 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9535 else
9536 # Kernel tools required - find them
9537 # Note that 'normally', aros_kernel_* overrides will be
9538 # empty, unless specified in the per-arch sections above.
9539 if test "x$aros_kernel_cpp" = "x"; then
9540 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9542 if test "${kernel_tool_version}" != ""; then
9543 if test "$aros_kernel_cpp" != ""; then
9544 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9545 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9546 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9550 if test "$aros_kernel_cpp" = ""; then
9551 if test "$cross_compiling" = "yes" ; then
9552 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9553 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9555 $as_echo_n "checking for $ac_word... " >&6; }
9556 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 case $aros_kernel_cpp in
9560 [\\/]* | ?:[\\/]*)
9561 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 for as_dir in $PATH
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
9570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9571 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 break 2
9575 done
9576 done
9577 IFS=$as_save_IFS
9580 esac
9582 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9583 if test -n "$aros_kernel_cpp"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9585 $as_echo "$aros_kernel_cpp" >&6; }
9586 else
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9592 else
9593 if test "$GCC" = "yes"; then
9594 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9595 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9596 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 $as_echo_n "checking for $ac_word... " >&6; }
9599 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 case $aros_kernel_cpp in
9603 [\\/]* | ?:[\\/]*)
9604 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608 for as_dir in `dirname $aros_gcc_cpp`
9610 IFS=$as_save_IFS
9611 test -z "$as_dir" && as_dir=.
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9614 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9616 break 2
9618 done
9619 done
9620 IFS=$as_save_IFS
9623 esac
9625 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9626 if test -n "$aros_kernel_cpp"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9628 $as_echo "$aros_kernel_cpp" >&6; }
9629 else
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9636 if test "$aros_kernel_cpp" = ""; then
9637 # Extract the first word of "cpp", so it can be a program name with args.
9638 set dummy cpp; ac_word=$2
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 $as_echo_n "checking for $ac_word... " >&6; }
9641 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9642 $as_echo_n "(cached) " >&6
9643 else
9644 case $aros_kernel_cpp in
9645 [\\/]* | ?:[\\/]*)
9646 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 for as_dir in $PATH
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9656 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9658 break 2
9660 done
9661 done
9662 IFS=$as_save_IFS
9665 esac
9667 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9668 if test -n "$aros_kernel_cpp"; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9670 $as_echo "$aros_kernel_cpp" >&6; }
9671 else
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673 $as_echo "no" >&6; }
9679 else
9680 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9681 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9682 set dummy $aros_kernel_cpp; ac_word=$2
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684 $as_echo_n "checking for $ac_word... " >&6; }
9685 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9688 case $aros_kernel_cpp in
9689 [\\/]* | ?:[\\/]*)
9690 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 for as_dir in $PATH
9696 IFS=$as_save_IFS
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
9699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9700 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 break 2
9704 done
9705 done
9706 IFS=$as_save_IFS
9709 esac
9711 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9712 if test -n "$aros_kernel_cpp"; then
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9714 $as_echo "$aros_kernel_cpp" >&6; }
9715 else
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717 $as_echo "no" >&6; }
9721 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9724 req_avail=yes
9725 if test "$aros_kernel_cpp" = ""; then
9726 req_avail=no
9728 if test "$aros_kernel_cpp" = "no"; then
9729 req_avail=no
9731 if test "$req_avail" = "no"; then
9732 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9735 if test "x$aros_kernel_cc" = "x"; then
9736 aros_kernel_cc=${kernel_tool_prefix}${CC}
9738 if test "${kernel_tool_version}" != ""; then
9739 if test "$aros_kernel_cc" != ""; then
9740 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9741 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9742 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9746 if test "$aros_kernel_cc" = ""; then
9747 if test "$cross_compiling" = "yes" ; then
9748 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9749 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9753 $as_echo_n "(cached) " >&6
9754 else
9755 case $aros_kernel_cc in
9756 [\\/]* | ?:[\\/]*)
9757 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 for as_dir in $PATH
9763 IFS=$as_save_IFS
9764 test -z "$as_dir" && as_dir=.
9765 for ac_exec_ext in '' $ac_executable_extensions; do
9766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9767 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9769 break 2
9771 done
9772 done
9773 IFS=$as_save_IFS
9776 esac
9778 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9779 if test -n "$aros_kernel_cc"; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9781 $as_echo "$aros_kernel_cc" >&6; }
9782 else
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9788 else
9789 if test "$GCC" = "yes"; then
9790 aros_gcc_cc=`$CC -print-prog-name=cc`
9791 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9792 set dummy `basename $aros_gcc_cc`; ac_word=$2
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794 $as_echo_n "checking for $ac_word... " >&6; }
9795 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 case $aros_kernel_cc in
9799 [\\/]* | ?:[\\/]*)
9800 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804 for as_dir in `dirname $aros_gcc_cc`
9806 IFS=$as_save_IFS
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9812 break 2
9814 done
9815 done
9816 IFS=$as_save_IFS
9819 esac
9821 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9822 if test -n "$aros_kernel_cc"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9824 $as_echo "$aros_kernel_cc" >&6; }
9825 else
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9832 if test "$aros_kernel_cc" = ""; then
9833 # Extract the first word of "cc", so it can be a program name with args.
9834 set dummy cc; ac_word=$2
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836 $as_echo_n "checking for $ac_word... " >&6; }
9837 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9838 $as_echo_n "(cached) " >&6
9839 else
9840 case $aros_kernel_cc in
9841 [\\/]* | ?:[\\/]*)
9842 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846 for as_dir in $PATH
9848 IFS=$as_save_IFS
9849 test -z "$as_dir" && as_dir=.
9850 for ac_exec_ext in '' $ac_executable_extensions; do
9851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9852 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9854 break 2
9856 done
9857 done
9858 IFS=$as_save_IFS
9861 esac
9863 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9864 if test -n "$aros_kernel_cc"; then
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9866 $as_echo "$aros_kernel_cc" >&6; }
9867 else
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9869 $as_echo "no" >&6; }
9875 else
9876 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9877 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9878 set dummy $aros_kernel_cc; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 case $aros_kernel_cc in
9885 [\\/]* | ?:[\\/]*)
9886 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890 for as_dir in $PATH
9892 IFS=$as_save_IFS
9893 test -z "$as_dir" && as_dir=.
9894 for ac_exec_ext in '' $ac_executable_extensions; do
9895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9896 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 break 2
9900 done
9901 done
9902 IFS=$as_save_IFS
9905 esac
9907 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9908 if test -n "$aros_kernel_cc"; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9910 $as_echo "$aros_kernel_cc" >&6; }
9911 else
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 $as_echo "no" >&6; }
9917 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9920 req_avail=yes
9921 if test "$aros_kernel_cc" = ""; then
9922 req_avail=no
9924 if test "$aros_kernel_cc" = "no"; then
9925 req_avail=no
9927 if test "$req_avail" = "no"; then
9928 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9931 if test "x$aros_kernel_cxx" = "x"; then
9932 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9934 if test "${kernel_tool_version}" != ""; then
9935 if test "$aros_kernel_cxx" != ""; then
9936 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9937 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9938 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9942 if test "$aros_kernel_cxx" = ""; then
9943 if test "$cross_compiling" = "yes" ; then
9944 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9945 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947 $as_echo_n "checking for $ac_word... " >&6; }
9948 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9949 $as_echo_n "(cached) " >&6
9950 else
9951 case $aros_kernel_cxx in
9952 [\\/]* | ?:[\\/]*)
9953 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957 for as_dir in $PATH
9959 IFS=$as_save_IFS
9960 test -z "$as_dir" && as_dir=.
9961 for ac_exec_ext in '' $ac_executable_extensions; do
9962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9963 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9965 break 2
9967 done
9968 done
9969 IFS=$as_save_IFS
9972 esac
9974 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9975 if test -n "$aros_kernel_cxx"; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9977 $as_echo "$aros_kernel_cxx" >&6; }
9978 else
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 $as_echo "no" >&6; }
9984 else
9985 if test "$GCC" = "yes"; then
9986 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9987 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9988 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9990 $as_echo_n "checking for $ac_word... " >&6; }
9991 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9992 $as_echo_n "(cached) " >&6
9993 else
9994 case $aros_kernel_cxx in
9995 [\\/]* | ?:[\\/]*)
9996 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000 for as_dir in `dirname $aros_gcc_cxx`
10002 IFS=$as_save_IFS
10003 test -z "$as_dir" && as_dir=.
10004 for ac_exec_ext in '' $ac_executable_extensions; do
10005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10006 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10008 break 2
10010 done
10011 done
10012 IFS=$as_save_IFS
10015 esac
10017 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10018 if test -n "$aros_kernel_cxx"; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10020 $as_echo "$aros_kernel_cxx" >&6; }
10021 else
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023 $as_echo "no" >&6; }
10028 if test "$aros_kernel_cxx" = ""; then
10029 # Extract the first word of "cxx", so it can be a program name with args.
10030 set dummy cxx; ac_word=$2
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10032 $as_echo_n "checking for $ac_word... " >&6; }
10033 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10034 $as_echo_n "(cached) " >&6
10035 else
10036 case $aros_kernel_cxx in
10037 [\\/]* | ?:[\\/]*)
10038 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042 for as_dir in $PATH
10044 IFS=$as_save_IFS
10045 test -z "$as_dir" && as_dir=.
10046 for ac_exec_ext in '' $ac_executable_extensions; do
10047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10048 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10050 break 2
10052 done
10053 done
10054 IFS=$as_save_IFS
10057 esac
10059 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10060 if test -n "$aros_kernel_cxx"; then
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10062 $as_echo "$aros_kernel_cxx" >&6; }
10063 else
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10065 $as_echo "no" >&6; }
10071 else
10072 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10073 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10074 set dummy $aros_kernel_cxx; ac_word=$2
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076 $as_echo_n "checking for $ac_word... " >&6; }
10077 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 case $aros_kernel_cxx in
10081 [\\/]* | ?:[\\/]*)
10082 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10088 IFS=$as_save_IFS
10089 test -z "$as_dir" && as_dir=.
10090 for ac_exec_ext in '' $ac_executable_extensions; do
10091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10092 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10094 break 2
10096 done
10097 done
10098 IFS=$as_save_IFS
10101 esac
10103 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10104 if test -n "$aros_kernel_cxx"; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10106 $as_echo "$aros_kernel_cxx" >&6; }
10107 else
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; }
10113 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10116 # If it's set, make sure it's really there
10117 if test "x$aros_kernel_cxx" != "x" ; then
10118 req_avail=yes
10119 if test "$aros_kernel_cxx" = ""; then
10120 req_avail=no
10122 if test "$aros_kernel_cxx" = "no"; then
10123 req_avail=no
10125 if test "$req_avail" = "no"; then
10126 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10130 if test "$aros_kernel_ld" = ""; then
10131 if test "$cross_compiling" = "yes" ; then
10132 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10133 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10135 $as_echo_n "checking for $ac_word... " >&6; }
10136 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10137 $as_echo_n "(cached) " >&6
10138 else
10139 case $aros_kernel_ld in
10140 [\\/]* | ?:[\\/]*)
10141 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145 for as_dir in $PATH
10147 IFS=$as_save_IFS
10148 test -z "$as_dir" && as_dir=.
10149 for ac_exec_ext in '' $ac_executable_extensions; do
10150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10151 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10153 break 2
10155 done
10156 done
10157 IFS=$as_save_IFS
10160 esac
10162 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10163 if test -n "$aros_kernel_ld"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10165 $as_echo "$aros_kernel_ld" >&6; }
10166 else
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10172 else
10173 if test "$GCC" = "yes"; then
10174 aros_gcc_ld=`$CC -print-prog-name=ld`
10175 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10176 set dummy `basename $aros_gcc_ld`; ac_word=$2
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178 $as_echo_n "checking for $ac_word... " >&6; }
10179 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 case $aros_kernel_ld in
10183 [\\/]* | ?:[\\/]*)
10184 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in `dirname $aros_gcc_ld`
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10198 done
10199 done
10200 IFS=$as_save_IFS
10203 esac
10205 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10206 if test -n "$aros_kernel_ld"; then
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10208 $as_echo "$aros_kernel_ld" >&6; }
10209 else
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10216 if test "$aros_kernel_ld" = ""; then
10217 # Extract the first word of "ld", so it can be a program name with args.
10218 set dummy ld; ac_word=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10222 $as_echo_n "(cached) " >&6
10223 else
10224 case $aros_kernel_ld in
10225 [\\/]* | ?:[\\/]*)
10226 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230 for as_dir in $PATH
10232 IFS=$as_save_IFS
10233 test -z "$as_dir" && as_dir=.
10234 for ac_exec_ext in '' $ac_executable_extensions; do
10235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10236 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10238 break 2
10240 done
10241 done
10242 IFS=$as_save_IFS
10245 esac
10247 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10248 if test -n "$aros_kernel_ld"; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10250 $as_echo "$aros_kernel_ld" >&6; }
10251 else
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253 $as_echo "no" >&6; }
10259 else
10260 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10261 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10262 set dummy $aros_kernel_ld; ac_word=$2
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10264 $as_echo_n "checking for $ac_word... " >&6; }
10265 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10268 case $aros_kernel_ld in
10269 [\\/]* | ?:[\\/]*)
10270 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274 for as_dir in $PATH
10276 IFS=$as_save_IFS
10277 test -z "$as_dir" && as_dir=.
10278 for ac_exec_ext in '' $ac_executable_extensions; do
10279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10280 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10282 break 2
10284 done
10285 done
10286 IFS=$as_save_IFS
10289 esac
10291 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10292 if test -n "$aros_kernel_ld"; then
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10294 $as_echo "$aros_kernel_ld" >&6; }
10295 else
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10297 $as_echo "no" >&6; }
10301 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10304 req_avail=yes
10305 if test "$aros_kernel_ld" = ""; then
10306 req_avail=no
10308 if test "$aros_kernel_ld" = "no"; then
10309 req_avail=no
10311 if test "$req_avail" = "no"; then
10312 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10315 if test "$aros_kernel_as" = ""; then
10316 if test "$cross_compiling" = "yes" ; then
10317 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10318 set dummy ${kernel_tool_prefix}as; ac_word=$2
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320 $as_echo_n "checking for $ac_word... " >&6; }
10321 if ${ac_cv_path_aros_kernel_as+:} false; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324 case $aros_kernel_as in
10325 [\\/]* | ?:[\\/]*)
10326 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10332 IFS=$as_save_IFS
10333 test -z "$as_dir" && as_dir=.
10334 for ac_exec_ext in '' $ac_executable_extensions; do
10335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10336 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10338 break 2
10340 done
10341 done
10342 IFS=$as_save_IFS
10345 esac
10347 aros_kernel_as=$ac_cv_path_aros_kernel_as
10348 if test -n "$aros_kernel_as"; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10350 $as_echo "$aros_kernel_as" >&6; }
10351 else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; }
10357 else
10358 if test "$GCC" = "yes"; then
10359 aros_gcc_as=`$CC -print-prog-name=as`
10360 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10361 set dummy `basename $aros_gcc_as`; ac_word=$2
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 $as_echo_n "checking for $ac_word... " >&6; }
10364 if ${ac_cv_path_aros_kernel_as+:} false; then :
10365 $as_echo_n "(cached) " >&6
10366 else
10367 case $aros_kernel_as in
10368 [\\/]* | ?:[\\/]*)
10369 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373 for as_dir in `dirname $aros_gcc_as`
10375 IFS=$as_save_IFS
10376 test -z "$as_dir" && as_dir=.
10377 for ac_exec_ext in '' $ac_executable_extensions; do
10378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10379 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10381 break 2
10383 done
10384 done
10385 IFS=$as_save_IFS
10388 esac
10390 aros_kernel_as=$ac_cv_path_aros_kernel_as
10391 if test -n "$aros_kernel_as"; then
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10393 $as_echo "$aros_kernel_as" >&6; }
10394 else
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10396 $as_echo "no" >&6; }
10401 if test "$aros_kernel_as" = ""; then
10402 # Extract the first word of "as", so it can be a program name with args.
10403 set dummy as; ac_word=$2
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10405 $as_echo_n "checking for $ac_word... " >&6; }
10406 if ${ac_cv_path_aros_kernel_as+:} false; then :
10407 $as_echo_n "(cached) " >&6
10408 else
10409 case $aros_kernel_as in
10410 [\\/]* | ?:[\\/]*)
10411 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in $PATH
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10421 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 break 2
10425 done
10426 done
10427 IFS=$as_save_IFS
10430 esac
10432 aros_kernel_as=$ac_cv_path_aros_kernel_as
10433 if test -n "$aros_kernel_as"; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10435 $as_echo "$aros_kernel_as" >&6; }
10436 else
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 $as_echo "no" >&6; }
10444 else
10445 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10446 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10447 set dummy $aros_kernel_as; ac_word=$2
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449 $as_echo_n "checking for $ac_word... " >&6; }
10450 if ${ac_cv_path_aros_kernel_as+:} false; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 case $aros_kernel_as in
10454 [\\/]* | ?:[\\/]*)
10455 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459 for as_dir in $PATH
10461 IFS=$as_save_IFS
10462 test -z "$as_dir" && as_dir=.
10463 for ac_exec_ext in '' $ac_executable_extensions; do
10464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10465 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10467 break 2
10469 done
10470 done
10471 IFS=$as_save_IFS
10474 esac
10476 aros_kernel_as=$ac_cv_path_aros_kernel_as
10477 if test -n "$aros_kernel_as"; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10479 $as_echo "$aros_kernel_as" >&6; }
10480 else
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482 $as_echo "no" >&6; }
10486 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10489 req_avail=yes
10490 if test "$aros_kernel_as" = ""; then
10491 req_avail=no
10493 if test "$aros_kernel_as" = "no"; then
10494 req_avail=no
10496 if test "$req_avail" = "no"; then
10497 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10500 if test "$aros_kernel_ar" = ""; then
10501 if test "$cross_compiling" = "yes" ; then
10502 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10503 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 $as_echo_n "checking for $ac_word... " >&6; }
10506 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509 case $aros_kernel_ar in
10510 [\\/]* | ?:[\\/]*)
10511 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515 for as_dir in $PATH
10517 IFS=$as_save_IFS
10518 test -z "$as_dir" && as_dir=.
10519 for ac_exec_ext in '' $ac_executable_extensions; do
10520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10521 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10523 break 2
10525 done
10526 done
10527 IFS=$as_save_IFS
10530 esac
10532 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10533 if test -n "$aros_kernel_ar"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10535 $as_echo "$aros_kernel_ar" >&6; }
10536 else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10542 else
10543 if test "$GCC" = "yes"; then
10544 aros_gcc_ar=`$CC -print-prog-name=ar`
10545 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10546 set dummy `basename $aros_gcc_ar`; ac_word=$2
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10548 $as_echo_n "checking for $ac_word... " >&6; }
10549 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10550 $as_echo_n "(cached) " >&6
10551 else
10552 case $aros_kernel_ar in
10553 [\\/]* | ?:[\\/]*)
10554 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558 for as_dir in `dirname $aros_gcc_ar`
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10564 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 break 2
10568 done
10569 done
10570 IFS=$as_save_IFS
10573 esac
10575 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10576 if test -n "$aros_kernel_ar"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10578 $as_echo "$aros_kernel_ar" >&6; }
10579 else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; }
10586 if test "$aros_kernel_ar" = ""; then
10587 # Extract the first word of "ar", so it can be a program name with args.
10588 set dummy ar; ac_word=$2
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10590 $as_echo_n "checking for $ac_word... " >&6; }
10591 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10592 $as_echo_n "(cached) " >&6
10593 else
10594 case $aros_kernel_ar in
10595 [\\/]* | ?:[\\/]*)
10596 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600 for as_dir in $PATH
10602 IFS=$as_save_IFS
10603 test -z "$as_dir" && as_dir=.
10604 for ac_exec_ext in '' $ac_executable_extensions; do
10605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10606 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608 break 2
10610 done
10611 done
10612 IFS=$as_save_IFS
10615 esac
10617 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10618 if test -n "$aros_kernel_ar"; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10620 $as_echo "$aros_kernel_ar" >&6; }
10621 else
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623 $as_echo "no" >&6; }
10629 else
10630 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10631 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10632 set dummy $aros_kernel_ar; ac_word=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 case $aros_kernel_ar in
10639 [\\/]* | ?:[\\/]*)
10640 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644 for as_dir in $PATH
10646 IFS=$as_save_IFS
10647 test -z "$as_dir" && as_dir=.
10648 for ac_exec_ext in '' $ac_executable_extensions; do
10649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10650 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652 break 2
10654 done
10655 done
10656 IFS=$as_save_IFS
10659 esac
10661 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10662 if test -n "$aros_kernel_ar"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10664 $as_echo "$aros_kernel_ar" >&6; }
10665 else
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10671 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10674 req_avail=yes
10675 if test "$aros_kernel_ar" = ""; then
10676 req_avail=no
10678 if test "$aros_kernel_ar" = "no"; then
10679 req_avail=no
10681 if test "$req_avail" = "no"; then
10682 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10685 if test "$aros_kernel_ranlib" = ""; then
10686 if test "$cross_compiling" = "yes" ; then
10687 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10688 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10690 $as_echo_n "checking for $ac_word... " >&6; }
10691 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10692 $as_echo_n "(cached) " >&6
10693 else
10694 case $aros_kernel_ranlib in
10695 [\\/]* | ?:[\\/]*)
10696 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700 for as_dir in $PATH
10702 IFS=$as_save_IFS
10703 test -z "$as_dir" && as_dir=.
10704 for ac_exec_ext in '' $ac_executable_extensions; do
10705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10706 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10708 break 2
10710 done
10711 done
10712 IFS=$as_save_IFS
10715 esac
10717 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10718 if test -n "$aros_kernel_ranlib"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10720 $as_echo "$aros_kernel_ranlib" >&6; }
10721 else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10727 else
10728 if test "$GCC" = "yes"; then
10729 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10730 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10731 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 case $aros_kernel_ranlib in
10738 [\\/]* | ?:[\\/]*)
10739 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743 for as_dir in `dirname $aros_gcc_ranlib`
10745 IFS=$as_save_IFS
10746 test -z "$as_dir" && as_dir=.
10747 for ac_exec_ext in '' $ac_executable_extensions; do
10748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10749 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10751 break 2
10753 done
10754 done
10755 IFS=$as_save_IFS
10758 esac
10760 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10761 if test -n "$aros_kernel_ranlib"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10763 $as_echo "$aros_kernel_ranlib" >&6; }
10764 else
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10771 if test "$aros_kernel_ranlib" = ""; then
10772 # Extract the first word of "ranlib", so it can be a program name with args.
10773 set dummy ranlib; ac_word=$2
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10775 $as_echo_n "checking for $ac_word... " >&6; }
10776 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10777 $as_echo_n "(cached) " >&6
10778 else
10779 case $aros_kernel_ranlib in
10780 [\\/]* | ?:[\\/]*)
10781 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785 for as_dir in $PATH
10787 IFS=$as_save_IFS
10788 test -z "$as_dir" && as_dir=.
10789 for ac_exec_ext in '' $ac_executable_extensions; do
10790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10791 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10793 break 2
10795 done
10796 done
10797 IFS=$as_save_IFS
10800 esac
10802 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10803 if test -n "$aros_kernel_ranlib"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10805 $as_echo "$aros_kernel_ranlib" >&6; }
10806 else
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808 $as_echo "no" >&6; }
10814 else
10815 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10816 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10817 set dummy $aros_kernel_ranlib; ac_word=$2
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819 $as_echo_n "checking for $ac_word... " >&6; }
10820 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 case $aros_kernel_ranlib in
10824 [\\/]* | ?:[\\/]*)
10825 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829 for as_dir in $PATH
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
10834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10835 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10839 done
10840 done
10841 IFS=$as_save_IFS
10844 esac
10846 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10847 if test -n "$aros_kernel_ranlib"; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10849 $as_echo "$aros_kernel_ranlib" >&6; }
10850 else
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852 $as_echo "no" >&6; }
10856 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10859 req_avail=yes
10860 if test "$aros_kernel_ranlib" = ""; then
10861 req_avail=no
10863 if test "$aros_kernel_ranlib" = "no"; then
10864 req_avail=no
10866 if test "$req_avail" = "no"; then
10867 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10870 if test "$aros_kernel_nm" = ""; then
10871 if test "$cross_compiling" = "yes" ; then
10872 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10873 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10875 $as_echo_n "checking for $ac_word... " >&6; }
10876 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10877 $as_echo_n "(cached) " >&6
10878 else
10879 case $aros_kernel_nm in
10880 [\\/]* | ?:[\\/]*)
10881 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885 for as_dir in $PATH
10887 IFS=$as_save_IFS
10888 test -z "$as_dir" && as_dir=.
10889 for ac_exec_ext in '' $ac_executable_extensions; do
10890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10891 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10893 break 2
10895 done
10896 done
10897 IFS=$as_save_IFS
10900 esac
10902 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10903 if test -n "$aros_kernel_nm"; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10905 $as_echo "$aros_kernel_nm" >&6; }
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10912 else
10913 if test "$GCC" = "yes"; then
10914 aros_gcc_nm=`$CC -print-prog-name=nm`
10915 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10916 set dummy `basename $aros_gcc_nm`; ac_word=$2
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10918 $as_echo_n "checking for $ac_word... " >&6; }
10919 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10920 $as_echo_n "(cached) " >&6
10921 else
10922 case $aros_kernel_nm in
10923 [\\/]* | ?:[\\/]*)
10924 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928 for as_dir in `dirname $aros_gcc_nm`
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10934 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10936 break 2
10938 done
10939 done
10940 IFS=$as_save_IFS
10943 esac
10945 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10946 if test -n "$aros_kernel_nm"; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10948 $as_echo "$aros_kernel_nm" >&6; }
10949 else
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951 $as_echo "no" >&6; }
10956 if test "$aros_kernel_nm" = ""; then
10957 # Extract the first word of "nm", so it can be a program name with args.
10958 set dummy nm; ac_word=$2
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10960 $as_echo_n "checking for $ac_word... " >&6; }
10961 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10962 $as_echo_n "(cached) " >&6
10963 else
10964 case $aros_kernel_nm in
10965 [\\/]* | ?:[\\/]*)
10966 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970 for as_dir in $PATH
10972 IFS=$as_save_IFS
10973 test -z "$as_dir" && as_dir=.
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10976 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10978 break 2
10980 done
10981 done
10982 IFS=$as_save_IFS
10985 esac
10987 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10988 if test -n "$aros_kernel_nm"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10990 $as_echo "$aros_kernel_nm" >&6; }
10991 else
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993 $as_echo "no" >&6; }
10999 else
11000 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11001 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11002 set dummy $aros_kernel_nm; ac_word=$2
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11004 $as_echo_n "checking for $ac_word... " >&6; }
11005 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11006 $as_echo_n "(cached) " >&6
11007 else
11008 case $aros_kernel_nm in
11009 [\\/]* | ?:[\\/]*)
11010 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11016 IFS=$as_save_IFS
11017 test -z "$as_dir" && as_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11022 break 2
11024 done
11025 done
11026 IFS=$as_save_IFS
11029 esac
11031 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11032 if test -n "$aros_kernel_nm"; then
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11034 $as_echo "$aros_kernel_nm" >&6; }
11035 else
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11041 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
11044 req_avail=yes
11045 if test "$aros_kernel_nm" = ""; then
11046 req_avail=no
11048 if test "$aros_kernel_nm" = "no"; then
11049 req_avail=no
11051 if test "$req_avail" = "no"; then
11052 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11055 if test "$aros_kernel_strip" = ""; then
11056 if test "$cross_compiling" = "yes" ; then
11057 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11058 set dummy ${kernel_tool_prefix}strip; ac_word=$2
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11060 $as_echo_n "checking for $ac_word... " >&6; }
11061 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11062 $as_echo_n "(cached) " >&6
11063 else
11064 case $aros_kernel_strip in
11065 [\\/]* | ?:[\\/]*)
11066 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070 for as_dir in $PATH
11072 IFS=$as_save_IFS
11073 test -z "$as_dir" && as_dir=.
11074 for ac_exec_ext in '' $ac_executable_extensions; do
11075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11076 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11078 break 2
11080 done
11081 done
11082 IFS=$as_save_IFS
11085 esac
11087 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11088 if test -n "$aros_kernel_strip"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11090 $as_echo "$aros_kernel_strip" >&6; }
11091 else
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093 $as_echo "no" >&6; }
11097 else
11098 if test "$GCC" = "yes"; then
11099 aros_gcc_strip=`$CC -print-prog-name=strip`
11100 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11101 set dummy `basename $aros_gcc_strip`; ac_word=$2
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103 $as_echo_n "checking for $ac_word... " >&6; }
11104 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11105 $as_echo_n "(cached) " >&6
11106 else
11107 case $aros_kernel_strip in
11108 [\\/]* | ?:[\\/]*)
11109 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113 for as_dir in `dirname $aros_gcc_strip`
11115 IFS=$as_save_IFS
11116 test -z "$as_dir" && as_dir=.
11117 for ac_exec_ext in '' $ac_executable_extensions; do
11118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11119 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11121 break 2
11123 done
11124 done
11125 IFS=$as_save_IFS
11128 esac
11130 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11131 if test -n "$aros_kernel_strip"; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11133 $as_echo "$aros_kernel_strip" >&6; }
11134 else
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11141 if test "$aros_kernel_strip" = ""; then
11142 # Extract the first word of "strip", so it can be a program name with args.
11143 set dummy strip; ac_word=$2
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145 $as_echo_n "checking for $ac_word... " >&6; }
11146 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 case $aros_kernel_strip in
11150 [\\/]* | ?:[\\/]*)
11151 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155 for as_dir in $PATH
11157 IFS=$as_save_IFS
11158 test -z "$as_dir" && as_dir=.
11159 for ac_exec_ext in '' $ac_executable_extensions; do
11160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11161 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11163 break 2
11165 done
11166 done
11167 IFS=$as_save_IFS
11170 esac
11172 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11173 if test -n "$aros_kernel_strip"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11175 $as_echo "$aros_kernel_strip" >&6; }
11176 else
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11184 else
11185 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11186 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11187 set dummy $aros_kernel_strip; ac_word=$2
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11189 $as_echo_n "checking for $ac_word... " >&6; }
11190 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 case $aros_kernel_strip in
11194 [\\/]* | ?:[\\/]*)
11195 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11201 IFS=$as_save_IFS
11202 test -z "$as_dir" && as_dir=.
11203 for ac_exec_ext in '' $ac_executable_extensions; do
11204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11205 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11207 break 2
11209 done
11210 done
11211 IFS=$as_save_IFS
11214 esac
11216 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11217 if test -n "$aros_kernel_strip"; then
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11219 $as_echo "$aros_kernel_strip" >&6; }
11220 else
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 $as_echo "no" >&6; }
11226 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11229 req_avail=yes
11230 if test "$aros_kernel_strip" = ""; then
11231 req_avail=no
11233 if test "$aros_kernel_strip" = "no"; then
11234 req_avail=no
11236 if test "$req_avail" = "no"; then
11237 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11240 # Objcopy and objdump are not required for the kernel
11241 # toolchain on many architectures.
11242 # So we'll look for them, but not make them strictly required.
11244 if test "$aros_kernel_objcopy" = ""; then
11245 if test "$cross_compiling" = "yes" ; then
11246 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11247 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249 $as_echo_n "checking for $ac_word... " >&6; }
11250 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11251 $as_echo_n "(cached) " >&6
11252 else
11253 case $aros_kernel_objcopy in
11254 [\\/]* | ?:[\\/]*)
11255 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259 for as_dir in $PATH
11261 IFS=$as_save_IFS
11262 test -z "$as_dir" && as_dir=.
11263 for ac_exec_ext in '' $ac_executable_extensions; do
11264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11265 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11267 break 2
11269 done
11270 done
11271 IFS=$as_save_IFS
11274 esac
11276 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11277 if test -n "$aros_kernel_objcopy"; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11279 $as_echo "$aros_kernel_objcopy" >&6; }
11280 else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11286 else
11287 if test "$GCC" = "yes"; then
11288 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11289 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11290 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292 $as_echo_n "checking for $ac_word... " >&6; }
11293 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11296 case $aros_kernel_objcopy in
11297 [\\/]* | ?:[\\/]*)
11298 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302 for as_dir in `dirname $aros_gcc_objcopy`
11304 IFS=$as_save_IFS
11305 test -z "$as_dir" && as_dir=.
11306 for ac_exec_ext in '' $ac_executable_extensions; do
11307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11308 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11310 break 2
11312 done
11313 done
11314 IFS=$as_save_IFS
11317 esac
11319 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11320 if test -n "$aros_kernel_objcopy"; then
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11322 $as_echo "$aros_kernel_objcopy" >&6; }
11323 else
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11325 $as_echo "no" >&6; }
11330 if test "$aros_kernel_objcopy" = ""; then
11331 # Extract the first word of "objcopy", so it can be a program name with args.
11332 set dummy objcopy; ac_word=$2
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11334 $as_echo_n "checking for $ac_word... " >&6; }
11335 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11336 $as_echo_n "(cached) " >&6
11337 else
11338 case $aros_kernel_objcopy in
11339 [\\/]* | ?:[\\/]*)
11340 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344 for as_dir in $PATH
11346 IFS=$as_save_IFS
11347 test -z "$as_dir" && as_dir=.
11348 for ac_exec_ext in '' $ac_executable_extensions; do
11349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11350 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11352 break 2
11354 done
11355 done
11356 IFS=$as_save_IFS
11359 esac
11361 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11362 if test -n "$aros_kernel_objcopy"; then
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11364 $as_echo "$aros_kernel_objcopy" >&6; }
11365 else
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11373 else
11374 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11375 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11376 set dummy $aros_kernel_objcopy; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 case $aros_kernel_objcopy in
11383 [\\/]* | ?:[\\/]*)
11384 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11390 IFS=$as_save_IFS
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11394 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 break 2
11398 done
11399 done
11400 IFS=$as_save_IFS
11403 esac
11405 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11406 if test -n "$aros_kernel_objcopy"; then
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11408 $as_echo "$aros_kernel_objcopy" >&6; }
11409 else
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11411 $as_echo "no" >&6; }
11415 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11419 if test "$aros_kernel_objdump" = ""; then
11420 if test "$cross_compiling" = "yes" ; then
11421 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11422 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11424 $as_echo_n "checking for $ac_word... " >&6; }
11425 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11426 $as_echo_n "(cached) " >&6
11427 else
11428 case $aros_kernel_objdump in
11429 [\\/]* | ?:[\\/]*)
11430 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11440 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 break 2
11444 done
11445 done
11446 IFS=$as_save_IFS
11449 esac
11451 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11452 if test -n "$aros_kernel_objdump"; then
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11454 $as_echo "$aros_kernel_objdump" >&6; }
11455 else
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457 $as_echo "no" >&6; }
11461 else
11462 if test "$GCC" = "yes"; then
11463 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11464 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11465 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467 $as_echo_n "checking for $ac_word... " >&6; }
11468 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11471 case $aros_kernel_objdump in
11472 [\\/]* | ?:[\\/]*)
11473 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477 for as_dir in `dirname $aros_gcc_objdump`
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11483 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11487 done
11488 done
11489 IFS=$as_save_IFS
11492 esac
11494 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11495 if test -n "$aros_kernel_objdump"; then
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11497 $as_echo "$aros_kernel_objdump" >&6; }
11498 else
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500 $as_echo "no" >&6; }
11505 if test "$aros_kernel_objdump" = ""; then
11506 # Extract the first word of "objdump", so it can be a program name with args.
11507 set dummy objdump; ac_word=$2
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11509 $as_echo_n "checking for $ac_word... " >&6; }
11510 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 case $aros_kernel_objdump in
11514 [\\/]* | ?:[\\/]*)
11515 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11519 for as_dir in $PATH
11521 IFS=$as_save_IFS
11522 test -z "$as_dir" && as_dir=.
11523 for ac_exec_ext in '' $ac_executable_extensions; do
11524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11525 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11527 break 2
11529 done
11530 done
11531 IFS=$as_save_IFS
11534 esac
11536 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11537 if test -n "$aros_kernel_objdump"; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11539 $as_echo "$aros_kernel_objdump" >&6; }
11540 else
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11548 else
11549 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11550 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11551 set dummy $aros_kernel_objdump; ac_word=$2
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553 $as_echo_n "checking for $ac_word... " >&6; }
11554 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 case $aros_kernel_objdump in
11558 [\\/]* | ?:[\\/]*)
11559 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563 for as_dir in $PATH
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11569 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 break 2
11573 done
11574 done
11575 IFS=$as_save_IFS
11578 esac
11580 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11581 if test -n "$aros_kernel_objdump"; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11583 $as_echo "$aros_kernel_objdump" >&6; }
11584 else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586 $as_echo "no" >&6; }
11590 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11593 if test "x${crosstools}" != "xyes" ; then
11594 req_avail=yes
11595 if test "$aros_kernel_objcopy" = ""; then
11596 req_avail=no
11598 if test "$aros_kernel_objcopy" = "no"; then
11599 req_avail=no
11601 if test "$req_avail" = "no"; then
11602 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11604 req_avail=yes
11605 if test "$aros_kernel_objdump" = ""; then
11606 req_avail=no
11608 if test "$aros_kernel_objdump" = "no"; then
11609 req_avail=no
11611 if test "$req_avail" = "no"; then
11612 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11618 $as_echo_n "checking which target tools to use... " >&6; }
11619 if test "$aros_target_toolchain" = "yes"; then
11620 if test "$aros_toolchain" = "llvm" ; then
11621 msg_result="llvm"
11622 else
11623 msg_result=$target_tool_prefix
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11626 $as_echo "$msg_result" >&6; }
11627 # We are building AROS crosstools
11628 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11629 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11630 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11631 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11632 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11633 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11634 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11635 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11636 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11637 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11638 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11639 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11640 else
11641 # Determine whether AROS or ELF tools should be used
11642 if test "$aros_tool_prefix" = "none"; then
11643 aros_tool_prefix="${elf_tool_prefix}"
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11647 $as_echo "$aros_tool_prefix" >&6; }
11648 # We are *not* building AROS crosstools - use the AROS or ELF tools
11650 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11651 if test "$cross_compiling" = "yes" ; then
11652 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11653 set dummy ${target_tool_prefix}cpp; ac_word=$2
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655 $as_echo_n "checking for $ac_word... " >&6; }
11656 if ${ac_cv_path_orig_target_cpp+:} false; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 case $orig_target_cpp in
11660 [\\/]* | ?:[\\/]*)
11661 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11671 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 break 2
11675 done
11676 done
11677 IFS=$as_save_IFS
11680 esac
11682 orig_target_cpp=$ac_cv_path_orig_target_cpp
11683 if test -n "$orig_target_cpp"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11685 $as_echo "$orig_target_cpp" >&6; }
11686 else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11692 else
11693 if test "$GCC" = "yes"; then
11694 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11695 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11696 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698 $as_echo_n "checking for $ac_word... " >&6; }
11699 if ${ac_cv_path_orig_target_cpp+:} false; then :
11700 $as_echo_n "(cached) " >&6
11701 else
11702 case $orig_target_cpp in
11703 [\\/]* | ?:[\\/]*)
11704 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in `dirname $aros_gcc_cpp`
11710 IFS=$as_save_IFS
11711 test -z "$as_dir" && as_dir=.
11712 for ac_exec_ext in '' $ac_executable_extensions; do
11713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11714 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11716 break 2
11718 done
11719 done
11720 IFS=$as_save_IFS
11723 esac
11725 orig_target_cpp=$ac_cv_path_orig_target_cpp
11726 if test -n "$orig_target_cpp"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11728 $as_echo "$orig_target_cpp" >&6; }
11729 else
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11736 if test "$orig_target_cpp" = ""; then
11737 # Extract the first word of "cpp", so it can be a program name with args.
11738 set dummy cpp; ac_word=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 $as_echo_n "checking for $ac_word... " >&6; }
11741 if ${ac_cv_path_orig_target_cpp+:} false; then :
11742 $as_echo_n "(cached) " >&6
11743 else
11744 case $orig_target_cpp in
11745 [\\/]* | ?:[\\/]*)
11746 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11752 IFS=$as_save_IFS
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 break 2
11760 done
11761 done
11762 IFS=$as_save_IFS
11765 esac
11767 orig_target_cpp=$ac_cv_path_orig_target_cpp
11768 if test -n "$orig_target_cpp"; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11770 $as_echo "$orig_target_cpp" >&6; }
11771 else
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11779 else
11780 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11781 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11782 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784 $as_echo_n "checking for $ac_word... " >&6; }
11785 if ${ac_cv_path_orig_target_cpp+:} false; then :
11786 $as_echo_n "(cached) " >&6
11787 else
11788 case $orig_target_cpp in
11789 [\\/]* | ?:[\\/]*)
11790 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
11796 IFS=$as_save_IFS
11797 test -z "$as_dir" && as_dir=.
11798 for ac_exec_ext in '' $ac_executable_extensions; do
11799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11800 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11802 break 2
11804 done
11805 done
11806 IFS=$as_save_IFS
11809 esac
11811 orig_target_cpp=$ac_cv_path_orig_target_cpp
11812 if test -n "$orig_target_cpp"; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11814 $as_echo "$orig_target_cpp" >&6; }
11815 else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11821 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11824 req_avail=yes
11825 if test "$orig_target_cpp" = ""; then
11826 req_avail=no
11828 if test "$orig_target_cpp" = "no"; then
11829 req_avail=no
11831 if test "$req_avail" = "no"; then
11832 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11835 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11836 if test "$cross_compiling" = "yes" ; then
11837 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11838 set dummy ${target_tool_prefix}gcc; ac_word=$2
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11840 $as_echo_n "checking for $ac_word... " >&6; }
11841 if ${ac_cv_path_orig_target_cc+:} false; then :
11842 $as_echo_n "(cached) " >&6
11843 else
11844 case $orig_target_cc in
11845 [\\/]* | ?:[\\/]*)
11846 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11852 IFS=$as_save_IFS
11853 test -z "$as_dir" && as_dir=.
11854 for ac_exec_ext in '' $ac_executable_extensions; do
11855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11856 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11858 break 2
11860 done
11861 done
11862 IFS=$as_save_IFS
11865 esac
11867 orig_target_cc=$ac_cv_path_orig_target_cc
11868 if test -n "$orig_target_cc"; then
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11870 $as_echo "$orig_target_cc" >&6; }
11871 else
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873 $as_echo "no" >&6; }
11877 else
11878 if test "$GCC" = "yes"; then
11879 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11880 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11881 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11883 $as_echo_n "checking for $ac_word... " >&6; }
11884 if ${ac_cv_path_orig_target_cc+:} false; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 case $orig_target_cc in
11888 [\\/]* | ?:[\\/]*)
11889 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in `dirname $aros_gcc_gcc`
11895 IFS=$as_save_IFS
11896 test -z "$as_dir" && as_dir=.
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11899 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901 break 2
11903 done
11904 done
11905 IFS=$as_save_IFS
11908 esac
11910 orig_target_cc=$ac_cv_path_orig_target_cc
11911 if test -n "$orig_target_cc"; then
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11913 $as_echo "$orig_target_cc" >&6; }
11914 else
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11921 if test "$orig_target_cc" = ""; then
11922 # Extract the first word of "gcc", so it can be a program name with args.
11923 set dummy gcc; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if ${ac_cv_path_orig_target_cc+:} false; then :
11927 $as_echo_n "(cached) " >&6
11928 else
11929 case $orig_target_cc in
11930 [\\/]* | ?:[\\/]*)
11931 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935 for as_dir in $PATH
11937 IFS=$as_save_IFS
11938 test -z "$as_dir" && as_dir=.
11939 for ac_exec_ext in '' $ac_executable_extensions; do
11940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11941 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11943 break 2
11945 done
11946 done
11947 IFS=$as_save_IFS
11950 esac
11952 orig_target_cc=$ac_cv_path_orig_target_cc
11953 if test -n "$orig_target_cc"; then
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11955 $as_echo "$orig_target_cc" >&6; }
11956 else
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11964 else
11965 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11966 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11967 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969 $as_echo_n "checking for $ac_word... " >&6; }
11970 if ${ac_cv_path_orig_target_cc+:} false; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973 case $orig_target_cc in
11974 [\\/]* | ?:[\\/]*)
11975 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11979 for as_dir in $PATH
11981 IFS=$as_save_IFS
11982 test -z "$as_dir" && as_dir=.
11983 for ac_exec_ext in '' $ac_executable_extensions; do
11984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11985 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11987 break 2
11989 done
11990 done
11991 IFS=$as_save_IFS
11994 esac
11996 orig_target_cc=$ac_cv_path_orig_target_cc
11997 if test -n "$orig_target_cc"; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11999 $as_echo "$orig_target_cc" >&6; }
12000 else
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12006 orig_target_cc="$orig_target_cc $ac_tool_optarg"
12009 req_avail=yes
12010 if test "$orig_target_cc" = ""; then
12011 req_avail=no
12013 if test "$orig_target_cc" = "no"; then
12014 req_avail=no
12016 if test "$req_avail" = "no"; then
12017 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12020 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12021 if test "$cross_compiling" = "yes" ; then
12022 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12023 set dummy ${target_tool_prefix}g++; ac_word=$2
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12025 $as_echo_n "checking for $ac_word... " >&6; }
12026 if ${ac_cv_path_orig_target_cxx+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 case $orig_target_cxx in
12030 [\\/]* | ?:[\\/]*)
12031 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035 for as_dir in $PATH
12037 IFS=$as_save_IFS
12038 test -z "$as_dir" && as_dir=.
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12041 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12043 break 2
12045 done
12046 done
12047 IFS=$as_save_IFS
12050 esac
12052 orig_target_cxx=$ac_cv_path_orig_target_cxx
12053 if test -n "$orig_target_cxx"; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12055 $as_echo "$orig_target_cxx" >&6; }
12056 else
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058 $as_echo "no" >&6; }
12062 else
12063 if test "$GCC" = "yes"; then
12064 aros_gcc_g++=`$CC -print-prog-name=g++`
12065 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12066 set dummy `basename $aros_gcc_g++`; ac_word=$2
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12068 $as_echo_n "checking for $ac_word... " >&6; }
12069 if ${ac_cv_path_orig_target_cxx+:} false; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072 case $orig_target_cxx in
12073 [\\/]* | ?:[\\/]*)
12074 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12078 for as_dir in `dirname $aros_gcc_g++`
12080 IFS=$as_save_IFS
12081 test -z "$as_dir" && as_dir=.
12082 for ac_exec_ext in '' $ac_executable_extensions; do
12083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12084 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12086 break 2
12088 done
12089 done
12090 IFS=$as_save_IFS
12093 esac
12095 orig_target_cxx=$ac_cv_path_orig_target_cxx
12096 if test -n "$orig_target_cxx"; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12098 $as_echo "$orig_target_cxx" >&6; }
12099 else
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101 $as_echo "no" >&6; }
12106 if test "$orig_target_cxx" = ""; then
12107 # Extract the first word of "g++", so it can be a program name with args.
12108 set dummy g++; ac_word=$2
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12110 $as_echo_n "checking for $ac_word... " >&6; }
12111 if ${ac_cv_path_orig_target_cxx+:} false; then :
12112 $as_echo_n "(cached) " >&6
12113 else
12114 case $orig_target_cxx in
12115 [\\/]* | ?:[\\/]*)
12116 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12120 for as_dir in $PATH
12122 IFS=$as_save_IFS
12123 test -z "$as_dir" && as_dir=.
12124 for ac_exec_ext in '' $ac_executable_extensions; do
12125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12126 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12128 break 2
12130 done
12131 done
12132 IFS=$as_save_IFS
12135 esac
12137 orig_target_cxx=$ac_cv_path_orig_target_cxx
12138 if test -n "$orig_target_cxx"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12140 $as_echo "$orig_target_cxx" >&6; }
12141 else
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12149 else
12150 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12151 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12152 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12154 $as_echo_n "checking for $ac_word... " >&6; }
12155 if ${ac_cv_path_orig_target_cxx+:} false; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 case $orig_target_cxx in
12159 [\\/]* | ?:[\\/]*)
12160 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12164 for as_dir in $PATH
12166 IFS=$as_save_IFS
12167 test -z "$as_dir" && as_dir=.
12168 for ac_exec_ext in '' $ac_executable_extensions; do
12169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12170 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12172 break 2
12174 done
12175 done
12176 IFS=$as_save_IFS
12179 esac
12181 orig_target_cxx=$ac_cv_path_orig_target_cxx
12182 if test -n "$orig_target_cxx"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12184 $as_echo "$orig_target_cxx" >&6; }
12185 else
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187 $as_echo "no" >&6; }
12191 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12194 req_avail=yes
12195 if test "$orig_target_cxx" = ""; then
12196 req_avail=no
12198 if test "$orig_target_cxx" = "no"; then
12199 req_avail=no
12201 if test "$req_avail" = "no"; then
12202 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12205 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12206 if test "$cross_compiling" = "yes" ; then
12207 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12208 set dummy ${target_tool_prefix}gcc; ac_word=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210 $as_echo_n "checking for $ac_word... " >&6; }
12211 if ${ac_cv_path_orig_target_ld+:} false; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 case $orig_target_ld in
12215 [\\/]* | ?:[\\/]*)
12216 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $PATH
12222 IFS=$as_save_IFS
12223 test -z "$as_dir" && as_dir=.
12224 for ac_exec_ext in '' $ac_executable_extensions; do
12225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12226 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228 break 2
12230 done
12231 done
12232 IFS=$as_save_IFS
12235 esac
12237 orig_target_ld=$ac_cv_path_orig_target_ld
12238 if test -n "$orig_target_ld"; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12240 $as_echo "$orig_target_ld" >&6; }
12241 else
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243 $as_echo "no" >&6; }
12247 else
12248 if test "$GCC" = "yes"; then
12249 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12250 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12251 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12253 $as_echo_n "checking for $ac_word... " >&6; }
12254 if ${ac_cv_path_orig_target_ld+:} false; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 case $orig_target_ld in
12258 [\\/]* | ?:[\\/]*)
12259 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in `dirname $aros_gcc_gcc`
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12269 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 break 2
12273 done
12274 done
12275 IFS=$as_save_IFS
12278 esac
12280 orig_target_ld=$ac_cv_path_orig_target_ld
12281 if test -n "$orig_target_ld"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12283 $as_echo "$orig_target_ld" >&6; }
12284 else
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12291 if test "$orig_target_ld" = ""; then
12292 # Extract the first word of "gcc", so it can be a program name with args.
12293 set dummy gcc; ac_word=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295 $as_echo_n "checking for $ac_word... " >&6; }
12296 if ${ac_cv_path_orig_target_ld+:} false; then :
12297 $as_echo_n "(cached) " >&6
12298 else
12299 case $orig_target_ld in
12300 [\\/]* | ?:[\\/]*)
12301 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12305 for as_dir in $PATH
12307 IFS=$as_save_IFS
12308 test -z "$as_dir" && as_dir=.
12309 for ac_exec_ext in '' $ac_executable_extensions; do
12310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12311 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12313 break 2
12315 done
12316 done
12317 IFS=$as_save_IFS
12320 esac
12322 orig_target_ld=$ac_cv_path_orig_target_ld
12323 if test -n "$orig_target_ld"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12325 $as_echo "$orig_target_ld" >&6; }
12326 else
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12334 else
12335 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12336 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12337 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12339 $as_echo_n "checking for $ac_word... " >&6; }
12340 if ${ac_cv_path_orig_target_ld+:} false; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 case $orig_target_ld in
12344 [\\/]* | ?:[\\/]*)
12345 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349 for as_dir in $PATH
12351 IFS=$as_save_IFS
12352 test -z "$as_dir" && as_dir=.
12353 for ac_exec_ext in '' $ac_executable_extensions; do
12354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12355 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12357 break 2
12359 done
12360 done
12361 IFS=$as_save_IFS
12364 esac
12366 orig_target_ld=$ac_cv_path_orig_target_ld
12367 if test -n "$orig_target_ld"; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12369 $as_echo "$orig_target_ld" >&6; }
12370 else
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12376 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12379 req_avail=yes
12380 if test "$orig_target_ld" = ""; then
12381 req_avail=no
12383 if test "$orig_target_ld" = "no"; then
12384 req_avail=no
12386 if test "$req_avail" = "no"; then
12387 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12390 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12391 if test "$cross_compiling" = "yes" ; then
12392 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12393 set dummy ${target_tool_prefix}as; ac_word=$2
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395 $as_echo_n "checking for $ac_word... " >&6; }
12396 if ${ac_cv_path_orig_target_as+:} false; then :
12397 $as_echo_n "(cached) " >&6
12398 else
12399 case $orig_target_as in
12400 [\\/]* | ?:[\\/]*)
12401 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405 for as_dir in $PATH
12407 IFS=$as_save_IFS
12408 test -z "$as_dir" && as_dir=.
12409 for ac_exec_ext in '' $ac_executable_extensions; do
12410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12411 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12413 break 2
12415 done
12416 done
12417 IFS=$as_save_IFS
12420 esac
12422 orig_target_as=$ac_cv_path_orig_target_as
12423 if test -n "$orig_target_as"; then
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12425 $as_echo "$orig_target_as" >&6; }
12426 else
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12432 else
12433 if test "$GCC" = "yes"; then
12434 aros_gcc_as=`$CC -print-prog-name=as`
12435 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12436 set dummy `basename $aros_gcc_as`; ac_word=$2
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12438 $as_echo_n "checking for $ac_word... " >&6; }
12439 if ${ac_cv_path_orig_target_as+:} false; then :
12440 $as_echo_n "(cached) " >&6
12441 else
12442 case $orig_target_as in
12443 [\\/]* | ?:[\\/]*)
12444 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12448 for as_dir in `dirname $aros_gcc_as`
12450 IFS=$as_save_IFS
12451 test -z "$as_dir" && as_dir=.
12452 for ac_exec_ext in '' $ac_executable_extensions; do
12453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12454 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12456 break 2
12458 done
12459 done
12460 IFS=$as_save_IFS
12463 esac
12465 orig_target_as=$ac_cv_path_orig_target_as
12466 if test -n "$orig_target_as"; then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12468 $as_echo "$orig_target_as" >&6; }
12469 else
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471 $as_echo "no" >&6; }
12476 if test "$orig_target_as" = ""; then
12477 # Extract the first word of "as", so it can be a program name with args.
12478 set dummy as; ac_word=$2
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12480 $as_echo_n "checking for $ac_word... " >&6; }
12481 if ${ac_cv_path_orig_target_as+:} false; then :
12482 $as_echo_n "(cached) " >&6
12483 else
12484 case $orig_target_as in
12485 [\\/]* | ?:[\\/]*)
12486 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12490 for as_dir in $PATH
12492 IFS=$as_save_IFS
12493 test -z "$as_dir" && as_dir=.
12494 for ac_exec_ext in '' $ac_executable_extensions; do
12495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12496 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12498 break 2
12500 done
12501 done
12502 IFS=$as_save_IFS
12505 esac
12507 orig_target_as=$ac_cv_path_orig_target_as
12508 if test -n "$orig_target_as"; then
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12510 $as_echo "$orig_target_as" >&6; }
12511 else
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12519 else
12520 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12521 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12522 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12524 $as_echo_n "checking for $ac_word... " >&6; }
12525 if ${ac_cv_path_orig_target_as+:} false; then :
12526 $as_echo_n "(cached) " >&6
12527 else
12528 case $orig_target_as in
12529 [\\/]* | ?:[\\/]*)
12530 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534 for as_dir in $PATH
12536 IFS=$as_save_IFS
12537 test -z "$as_dir" && as_dir=.
12538 for ac_exec_ext in '' $ac_executable_extensions; do
12539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12540 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542 break 2
12544 done
12545 done
12546 IFS=$as_save_IFS
12549 esac
12551 orig_target_as=$ac_cv_path_orig_target_as
12552 if test -n "$orig_target_as"; then
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12554 $as_echo "$orig_target_as" >&6; }
12555 else
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557 $as_echo "no" >&6; }
12561 orig_target_as="$orig_target_as $ac_tool_optarg"
12564 req_avail=yes
12565 if test "$orig_target_as" = ""; then
12566 req_avail=no
12568 if test "$orig_target_as" = "no"; then
12569 req_avail=no
12571 if test "$req_avail" = "no"; then
12572 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12575 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12576 if test "$cross_compiling" = "yes" ; then
12577 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12578 set dummy ${target_tool_prefix}ar; ac_word=$2
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580 $as_echo_n "checking for $ac_word... " >&6; }
12581 if ${ac_cv_path_orig_target_ar+:} false; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 case $orig_target_ar in
12585 [\\/]* | ?:[\\/]*)
12586 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590 for as_dir in $PATH
12592 IFS=$as_save_IFS
12593 test -z "$as_dir" && as_dir=.
12594 for ac_exec_ext in '' $ac_executable_extensions; do
12595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12596 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598 break 2
12600 done
12601 done
12602 IFS=$as_save_IFS
12605 esac
12607 orig_target_ar=$ac_cv_path_orig_target_ar
12608 if test -n "$orig_target_ar"; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12610 $as_echo "$orig_target_ar" >&6; }
12611 else
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613 $as_echo "no" >&6; }
12617 else
12618 if test "$GCC" = "yes"; then
12619 aros_gcc_ar=`$CC -print-prog-name=ar`
12620 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12621 set dummy `basename $aros_gcc_ar`; ac_word=$2
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12623 $as_echo_n "checking for $ac_word... " >&6; }
12624 if ${ac_cv_path_orig_target_ar+:} false; then :
12625 $as_echo_n "(cached) " >&6
12626 else
12627 case $orig_target_ar in
12628 [\\/]* | ?:[\\/]*)
12629 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12633 for as_dir in `dirname $aros_gcc_ar`
12635 IFS=$as_save_IFS
12636 test -z "$as_dir" && as_dir=.
12637 for ac_exec_ext in '' $ac_executable_extensions; do
12638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12639 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12641 break 2
12643 done
12644 done
12645 IFS=$as_save_IFS
12648 esac
12650 orig_target_ar=$ac_cv_path_orig_target_ar
12651 if test -n "$orig_target_ar"; then
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12653 $as_echo "$orig_target_ar" >&6; }
12654 else
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656 $as_echo "no" >&6; }
12661 if test "$orig_target_ar" = ""; then
12662 # Extract the first word of "ar", so it can be a program name with args.
12663 set dummy ar; ac_word=$2
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12665 $as_echo_n "checking for $ac_word... " >&6; }
12666 if ${ac_cv_path_orig_target_ar+:} false; then :
12667 $as_echo_n "(cached) " >&6
12668 else
12669 case $orig_target_ar in
12670 [\\/]* | ?:[\\/]*)
12671 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675 for as_dir in $PATH
12677 IFS=$as_save_IFS
12678 test -z "$as_dir" && as_dir=.
12679 for ac_exec_ext in '' $ac_executable_extensions; do
12680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12681 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12683 break 2
12685 done
12686 done
12687 IFS=$as_save_IFS
12690 esac
12692 orig_target_ar=$ac_cv_path_orig_target_ar
12693 if test -n "$orig_target_ar"; then
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12695 $as_echo "$orig_target_ar" >&6; }
12696 else
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698 $as_echo "no" >&6; }
12704 else
12705 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12706 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12707 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12709 $as_echo_n "checking for $ac_word... " >&6; }
12710 if ${ac_cv_path_orig_target_ar+:} false; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713 case $orig_target_ar in
12714 [\\/]* | ?:[\\/]*)
12715 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12719 for as_dir in $PATH
12721 IFS=$as_save_IFS
12722 test -z "$as_dir" && as_dir=.
12723 for ac_exec_ext in '' $ac_executable_extensions; do
12724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12725 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12727 break 2
12729 done
12730 done
12731 IFS=$as_save_IFS
12734 esac
12736 orig_target_ar=$ac_cv_path_orig_target_ar
12737 if test -n "$orig_target_ar"; then
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12739 $as_echo "$orig_target_ar" >&6; }
12740 else
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12746 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12749 req_avail=yes
12750 if test "$orig_target_ar" = ""; then
12751 req_avail=no
12753 if test "$orig_target_ar" = "no"; then
12754 req_avail=no
12756 if test "$req_avail" = "no"; then
12757 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12760 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12761 if test "$cross_compiling" = "yes" ; then
12762 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12763 set dummy ${target_tool_prefix}ar; ac_word=$2
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765 $as_echo_n "checking for $ac_word... " >&6; }
12766 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 case $orig_target_ranlib in
12770 [\\/]* | ?:[\\/]*)
12771 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775 for as_dir in $PATH
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
12780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12781 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12785 done
12786 done
12787 IFS=$as_save_IFS
12790 esac
12792 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12793 if test -n "$orig_target_ranlib"; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12795 $as_echo "$orig_target_ranlib" >&6; }
12796 else
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798 $as_echo "no" >&6; }
12802 else
12803 if test "$GCC" = "yes"; then
12804 aros_gcc_ar=`$CC -print-prog-name=ar`
12805 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12806 set dummy `basename $aros_gcc_ar`; ac_word=$2
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808 $as_echo_n "checking for $ac_word... " >&6; }
12809 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12812 case $orig_target_ranlib in
12813 [\\/]* | ?:[\\/]*)
12814 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in `dirname $aros_gcc_ar`
12820 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12824 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12826 break 2
12828 done
12829 done
12830 IFS=$as_save_IFS
12833 esac
12835 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12836 if test -n "$orig_target_ranlib"; then
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12838 $as_echo "$orig_target_ranlib" >&6; }
12839 else
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841 $as_echo "no" >&6; }
12846 if test "$orig_target_ranlib" = ""; then
12847 # Extract the first word of "ar", so it can be a program name with args.
12848 set dummy ar; ac_word=$2
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850 $as_echo_n "checking for $ac_word... " >&6; }
12851 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12852 $as_echo_n "(cached) " >&6
12853 else
12854 case $orig_target_ranlib in
12855 [\\/]* | ?:[\\/]*)
12856 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12862 IFS=$as_save_IFS
12863 test -z "$as_dir" && as_dir=.
12864 for ac_exec_ext in '' $ac_executable_extensions; do
12865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12866 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868 break 2
12870 done
12871 done
12872 IFS=$as_save_IFS
12875 esac
12877 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12878 if test -n "$orig_target_ranlib"; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12880 $as_echo "$orig_target_ranlib" >&6; }
12881 else
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12889 else
12890 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12891 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12892 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12894 $as_echo_n "checking for $ac_word... " >&6; }
12895 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12896 $as_echo_n "(cached) " >&6
12897 else
12898 case $orig_target_ranlib in
12899 [\\/]* | ?:[\\/]*)
12900 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12904 for as_dir in $PATH
12906 IFS=$as_save_IFS
12907 test -z "$as_dir" && as_dir=.
12908 for ac_exec_ext in '' $ac_executable_extensions; do
12909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12910 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12912 break 2
12914 done
12915 done
12916 IFS=$as_save_IFS
12919 esac
12921 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12922 if test -n "$orig_target_ranlib"; then
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12924 $as_echo "$orig_target_ranlib" >&6; }
12925 else
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927 $as_echo "no" >&6; }
12931 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12934 req_avail=yes
12935 if test "$orig_target_ranlib" = ""; then
12936 req_avail=no
12938 if test "$orig_target_ranlib" = "no"; then
12939 req_avail=no
12941 if test "$req_avail" = "no"; then
12942 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12945 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12946 if test "$cross_compiling" = "yes" ; then
12947 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12948 set dummy ${target_tool_prefix}nm; ac_word=$2
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12950 $as_echo_n "checking for $ac_word... " >&6; }
12951 if ${ac_cv_path_orig_target_nm+:} false; then :
12952 $as_echo_n "(cached) " >&6
12953 else
12954 case $orig_target_nm in
12955 [\\/]* | ?:[\\/]*)
12956 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12962 IFS=$as_save_IFS
12963 test -z "$as_dir" && as_dir=.
12964 for ac_exec_ext in '' $ac_executable_extensions; do
12965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12966 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12968 break 2
12970 done
12971 done
12972 IFS=$as_save_IFS
12975 esac
12977 orig_target_nm=$ac_cv_path_orig_target_nm
12978 if test -n "$orig_target_nm"; then
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12980 $as_echo "$orig_target_nm" >&6; }
12981 else
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12987 else
12988 if test "$GCC" = "yes"; then
12989 aros_gcc_nm=`$CC -print-prog-name=nm`
12990 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12991 set dummy `basename $aros_gcc_nm`; ac_word=$2
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12993 $as_echo_n "checking for $ac_word... " >&6; }
12994 if ${ac_cv_path_orig_target_nm+:} false; then :
12995 $as_echo_n "(cached) " >&6
12996 else
12997 case $orig_target_nm in
12998 [\\/]* | ?:[\\/]*)
12999 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13003 for as_dir in `dirname $aros_gcc_nm`
13005 IFS=$as_save_IFS
13006 test -z "$as_dir" && as_dir=.
13007 for ac_exec_ext in '' $ac_executable_extensions; do
13008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13009 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13011 break 2
13013 done
13014 done
13015 IFS=$as_save_IFS
13018 esac
13020 orig_target_nm=$ac_cv_path_orig_target_nm
13021 if test -n "$orig_target_nm"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13023 $as_echo "$orig_target_nm" >&6; }
13024 else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13031 if test "$orig_target_nm" = ""; then
13032 # Extract the first word of "nm", so it can be a program name with args.
13033 set dummy nm; ac_word=$2
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035 $as_echo_n "checking for $ac_word... " >&6; }
13036 if ${ac_cv_path_orig_target_nm+:} false; then :
13037 $as_echo_n "(cached) " >&6
13038 else
13039 case $orig_target_nm in
13040 [\\/]* | ?:[\\/]*)
13041 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045 for as_dir in $PATH
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
13049 for ac_exec_ext in '' $ac_executable_extensions; do
13050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13051 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053 break 2
13055 done
13056 done
13057 IFS=$as_save_IFS
13060 esac
13062 orig_target_nm=$ac_cv_path_orig_target_nm
13063 if test -n "$orig_target_nm"; then
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13065 $as_echo "$orig_target_nm" >&6; }
13066 else
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068 $as_echo "no" >&6; }
13074 else
13075 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13076 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13077 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13079 $as_echo_n "checking for $ac_word... " >&6; }
13080 if ${ac_cv_path_orig_target_nm+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 case $orig_target_nm in
13084 [\\/]* | ?:[\\/]*)
13085 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 for as_dir in $PATH
13091 IFS=$as_save_IFS
13092 test -z "$as_dir" && as_dir=.
13093 for ac_exec_ext in '' $ac_executable_extensions; do
13094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13095 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097 break 2
13099 done
13100 done
13101 IFS=$as_save_IFS
13104 esac
13106 orig_target_nm=$ac_cv_path_orig_target_nm
13107 if test -n "$orig_target_nm"; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13109 $as_echo "$orig_target_nm" >&6; }
13110 else
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112 $as_echo "no" >&6; }
13116 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13119 req_avail=yes
13120 if test "$orig_target_nm" = ""; then
13121 req_avail=no
13123 if test "$orig_target_nm" = "no"; then
13124 req_avail=no
13126 if test "$req_avail" = "no"; then
13127 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13130 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13131 if test "$cross_compiling" = "yes" ; then
13132 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13133 set dummy ${target_tool_prefix}strip; ac_word=$2
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13135 $as_echo_n "checking for $ac_word... " >&6; }
13136 if ${ac_cv_path_orig_target_strip+:} false; then :
13137 $as_echo_n "(cached) " >&6
13138 else
13139 case $orig_target_strip in
13140 [\\/]* | ?:[\\/]*)
13141 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13147 IFS=$as_save_IFS
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13151 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153 break 2
13155 done
13156 done
13157 IFS=$as_save_IFS
13160 esac
13162 orig_target_strip=$ac_cv_path_orig_target_strip
13163 if test -n "$orig_target_strip"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13165 $as_echo "$orig_target_strip" >&6; }
13166 else
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13172 else
13173 if test "$GCC" = "yes"; then
13174 aros_gcc_strip=`$CC -print-prog-name=strip`
13175 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13176 set dummy `basename $aros_gcc_strip`; ac_word=$2
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178 $as_echo_n "checking for $ac_word... " >&6; }
13179 if ${ac_cv_path_orig_target_strip+:} false; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 case $orig_target_strip in
13183 [\\/]* | ?:[\\/]*)
13184 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188 for as_dir in `dirname $aros_gcc_strip`
13190 IFS=$as_save_IFS
13191 test -z "$as_dir" && as_dir=.
13192 for ac_exec_ext in '' $ac_executable_extensions; do
13193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13194 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13196 break 2
13198 done
13199 done
13200 IFS=$as_save_IFS
13203 esac
13205 orig_target_strip=$ac_cv_path_orig_target_strip
13206 if test -n "$orig_target_strip"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13208 $as_echo "$orig_target_strip" >&6; }
13209 else
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13216 if test "$orig_target_strip" = ""; then
13217 # Extract the first word of "strip", so it can be a program name with args.
13218 set dummy strip; ac_word=$2
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13220 $as_echo_n "checking for $ac_word... " >&6; }
13221 if ${ac_cv_path_orig_target_strip+:} false; then :
13222 $as_echo_n "(cached) " >&6
13223 else
13224 case $orig_target_strip in
13225 [\\/]* | ?:[\\/]*)
13226 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13230 for as_dir in $PATH
13232 IFS=$as_save_IFS
13233 test -z "$as_dir" && as_dir=.
13234 for ac_exec_ext in '' $ac_executable_extensions; do
13235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13236 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13238 break 2
13240 done
13241 done
13242 IFS=$as_save_IFS
13245 esac
13247 orig_target_strip=$ac_cv_path_orig_target_strip
13248 if test -n "$orig_target_strip"; then
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13250 $as_echo "$orig_target_strip" >&6; }
13251 else
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13259 else
13260 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13261 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13262 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264 $as_echo_n "checking for $ac_word... " >&6; }
13265 if ${ac_cv_path_orig_target_strip+:} false; then :
13266 $as_echo_n "(cached) " >&6
13267 else
13268 case $orig_target_strip in
13269 [\\/]* | ?:[\\/]*)
13270 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13280 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282 break 2
13284 done
13285 done
13286 IFS=$as_save_IFS
13289 esac
13291 orig_target_strip=$ac_cv_path_orig_target_strip
13292 if test -n "$orig_target_strip"; then
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13294 $as_echo "$orig_target_strip" >&6; }
13295 else
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297 $as_echo "no" >&6; }
13301 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13304 req_avail=yes
13305 if test "$orig_target_strip" = ""; then
13306 req_avail=no
13308 if test "$orig_target_strip" = "no"; then
13309 req_avail=no
13311 if test "$req_avail" = "no"; then
13312 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13315 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13316 if test "$cross_compiling" = "yes" ; then
13317 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13318 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320 $as_echo_n "checking for $ac_word... " >&6; }
13321 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13322 $as_echo_n "(cached) " >&6
13323 else
13324 case $orig_target_objcopy in
13325 [\\/]* | ?:[\\/]*)
13326 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330 for as_dir in $PATH
13332 IFS=$as_save_IFS
13333 test -z "$as_dir" && as_dir=.
13334 for ac_exec_ext in '' $ac_executable_extensions; do
13335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13336 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13338 break 2
13340 done
13341 done
13342 IFS=$as_save_IFS
13345 esac
13347 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13348 if test -n "$orig_target_objcopy"; then
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13350 $as_echo "$orig_target_objcopy" >&6; }
13351 else
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353 $as_echo "no" >&6; }
13357 else
13358 if test "$GCC" = "yes"; then
13359 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13360 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13361 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13363 $as_echo_n "checking for $ac_word... " >&6; }
13364 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13365 $as_echo_n "(cached) " >&6
13366 else
13367 case $orig_target_objcopy in
13368 [\\/]* | ?:[\\/]*)
13369 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373 for as_dir in `dirname $aros_gcc_objcopy`
13375 IFS=$as_save_IFS
13376 test -z "$as_dir" && as_dir=.
13377 for ac_exec_ext in '' $ac_executable_extensions; do
13378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13379 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13381 break 2
13383 done
13384 done
13385 IFS=$as_save_IFS
13388 esac
13390 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13391 if test -n "$orig_target_objcopy"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13393 $as_echo "$orig_target_objcopy" >&6; }
13394 else
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 $as_echo "no" >&6; }
13401 if test "$orig_target_objcopy" = ""; then
13402 # Extract the first word of "objcopy", so it can be a program name with args.
13403 set dummy objcopy; ac_word=$2
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13405 $as_echo_n "checking for $ac_word... " >&6; }
13406 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13407 $as_echo_n "(cached) " >&6
13408 else
13409 case $orig_target_objcopy in
13410 [\\/]* | ?:[\\/]*)
13411 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415 for as_dir in $PATH
13417 IFS=$as_save_IFS
13418 test -z "$as_dir" && as_dir=.
13419 for ac_exec_ext in '' $ac_executable_extensions; do
13420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13421 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13423 break 2
13425 done
13426 done
13427 IFS=$as_save_IFS
13430 esac
13432 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13433 if test -n "$orig_target_objcopy"; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13435 $as_echo "$orig_target_objcopy" >&6; }
13436 else
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438 $as_echo "no" >&6; }
13444 else
13445 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13446 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13447 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449 $as_echo_n "checking for $ac_word... " >&6; }
13450 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 case $orig_target_objcopy in
13454 [\\/]* | ?:[\\/]*)
13455 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459 for as_dir in $PATH
13461 IFS=$as_save_IFS
13462 test -z "$as_dir" && as_dir=.
13463 for ac_exec_ext in '' $ac_executable_extensions; do
13464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13465 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13467 break 2
13469 done
13470 done
13471 IFS=$as_save_IFS
13474 esac
13476 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13477 if test -n "$orig_target_objcopy"; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13479 $as_echo "$orig_target_objcopy" >&6; }
13480 else
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482 $as_echo "no" >&6; }
13486 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13489 req_avail=yes
13490 if test "$orig_target_objcopy" = ""; then
13491 req_avail=no
13493 if test "$orig_target_objcopy" = "no"; then
13494 req_avail=no
13496 if test "$req_avail" = "no"; then
13497 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13500 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13501 if test "$cross_compiling" = "yes" ; then
13502 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13503 set dummy ${target_tool_prefix}objdump; ac_word=$2
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13505 $as_echo_n "checking for $ac_word... " >&6; }
13506 if ${ac_cv_path_orig_target_objdump+:} false; then :
13507 $as_echo_n "(cached) " >&6
13508 else
13509 case $orig_target_objdump in
13510 [\\/]* | ?:[\\/]*)
13511 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13515 for as_dir in $PATH
13517 IFS=$as_save_IFS
13518 test -z "$as_dir" && as_dir=.
13519 for ac_exec_ext in '' $ac_executable_extensions; do
13520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13521 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13523 break 2
13525 done
13526 done
13527 IFS=$as_save_IFS
13530 esac
13532 orig_target_objdump=$ac_cv_path_orig_target_objdump
13533 if test -n "$orig_target_objdump"; then
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13535 $as_echo "$orig_target_objdump" >&6; }
13536 else
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538 $as_echo "no" >&6; }
13542 else
13543 if test "$GCC" = "yes"; then
13544 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13545 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13546 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13548 $as_echo_n "checking for $ac_word... " >&6; }
13549 if ${ac_cv_path_orig_target_objdump+:} false; then :
13550 $as_echo_n "(cached) " >&6
13551 else
13552 case $orig_target_objdump in
13553 [\\/]* | ?:[\\/]*)
13554 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13558 for as_dir in `dirname $aros_gcc_objdump`
13560 IFS=$as_save_IFS
13561 test -z "$as_dir" && as_dir=.
13562 for ac_exec_ext in '' $ac_executable_extensions; do
13563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13564 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13566 break 2
13568 done
13569 done
13570 IFS=$as_save_IFS
13573 esac
13575 orig_target_objdump=$ac_cv_path_orig_target_objdump
13576 if test -n "$orig_target_objdump"; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13578 $as_echo "$orig_target_objdump" >&6; }
13579 else
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581 $as_echo "no" >&6; }
13586 if test "$orig_target_objdump" = ""; then
13587 # Extract the first word of "objdump", so it can be a program name with args.
13588 set dummy objdump; ac_word=$2
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13590 $as_echo_n "checking for $ac_word... " >&6; }
13591 if ${ac_cv_path_orig_target_objdump+:} false; then :
13592 $as_echo_n "(cached) " >&6
13593 else
13594 case $orig_target_objdump in
13595 [\\/]* | ?:[\\/]*)
13596 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13600 for as_dir in $PATH
13602 IFS=$as_save_IFS
13603 test -z "$as_dir" && as_dir=.
13604 for ac_exec_ext in '' $ac_executable_extensions; do
13605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13606 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13608 break 2
13610 done
13611 done
13612 IFS=$as_save_IFS
13615 esac
13617 orig_target_objdump=$ac_cv_path_orig_target_objdump
13618 if test -n "$orig_target_objdump"; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13620 $as_echo "$orig_target_objdump" >&6; }
13621 else
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13623 $as_echo "no" >&6; }
13629 else
13630 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13631 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13632 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13634 $as_echo_n "checking for $ac_word... " >&6; }
13635 if ${ac_cv_path_orig_target_objdump+:} false; then :
13636 $as_echo_n "(cached) " >&6
13637 else
13638 case $orig_target_objdump in
13639 [\\/]* | ?:[\\/]*)
13640 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13644 for as_dir in $PATH
13646 IFS=$as_save_IFS
13647 test -z "$as_dir" && as_dir=.
13648 for ac_exec_ext in '' $ac_executable_extensions; do
13649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13650 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13652 break 2
13654 done
13655 done
13656 IFS=$as_save_IFS
13659 esac
13661 orig_target_objdump=$ac_cv_path_orig_target_objdump
13662 if test -n "$orig_target_objdump"; then
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13664 $as_echo "$orig_target_objdump" >&6; }
13665 else
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667 $as_echo "no" >&6; }
13671 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13674 req_avail=yes
13675 if test "$orig_target_objdump" = ""; then
13676 req_avail=no
13678 if test "$orig_target_objdump" = "no"; then
13679 req_avail=no
13681 if test "$req_avail" = "no"; then
13682 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13686 if test "$kernel_tool_prefix" = "none" ; then
13687 # No kernel tools specified
13688 # Assume target tools == kernel tools with ELF wrapper
13689 aros_kernel_cc=$orig_target_cc
13690 aros_kernel_cxx=$orig_target_cxx
13691 aros_kernel_cpp=$orig_target_cpp
13692 aros_kernel_ld=$orig_target_ld
13693 aros_kernel_as=$orig_target_as
13694 aros_kernel_ar=$orig_target_ar
13695 aros_kernel_ranlib=$orig_target_ranlib
13696 aros_kernel_nm=$orig_target_nm
13697 aros_kernel_strip=$orig_target_strip
13698 aros_kernel_objcopy=$orig_target_objcopy
13699 aros_kernel_objdump=$orig_target_objdump
13700 use_kernel_cc_wrapper=yes
13703 # At this point, all aros_kernel_* and aros_target_*
13704 # tools should be set up correctly
13706 CC="$aros_kernel_cc $kernel_tool_flags"
13707 CPP="$aros_kernel_cpp"
13709 #-----------------------------------------------------------------------------
13711 # Find all the tools we need to compile. This could be cross-compiling
13712 # though! If that is the case we use the GNU form of the target and
13713 # simply add this to the front of the binary name. This is rather simple,
13714 # but it should work under most circumstances.
13716 # The default tools are to use the same as the host, but only if the
13717 # host and target CPU are the same. With GCC this is normally enough.
13720 aros_cc_pre=""
13721 aros_shared_ld="$aros_host_ld"
13723 aros_target_mkdep="$aros_host_mkdep"
13725 # The default tools executables to be linked to.
13726 if test "$rescomp" != ""; then
13727 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13728 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13730 $as_echo_n "checking for $ac_word... " >&6; }
13731 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13732 $as_echo_n "(cached) " >&6
13733 else
13734 case $aros_kernel_rescomp in
13735 [\\/]* | ?:[\\/]*)
13736 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13740 for as_dir in $PATH
13742 IFS=$as_save_IFS
13743 test -z "$as_dir" && as_dir=.
13744 for ac_exec_ext in '' $ac_executable_extensions; do
13745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13746 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13748 break 2
13750 done
13751 done
13752 IFS=$as_save_IFS
13755 esac
13757 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13758 if test -n "$aros_kernel_rescomp"; then
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13760 $as_echo "$aros_kernel_rescomp" >&6; }
13761 else
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13763 $as_echo "no" >&6; }
13767 req_avail=yes
13768 if test "$aros_kernel_rescomp" = ""; then
13769 req_avail=no
13771 if test "$aros_kernel_rescomp" = "no"; then
13772 req_avail=no
13774 if test "$req_avail" = "no"; then
13775 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13779 # Set up the sources for the symlink farm
13780 if test "$crosstools" = "yes"; then
13781 crosstools_target=tools-crosstools
13784 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13785 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13787 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13788 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13789 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13790 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13791 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13792 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13793 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13795 # aros_cc_pre is a variable that is added to the front of the compiler name
13796 # in the generated aros-gcc shell script. We need this to enable the cache
13797 # to work across cleaned builds. Also, support DISTCC using the correct
13798 # environment variable.
13801 if test "x${DISTCC}" != "x" ; then
13802 if test "x${CCACHE}" != "x" ; then
13803 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13804 else
13805 aros_cc_pre="${DISTCC} "
13807 else
13808 if test "x${CCACHE}" != "x" ; then
13809 aros_cc_pre="${CCACHE} "
13813 aros_target_nostdinc_cflags=-nostdinc
13815 aros_target_nostartup_ldflags=-nostartfiles
13817 aros_target_nix_ldflags=-nix
13819 aros_target_detach_ldflags=-detach
13821 aros_target_nostdlib_ldflags=-nostdlib
13824 # Target tools
13826 if test "$aros_target_toolchain" != "yes"; then
13827 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13828 if test "$GCC" = "yes"; then
13829 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13831 else
13832 # We do not know which c compiler version we are going to build and what we need to know
13833 # here is different for different versions so this will be set later during the
13834 # build of crosstools.
13835 if test "$aros_toolchain" = "gnu" ; then
13836 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13837 elif test "$aros_toolchain" = "llvm" ; then
13838 prefix="$AROS_CROSSTOOLSDIR/bin/"
13840 aros_target_cc_path=@aros_target_cc_path@
13842 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13843 aros_target_cc="${prefix}${toolchain_c_compiler}"
13844 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13845 aros_target_as="${prefix}${toolchain_as}"
13846 if test "${use_ld_wrapper}" = "yes"; then
13847 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13848 else
13849 aros_target_ld="${prefix}${toolchain_ld}"
13851 aros_toolchain_ld="${prefix}${toolchain_ld}"
13853 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13854 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13855 aros_target_objdump="${prefix}${toolchain_objdump}"
13856 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13857 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13858 aros_target_strip="${prefix}${toolchain_strip}"
13859 aros_plain_nm="${prefix}${toolchain_nm}"
13860 aros_plain_ar="${prefix}${toolchain_ar}"
13862 # Check whether --enable-includes was given.
13863 if test "${enable_includes+set}" = set; then :
13864 enableval=$enable_includes; aros_target_incl=$enable_includes
13865 else
13866 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13870 if test "$aros_kernel_includes" = ""; then
13871 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13872 aros_kernel_includes="-isystem $aros_target_incl"
13876 if test "$aros_kernel_includes" != "" ; then
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13878 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13879 if test "$aros_kernel_cc_includes" = "" ; then
13880 # Try to guess where the directory is.
13881 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13882 if test -d $aros_kernel_cc_includes; then
13883 # Check if there is also an include-fixed directory and add it
13884 # to kernel compiler's include path as it may contain some of
13885 # the headers we need.
13886 if test -d "$aros_kernel_cc_includes"-fixed; then
13887 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13889 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13890 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13891 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13893 else
13894 # The directory doesn't exist, we need to do some more work.
13895 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13897 # These are the headers we're looking for.
13898 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13899 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13900 zutil.h stdint.h"
13902 dirs=
13903 for h in $headers; do
13904 # Which other headers are needed by each of the above?
13905 deps=$(echo "#include <$h>" | \
13906 $aros_kernel_cc -E -M - 2>/dev/null | \
13907 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13909 # Copy all the needed headers to a directory beneath gendir.
13910 for d in $deps; do
13911 h=$(basename $d)
13912 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13913 sed -n "s,^.*/include\(/.*\),\1,p")
13914 ! test -d $dir && mkdir -p $dir
13915 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13916 done
13917 done
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13921 $as_echo "$aros_kernel_cc_includes" >&6; }
13922 # Adding -nostdinc to kernel includes as they are always used together.
13923 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13926 if test "$crosstools" != "yes"; then
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13928 $as_echo_n "checking for the target compiler's include path... " >&6; }
13929 if test "$aros_target_cc_includes" = "" ; then
13930 #try to guess where the directory is
13931 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13932 if ! test -d $aros_target_cc_includes; then
13933 #the directory doesn't exist, we need to do some more work
13934 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13936 #these are the headers we're looking for
13937 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13938 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13939 zutil.h"
13941 dirs=
13942 for h in $headers; do
13943 #which other headers each of the above headers needs?
13944 deps=$(echo "#include <$h>" | \
13945 $orig_target_cc -E -M - 2>/dev/null | \
13946 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13948 #copy all the needed headers to a directory beneath gendir
13949 for d in $deps; do
13950 h=$(basename $d)
13951 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13952 sed -n "s,^.*/include\(/.*\),\1,p")
13953 ! test -d $dir && mkdir -p $dir
13954 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13955 done
13956 done
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13960 $as_echo "$aros_target_cc_includes" >&6; }
13961 else
13962 # We do not know which c compiler version we are going to build and what we need to know
13963 # here is different for different versions so this will be set later during the
13964 # build of crosstools.
13965 aros_target_cc_includes=@aros_target_cc_includes@
13969 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13970 # On GCC >= 4.0 -iquote should be used
13973 save_cc="$CC"
13974 save_cflags="$CFLAGS"
13975 CFLAGS="-iquote."
13976 kernel_cflags_iquote=$host_cflags_iquote
13977 kernel_cflags_iquote_end=$host_cflags_iquote_end
13978 if test "x-$cross_compiling" = "x-yes"; then
13979 CC="$aros_kernel_cc"
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13981 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13982 if test "x-$crosstools" != "x-yes"; then
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13987 main ()
13991 return 0;
13993 _ACEOF
13994 if ac_fn_c_try_compile "$LINENO"; then :
13995 use_no_stack_protector="yes"
13996 else
13997 use_no_stack_protector="no"
13999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000 else
14001 # we do know it is supported for the smallest version of gcc we are going to build
14002 # we assume it's also supported by later versions
14003 use_no_stack_protector=yes
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14006 $as_echo "$use_no_stack_protector" >&6; }
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14008 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14009 if test "x-$crosstools" != "x-yes"; then
14010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011 /* end confdefs.h. */
14014 main ()
14018 return 0;
14020 _ACEOF
14021 if ac_fn_c_try_compile "$LINENO"; then :
14022 has_iquote="yes"
14023 else
14024 has_iquote="no"
14026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14027 else
14028 # we do know it is supported for the smallest version of gcc we are going to build
14029 # we assume it's also supported by later versions
14030 has_iquote=yes
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14033 $as_echo "$has_iquote" >&6; }
14034 if test "x-$has_iquote" = "x-yes" ; then
14035 kernel_cflags_iquote=-iquote
14036 kernel_cflags_iquote_end=
14037 else
14038 kernel_cflags_iquote=-I
14039 kernel_cflags_iquote_end=-I-
14042 if test "x-$use_no_stack_protector" = "x-yes" ; then
14043 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
14046 #-----------------------------------------------------------------------------
14048 # Check if we can explicitly choose older version of symbol hashing
14050 CFLAGS="save_cflags -Wl,--hash-style=sysv"
14051 CC="$aros_kernel_cc"
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14053 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14058 main ()
14062 return 0;
14064 _ACEOF
14065 if ac_fn_c_try_link "$LINENO"; then :
14066 use_hash_style="yes"
14067 else
14068 use_hash_style="no"
14070 rm -f core conftest.err conftest.$ac_objext \
14071 conftest$ac_exeext conftest.$ac_ext
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14073 $as_echo "$use_hash_style" >&6; }
14074 if test "x-$use_hash_style" = "x-yes" ; then
14075 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
14077 CC="$save_cc"
14078 CFLAGS="$save_cflags"
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14087 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14089 # Check whether --with-resolution was given.
14090 if test "${with_resolution+set}" = set; then :
14091 withval=$with_resolution; resolution=$withval
14092 else
14093 resolution=none
14096 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14097 if test "$resolution" = "yes" ; then
14098 resolution="none"
14100 if test "$resolution" = "no" ; then
14101 resolution="none"
14103 if test "$resolution" != "none" ; then
14104 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14105 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14106 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14109 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14110 aros_cv_nominal_width=$aros_nominal_width
14111 aros_cv_nominal_height=$aros_nominal_height
14112 aros_cv_nominal_depth=$aros_nominal_depth
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14115 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14117 # Check whether --with-serial-debug was given.
14118 if test "${with_serial_debug+set}" = set; then :
14119 withval=$with_serial_debug; serial_debug=$withval
14120 else
14121 serial_debug=none
14124 if test "$aros_serial_debug" = 0 ; then
14125 serial_debug_forced=""
14126 if test "$serial_debug" = "yes" ; then
14127 serial_debug="1"
14129 if test "$serial_debug" = "no" ; then
14130 serial_debug="none"
14132 else
14133 serial_debug_forced="(forced)"
14134 serial_debug=$aros_serial_debug
14136 if test "$serial_debug" != "none" ; then
14137 aros_serial_debug=$serial_debug
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14139 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14140 else
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14142 $as_echo "no" >&6; }
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14146 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14147 # Check whether --enable-palm_debug_hack was given.
14148 if test "${enable_palm_debug_hack+set}" = set; then :
14149 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14150 else
14151 palm_debug_hack="no"
14154 if test "$palm_debug_hack" = "yes" ; then
14155 aros_palm_debug_hack="1"
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14158 $as_echo "$palm_debug_hack" >&6; }
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14161 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14162 # Check whether --enable-usb30_code was given.
14163 if test "${enable_usb30_code+set}" = set; then :
14164 enableval=$enable_usb30_code; usb30_code="yes"
14165 else
14166 usb30_code="no"
14169 if test "$usb30_code" = "yes" ; then
14170 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14171 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14174 $as_echo "$usb30_code" >&6; }
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14177 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14178 # Check whether --enable-nesting_supervisor was given.
14179 if test "${enable_nesting_supervisor+set}" = set; then :
14180 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14181 else
14182 nesting_supervisor="no"
14185 if test "$nesting_supervisor" = "yes" ; then
14186 aros_nesting_supervisor="1"
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14189 $as_echo "$nesting_supervisor" >&6; }
14191 if test "$aros_enable_mmu" = "" ; then
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14193 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14194 # Check whether --enable-mmu was given.
14195 if test "${enable_mmu+set}" = set; then :
14196 enableval=$enable_mmu; aros_enable_mmu=$enableval
14197 else
14198 aros_enable_mmu="yes"
14201 if test "$aros_enable_mmu" = "" ; then
14202 aros_enable_mmu="yes"
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14205 $as_echo "$aros_enable_mmu" >&6; }
14207 if test "$aros_enable_mmu" = "no" ; then
14208 aros_enable_mmu="0"
14209 else
14210 aros_enable_mmu="1"
14214 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14216 if test "x-$need_dlopen" != "x-no" ; then
14217 save_libs="$LIBS"
14218 LIBS=""
14219 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14220 if test "x$ac_cv_func_dlopen" = xyes; then :
14221 have_dl="yes"
14222 else
14223 have_dl="no"
14226 if test "x-$have_dl" = "x-no" ; then
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14228 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14229 if ${ac_cv_lib_dl_dlopen+:} false; then :
14230 $as_echo_n "(cached) " >&6
14231 else
14232 ac_check_lib_save_LIBS=$LIBS
14233 LIBS="-ldl $LIBS"
14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14237 /* Override any GCC internal prototype to avoid an error.
14238 Use char because int might match the return type of a GCC
14239 builtin and then its argument prototype would still apply. */
14240 #ifdef __cplusplus
14241 extern "C"
14242 #endif
14243 char dlopen ();
14245 main ()
14247 return dlopen ();
14249 return 0;
14251 _ACEOF
14252 if ac_fn_c_try_link "$LINENO"; then :
14253 ac_cv_lib_dl_dlopen=yes
14254 else
14255 ac_cv_lib_dl_dlopen=no
14257 rm -f core conftest.err conftest.$ac_objext \
14258 conftest$ac_exeext conftest.$ac_ext
14259 LIBS=$ac_check_lib_save_LIBS
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14262 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14263 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14264 have_dl="yes"
14265 aros_host_ldflags="$aros_host_ldflags -ldl"
14266 else
14267 have_dl="no"
14271 if test "x-$have_dl" = "x-no" ; then
14272 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14274 LIBS="$save_libs"
14278 # Check whether --enable-x11_hidd was given.
14279 if test "${enable_x11_hidd+set}" = set; then :
14280 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14281 else
14282 x11_hidd="$need_x11"
14285 case "x-$x11_hidd" in
14286 x-yes|x-no|x-auto) ;;
14287 *) x11_hidd="$need_x11" ;;
14288 esac
14290 ENABLE_X11=0
14292 if test "x-$x11_hidd" != "x-no" ; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14295 $as_echo_n "checking for X... " >&6; }
14298 # Check whether --with-x was given.
14299 if test "${with_x+set}" = set; then :
14300 withval=$with_x;
14303 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14304 if test "x$with_x" = xno; then
14305 # The user explicitly disabled X.
14306 have_x=disabled
14307 else
14308 case $x_includes,$x_libraries in #(
14309 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14310 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14311 $as_echo_n "(cached) " >&6
14312 else
14313 # One or both of the vars are not set, and there is no cached value.
14314 ac_x_includes=no ac_x_libraries=no
14315 rm -f -r conftest.dir
14316 if mkdir conftest.dir; then
14317 cd conftest.dir
14318 cat >Imakefile <<'_ACEOF'
14319 incroot:
14320 @echo incroot='${INCROOT}'
14321 usrlibdir:
14322 @echo usrlibdir='${USRLIBDIR}'
14323 libdir:
14324 @echo libdir='${LIBDIR}'
14325 _ACEOF
14326 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14327 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14328 for ac_var in incroot usrlibdir libdir; do
14329 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14330 done
14331 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14332 for ac_extension in a so sl dylib la dll; do
14333 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14334 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14335 ac_im_usrlibdir=$ac_im_libdir; break
14337 done
14338 # Screen out bogus values from the imake configuration. They are
14339 # bogus both because they are the default anyway, and because
14340 # using them would break gcc on systems where it needs fixed includes.
14341 case $ac_im_incroot in
14342 /usr/include) ac_x_includes= ;;
14343 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14344 esac
14345 case $ac_im_usrlibdir in
14346 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14347 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14348 esac
14350 cd ..
14351 rm -f -r conftest.dir
14354 # Standard set of common directories for X headers.
14355 # Check X11 before X11Rn because it is often a symlink to the current release.
14356 ac_x_header_dirs='
14357 /usr/X11/include
14358 /usr/X11R7/include
14359 /usr/X11R6/include
14360 /usr/X11R5/include
14361 /usr/X11R4/include
14363 /usr/include/X11
14364 /usr/include/X11R7
14365 /usr/include/X11R6
14366 /usr/include/X11R5
14367 /usr/include/X11R4
14369 /usr/local/X11/include
14370 /usr/local/X11R7/include
14371 /usr/local/X11R6/include
14372 /usr/local/X11R5/include
14373 /usr/local/X11R4/include
14375 /usr/local/include/X11
14376 /usr/local/include/X11R7
14377 /usr/local/include/X11R6
14378 /usr/local/include/X11R5
14379 /usr/local/include/X11R4
14381 /usr/X386/include
14382 /usr/x386/include
14383 /usr/XFree86/include/X11
14385 /usr/include
14386 /usr/local/include
14387 /usr/unsupported/include
14388 /usr/athena/include
14389 /usr/local/x11r5/include
14390 /usr/lpp/Xamples/include
14392 /usr/openwin/include
14393 /usr/openwin/share/include'
14395 if test "$ac_x_includes" = no; then
14396 # Guess where to find include files, by looking for Xlib.h.
14397 # First, try using that file with no special directory specified.
14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h. */
14400 #include <X11/Xlib.h>
14401 _ACEOF
14402 if ac_fn_c_try_cpp "$LINENO"; then :
14403 # We can compile using X headers with no special include directory.
14404 ac_x_includes=
14405 else
14406 for ac_dir in $ac_x_header_dirs; do
14407 if test -r "$ac_dir/X11/Xlib.h"; then
14408 ac_x_includes=$ac_dir
14409 break
14411 done
14413 rm -f conftest.err conftest.i conftest.$ac_ext
14414 fi # $ac_x_includes = no
14416 if test "$ac_x_libraries" = no; then
14417 # Check for the libraries.
14418 # See if we find them without any special options.
14419 # Don't add to $LIBS permanently.
14420 ac_save_LIBS=$LIBS
14421 LIBS="-lX11 $LIBS"
14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14424 #include <X11/Xlib.h>
14426 main ()
14428 XrmInitialize ()
14430 return 0;
14432 _ACEOF
14433 if ac_fn_c_try_link "$LINENO"; then :
14434 LIBS=$ac_save_LIBS
14435 # We can link X programs with no special library path.
14436 ac_x_libraries=
14437 else
14438 LIBS=$ac_save_LIBS
14439 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14441 # Don't even attempt the hair of trying to link an X program!
14442 for ac_extension in a so sl dylib la dll; do
14443 if test -r "$ac_dir/libX11.$ac_extension"; then
14444 ac_x_libraries=$ac_dir
14445 break 2
14447 done
14448 done
14450 rm -f core conftest.err conftest.$ac_objext \
14451 conftest$ac_exeext conftest.$ac_ext
14452 fi # $ac_x_libraries = no
14454 case $ac_x_includes,$ac_x_libraries in #(
14455 no,* | *,no | *\'*)
14456 # Didn't find X, or a directory has "'" in its name.
14457 ac_cv_have_x="have_x=no";; #(
14459 # Record where we found X for the cache.
14460 ac_cv_have_x="have_x=yes\
14461 ac_x_includes='$ac_x_includes'\
14462 ac_x_libraries='$ac_x_libraries'"
14463 esac
14465 ;; #(
14466 *) have_x=yes;;
14467 esac
14468 eval "$ac_cv_have_x"
14469 fi # $with_x != no
14471 if test "$have_x" != yes; then
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14473 $as_echo "$have_x" >&6; }
14474 no_x=yes
14475 else
14476 # If each of the values was on the command line, it overrides each guess.
14477 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14478 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14479 # Update the cache value to reflect the command line values.
14480 ac_cv_have_x="have_x=yes\
14481 ac_x_includes='$x_includes'\
14482 ac_x_libraries='$x_libraries'"
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14484 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14488 if test -n "$x_includes"; then
14489 X_CFLAGS="$X_CFLAGS -I$x_includes"
14492 if test -n "$x_libraries"; then
14493 X_LIBS="$X_LIBS -L$x_libraries"
14496 if test "x-$no_x" = "x-yes" ; then
14498 if test "x-$x11_hidd" != "x-auto" ; then
14499 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14502 else
14503 host_x_gfx=yes
14504 ENABLE_X11=1
14506 aros_host_x11_cflags="$X_CFLAGS"
14507 aros_host_x11_ldflags="$X_LIBS -lX11"
14509 # Check whether --enable-x11_shm was given.
14510 if test "${enable_x11_shm+set}" = set; then :
14511 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14512 else
14513 x11_hidd_shm="auto"
14516 case "x-$x11_hidd_shm" in
14517 x-yes|x-no|x-auto) ;;
14518 *) x11_hidd_shm="auto" ;;
14519 esac
14521 have_xshm=no
14523 if test "x-$x11_hidd_shm" != "x-no" ; then
14525 for ac_header in sys/ipc.h
14526 do :
14527 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14528 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14529 cat >>confdefs.h <<_ACEOF
14530 #define HAVE_SYS_IPC_H 1
14531 _ACEOF
14535 done
14537 for ac_header in sys/shm.h
14538 do :
14539 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14540 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14541 cat >>confdefs.h <<_ACEOF
14542 #define HAVE_SYS_SHM_H 1
14543 _ACEOF
14547 done
14550 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14552 save_cflags="$CFLAGS"
14553 save_ldflags="$LDFLAGS"
14554 CFLAGS="$CFLAGS $X_CFLAGS"
14555 LDFLAGS="$LDFLAGS $X_LIBS"
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14557 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14558 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14559 $as_echo_n "(cached) " >&6
14560 else
14561 ac_check_lib_save_LIBS=$LIBS
14562 LIBS="-lXext $LIBS"
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14566 /* Override any GCC internal prototype to avoid an error.
14567 Use char because int might match the return type of a GCC
14568 builtin and then its argument prototype would still apply. */
14569 #ifdef __cplusplus
14570 extern "C"
14571 #endif
14572 char XShmQueryExtension ();
14574 main ()
14576 return XShmQueryExtension ();
14578 return 0;
14580 _ACEOF
14581 if ac_fn_c_try_link "$LINENO"; then :
14582 ac_cv_lib_Xext_XShmQueryExtension=yes
14583 else
14584 ac_cv_lib_Xext_XShmQueryExtension=no
14586 rm -f core conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14588 LIBS=$ac_check_lib_save_LIBS
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14591 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14592 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14593 have_xshm=yes
14596 CFLAGS="$save_cflags"
14597 LDFLAGS="$save_ldflags"
14601 if test "x-$have_xshm" = "x-yes" ; then
14602 DO_XSHM_SUPPORT="1"
14603 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14604 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14605 else
14606 DO_XSHM_SUPPORT="0"
14610 # Check whether --enable-x11_vidmode was given.
14611 if test "${enable_x11_vidmode+set}" = set; then :
14612 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14613 else
14614 x11_hidd_vidmode="auto"
14617 case "x-$x11_hidd_vidmode" in
14618 x-yes|x-no|x-auto) ;;
14619 *) x11_hidd_vidmode="auto" ;;
14620 esac
14622 have_vidmode=no
14624 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14626 save_cflags="$CFLAGS"
14627 save_ldflags="$LDFLAGS"
14628 CFLAGS="$CFLAGS $X_CFLAGS"
14629 LDFLAGS="$LDFLAGS $X_LIBS"
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14631 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14632 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14633 $as_echo_n "(cached) " >&6
14634 else
14635 ac_check_lib_save_LIBS=$LIBS
14636 LIBS="-lXxf86vm $LIBS"
14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14640 /* Override any GCC internal prototype to avoid an error.
14641 Use char because int might match the return type of a GCC
14642 builtin and then its argument prototype would still apply. */
14643 #ifdef __cplusplus
14644 extern "C"
14645 #endif
14646 char XF86VidModeQueryExtension ();
14648 main ()
14650 return XF86VidModeQueryExtension ();
14652 return 0;
14654 _ACEOF
14655 if ac_fn_c_try_link "$LINENO"; then :
14656 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14657 else
14658 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14660 rm -f core conftest.err conftest.$ac_objext \
14661 conftest$ac_exeext conftest.$ac_ext
14662 LIBS=$ac_check_lib_save_LIBS
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14665 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14666 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14667 have_vidmode=yes
14670 CFLAGS="$save_cflags"
14671 LDFLAGS="$save_ldflags"
14674 if test "x-$have_vidmode" = "x-yes" ; then
14675 DO_VIDMODE_SUPPORT="1"
14676 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14677 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14678 else
14679 DO_VIDMODE_SUPPORT="0"
14684 # Check whether --enable-sdl_hidd was given.
14685 if test "${enable_sdl_hidd+set}" = set; then :
14686 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14687 else
14688 sdl_hidd="auto"
14691 case "x-$sdl_hidd" in
14692 x-yes|x-no|x-auto) ;;
14693 *) sdl_hidd="auto" ;;
14694 esac
14696 if test "x-$sdl_hidd" != "x-no" ; then
14698 SDL_VERSION=1.2.5
14700 # Check whether --with-sdl-prefix was given.
14701 if test "${with_sdl_prefix+set}" = set; then :
14702 withval=$with_sdl_prefix; sdl_prefix="$withval"
14703 else
14704 sdl_prefix=""
14708 # Check whether --with-sdl-exec-prefix was given.
14709 if test "${with_sdl_exec_prefix+set}" = set; then :
14710 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14711 else
14712 sdl_exec_prefix=""
14715 # Check whether --enable-sdltest was given.
14716 if test "${enable_sdltest+set}" = set; then :
14717 enableval=$enable_sdltest;
14718 else
14719 enable_sdltest=yes
14723 if test x$sdl_exec_prefix != x ; then
14724 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14725 if test x${SDL_CONFIG+set} != xset ; then
14726 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14729 if test x$sdl_prefix != x ; then
14730 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14731 if test x${SDL_CONFIG+set} != xset ; then
14732 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14736 as_save_PATH="$PATH"
14737 if test "x$prefix" != xNONE; then
14738 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14740 # Extract the first word of "sdl-config", so it can be a program name with args.
14741 set dummy sdl-config; ac_word=$2
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14743 $as_echo_n "checking for $ac_word... " >&6; }
14744 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14745 $as_echo_n "(cached) " >&6
14746 else
14747 case $SDL_CONFIG in
14748 [\\/]* | ?:[\\/]*)
14749 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14753 for as_dir in $PATH
14755 IFS=$as_save_IFS
14756 test -z "$as_dir" && as_dir=.
14757 for ac_exec_ext in '' $ac_executable_extensions; do
14758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14759 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14761 break 2
14763 done
14764 done
14765 IFS=$as_save_IFS
14767 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14769 esac
14771 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14772 if test -n "$SDL_CONFIG"; then
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14774 $as_echo "$SDL_CONFIG" >&6; }
14775 else
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14777 $as_echo "no" >&6; }
14781 PATH="$as_save_PATH"
14782 min_sdl_version=$SDL_VERSION
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14784 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14785 no_sdl=""
14786 if test "$SDL_CONFIG" = "no" ; then
14787 no_sdl=yes
14788 else
14789 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14790 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14792 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14793 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14794 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14795 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14796 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14797 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14798 if test "x$enable_sdltest" = "xyes" ; then
14799 ac_save_CFLAGS="$CFLAGS"
14800 ac_save_CXXFLAGS="$CXXFLAGS"
14801 ac_save_LIBS="$LIBS"
14802 CFLAGS="$CFLAGS $SDL_CFLAGS"
14803 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14804 LIBS="$LIBS $SDL_LIBS"
14805 rm -f conf.sdltest
14806 if test "$cross_compiling" = yes; then :
14807 echo $ac_n "cross compiling; assumed OK... $ac_c"
14808 else
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14812 #include <stdio.h>
14813 #include <stdlib.h>
14814 #include <string.h>
14815 #include "SDL.h"
14817 char*
14818 my_strdup (char *str)
14820 char *new_str;
14822 if (str)
14824 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14825 strcpy (new_str, str);
14827 else
14828 new_str = NULL;
14830 return new_str;
14833 int main (int argc, char *argv[])
14835 int major, minor, micro;
14836 char *tmp_version;
14838 /* This hangs on some systems (?)
14839 system ("touch conf.sdltest");
14841 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14843 /* HP/UX 9 (%@#!) writes to sscanf strings */
14844 tmp_version = my_strdup("$min_sdl_version");
14845 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14846 printf("%s, bad version string\n", "$min_sdl_version");
14847 exit(1);
14850 if (($sdl_major_version > major) ||
14851 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14852 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14854 return 0;
14856 else
14858 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14859 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14860 printf("*** best to upgrade to the required version.\n");
14861 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14862 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14863 printf("*** config.cache before re-running configure\n");
14864 return 1;
14869 _ACEOF
14870 if ac_fn_c_try_run "$LINENO"; then :
14872 else
14873 no_sdl=yes
14875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14876 conftest.$ac_objext conftest.beam conftest.$ac_ext
14879 CFLAGS="$ac_save_CFLAGS"
14880 CXXFLAGS="$ac_save_CXXFLAGS"
14881 LIBS="$ac_save_LIBS"
14884 if test "x$no_sdl" = x ; then
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14886 $as_echo "yes" >&6; }
14887 have_sdl="yes"
14888 else
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14890 $as_echo "no" >&6; }
14891 if test "$SDL_CONFIG" = "no" ; then
14892 echo "*** The sdl-config script installed by SDL could not be found"
14893 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14894 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14895 echo "*** full path to sdl-config."
14896 else
14897 if test -f conf.sdltest ; then
14899 else
14900 echo "*** Could not run SDL test program, checking why..."
14901 CFLAGS="$CFLAGS $SDL_CFLAGS"
14902 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14903 LIBS="$LIBS $SDL_LIBS"
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14907 #include <stdio.h>
14908 #include "SDL.h"
14910 int main(int argc, char *argv[])
14911 { return 0; }
14912 #undef main
14913 #define main K_and_R_C_main
14916 main ()
14918 return 0;
14920 return 0;
14922 _ACEOF
14923 if ac_fn_c_try_link "$LINENO"; then :
14924 echo "*** The test program compiled, but did not run. This usually means"
14925 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14926 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14927 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14928 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14929 echo "*** is required on your system"
14930 echo "***"
14931 echo "*** If you have an old version installed, it is best to remove it, although"
14932 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14933 else
14934 echo "*** The test program failed to compile or link. See the file config.log for the"
14935 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14936 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14937 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14939 rm -f core conftest.err conftest.$ac_objext \
14940 conftest$ac_exeext conftest.$ac_ext
14941 CFLAGS="$ac_save_CFLAGS"
14942 CXXFLAGS="$ac_save_CXXFLAGS"
14943 LIBS="$ac_save_LIBS"
14946 SDL_CFLAGS=""
14947 SDL_LIBS=""
14948 have_sdl="no"
14952 rm -f conf.sdltest
14955 if test "x-$have_sdl" != "x-yes" ; then
14957 if test "x-$sdl_hidd" != "x-auto" ; then
14958 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14961 else
14962 host_sdl_gfx=yes
14963 aros_host_sdl_cflags=$SDL_CFLAGS
14964 aros_host_sdl_libs=$SDL_LIBS
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14972 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14973 # Check whether --enable-dbus was given.
14974 if test "${enable_dbus+set}" = set; then :
14975 enableval=$enable_dbus; dbus="yes"
14976 else
14977 dbus="no"
14980 if test "$dbus" = "yes" ; then
14981 ENABLE_DBUS=1
14982 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14983 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14984 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14985 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14986 else
14987 ENABLE_DBUS=0
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14990 $as_echo "$dbus" >&6; }
14992 if test "$use_kernel_cc_wrapper" = "yes" ; then
14993 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14996 aros_kernel_cppflags=$aros_config_cppflags
14997 aros_optimization_cflags="$optimization_level"
14998 if test "$optimization" = "default"; then
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15000 $as_echo_n "checking default optimization level to use... " >&6; }
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15002 $as_echo "$optimization_level" >&6; }
15006 # Generic
15020 # Compatability with other Amiga-like operation systems
15023 # Host related
15053 # Target Related
15133 # Hosted Graphics Related
15151 # Bootloader related
15154 # Native version related
15159 # Palm native version related
15162 # Unix/Hosted version related
15165 # MMU related
15168 # Apple iOS related
15173 # ARM default GCC target related
15180 # Android related
15185 # DBUS related
15192 #X11 related
15195 # Debug related
15201 # Collect-aros stuff: "-ius" to ignore undefined symbols
15204 # C compiler related
15209 #ObjC compiler related
15212 #Java related
15215 # USB3.0 code
15218 case "$aros_flavour" in
15219 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15220 aros_flavour="emulation" ;;
15221 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15222 aros_flavour="emulation" ;;
15223 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15224 aros_flavour="standalone";;
15225 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15226 aros_flavour="standalone";;
15227 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15228 aros_flavour="native" ;;
15229 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15230 aros_flavour="native" ;;
15231 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15232 aros_flavour="linklib" ;;
15233 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15234 aros_flavour="palmnative" ;;
15235 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15236 aros_flavour="mac68knative" ;;
15237 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15238 aros_flavour="ppcnative" ;;
15239 esac
15241 if test ! -d ${aros_inc_dir} ; then
15242 ${MKDIR} ${aros_inc_dir}
15244 if test ! -d ${aros_geninc_dir} ; then
15245 ${MKDIR} ${aros_geninc_dir}
15247 if test ! -d ${aros_hostcfg_dir} ; then
15248 ${MKDIR} ${aros_hostcfg_dir}
15250 if test ! -d ${aros_targetcfg_dir} ; then
15251 ${MKDIR} ${aros_targetcfg_dir}
15253 if test ! -d ${aros_tools_dir} ; then
15254 ${MKDIR} ${aros_tools_dir}
15256 if test ! -d ${aros_scripts_dir} ; then
15257 ${MKDIR} ${aros_scripts_dir}
15260 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15263 # Generic build tools (metamake, etc)
15264 ac_config_commands="$ac_config_commands genmf-executable-support"
15266 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"
15269 # Binutils
15270 ac_config_commands="$ac_config_commands binutils-support"
15272 if test "${use_ld_wrapper}" = "yes"; then
15273 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"
15276 # Bare Elf support script and spec
15277 if test "${use_kernel_cc_wrapper}" = "yes"; then
15278 ac_config_commands="$ac_config_commands elf-compiler-support"
15280 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"
15284 # Host compiler support scripts and spec
15285 if test "${aros_target_toolchain}" = "no"; then
15286 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15288 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"
15292 # Android support
15293 if test "$aros_target_variant" == "android"; then
15294 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15298 # cmake helper
15299 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15302 cat >confcache <<\_ACEOF
15303 # This file is a shell script that caches the results of configure
15304 # tests run on this system so they can be shared between configure
15305 # scripts and configure runs, see configure's option --config-cache.
15306 # It is not useful on other systems. If it contains results you don't
15307 # want to keep, you may remove or edit it.
15309 # config.status only pays attention to the cache file if you give it
15310 # the --recheck option to rerun configure.
15312 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15313 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15314 # following values.
15316 _ACEOF
15318 # The following way of writing the cache mishandles newlines in values,
15319 # but we know of no workaround that is simple, portable, and efficient.
15320 # So, we kill variables containing newlines.
15321 # Ultrix sh set writes to stderr and can't be redirected directly,
15322 # and sets the high bit in the cache file unless we assign to the vars.
15324 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15325 eval ac_val=\$$ac_var
15326 case $ac_val in #(
15327 *${as_nl}*)
15328 case $ac_var in #(
15329 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15331 esac
15332 case $ac_var in #(
15333 _ | IFS | as_nl) ;; #(
15334 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15335 *) { eval $ac_var=; unset $ac_var;} ;;
15336 esac ;;
15337 esac
15338 done
15340 (set) 2>&1 |
15341 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15342 *${as_nl}ac_space=\ *)
15343 # `set' does not quote correctly, so add quotes: double-quote
15344 # substitution turns \\\\ into \\, and sed turns \\ into \.
15345 sed -n \
15346 "s/'/'\\\\''/g;
15347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15348 ;; #(
15350 # `set' quotes correctly as required by POSIX, so do not add quotes.
15351 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15353 esac |
15354 sort
15356 sed '
15357 /^ac_cv_env_/b end
15358 t clear
15359 :clear
15360 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15361 t end
15362 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15363 :end' >>confcache
15364 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15365 if test -w "$cache_file"; then
15366 if test "x$cache_file" != "x/dev/null"; then
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15368 $as_echo "$as_me: updating cache $cache_file" >&6;}
15369 if test ! -f "$cache_file" || test -h "$cache_file"; then
15370 cat confcache >"$cache_file"
15371 else
15372 case $cache_file in #(
15373 */* | ?:*)
15374 mv -f confcache "$cache_file"$$ &&
15375 mv -f "$cache_file"$$ "$cache_file" ;; #(
15377 mv -f confcache "$cache_file" ;;
15378 esac
15381 else
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15383 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15386 rm -f confcache
15388 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15389 # Let make expand exec_prefix.
15390 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15392 DEFS=-DHAVE_CONFIG_H
15394 ac_libobjs=
15395 ac_ltlibobjs=
15397 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15398 # 1. Remove the extension, and $U if already installed.
15399 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15400 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15401 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15402 # will be set to the directory where LIBOBJS objects are built.
15403 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15404 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15405 done
15406 LIBOBJS=$ac_libobjs
15408 LTLIBOBJS=$ac_ltlibobjs
15412 : "${CONFIG_STATUS=./config.status}"
15413 ac_write_fail=0
15414 ac_clean_files_save=$ac_clean_files
15415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15417 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15418 as_write_fail=0
15419 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15420 #! $SHELL
15421 # Generated by $as_me.
15422 # Run this file to recreate the current configuration.
15423 # Compiler output produced by configure, useful for debugging
15424 # configure, is in config.log if it exists.
15426 debug=false
15427 ac_cs_recheck=false
15428 ac_cs_silent=false
15430 SHELL=\${CONFIG_SHELL-$SHELL}
15431 export SHELL
15432 _ASEOF
15433 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15434 ## -------------------- ##
15435 ## M4sh Initialization. ##
15436 ## -------------------- ##
15438 # Be more Bourne compatible
15439 DUALCASE=1; export DUALCASE # for MKS sh
15440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15441 emulate sh
15442 NULLCMD=:
15443 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15444 # is contrary to our usage. Disable this feature.
15445 alias -g '${1+"$@"}'='"$@"'
15446 setopt NO_GLOB_SUBST
15447 else
15448 case `(set -o) 2>/dev/null` in #(
15449 *posix*) :
15450 set -o posix ;; #(
15451 *) :
15453 esac
15457 as_nl='
15459 export as_nl
15460 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15461 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15462 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15464 # Prefer a ksh shell builtin over an external printf program on Solaris,
15465 # but without wasting forks for bash or zsh.
15466 if test -z "$BASH_VERSION$ZSH_VERSION" \
15467 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15468 as_echo='print -r --'
15469 as_echo_n='print -rn --'
15470 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15471 as_echo='printf %s\n'
15472 as_echo_n='printf %s'
15473 else
15474 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15475 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15476 as_echo_n='/usr/ucb/echo -n'
15477 else
15478 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15479 as_echo_n_body='eval
15480 arg=$1;
15481 case $arg in #(
15482 *"$as_nl"*)
15483 expr "X$arg" : "X\\(.*\\)$as_nl";
15484 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15485 esac;
15486 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15488 export as_echo_n_body
15489 as_echo_n='sh -c $as_echo_n_body as_echo'
15491 export as_echo_body
15492 as_echo='sh -c $as_echo_body as_echo'
15495 # The user is always right.
15496 if test "${PATH_SEPARATOR+set}" != set; then
15497 PATH_SEPARATOR=:
15498 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15499 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15500 PATH_SEPARATOR=';'
15505 # IFS
15506 # We need space, tab and new line, in precisely that order. Quoting is
15507 # there to prevent editors from complaining about space-tab.
15508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15509 # splitting by setting IFS to empty value.)
15510 IFS=" "" $as_nl"
15512 # Find who we are. Look in the path if we contain no directory separator.
15513 as_myself=
15514 case $0 in #((
15515 *[\\/]* ) as_myself=$0 ;;
15516 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15517 for as_dir in $PATH
15519 IFS=$as_save_IFS
15520 test -z "$as_dir" && as_dir=.
15521 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15522 done
15523 IFS=$as_save_IFS
15526 esac
15527 # We did not find ourselves, most probably we were run as `sh COMMAND'
15528 # in which case we are not to be found in the path.
15529 if test "x$as_myself" = x; then
15530 as_myself=$0
15532 if test ! -f "$as_myself"; then
15533 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15534 exit 1
15537 # Unset variables that we do not need and which cause bugs (e.g. in
15538 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15539 # suppresses any "Segmentation fault" message there. '((' could
15540 # trigger a bug in pdksh 5.2.14.
15541 for as_var in BASH_ENV ENV MAIL MAILPATH
15542 do eval test x\${$as_var+set} = xset \
15543 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15544 done
15545 PS1='$ '
15546 PS2='> '
15547 PS4='+ '
15549 # NLS nuisances.
15550 LC_ALL=C
15551 export LC_ALL
15552 LANGUAGE=C
15553 export LANGUAGE
15555 # CDPATH.
15556 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15559 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15560 # ----------------------------------------
15561 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15562 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15563 # script with STATUS, using 1 if that was 0.
15564 as_fn_error ()
15566 as_status=$1; test $as_status -eq 0 && as_status=1
15567 if test "$4"; then
15568 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15569 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15571 $as_echo "$as_me: error: $2" >&2
15572 as_fn_exit $as_status
15573 } # as_fn_error
15576 # as_fn_set_status STATUS
15577 # -----------------------
15578 # Set $? to STATUS, without forking.
15579 as_fn_set_status ()
15581 return $1
15582 } # as_fn_set_status
15584 # as_fn_exit STATUS
15585 # -----------------
15586 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15587 as_fn_exit ()
15589 set +e
15590 as_fn_set_status $1
15591 exit $1
15592 } # as_fn_exit
15594 # as_fn_unset VAR
15595 # ---------------
15596 # Portably unset VAR.
15597 as_fn_unset ()
15599 { eval $1=; unset $1;}
15601 as_unset=as_fn_unset
15602 # as_fn_append VAR VALUE
15603 # ----------------------
15604 # Append the text in VALUE to the end of the definition contained in VAR. Take
15605 # advantage of any shell optimizations that allow amortized linear growth over
15606 # repeated appends, instead of the typical quadratic growth present in naive
15607 # implementations.
15608 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15609 eval 'as_fn_append ()
15611 eval $1+=\$2
15613 else
15614 as_fn_append ()
15616 eval $1=\$$1\$2
15618 fi # as_fn_append
15620 # as_fn_arith ARG...
15621 # ------------------
15622 # Perform arithmetic evaluation on the ARGs, and store the result in the
15623 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15624 # must be portable across $(()) and expr.
15625 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15626 eval 'as_fn_arith ()
15628 as_val=$(( $* ))
15630 else
15631 as_fn_arith ()
15633 as_val=`expr "$@" || test $? -eq 1`
15635 fi # as_fn_arith
15638 if expr a : '\(a\)' >/dev/null 2>&1 &&
15639 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15640 as_expr=expr
15641 else
15642 as_expr=false
15645 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15646 as_basename=basename
15647 else
15648 as_basename=false
15651 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15652 as_dirname=dirname
15653 else
15654 as_dirname=false
15657 as_me=`$as_basename -- "$0" ||
15658 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15659 X"$0" : 'X\(//\)$' \| \
15660 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15661 $as_echo X/"$0" |
15662 sed '/^.*\/\([^/][^/]*\)\/*$/{
15663 s//\1/
15666 /^X\/\(\/\/\)$/{
15667 s//\1/
15670 /^X\/\(\/\).*/{
15671 s//\1/
15674 s/.*/./; q'`
15676 # Avoid depending upon Character Ranges.
15677 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15678 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15679 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15680 as_cr_digits='0123456789'
15681 as_cr_alnum=$as_cr_Letters$as_cr_digits
15683 ECHO_C= ECHO_N= ECHO_T=
15684 case `echo -n x` in #(((((
15685 -n*)
15686 case `echo 'xy\c'` in
15687 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15688 xy) ECHO_C='\c';;
15689 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15690 ECHO_T=' ';;
15691 esac;;
15693 ECHO_N='-n';;
15694 esac
15696 rm -f conf$$ conf$$.exe conf$$.file
15697 if test -d conf$$.dir; then
15698 rm -f conf$$.dir/conf$$.file
15699 else
15700 rm -f conf$$.dir
15701 mkdir conf$$.dir 2>/dev/null
15703 if (echo >conf$$.file) 2>/dev/null; then
15704 if ln -s conf$$.file conf$$ 2>/dev/null; then
15705 as_ln_s='ln -s'
15706 # ... but there are two gotchas:
15707 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15708 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15709 # In both cases, we have to default to `cp -pR'.
15710 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15711 as_ln_s='cp -pR'
15712 elif ln conf$$.file conf$$ 2>/dev/null; then
15713 as_ln_s=ln
15714 else
15715 as_ln_s='cp -pR'
15717 else
15718 as_ln_s='cp -pR'
15720 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15721 rmdir conf$$.dir 2>/dev/null
15724 # as_fn_mkdir_p
15725 # -------------
15726 # Create "$as_dir" as a directory, including parents if necessary.
15727 as_fn_mkdir_p ()
15730 case $as_dir in #(
15731 -*) as_dir=./$as_dir;;
15732 esac
15733 test -d "$as_dir" || eval $as_mkdir_p || {
15734 as_dirs=
15735 while :; do
15736 case $as_dir in #(
15737 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15738 *) as_qdir=$as_dir;;
15739 esac
15740 as_dirs="'$as_qdir' $as_dirs"
15741 as_dir=`$as_dirname -- "$as_dir" ||
15742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15743 X"$as_dir" : 'X\(//\)[^/]' \| \
15744 X"$as_dir" : 'X\(//\)$' \| \
15745 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15746 $as_echo X"$as_dir" |
15747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15748 s//\1/
15751 /^X\(\/\/\)[^/].*/{
15752 s//\1/
15755 /^X\(\/\/\)$/{
15756 s//\1/
15759 /^X\(\/\).*/{
15760 s//\1/
15763 s/.*/./; q'`
15764 test -d "$as_dir" && break
15765 done
15766 test -z "$as_dirs" || eval "mkdir $as_dirs"
15767 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15770 } # as_fn_mkdir_p
15771 if mkdir -p . 2>/dev/null; then
15772 as_mkdir_p='mkdir -p "$as_dir"'
15773 else
15774 test -d ./-p && rmdir ./-p
15775 as_mkdir_p=false
15779 # as_fn_executable_p FILE
15780 # -----------------------
15781 # Test if FILE is an executable regular file.
15782 as_fn_executable_p ()
15784 test -f "$1" && test -x "$1"
15785 } # as_fn_executable_p
15786 as_test_x='test -x'
15787 as_executable_p=as_fn_executable_p
15789 # Sed expression to map a string onto a valid CPP name.
15790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15792 # Sed expression to map a string onto a valid variable name.
15793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15796 exec 6>&1
15797 ## ----------------------------------- ##
15798 ## Main body of $CONFIG_STATUS script. ##
15799 ## ----------------------------------- ##
15800 _ASEOF
15801 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15804 # Save the log message, to keep $0 and so on meaningful, and to
15805 # report actual input values of CONFIG_FILES etc. instead of their
15806 # values after options handling.
15807 ac_log="
15808 This file was extended by $as_me, which was
15809 generated by GNU Autoconf 2.69. Invocation command line was
15811 CONFIG_FILES = $CONFIG_FILES
15812 CONFIG_HEADERS = $CONFIG_HEADERS
15813 CONFIG_LINKS = $CONFIG_LINKS
15814 CONFIG_COMMANDS = $CONFIG_COMMANDS
15815 $ $0 $@
15817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15820 _ACEOF
15822 case $ac_config_files in *"
15823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15824 esac
15826 case $ac_config_headers in *"
15827 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15828 esac
15831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15832 # Files that config.status was made for.
15833 config_files="$ac_config_files"
15834 config_headers="$ac_config_headers"
15835 config_commands="$ac_config_commands"
15837 _ACEOF
15839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15840 ac_cs_usage="\
15841 \`$as_me' instantiates files and other configuration actions
15842 from templates according to the current configuration. Unless the files
15843 and actions are specified as TAGs, all are instantiated by default.
15845 Usage: $0 [OPTION]... [TAG]...
15847 -h, --help print this help, then exit
15848 -V, --version print version number and configuration settings, then exit
15849 --config print configuration, then exit
15850 -q, --quiet, --silent
15851 do not print progress messages
15852 -d, --debug don't remove temporary files
15853 --recheck update $as_me by reconfiguring in the same conditions
15854 --file=FILE[:TEMPLATE]
15855 instantiate the configuration file FILE
15856 --header=FILE[:TEMPLATE]
15857 instantiate the configuration header FILE
15859 Configuration files:
15860 $config_files
15862 Configuration headers:
15863 $config_headers
15865 Configuration commands:
15866 $config_commands
15868 Report bugs to the package provider."
15870 _ACEOF
15871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15872 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15873 ac_cs_version="\\
15874 config.status
15875 configured by $0, generated by GNU Autoconf 2.69,
15876 with options \\"\$ac_cs_config\\"
15878 Copyright (C) 2012 Free Software Foundation, Inc.
15879 This config.status script is free software; the Free Software Foundation
15880 gives unlimited permission to copy, distribute and modify it."
15882 ac_pwd='$ac_pwd'
15883 srcdir='$srcdir'
15884 test -n "\$AWK" || AWK=awk
15885 _ACEOF
15887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15888 # The default lists apply if the user does not specify any file.
15889 ac_need_defaults=:
15890 while test $# != 0
15892 case $1 in
15893 --*=?*)
15894 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15895 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15896 ac_shift=:
15898 --*=)
15899 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15900 ac_optarg=
15901 ac_shift=:
15904 ac_option=$1
15905 ac_optarg=$2
15906 ac_shift=shift
15908 esac
15910 case $ac_option in
15911 # Handling of the options.
15912 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15913 ac_cs_recheck=: ;;
15914 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15915 $as_echo "$ac_cs_version"; exit ;;
15916 --config | --confi | --conf | --con | --co | --c )
15917 $as_echo "$ac_cs_config"; exit ;;
15918 --debug | --debu | --deb | --de | --d | -d )
15919 debug=: ;;
15920 --file | --fil | --fi | --f )
15921 $ac_shift
15922 case $ac_optarg in
15923 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15924 '') as_fn_error $? "missing file argument" ;;
15925 esac
15926 as_fn_append CONFIG_FILES " '$ac_optarg'"
15927 ac_need_defaults=false;;
15928 --header | --heade | --head | --hea )
15929 $ac_shift
15930 case $ac_optarg in
15931 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15932 esac
15933 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15934 ac_need_defaults=false;;
15935 --he | --h)
15936 # Conflict between --help and --header
15937 as_fn_error $? "ambiguous option: \`$1'
15938 Try \`$0 --help' for more information.";;
15939 --help | --hel | -h )
15940 $as_echo "$ac_cs_usage"; exit ;;
15941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15942 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15943 ac_cs_silent=: ;;
15945 # This is an error.
15946 -*) as_fn_error $? "unrecognized option: \`$1'
15947 Try \`$0 --help' for more information." ;;
15949 *) as_fn_append ac_config_targets " $1"
15950 ac_need_defaults=false ;;
15952 esac
15953 shift
15954 done
15956 ac_configure_extra_args=
15958 if $ac_cs_silent; then
15959 exec 6>/dev/null
15960 ac_configure_extra_args="$ac_configure_extra_args --silent"
15963 _ACEOF
15964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15965 if \$ac_cs_recheck; then
15966 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15967 shift
15968 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15969 CONFIG_SHELL='$SHELL'
15970 export CONFIG_SHELL
15971 exec "\$@"
15974 _ACEOF
15975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15976 exec 5>>config.log
15978 echo
15979 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15980 ## Running $as_me. ##
15981 _ASBOX
15982 $as_echo "$ac_log"
15983 } >&5
15985 _ACEOF
15986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15988 # INIT-COMMANDS
15991 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
15992 aros_tools_dir=${aros_tools_dir}
15996 aros_host_exe_suffix=${aros_host_exe_suffix}
15997 aros_tools_dir=${aros_tools_dir}
15998 aros_target_cpu=${aros_target_cpu}
15999 aros_target_arch=${aros_target_arch}
16000 aros_target_suffix=${aros_target_suffix}
16001 orig_target_nm=${orig_target_nm}
16002 orig_target_as=${orig_target_as}
16003 orig_target_ar=${orig_target_ar}
16004 orig_target_ranlib=${orig_target_ranlib}
16005 orig_target_objdump=${orig_target_objdump}
16006 orig_target_objcopy=${orig_target_objcopy}
16007 orig_target_strip=${orig_target_strip}
16008 aros_kernel_ld=${aros_kernel_ld}
16012 aros_host_exe_suffix=${aros_host_exe_suffix}
16013 aros_tools_dir=${aros_tools_dir}
16014 aros_target_cpu=${aros_target_cpu}
16015 aros_target_arch=${aros_target_arch}
16016 aros_target_suffix=${aros_target_suffix}
16017 aros_kernel_ld=${aros_kernel_ld}
16021 aros_host_exe_suffix=${aros_host_exe_suffix}
16022 aros_tools_dir=${aros_tools_dir}
16023 aros_target_cpu=${aros_target_cpu}
16024 aros_target_arch=${aros_target_arch}
16025 aros_target_suffix=${aros_target_suffix}
16029 _ACEOF
16031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16033 # Handling of arguments.
16034 for ac_config_target in $ac_config_targets
16036 case $ac_config_target in
16037 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16038 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16039 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16040 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16041 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16042 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16043 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16044 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16045 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16046 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16047 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16048 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16049 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16050 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16051 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16052 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16053 "${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" ;;
16054 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16055 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16056 "${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" ;;
16057 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16058 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16059 "${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" ;;
16060 "${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" ;;
16061 "${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" ;;
16062 "${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" ;;
16063 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16065 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16066 esac
16067 done
16070 # If the user did not use the arguments to specify the items to instantiate,
16071 # then the envvar interface is used. Set only those that are not.
16072 # We use the long form for the default assignment because of an extremely
16073 # bizarre bug on SunOS 4.1.3.
16074 if $ac_need_defaults; then
16075 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16076 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16077 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16080 # Have a temporary directory for convenience. Make it in the build tree
16081 # simply because there is no reason against having it here, and in addition,
16082 # creating and moving files from /tmp can sometimes cause problems.
16083 # Hook for its removal unless debugging.
16084 # Note that there is a small window in which the directory will not be cleaned:
16085 # after its creation but before its name has been assigned to `$tmp'.
16086 $debug ||
16088 tmp= ac_tmp=
16089 trap 'exit_status=$?
16090 : "${ac_tmp:=$tmp}"
16091 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16093 trap 'as_fn_exit 1' 1 2 13 15
16095 # Create a (secure) tmp directory for tmp files.
16098 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16099 test -d "$tmp"
16100 } ||
16102 tmp=./conf$$-$RANDOM
16103 (umask 077 && mkdir "$tmp")
16104 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16105 ac_tmp=$tmp
16107 # Set up the scripts for CONFIG_FILES section.
16108 # No need to generate them if there are no CONFIG_FILES.
16109 # This happens for instance with `./config.status config.h'.
16110 if test -n "$CONFIG_FILES"; then
16113 ac_cr=`echo X | tr X '\015'`
16114 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16115 # But we know of no other shell where ac_cr would be empty at this
16116 # point, so we can use a bashism as a fallback.
16117 if test "x$ac_cr" = x; then
16118 eval ac_cr=\$\'\\r\'
16120 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16121 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16122 ac_cs_awk_cr='\\r'
16123 else
16124 ac_cs_awk_cr=$ac_cr
16127 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16128 _ACEOF
16132 echo "cat >conf$$subs.awk <<_ACEOF" &&
16133 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16134 echo "_ACEOF"
16135 } >conf$$subs.sh ||
16136 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16137 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16138 ac_delim='%!_!# '
16139 for ac_last_try in false false false false false :; do
16140 . ./conf$$subs.sh ||
16141 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16143 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16144 if test $ac_delim_n = $ac_delim_num; then
16145 break
16146 elif $ac_last_try; then
16147 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16148 else
16149 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16151 done
16152 rm -f conf$$subs.sh
16154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16155 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16156 _ACEOF
16157 sed -n '
16159 s/^/S["/; s/!.*/"]=/
16162 s/^[^!]*!//
16163 :repl
16164 t repl
16165 s/'"$ac_delim"'$//
16166 t delim
16169 s/\(.\{148\}\)..*/\1/
16170 t more1
16171 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16174 b repl
16175 :more1
16176 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16179 s/.\{148\}//
16180 t nl
16181 :delim
16183 s/\(.\{148\}\)..*/\1/
16184 t more2
16185 s/["\\]/\\&/g; s/^/"/; s/$/"/
16188 :more2
16189 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16192 s/.\{148\}//
16193 t delim
16194 ' <conf$$subs.awk | sed '
16195 /^[^""]/{
16197 s/\n//
16199 ' >>$CONFIG_STATUS || ac_write_fail=1
16200 rm -f conf$$subs.awk
16201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16202 _ACAWK
16203 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16204 for (key in S) S_is_set[key] = 1
16205 FS = "\a"
16209 line = $ 0
16210 nfields = split(line, field, "@")
16211 substed = 0
16212 len = length(field[1])
16213 for (i = 2; i < nfields; i++) {
16214 key = field[i]
16215 keylen = length(key)
16216 if (S_is_set[key]) {
16217 value = S[key]
16218 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16219 len += length(value) + length(field[++i])
16220 substed = 1
16221 } else
16222 len += 1 + keylen
16225 print line
16228 _ACAWK
16229 _ACEOF
16230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16231 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16232 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16233 else
16235 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16236 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16237 _ACEOF
16239 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16240 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16241 # trailing colons and then remove the whole line if VPATH becomes empty
16242 # (actually we leave an empty line to preserve line numbers).
16243 if test "x$srcdir" = x.; then
16244 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16246 s///
16247 s/^/:/
16248 s/[ ]*$/:/
16249 s/:\$(srcdir):/:/g
16250 s/:\${srcdir}:/:/g
16251 s/:@srcdir@:/:/g
16252 s/^:*//
16253 s/:*$//
16255 s/\(=[ ]*\).*/\1/
16257 s/\n//
16258 s/^[^=]*=[ ]*$//
16262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16263 fi # test -n "$CONFIG_FILES"
16265 # Set up the scripts for CONFIG_HEADERS section.
16266 # No need to generate them if there are no CONFIG_HEADERS.
16267 # This happens for instance with `./config.status Makefile'.
16268 if test -n "$CONFIG_HEADERS"; then
16269 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16270 BEGIN {
16271 _ACEOF
16273 # Transform confdefs.h into an awk script `defines.awk', embedded as
16274 # here-document in config.status, that substitutes the proper values into
16275 # config.h.in to produce config.h.
16277 # Create a delimiter string that does not exist in confdefs.h, to ease
16278 # handling of long lines.
16279 ac_delim='%!_!# '
16280 for ac_last_try in false false :; do
16281 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16282 if test -z "$ac_tt"; then
16283 break
16284 elif $ac_last_try; then
16285 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16286 else
16287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16289 done
16291 # For the awk script, D is an array of macro values keyed by name,
16292 # likewise P contains macro parameters if any. Preserve backslash
16293 # newline sequences.
16295 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16296 sed -n '
16297 s/.\{148\}/&'"$ac_delim"'/g
16298 t rset
16299 :rset
16300 s/^[ ]*#[ ]*define[ ][ ]*/ /
16301 t def
16303 :def
16304 s/\\$//
16305 t bsnl
16306 s/["\\]/\\&/g
16307 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16308 D["\1"]=" \3"/p
16309 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16311 :bsnl
16312 s/["\\]/\\&/g
16313 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16314 D["\1"]=" \3\\\\\\n"\\/p
16315 t cont
16316 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16317 t cont
16319 :cont
16321 s/.\{148\}/&'"$ac_delim"'/g
16322 t clear
16323 :clear
16324 s/\\$//
16325 t bsnlc
16326 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16328 :bsnlc
16329 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16330 b cont
16331 ' <confdefs.h | sed '
16332 s/'"$ac_delim"'/"\\\
16333 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16336 for (key in D) D_is_set[key] = 1
16337 FS = "\a"
16339 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16340 line = \$ 0
16341 split(line, arg, " ")
16342 if (arg[1] == "#") {
16343 defundef = arg[2]
16344 mac1 = arg[3]
16345 } else {
16346 defundef = substr(arg[1], 2)
16347 mac1 = arg[2]
16349 split(mac1, mac2, "(") #)
16350 macro = mac2[1]
16351 prefix = substr(line, 1, index(line, defundef) - 1)
16352 if (D_is_set[macro]) {
16353 # Preserve the white space surrounding the "#".
16354 print prefix "define", macro P[macro] D[macro]
16355 next
16356 } else {
16357 # Replace #undef with comments. This is necessary, for example,
16358 # in the case of _POSIX_SOURCE, which is predefined and required
16359 # on some systems where configure will not decide to define it.
16360 if (defundef == "undef") {
16361 print "/*", prefix defundef, macro, "*/"
16362 next
16366 { print }
16367 _ACAWK
16368 _ACEOF
16369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16370 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16371 fi # test -n "$CONFIG_HEADERS"
16374 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16375 shift
16376 for ac_tag
16378 case $ac_tag in
16379 :[FHLC]) ac_mode=$ac_tag; continue;;
16380 esac
16381 case $ac_mode$ac_tag in
16382 :[FHL]*:*);;
16383 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16384 :[FH]-) ac_tag=-:-;;
16385 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16386 esac
16387 ac_save_IFS=$IFS
16388 IFS=:
16389 set x $ac_tag
16390 IFS=$ac_save_IFS
16391 shift
16392 ac_file=$1
16393 shift
16395 case $ac_mode in
16396 :L) ac_source=$1;;
16397 :[FH])
16398 ac_file_inputs=
16399 for ac_f
16401 case $ac_f in
16402 -) ac_f="$ac_tmp/stdin";;
16403 *) # Look for the file first in the build tree, then in the source tree
16404 # (if the path is not absolute). The absolute path cannot be DOS-style,
16405 # because $ac_f cannot contain `:'.
16406 test -f "$ac_f" ||
16407 case $ac_f in
16408 [\\/$]*) false;;
16409 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16410 esac ||
16411 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16412 esac
16413 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16414 as_fn_append ac_file_inputs " '$ac_f'"
16415 done
16417 # Let's still pretend it is `configure' which instantiates (i.e., don't
16418 # use $as_me), people would be surprised to read:
16419 # /* config.h. Generated by config.status. */
16420 configure_input='Generated from '`
16421 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16422 `' by configure.'
16423 if test x"$ac_file" != x-; then
16424 configure_input="$ac_file. $configure_input"
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16426 $as_echo "$as_me: creating $ac_file" >&6;}
16428 # Neutralize special characters interpreted by sed in replacement strings.
16429 case $configure_input in #(
16430 *\&* | *\|* | *\\* )
16431 ac_sed_conf_input=`$as_echo "$configure_input" |
16432 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16433 *) ac_sed_conf_input=$configure_input;;
16434 esac
16436 case $ac_tag in
16437 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16438 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16439 esac
16441 esac
16443 ac_dir=`$as_dirname -- "$ac_file" ||
16444 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16445 X"$ac_file" : 'X\(//\)[^/]' \| \
16446 X"$ac_file" : 'X\(//\)$' \| \
16447 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16448 $as_echo X"$ac_file" |
16449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16450 s//\1/
16453 /^X\(\/\/\)[^/].*/{
16454 s//\1/
16457 /^X\(\/\/\)$/{
16458 s//\1/
16461 /^X\(\/\).*/{
16462 s//\1/
16465 s/.*/./; q'`
16466 as_dir="$ac_dir"; as_fn_mkdir_p
16467 ac_builddir=.
16469 case "$ac_dir" in
16470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16473 # A ".." for each directory in $ac_dir_suffix.
16474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16475 case $ac_top_builddir_sub in
16476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16478 esac ;;
16479 esac
16480 ac_abs_top_builddir=$ac_pwd
16481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16482 # for backward compatibility:
16483 ac_top_builddir=$ac_top_build_prefix
16485 case $srcdir in
16486 .) # We are building in place.
16487 ac_srcdir=.
16488 ac_top_srcdir=$ac_top_builddir_sub
16489 ac_abs_top_srcdir=$ac_pwd ;;
16490 [\\/]* | ?:[\\/]* ) # Absolute name.
16491 ac_srcdir=$srcdir$ac_dir_suffix;
16492 ac_top_srcdir=$srcdir
16493 ac_abs_top_srcdir=$srcdir ;;
16494 *) # Relative name.
16495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16496 ac_top_srcdir=$ac_top_build_prefix$srcdir
16497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16498 esac
16499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16502 case $ac_mode in
16505 # CONFIG_FILE
16508 _ACEOF
16510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16511 # If the template does not know about datarootdir, expand it.
16512 # FIXME: This hack should be removed a few years after 2.60.
16513 ac_datarootdir_hack=; ac_datarootdir_seen=
16514 ac_sed_dataroot='
16515 /datarootdir/ {
16519 /@datadir@/p
16520 /@docdir@/p
16521 /@infodir@/p
16522 /@localedir@/p
16523 /@mandir@/p'
16524 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16525 *datarootdir*) ac_datarootdir_seen=yes;;
16526 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16528 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16529 _ACEOF
16530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16531 ac_datarootdir_hack='
16532 s&@datadir@&$datadir&g
16533 s&@docdir@&$docdir&g
16534 s&@infodir@&$infodir&g
16535 s&@localedir@&$localedir&g
16536 s&@mandir@&$mandir&g
16537 s&\\\${datarootdir}&$datarootdir&g' ;;
16538 esac
16539 _ACEOF
16541 # Neutralize VPATH when `$srcdir' = `.'.
16542 # Shell code in configure.ac might set extrasub.
16543 # FIXME: do we really want to maintain this feature?
16544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16545 ac_sed_extra="$ac_vpsub
16546 $extrasub
16547 _ACEOF
16548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16551 s|@configure_input@|$ac_sed_conf_input|;t t
16552 s&@top_builddir@&$ac_top_builddir_sub&;t t
16553 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16554 s&@srcdir@&$ac_srcdir&;t t
16555 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16556 s&@top_srcdir@&$ac_top_srcdir&;t t
16557 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16558 s&@builddir@&$ac_builddir&;t t
16559 s&@abs_builddir@&$ac_abs_builddir&;t t
16560 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16561 $ac_datarootdir_hack
16563 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16564 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16566 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16567 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16568 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16569 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16571 which seems to be undefined. Please make sure it is defined" >&5
16572 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16573 which seems to be undefined. Please make sure it is defined" >&2;}
16575 rm -f "$ac_tmp/stdin"
16576 case $ac_file in
16577 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16578 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16579 esac \
16580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16584 # CONFIG_HEADER
16586 if test x"$ac_file" != x-; then
16588 $as_echo "/* $configure_input */" \
16589 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16590 } >"$ac_tmp/config.h" \
16591 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16592 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16594 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16595 else
16596 rm -f "$ac_file"
16597 mv "$ac_tmp/config.h" "$ac_file" \
16598 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16600 else
16601 $as_echo "/* $configure_input */" \
16602 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16603 || as_fn_error $? "could not create -" "$LINENO" 5
16607 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16608 $as_echo "$as_me: executing $ac_file commands" >&6;}
16610 esac
16613 case $ac_file$ac_mode in
16614 "genmf-executable-support":C)
16615 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16616 chmod a+x ${aros_tools_dir}/genmf.py
16618 "binutils-support":C)
16619 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16620 mkdir -p $prefix
16621 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16623 chmod a+x ${prefix2}-ld
16625 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16626 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16627 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16628 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16629 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16630 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16631 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16633 "elf-compiler-support":C)
16634 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16635 mkdir -p $prefix
16636 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16638 chmod a+x ${prefix2}-gcc
16640 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16642 "host-compiler-wrapper-support":C)
16643 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16644 mkdir -p $prefix
16645 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16647 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16650 esac
16651 done # for ac_tag
16654 as_fn_exit 0
16655 _ACEOF
16656 ac_clean_files=$ac_clean_files_save
16658 test $ac_write_fail = 0 ||
16659 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16662 # configure is writing to config.log, and then calls config.status.
16663 # config.status does its own redirection, appending to config.log.
16664 # Unfortunately, on DOS this fails, as config.log is still kept open
16665 # by configure, so config.status won't be able to write to it; its
16666 # output is simply discarded. So we exec the FD to /dev/null,
16667 # effectively closing config.log, so it can be properly (re)opened and
16668 # appended to by config.status. When coming back to configure, we
16669 # need to make the FD available again.
16670 if test "$no_create" != yes; then
16671 ac_cs_success=:
16672 ac_config_status_args=
16673 test "$silent" = yes &&
16674 ac_config_status_args="$ac_config_status_args --quiet"
16675 exec 5>/dev/null
16676 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16677 exec 5>>config.log
16678 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16679 # would make configure fail if this is the last instruction.
16680 $ac_cs_success || as_fn_exit 1
16682 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16684 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16689 #XXX compatability...
16690 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16692 if test -n "$aros_shared_cflags" ; then
16693 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16694 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg